blob: 7c4126547101491e8d4cf2e224fd83b05070fb62 [file] [log] [blame]
Girish Gowdrae538dfd2019-09-30 11:07:30 +05301#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for openolt 1.4.0.
4#
5# Report bugs to <voltha-discuss@opencord.org>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
177fi
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204else
205 as_have_required=no
206fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211as_found=false
212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213do
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
218 /*)
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
227fi
228fi
229 done;;
230 esac
231 as_found=false
232done
233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236fi; }
237IFS=$as_save_IFS
238
239
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243# neutralization value for shells without unset; and this also
244# works around shells that cannot unset nonexistent variables.
245# Preserve -v and -x to the replacement shell.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254esac
255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256# Admittedly, this is quite paranoid, since all the known shells bail
257# out after a failed `exec'.
258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259exit 255
260fi
261
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and
270$0: voltha-discuss@opencord.org about your system,
271$0: including any error possibly output before this
272$0: message. Then install a modern shell, or manually run
273$0: the script under such a shell if you do have one."
274 fi
275 exit 1
276fi
277fi
278fi
279SHELL=${CONFIG_SHELL-/bin/sh}
280export SHELL
281# Unset more variables known to interfere with behavior of common tools.
282CLICOLOR_FORCE= GREP_OPTIONS=
283unset CLICOLOR_FORCE GREP_OPTIONS
284
285## --------------------- ##
286## M4sh Shell Functions. ##
287## --------------------- ##
288# as_fn_unset VAR
289# ---------------
290# Portably unset VAR.
291as_fn_unset ()
292{
293 { eval $1=; unset $1;}
294}
295as_unset=as_fn_unset
296
297# as_fn_set_status STATUS
298# -----------------------
299# Set $? to STATUS, without forking.
300as_fn_set_status ()
301{
302 return $1
303} # as_fn_set_status
304
305# as_fn_exit STATUS
306# -----------------
307# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308as_fn_exit ()
309{
310 set +e
311 as_fn_set_status $1
312 exit $1
313} # as_fn_exit
314
315# as_fn_mkdir_p
316# -------------
317# Create "$as_dir" as a directory, including parents if necessary.
318as_fn_mkdir_p ()
319{
320
321 case $as_dir in #(
322 -*) as_dir=./$as_dir;;
323 esac
324 test -d "$as_dir" || eval $as_mkdir_p || {
325 as_dirs=
326 while :; do
327 case $as_dir in #(
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329 *) as_qdir=$as_dir;;
330 esac
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337$as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339 s//\1/
340 q
341 }
342 /^X\(\/\/\)[^/].*/{
343 s//\1/
344 q
345 }
346 /^X\(\/\/\)$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\).*/{
351 s//\1/
352 q
353 }
354 s/.*/./; q'`
355 test -d "$as_dir" && break
356 done
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361} # as_fn_mkdir_p
362
363# as_fn_executable_p FILE
364# -----------------------
365# Test if FILE is an executable regular file.
366as_fn_executable_p ()
367{
368 test -f "$1" && test -x "$1"
369} # as_fn_executable_p
370# as_fn_append VAR VALUE
371# ----------------------
372# Append the text in VALUE to the end of the definition contained in VAR. Take
373# advantage of any shell optimizations that allow amortized linear growth over
374# repeated appends, instead of the typical quadratic growth present in naive
375# implementations.
376if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
378 {
379 eval $1+=\$2
380 }'
381else
382 as_fn_append ()
383 {
384 eval $1=\$$1\$2
385 }
386fi # as_fn_append
387
388# as_fn_arith ARG...
389# ------------------
390# Perform arithmetic evaluation on the ARGs, and store the result in the
391# global $as_val. Take advantage of shells that can avoid forks. The arguments
392# must be portable across $(()) and expr.
393if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394 eval 'as_fn_arith ()
395 {
396 as_val=$(( $* ))
397 }'
398else
399 as_fn_arith ()
400 {
401 as_val=`expr "$@" || test $? -eq 1`
402 }
403fi # as_fn_arith
404
405
406# as_fn_error STATUS ERROR [LINENO LOG_FD]
407# ----------------------------------------
408# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410# script with STATUS, using 1 if that was 0.
411as_fn_error ()
412{
413 as_status=$1; test $as_status -eq 0 && as_status=1
414 if test "$4"; then
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417 fi
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
420} # as_fn_error
421
422if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
424 as_expr=expr
425else
426 as_expr=false
427fi
428
429if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430 as_basename=basename
431else
432 as_basename=false
433fi
434
435if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436 as_dirname=dirname
437else
438 as_dirname=false
439fi
440
441as_me=`$as_basename -- "$0" ||
442$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445$as_echo X/"$0" |
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
447 s//\1/
448 q
449 }
450 /^X\/\(\/\/\)$/{
451 s//\1/
452 q
453 }
454 /^X\/\(\/\).*/{
455 s//\1/
456 q
457 }
458 s/.*/./; q'`
459
460# Avoid depending upon Character Ranges.
461as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464as_cr_digits='0123456789'
465as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
473 sed -n '
474 p
475 /[$]LINENO/=
476 ' <$as_myself |
477 sed '
478 s/[$]LINENO.*/&-/
479 t lineno
480 b
481 :lineno
482 N
483 :loop
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 t loop
486 s/-\n.*//
487 ' >$as_me.lineno &&
488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
498 . "./$as_me.lineno"
499 # Exit status is that of the last command.
500 exit
501}
502
503ECHO_C= ECHO_N= ECHO_T=
504case `echo -n x` in #(((((
505-n*)
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
508 xy) ECHO_C='\c';;
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
510 ECHO_T=' ';;
511 esac;;
512*)
513 ECHO_N='-n';;
514esac
515
516rm -f conf$$ conf$$.exe conf$$.file
517if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
519else
520 rm -f conf$$.dir
521 mkdir conf$$.dir 2>/dev/null
522fi
523if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
525 as_ln_s='ln -s'
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531 as_ln_s='cp -pR'
532 elif ln conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s=ln
534 else
535 as_ln_s='cp -pR'
536 fi
537else
538 as_ln_s='cp -pR'
539fi
540rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541rmdir conf$$.dir 2>/dev/null
542
543if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
545else
546 test -d ./-p && rmdir ./-p
547 as_mkdir_p=false
548fi
549
550as_test_x='test -x'
551as_executable_p=as_fn_executable_p
552
553# Sed expression to map a string onto a valid CPP name.
554as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556# Sed expression to map a string onto a valid variable name.
557as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560test -n "$DJDIR" || exec 7<&0 </dev/null
561exec 6>&1
562
563# Name of the host.
564# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565# so uname gets run too.
566ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568#
569# Initializations.
570#
571ac_default_prefix=/usr/local
572ac_clean_files=
573ac_config_libobj_dir=.
574LIBOBJS=
575cross_compiling=no
576subdirs=
577MFLAGS=
578MAKEFLAGS=
579
580# Identity of this package.
581PACKAGE_NAME='openolt'
582PACKAGE_TARNAME='openolt'
583PACKAGE_VERSION='1.4.0'
584PACKAGE_STRING='openolt 1.4.0'
585PACKAGE_BUGREPORT='voltha-discuss@opencord.org'
586PACKAGE_URL=''
587
588ac_unique_file="config.h.in"
589# Factoring default headers for most tests.
590ac_includes_default="\
591#include <stdio.h>
592#ifdef HAVE_SYS_TYPES_H
593# include <sys/types.h>
594#endif
595#ifdef HAVE_SYS_STAT_H
596# include <sys/stat.h>
597#endif
598#ifdef STDC_HEADERS
599# include <stdlib.h>
600# include <stddef.h>
601#else
602# ifdef HAVE_STDLIB_H
603# include <stdlib.h>
604# endif
605#endif
606#ifdef HAVE_STRING_H
607# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608# include <memory.h>
609# endif
610# include <string.h>
611#endif
612#ifdef HAVE_STRINGS_H
613# include <strings.h>
614#endif
615#ifdef HAVE_INTTYPES_H
616# include <inttypes.h>
617#endif
618#ifdef HAVE_STDINT_H
619# include <stdint.h>
620#endif
621#ifdef HAVE_UNISTD_H
622# include <unistd.h>
623#endif"
624
625ac_subst_vars='LTLIBOBJS
626LIBOBJS
627EGREP
628GREP
629CPP
630SET_MAKE
631LN_S
632SED
633AWK
634ac_ct_CC
635CFLAGS
636CC
637OBJEXT
638EXEEXT
639ac_ct_CXX
640CPPFLAGS
641LDFLAGS
642CXXFLAGS
643CXX
644target_alias
645host_alias
646build_alias
647LIBS
648ECHO_T
649ECHO_N
650ECHO_C
651DEFS
652mandir
653localedir
654libdir
655psdir
656pdfdir
657dvidir
658htmldir
659infodir
660docdir
661oldincludedir
662includedir
663localstatedir
664sharedstatedir
665sysconfdir
666datadir
667datarootdir
668libexecdir
669sbindir
670bindir
671program_transform_name
672prefix
673exec_prefix
674PACKAGE_URL
675PACKAGE_BUGREPORT
676PACKAGE_STRING
677PACKAGE_VERSION
678PACKAGE_TARNAME
679PACKAGE_NAME
680PATH_SEPARATOR
681SHELL'
682ac_subst_files=''
683ac_user_opts='
684enable_option_checking
685with_sysroot
686'
687 ac_precious_vars='build_alias
688host_alias
689target_alias
690CXX
691CXXFLAGS
692LDFLAGS
693LIBS
694CPPFLAGS
695CCC
696CC
697CFLAGS
698CPP'
699
700
701# Initialize some variables set by options.
702ac_init_help=
703ac_init_version=false
704ac_unrecognized_opts=
705ac_unrecognized_sep=
706# The variables have the same names as the options, with
707# dashes changed to underlines.
708cache_file=/dev/null
709exec_prefix=NONE
710no_create=
711no_recursion=
712prefix=NONE
713program_prefix=NONE
714program_suffix=NONE
715program_transform_name=s,x,x,
716silent=
717site=
718srcdir=
719verbose=
720x_includes=NONE
721x_libraries=NONE
722
723# Installation directory options.
724# These are left unexpanded so users can "make install exec_prefix=/foo"
725# and all the variables that are supposed to be based on exec_prefix
726# by default will actually change.
727# Use braces instead of parens because sh, perl, etc. also accept them.
728# (The list follows the same order as the GNU Coding Standards.)
729bindir='${exec_prefix}/bin'
730sbindir='${exec_prefix}/sbin'
731libexecdir='${exec_prefix}/libexec'
732datarootdir='${prefix}/share'
733datadir='${datarootdir}'
734sysconfdir='${prefix}/etc'
735sharedstatedir='${prefix}/com'
736localstatedir='${prefix}/var'
737includedir='${prefix}/include'
738oldincludedir='/usr/include'
739docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
740infodir='${datarootdir}/info'
741htmldir='${docdir}'
742dvidir='${docdir}'
743pdfdir='${docdir}'
744psdir='${docdir}'
745libdir='${exec_prefix}/lib'
746localedir='${datarootdir}/locale'
747mandir='${datarootdir}/man'
748
749ac_prev=
750ac_dashdash=
751for ac_option
752do
753 # If the previous option needs an argument, assign it.
754 if test -n "$ac_prev"; then
755 eval $ac_prev=\$ac_option
756 ac_prev=
757 continue
758 fi
759
760 case $ac_option in
761 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
762 *=) ac_optarg= ;;
763 *) ac_optarg=yes ;;
764 esac
765
766 # Accept the important Cygnus configure options, so we can diagnose typos.
767
768 case $ac_dashdash$ac_option in
769 --)
770 ac_dashdash=yes ;;
771
772 -bindir | --bindir | --bindi | --bind | --bin | --bi)
773 ac_prev=bindir ;;
774 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
775 bindir=$ac_optarg ;;
776
777 -build | --build | --buil | --bui | --bu)
778 ac_prev=build_alias ;;
779 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
780 build_alias=$ac_optarg ;;
781
782 -cache-file | --cache-file | --cache-fil | --cache-fi \
783 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
784 ac_prev=cache_file ;;
785 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
786 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
787 cache_file=$ac_optarg ;;
788
789 --config-cache | -C)
790 cache_file=config.cache ;;
791
792 -datadir | --datadir | --datadi | --datad)
793 ac_prev=datadir ;;
794 -datadir=* | --datadir=* | --datadi=* | --datad=*)
795 datadir=$ac_optarg ;;
796
797 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
798 | --dataroo | --dataro | --datar)
799 ac_prev=datarootdir ;;
800 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
801 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
802 datarootdir=$ac_optarg ;;
803
804 -disable-* | --disable-*)
805 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
806 # Reject names that are not valid shell variable names.
807 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
808 as_fn_error $? "invalid feature name: $ac_useropt"
809 ac_useropt_orig=$ac_useropt
810 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
811 case $ac_user_opts in
812 *"
813"enable_$ac_useropt"
814"*) ;;
815 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
816 ac_unrecognized_sep=', ';;
817 esac
818 eval enable_$ac_useropt=no ;;
819
820 -docdir | --docdir | --docdi | --doc | --do)
821 ac_prev=docdir ;;
822 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
823 docdir=$ac_optarg ;;
824
825 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
826 ac_prev=dvidir ;;
827 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
828 dvidir=$ac_optarg ;;
829
830 -enable-* | --enable-*)
831 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
832 # Reject names that are not valid shell variable names.
833 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
834 as_fn_error $? "invalid feature name: $ac_useropt"
835 ac_useropt_orig=$ac_useropt
836 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
837 case $ac_user_opts in
838 *"
839"enable_$ac_useropt"
840"*) ;;
841 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
842 ac_unrecognized_sep=', ';;
843 esac
844 eval enable_$ac_useropt=\$ac_optarg ;;
845
846 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
847 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
848 | --exec | --exe | --ex)
849 ac_prev=exec_prefix ;;
850 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
851 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
852 | --exec=* | --exe=* | --ex=*)
853 exec_prefix=$ac_optarg ;;
854
855 -gas | --gas | --ga | --g)
856 # Obsolete; use --with-gas.
857 with_gas=yes ;;
858
859 -help | --help | --hel | --he | -h)
860 ac_init_help=long ;;
861 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
862 ac_init_help=recursive ;;
863 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
864 ac_init_help=short ;;
865
866 -host | --host | --hos | --ho)
867 ac_prev=host_alias ;;
868 -host=* | --host=* | --hos=* | --ho=*)
869 host_alias=$ac_optarg ;;
870
871 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
872 ac_prev=htmldir ;;
873 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
874 | --ht=*)
875 htmldir=$ac_optarg ;;
876
877 -includedir | --includedir | --includedi | --included | --include \
878 | --includ | --inclu | --incl | --inc)
879 ac_prev=includedir ;;
880 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
881 | --includ=* | --inclu=* | --incl=* | --inc=*)
882 includedir=$ac_optarg ;;
883
884 -infodir | --infodir | --infodi | --infod | --info | --inf)
885 ac_prev=infodir ;;
886 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
887 infodir=$ac_optarg ;;
888
889 -libdir | --libdir | --libdi | --libd)
890 ac_prev=libdir ;;
891 -libdir=* | --libdir=* | --libdi=* | --libd=*)
892 libdir=$ac_optarg ;;
893
894 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
895 | --libexe | --libex | --libe)
896 ac_prev=libexecdir ;;
897 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
898 | --libexe=* | --libex=* | --libe=*)
899 libexecdir=$ac_optarg ;;
900
901 -localedir | --localedir | --localedi | --localed | --locale)
902 ac_prev=localedir ;;
903 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
904 localedir=$ac_optarg ;;
905
906 -localstatedir | --localstatedir | --localstatedi | --localstated \
907 | --localstate | --localstat | --localsta | --localst | --locals)
908 ac_prev=localstatedir ;;
909 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
910 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
911 localstatedir=$ac_optarg ;;
912
913 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
914 ac_prev=mandir ;;
915 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
916 mandir=$ac_optarg ;;
917
918 -nfp | --nfp | --nf)
919 # Obsolete; use --without-fp.
920 with_fp=no ;;
921
922 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
923 | --no-cr | --no-c | -n)
924 no_create=yes ;;
925
926 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
927 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
928 no_recursion=yes ;;
929
930 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
931 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
932 | --oldin | --oldi | --old | --ol | --o)
933 ac_prev=oldincludedir ;;
934 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
935 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
936 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
937 oldincludedir=$ac_optarg ;;
938
939 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
940 ac_prev=prefix ;;
941 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
942 prefix=$ac_optarg ;;
943
944 -program-prefix | --program-prefix | --program-prefi | --program-pref \
945 | --program-pre | --program-pr | --program-p)
946 ac_prev=program_prefix ;;
947 -program-prefix=* | --program-prefix=* | --program-prefi=* \
948 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
949 program_prefix=$ac_optarg ;;
950
951 -program-suffix | --program-suffix | --program-suffi | --program-suff \
952 | --program-suf | --program-su | --program-s)
953 ac_prev=program_suffix ;;
954 -program-suffix=* | --program-suffix=* | --program-suffi=* \
955 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
956 program_suffix=$ac_optarg ;;
957
958 -program-transform-name | --program-transform-name \
959 | --program-transform-nam | --program-transform-na \
960 | --program-transform-n | --program-transform- \
961 | --program-transform | --program-transfor \
962 | --program-transfo | --program-transf \
963 | --program-trans | --program-tran \
964 | --progr-tra | --program-tr | --program-t)
965 ac_prev=program_transform_name ;;
966 -program-transform-name=* | --program-transform-name=* \
967 | --program-transform-nam=* | --program-transform-na=* \
968 | --program-transform-n=* | --program-transform-=* \
969 | --program-transform=* | --program-transfor=* \
970 | --program-transfo=* | --program-transf=* \
971 | --program-trans=* | --program-tran=* \
972 | --progr-tra=* | --program-tr=* | --program-t=*)
973 program_transform_name=$ac_optarg ;;
974
975 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
976 ac_prev=pdfdir ;;
977 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
978 pdfdir=$ac_optarg ;;
979
980 -psdir | --psdir | --psdi | --psd | --ps)
981 ac_prev=psdir ;;
982 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
983 psdir=$ac_optarg ;;
984
985 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
986 | -silent | --silent | --silen | --sile | --sil)
987 silent=yes ;;
988
989 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
990 ac_prev=sbindir ;;
991 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
992 | --sbi=* | --sb=*)
993 sbindir=$ac_optarg ;;
994
995 -sharedstatedir | --sharedstatedir | --sharedstatedi \
996 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
997 | --sharedst | --shareds | --shared | --share | --shar \
998 | --sha | --sh)
999 ac_prev=sharedstatedir ;;
1000 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1001 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1002 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1003 | --sha=* | --sh=*)
1004 sharedstatedir=$ac_optarg ;;
1005
1006 -site | --site | --sit)
1007 ac_prev=site ;;
1008 -site=* | --site=* | --sit=*)
1009 site=$ac_optarg ;;
1010
1011 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1012 ac_prev=srcdir ;;
1013 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1014 srcdir=$ac_optarg ;;
1015
1016 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1017 | --syscon | --sysco | --sysc | --sys | --sy)
1018 ac_prev=sysconfdir ;;
1019 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1020 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1021 sysconfdir=$ac_optarg ;;
1022
1023 -target | --target | --targe | --targ | --tar | --ta | --t)
1024 ac_prev=target_alias ;;
1025 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1026 target_alias=$ac_optarg ;;
1027
1028 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1029 verbose=yes ;;
1030
1031 -version | --version | --versio | --versi | --vers | -V)
1032 ac_init_version=: ;;
1033
1034 -with-* | --with-*)
1035 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1036 # Reject names that are not valid shell variable names.
1037 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1038 as_fn_error $? "invalid package name: $ac_useropt"
1039 ac_useropt_orig=$ac_useropt
1040 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1041 case $ac_user_opts in
1042 *"
1043"with_$ac_useropt"
1044"*) ;;
1045 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1046 ac_unrecognized_sep=', ';;
1047 esac
1048 eval with_$ac_useropt=\$ac_optarg ;;
1049
1050 -without-* | --without-*)
1051 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1052 # Reject names that are not valid shell variable names.
1053 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1054 as_fn_error $? "invalid package name: $ac_useropt"
1055 ac_useropt_orig=$ac_useropt
1056 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1057 case $ac_user_opts in
1058 *"
1059"with_$ac_useropt"
1060"*) ;;
1061 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1062 ac_unrecognized_sep=', ';;
1063 esac
1064 eval with_$ac_useropt=no ;;
1065
1066 --x)
1067 # Obsolete; use --with-x.
1068 with_x=yes ;;
1069
1070 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1071 | --x-incl | --x-inc | --x-in | --x-i)
1072 ac_prev=x_includes ;;
1073 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1074 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1075 x_includes=$ac_optarg ;;
1076
1077 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1078 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1079 ac_prev=x_libraries ;;
1080 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1081 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1082 x_libraries=$ac_optarg ;;
1083
1084 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1085Try \`$0 --help' for more information"
1086 ;;
1087
1088 *=*)
1089 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1090 # Reject names that are not valid shell variable names.
1091 case $ac_envvar in #(
1092 '' | [0-9]* | *[!_$as_cr_alnum]* )
1093 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1094 esac
1095 eval $ac_envvar=\$ac_optarg
1096 export $ac_envvar ;;
1097
1098 *)
1099 # FIXME: should be removed in autoconf 3.0.
1100 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1101 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1102 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1103 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1104 ;;
1105
1106 esac
1107done
1108
1109if test -n "$ac_prev"; then
1110 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1111 as_fn_error $? "missing argument to $ac_option"
1112fi
1113
1114if test -n "$ac_unrecognized_opts"; then
1115 case $enable_option_checking in
1116 no) ;;
1117 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1118 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1119 esac
1120fi
1121
1122# Check all directory arguments for consistency.
1123for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1124 datadir sysconfdir sharedstatedir localstatedir includedir \
1125 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1126 libdir localedir mandir
1127do
1128 eval ac_val=\$$ac_var
1129 # Remove trailing slashes.
1130 case $ac_val in
1131 */ )
1132 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1133 eval $ac_var=\$ac_val;;
1134 esac
1135 # Be sure to have absolute directory names.
1136 case $ac_val in
1137 [\\/$]* | ?:[\\/]* ) continue;;
1138 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1139 esac
1140 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1141done
1142
1143# There might be people who depend on the old broken behavior: `$host'
1144# used to hold the argument of --host etc.
1145# FIXME: To remove some day.
1146build=$build_alias
1147host=$host_alias
1148target=$target_alias
1149
1150# FIXME: To remove some day.
1151if test "x$host_alias" != x; then
1152 if test "x$build_alias" = x; then
1153 cross_compiling=maybe
1154 elif test "x$build_alias" != "x$host_alias"; then
1155 cross_compiling=yes
1156 fi
1157fi
1158
1159ac_tool_prefix=
1160test -n "$host_alias" && ac_tool_prefix=$host_alias-
1161
1162test "$silent" = yes && exec 6>/dev/null
1163
1164
1165ac_pwd=`pwd` && test -n "$ac_pwd" &&
1166ac_ls_di=`ls -di .` &&
1167ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1168 as_fn_error $? "working directory cannot be determined"
1169test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1170 as_fn_error $? "pwd does not report name of working directory"
1171
1172
1173# Find the source files, if location was not specified.
1174if test -z "$srcdir"; then
1175 ac_srcdir_defaulted=yes
1176 # Try the directory containing this script, then the parent directory.
1177 ac_confdir=`$as_dirname -- "$as_myself" ||
1178$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1179 X"$as_myself" : 'X\(//\)[^/]' \| \
1180 X"$as_myself" : 'X\(//\)$' \| \
1181 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1182$as_echo X"$as_myself" |
1183 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1184 s//\1/
1185 q
1186 }
1187 /^X\(\/\/\)[^/].*/{
1188 s//\1/
1189 q
1190 }
1191 /^X\(\/\/\)$/{
1192 s//\1/
1193 q
1194 }
1195 /^X\(\/\).*/{
1196 s//\1/
1197 q
1198 }
1199 s/.*/./; q'`
1200 srcdir=$ac_confdir
1201 if test ! -r "$srcdir/$ac_unique_file"; then
1202 srcdir=..
1203 fi
1204else
1205 ac_srcdir_defaulted=no
1206fi
1207if test ! -r "$srcdir/$ac_unique_file"; then
1208 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1209 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1210fi
1211ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1212ac_abs_confdir=`(
1213 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1214 pwd)`
1215# When building in place, set srcdir=.
1216if test "$ac_abs_confdir" = "$ac_pwd"; then
1217 srcdir=.
1218fi
1219# Remove unnecessary trailing slashes from srcdir.
1220# Double slashes in file names in object file debugging info
1221# mess up M-x gdb in Emacs.
1222case $srcdir in
1223*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1224esac
1225for ac_var in $ac_precious_vars; do
1226 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1227 eval ac_env_${ac_var}_value=\$${ac_var}
1228 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1229 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1230done
1231
1232#
1233# Report the --help message.
1234#
1235if test "$ac_init_help" = "long"; then
1236 # Omit some internal or obsolete options to make the list less imposing.
1237 # This message is too long to be a string in the A/UX 3.1 sh.
1238 cat <<_ACEOF
1239\`configure' configures openolt 1.4.0 to adapt to many kinds of systems.
1240
1241Usage: $0 [OPTION]... [VAR=VALUE]...
1242
1243To assign environment variables (e.g., CC, CFLAGS...), specify them as
1244VAR=VALUE. See below for descriptions of some of the useful variables.
1245
1246Defaults for the options are specified in brackets.
1247
1248Configuration:
1249 -h, --help display this help and exit
1250 --help=short display options specific to this package
1251 --help=recursive display the short help of all the included packages
1252 -V, --version display version information and exit
1253 -q, --quiet, --silent do not print \`checking ...' messages
1254 --cache-file=FILE cache test results in FILE [disabled]
1255 -C, --config-cache alias for \`--cache-file=config.cache'
1256 -n, --no-create do not create output files
1257 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1258
1259Installation directories:
1260 --prefix=PREFIX install architecture-independent files in PREFIX
1261 [$ac_default_prefix]
1262 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1263 [PREFIX]
1264
1265By default, \`make install' will install all the files in
1266\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1267an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1268for instance \`--prefix=\$HOME'.
1269
1270For better control, use the options below.
1271
1272Fine tuning of the installation directories:
1273 --bindir=DIR user executables [EPREFIX/bin]
1274 --sbindir=DIR system admin executables [EPREFIX/sbin]
1275 --libexecdir=DIR program executables [EPREFIX/libexec]
1276 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1277 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1278 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1279 --libdir=DIR object code libraries [EPREFIX/lib]
1280 --includedir=DIR C header files [PREFIX/include]
1281 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1282 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1283 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1284 --infodir=DIR info documentation [DATAROOTDIR/info]
1285 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1286 --mandir=DIR man documentation [DATAROOTDIR/man]
1287 --docdir=DIR documentation root [DATAROOTDIR/doc/openolt]
1288 --htmldir=DIR html documentation [DOCDIR]
1289 --dvidir=DIR dvi documentation [DOCDIR]
1290 --pdfdir=DIR pdf documentation [DOCDIR]
1291 --psdir=DIR ps documentation [DOCDIR]
1292_ACEOF
1293
1294 cat <<\_ACEOF
1295_ACEOF
1296fi
1297
1298if test -n "$ac_init_help"; then
1299 case $ac_init_help in
1300 short | recursive ) echo "Configuration of openolt 1.4.0:";;
1301 esac
1302 cat <<\_ACEOF
1303
1304Optional Packages:
1305 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1306 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1307 --with-sysroot=DIR search for usr/include, usr/lib, usr/lib64 etal
1308 within DIR
1309
1310Some influential environment variables:
1311 CXX C++ compiler command
1312 CXXFLAGS C++ compiler flags
1313 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1314 nonstandard directory <lib dir>
1315 LIBS libraries to pass to the linker, e.g. -l<library>
1316 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1317 you have headers in a nonstandard directory <include dir>
1318 CC C compiler command
1319 CFLAGS C compiler flags
1320 CPP C preprocessor
1321
1322Use these variables to override the choices made by `configure' or to help
1323it to find libraries and programs with nonstandard names/locations.
1324
1325Report bugs to <voltha-discuss@opencord.org>.
1326_ACEOF
1327ac_status=$?
1328fi
1329
1330if test "$ac_init_help" = "recursive"; then
1331 # If there are subdirs, report their specific --help.
1332 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1333 test -d "$ac_dir" ||
1334 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1335 continue
1336 ac_builddir=.
1337
1338case "$ac_dir" in
1339.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1340*)
1341 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1342 # A ".." for each directory in $ac_dir_suffix.
1343 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1344 case $ac_top_builddir_sub in
1345 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1346 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1347 esac ;;
1348esac
1349ac_abs_top_builddir=$ac_pwd
1350ac_abs_builddir=$ac_pwd$ac_dir_suffix
1351# for backward compatibility:
1352ac_top_builddir=$ac_top_build_prefix
1353
1354case $srcdir in
1355 .) # We are building in place.
1356 ac_srcdir=.
1357 ac_top_srcdir=$ac_top_builddir_sub
1358 ac_abs_top_srcdir=$ac_pwd ;;
1359 [\\/]* | ?:[\\/]* ) # Absolute name.
1360 ac_srcdir=$srcdir$ac_dir_suffix;
1361 ac_top_srcdir=$srcdir
1362 ac_abs_top_srcdir=$srcdir ;;
1363 *) # Relative name.
1364 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1365 ac_top_srcdir=$ac_top_build_prefix$srcdir
1366 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1367esac
1368ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1369
1370 cd "$ac_dir" || { ac_status=$?; continue; }
1371 # Check for guested configure.
1372 if test -f "$ac_srcdir/configure.gnu"; then
1373 echo &&
1374 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1375 elif test -f "$ac_srcdir/configure"; then
1376 echo &&
1377 $SHELL "$ac_srcdir/configure" --help=recursive
1378 else
1379 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1380 fi || ac_status=$?
1381 cd "$ac_pwd" || { ac_status=$?; break; }
1382 done
1383fi
1384
1385test -n "$ac_init_help" && exit $ac_status
1386if $ac_init_version; then
1387 cat <<\_ACEOF
1388openolt configure 1.4.0
1389generated by GNU Autoconf 2.69
1390
1391Copyright (C) 2012 Free Software Foundation, Inc.
1392This configure script is free software; the Free Software Foundation
1393gives unlimited permission to copy, distribute and modify it.
1394_ACEOF
1395 exit
1396fi
1397
1398## ------------------------ ##
1399## Autoconf initialization. ##
1400## ------------------------ ##
1401
1402# ac_fn_cxx_try_compile LINENO
1403# ----------------------------
1404# Try to compile conftest.$ac_ext, and return whether this succeeded.
1405ac_fn_cxx_try_compile ()
1406{
1407 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1408 rm -f conftest.$ac_objext
1409 if { { ac_try="$ac_compile"
1410case "(($ac_try" in
1411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1412 *) ac_try_echo=$ac_try;;
1413esac
1414eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1415$as_echo "$ac_try_echo"; } >&5
1416 (eval "$ac_compile") 2>conftest.err
1417 ac_status=$?
1418 if test -s conftest.err; then
1419 grep -v '^ *+' conftest.err >conftest.er1
1420 cat conftest.er1 >&5
1421 mv -f conftest.er1 conftest.err
1422 fi
1423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1424 test $ac_status = 0; } && {
1425 test -z "$ac_cxx_werror_flag" ||
1426 test ! -s conftest.err
1427 } && test -s conftest.$ac_objext; then :
1428 ac_retval=0
1429else
1430 $as_echo "$as_me: failed program was:" >&5
1431sed 's/^/| /' conftest.$ac_ext >&5
1432
1433 ac_retval=1
1434fi
1435 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1436 as_fn_set_status $ac_retval
1437
1438} # ac_fn_cxx_try_compile
1439
1440# ac_fn_c_try_compile LINENO
1441# --------------------------
1442# Try to compile conftest.$ac_ext, and return whether this succeeded.
1443ac_fn_c_try_compile ()
1444{
1445 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1446 rm -f conftest.$ac_objext
1447 if { { ac_try="$ac_compile"
1448case "(($ac_try" in
1449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1450 *) ac_try_echo=$ac_try;;
1451esac
1452eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1453$as_echo "$ac_try_echo"; } >&5
1454 (eval "$ac_compile") 2>conftest.err
1455 ac_status=$?
1456 if test -s conftest.err; then
1457 grep -v '^ *+' conftest.err >conftest.er1
1458 cat conftest.er1 >&5
1459 mv -f conftest.er1 conftest.err
1460 fi
1461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1462 test $ac_status = 0; } && {
1463 test -z "$ac_c_werror_flag" ||
1464 test ! -s conftest.err
1465 } && test -s conftest.$ac_objext; then :
1466 ac_retval=0
1467else
1468 $as_echo "$as_me: failed program was:" >&5
1469sed 's/^/| /' conftest.$ac_ext >&5
1470
1471 ac_retval=1
1472fi
1473 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1474 as_fn_set_status $ac_retval
1475
1476} # ac_fn_c_try_compile
1477
1478# ac_fn_c_try_link LINENO
1479# -----------------------
1480# Try to link conftest.$ac_ext, and return whether this succeeded.
1481ac_fn_c_try_link ()
1482{
1483 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1484 rm -f conftest.$ac_objext conftest$ac_exeext
1485 if { { ac_try="$ac_link"
1486case "(($ac_try" in
1487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1488 *) ac_try_echo=$ac_try;;
1489esac
1490eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1491$as_echo "$ac_try_echo"; } >&5
1492 (eval "$ac_link") 2>conftest.err
1493 ac_status=$?
1494 if test -s conftest.err; then
1495 grep -v '^ *+' conftest.err >conftest.er1
1496 cat conftest.er1 >&5
1497 mv -f conftest.er1 conftest.err
1498 fi
1499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1500 test $ac_status = 0; } && {
1501 test -z "$ac_c_werror_flag" ||
1502 test ! -s conftest.err
1503 } && test -s conftest$ac_exeext && {
1504 test "$cross_compiling" = yes ||
1505 test -x conftest$ac_exeext
1506 }; then :
1507 ac_retval=0
1508else
1509 $as_echo "$as_me: failed program was:" >&5
1510sed 's/^/| /' conftest.$ac_ext >&5
1511
1512 ac_retval=1
1513fi
1514 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1515 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1516 # interfere with the next link command; also delete a directory that is
1517 # left behind by Apple's compiler. We do this before executing the actions.
1518 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1519 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1520 as_fn_set_status $ac_retval
1521
1522} # ac_fn_c_try_link
1523
1524# ac_fn_c_try_cpp LINENO
1525# ----------------------
1526# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1527ac_fn_c_try_cpp ()
1528{
1529 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1530 if { { ac_try="$ac_cpp conftest.$ac_ext"
1531case "(($ac_try" in
1532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1533 *) ac_try_echo=$ac_try;;
1534esac
1535eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1536$as_echo "$ac_try_echo"; } >&5
1537 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1538 ac_status=$?
1539 if test -s conftest.err; then
1540 grep -v '^ *+' conftest.err >conftest.er1
1541 cat conftest.er1 >&5
1542 mv -f conftest.er1 conftest.err
1543 fi
1544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1545 test $ac_status = 0; } > conftest.i && {
1546 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1547 test ! -s conftest.err
1548 }; then :
1549 ac_retval=0
1550else
1551 $as_echo "$as_me: failed program was:" >&5
1552sed 's/^/| /' conftest.$ac_ext >&5
1553
1554 ac_retval=1
1555fi
1556 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1557 as_fn_set_status $ac_retval
1558
1559} # ac_fn_c_try_cpp
1560
1561# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1562# -------------------------------------------------------
1563# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1564# the include files in INCLUDES and setting the cache variable VAR
1565# accordingly.
1566ac_fn_c_check_header_mongrel ()
1567{
1568 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1569 if eval \${$3+:} false; then :
1570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1571$as_echo_n "checking for $2... " >&6; }
1572if eval \${$3+:} false; then :
1573 $as_echo_n "(cached) " >&6
1574fi
1575eval ac_res=\$$3
1576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1577$as_echo "$ac_res" >&6; }
1578else
1579 # Is the header compilable?
1580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1581$as_echo_n "checking $2 usability... " >&6; }
1582cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1583/* end confdefs.h. */
1584$4
1585#include <$2>
1586_ACEOF
1587if ac_fn_c_try_compile "$LINENO"; then :
1588 ac_header_compiler=yes
1589else
1590 ac_header_compiler=no
1591fi
1592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1594$as_echo "$ac_header_compiler" >&6; }
1595
1596# Is the header present?
1597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1598$as_echo_n "checking $2 presence... " >&6; }
1599cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1600/* end confdefs.h. */
1601#include <$2>
1602_ACEOF
1603if ac_fn_c_try_cpp "$LINENO"; then :
1604 ac_header_preproc=yes
1605else
1606 ac_header_preproc=no
1607fi
1608rm -f conftest.err conftest.i conftest.$ac_ext
1609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1610$as_echo "$ac_header_preproc" >&6; }
1611
1612# So? What about this header?
1613case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1614 yes:no: )
1615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1616$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1618$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1619 ;;
1620 no:yes:* )
1621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1622$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1624$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1626$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1628$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1630$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1631( $as_echo "## ------------------------------------------ ##
1632## Report this to voltha-discuss@opencord.org ##
1633## ------------------------------------------ ##"
1634 ) | sed "s/^/$as_me: WARNING: /" >&2
1635 ;;
1636esac
1637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1638$as_echo_n "checking for $2... " >&6; }
1639if eval \${$3+:} false; then :
1640 $as_echo_n "(cached) " >&6
1641else
1642 eval "$3=\$ac_header_compiler"
1643fi
1644eval ac_res=\$$3
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1646$as_echo "$ac_res" >&6; }
1647fi
1648 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1649
1650} # ac_fn_c_check_header_mongrel
1651
1652# ac_fn_c_try_run LINENO
1653# ----------------------
1654# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1655# that executables *can* be run.
1656ac_fn_c_try_run ()
1657{
1658 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659 if { { ac_try="$ac_link"
1660case "(($ac_try" in
1661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1662 *) ac_try_echo=$ac_try;;
1663esac
1664eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1665$as_echo "$ac_try_echo"; } >&5
1666 (eval "$ac_link") 2>&5
1667 ac_status=$?
1668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1669 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1670 { { case "(($ac_try" in
1671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1672 *) ac_try_echo=$ac_try;;
1673esac
1674eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1675$as_echo "$ac_try_echo"; } >&5
1676 (eval "$ac_try") 2>&5
1677 ac_status=$?
1678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1679 test $ac_status = 0; }; }; then :
1680 ac_retval=0
1681else
1682 $as_echo "$as_me: program exited with status $ac_status" >&5
1683 $as_echo "$as_me: failed program was:" >&5
1684sed 's/^/| /' conftest.$ac_ext >&5
1685
1686 ac_retval=$ac_status
1687fi
1688 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1689 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1690 as_fn_set_status $ac_retval
1691
1692} # ac_fn_c_try_run
1693
1694# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1695# -------------------------------------------------------
1696# Tests whether HEADER exists and can be compiled using the include files in
1697# INCLUDES, setting the cache variable VAR accordingly.
1698ac_fn_c_check_header_compile ()
1699{
1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1702$as_echo_n "checking for $2... " >&6; }
1703if eval \${$3+:} false; then :
1704 $as_echo_n "(cached) " >&6
1705else
1706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1707/* end confdefs.h. */
1708$4
1709#include <$2>
1710_ACEOF
1711if ac_fn_c_try_compile "$LINENO"; then :
1712 eval "$3=yes"
1713else
1714 eval "$3=no"
1715fi
1716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1717fi
1718eval ac_res=\$$3
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1720$as_echo "$ac_res" >&6; }
1721 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1722
1723} # ac_fn_c_check_header_compile
1724
1725# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1726# -------------------------------------------
1727# Tests whether TYPE exists after having included INCLUDES, setting cache
1728# variable VAR accordingly.
1729ac_fn_c_check_type ()
1730{
1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1733$as_echo_n "checking for $2... " >&6; }
1734if eval \${$3+:} false; then :
1735 $as_echo_n "(cached) " >&6
1736else
1737 eval "$3=no"
1738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1739/* end confdefs.h. */
1740$4
1741int
1742main ()
1743{
1744if (sizeof ($2))
1745 return 0;
1746 ;
1747 return 0;
1748}
1749_ACEOF
1750if ac_fn_c_try_compile "$LINENO"; then :
1751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1752/* end confdefs.h. */
1753$4
1754int
1755main ()
1756{
1757if (sizeof (($2)))
1758 return 0;
1759 ;
1760 return 0;
1761}
1762_ACEOF
1763if ac_fn_c_try_compile "$LINENO"; then :
1764
1765else
1766 eval "$3=yes"
1767fi
1768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1769fi
1770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1771fi
1772eval ac_res=\$$3
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1774$as_echo "$ac_res" >&6; }
1775 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1776
1777} # ac_fn_c_check_type
1778
1779# ac_fn_c_find_uintX_t LINENO BITS VAR
1780# ------------------------------------
1781# Finds an unsigned integer type with width BITS, setting cache variable VAR
1782# accordingly.
1783ac_fn_c_find_uintX_t ()
1784{
1785 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1787$as_echo_n "checking for uint$2_t... " >&6; }
1788if eval \${$3+:} false; then :
1789 $as_echo_n "(cached) " >&6
1790else
1791 eval "$3=no"
1792 # Order is important - never check a type that is potentially smaller
1793 # than half of the expected target width.
1794 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1795 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1797/* end confdefs.h. */
1798$ac_includes_default
1799int
1800main ()
1801{
1802static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1803test_array [0] = 0;
1804return test_array [0];
1805
1806 ;
1807 return 0;
1808}
1809_ACEOF
1810if ac_fn_c_try_compile "$LINENO"; then :
1811 case $ac_type in #(
1812 uint$2_t) :
1813 eval "$3=yes" ;; #(
1814 *) :
1815 eval "$3=\$ac_type" ;;
1816esac
1817fi
1818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1819 if eval test \"x\$"$3"\" = x"no"; then :
1820
1821else
1822 break
1823fi
1824 done
1825fi
1826eval ac_res=\$$3
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1828$as_echo "$ac_res" >&6; }
1829 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1830
1831} # ac_fn_c_find_uintX_t
1832
1833# ac_fn_c_check_func LINENO FUNC VAR
1834# ----------------------------------
1835# Tests whether FUNC exists, setting the cache variable VAR accordingly
1836ac_fn_c_check_func ()
1837{
1838 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1840$as_echo_n "checking for $2... " >&6; }
1841if eval \${$3+:} false; then :
1842 $as_echo_n "(cached) " >&6
1843else
1844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1845/* end confdefs.h. */
1846/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1847 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1848#define $2 innocuous_$2
1849
1850/* System header to define __stub macros and hopefully few prototypes,
1851 which can conflict with char $2 (); below.
1852 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1853 <limits.h> exists even on freestanding compilers. */
1854
1855#ifdef __STDC__
1856# include <limits.h>
1857#else
1858# include <assert.h>
1859#endif
1860
1861#undef $2
1862
1863/* Override any GCC internal prototype to avoid an error.
1864 Use char because int might match the return type of a GCC
1865 builtin and then its argument prototype would still apply. */
1866#ifdef __cplusplus
1867extern "C"
1868#endif
1869char $2 ();
1870/* The GNU C library defines this for functions which it implements
1871 to always fail with ENOSYS. Some functions are actually named
1872 something starting with __ and the normal name is an alias. */
1873#if defined __stub_$2 || defined __stub___$2
1874choke me
1875#endif
1876
1877int
1878main ()
1879{
1880return $2 ();
1881 ;
1882 return 0;
1883}
1884_ACEOF
1885if ac_fn_c_try_link "$LINENO"; then :
1886 eval "$3=yes"
1887else
1888 eval "$3=no"
1889fi
1890rm -f core conftest.err conftest.$ac_objext \
1891 conftest$ac_exeext conftest.$ac_ext
1892fi
1893eval ac_res=\$$3
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1895$as_echo "$ac_res" >&6; }
1896 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1897
1898} # ac_fn_c_check_func
1899cat >config.log <<_ACEOF
1900This file contains any messages produced by compilers while
1901running configure, to aid debugging if configure makes a mistake.
1902
1903It was created by openolt $as_me 1.4.0, which was
1904generated by GNU Autoconf 2.69. Invocation command line was
1905
1906 $ $0 $@
1907
1908_ACEOF
1909exec 5>>config.log
1910{
1911cat <<_ASUNAME
1912## --------- ##
1913## Platform. ##
1914## --------- ##
1915
1916hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1917uname -m = `(uname -m) 2>/dev/null || echo unknown`
1918uname -r = `(uname -r) 2>/dev/null || echo unknown`
1919uname -s = `(uname -s) 2>/dev/null || echo unknown`
1920uname -v = `(uname -v) 2>/dev/null || echo unknown`
1921
1922/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1923/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1924
1925/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1926/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1927/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1928/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1929/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1930/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1931/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1932
1933_ASUNAME
1934
1935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1936for as_dir in $PATH
1937do
1938 IFS=$as_save_IFS
1939 test -z "$as_dir" && as_dir=.
1940 $as_echo "PATH: $as_dir"
1941 done
1942IFS=$as_save_IFS
1943
1944} >&5
1945
1946cat >&5 <<_ACEOF
1947
1948
1949## ----------- ##
1950## Core tests. ##
1951## ----------- ##
1952
1953_ACEOF
1954
1955
1956# Keep a trace of the command line.
1957# Strip out --no-create and --no-recursion so they do not pile up.
1958# Strip out --silent because we don't want to record it for future runs.
1959# Also quote any args containing shell meta-characters.
1960# Make two passes to allow for proper duplicate-argument suppression.
1961ac_configure_args=
1962ac_configure_args0=
1963ac_configure_args1=
1964ac_must_keep_next=false
1965for ac_pass in 1 2
1966do
1967 for ac_arg
1968 do
1969 case $ac_arg in
1970 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1971 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1972 | -silent | --silent | --silen | --sile | --sil)
1973 continue ;;
1974 *\'*)
1975 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1976 esac
1977 case $ac_pass in
1978 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1979 2)
1980 as_fn_append ac_configure_args1 " '$ac_arg'"
1981 if test $ac_must_keep_next = true; then
1982 ac_must_keep_next=false # Got value, back to normal.
1983 else
1984 case $ac_arg in
1985 *=* | --config-cache | -C | -disable-* | --disable-* \
1986 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1987 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1988 | -with-* | --with-* | -without-* | --without-* | --x)
1989 case "$ac_configure_args0 " in
1990 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1991 esac
1992 ;;
1993 -* ) ac_must_keep_next=true ;;
1994 esac
1995 fi
1996 as_fn_append ac_configure_args " '$ac_arg'"
1997 ;;
1998 esac
1999 done
2000done
2001{ ac_configure_args0=; unset ac_configure_args0;}
2002{ ac_configure_args1=; unset ac_configure_args1;}
2003
2004# When interrupted or exit'd, cleanup temporary files, and complete
2005# config.log. We remove comments because anyway the quotes in there
2006# would cause problems or look ugly.
2007# WARNING: Use '\'' to represent an apostrophe within the trap.
2008# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2009trap 'exit_status=$?
2010 # Save into config.log some information that might help in debugging.
2011 {
2012 echo
2013
2014 $as_echo "## ---------------- ##
2015## Cache variables. ##
2016## ---------------- ##"
2017 echo
2018 # The following way of writing the cache mishandles newlines in values,
2019(
2020 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2021 eval ac_val=\$$ac_var
2022 case $ac_val in #(
2023 *${as_nl}*)
2024 case $ac_var in #(
2025 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2026$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2027 esac
2028 case $ac_var in #(
2029 _ | IFS | as_nl) ;; #(
2030 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2031 *) { eval $ac_var=; unset $ac_var;} ;;
2032 esac ;;
2033 esac
2034 done
2035 (set) 2>&1 |
2036 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2037 *${as_nl}ac_space=\ *)
2038 sed -n \
2039 "s/'\''/'\''\\\\'\'''\''/g;
2040 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2041 ;; #(
2042 *)
2043 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2044 ;;
2045 esac |
2046 sort
2047)
2048 echo
2049
2050 $as_echo "## ----------------- ##
2051## Output variables. ##
2052## ----------------- ##"
2053 echo
2054 for ac_var in $ac_subst_vars
2055 do
2056 eval ac_val=\$$ac_var
2057 case $ac_val in
2058 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2059 esac
2060 $as_echo "$ac_var='\''$ac_val'\''"
2061 done | sort
2062 echo
2063
2064 if test -n "$ac_subst_files"; then
2065 $as_echo "## ------------------- ##
2066## File substitutions. ##
2067## ------------------- ##"
2068 echo
2069 for ac_var in $ac_subst_files
2070 do
2071 eval ac_val=\$$ac_var
2072 case $ac_val in
2073 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2074 esac
2075 $as_echo "$ac_var='\''$ac_val'\''"
2076 done | sort
2077 echo
2078 fi
2079
2080 if test -s confdefs.h; then
2081 $as_echo "## ----------- ##
2082## confdefs.h. ##
2083## ----------- ##"
2084 echo
2085 cat confdefs.h
2086 echo
2087 fi
2088 test "$ac_signal" != 0 &&
2089 $as_echo "$as_me: caught signal $ac_signal"
2090 $as_echo "$as_me: exit $exit_status"
2091 } >&5
2092 rm -f core *.core core.conftest.* &&
2093 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2094 exit $exit_status
2095' 0
2096for ac_signal in 1 2 13 15; do
2097 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2098done
2099ac_signal=0
2100
2101# confdefs.h avoids OS command line length limits that DEFS can exceed.
2102rm -f -r conftest* confdefs.h
2103
2104$as_echo "/* confdefs.h */" > confdefs.h
2105
2106# Predefined preprocessor variables.
2107
2108cat >>confdefs.h <<_ACEOF
2109#define PACKAGE_NAME "$PACKAGE_NAME"
2110_ACEOF
2111
2112cat >>confdefs.h <<_ACEOF
2113#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2114_ACEOF
2115
2116cat >>confdefs.h <<_ACEOF
2117#define PACKAGE_VERSION "$PACKAGE_VERSION"
2118_ACEOF
2119
2120cat >>confdefs.h <<_ACEOF
2121#define PACKAGE_STRING "$PACKAGE_STRING"
2122_ACEOF
2123
2124cat >>confdefs.h <<_ACEOF
2125#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2126_ACEOF
2127
2128cat >>confdefs.h <<_ACEOF
2129#define PACKAGE_URL "$PACKAGE_URL"
2130_ACEOF
2131
2132
2133# Let the site file select an alternate cache file if it wants to.
2134# Prefer an explicitly selected file to automatically selected ones.
2135ac_site_file1=NONE
2136ac_site_file2=NONE
2137if test -n "$CONFIG_SITE"; then
2138 # We do not want a PATH search for config.site.
2139 case $CONFIG_SITE in #((
2140 -*) ac_site_file1=./$CONFIG_SITE;;
2141 */*) ac_site_file1=$CONFIG_SITE;;
2142 *) ac_site_file1=./$CONFIG_SITE;;
2143 esac
2144elif test "x$prefix" != xNONE; then
2145 ac_site_file1=$prefix/share/config.site
2146 ac_site_file2=$prefix/etc/config.site
2147else
2148 ac_site_file1=$ac_default_prefix/share/config.site
2149 ac_site_file2=$ac_default_prefix/etc/config.site
2150fi
2151for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2152do
2153 test "x$ac_site_file" = xNONE && continue
2154 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2156$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2157 sed 's/^/| /' "$ac_site_file" >&5
2158 . "$ac_site_file" \
2159 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2160$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2161as_fn_error $? "failed to load site script $ac_site_file
2162See \`config.log' for more details" "$LINENO" 5; }
2163 fi
2164done
2165
2166if test -r "$cache_file"; then
2167 # Some versions of bash will fail to source /dev/null (special files
2168 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2169 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2171$as_echo "$as_me: loading cache $cache_file" >&6;}
2172 case $cache_file in
2173 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2174 *) . "./$cache_file";;
2175 esac
2176 fi
2177else
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2179$as_echo "$as_me: creating cache $cache_file" >&6;}
2180 >$cache_file
2181fi
2182
2183# Check that the precious variables saved in the cache have kept the same
2184# value.
2185ac_cache_corrupted=false
2186for ac_var in $ac_precious_vars; do
2187 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2188 eval ac_new_set=\$ac_env_${ac_var}_set
2189 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2190 eval ac_new_val=\$ac_env_${ac_var}_value
2191 case $ac_old_set,$ac_new_set in
2192 set,)
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2194$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2195 ac_cache_corrupted=: ;;
2196 ,set)
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2198$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2199 ac_cache_corrupted=: ;;
2200 ,);;
2201 *)
2202 if test "x$ac_old_val" != "x$ac_new_val"; then
2203 # differences in whitespace do not lead to failure.
2204 ac_old_val_w=`echo x $ac_old_val`
2205 ac_new_val_w=`echo x $ac_new_val`
2206 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2208$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2209 ac_cache_corrupted=:
2210 else
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2212$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2213 eval $ac_var=\$ac_old_val
2214 fi
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2216$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2218$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2219 fi;;
2220 esac
2221 # Pass precious variables to config.status.
2222 if test "$ac_new_set" = set; then
2223 case $ac_new_val in
2224 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2225 *) ac_arg=$ac_var=$ac_new_val ;;
2226 esac
2227 case " $ac_configure_args " in
2228 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2229 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2230 esac
2231 fi
2232done
2233if $ac_cache_corrupted; then
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2235$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2237$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2238 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2239fi
2240## -------------------- ##
2241## Main body of script. ##
2242## -------------------- ##
2243
2244ac_ext=c
2245ac_cpp='$CPP $CPPFLAGS'
2246ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2247ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2248ac_compiler_gnu=$ac_cv_c_compiler_gnu
2249
2250
2251
2252ac_config_headers="$ac_config_headers config.h"
2253
2254
2255
2256# Check whether --with-sysroot was given.
2257if test "${with_sysroot+set}" = set; then :
2258 withval=$with_sysroot;
2259 sysroot=$withval
2260
2261 if test "$sysroot" = "yes"; then
2262 sysroot='${exec_prefix}/${target_alias}/sys-root'
2263 elif test "$sysroot" = "no"; then
2264 sysroot=
2265 fi
2266
2267 if test "x$sysroot" != x; then
2268 CXXFLAGS="$CXXFLAGS --sysroot=$sysroot"
2269 LDFLAGS="$LDFLAGS --sysroot=$sysroot"
2270 fi
2271
2272fi
2273
2274
2275# Checks for programs.
2276ac_ext=cpp
2277ac_cpp='$CXXCPP $CPPFLAGS'
2278ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2279ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2280ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2281if test -z "$CXX"; then
2282 if test -n "$CCC"; then
2283 CXX=$CCC
2284 else
2285 if test -n "$ac_tool_prefix"; then
2286 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2287 do
2288 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2289set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2291$as_echo_n "checking for $ac_word... " >&6; }
2292if ${ac_cv_prog_CXX+:} false; then :
2293 $as_echo_n "(cached) " >&6
2294else
2295 if test -n "$CXX"; then
2296 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2297else
2298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2299for as_dir in $PATH
2300do
2301 IFS=$as_save_IFS
2302 test -z "$as_dir" && as_dir=.
2303 for ac_exec_ext in '' $ac_executable_extensions; do
2304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2305 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2307 break 2
2308 fi
2309done
2310 done
2311IFS=$as_save_IFS
2312
2313fi
2314fi
2315CXX=$ac_cv_prog_CXX
2316if test -n "$CXX"; then
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2318$as_echo "$CXX" >&6; }
2319else
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2321$as_echo "no" >&6; }
2322fi
2323
2324
2325 test -n "$CXX" && break
2326 done
2327fi
2328if test -z "$CXX"; then
2329 ac_ct_CXX=$CXX
2330 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2331do
2332 # Extract the first word of "$ac_prog", so it can be a program name with args.
2333set dummy $ac_prog; ac_word=$2
2334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2335$as_echo_n "checking for $ac_word... " >&6; }
2336if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2337 $as_echo_n "(cached) " >&6
2338else
2339 if test -n "$ac_ct_CXX"; then
2340 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2341else
2342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2343for as_dir in $PATH
2344do
2345 IFS=$as_save_IFS
2346 test -z "$as_dir" && as_dir=.
2347 for ac_exec_ext in '' $ac_executable_extensions; do
2348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2349 ac_cv_prog_ac_ct_CXX="$ac_prog"
2350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2351 break 2
2352 fi
2353done
2354 done
2355IFS=$as_save_IFS
2356
2357fi
2358fi
2359ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2360if test -n "$ac_ct_CXX"; then
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2362$as_echo "$ac_ct_CXX" >&6; }
2363else
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2365$as_echo "no" >&6; }
2366fi
2367
2368
2369 test -n "$ac_ct_CXX" && break
2370done
2371
2372 if test "x$ac_ct_CXX" = x; then
2373 CXX="g++"
2374 else
2375 case $cross_compiling:$ac_tool_warned in
2376yes:)
2377{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2378$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2379ac_tool_warned=yes ;;
2380esac
2381 CXX=$ac_ct_CXX
2382 fi
2383fi
2384
2385 fi
2386fi
2387# Provide some information about the compiler.
2388$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2389set X $ac_compile
2390ac_compiler=$2
2391for ac_option in --version -v -V -qversion; do
2392 { { ac_try="$ac_compiler $ac_option >&5"
2393case "(($ac_try" in
2394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2395 *) ac_try_echo=$ac_try;;
2396esac
2397eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2398$as_echo "$ac_try_echo"; } >&5
2399 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2400 ac_status=$?
2401 if test -s conftest.err; then
2402 sed '10a\
2403... rest of stderr output deleted ...
2404 10q' conftest.err >conftest.er1
2405 cat conftest.er1 >&5
2406 fi
2407 rm -f conftest.er1 conftest.err
2408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2409 test $ac_status = 0; }
2410done
2411
2412cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2413/* end confdefs.h. */
2414
2415int
2416main ()
2417{
2418
2419 ;
2420 return 0;
2421}
2422_ACEOF
2423ac_clean_files_save=$ac_clean_files
2424ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2425# Try to create an executable without -o first, disregard a.out.
2426# It will help us diagnose broken compilers, and finding out an intuition
2427# of exeext.
2428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
2429$as_echo_n "checking whether the C++ compiler works... " >&6; }
2430ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2431
2432# The possible output files:
2433ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2434
2435ac_rmfiles=
2436for ac_file in $ac_files
2437do
2438 case $ac_file in
2439 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2440 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2441 esac
2442done
2443rm -f $ac_rmfiles
2444
2445if { { ac_try="$ac_link_default"
2446case "(($ac_try" in
2447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2448 *) ac_try_echo=$ac_try;;
2449esac
2450eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2451$as_echo "$ac_try_echo"; } >&5
2452 (eval "$ac_link_default") 2>&5
2453 ac_status=$?
2454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2455 test $ac_status = 0; }; then :
2456 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2457# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2458# in a Makefile. We should not override ac_cv_exeext if it was cached,
2459# so that the user can short-circuit this test for compilers unknown to
2460# Autoconf.
2461for ac_file in $ac_files ''
2462do
2463 test -f "$ac_file" || continue
2464 case $ac_file in
2465 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2466 ;;
2467 [ab].out )
2468 # We found the default executable, but exeext='' is most
2469 # certainly right.
2470 break;;
2471 *.* )
2472 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2473 then :; else
2474 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2475 fi
2476 # We set ac_cv_exeext here because the later test for it is not
2477 # safe: cross compilers may not add the suffix if given an `-o'
2478 # argument, so we may need to know it at that point already.
2479 # Even if this section looks crufty: it has the advantage of
2480 # actually working.
2481 break;;
2482 * )
2483 break;;
2484 esac
2485done
2486test "$ac_cv_exeext" = no && ac_cv_exeext=
2487
2488else
2489 ac_file=''
2490fi
2491if test -z "$ac_file"; then :
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2493$as_echo "no" >&6; }
2494$as_echo "$as_me: failed program was:" >&5
2495sed 's/^/| /' conftest.$ac_ext >&5
2496
2497{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2498$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2499as_fn_error 77 "C++ compiler cannot create executables
2500See \`config.log' for more details" "$LINENO" 5; }
2501else
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2503$as_echo "yes" >&6; }
2504fi
2505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
2506$as_echo_n "checking for C++ compiler default output file name... " >&6; }
2507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2508$as_echo "$ac_file" >&6; }
2509ac_exeext=$ac_cv_exeext
2510
2511rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2512ac_clean_files=$ac_clean_files_save
2513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2514$as_echo_n "checking for suffix of executables... " >&6; }
2515if { { ac_try="$ac_link"
2516case "(($ac_try" in
2517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2518 *) ac_try_echo=$ac_try;;
2519esac
2520eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2521$as_echo "$ac_try_echo"; } >&5
2522 (eval "$ac_link") 2>&5
2523 ac_status=$?
2524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2525 test $ac_status = 0; }; then :
2526 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2527# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2528# work properly (i.e., refer to `conftest.exe'), while it won't with
2529# `rm'.
2530for ac_file in conftest.exe conftest conftest.*; do
2531 test -f "$ac_file" || continue
2532 case $ac_file in
2533 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2534 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2535 break;;
2536 * ) break;;
2537 esac
2538done
2539else
2540 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2541$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2542as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2543See \`config.log' for more details" "$LINENO" 5; }
2544fi
2545rm -f conftest conftest$ac_cv_exeext
2546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2547$as_echo "$ac_cv_exeext" >&6; }
2548
2549rm -f conftest.$ac_ext
2550EXEEXT=$ac_cv_exeext
2551ac_exeext=$EXEEXT
2552cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2553/* end confdefs.h. */
2554#include <stdio.h>
2555int
2556main ()
2557{
2558FILE *f = fopen ("conftest.out", "w");
2559 return ferror (f) || fclose (f) != 0;
2560
2561 ;
2562 return 0;
2563}
2564_ACEOF
2565ac_clean_files="$ac_clean_files conftest.out"
2566# Check that the compiler produces executables we can run. If not, either
2567# the compiler is broken, or we cross compile.
2568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2569$as_echo_n "checking whether we are cross compiling... " >&6; }
2570if test "$cross_compiling" != yes; then
2571 { { ac_try="$ac_link"
2572case "(($ac_try" in
2573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2574 *) ac_try_echo=$ac_try;;
2575esac
2576eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2577$as_echo "$ac_try_echo"; } >&5
2578 (eval "$ac_link") 2>&5
2579 ac_status=$?
2580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2581 test $ac_status = 0; }
2582 if { ac_try='./conftest$ac_cv_exeext'
2583 { { case "(($ac_try" in
2584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2585 *) ac_try_echo=$ac_try;;
2586esac
2587eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2588$as_echo "$ac_try_echo"; } >&5
2589 (eval "$ac_try") 2>&5
2590 ac_status=$?
2591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2592 test $ac_status = 0; }; }; then
2593 cross_compiling=no
2594 else
2595 if test "$cross_compiling" = maybe; then
2596 cross_compiling=yes
2597 else
2598 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2599$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2600as_fn_error $? "cannot run C++ compiled programs.
2601If you meant to cross compile, use \`--host'.
2602See \`config.log' for more details" "$LINENO" 5; }
2603 fi
2604 fi
2605fi
2606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2607$as_echo "$cross_compiling" >&6; }
2608
2609rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2610ac_clean_files=$ac_clean_files_save
2611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2612$as_echo_n "checking for suffix of object files... " >&6; }
2613if ${ac_cv_objext+:} false; then :
2614 $as_echo_n "(cached) " >&6
2615else
2616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2617/* end confdefs.h. */
2618
2619int
2620main ()
2621{
2622
2623 ;
2624 return 0;
2625}
2626_ACEOF
2627rm -f conftest.o conftest.obj
2628if { { ac_try="$ac_compile"
2629case "(($ac_try" in
2630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2631 *) ac_try_echo=$ac_try;;
2632esac
2633eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2634$as_echo "$ac_try_echo"; } >&5
2635 (eval "$ac_compile") 2>&5
2636 ac_status=$?
2637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2638 test $ac_status = 0; }; then :
2639 for ac_file in conftest.o conftest.obj conftest.*; do
2640 test -f "$ac_file" || continue;
2641 case $ac_file in
2642 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2643 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2644 break;;
2645 esac
2646done
2647else
2648 $as_echo "$as_me: failed program was:" >&5
2649sed 's/^/| /' conftest.$ac_ext >&5
2650
2651{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2652$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2653as_fn_error $? "cannot compute suffix of object files: cannot compile
2654See \`config.log' for more details" "$LINENO" 5; }
2655fi
2656rm -f conftest.$ac_cv_objext conftest.$ac_ext
2657fi
2658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2659$as_echo "$ac_cv_objext" >&6; }
2660OBJEXT=$ac_cv_objext
2661ac_objext=$OBJEXT
2662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
2663$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
2664if ${ac_cv_cxx_compiler_gnu+:} false; then :
2665 $as_echo_n "(cached) " >&6
2666else
2667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2668/* end confdefs.h. */
2669
2670int
2671main ()
2672{
2673#ifndef __GNUC__
2674 choke me
2675#endif
2676
2677 ;
2678 return 0;
2679}
2680_ACEOF
2681if ac_fn_cxx_try_compile "$LINENO"; then :
2682 ac_compiler_gnu=yes
2683else
2684 ac_compiler_gnu=no
2685fi
2686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2687ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2688
2689fi
2690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
2691$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
2692if test $ac_compiler_gnu = yes; then
2693 GXX=yes
2694else
2695 GXX=
2696fi
2697ac_test_CXXFLAGS=${CXXFLAGS+set}
2698ac_save_CXXFLAGS=$CXXFLAGS
2699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
2700$as_echo_n "checking whether $CXX accepts -g... " >&6; }
2701if ${ac_cv_prog_cxx_g+:} false; then :
2702 $as_echo_n "(cached) " >&6
2703else
2704 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2705 ac_cxx_werror_flag=yes
2706 ac_cv_prog_cxx_g=no
2707 CXXFLAGS="-g"
2708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2709/* end confdefs.h. */
2710
2711int
2712main ()
2713{
2714
2715 ;
2716 return 0;
2717}
2718_ACEOF
2719if ac_fn_cxx_try_compile "$LINENO"; then :
2720 ac_cv_prog_cxx_g=yes
2721else
2722 CXXFLAGS=""
2723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2724/* end confdefs.h. */
2725
2726int
2727main ()
2728{
2729
2730 ;
2731 return 0;
2732}
2733_ACEOF
2734if ac_fn_cxx_try_compile "$LINENO"; then :
2735
2736else
2737 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2738 CXXFLAGS="-g"
2739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2740/* end confdefs.h. */
2741
2742int
2743main ()
2744{
2745
2746 ;
2747 return 0;
2748}
2749_ACEOF
2750if ac_fn_cxx_try_compile "$LINENO"; then :
2751 ac_cv_prog_cxx_g=yes
2752fi
2753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2754fi
2755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2756fi
2757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2758 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2759fi
2760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
2761$as_echo "$ac_cv_prog_cxx_g" >&6; }
2762if test "$ac_test_CXXFLAGS" = set; then
2763 CXXFLAGS=$ac_save_CXXFLAGS
2764elif test $ac_cv_prog_cxx_g = yes; then
2765 if test "$GXX" = yes; then
2766 CXXFLAGS="-g -O2"
2767 else
2768 CXXFLAGS="-g"
2769 fi
2770else
2771 if test "$GXX" = yes; then
2772 CXXFLAGS="-O2"
2773 else
2774 CXXFLAGS=
2775 fi
2776fi
2777ac_ext=c
2778ac_cpp='$CPP $CPPFLAGS'
2779ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2780ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2781ac_compiler_gnu=$ac_cv_c_compiler_gnu
2782
2783ac_ext=c
2784ac_cpp='$CPP $CPPFLAGS'
2785ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2786ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2787ac_compiler_gnu=$ac_cv_c_compiler_gnu
2788if test -n "$ac_tool_prefix"; then
2789 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2790set dummy ${ac_tool_prefix}gcc; ac_word=$2
2791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2792$as_echo_n "checking for $ac_word... " >&6; }
2793if ${ac_cv_prog_CC+:} false; then :
2794 $as_echo_n "(cached) " >&6
2795else
2796 if test -n "$CC"; then
2797 ac_cv_prog_CC="$CC" # Let the user override the test.
2798else
2799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2800for as_dir in $PATH
2801do
2802 IFS=$as_save_IFS
2803 test -z "$as_dir" && as_dir=.
2804 for ac_exec_ext in '' $ac_executable_extensions; do
2805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2806 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2808 break 2
2809 fi
2810done
2811 done
2812IFS=$as_save_IFS
2813
2814fi
2815fi
2816CC=$ac_cv_prog_CC
2817if test -n "$CC"; then
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2819$as_echo "$CC" >&6; }
2820else
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2822$as_echo "no" >&6; }
2823fi
2824
2825
2826fi
2827if test -z "$ac_cv_prog_CC"; then
2828 ac_ct_CC=$CC
2829 # Extract the first word of "gcc", so it can be a program name with args.
2830set dummy gcc; ac_word=$2
2831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2832$as_echo_n "checking for $ac_word... " >&6; }
2833if ${ac_cv_prog_ac_ct_CC+:} false; then :
2834 $as_echo_n "(cached) " >&6
2835else
2836 if test -n "$ac_ct_CC"; then
2837 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2838else
2839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2840for as_dir in $PATH
2841do
2842 IFS=$as_save_IFS
2843 test -z "$as_dir" && as_dir=.
2844 for ac_exec_ext in '' $ac_executable_extensions; do
2845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2846 ac_cv_prog_ac_ct_CC="gcc"
2847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2848 break 2
2849 fi
2850done
2851 done
2852IFS=$as_save_IFS
2853
2854fi
2855fi
2856ac_ct_CC=$ac_cv_prog_ac_ct_CC
2857if test -n "$ac_ct_CC"; then
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2859$as_echo "$ac_ct_CC" >&6; }
2860else
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2862$as_echo "no" >&6; }
2863fi
2864
2865 if test "x$ac_ct_CC" = x; then
2866 CC=""
2867 else
2868 case $cross_compiling:$ac_tool_warned in
2869yes:)
2870{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2871$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2872ac_tool_warned=yes ;;
2873esac
2874 CC=$ac_ct_CC
2875 fi
2876else
2877 CC="$ac_cv_prog_CC"
2878fi
2879
2880if test -z "$CC"; then
2881 if test -n "$ac_tool_prefix"; then
2882 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2883set dummy ${ac_tool_prefix}cc; ac_word=$2
2884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2885$as_echo_n "checking for $ac_word... " >&6; }
2886if ${ac_cv_prog_CC+:} false; then :
2887 $as_echo_n "(cached) " >&6
2888else
2889 if test -n "$CC"; then
2890 ac_cv_prog_CC="$CC" # Let the user override the test.
2891else
2892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2893for as_dir in $PATH
2894do
2895 IFS=$as_save_IFS
2896 test -z "$as_dir" && as_dir=.
2897 for ac_exec_ext in '' $ac_executable_extensions; do
2898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2899 ac_cv_prog_CC="${ac_tool_prefix}cc"
2900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2901 break 2
2902 fi
2903done
2904 done
2905IFS=$as_save_IFS
2906
2907fi
2908fi
2909CC=$ac_cv_prog_CC
2910if test -n "$CC"; then
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2912$as_echo "$CC" >&6; }
2913else
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2915$as_echo "no" >&6; }
2916fi
2917
2918
2919 fi
2920fi
2921if test -z "$CC"; then
2922 # Extract the first word of "cc", so it can be a program name with args.
2923set dummy cc; ac_word=$2
2924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2925$as_echo_n "checking for $ac_word... " >&6; }
2926if ${ac_cv_prog_CC+:} false; then :
2927 $as_echo_n "(cached) " >&6
2928else
2929 if test -n "$CC"; then
2930 ac_cv_prog_CC="$CC" # Let the user override the test.
2931else
2932 ac_prog_rejected=no
2933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2934for as_dir in $PATH
2935do
2936 IFS=$as_save_IFS
2937 test -z "$as_dir" && as_dir=.
2938 for ac_exec_ext in '' $ac_executable_extensions; do
2939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2940 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2941 ac_prog_rejected=yes
2942 continue
2943 fi
2944 ac_cv_prog_CC="cc"
2945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2946 break 2
2947 fi
2948done
2949 done
2950IFS=$as_save_IFS
2951
2952if test $ac_prog_rejected = yes; then
2953 # We found a bogon in the path, so make sure we never use it.
2954 set dummy $ac_cv_prog_CC
2955 shift
2956 if test $# != 0; then
2957 # We chose a different compiler from the bogus one.
2958 # However, it has the same basename, so the bogon will be chosen
2959 # first if we set CC to just the basename; use the full file name.
2960 shift
2961 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2962 fi
2963fi
2964fi
2965fi
2966CC=$ac_cv_prog_CC
2967if test -n "$CC"; then
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2969$as_echo "$CC" >&6; }
2970else
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2972$as_echo "no" >&6; }
2973fi
2974
2975
2976fi
2977if test -z "$CC"; then
2978 if test -n "$ac_tool_prefix"; then
2979 for ac_prog in cl.exe
2980 do
2981 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2982set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2984$as_echo_n "checking for $ac_word... " >&6; }
2985if ${ac_cv_prog_CC+:} false; then :
2986 $as_echo_n "(cached) " >&6
2987else
2988 if test -n "$CC"; then
2989 ac_cv_prog_CC="$CC" # Let the user override the test.
2990else
2991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2992for as_dir in $PATH
2993do
2994 IFS=$as_save_IFS
2995 test -z "$as_dir" && as_dir=.
2996 for ac_exec_ext in '' $ac_executable_extensions; do
2997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2998 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3000 break 2
3001 fi
3002done
3003 done
3004IFS=$as_save_IFS
3005
3006fi
3007fi
3008CC=$ac_cv_prog_CC
3009if test -n "$CC"; then
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3011$as_echo "$CC" >&6; }
3012else
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3014$as_echo "no" >&6; }
3015fi
3016
3017
3018 test -n "$CC" && break
3019 done
3020fi
3021if test -z "$CC"; then
3022 ac_ct_CC=$CC
3023 for ac_prog in cl.exe
3024do
3025 # Extract the first word of "$ac_prog", so it can be a program name with args.
3026set dummy $ac_prog; ac_word=$2
3027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3028$as_echo_n "checking for $ac_word... " >&6; }
3029if ${ac_cv_prog_ac_ct_CC+:} false; then :
3030 $as_echo_n "(cached) " >&6
3031else
3032 if test -n "$ac_ct_CC"; then
3033 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3034else
3035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3036for as_dir in $PATH
3037do
3038 IFS=$as_save_IFS
3039 test -z "$as_dir" && as_dir=.
3040 for ac_exec_ext in '' $ac_executable_extensions; do
3041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3042 ac_cv_prog_ac_ct_CC="$ac_prog"
3043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3044 break 2
3045 fi
3046done
3047 done
3048IFS=$as_save_IFS
3049
3050fi
3051fi
3052ac_ct_CC=$ac_cv_prog_ac_ct_CC
3053if test -n "$ac_ct_CC"; then
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3055$as_echo "$ac_ct_CC" >&6; }
3056else
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3058$as_echo "no" >&6; }
3059fi
3060
3061
3062 test -n "$ac_ct_CC" && break
3063done
3064
3065 if test "x$ac_ct_CC" = x; then
3066 CC=""
3067 else
3068 case $cross_compiling:$ac_tool_warned in
3069yes:)
3070{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3071$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3072ac_tool_warned=yes ;;
3073esac
3074 CC=$ac_ct_CC
3075 fi
3076fi
3077
3078fi
3079
3080
3081test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3082$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3083as_fn_error $? "no acceptable C compiler found in \$PATH
3084See \`config.log' for more details" "$LINENO" 5; }
3085
3086# Provide some information about the compiler.
3087$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3088set X $ac_compile
3089ac_compiler=$2
3090for ac_option in --version -v -V -qversion; do
3091 { { ac_try="$ac_compiler $ac_option >&5"
3092case "(($ac_try" in
3093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3094 *) ac_try_echo=$ac_try;;
3095esac
3096eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3097$as_echo "$ac_try_echo"; } >&5
3098 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3099 ac_status=$?
3100 if test -s conftest.err; then
3101 sed '10a\
3102... rest of stderr output deleted ...
3103 10q' conftest.err >conftest.er1
3104 cat conftest.er1 >&5
3105 fi
3106 rm -f conftest.er1 conftest.err
3107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3108 test $ac_status = 0; }
3109done
3110
3111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3112$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3113if ${ac_cv_c_compiler_gnu+:} false; then :
3114 $as_echo_n "(cached) " >&6
3115else
3116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3117/* end confdefs.h. */
3118
3119int
3120main ()
3121{
3122#ifndef __GNUC__
3123 choke me
3124#endif
3125
3126 ;
3127 return 0;
3128}
3129_ACEOF
3130if ac_fn_c_try_compile "$LINENO"; then :
3131 ac_compiler_gnu=yes
3132else
3133 ac_compiler_gnu=no
3134fi
3135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3136ac_cv_c_compiler_gnu=$ac_compiler_gnu
3137
3138fi
3139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3140$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3141if test $ac_compiler_gnu = yes; then
3142 GCC=yes
3143else
3144 GCC=
3145fi
3146ac_test_CFLAGS=${CFLAGS+set}
3147ac_save_CFLAGS=$CFLAGS
3148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3149$as_echo_n "checking whether $CC accepts -g... " >&6; }
3150if ${ac_cv_prog_cc_g+:} false; then :
3151 $as_echo_n "(cached) " >&6
3152else
3153 ac_save_c_werror_flag=$ac_c_werror_flag
3154 ac_c_werror_flag=yes
3155 ac_cv_prog_cc_g=no
3156 CFLAGS="-g"
3157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3158/* end confdefs.h. */
3159
3160int
3161main ()
3162{
3163
3164 ;
3165 return 0;
3166}
3167_ACEOF
3168if ac_fn_c_try_compile "$LINENO"; then :
3169 ac_cv_prog_cc_g=yes
3170else
3171 CFLAGS=""
3172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3173/* end confdefs.h. */
3174
3175int
3176main ()
3177{
3178
3179 ;
3180 return 0;
3181}
3182_ACEOF
3183if ac_fn_c_try_compile "$LINENO"; then :
3184
3185else
3186 ac_c_werror_flag=$ac_save_c_werror_flag
3187 CFLAGS="-g"
3188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3189/* end confdefs.h. */
3190
3191int
3192main ()
3193{
3194
3195 ;
3196 return 0;
3197}
3198_ACEOF
3199if ac_fn_c_try_compile "$LINENO"; then :
3200 ac_cv_prog_cc_g=yes
3201fi
3202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3203fi
3204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3205fi
3206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3207 ac_c_werror_flag=$ac_save_c_werror_flag
3208fi
3209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3210$as_echo "$ac_cv_prog_cc_g" >&6; }
3211if test "$ac_test_CFLAGS" = set; then
3212 CFLAGS=$ac_save_CFLAGS
3213elif test $ac_cv_prog_cc_g = yes; then
3214 if test "$GCC" = yes; then
3215 CFLAGS="-g -O2"
3216 else
3217 CFLAGS="-g"
3218 fi
3219else
3220 if test "$GCC" = yes; then
3221 CFLAGS="-O2"
3222 else
3223 CFLAGS=
3224 fi
3225fi
3226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3227$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3228if ${ac_cv_prog_cc_c89+:} false; then :
3229 $as_echo_n "(cached) " >&6
3230else
3231 ac_cv_prog_cc_c89=no
3232ac_save_CC=$CC
3233cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3234/* end confdefs.h. */
3235#include <stdarg.h>
3236#include <stdio.h>
3237struct stat;
3238/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3239struct buf { int x; };
3240FILE * (*rcsopen) (struct buf *, struct stat *, int);
3241static char *e (p, i)
3242 char **p;
3243 int i;
3244{
3245 return p[i];
3246}
3247static char *f (char * (*g) (char **, int), char **p, ...)
3248{
3249 char *s;
3250 va_list v;
3251 va_start (v,p);
3252 s = g (p, va_arg (v,int));
3253 va_end (v);
3254 return s;
3255}
3256
3257/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3258 function prototypes and stuff, but not '\xHH' hex character constants.
3259 These don't provoke an error unfortunately, instead are silently treated
3260 as 'x'. The following induces an error, until -std is added to get
3261 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3262 array size at least. It's necessary to write '\x00'==0 to get something
3263 that's true only with -std. */
3264int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3265
3266/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3267 inside strings and character constants. */
3268#define FOO(x) 'x'
3269int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3270
3271int test (int i, double x);
3272struct s1 {int (*f) (int a);};
3273struct s2 {int (*f) (double a);};
3274int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3275int argc;
3276char **argv;
3277int
3278main ()
3279{
3280return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3281 ;
3282 return 0;
3283}
3284_ACEOF
3285for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3286 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3287do
3288 CC="$ac_save_CC $ac_arg"
3289 if ac_fn_c_try_compile "$LINENO"; then :
3290 ac_cv_prog_cc_c89=$ac_arg
3291fi
3292rm -f core conftest.err conftest.$ac_objext
3293 test "x$ac_cv_prog_cc_c89" != "xno" && break
3294done
3295rm -f conftest.$ac_ext
3296CC=$ac_save_CC
3297
3298fi
3299# AC_CACHE_VAL
3300case "x$ac_cv_prog_cc_c89" in
3301 x)
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3303$as_echo "none needed" >&6; } ;;
3304 xno)
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3306$as_echo "unsupported" >&6; } ;;
3307 *)
3308 CC="$CC $ac_cv_prog_cc_c89"
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3310$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3311esac
3312if test "x$ac_cv_prog_cc_c89" != xno; then :
3313
3314fi
3315
3316ac_ext=c
3317ac_cpp='$CPP $CPPFLAGS'
3318ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3319ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3320ac_compiler_gnu=$ac_cv_c_compiler_gnu
3321
3322for ac_prog in gawk mawk nawk awk
3323do
3324 # Extract the first word of "$ac_prog", so it can be a program name with args.
3325set dummy $ac_prog; ac_word=$2
3326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3327$as_echo_n "checking for $ac_word... " >&6; }
3328if ${ac_cv_prog_AWK+:} false; then :
3329 $as_echo_n "(cached) " >&6
3330else
3331 if test -n "$AWK"; then
3332 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3333else
3334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3335for as_dir in $PATH
3336do
3337 IFS=$as_save_IFS
3338 test -z "$as_dir" && as_dir=.
3339 for ac_exec_ext in '' $ac_executable_extensions; do
3340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3341 ac_cv_prog_AWK="$ac_prog"
3342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3343 break 2
3344 fi
3345done
3346 done
3347IFS=$as_save_IFS
3348
3349fi
3350fi
3351AWK=$ac_cv_prog_AWK
3352if test -n "$AWK"; then
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3354$as_echo "$AWK" >&6; }
3355else
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3357$as_echo "no" >&6; }
3358fi
3359
3360
3361 test -n "$AWK" && break
3362done
3363
3364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3365$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3366if ${ac_cv_path_SED+:} false; then :
3367 $as_echo_n "(cached) " >&6
3368else
3369 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3370 for ac_i in 1 2 3 4 5 6 7; do
3371 ac_script="$ac_script$as_nl$ac_script"
3372 done
3373 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3374 { ac_script=; unset ac_script;}
3375 if test -z "$SED"; then
3376 ac_path_SED_found=false
3377 # Loop through the user's path and test for each of PROGNAME-LIST
3378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3379for as_dir in $PATH
3380do
3381 IFS=$as_save_IFS
3382 test -z "$as_dir" && as_dir=.
3383 for ac_prog in sed gsed; do
3384 for ac_exec_ext in '' $ac_executable_extensions; do
3385 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3386 as_fn_executable_p "$ac_path_SED" || continue
3387# Check for GNU ac_path_SED and select it if it is found.
3388 # Check for GNU $ac_path_SED
3389case `"$ac_path_SED" --version 2>&1` in
3390*GNU*)
3391 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3392*)
3393 ac_count=0
3394 $as_echo_n 0123456789 >"conftest.in"
3395 while :
3396 do
3397 cat "conftest.in" "conftest.in" >"conftest.tmp"
3398 mv "conftest.tmp" "conftest.in"
3399 cp "conftest.in" "conftest.nl"
3400 $as_echo '' >> "conftest.nl"
3401 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3402 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3403 as_fn_arith $ac_count + 1 && ac_count=$as_val
3404 if test $ac_count -gt ${ac_path_SED_max-0}; then
3405 # Best one so far, save it but keep looking for a better one
3406 ac_cv_path_SED="$ac_path_SED"
3407 ac_path_SED_max=$ac_count
3408 fi
3409 # 10*(2^10) chars as input seems more than enough
3410 test $ac_count -gt 10 && break
3411 done
3412 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3413esac
3414
3415 $ac_path_SED_found && break 3
3416 done
3417 done
3418 done
3419IFS=$as_save_IFS
3420 if test -z "$ac_cv_path_SED"; then
3421 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3422 fi
3423else
3424 ac_cv_path_SED=$SED
3425fi
3426
3427fi
3428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3429$as_echo "$ac_cv_path_SED" >&6; }
3430 SED="$ac_cv_path_SED"
3431 rm -f conftest.sed
3432
3433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3434$as_echo_n "checking whether ln -s works... " >&6; }
3435LN_S=$as_ln_s
3436if test "$LN_S" = "ln -s"; then
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3438$as_echo "yes" >&6; }
3439else
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3441$as_echo "no, using $LN_S" >&6; }
3442fi
3443
3444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3445$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3446set x ${MAKE-make}
3447ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3448if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3449 $as_echo_n "(cached) " >&6
3450else
3451 cat >conftest.make <<\_ACEOF
3452SHELL = /bin/sh
3453all:
3454 @echo '@@@%%%=$(MAKE)=@@@%%%'
3455_ACEOF
3456# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3457case `${MAKE-make} -f conftest.make 2>/dev/null` in
3458 *@@@%%%=?*=@@@%%%*)
3459 eval ac_cv_prog_make_${ac_make}_set=yes;;
3460 *)
3461 eval ac_cv_prog_make_${ac_make}_set=no;;
3462esac
3463rm -f conftest.make
3464fi
3465if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3467$as_echo "yes" >&6; }
3468 SET_MAKE=
3469else
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3471$as_echo "no" >&6; }
3472 SET_MAKE="MAKE=${MAKE-make}"
3473fi
3474
3475
3476# Checks for libraries.
3477
3478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldl" >&5
3479$as_echo_n "checking for main in -ldl... " >&6; }
3480if ${ac_cv_lib_dl_main+:} false; then :
3481 $as_echo_n "(cached) " >&6
3482else
3483 ac_check_lib_save_LIBS=$LIBS
3484LIBS="-ldl $LIBS"
3485cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3486/* end confdefs.h. */
3487
3488
3489int
3490main ()
3491{
3492return main ();
3493 ;
3494 return 0;
3495}
3496_ACEOF
3497if ac_fn_c_try_link "$LINENO"; then :
3498 ac_cv_lib_dl_main=yes
3499else
3500 ac_cv_lib_dl_main=no
3501fi
3502rm -f core conftest.err conftest.$ac_objext \
3503 conftest$ac_exeext conftest.$ac_ext
3504LIBS=$ac_check_lib_save_LIBS
3505fi
3506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_main" >&5
3507$as_echo "$ac_cv_lib_dl_main" >&6; }
3508if test "x$ac_cv_lib_dl_main" = xyes; then :
3509 cat >>confdefs.h <<_ACEOF
3510#define HAVE_LIBDL 1
3511_ACEOF
3512
3513 LIBS="-ldl $LIBS"
3514
3515fi
3516
3517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
3518$as_echo_n "checking for main in -lpthread... " >&6; }
3519if ${ac_cv_lib_pthread_main+:} false; then :
3520 $as_echo_n "(cached) " >&6
3521else
3522 ac_check_lib_save_LIBS=$LIBS
3523LIBS="-lpthread $LIBS"
3524cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3525/* end confdefs.h. */
3526
3527
3528int
3529main ()
3530{
3531return main ();
3532 ;
3533 return 0;
3534}
3535_ACEOF
3536if ac_fn_c_try_link "$LINENO"; then :
3537 ac_cv_lib_pthread_main=yes
3538else
3539 ac_cv_lib_pthread_main=no
3540fi
3541rm -f core conftest.err conftest.$ac_objext \
3542 conftest$ac_exeext conftest.$ac_ext
3543LIBS=$ac_check_lib_save_LIBS
3544fi
3545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5
3546$as_echo "$ac_cv_lib_pthread_main" >&6; }
3547if test "x$ac_cv_lib_pthread_main" = xyes; then :
3548 cat >>confdefs.h <<_ACEOF
3549#define HAVE_LIBPTHREAD 1
3550_ACEOF
3551
3552 LIBS="-lpthread $LIBS"
3553
3554fi
3555
3556
3557# Checks for header files.
3558ac_ext=c
3559ac_cpp='$CPP $CPPFLAGS'
3560ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3561ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3562ac_compiler_gnu=$ac_cv_c_compiler_gnu
3563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3564$as_echo_n "checking how to run the C preprocessor... " >&6; }
3565# On Suns, sometimes $CPP names a directory.
3566if test -n "$CPP" && test -d "$CPP"; then
3567 CPP=
3568fi
3569if test -z "$CPP"; then
3570 if ${ac_cv_prog_CPP+:} false; then :
3571 $as_echo_n "(cached) " >&6
3572else
3573 # Double quotes because CPP needs to be expanded
3574 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3575 do
3576 ac_preproc_ok=false
3577for ac_c_preproc_warn_flag in '' yes
3578do
3579 # Use a header file that comes with gcc, so configuring glibc
3580 # with a fresh cross-compiler works.
3581 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3582 # <limits.h> exists even on freestanding compilers.
3583 # On the NeXT, cc -E runs the code through the compiler's parser,
3584 # not just through cpp. "Syntax error" is here to catch this case.
3585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3586/* end confdefs.h. */
3587#ifdef __STDC__
3588# include <limits.h>
3589#else
3590# include <assert.h>
3591#endif
3592 Syntax error
3593_ACEOF
3594if ac_fn_c_try_cpp "$LINENO"; then :
3595
3596else
3597 # Broken: fails on valid input.
3598continue
3599fi
3600rm -f conftest.err conftest.i conftest.$ac_ext
3601
3602 # OK, works on sane cases. Now check whether nonexistent headers
3603 # can be detected and how.
3604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3605/* end confdefs.h. */
3606#include <ac_nonexistent.h>
3607_ACEOF
3608if ac_fn_c_try_cpp "$LINENO"; then :
3609 # Broken: success on invalid input.
3610continue
3611else
3612 # Passes both tests.
3613ac_preproc_ok=:
3614break
3615fi
3616rm -f conftest.err conftest.i conftest.$ac_ext
3617
3618done
3619# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3620rm -f conftest.i conftest.err conftest.$ac_ext
3621if $ac_preproc_ok; then :
3622 break
3623fi
3624
3625 done
3626 ac_cv_prog_CPP=$CPP
3627
3628fi
3629 CPP=$ac_cv_prog_CPP
3630else
3631 ac_cv_prog_CPP=$CPP
3632fi
3633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3634$as_echo "$CPP" >&6; }
3635ac_preproc_ok=false
3636for ac_c_preproc_warn_flag in '' yes
3637do
3638 # Use a header file that comes with gcc, so configuring glibc
3639 # with a fresh cross-compiler works.
3640 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3641 # <limits.h> exists even on freestanding compilers.
3642 # On the NeXT, cc -E runs the code through the compiler's parser,
3643 # not just through cpp. "Syntax error" is here to catch this case.
3644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3645/* end confdefs.h. */
3646#ifdef __STDC__
3647# include <limits.h>
3648#else
3649# include <assert.h>
3650#endif
3651 Syntax error
3652_ACEOF
3653if ac_fn_c_try_cpp "$LINENO"; then :
3654
3655else
3656 # Broken: fails on valid input.
3657continue
3658fi
3659rm -f conftest.err conftest.i conftest.$ac_ext
3660
3661 # OK, works on sane cases. Now check whether nonexistent headers
3662 # can be detected and how.
3663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3664/* end confdefs.h. */
3665#include <ac_nonexistent.h>
3666_ACEOF
3667if ac_fn_c_try_cpp "$LINENO"; then :
3668 # Broken: success on invalid input.
3669continue
3670else
3671 # Passes both tests.
3672ac_preproc_ok=:
3673break
3674fi
3675rm -f conftest.err conftest.i conftest.$ac_ext
3676
3677done
3678# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3679rm -f conftest.i conftest.err conftest.$ac_ext
3680if $ac_preproc_ok; then :
3681
3682else
3683 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3684$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3685as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3686See \`config.log' for more details" "$LINENO" 5; }
3687fi
3688
3689ac_ext=c
3690ac_cpp='$CPP $CPPFLAGS'
3691ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3692ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3693ac_compiler_gnu=$ac_cv_c_compiler_gnu
3694
3695
3696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3697$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3698if ${ac_cv_path_GREP+:} false; then :
3699 $as_echo_n "(cached) " >&6
3700else
3701 if test -z "$GREP"; then
3702 ac_path_GREP_found=false
3703 # Loop through the user's path and test for each of PROGNAME-LIST
3704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3705for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3706do
3707 IFS=$as_save_IFS
3708 test -z "$as_dir" && as_dir=.
3709 for ac_prog in grep ggrep; do
3710 for ac_exec_ext in '' $ac_executable_extensions; do
3711 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3712 as_fn_executable_p "$ac_path_GREP" || continue
3713# Check for GNU ac_path_GREP and select it if it is found.
3714 # Check for GNU $ac_path_GREP
3715case `"$ac_path_GREP" --version 2>&1` in
3716*GNU*)
3717 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3718*)
3719 ac_count=0
3720 $as_echo_n 0123456789 >"conftest.in"
3721 while :
3722 do
3723 cat "conftest.in" "conftest.in" >"conftest.tmp"
3724 mv "conftest.tmp" "conftest.in"
3725 cp "conftest.in" "conftest.nl"
3726 $as_echo 'GREP' >> "conftest.nl"
3727 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3728 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3729 as_fn_arith $ac_count + 1 && ac_count=$as_val
3730 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3731 # Best one so far, save it but keep looking for a better one
3732 ac_cv_path_GREP="$ac_path_GREP"
3733 ac_path_GREP_max=$ac_count
3734 fi
3735 # 10*(2^10) chars as input seems more than enough
3736 test $ac_count -gt 10 && break
3737 done
3738 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3739esac
3740
3741 $ac_path_GREP_found && break 3
3742 done
3743 done
3744 done
3745IFS=$as_save_IFS
3746 if test -z "$ac_cv_path_GREP"; then
3747 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3748 fi
3749else
3750 ac_cv_path_GREP=$GREP
3751fi
3752
3753fi
3754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3755$as_echo "$ac_cv_path_GREP" >&6; }
3756 GREP="$ac_cv_path_GREP"
3757
3758
3759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3760$as_echo_n "checking for egrep... " >&6; }
3761if ${ac_cv_path_EGREP+:} false; then :
3762 $as_echo_n "(cached) " >&6
3763else
3764 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3765 then ac_cv_path_EGREP="$GREP -E"
3766 else
3767 if test -z "$EGREP"; then
3768 ac_path_EGREP_found=false
3769 # Loop through the user's path and test for each of PROGNAME-LIST
3770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3771for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3772do
3773 IFS=$as_save_IFS
3774 test -z "$as_dir" && as_dir=.
3775 for ac_prog in egrep; do
3776 for ac_exec_ext in '' $ac_executable_extensions; do
3777 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3778 as_fn_executable_p "$ac_path_EGREP" || continue
3779# Check for GNU ac_path_EGREP and select it if it is found.
3780 # Check for GNU $ac_path_EGREP
3781case `"$ac_path_EGREP" --version 2>&1` in
3782*GNU*)
3783 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3784*)
3785 ac_count=0
3786 $as_echo_n 0123456789 >"conftest.in"
3787 while :
3788 do
3789 cat "conftest.in" "conftest.in" >"conftest.tmp"
3790 mv "conftest.tmp" "conftest.in"
3791 cp "conftest.in" "conftest.nl"
3792 $as_echo 'EGREP' >> "conftest.nl"
3793 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3794 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3795 as_fn_arith $ac_count + 1 && ac_count=$as_val
3796 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3797 # Best one so far, save it but keep looking for a better one
3798 ac_cv_path_EGREP="$ac_path_EGREP"
3799 ac_path_EGREP_max=$ac_count
3800 fi
3801 # 10*(2^10) chars as input seems more than enough
3802 test $ac_count -gt 10 && break
3803 done
3804 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3805esac
3806
3807 $ac_path_EGREP_found && break 3
3808 done
3809 done
3810 done
3811IFS=$as_save_IFS
3812 if test -z "$ac_cv_path_EGREP"; then
3813 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3814 fi
3815else
3816 ac_cv_path_EGREP=$EGREP
3817fi
3818
3819 fi
3820fi
3821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3822$as_echo "$ac_cv_path_EGREP" >&6; }
3823 EGREP="$ac_cv_path_EGREP"
3824
3825
3826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3827$as_echo_n "checking for ANSI C header files... " >&6; }
3828if ${ac_cv_header_stdc+:} false; then :
3829 $as_echo_n "(cached) " >&6
3830else
3831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3832/* end confdefs.h. */
3833#include <stdlib.h>
3834#include <stdarg.h>
3835#include <string.h>
3836#include <float.h>
3837
3838int
3839main ()
3840{
3841
3842 ;
3843 return 0;
3844}
3845_ACEOF
3846if ac_fn_c_try_compile "$LINENO"; then :
3847 ac_cv_header_stdc=yes
3848else
3849 ac_cv_header_stdc=no
3850fi
3851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3852
3853if test $ac_cv_header_stdc = yes; then
3854 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3856/* end confdefs.h. */
3857#include <string.h>
3858
3859_ACEOF
3860if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3861 $EGREP "memchr" >/dev/null 2>&1; then :
3862
3863else
3864 ac_cv_header_stdc=no
3865fi
3866rm -f conftest*
3867
3868fi
3869
3870if test $ac_cv_header_stdc = yes; then
3871 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3873/* end confdefs.h. */
3874#include <stdlib.h>
3875
3876_ACEOF
3877if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3878 $EGREP "free" >/dev/null 2>&1; then :
3879
3880else
3881 ac_cv_header_stdc=no
3882fi
3883rm -f conftest*
3884
3885fi
3886
3887if test $ac_cv_header_stdc = yes; then
3888 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3889 if test "$cross_compiling" = yes; then :
3890 :
3891else
3892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3893/* end confdefs.h. */
3894#include <ctype.h>
3895#include <stdlib.h>
3896#if ((' ' & 0x0FF) == 0x020)
3897# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3898# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3899#else
3900# define ISLOWER(c) \
3901 (('a' <= (c) && (c) <= 'i') \
3902 || ('j' <= (c) && (c) <= 'r') \
3903 || ('s' <= (c) && (c) <= 'z'))
3904# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3905#endif
3906
3907#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3908int
3909main ()
3910{
3911 int i;
3912 for (i = 0; i < 256; i++)
3913 if (XOR (islower (i), ISLOWER (i))
3914 || toupper (i) != TOUPPER (i))
3915 return 2;
3916 return 0;
3917}
3918_ACEOF
3919if ac_fn_c_try_run "$LINENO"; then :
3920
3921else
3922 ac_cv_header_stdc=no
3923fi
3924rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3925 conftest.$ac_objext conftest.beam conftest.$ac_ext
3926fi
3927
3928fi
3929fi
3930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3931$as_echo "$ac_cv_header_stdc" >&6; }
3932if test $ac_cv_header_stdc = yes; then
3933
3934$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3935
3936fi
3937
3938# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3939for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3940 inttypes.h stdint.h unistd.h
3941do :
3942 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3943ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3944"
3945if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3946 cat >>confdefs.h <<_ACEOF
3947#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3948_ACEOF
3949
3950fi
3951
3952done
3953
3954
3955for ac_header in unistd.h
3956do :
3957 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
3958if test "x$ac_cv_header_unistd_h" = xyes; then :
3959 cat >>confdefs.h <<_ACEOF
3960#define HAVE_UNISTD_H 1
3961_ACEOF
3962
3963fi
3964
3965done
3966
3967
3968# Checks for typedefs, structures, and compiler characteristics.
3969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
3970$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
3971if ${ac_cv_header_stdbool_h+:} false; then :
3972 $as_echo_n "(cached) " >&6
3973else
3974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3975/* end confdefs.h. */
3976
3977 #include <stdbool.h>
3978 #ifndef bool
3979 "error: bool is not defined"
3980 #endif
3981 #ifndef false
3982 "error: false is not defined"
3983 #endif
3984 #if false
3985 "error: false is not 0"
3986 #endif
3987 #ifndef true
3988 "error: true is not defined"
3989 #endif
3990 #if true != 1
3991 "error: true is not 1"
3992 #endif
3993 #ifndef __bool_true_false_are_defined
3994 "error: __bool_true_false_are_defined is not defined"
3995 #endif
3996
3997 struct s { _Bool s: 1; _Bool t; } s;
3998
3999 char a[true == 1 ? 1 : -1];
4000 char b[false == 0 ? 1 : -1];
4001 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
4002 char d[(bool) 0.5 == true ? 1 : -1];
4003 /* See body of main program for 'e'. */
4004 char f[(_Bool) 0.0 == false ? 1 : -1];
4005 char g[true];
4006 char h[sizeof (_Bool)];
4007 char i[sizeof s.t];
4008 enum { j = false, k = true, l = false * true, m = true * 256 };
4009 /* The following fails for
4010 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
4011 _Bool n[m];
4012 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
4013 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
4014 /* Catch a bug in an HP-UX C compiler. See
4015 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
4016 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
4017 */
4018 _Bool q = true;
4019 _Bool *pq = &q;
4020
4021int
4022main ()
4023{
4024
4025 bool e = &s;
4026 *pq |= q;
4027 *pq |= ! q;
4028 /* Refer to every declared value, to avoid compiler optimizations. */
4029 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
4030 + !m + !n + !o + !p + !q + !pq);
4031
4032 ;
4033 return 0;
4034}
4035_ACEOF
4036if ac_fn_c_try_compile "$LINENO"; then :
4037 ac_cv_header_stdbool_h=yes
4038else
4039 ac_cv_header_stdbool_h=no
4040fi
4041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4042fi
4043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
4044$as_echo "$ac_cv_header_stdbool_h" >&6; }
4045 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
4046if test "x$ac_cv_type__Bool" = xyes; then :
4047
4048cat >>confdefs.h <<_ACEOF
4049#define HAVE__BOOL 1
4050_ACEOF
4051
4052
4053fi
4054
4055
4056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4057$as_echo_n "checking for inline... " >&6; }
4058if ${ac_cv_c_inline+:} false; then :
4059 $as_echo_n "(cached) " >&6
4060else
4061 ac_cv_c_inline=no
4062for ac_kw in inline __inline__ __inline; do
4063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4064/* end confdefs.h. */
4065#ifndef __cplusplus
4066typedef int foo_t;
4067static $ac_kw foo_t static_foo () {return 0; }
4068$ac_kw foo_t foo () {return 0; }
4069#endif
4070
4071_ACEOF
4072if ac_fn_c_try_compile "$LINENO"; then :
4073 ac_cv_c_inline=$ac_kw
4074fi
4075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4076 test "$ac_cv_c_inline" != no && break
4077done
4078
4079fi
4080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4081$as_echo "$ac_cv_c_inline" >&6; }
4082
4083case $ac_cv_c_inline in
4084 inline | yes) ;;
4085 *)
4086 case $ac_cv_c_inline in
4087 no) ac_val=;;
4088 *) ac_val=$ac_cv_c_inline;;
4089 esac
4090 cat >>confdefs.h <<_ACEOF
4091#ifndef __cplusplus
4092#define inline $ac_val
4093#endif
4094_ACEOF
4095 ;;
4096esac
4097
4098ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
4099case $ac_cv_c_uint16_t in #(
4100 no|yes) ;; #(
4101 *)
4102
4103
4104cat >>confdefs.h <<_ACEOF
4105#define uint16_t $ac_cv_c_uint16_t
4106_ACEOF
4107;;
4108 esac
4109
4110ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
4111case $ac_cv_c_uint32_t in #(
4112 no|yes) ;; #(
4113 *)
4114
4115$as_echo "#define _UINT32_T 1" >>confdefs.h
4116
4117
4118cat >>confdefs.h <<_ACEOF
4119#define uint32_t $ac_cv_c_uint32_t
4120_ACEOF
4121;;
4122 esac
4123
4124ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
4125case $ac_cv_c_uint8_t in #(
4126 no|yes) ;; #(
4127 *)
4128
4129$as_echo "#define _UINT8_T 1" >>confdefs.h
4130
4131
4132cat >>confdefs.h <<_ACEOF
4133#define uint8_t $ac_cv_c_uint8_t
4134_ACEOF
4135;;
4136 esac
4137
4138
4139# Checks for library functions.
4140for ac_header in stdlib.h
4141do :
4142 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4143if test "x$ac_cv_header_stdlib_h" = xyes; then :
4144 cat >>confdefs.h <<_ACEOF
4145#define HAVE_STDLIB_H 1
4146_ACEOF
4147
4148fi
4149
4150done
4151
4152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
4153$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
4154if ${ac_cv_func_malloc_0_nonnull+:} false; then :
4155 $as_echo_n "(cached) " >&6
4156else
4157 if test "$cross_compiling" = yes; then :
4158 ac_cv_func_malloc_0_nonnull=no
4159else
4160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4161/* end confdefs.h. */
4162#if defined STDC_HEADERS || defined HAVE_STDLIB_H
4163# include <stdlib.h>
4164#else
4165char *malloc ();
4166#endif
4167
4168int
4169main ()
4170{
4171return ! malloc (0);
4172 ;
4173 return 0;
4174}
4175_ACEOF
4176if ac_fn_c_try_run "$LINENO"; then :
4177 ac_cv_func_malloc_0_nonnull=yes
4178else
4179 ac_cv_func_malloc_0_nonnull=no
4180fi
4181rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4182 conftest.$ac_objext conftest.beam conftest.$ac_ext
4183fi
4184
4185fi
4186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
4187$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
4188if test $ac_cv_func_malloc_0_nonnull = yes; then :
4189
4190$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
4191
4192else
4193 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
4194
4195 case " $LIBOBJS " in
4196 *" malloc.$ac_objext "* ) ;;
4197 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
4198 ;;
4199esac
4200
4201
4202$as_echo "#define malloc rpl_malloc" >>confdefs.h
4203
4204fi
4205
4206
4207for ac_func in memset strtol
4208do :
4209 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4210ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4211if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4212 cat >>confdefs.h <<_ACEOF
4213#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4214_ACEOF
4215
4216fi
4217done
4218
4219
4220ac_config_files="$ac_config_files Makefile"
4221
4222cat >confcache <<\_ACEOF
4223# This file is a shell script that caches the results of configure
4224# tests run on this system so they can be shared between configure
4225# scripts and configure runs, see configure's option --config-cache.
4226# It is not useful on other systems. If it contains results you don't
4227# want to keep, you may remove or edit it.
4228#
4229# config.status only pays attention to the cache file if you give it
4230# the --recheck option to rerun configure.
4231#
4232# `ac_cv_env_foo' variables (set or unset) will be overridden when
4233# loading this file, other *unset* `ac_cv_foo' will be assigned the
4234# following values.
4235
4236_ACEOF
4237
4238# The following way of writing the cache mishandles newlines in values,
4239# but we know of no workaround that is simple, portable, and efficient.
4240# So, we kill variables containing newlines.
4241# Ultrix sh set writes to stderr and can't be redirected directly,
4242# and sets the high bit in the cache file unless we assign to the vars.
4243(
4244 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4245 eval ac_val=\$$ac_var
4246 case $ac_val in #(
4247 *${as_nl}*)
4248 case $ac_var in #(
4249 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4250$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4251 esac
4252 case $ac_var in #(
4253 _ | IFS | as_nl) ;; #(
4254 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4255 *) { eval $ac_var=; unset $ac_var;} ;;
4256 esac ;;
4257 esac
4258 done
4259
4260 (set) 2>&1 |
4261 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4262 *${as_nl}ac_space=\ *)
4263 # `set' does not quote correctly, so add quotes: double-quote
4264 # substitution turns \\\\ into \\, and sed turns \\ into \.
4265 sed -n \
4266 "s/'/'\\\\''/g;
4267 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4268 ;; #(
4269 *)
4270 # `set' quotes correctly as required by POSIX, so do not add quotes.
4271 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4272 ;;
4273 esac |
4274 sort
4275) |
4276 sed '
4277 /^ac_cv_env_/b end
4278 t clear
4279 :clear
4280 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4281 t end
4282 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4283 :end' >>confcache
4284if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4285 if test -w "$cache_file"; then
4286 if test "x$cache_file" != "x/dev/null"; then
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4288$as_echo "$as_me: updating cache $cache_file" >&6;}
4289 if test ! -f "$cache_file" || test -h "$cache_file"; then
4290 cat confcache >"$cache_file"
4291 else
4292 case $cache_file in #(
4293 */* | ?:*)
4294 mv -f confcache "$cache_file"$$ &&
4295 mv -f "$cache_file"$$ "$cache_file" ;; #(
4296 *)
4297 mv -f confcache "$cache_file" ;;
4298 esac
4299 fi
4300 fi
4301 else
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4303$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4304 fi
4305fi
4306rm -f confcache
4307
4308test "x$prefix" = xNONE && prefix=$ac_default_prefix
4309# Let make expand exec_prefix.
4310test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4311
4312DEFS=-DHAVE_CONFIG_H
4313
4314ac_libobjs=
4315ac_ltlibobjs=
4316U=
4317for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4318 # 1. Remove the extension, and $U if already installed.
4319 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4320 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4321 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4322 # will be set to the directory where LIBOBJS objects are built.
4323 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4324 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4325done
4326LIBOBJS=$ac_libobjs
4327
4328LTLIBOBJS=$ac_ltlibobjs
4329
4330
4331
4332: "${CONFIG_STATUS=./config.status}"
4333ac_write_fail=0
4334ac_clean_files_save=$ac_clean_files
4335ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4336{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4337$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4338as_write_fail=0
4339cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4340#! $SHELL
4341# Generated by $as_me.
4342# Run this file to recreate the current configuration.
4343# Compiler output produced by configure, useful for debugging
4344# configure, is in config.log if it exists.
4345
4346debug=false
4347ac_cs_recheck=false
4348ac_cs_silent=false
4349
4350SHELL=\${CONFIG_SHELL-$SHELL}
4351export SHELL
4352_ASEOF
4353cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4354## -------------------- ##
4355## M4sh Initialization. ##
4356## -------------------- ##
4357
4358# Be more Bourne compatible
4359DUALCASE=1; export DUALCASE # for MKS sh
4360if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4361 emulate sh
4362 NULLCMD=:
4363 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4364 # is contrary to our usage. Disable this feature.
4365 alias -g '${1+"$@"}'='"$@"'
4366 setopt NO_GLOB_SUBST
4367else
4368 case `(set -o) 2>/dev/null` in #(
4369 *posix*) :
4370 set -o posix ;; #(
4371 *) :
4372 ;;
4373esac
4374fi
4375
4376
4377as_nl='
4378'
4379export as_nl
4380# Printing a long string crashes Solaris 7 /usr/bin/printf.
4381as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4382as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4383as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4384# Prefer a ksh shell builtin over an external printf program on Solaris,
4385# but without wasting forks for bash or zsh.
4386if test -z "$BASH_VERSION$ZSH_VERSION" \
4387 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4388 as_echo='print -r --'
4389 as_echo_n='print -rn --'
4390elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4391 as_echo='printf %s\n'
4392 as_echo_n='printf %s'
4393else
4394 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4395 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4396 as_echo_n='/usr/ucb/echo -n'
4397 else
4398 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4399 as_echo_n_body='eval
4400 arg=$1;
4401 case $arg in #(
4402 *"$as_nl"*)
4403 expr "X$arg" : "X\\(.*\\)$as_nl";
4404 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4405 esac;
4406 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4407 '
4408 export as_echo_n_body
4409 as_echo_n='sh -c $as_echo_n_body as_echo'
4410 fi
4411 export as_echo_body
4412 as_echo='sh -c $as_echo_body as_echo'
4413fi
4414
4415# The user is always right.
4416if test "${PATH_SEPARATOR+set}" != set; then
4417 PATH_SEPARATOR=:
4418 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4419 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4420 PATH_SEPARATOR=';'
4421 }
4422fi
4423
4424
4425# IFS
4426# We need space, tab and new line, in precisely that order. Quoting is
4427# there to prevent editors from complaining about space-tab.
4428# (If _AS_PATH_WALK were called with IFS unset, it would disable word
4429# splitting by setting IFS to empty value.)
4430IFS=" "" $as_nl"
4431
4432# Find who we are. Look in the path if we contain no directory separator.
4433as_myself=
4434case $0 in #((
4435 *[\\/]* ) as_myself=$0 ;;
4436 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4437for as_dir in $PATH
4438do
4439 IFS=$as_save_IFS
4440 test -z "$as_dir" && as_dir=.
4441 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4442 done
4443IFS=$as_save_IFS
4444
4445 ;;
4446esac
4447# We did not find ourselves, most probably we were run as `sh COMMAND'
4448# in which case we are not to be found in the path.
4449if test "x$as_myself" = x; then
4450 as_myself=$0
4451fi
4452if test ! -f "$as_myself"; then
4453 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4454 exit 1
4455fi
4456
4457# Unset variables that we do not need and which cause bugs (e.g. in
4458# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
4459# suppresses any "Segmentation fault" message there. '((' could
4460# trigger a bug in pdksh 5.2.14.
4461for as_var in BASH_ENV ENV MAIL MAILPATH
4462do eval test x\${$as_var+set} = xset \
4463 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4464done
4465PS1='$ '
4466PS2='> '
4467PS4='+ '
4468
4469# NLS nuisances.
4470LC_ALL=C
4471export LC_ALL
4472LANGUAGE=C
4473export LANGUAGE
4474
4475# CDPATH.
4476(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4477
4478
4479# as_fn_error STATUS ERROR [LINENO LOG_FD]
4480# ----------------------------------------
4481# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4482# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4483# script with STATUS, using 1 if that was 0.
4484as_fn_error ()
4485{
4486 as_status=$1; test $as_status -eq 0 && as_status=1
4487 if test "$4"; then
4488 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4489 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4490 fi
4491 $as_echo "$as_me: error: $2" >&2
4492 as_fn_exit $as_status
4493} # as_fn_error
4494
4495
4496# as_fn_set_status STATUS
4497# -----------------------
4498# Set $? to STATUS, without forking.
4499as_fn_set_status ()
4500{
4501 return $1
4502} # as_fn_set_status
4503
4504# as_fn_exit STATUS
4505# -----------------
4506# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4507as_fn_exit ()
4508{
4509 set +e
4510 as_fn_set_status $1
4511 exit $1
4512} # as_fn_exit
4513
4514# as_fn_unset VAR
4515# ---------------
4516# Portably unset VAR.
4517as_fn_unset ()
4518{
4519 { eval $1=; unset $1;}
4520}
4521as_unset=as_fn_unset
4522# as_fn_append VAR VALUE
4523# ----------------------
4524# Append the text in VALUE to the end of the definition contained in VAR. Take
4525# advantage of any shell optimizations that allow amortized linear growth over
4526# repeated appends, instead of the typical quadratic growth present in naive
4527# implementations.
4528if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
4529 eval 'as_fn_append ()
4530 {
4531 eval $1+=\$2
4532 }'
4533else
4534 as_fn_append ()
4535 {
4536 eval $1=\$$1\$2
4537 }
4538fi # as_fn_append
4539
4540# as_fn_arith ARG...
4541# ------------------
4542# Perform arithmetic evaluation on the ARGs, and store the result in the
4543# global $as_val. Take advantage of shells that can avoid forks. The arguments
4544# must be portable across $(()) and expr.
4545if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
4546 eval 'as_fn_arith ()
4547 {
4548 as_val=$(( $* ))
4549 }'
4550else
4551 as_fn_arith ()
4552 {
4553 as_val=`expr "$@" || test $? -eq 1`
4554 }
4555fi # as_fn_arith
4556
4557
4558if expr a : '\(a\)' >/dev/null 2>&1 &&
4559 test "X`expr 00001 : '.*\(...\)'`" = X001; then
4560 as_expr=expr
4561else
4562 as_expr=false
4563fi
4564
4565if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4566 as_basename=basename
4567else
4568 as_basename=false
4569fi
4570
4571if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4572 as_dirname=dirname
4573else
4574 as_dirname=false
4575fi
4576
4577as_me=`$as_basename -- "$0" ||
4578$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4579 X"$0" : 'X\(//\)$' \| \
4580 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4581$as_echo X/"$0" |
4582 sed '/^.*\/\([^/][^/]*\)\/*$/{
4583 s//\1/
4584 q
4585 }
4586 /^X\/\(\/\/\)$/{
4587 s//\1/
4588 q
4589 }
4590 /^X\/\(\/\).*/{
4591 s//\1/
4592 q
4593 }
4594 s/.*/./; q'`
4595
4596# Avoid depending upon Character Ranges.
4597as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4598as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4599as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4600as_cr_digits='0123456789'
4601as_cr_alnum=$as_cr_Letters$as_cr_digits
4602
4603ECHO_C= ECHO_N= ECHO_T=
4604case `echo -n x` in #(((((
4605-n*)
4606 case `echo 'xy\c'` in
4607 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
4608 xy) ECHO_C='\c';;
4609 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
4610 ECHO_T=' ';;
4611 esac;;
4612*)
4613 ECHO_N='-n';;
4614esac
4615
4616rm -f conf$$ conf$$.exe conf$$.file
4617if test -d conf$$.dir; then
4618 rm -f conf$$.dir/conf$$.file
4619else
4620 rm -f conf$$.dir
4621 mkdir conf$$.dir 2>/dev/null
4622fi
4623if (echo >conf$$.file) 2>/dev/null; then
4624 if ln -s conf$$.file conf$$ 2>/dev/null; then
4625 as_ln_s='ln -s'
4626 # ... but there are two gotchas:
4627 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4628 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4629 # In both cases, we have to default to `cp -pR'.
4630 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4631 as_ln_s='cp -pR'
4632 elif ln conf$$.file conf$$ 2>/dev/null; then
4633 as_ln_s=ln
4634 else
4635 as_ln_s='cp -pR'
4636 fi
4637else
4638 as_ln_s='cp -pR'
4639fi
4640rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4641rmdir conf$$.dir 2>/dev/null
4642
4643
4644# as_fn_mkdir_p
4645# -------------
4646# Create "$as_dir" as a directory, including parents if necessary.
4647as_fn_mkdir_p ()
4648{
4649
4650 case $as_dir in #(
4651 -*) as_dir=./$as_dir;;
4652 esac
4653 test -d "$as_dir" || eval $as_mkdir_p || {
4654 as_dirs=
4655 while :; do
4656 case $as_dir in #(
4657 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4658 *) as_qdir=$as_dir;;
4659 esac
4660 as_dirs="'$as_qdir' $as_dirs"
4661 as_dir=`$as_dirname -- "$as_dir" ||
4662$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4663 X"$as_dir" : 'X\(//\)[^/]' \| \
4664 X"$as_dir" : 'X\(//\)$' \| \
4665 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4666$as_echo X"$as_dir" |
4667 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4668 s//\1/
4669 q
4670 }
4671 /^X\(\/\/\)[^/].*/{
4672 s//\1/
4673 q
4674 }
4675 /^X\(\/\/\)$/{
4676 s//\1/
4677 q
4678 }
4679 /^X\(\/\).*/{
4680 s//\1/
4681 q
4682 }
4683 s/.*/./; q'`
4684 test -d "$as_dir" && break
4685 done
4686 test -z "$as_dirs" || eval "mkdir $as_dirs"
4687 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
4688
4689
4690} # as_fn_mkdir_p
4691if mkdir -p . 2>/dev/null; then
4692 as_mkdir_p='mkdir -p "$as_dir"'
4693else
4694 test -d ./-p && rmdir ./-p
4695 as_mkdir_p=false
4696fi
4697
4698
4699# as_fn_executable_p FILE
4700# -----------------------
4701# Test if FILE is an executable regular file.
4702as_fn_executable_p ()
4703{
4704 test -f "$1" && test -x "$1"
4705} # as_fn_executable_p
4706as_test_x='test -x'
4707as_executable_p=as_fn_executable_p
4708
4709# Sed expression to map a string onto a valid CPP name.
4710as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4711
4712# Sed expression to map a string onto a valid variable name.
4713as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4714
4715
4716exec 6>&1
4717## ----------------------------------- ##
4718## Main body of $CONFIG_STATUS script. ##
4719## ----------------------------------- ##
4720_ASEOF
4721test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
4722
4723cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4724# Save the log message, to keep $0 and so on meaningful, and to
4725# report actual input values of CONFIG_FILES etc. instead of their
4726# values after options handling.
4727ac_log="
4728This file was extended by openolt $as_me 1.4.0, which was
4729generated by GNU Autoconf 2.69. Invocation command line was
4730
4731 CONFIG_FILES = $CONFIG_FILES
4732 CONFIG_HEADERS = $CONFIG_HEADERS
4733 CONFIG_LINKS = $CONFIG_LINKS
4734 CONFIG_COMMANDS = $CONFIG_COMMANDS
4735 $ $0 $@
4736
4737on `(hostname || uname -n) 2>/dev/null | sed 1q`
4738"
4739
4740_ACEOF
4741
4742case $ac_config_files in *"
4743"*) set x $ac_config_files; shift; ac_config_files=$*;;
4744esac
4745
4746case $ac_config_headers in *"
4747"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
4748esac
4749
4750
4751cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4752# Files that config.status was made for.
4753config_files="$ac_config_files"
4754config_headers="$ac_config_headers"
4755
4756_ACEOF
4757
4758cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4759ac_cs_usage="\
4760\`$as_me' instantiates files and other configuration actions
4761from templates according to the current configuration. Unless the files
4762and actions are specified as TAGs, all are instantiated by default.
4763
4764Usage: $0 [OPTION]... [TAG]...
4765
4766 -h, --help print this help, then exit
4767 -V, --version print version number and configuration settings, then exit
4768 --config print configuration, then exit
4769 -q, --quiet, --silent
4770 do not print progress messages
4771 -d, --debug don't remove temporary files
4772 --recheck update $as_me by reconfiguring in the same conditions
4773 --file=FILE[:TEMPLATE]
4774 instantiate the configuration file FILE
4775 --header=FILE[:TEMPLATE]
4776 instantiate the configuration header FILE
4777
4778Configuration files:
4779$config_files
4780
4781Configuration headers:
4782$config_headers
4783
4784Report bugs to <voltha-discuss@opencord.org>."
4785
4786_ACEOF
4787cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4788ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
4789ac_cs_version="\\
4790openolt config.status 1.4.0
4791configured by $0, generated by GNU Autoconf 2.69,
4792 with options \\"\$ac_cs_config\\"
4793
4794Copyright (C) 2012 Free Software Foundation, Inc.
4795This config.status script is free software; the Free Software Foundation
4796gives unlimited permission to copy, distribute and modify it."
4797
4798ac_pwd='$ac_pwd'
4799srcdir='$srcdir'
4800AWK='$AWK'
4801test -n "\$AWK" || AWK=awk
4802_ACEOF
4803
4804cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4805# The default lists apply if the user does not specify any file.
4806ac_need_defaults=:
4807while test $# != 0
4808do
4809 case $1 in
4810 --*=?*)
4811 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4812 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4813 ac_shift=:
4814 ;;
4815 --*=)
4816 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4817 ac_optarg=
4818 ac_shift=:
4819 ;;
4820 *)
4821 ac_option=$1
4822 ac_optarg=$2
4823 ac_shift=shift
4824 ;;
4825 esac
4826
4827 case $ac_option in
4828 # Handling of the options.
4829 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4830 ac_cs_recheck=: ;;
4831 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4832 $as_echo "$ac_cs_version"; exit ;;
4833 --config | --confi | --conf | --con | --co | --c )
4834 $as_echo "$ac_cs_config"; exit ;;
4835 --debug | --debu | --deb | --de | --d | -d )
4836 debug=: ;;
4837 --file | --fil | --fi | --f )
4838 $ac_shift
4839 case $ac_optarg in
4840 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4841 '') as_fn_error $? "missing file argument" ;;
4842 esac
4843 as_fn_append CONFIG_FILES " '$ac_optarg'"
4844 ac_need_defaults=false;;
4845 --header | --heade | --head | --hea )
4846 $ac_shift
4847 case $ac_optarg in
4848 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4849 esac
4850 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
4851 ac_need_defaults=false;;
4852 --he | --h)
4853 # Conflict between --help and --header
4854 as_fn_error $? "ambiguous option: \`$1'
4855Try \`$0 --help' for more information.";;
4856 --help | --hel | -h )
4857 $as_echo "$ac_cs_usage"; exit ;;
4858 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4859 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4860 ac_cs_silent=: ;;
4861
4862 # This is an error.
4863 -*) as_fn_error $? "unrecognized option: \`$1'
4864Try \`$0 --help' for more information." ;;
4865
4866 *) as_fn_append ac_config_targets " $1"
4867 ac_need_defaults=false ;;
4868
4869 esac
4870 shift
4871done
4872
4873ac_configure_extra_args=
4874
4875if $ac_cs_silent; then
4876 exec 6>/dev/null
4877 ac_configure_extra_args="$ac_configure_extra_args --silent"
4878fi
4879
4880_ACEOF
4881cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4882if \$ac_cs_recheck; then
4883 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4884 shift
4885 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
4886 CONFIG_SHELL='$SHELL'
4887 export CONFIG_SHELL
4888 exec "\$@"
4889fi
4890
4891_ACEOF
4892cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4893exec 5>>config.log
4894{
4895 echo
4896 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4897## Running $as_me. ##
4898_ASBOX
4899 $as_echo "$ac_log"
4900} >&5
4901
4902_ACEOF
4903cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4904_ACEOF
4905
4906cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4907
4908# Handling of arguments.
4909for ac_config_target in $ac_config_targets
4910do
4911 case $ac_config_target in
4912 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
4913 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4914
4915 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
4916 esac
4917done
4918
4919
4920# If the user did not use the arguments to specify the items to instantiate,
4921# then the envvar interface is used. Set only those that are not.
4922# We use the long form for the default assignment because of an extremely
4923# bizarre bug on SunOS 4.1.3.
4924if $ac_need_defaults; then
4925 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4926 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4927fi
4928
4929# Have a temporary directory for convenience. Make it in the build tree
4930# simply because there is no reason against having it here, and in addition,
4931# creating and moving files from /tmp can sometimes cause problems.
4932# Hook for its removal unless debugging.
4933# Note that there is a small window in which the directory will not be cleaned:
4934# after its creation but before its name has been assigned to `$tmp'.
4935$debug ||
4936{
4937 tmp= ac_tmp=
4938 trap 'exit_status=$?
4939 : "${ac_tmp:=$tmp}"
4940 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
4941' 0
4942 trap 'as_fn_exit 1' 1 2 13 15
4943}
4944# Create a (secure) tmp directory for tmp files.
4945
4946{
4947 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4948 test -d "$tmp"
4949} ||
4950{
4951 tmp=./conf$$-$RANDOM
4952 (umask 077 && mkdir "$tmp")
4953} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
4954ac_tmp=$tmp
4955
4956# Set up the scripts for CONFIG_FILES section.
4957# No need to generate them if there are no CONFIG_FILES.
4958# This happens for instance with `./config.status config.h'.
4959if test -n "$CONFIG_FILES"; then
4960
4961
4962ac_cr=`echo X | tr X '\015'`
4963# On cygwin, bash can eat \r inside `` if the user requested igncr.
4964# But we know of no other shell where ac_cr would be empty at this
4965# point, so we can use a bashism as a fallback.
4966if test "x$ac_cr" = x; then
4967 eval ac_cr=\$\'\\r\'
4968fi
4969ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
4970if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
4971 ac_cs_awk_cr='\\r'
4972else
4973 ac_cs_awk_cr=$ac_cr
4974fi
4975
4976echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
4977_ACEOF
4978
4979
4980{
4981 echo "cat >conf$$subs.awk <<_ACEOF" &&
4982 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
4983 echo "_ACEOF"
4984} >conf$$subs.sh ||
4985 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4986ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
4987ac_delim='%!_!# '
4988for ac_last_try in false false false false false :; do
4989 . ./conf$$subs.sh ||
4990 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4991
4992 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
4993 if test $ac_delim_n = $ac_delim_num; then
4994 break
4995 elif $ac_last_try; then
4996 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4997 else
4998 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4999 fi
5000done
5001rm -f conf$$subs.sh
5002
5003cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5004cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5005_ACEOF
5006sed -n '
5007h
5008s/^/S["/; s/!.*/"]=/
5009p
5010g
5011s/^[^!]*!//
5012:repl
5013t repl
5014s/'"$ac_delim"'$//
5015t delim
5016:nl
5017h
5018s/\(.\{148\}\)..*/\1/
5019t more1
5020s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5021p
5022n
5023b repl
5024:more1
5025s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5026p
5027g
5028s/.\{148\}//
5029t nl
5030:delim
5031h
5032s/\(.\{148\}\)..*/\1/
5033t more2
5034s/["\\]/\\&/g; s/^/"/; s/$/"/
5035p
5036b
5037:more2
5038s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5039p
5040g
5041s/.\{148\}//
5042t delim
5043' <conf$$subs.awk | sed '
5044/^[^""]/{
5045 N
5046 s/\n//
5047}
5048' >>$CONFIG_STATUS || ac_write_fail=1
5049rm -f conf$$subs.awk
5050cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5051_ACAWK
5052cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5053 for (key in S) S_is_set[key] = 1
5054 FS = ""
5055
5056}
5057{
5058 line = $ 0
5059 nfields = split(line, field, "@")
5060 substed = 0
5061 len = length(field[1])
5062 for (i = 2; i < nfields; i++) {
5063 key = field[i]
5064 keylen = length(key)
5065 if (S_is_set[key]) {
5066 value = S[key]
5067 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5068 len += length(value) + length(field[++i])
5069 substed = 1
5070 } else
5071 len += 1 + keylen
5072 }
5073
5074 print line
5075}
5076
5077_ACAWK
5078_ACEOF
5079cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5080if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5081 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5082else
5083 cat
5084fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
5085 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5086_ACEOF
5087
5088# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5089# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5090# trailing colons and then remove the whole line if VPATH becomes empty
5091# (actually we leave an empty line to preserve line numbers).
5092if test "x$srcdir" = x.; then
5093 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
5094h
5095s///
5096s/^/:/
5097s/[ ]*$/:/
5098s/:\$(srcdir):/:/g
5099s/:\${srcdir}:/:/g
5100s/:@srcdir@:/:/g
5101s/^:*//
5102s/:*$//
5103x
5104s/\(=[ ]*\).*/\1/
5105G
5106s/\n//
5107s/^[^=]*=[ ]*$//
5108}'
5109fi
5110
5111cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5112fi # test -n "$CONFIG_FILES"
5113
5114# Set up the scripts for CONFIG_HEADERS section.
5115# No need to generate them if there are no CONFIG_HEADERS.
5116# This happens for instance with `./config.status Makefile'.
5117if test -n "$CONFIG_HEADERS"; then
5118cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
5119BEGIN {
5120_ACEOF
5121
5122# Transform confdefs.h into an awk script `defines.awk', embedded as
5123# here-document in config.status, that substitutes the proper values into
5124# config.h.in to produce config.h.
5125
5126# Create a delimiter string that does not exist in confdefs.h, to ease
5127# handling of long lines.
5128ac_delim='%!_!# '
5129for ac_last_try in false false :; do
5130 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
5131 if test -z "$ac_tt"; then
5132 break
5133 elif $ac_last_try; then
5134 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
5135 else
5136 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5137 fi
5138done
5139
5140# For the awk script, D is an array of macro values keyed by name,
5141# likewise P contains macro parameters if any. Preserve backslash
5142# newline sequences.
5143
5144ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5145sed -n '
5146s/.\{148\}/&'"$ac_delim"'/g
5147t rset
5148:rset
5149s/^[ ]*#[ ]*define[ ][ ]*/ /
5150t def
5151d
5152:def
5153s/\\$//
5154t bsnl
5155s/["\\]/\\&/g
5156s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5157D["\1"]=" \3"/p
5158s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
5159d
5160:bsnl
5161s/["\\]/\\&/g
5162s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5163D["\1"]=" \3\\\\\\n"\\/p
5164t cont
5165s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5166t cont
5167d
5168:cont
5169n
5170s/.\{148\}/&'"$ac_delim"'/g
5171t clear
5172:clear
5173s/\\$//
5174t bsnlc
5175s/["\\]/\\&/g; s/^/"/; s/$/"/p
5176d
5177:bsnlc
5178s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5179b cont
5180' <confdefs.h | sed '
5181s/'"$ac_delim"'/"\\\
5182"/g' >>$CONFIG_STATUS || ac_write_fail=1
5183
5184cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5185 for (key in D) D_is_set[key] = 1
5186 FS = ""
5187}
5188/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5189 line = \$ 0
5190 split(line, arg, " ")
5191 if (arg[1] == "#") {
5192 defundef = arg[2]
5193 mac1 = arg[3]
5194 } else {
5195 defundef = substr(arg[1], 2)
5196 mac1 = arg[2]
5197 }
5198 split(mac1, mac2, "(") #)
5199 macro = mac2[1]
5200 prefix = substr(line, 1, index(line, defundef) - 1)
5201 if (D_is_set[macro]) {
5202 # Preserve the white space surrounding the "#".
5203 print prefix "define", macro P[macro] D[macro]
5204 next
5205 } else {
5206 # Replace #undef with comments. This is necessary, for example,
5207 # in the case of _POSIX_SOURCE, which is predefined and required
5208 # on some systems where configure will not decide to define it.
5209 if (defundef == "undef") {
5210 print "/*", prefix defundef, macro, "*/"
5211 next
5212 }
5213 }
5214}
5215{ print }
5216_ACAWK
5217_ACEOF
5218cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5219 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
5220fi # test -n "$CONFIG_HEADERS"
5221
5222
5223eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
5224shift
5225for ac_tag
5226do
5227 case $ac_tag in
5228 :[FHLC]) ac_mode=$ac_tag; continue;;
5229 esac
5230 case $ac_mode$ac_tag in
5231 :[FHL]*:*);;
5232 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5233 :[FH]-) ac_tag=-:-;;
5234 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5235 esac
5236 ac_save_IFS=$IFS
5237 IFS=:
5238 set x $ac_tag
5239 IFS=$ac_save_IFS
5240 shift
5241 ac_file=$1
5242 shift
5243
5244 case $ac_mode in
5245 :L) ac_source=$1;;
5246 :[FH])
5247 ac_file_inputs=
5248 for ac_f
5249 do
5250 case $ac_f in
5251 -) ac_f="$ac_tmp/stdin";;
5252 *) # Look for the file first in the build tree, then in the source tree
5253 # (if the path is not absolute). The absolute path cannot be DOS-style,
5254 # because $ac_f cannot contain `:'.
5255 test -f "$ac_f" ||
5256 case $ac_f in
5257 [\\/$]*) false;;
5258 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5259 esac ||
5260 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5261 esac
5262 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5263 as_fn_append ac_file_inputs " '$ac_f'"
5264 done
5265
5266 # Let's still pretend it is `configure' which instantiates (i.e., don't
5267 # use $as_me), people would be surprised to read:
5268 # /* config.h. Generated by config.status. */
5269 configure_input='Generated from '`
5270 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5271 `' by configure.'
5272 if test x"$ac_file" != x-; then
5273 configure_input="$ac_file. $configure_input"
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5275$as_echo "$as_me: creating $ac_file" >&6;}
5276 fi
5277 # Neutralize special characters interpreted by sed in replacement strings.
5278 case $configure_input in #(
5279 *\&* | *\|* | *\\* )
5280 ac_sed_conf_input=`$as_echo "$configure_input" |
5281 sed 's/[\\\\&|]/\\\\&/g'`;; #(
5282 *) ac_sed_conf_input=$configure_input;;
5283 esac
5284
5285 case $ac_tag in
5286 *:-:* | *:-) cat >"$ac_tmp/stdin" \
5287 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5288 esac
5289 ;;
5290 esac
5291
5292 ac_dir=`$as_dirname -- "$ac_file" ||
5293$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5294 X"$ac_file" : 'X\(//\)[^/]' \| \
5295 X"$ac_file" : 'X\(//\)$' \| \
5296 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5297$as_echo X"$ac_file" |
5298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5299 s//\1/
5300 q
5301 }
5302 /^X\(\/\/\)[^/].*/{
5303 s//\1/
5304 q
5305 }
5306 /^X\(\/\/\)$/{
5307 s//\1/
5308 q
5309 }
5310 /^X\(\/\).*/{
5311 s//\1/
5312 q
5313 }
5314 s/.*/./; q'`
5315 as_dir="$ac_dir"; as_fn_mkdir_p
5316 ac_builddir=.
5317
5318case "$ac_dir" in
5319.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5320*)
5321 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5322 # A ".." for each directory in $ac_dir_suffix.
5323 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5324 case $ac_top_builddir_sub in
5325 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5326 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5327 esac ;;
5328esac
5329ac_abs_top_builddir=$ac_pwd
5330ac_abs_builddir=$ac_pwd$ac_dir_suffix
5331# for backward compatibility:
5332ac_top_builddir=$ac_top_build_prefix
5333
5334case $srcdir in
5335 .) # We are building in place.
5336 ac_srcdir=.
5337 ac_top_srcdir=$ac_top_builddir_sub
5338 ac_abs_top_srcdir=$ac_pwd ;;
5339 [\\/]* | ?:[\\/]* ) # Absolute name.
5340 ac_srcdir=$srcdir$ac_dir_suffix;
5341 ac_top_srcdir=$srcdir
5342 ac_abs_top_srcdir=$srcdir ;;
5343 *) # Relative name.
5344 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5345 ac_top_srcdir=$ac_top_build_prefix$srcdir
5346 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5347esac
5348ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5349
5350
5351 case $ac_mode in
5352 :F)
5353 #
5354 # CONFIG_FILE
5355 #
5356
5357_ACEOF
5358
5359cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5360# If the template does not know about datarootdir, expand it.
5361# FIXME: This hack should be removed a few years after 2.60.
5362ac_datarootdir_hack=; ac_datarootdir_seen=
5363ac_sed_dataroot='
5364/datarootdir/ {
5365 p
5366 q
5367}
5368/@datadir@/p
5369/@docdir@/p
5370/@infodir@/p
5371/@localedir@/p
5372/@mandir@/p'
5373case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5374*datarootdir*) ac_datarootdir_seen=yes;;
5375*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5377$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5378_ACEOF
5379cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5380 ac_datarootdir_hack='
5381 s&@datadir@&$datadir&g
5382 s&@docdir@&$docdir&g
5383 s&@infodir@&$infodir&g
5384 s&@localedir@&$localedir&g
5385 s&@mandir@&$mandir&g
5386 s&\\\${datarootdir}&$datarootdir&g' ;;
5387esac
5388_ACEOF
5389
5390# Neutralize VPATH when `$srcdir' = `.'.
5391# Shell code in configure.ac might set extrasub.
5392# FIXME: do we really want to maintain this feature?
5393cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5394ac_sed_extra="$ac_vpsub
5395$extrasub
5396_ACEOF
5397cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5398:t
5399/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5400s|@configure_input@|$ac_sed_conf_input|;t t
5401s&@top_builddir@&$ac_top_builddir_sub&;t t
5402s&@top_build_prefix@&$ac_top_build_prefix&;t t
5403s&@srcdir@&$ac_srcdir&;t t
5404s&@abs_srcdir@&$ac_abs_srcdir&;t t
5405s&@top_srcdir@&$ac_top_srcdir&;t t
5406s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5407s&@builddir@&$ac_builddir&;t t
5408s&@abs_builddir@&$ac_abs_builddir&;t t
5409s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5410$ac_datarootdir_hack
5411"
5412eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
5413 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5414
5415test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5416 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
5417 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
5418 "$ac_tmp/out"`; test -z "$ac_out"; } &&
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5420which seems to be undefined. Please make sure it is defined" >&5
5421$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5422which seems to be undefined. Please make sure it is defined" >&2;}
5423
5424 rm -f "$ac_tmp/stdin"
5425 case $ac_file in
5426 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
5427 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5428 esac \
5429 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5430 ;;
5431 :H)
5432 #
5433 # CONFIG_HEADER
5434 #
5435 if test x"$ac_file" != x-; then
5436 {
5437 $as_echo "/* $configure_input */" \
5438 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
5439 } >"$ac_tmp/config.h" \
5440 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5441 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
5443$as_echo "$as_me: $ac_file is unchanged" >&6;}
5444 else
5445 rm -f "$ac_file"
5446 mv "$ac_tmp/config.h" "$ac_file" \
5447 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5448 fi
5449 else
5450 $as_echo "/* $configure_input */" \
5451 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
5452 || as_fn_error $? "could not create -" "$LINENO" 5
5453 fi
5454 ;;
5455
5456
5457 esac
5458
5459done # for ac_tag
5460
5461
5462as_fn_exit 0
5463_ACEOF
5464ac_clean_files=$ac_clean_files_save
5465
5466test $ac_write_fail = 0 ||
5467 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5468
5469
5470# configure is writing to config.log, and then calls config.status.
5471# config.status does its own redirection, appending to config.log.
5472# Unfortunately, on DOS this fails, as config.log is still kept open
5473# by configure, so config.status won't be able to write to it; its
5474# output is simply discarded. So we exec the FD to /dev/null,
5475# effectively closing config.log, so it can be properly (re)opened and
5476# appended to by config.status. When coming back to configure, we
5477# need to make the FD available again.
5478if test "$no_create" != yes; then
5479 ac_cs_success=:
5480 ac_config_status_args=
5481 test "$silent" = yes &&
5482 ac_config_status_args="$ac_config_status_args --quiet"
5483 exec 5>/dev/null
5484 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5485 exec 5>>config.log
5486 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5487 # would make configure fail if this is the last instruction.
5488 $ac_cs_success || as_fn_exit 1
5489fi
5490if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5492$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
5493fi
5494