libstdc++: Include cstdarg in freestanding
[official-gcc.git] / gcc / m2 / configure
blobf62f3d8729c8ed72aa05f306927ec74370945b5a
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for m2 .
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
272 exit 1
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
290 { eval $1=; unset $1;}
292 as_unset=as_fn_unset
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
299 return $1
300 } # as_fn_set_status
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
343 /^X\(\/\/\)$/{
344 s//\1/
347 /^X\(\/\).*/{
348 s//\1/
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
358 } # as_fn_mkdir_p
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
376 eval $1+=\$2
378 else
379 as_fn_append ()
381 eval $1=\$$1\$2
383 fi # as_fn_append
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
393 as_val=$(( $* ))
395 else
396 as_fn_arith ()
398 as_val=`expr "$@" || test $? -eq 1`
400 fi # as_fn_arith
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
447 /^X\/\(\/\/\)$/{
448 s//\1/
451 /^X\/\(\/\).*/{
452 s//\1/
455 s/.*/./; q'`
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
478 :lineno
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
510 ECHO_N='-n';;
511 esac
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
534 else
535 as_ln_s='cp -pR'
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
566 # Initializations.
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
577 # Identity of this package.
578 PACKAGE_NAME='m2'
579 PACKAGE_TARNAME='m2'
580 PACKAGE_VERSION=' '
581 PACKAGE_STRING='m2 '
582 PACKAGE_BUGREPORT=''
583 PACKAGE_URL=''
585 # Factoring default headers for most tests.
586 ac_includes_default="\
587 #include <stdio.h>
588 #ifdef HAVE_SYS_TYPES_H
589 # include <sys/types.h>
590 #endif
591 #ifdef HAVE_SYS_STAT_H
592 # include <sys/stat.h>
593 #endif
594 #ifdef STDC_HEADERS
595 # include <stdlib.h>
596 # include <stddef.h>
597 #else
598 # ifdef HAVE_STDLIB_H
599 # include <stdlib.h>
600 # endif
601 #endif
602 #ifdef HAVE_STRING_H
603 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
604 # include <memory.h>
605 # endif
606 # include <string.h>
607 #endif
608 #ifdef HAVE_STRINGS_H
609 # include <strings.h>
610 #endif
611 #ifdef HAVE_INTTYPES_H
612 # include <inttypes.h>
613 #endif
614 #ifdef HAVE_STDINT_H
615 # include <stdint.h>
616 #endif
617 #ifdef HAVE_UNISTD_H
618 # include <unistd.h>
619 #endif"
621 ac_subst_vars='LTLIBOBJS
622 LIBOBJS
623 EGREP
624 GREP
626 OBJEXT
627 EXEEXT
628 ac_ct_CC
629 CPPFLAGS
630 LDFLAGS
631 CFLAGS
633 target_os
634 target_vendor
635 target_cpu
636 target
637 host_os
638 host_vendor
639 host_cpu
640 host
641 build_os
642 build_vendor
643 build_cpu
644 build
645 target_alias
646 host_alias
647 build_alias
648 LIBS
649 ECHO_T
650 ECHO_N
651 ECHO_C
652 DEFS
653 mandir
654 localedir
655 libdir
656 psdir
657 pdfdir
658 dvidir
659 htmldir
660 infodir
661 docdir
662 oldincludedir
663 includedir
664 localstatedir
665 sharedstatedir
666 sysconfdir
667 datadir
668 datarootdir
669 libexecdir
670 sbindir
671 bindir
672 program_transform_name
673 prefix
674 exec_prefix
675 PACKAGE_URL
676 PACKAGE_BUGREPORT
677 PACKAGE_STRING
678 PACKAGE_VERSION
679 PACKAGE_TARNAME
680 PACKAGE_NAME
681 PATH_SEPARATOR
682 SHELL'
683 ac_subst_files=''
684 ac_user_opts='
685 enable_option_checking
687 ac_precious_vars='build_alias
688 host_alias
689 target_alias
691 CFLAGS
692 LDFLAGS
693 LIBS
694 CPPFLAGS
695 CPP'
698 # Initialize some variables set by options.
699 ac_init_help=
700 ac_init_version=false
701 ac_unrecognized_opts=
702 ac_unrecognized_sep=
703 # The variables have the same names as the options, with
704 # dashes changed to underlines.
705 cache_file=/dev/null
706 exec_prefix=NONE
707 no_create=
708 no_recursion=
709 prefix=NONE
710 program_prefix=NONE
711 program_suffix=NONE
712 program_transform_name=s,x,x,
713 silent=
714 site=
715 srcdir=
716 verbose=
717 x_includes=NONE
718 x_libraries=NONE
720 # Installation directory options.
721 # These are left unexpanded so users can "make install exec_prefix=/foo"
722 # and all the variables that are supposed to be based on exec_prefix
723 # by default will actually change.
724 # Use braces instead of parens because sh, perl, etc. also accept them.
725 # (The list follows the same order as the GNU Coding Standards.)
726 bindir='${exec_prefix}/bin'
727 sbindir='${exec_prefix}/sbin'
728 libexecdir='${exec_prefix}/libexec'
729 datarootdir='${prefix}/share'
730 datadir='${datarootdir}'
731 sysconfdir='${prefix}/etc'
732 sharedstatedir='${prefix}/com'
733 localstatedir='${prefix}/var'
734 includedir='${prefix}/include'
735 oldincludedir='/usr/include'
736 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
737 infodir='${datarootdir}/info'
738 htmldir='${docdir}'
739 dvidir='${docdir}'
740 pdfdir='${docdir}'
741 psdir='${docdir}'
742 libdir='${exec_prefix}/lib'
743 localedir='${datarootdir}/locale'
744 mandir='${datarootdir}/man'
746 ac_prev=
747 ac_dashdash=
748 for ac_option
750 # If the previous option needs an argument, assign it.
751 if test -n "$ac_prev"; then
752 eval $ac_prev=\$ac_option
753 ac_prev=
754 continue
757 case $ac_option in
758 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
759 *=) ac_optarg= ;;
760 *) ac_optarg=yes ;;
761 esac
763 # Accept the important Cygnus configure options, so we can diagnose typos.
765 case $ac_dashdash$ac_option in
767 ac_dashdash=yes ;;
769 -bindir | --bindir | --bindi | --bind | --bin | --bi)
770 ac_prev=bindir ;;
771 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
772 bindir=$ac_optarg ;;
774 -build | --build | --buil | --bui | --bu)
775 ac_prev=build_alias ;;
776 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
777 build_alias=$ac_optarg ;;
779 -cache-file | --cache-file | --cache-fil | --cache-fi \
780 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
781 ac_prev=cache_file ;;
782 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
783 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
784 cache_file=$ac_optarg ;;
786 --config-cache | -C)
787 cache_file=config.cache ;;
789 -datadir | --datadir | --datadi | --datad)
790 ac_prev=datadir ;;
791 -datadir=* | --datadir=* | --datadi=* | --datad=*)
792 datadir=$ac_optarg ;;
794 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
795 | --dataroo | --dataro | --datar)
796 ac_prev=datarootdir ;;
797 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
798 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
799 datarootdir=$ac_optarg ;;
801 -disable-* | --disable-*)
802 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
803 # Reject names that are not valid shell variable names.
804 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
805 as_fn_error $? "invalid feature name: $ac_useropt"
806 ac_useropt_orig=$ac_useropt
807 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
808 case $ac_user_opts in
810 "enable_$ac_useropt"
811 "*) ;;
812 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
813 ac_unrecognized_sep=', ';;
814 esac
815 eval enable_$ac_useropt=no ;;
817 -docdir | --docdir | --docdi | --doc | --do)
818 ac_prev=docdir ;;
819 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
820 docdir=$ac_optarg ;;
822 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
823 ac_prev=dvidir ;;
824 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
825 dvidir=$ac_optarg ;;
827 -enable-* | --enable-*)
828 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
829 # Reject names that are not valid shell variable names.
830 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
831 as_fn_error $? "invalid feature name: $ac_useropt"
832 ac_useropt_orig=$ac_useropt
833 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
834 case $ac_user_opts in
836 "enable_$ac_useropt"
837 "*) ;;
838 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
839 ac_unrecognized_sep=', ';;
840 esac
841 eval enable_$ac_useropt=\$ac_optarg ;;
843 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
844 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
845 | --exec | --exe | --ex)
846 ac_prev=exec_prefix ;;
847 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
848 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
849 | --exec=* | --exe=* | --ex=*)
850 exec_prefix=$ac_optarg ;;
852 -gas | --gas | --ga | --g)
853 # Obsolete; use --with-gas.
854 with_gas=yes ;;
856 -help | --help | --hel | --he | -h)
857 ac_init_help=long ;;
858 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
859 ac_init_help=recursive ;;
860 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
861 ac_init_help=short ;;
863 -host | --host | --hos | --ho)
864 ac_prev=host_alias ;;
865 -host=* | --host=* | --hos=* | --ho=*)
866 host_alias=$ac_optarg ;;
868 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
869 ac_prev=htmldir ;;
870 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
871 | --ht=*)
872 htmldir=$ac_optarg ;;
874 -includedir | --includedir | --includedi | --included | --include \
875 | --includ | --inclu | --incl | --inc)
876 ac_prev=includedir ;;
877 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
878 | --includ=* | --inclu=* | --incl=* | --inc=*)
879 includedir=$ac_optarg ;;
881 -infodir | --infodir | --infodi | --infod | --info | --inf)
882 ac_prev=infodir ;;
883 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
884 infodir=$ac_optarg ;;
886 -libdir | --libdir | --libdi | --libd)
887 ac_prev=libdir ;;
888 -libdir=* | --libdir=* | --libdi=* | --libd=*)
889 libdir=$ac_optarg ;;
891 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
892 | --libexe | --libex | --libe)
893 ac_prev=libexecdir ;;
894 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
895 | --libexe=* | --libex=* | --libe=*)
896 libexecdir=$ac_optarg ;;
898 -localedir | --localedir | --localedi | --localed | --locale)
899 ac_prev=localedir ;;
900 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
901 localedir=$ac_optarg ;;
903 -localstatedir | --localstatedir | --localstatedi | --localstated \
904 | --localstate | --localstat | --localsta | --localst | --locals)
905 ac_prev=localstatedir ;;
906 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
907 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
908 localstatedir=$ac_optarg ;;
910 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
911 ac_prev=mandir ;;
912 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
913 mandir=$ac_optarg ;;
915 -nfp | --nfp | --nf)
916 # Obsolete; use --without-fp.
917 with_fp=no ;;
919 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
920 | --no-cr | --no-c | -n)
921 no_create=yes ;;
923 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
924 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
925 no_recursion=yes ;;
927 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
928 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
929 | --oldin | --oldi | --old | --ol | --o)
930 ac_prev=oldincludedir ;;
931 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
932 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
933 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
934 oldincludedir=$ac_optarg ;;
936 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
937 ac_prev=prefix ;;
938 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
939 prefix=$ac_optarg ;;
941 -program-prefix | --program-prefix | --program-prefi | --program-pref \
942 | --program-pre | --program-pr | --program-p)
943 ac_prev=program_prefix ;;
944 -program-prefix=* | --program-prefix=* | --program-prefi=* \
945 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
946 program_prefix=$ac_optarg ;;
948 -program-suffix | --program-suffix | --program-suffi | --program-suff \
949 | --program-suf | --program-su | --program-s)
950 ac_prev=program_suffix ;;
951 -program-suffix=* | --program-suffix=* | --program-suffi=* \
952 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
953 program_suffix=$ac_optarg ;;
955 -program-transform-name | --program-transform-name \
956 | --program-transform-nam | --program-transform-na \
957 | --program-transform-n | --program-transform- \
958 | --program-transform | --program-transfor \
959 | --program-transfo | --program-transf \
960 | --program-trans | --program-tran \
961 | --progr-tra | --program-tr | --program-t)
962 ac_prev=program_transform_name ;;
963 -program-transform-name=* | --program-transform-name=* \
964 | --program-transform-nam=* | --program-transform-na=* \
965 | --program-transform-n=* | --program-transform-=* \
966 | --program-transform=* | --program-transfor=* \
967 | --program-transfo=* | --program-transf=* \
968 | --program-trans=* | --program-tran=* \
969 | --progr-tra=* | --program-tr=* | --program-t=*)
970 program_transform_name=$ac_optarg ;;
972 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
973 ac_prev=pdfdir ;;
974 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
975 pdfdir=$ac_optarg ;;
977 -psdir | --psdir | --psdi | --psd | --ps)
978 ac_prev=psdir ;;
979 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
980 psdir=$ac_optarg ;;
982 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
983 | -silent | --silent | --silen | --sile | --sil)
984 silent=yes ;;
986 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
987 ac_prev=sbindir ;;
988 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
989 | --sbi=* | --sb=*)
990 sbindir=$ac_optarg ;;
992 -sharedstatedir | --sharedstatedir | --sharedstatedi \
993 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
994 | --sharedst | --shareds | --shared | --share | --shar \
995 | --sha | --sh)
996 ac_prev=sharedstatedir ;;
997 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
998 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
999 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1000 | --sha=* | --sh=*)
1001 sharedstatedir=$ac_optarg ;;
1003 -site | --site | --sit)
1004 ac_prev=site ;;
1005 -site=* | --site=* | --sit=*)
1006 site=$ac_optarg ;;
1008 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1009 ac_prev=srcdir ;;
1010 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1011 srcdir=$ac_optarg ;;
1013 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1014 | --syscon | --sysco | --sysc | --sys | --sy)
1015 ac_prev=sysconfdir ;;
1016 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1017 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1018 sysconfdir=$ac_optarg ;;
1020 -target | --target | --targe | --targ | --tar | --ta | --t)
1021 ac_prev=target_alias ;;
1022 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1023 target_alias=$ac_optarg ;;
1025 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1026 verbose=yes ;;
1028 -version | --version | --versio | --versi | --vers | -V)
1029 ac_init_version=: ;;
1031 -with-* | --with-*)
1032 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1033 # Reject names that are not valid shell variable names.
1034 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1035 as_fn_error $? "invalid package name: $ac_useropt"
1036 ac_useropt_orig=$ac_useropt
1037 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1038 case $ac_user_opts in
1040 "with_$ac_useropt"
1041 "*) ;;
1042 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1043 ac_unrecognized_sep=', ';;
1044 esac
1045 eval with_$ac_useropt=\$ac_optarg ;;
1047 -without-* | --without-*)
1048 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1049 # Reject names that are not valid shell variable names.
1050 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1051 as_fn_error $? "invalid package name: $ac_useropt"
1052 ac_useropt_orig=$ac_useropt
1053 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1054 case $ac_user_opts in
1056 "with_$ac_useropt"
1057 "*) ;;
1058 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1059 ac_unrecognized_sep=', ';;
1060 esac
1061 eval with_$ac_useropt=no ;;
1063 --x)
1064 # Obsolete; use --with-x.
1065 with_x=yes ;;
1067 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1068 | --x-incl | --x-inc | --x-in | --x-i)
1069 ac_prev=x_includes ;;
1070 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1071 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1072 x_includes=$ac_optarg ;;
1074 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1075 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1076 ac_prev=x_libraries ;;
1077 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1078 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1079 x_libraries=$ac_optarg ;;
1081 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1082 Try \`$0 --help' for more information"
1085 *=*)
1086 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1087 # Reject names that are not valid shell variable names.
1088 case $ac_envvar in #(
1089 '' | [0-9]* | *[!_$as_cr_alnum]* )
1090 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1091 esac
1092 eval $ac_envvar=\$ac_optarg
1093 export $ac_envvar ;;
1096 # FIXME: should be removed in autoconf 3.0.
1097 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1098 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1099 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1100 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1103 esac
1104 done
1106 if test -n "$ac_prev"; then
1107 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1108 as_fn_error $? "missing argument to $ac_option"
1111 if test -n "$ac_unrecognized_opts"; then
1112 case $enable_option_checking in
1113 no) ;;
1114 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1115 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1116 esac
1119 # Check all directory arguments for consistency.
1120 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1121 datadir sysconfdir sharedstatedir localstatedir includedir \
1122 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1123 libdir localedir mandir
1125 eval ac_val=\$$ac_var
1126 # Remove trailing slashes.
1127 case $ac_val in
1128 */ )
1129 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1130 eval $ac_var=\$ac_val;;
1131 esac
1132 # Be sure to have absolute directory names.
1133 case $ac_val in
1134 [\\/$]* | ?:[\\/]* ) continue;;
1135 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1136 esac
1137 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1138 done
1140 # There might be people who depend on the old broken behavior: `$host'
1141 # used to hold the argument of --host etc.
1142 # FIXME: To remove some day.
1143 build=$build_alias
1144 host=$host_alias
1145 target=$target_alias
1147 # FIXME: To remove some day.
1148 if test "x$host_alias" != x; then
1149 if test "x$build_alias" = x; then
1150 cross_compiling=maybe
1151 elif test "x$build_alias" != "x$host_alias"; then
1152 cross_compiling=yes
1156 ac_tool_prefix=
1157 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1159 test "$silent" = yes && exec 6>/dev/null
1162 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1163 ac_ls_di=`ls -di .` &&
1164 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1165 as_fn_error $? "working directory cannot be determined"
1166 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1167 as_fn_error $? "pwd does not report name of working directory"
1170 # Find the source files, if location was not specified.
1171 if test -z "$srcdir"; then
1172 ac_srcdir_defaulted=yes
1173 # Try the directory containing this script, then the parent directory.
1174 ac_confdir=`$as_dirname -- "$as_myself" ||
1175 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1176 X"$as_myself" : 'X\(//\)[^/]' \| \
1177 X"$as_myself" : 'X\(//\)$' \| \
1178 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1179 $as_echo X"$as_myself" |
1180 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1181 s//\1/
1184 /^X\(\/\/\)[^/].*/{
1185 s//\1/
1188 /^X\(\/\/\)$/{
1189 s//\1/
1192 /^X\(\/\).*/{
1193 s//\1/
1196 s/.*/./; q'`
1197 srcdir=$ac_confdir
1198 if test ! -r "$srcdir/$ac_unique_file"; then
1199 srcdir=..
1201 else
1202 ac_srcdir_defaulted=no
1204 if test ! -r "$srcdir/$ac_unique_file"; then
1205 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1206 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1208 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1209 ac_abs_confdir=`(
1210 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1211 pwd)`
1212 # When building in place, set srcdir=.
1213 if test "$ac_abs_confdir" = "$ac_pwd"; then
1214 srcdir=.
1216 # Remove unnecessary trailing slashes from srcdir.
1217 # Double slashes in file names in object file debugging info
1218 # mess up M-x gdb in Emacs.
1219 case $srcdir in
1220 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1221 esac
1222 for ac_var in $ac_precious_vars; do
1223 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1224 eval ac_env_${ac_var}_value=\$${ac_var}
1225 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1226 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1227 done
1230 # Report the --help message.
1232 if test "$ac_init_help" = "long"; then
1233 # Omit some internal or obsolete options to make the list less imposing.
1234 # This message is too long to be a string in the A/UX 3.1 sh.
1235 cat <<_ACEOF
1236 \`configure' configures m2 to adapt to many kinds of systems.
1238 Usage: $0 [OPTION]... [VAR=VALUE]...
1240 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1241 VAR=VALUE. See below for descriptions of some of the useful variables.
1243 Defaults for the options are specified in brackets.
1245 Configuration:
1246 -h, --help display this help and exit
1247 --help=short display options specific to this package
1248 --help=recursive display the short help of all the included packages
1249 -V, --version display version information and exit
1250 -q, --quiet, --silent do not print \`checking ...' messages
1251 --cache-file=FILE cache test results in FILE [disabled]
1252 -C, --config-cache alias for \`--cache-file=config.cache'
1253 -n, --no-create do not create output files
1254 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1256 Installation directories:
1257 --prefix=PREFIX install architecture-independent files in PREFIX
1258 [$ac_default_prefix]
1259 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1260 [PREFIX]
1262 By default, \`make install' will install all the files in
1263 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1264 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1265 for instance \`--prefix=\$HOME'.
1267 For better control, use the options below.
1269 Fine tuning of the installation directories:
1270 --bindir=DIR user executables [EPREFIX/bin]
1271 --sbindir=DIR system admin executables [EPREFIX/sbin]
1272 --libexecdir=DIR program executables [EPREFIX/libexec]
1273 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1274 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1275 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1276 --libdir=DIR object code libraries [EPREFIX/lib]
1277 --includedir=DIR C header files [PREFIX/include]
1278 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1279 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1280 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1281 --infodir=DIR info documentation [DATAROOTDIR/info]
1282 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1283 --mandir=DIR man documentation [DATAROOTDIR/man]
1284 --docdir=DIR documentation root [DATAROOTDIR/doc/m2]
1285 --htmldir=DIR html documentation [DOCDIR]
1286 --dvidir=DIR dvi documentation [DOCDIR]
1287 --pdfdir=DIR pdf documentation [DOCDIR]
1288 --psdir=DIR ps documentation [DOCDIR]
1289 _ACEOF
1291 cat <<\_ACEOF
1293 System types:
1294 --build=BUILD configure for building on BUILD [guessed]
1295 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1296 --target=TARGET configure for building compilers for TARGET [HOST]
1297 _ACEOF
1300 if test -n "$ac_init_help"; then
1301 case $ac_init_help in
1302 short | recursive ) echo "Configuration of m2 :";;
1303 esac
1304 cat <<\_ACEOF
1306 Some influential environment variables:
1307 CC C compiler command
1308 CFLAGS C compiler flags
1309 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1310 nonstandard directory <lib dir>
1311 LIBS libraries to pass to the linker, e.g. -l<library>
1312 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1313 you have headers in a nonstandard directory <include dir>
1314 CPP C preprocessor
1316 Use these variables to override the choices made by `configure' or to help
1317 it to find libraries and programs with nonstandard names/locations.
1319 Report bugs to the package provider.
1320 _ACEOF
1321 ac_status=$?
1324 if test "$ac_init_help" = "recursive"; then
1325 # If there are subdirs, report their specific --help.
1326 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1327 test -d "$ac_dir" ||
1328 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1329 continue
1330 ac_builddir=.
1332 case "$ac_dir" in
1333 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1335 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1336 # A ".." for each directory in $ac_dir_suffix.
1337 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1338 case $ac_top_builddir_sub in
1339 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1340 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1341 esac ;;
1342 esac
1343 ac_abs_top_builddir=$ac_pwd
1344 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1345 # for backward compatibility:
1346 ac_top_builddir=$ac_top_build_prefix
1348 case $srcdir in
1349 .) # We are building in place.
1350 ac_srcdir=.
1351 ac_top_srcdir=$ac_top_builddir_sub
1352 ac_abs_top_srcdir=$ac_pwd ;;
1353 [\\/]* | ?:[\\/]* ) # Absolute name.
1354 ac_srcdir=$srcdir$ac_dir_suffix;
1355 ac_top_srcdir=$srcdir
1356 ac_abs_top_srcdir=$srcdir ;;
1357 *) # Relative name.
1358 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1359 ac_top_srcdir=$ac_top_build_prefix$srcdir
1360 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1361 esac
1362 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1364 cd "$ac_dir" || { ac_status=$?; continue; }
1365 # Check for guested configure.
1366 if test -f "$ac_srcdir/configure.gnu"; then
1367 echo &&
1368 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1369 elif test -f "$ac_srcdir/configure"; then
1370 echo &&
1371 $SHELL "$ac_srcdir/configure" --help=recursive
1372 else
1373 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1374 fi || ac_status=$?
1375 cd "$ac_pwd" || { ac_status=$?; break; }
1376 done
1379 test -n "$ac_init_help" && exit $ac_status
1380 if $ac_init_version; then
1381 cat <<\_ACEOF
1382 m2 configure
1383 generated by GNU Autoconf 2.69
1385 Copyright (C) 2012 Free Software Foundation, Inc.
1386 This configure script is free software; the Free Software Foundation
1387 gives unlimited permission to copy, distribute and modify it.
1388 _ACEOF
1389 exit
1392 ## ------------------------ ##
1393 ## Autoconf initialization. ##
1394 ## ------------------------ ##
1396 # ac_fn_c_try_compile LINENO
1397 # --------------------------
1398 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1399 ac_fn_c_try_compile ()
1401 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1402 rm -f conftest.$ac_objext
1403 if { { ac_try="$ac_compile"
1404 case "(($ac_try" in
1405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1406 *) ac_try_echo=$ac_try;;
1407 esac
1408 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1409 $as_echo "$ac_try_echo"; } >&5
1410 (eval "$ac_compile") 2>conftest.err
1411 ac_status=$?
1412 if test -s conftest.err; then
1413 grep -v '^ *+' conftest.err >conftest.er1
1414 cat conftest.er1 >&5
1415 mv -f conftest.er1 conftest.err
1417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1418 test $ac_status = 0; } && {
1419 test -z "$ac_c_werror_flag" ||
1420 test ! -s conftest.err
1421 } && test -s conftest.$ac_objext; then :
1422 ac_retval=0
1423 else
1424 $as_echo "$as_me: failed program was:" >&5
1425 sed 's/^/| /' conftest.$ac_ext >&5
1427 ac_retval=1
1429 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1430 as_fn_set_status $ac_retval
1432 } # ac_fn_c_try_compile
1434 # ac_fn_c_try_link LINENO
1435 # -----------------------
1436 # Try to link conftest.$ac_ext, and return whether this succeeded.
1437 ac_fn_c_try_link ()
1439 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1440 rm -f conftest.$ac_objext conftest$ac_exeext
1441 if { { ac_try="$ac_link"
1442 case "(($ac_try" in
1443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1444 *) ac_try_echo=$ac_try;;
1445 esac
1446 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1447 $as_echo "$ac_try_echo"; } >&5
1448 (eval "$ac_link") 2>conftest.err
1449 ac_status=$?
1450 if test -s conftest.err; then
1451 grep -v '^ *+' conftest.err >conftest.er1
1452 cat conftest.er1 >&5
1453 mv -f conftest.er1 conftest.err
1455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1456 test $ac_status = 0; } && {
1457 test -z "$ac_c_werror_flag" ||
1458 test ! -s conftest.err
1459 } && test -s conftest$ac_exeext && {
1460 test "$cross_compiling" = yes ||
1461 test -x conftest$ac_exeext
1462 }; then :
1463 ac_retval=0
1464 else
1465 $as_echo "$as_me: failed program was:" >&5
1466 sed 's/^/| /' conftest.$ac_ext >&5
1468 ac_retval=1
1470 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1471 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1472 # interfere with the next link command; also delete a directory that is
1473 # left behind by Apple's compiler. We do this before executing the actions.
1474 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1475 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1476 as_fn_set_status $ac_retval
1478 } # ac_fn_c_try_link
1480 # ac_fn_c_check_func LINENO FUNC VAR
1481 # ----------------------------------
1482 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1483 ac_fn_c_check_func ()
1485 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1487 $as_echo_n "checking for $2... " >&6; }
1488 if eval \${$3+:} false; then :
1489 $as_echo_n "(cached) " >&6
1490 else
1491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1492 /* end confdefs.h. */
1493 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1494 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1495 #define $2 innocuous_$2
1497 /* System header to define __stub macros and hopefully few prototypes,
1498 which can conflict with char $2 (); below.
1499 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1500 <limits.h> exists even on freestanding compilers. */
1502 #ifdef __STDC__
1503 # include <limits.h>
1504 #else
1505 # include <assert.h>
1506 #endif
1508 #undef $2
1510 /* Override any GCC internal prototype to avoid an error.
1511 Use char because int might match the return type of a GCC
1512 builtin and then its argument prototype would still apply. */
1513 #ifdef __cplusplus
1514 extern "C"
1515 #endif
1516 char $2 ();
1517 /* The GNU C library defines this for functions which it implements
1518 to always fail with ENOSYS. Some functions are actually named
1519 something starting with __ and the normal name is an alias. */
1520 #if defined __stub_$2 || defined __stub___$2
1521 choke me
1522 #endif
1525 main ()
1527 return $2 ();
1529 return 0;
1531 _ACEOF
1532 if ac_fn_c_try_link "$LINENO"; then :
1533 eval "$3=yes"
1534 else
1535 eval "$3=no"
1537 rm -f core conftest.err conftest.$ac_objext \
1538 conftest$ac_exeext conftest.$ac_ext
1540 eval ac_res=\$$3
1541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1542 $as_echo "$ac_res" >&6; }
1543 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1545 } # ac_fn_c_check_func
1547 # ac_fn_c_try_cpp LINENO
1548 # ----------------------
1549 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1550 ac_fn_c_try_cpp ()
1552 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1553 if { { ac_try="$ac_cpp conftest.$ac_ext"
1554 case "(($ac_try" in
1555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1556 *) ac_try_echo=$ac_try;;
1557 esac
1558 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1559 $as_echo "$ac_try_echo"; } >&5
1560 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1561 ac_status=$?
1562 if test -s conftest.err; then
1563 grep -v '^ *+' conftest.err >conftest.er1
1564 cat conftest.er1 >&5
1565 mv -f conftest.er1 conftest.err
1567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1568 test $ac_status = 0; } > conftest.i && {
1569 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1570 test ! -s conftest.err
1571 }; then :
1572 ac_retval=0
1573 else
1574 $as_echo "$as_me: failed program was:" >&5
1575 sed 's/^/| /' conftest.$ac_ext >&5
1577 ac_retval=1
1579 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1580 as_fn_set_status $ac_retval
1582 } # ac_fn_c_try_cpp
1584 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1585 # -------------------------------------------------------
1586 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1587 # the include files in INCLUDES and setting the cache variable VAR
1588 # accordingly.
1589 ac_fn_c_check_header_mongrel ()
1591 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1592 if eval \${$3+:} false; then :
1593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1594 $as_echo_n "checking for $2... " >&6; }
1595 if eval \${$3+:} false; then :
1596 $as_echo_n "(cached) " >&6
1598 eval ac_res=\$$3
1599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1600 $as_echo "$ac_res" >&6; }
1601 else
1602 # Is the header compilable?
1603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1604 $as_echo_n "checking $2 usability... " >&6; }
1605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1606 /* end confdefs.h. */
1608 #include <$2>
1609 _ACEOF
1610 if ac_fn_c_try_compile "$LINENO"; then :
1611 ac_header_compiler=yes
1612 else
1613 ac_header_compiler=no
1615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1617 $as_echo "$ac_header_compiler" >&6; }
1619 # Is the header present?
1620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1621 $as_echo_n "checking $2 presence... " >&6; }
1622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1623 /* end confdefs.h. */
1624 #include <$2>
1625 _ACEOF
1626 if ac_fn_c_try_cpp "$LINENO"; then :
1627 ac_header_preproc=yes
1628 else
1629 ac_header_preproc=no
1631 rm -f conftest.err conftest.i conftest.$ac_ext
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1633 $as_echo "$ac_header_preproc" >&6; }
1635 # So? What about this header?
1636 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1637 yes:no: )
1638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1639 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1641 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1643 no:yes:* )
1644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1645 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1647 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1649 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1651 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1653 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1655 esac
1656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1657 $as_echo_n "checking for $2... " >&6; }
1658 if eval \${$3+:} false; then :
1659 $as_echo_n "(cached) " >&6
1660 else
1661 eval "$3=\$ac_header_compiler"
1663 eval ac_res=\$$3
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1665 $as_echo "$ac_res" >&6; }
1667 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1669 } # ac_fn_c_check_header_mongrel
1671 # ac_fn_c_try_run LINENO
1672 # ----------------------
1673 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1674 # that executables *can* be run.
1675 ac_fn_c_try_run ()
1677 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1678 if { { ac_try="$ac_link"
1679 case "(($ac_try" in
1680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1681 *) ac_try_echo=$ac_try;;
1682 esac
1683 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1684 $as_echo "$ac_try_echo"; } >&5
1685 (eval "$ac_link") 2>&5
1686 ac_status=$?
1687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1688 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1689 { { case "(($ac_try" in
1690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1691 *) ac_try_echo=$ac_try;;
1692 esac
1693 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1694 $as_echo "$ac_try_echo"; } >&5
1695 (eval "$ac_try") 2>&5
1696 ac_status=$?
1697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1698 test $ac_status = 0; }; }; then :
1699 ac_retval=0
1700 else
1701 $as_echo "$as_me: program exited with status $ac_status" >&5
1702 $as_echo "$as_me: failed program was:" >&5
1703 sed 's/^/| /' conftest.$ac_ext >&5
1705 ac_retval=$ac_status
1707 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1708 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1709 as_fn_set_status $ac_retval
1711 } # ac_fn_c_try_run
1713 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1714 # -------------------------------------------------------
1715 # Tests whether HEADER exists and can be compiled using the include files in
1716 # INCLUDES, setting the cache variable VAR accordingly.
1717 ac_fn_c_check_header_compile ()
1719 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1721 $as_echo_n "checking for $2... " >&6; }
1722 if eval \${$3+:} false; then :
1723 $as_echo_n "(cached) " >&6
1724 else
1725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1726 /* end confdefs.h. */
1728 #include <$2>
1729 _ACEOF
1730 if ac_fn_c_try_compile "$LINENO"; then :
1731 eval "$3=yes"
1732 else
1733 eval "$3=no"
1735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1737 eval ac_res=\$$3
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1739 $as_echo "$ac_res" >&6; }
1740 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1742 } # ac_fn_c_check_header_compile
1743 cat >config.log <<_ACEOF
1744 This file contains any messages produced by compilers while
1745 running configure, to aid debugging if configure makes a mistake.
1747 It was created by m2 $as_me , which was
1748 generated by GNU Autoconf 2.69. Invocation command line was
1750 $ $0 $@
1752 _ACEOF
1753 exec 5>>config.log
1755 cat <<_ASUNAME
1756 ## --------- ##
1757 ## Platform. ##
1758 ## --------- ##
1760 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1761 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1762 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1763 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1764 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1766 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1767 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1769 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1770 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1771 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1772 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1773 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1774 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1775 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1777 _ASUNAME
1779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1780 for as_dir in $PATH
1782 IFS=$as_save_IFS
1783 test -z "$as_dir" && as_dir=.
1784 $as_echo "PATH: $as_dir"
1785 done
1786 IFS=$as_save_IFS
1788 } >&5
1790 cat >&5 <<_ACEOF
1793 ## ----------- ##
1794 ## Core tests. ##
1795 ## ----------- ##
1797 _ACEOF
1800 # Keep a trace of the command line.
1801 # Strip out --no-create and --no-recursion so they do not pile up.
1802 # Strip out --silent because we don't want to record it for future runs.
1803 # Also quote any args containing shell meta-characters.
1804 # Make two passes to allow for proper duplicate-argument suppression.
1805 ac_configure_args=
1806 ac_configure_args0=
1807 ac_configure_args1=
1808 ac_must_keep_next=false
1809 for ac_pass in 1 2
1811 for ac_arg
1813 case $ac_arg in
1814 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1815 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1816 | -silent | --silent | --silen | --sile | --sil)
1817 continue ;;
1818 *\'*)
1819 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1820 esac
1821 case $ac_pass in
1822 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1824 as_fn_append ac_configure_args1 " '$ac_arg'"
1825 if test $ac_must_keep_next = true; then
1826 ac_must_keep_next=false # Got value, back to normal.
1827 else
1828 case $ac_arg in
1829 *=* | --config-cache | -C | -disable-* | --disable-* \
1830 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1831 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1832 | -with-* | --with-* | -without-* | --without-* | --x)
1833 case "$ac_configure_args0 " in
1834 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1835 esac
1837 -* ) ac_must_keep_next=true ;;
1838 esac
1840 as_fn_append ac_configure_args " '$ac_arg'"
1842 esac
1843 done
1844 done
1845 { ac_configure_args0=; unset ac_configure_args0;}
1846 { ac_configure_args1=; unset ac_configure_args1;}
1848 # When interrupted or exit'd, cleanup temporary files, and complete
1849 # config.log. We remove comments because anyway the quotes in there
1850 # would cause problems or look ugly.
1851 # WARNING: Use '\'' to represent an apostrophe within the trap.
1852 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1853 trap 'exit_status=$?
1854 # Save into config.log some information that might help in debugging.
1856 echo
1858 $as_echo "## ---------------- ##
1859 ## Cache variables. ##
1860 ## ---------------- ##"
1861 echo
1862 # The following way of writing the cache mishandles newlines in values,
1864 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1865 eval ac_val=\$$ac_var
1866 case $ac_val in #(
1867 *${as_nl}*)
1868 case $ac_var in #(
1869 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1870 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1871 esac
1872 case $ac_var in #(
1873 _ | IFS | as_nl) ;; #(
1874 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1875 *) { eval $ac_var=; unset $ac_var;} ;;
1876 esac ;;
1877 esac
1878 done
1879 (set) 2>&1 |
1880 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1881 *${as_nl}ac_space=\ *)
1882 sed -n \
1883 "s/'\''/'\''\\\\'\'''\''/g;
1884 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1885 ;; #(
1887 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1889 esac |
1890 sort
1892 echo
1894 $as_echo "## ----------------- ##
1895 ## Output variables. ##
1896 ## ----------------- ##"
1897 echo
1898 for ac_var in $ac_subst_vars
1900 eval ac_val=\$$ac_var
1901 case $ac_val in
1902 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1903 esac
1904 $as_echo "$ac_var='\''$ac_val'\''"
1905 done | sort
1906 echo
1908 if test -n "$ac_subst_files"; then
1909 $as_echo "## ------------------- ##
1910 ## File substitutions. ##
1911 ## ------------------- ##"
1912 echo
1913 for ac_var in $ac_subst_files
1915 eval ac_val=\$$ac_var
1916 case $ac_val in
1917 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1918 esac
1919 $as_echo "$ac_var='\''$ac_val'\''"
1920 done | sort
1921 echo
1924 if test -s confdefs.h; then
1925 $as_echo "## ----------- ##
1926 ## confdefs.h. ##
1927 ## ----------- ##"
1928 echo
1929 cat confdefs.h
1930 echo
1932 test "$ac_signal" != 0 &&
1933 $as_echo "$as_me: caught signal $ac_signal"
1934 $as_echo "$as_me: exit $exit_status"
1935 } >&5
1936 rm -f core *.core core.conftest.* &&
1937 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1938 exit $exit_status
1940 for ac_signal in 1 2 13 15; do
1941 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1942 done
1943 ac_signal=0
1945 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1946 rm -f -r conftest* confdefs.h
1948 $as_echo "/* confdefs.h */" > confdefs.h
1950 # Predefined preprocessor variables.
1952 cat >>confdefs.h <<_ACEOF
1953 #define PACKAGE_NAME "$PACKAGE_NAME"
1954 _ACEOF
1956 cat >>confdefs.h <<_ACEOF
1957 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1958 _ACEOF
1960 cat >>confdefs.h <<_ACEOF
1961 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1962 _ACEOF
1964 cat >>confdefs.h <<_ACEOF
1965 #define PACKAGE_STRING "$PACKAGE_STRING"
1966 _ACEOF
1968 cat >>confdefs.h <<_ACEOF
1969 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1970 _ACEOF
1972 cat >>confdefs.h <<_ACEOF
1973 #define PACKAGE_URL "$PACKAGE_URL"
1974 _ACEOF
1977 # Let the site file select an alternate cache file if it wants to.
1978 # Prefer an explicitly selected file to automatically selected ones.
1979 ac_site_file1=NONE
1980 ac_site_file2=NONE
1981 if test -n "$CONFIG_SITE"; then
1982 # We do not want a PATH search for config.site.
1983 case $CONFIG_SITE in #((
1984 -*) ac_site_file1=./$CONFIG_SITE;;
1985 */*) ac_site_file1=$CONFIG_SITE;;
1986 *) ac_site_file1=./$CONFIG_SITE;;
1987 esac
1988 elif test "x$prefix" != xNONE; then
1989 ac_site_file1=$prefix/share/config.site
1990 ac_site_file2=$prefix/etc/config.site
1991 else
1992 ac_site_file1=$ac_default_prefix/share/config.site
1993 ac_site_file2=$ac_default_prefix/etc/config.site
1995 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1997 test "x$ac_site_file" = xNONE && continue
1998 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2000 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2001 sed 's/^/| /' "$ac_site_file" >&5
2002 . "$ac_site_file" \
2003 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2004 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2005 as_fn_error $? "failed to load site script $ac_site_file
2006 See \`config.log' for more details" "$LINENO" 5; }
2008 done
2010 if test -r "$cache_file"; then
2011 # Some versions of bash will fail to source /dev/null (special files
2012 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2013 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2015 $as_echo "$as_me: loading cache $cache_file" >&6;}
2016 case $cache_file in
2017 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2018 *) . "./$cache_file";;
2019 esac
2021 else
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2023 $as_echo "$as_me: creating cache $cache_file" >&6;}
2024 >$cache_file
2027 # Check that the precious variables saved in the cache have kept the same
2028 # value.
2029 ac_cache_corrupted=false
2030 for ac_var in $ac_precious_vars; do
2031 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2032 eval ac_new_set=\$ac_env_${ac_var}_set
2033 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2034 eval ac_new_val=\$ac_env_${ac_var}_value
2035 case $ac_old_set,$ac_new_set in
2036 set,)
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2038 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2039 ac_cache_corrupted=: ;;
2040 ,set)
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2042 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2043 ac_cache_corrupted=: ;;
2044 ,);;
2046 if test "x$ac_old_val" != "x$ac_new_val"; then
2047 # differences in whitespace do not lead to failure.
2048 ac_old_val_w=`echo x $ac_old_val`
2049 ac_new_val_w=`echo x $ac_new_val`
2050 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2052 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2053 ac_cache_corrupted=:
2054 else
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2056 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2057 eval $ac_var=\$ac_old_val
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2060 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2062 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2063 fi;;
2064 esac
2065 # Pass precious variables to config.status.
2066 if test "$ac_new_set" = set; then
2067 case $ac_new_val in
2068 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2069 *) ac_arg=$ac_var=$ac_new_val ;;
2070 esac
2071 case " $ac_configure_args " in
2072 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2073 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2074 esac
2076 done
2077 if $ac_cache_corrupted; then
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2079 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2080 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2081 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2082 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2084 ## -------------------- ##
2085 ## Main body of script. ##
2086 ## -------------------- ##
2088 ac_ext=c
2089 ac_cpp='$CPP $CPPFLAGS'
2090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2096 # Determine the host, build, and target systems
2097 ac_aux_dir=
2098 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2099 if test -f "$ac_dir/install-sh"; then
2100 ac_aux_dir=$ac_dir
2101 ac_install_sh="$ac_aux_dir/install-sh -c"
2102 break
2103 elif test -f "$ac_dir/install.sh"; then
2104 ac_aux_dir=$ac_dir
2105 ac_install_sh="$ac_aux_dir/install.sh -c"
2106 break
2107 elif test -f "$ac_dir/shtool"; then
2108 ac_aux_dir=$ac_dir
2109 ac_install_sh="$ac_aux_dir/shtool install -c"
2110 break
2112 done
2113 if test -z "$ac_aux_dir"; then
2114 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2117 # These three variables are undocumented and unsupported,
2118 # and are intended to be withdrawn in a future Autoconf release.
2119 # They can cause serious problems if a builder's source tree is in a directory
2120 # whose full name contains unusual characters.
2121 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2122 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2123 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2126 # Make sure we can run config.sub.
2127 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2128 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2131 $as_echo_n "checking build system type... " >&6; }
2132 if ${ac_cv_build+:} false; then :
2133 $as_echo_n "(cached) " >&6
2134 else
2135 ac_build_alias=$build_alias
2136 test "x$ac_build_alias" = x &&
2137 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2138 test "x$ac_build_alias" = x &&
2139 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2140 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2141 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2145 $as_echo "$ac_cv_build" >&6; }
2146 case $ac_cv_build in
2147 *-*-*) ;;
2148 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2149 esac
2150 build=$ac_cv_build
2151 ac_save_IFS=$IFS; IFS='-'
2152 set x $ac_cv_build
2153 shift
2154 build_cpu=$1
2155 build_vendor=$2
2156 shift; shift
2157 # Remember, the first character of IFS is used to create $*,
2158 # except with old shells:
2159 build_os=$*
2160 IFS=$ac_save_IFS
2161 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2165 $as_echo_n "checking host system type... " >&6; }
2166 if ${ac_cv_host+:} false; then :
2167 $as_echo_n "(cached) " >&6
2168 else
2169 if test "x$host_alias" = x; then
2170 ac_cv_host=$ac_cv_build
2171 else
2172 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2173 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2178 $as_echo "$ac_cv_host" >&6; }
2179 case $ac_cv_host in
2180 *-*-*) ;;
2181 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2182 esac
2183 host=$ac_cv_host
2184 ac_save_IFS=$IFS; IFS='-'
2185 set x $ac_cv_host
2186 shift
2187 host_cpu=$1
2188 host_vendor=$2
2189 shift; shift
2190 # Remember, the first character of IFS is used to create $*,
2191 # except with old shells:
2192 host_os=$*
2193 IFS=$ac_save_IFS
2194 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2198 $as_echo_n "checking target system type... " >&6; }
2199 if ${ac_cv_target+:} false; then :
2200 $as_echo_n "(cached) " >&6
2201 else
2202 if test "x$target_alias" = x; then
2203 ac_cv_target=$ac_cv_host
2204 else
2205 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2206 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2211 $as_echo "$ac_cv_target" >&6; }
2212 case $ac_cv_target in
2213 *-*-*) ;;
2214 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2215 esac
2216 target=$ac_cv_target
2217 ac_save_IFS=$IFS; IFS='-'
2218 set x $ac_cv_target
2219 shift
2220 target_cpu=$1
2221 target_vendor=$2
2222 shift; shift
2223 # Remember, the first character of IFS is used to create $*,
2224 # except with old shells:
2225 target_os=$*
2226 IFS=$ac_save_IFS
2227 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2230 # The aliases save the names the user supplied, while $host etc.
2231 # will get canonicalized.
2232 test -n "$target_alias" &&
2233 test "$program_prefix$program_suffix$program_transform_name" = \
2234 NONENONEs,x,x, &&
2235 program_prefix=${target_alias}-
2237 ac_ext=c
2238 ac_cpp='$CPP $CPPFLAGS'
2239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2242 if test -n "$ac_tool_prefix"; then
2243 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2244 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2246 $as_echo_n "checking for $ac_word... " >&6; }
2247 if ${ac_cv_prog_CC+:} false; then :
2248 $as_echo_n "(cached) " >&6
2249 else
2250 if test -n "$CC"; then
2251 ac_cv_prog_CC="$CC" # Let the user override the test.
2252 else
2253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2254 for as_dir in $PATH
2256 IFS=$as_save_IFS
2257 test -z "$as_dir" && as_dir=.
2258 for ac_exec_ext in '' $ac_executable_extensions; do
2259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2260 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2262 break 2
2264 done
2265 done
2266 IFS=$as_save_IFS
2270 CC=$ac_cv_prog_CC
2271 if test -n "$CC"; then
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2273 $as_echo "$CC" >&6; }
2274 else
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2276 $as_echo "no" >&6; }
2281 if test -z "$ac_cv_prog_CC"; then
2282 ac_ct_CC=$CC
2283 # Extract the first word of "gcc", so it can be a program name with args.
2284 set dummy gcc; ac_word=$2
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2286 $as_echo_n "checking for $ac_word... " >&6; }
2287 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2288 $as_echo_n "(cached) " >&6
2289 else
2290 if test -n "$ac_ct_CC"; then
2291 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2292 else
2293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2294 for as_dir in $PATH
2296 IFS=$as_save_IFS
2297 test -z "$as_dir" && as_dir=.
2298 for ac_exec_ext in '' $ac_executable_extensions; do
2299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2300 ac_cv_prog_ac_ct_CC="gcc"
2301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2302 break 2
2304 done
2305 done
2306 IFS=$as_save_IFS
2310 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2311 if test -n "$ac_ct_CC"; then
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2313 $as_echo "$ac_ct_CC" >&6; }
2314 else
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2316 $as_echo "no" >&6; }
2319 if test "x$ac_ct_CC" = x; then
2320 CC=""
2321 else
2322 case $cross_compiling:$ac_tool_warned in
2323 yes:)
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2325 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2326 ac_tool_warned=yes ;;
2327 esac
2328 CC=$ac_ct_CC
2330 else
2331 CC="$ac_cv_prog_CC"
2334 if test -z "$CC"; then
2335 if test -n "$ac_tool_prefix"; then
2336 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2337 set dummy ${ac_tool_prefix}cc; ac_word=$2
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2339 $as_echo_n "checking for $ac_word... " >&6; }
2340 if ${ac_cv_prog_CC+:} false; then :
2341 $as_echo_n "(cached) " >&6
2342 else
2343 if test -n "$CC"; then
2344 ac_cv_prog_CC="$CC" # Let the user override the test.
2345 else
2346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2347 for as_dir in $PATH
2349 IFS=$as_save_IFS
2350 test -z "$as_dir" && as_dir=.
2351 for ac_exec_ext in '' $ac_executable_extensions; do
2352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2353 ac_cv_prog_CC="${ac_tool_prefix}cc"
2354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2355 break 2
2357 done
2358 done
2359 IFS=$as_save_IFS
2363 CC=$ac_cv_prog_CC
2364 if test -n "$CC"; then
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2366 $as_echo "$CC" >&6; }
2367 else
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2369 $as_echo "no" >&6; }
2375 if test -z "$CC"; then
2376 # Extract the first word of "cc", so it can be a program name with args.
2377 set dummy cc; ac_word=$2
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2379 $as_echo_n "checking for $ac_word... " >&6; }
2380 if ${ac_cv_prog_CC+:} false; then :
2381 $as_echo_n "(cached) " >&6
2382 else
2383 if test -n "$CC"; then
2384 ac_cv_prog_CC="$CC" # Let the user override the test.
2385 else
2386 ac_prog_rejected=no
2387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2388 for as_dir in $PATH
2390 IFS=$as_save_IFS
2391 test -z "$as_dir" && as_dir=.
2392 for ac_exec_ext in '' $ac_executable_extensions; do
2393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2394 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2395 ac_prog_rejected=yes
2396 continue
2398 ac_cv_prog_CC="cc"
2399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2400 break 2
2402 done
2403 done
2404 IFS=$as_save_IFS
2406 if test $ac_prog_rejected = yes; then
2407 # We found a bogon in the path, so make sure we never use it.
2408 set dummy $ac_cv_prog_CC
2409 shift
2410 if test $# != 0; then
2411 # We chose a different compiler from the bogus one.
2412 # However, it has the same basename, so the bogon will be chosen
2413 # first if we set CC to just the basename; use the full file name.
2414 shift
2415 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2420 CC=$ac_cv_prog_CC
2421 if test -n "$CC"; then
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2423 $as_echo "$CC" >&6; }
2424 else
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2426 $as_echo "no" >&6; }
2431 if test -z "$CC"; then
2432 if test -n "$ac_tool_prefix"; then
2433 for ac_prog in cl.exe
2435 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2436 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2438 $as_echo_n "checking for $ac_word... " >&6; }
2439 if ${ac_cv_prog_CC+:} false; then :
2440 $as_echo_n "(cached) " >&6
2441 else
2442 if test -n "$CC"; then
2443 ac_cv_prog_CC="$CC" # Let the user override the test.
2444 else
2445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2446 for as_dir in $PATH
2448 IFS=$as_save_IFS
2449 test -z "$as_dir" && as_dir=.
2450 for ac_exec_ext in '' $ac_executable_extensions; do
2451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2452 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2454 break 2
2456 done
2457 done
2458 IFS=$as_save_IFS
2462 CC=$ac_cv_prog_CC
2463 if test -n "$CC"; then
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2465 $as_echo "$CC" >&6; }
2466 else
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2468 $as_echo "no" >&6; }
2472 test -n "$CC" && break
2473 done
2475 if test -z "$CC"; then
2476 ac_ct_CC=$CC
2477 for ac_prog in cl.exe
2479 # Extract the first word of "$ac_prog", so it can be a program name with args.
2480 set dummy $ac_prog; ac_word=$2
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2482 $as_echo_n "checking for $ac_word... " >&6; }
2483 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2484 $as_echo_n "(cached) " >&6
2485 else
2486 if test -n "$ac_ct_CC"; then
2487 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2488 else
2489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2490 for as_dir in $PATH
2492 IFS=$as_save_IFS
2493 test -z "$as_dir" && as_dir=.
2494 for ac_exec_ext in '' $ac_executable_extensions; do
2495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2496 ac_cv_prog_ac_ct_CC="$ac_prog"
2497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2498 break 2
2500 done
2501 done
2502 IFS=$as_save_IFS
2506 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2507 if test -n "$ac_ct_CC"; then
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2509 $as_echo "$ac_ct_CC" >&6; }
2510 else
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2512 $as_echo "no" >&6; }
2516 test -n "$ac_ct_CC" && break
2517 done
2519 if test "x$ac_ct_CC" = x; then
2520 CC=""
2521 else
2522 case $cross_compiling:$ac_tool_warned in
2523 yes:)
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2525 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2526 ac_tool_warned=yes ;;
2527 esac
2528 CC=$ac_ct_CC
2535 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2536 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2537 as_fn_error $? "no acceptable C compiler found in \$PATH
2538 See \`config.log' for more details" "$LINENO" 5; }
2540 # Provide some information about the compiler.
2541 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2542 set X $ac_compile
2543 ac_compiler=$2
2544 for ac_option in --version -v -V -qversion; do
2545 { { ac_try="$ac_compiler $ac_option >&5"
2546 case "(($ac_try" in
2547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2548 *) ac_try_echo=$ac_try;;
2549 esac
2550 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2551 $as_echo "$ac_try_echo"; } >&5
2552 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2553 ac_status=$?
2554 if test -s conftest.err; then
2555 sed '10a\
2556 ... rest of stderr output deleted ...
2557 10q' conftest.err >conftest.er1
2558 cat conftest.er1 >&5
2560 rm -f conftest.er1 conftest.err
2561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2562 test $ac_status = 0; }
2563 done
2565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2566 /* end confdefs.h. */
2569 main ()
2573 return 0;
2575 _ACEOF
2576 ac_clean_files_save=$ac_clean_files
2577 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2578 # Try to create an executable without -o first, disregard a.out.
2579 # It will help us diagnose broken compilers, and finding out an intuition
2580 # of exeext.
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2582 $as_echo_n "checking whether the C compiler works... " >&6; }
2583 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2585 # The possible output files:
2586 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2588 ac_rmfiles=
2589 for ac_file in $ac_files
2591 case $ac_file in
2592 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2593 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2594 esac
2595 done
2596 rm -f $ac_rmfiles
2598 if { { ac_try="$ac_link_default"
2599 case "(($ac_try" in
2600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2601 *) ac_try_echo=$ac_try;;
2602 esac
2603 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2604 $as_echo "$ac_try_echo"; } >&5
2605 (eval "$ac_link_default") 2>&5
2606 ac_status=$?
2607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2608 test $ac_status = 0; }; then :
2609 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2610 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2611 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2612 # so that the user can short-circuit this test for compilers unknown to
2613 # Autoconf.
2614 for ac_file in $ac_files ''
2616 test -f "$ac_file" || continue
2617 case $ac_file in
2618 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2620 [ab].out )
2621 # We found the default executable, but exeext='' is most
2622 # certainly right.
2623 break;;
2624 *.* )
2625 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2626 then :; else
2627 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2629 # We set ac_cv_exeext here because the later test for it is not
2630 # safe: cross compilers may not add the suffix if given an `-o'
2631 # argument, so we may need to know it at that point already.
2632 # Even if this section looks crufty: it has the advantage of
2633 # actually working.
2634 break;;
2636 break;;
2637 esac
2638 done
2639 test "$ac_cv_exeext" = no && ac_cv_exeext=
2641 else
2642 ac_file=''
2644 if test -z "$ac_file"; then :
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2646 $as_echo "no" >&6; }
2647 $as_echo "$as_me: failed program was:" >&5
2648 sed 's/^/| /' conftest.$ac_ext >&5
2650 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2651 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2652 as_fn_error 77 "C compiler cannot create executables
2653 See \`config.log' for more details" "$LINENO" 5; }
2654 else
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2656 $as_echo "yes" >&6; }
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2659 $as_echo_n "checking for C compiler default output file name... " >&6; }
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2661 $as_echo "$ac_file" >&6; }
2662 ac_exeext=$ac_cv_exeext
2664 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2665 ac_clean_files=$ac_clean_files_save
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2667 $as_echo_n "checking for suffix of executables... " >&6; }
2668 if { { ac_try="$ac_link"
2669 case "(($ac_try" in
2670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2671 *) ac_try_echo=$ac_try;;
2672 esac
2673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2674 $as_echo "$ac_try_echo"; } >&5
2675 (eval "$ac_link") 2>&5
2676 ac_status=$?
2677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2678 test $ac_status = 0; }; then :
2679 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2680 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2681 # work properly (i.e., refer to `conftest.exe'), while it won't with
2682 # `rm'.
2683 for ac_file in conftest.exe conftest conftest.*; do
2684 test -f "$ac_file" || continue
2685 case $ac_file in
2686 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2687 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2688 break;;
2689 * ) break;;
2690 esac
2691 done
2692 else
2693 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2694 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2695 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2696 See \`config.log' for more details" "$LINENO" 5; }
2698 rm -f conftest conftest$ac_cv_exeext
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2700 $as_echo "$ac_cv_exeext" >&6; }
2702 rm -f conftest.$ac_ext
2703 EXEEXT=$ac_cv_exeext
2704 ac_exeext=$EXEEXT
2705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2706 /* end confdefs.h. */
2707 #include <stdio.h>
2709 main ()
2711 FILE *f = fopen ("conftest.out", "w");
2712 return ferror (f) || fclose (f) != 0;
2715 return 0;
2717 _ACEOF
2718 ac_clean_files="$ac_clean_files conftest.out"
2719 # Check that the compiler produces executables we can run. If not, either
2720 # the compiler is broken, or we cross compile.
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2722 $as_echo_n "checking whether we are cross compiling... " >&6; }
2723 if test "$cross_compiling" != yes; then
2724 { { ac_try="$ac_link"
2725 case "(($ac_try" in
2726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2727 *) ac_try_echo=$ac_try;;
2728 esac
2729 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2730 $as_echo "$ac_try_echo"; } >&5
2731 (eval "$ac_link") 2>&5
2732 ac_status=$?
2733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2734 test $ac_status = 0; }
2735 if { ac_try='./conftest$ac_cv_exeext'
2736 { { case "(($ac_try" in
2737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2738 *) ac_try_echo=$ac_try;;
2739 esac
2740 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2741 $as_echo "$ac_try_echo"; } >&5
2742 (eval "$ac_try") 2>&5
2743 ac_status=$?
2744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2745 test $ac_status = 0; }; }; then
2746 cross_compiling=no
2747 else
2748 if test "$cross_compiling" = maybe; then
2749 cross_compiling=yes
2750 else
2751 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2752 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2753 as_fn_error $? "cannot run C compiled programs.
2754 If you meant to cross compile, use \`--host'.
2755 See \`config.log' for more details" "$LINENO" 5; }
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2760 $as_echo "$cross_compiling" >&6; }
2762 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2763 ac_clean_files=$ac_clean_files_save
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2765 $as_echo_n "checking for suffix of object files... " >&6; }
2766 if ${ac_cv_objext+:} false; then :
2767 $as_echo_n "(cached) " >&6
2768 else
2769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2770 /* end confdefs.h. */
2773 main ()
2777 return 0;
2779 _ACEOF
2780 rm -f conftest.o conftest.obj
2781 if { { ac_try="$ac_compile"
2782 case "(($ac_try" in
2783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2784 *) ac_try_echo=$ac_try;;
2785 esac
2786 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2787 $as_echo "$ac_try_echo"; } >&5
2788 (eval "$ac_compile") 2>&5
2789 ac_status=$?
2790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2791 test $ac_status = 0; }; then :
2792 for ac_file in conftest.o conftest.obj conftest.*; do
2793 test -f "$ac_file" || continue;
2794 case $ac_file in
2795 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2796 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2797 break;;
2798 esac
2799 done
2800 else
2801 $as_echo "$as_me: failed program was:" >&5
2802 sed 's/^/| /' conftest.$ac_ext >&5
2804 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2805 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2806 as_fn_error $? "cannot compute suffix of object files: cannot compile
2807 See \`config.log' for more details" "$LINENO" 5; }
2809 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2812 $as_echo "$ac_cv_objext" >&6; }
2813 OBJEXT=$ac_cv_objext
2814 ac_objext=$OBJEXT
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2816 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2817 if ${ac_cv_c_compiler_gnu+:} false; then :
2818 $as_echo_n "(cached) " >&6
2819 else
2820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2821 /* end confdefs.h. */
2824 main ()
2826 #ifndef __GNUC__
2827 choke me
2828 #endif
2831 return 0;
2833 _ACEOF
2834 if ac_fn_c_try_compile "$LINENO"; then :
2835 ac_compiler_gnu=yes
2836 else
2837 ac_compiler_gnu=no
2839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2840 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2844 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2845 if test $ac_compiler_gnu = yes; then
2846 GCC=yes
2847 else
2848 GCC=
2850 ac_test_CFLAGS=${CFLAGS+set}
2851 ac_save_CFLAGS=$CFLAGS
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2853 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2854 if ${ac_cv_prog_cc_g+:} false; then :
2855 $as_echo_n "(cached) " >&6
2856 else
2857 ac_save_c_werror_flag=$ac_c_werror_flag
2858 ac_c_werror_flag=yes
2859 ac_cv_prog_cc_g=no
2860 CFLAGS="-g"
2861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2862 /* end confdefs.h. */
2865 main ()
2869 return 0;
2871 _ACEOF
2872 if ac_fn_c_try_compile "$LINENO"; then :
2873 ac_cv_prog_cc_g=yes
2874 else
2875 CFLAGS=""
2876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2877 /* end confdefs.h. */
2880 main ()
2884 return 0;
2886 _ACEOF
2887 if ac_fn_c_try_compile "$LINENO"; then :
2889 else
2890 ac_c_werror_flag=$ac_save_c_werror_flag
2891 CFLAGS="-g"
2892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2893 /* end confdefs.h. */
2896 main ()
2900 return 0;
2902 _ACEOF
2903 if ac_fn_c_try_compile "$LINENO"; then :
2904 ac_cv_prog_cc_g=yes
2906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2911 ac_c_werror_flag=$ac_save_c_werror_flag
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2914 $as_echo "$ac_cv_prog_cc_g" >&6; }
2915 if test "$ac_test_CFLAGS" = set; then
2916 CFLAGS=$ac_save_CFLAGS
2917 elif test $ac_cv_prog_cc_g = yes; then
2918 if test "$GCC" = yes; then
2919 CFLAGS="-g -O2"
2920 else
2921 CFLAGS="-g"
2923 else
2924 if test "$GCC" = yes; then
2925 CFLAGS="-O2"
2926 else
2927 CFLAGS=
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2931 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2932 if ${ac_cv_prog_cc_c89+:} false; then :
2933 $as_echo_n "(cached) " >&6
2934 else
2935 ac_cv_prog_cc_c89=no
2936 ac_save_CC=$CC
2937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2938 /* end confdefs.h. */
2939 #include <stdarg.h>
2940 #include <stdio.h>
2941 struct stat;
2942 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2943 struct buf { int x; };
2944 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2945 static char *e (p, i)
2946 char **p;
2947 int i;
2949 return p[i];
2951 static char *f (char * (*g) (char **, int), char **p, ...)
2953 char *s;
2954 va_list v;
2955 va_start (v,p);
2956 s = g (p, va_arg (v,int));
2957 va_end (v);
2958 return s;
2961 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2962 function prototypes and stuff, but not '\xHH' hex character constants.
2963 These don't provoke an error unfortunately, instead are silently treated
2964 as 'x'. The following induces an error, until -std is added to get
2965 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2966 array size at least. It's necessary to write '\x00'==0 to get something
2967 that's true only with -std. */
2968 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2970 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2971 inside strings and character constants. */
2972 #define FOO(x) 'x'
2973 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2975 int test (int i, double x);
2976 struct s1 {int (*f) (int a);};
2977 struct s2 {int (*f) (double a);};
2978 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2979 int argc;
2980 char **argv;
2982 main ()
2984 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2986 return 0;
2988 _ACEOF
2989 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2990 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2992 CC="$ac_save_CC $ac_arg"
2993 if ac_fn_c_try_compile "$LINENO"; then :
2994 ac_cv_prog_cc_c89=$ac_arg
2996 rm -f core conftest.err conftest.$ac_objext
2997 test "x$ac_cv_prog_cc_c89" != "xno" && break
2998 done
2999 rm -f conftest.$ac_ext
3000 CC=$ac_save_CC
3003 # AC_CACHE_VAL
3004 case "x$ac_cv_prog_cc_c89" in
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3007 $as_echo "none needed" >&6; } ;;
3008 xno)
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3010 $as_echo "unsupported" >&6; } ;;
3012 CC="$CC $ac_cv_prog_cc_c89"
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3014 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3015 esac
3016 if test "x$ac_cv_prog_cc_c89" != xno; then :
3020 ac_ext=c
3021 ac_cpp='$CPP $CPPFLAGS'
3022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3027 for ac_func in stpcpy
3028 do :
3029 ac_fn_c_check_func "$LINENO" "stpcpy" "ac_cv_func_stpcpy"
3030 if test "x$ac_cv_func_stpcpy" = xyes; then :
3031 cat >>confdefs.h <<_ACEOF
3032 #define HAVE_STPCPY 1
3033 _ACEOF
3036 done
3039 ac_ext=c
3040 ac_cpp='$CPP $CPPFLAGS'
3041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3045 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3046 # On Suns, sometimes $CPP names a directory.
3047 if test -n "$CPP" && test -d "$CPP"; then
3048 CPP=
3050 if test -z "$CPP"; then
3051 if ${ac_cv_prog_CPP+:} false; then :
3052 $as_echo_n "(cached) " >&6
3053 else
3054 # Double quotes because CPP needs to be expanded
3055 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3057 ac_preproc_ok=false
3058 for ac_c_preproc_warn_flag in '' yes
3060 # Use a header file that comes with gcc, so configuring glibc
3061 # with a fresh cross-compiler works.
3062 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3063 # <limits.h> exists even on freestanding compilers.
3064 # On the NeXT, cc -E runs the code through the compiler's parser,
3065 # not just through cpp. "Syntax error" is here to catch this case.
3066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3067 /* end confdefs.h. */
3068 #ifdef __STDC__
3069 # include <limits.h>
3070 #else
3071 # include <assert.h>
3072 #endif
3073 Syntax error
3074 _ACEOF
3075 if ac_fn_c_try_cpp "$LINENO"; then :
3077 else
3078 # Broken: fails on valid input.
3079 continue
3081 rm -f conftest.err conftest.i conftest.$ac_ext
3083 # OK, works on sane cases. Now check whether nonexistent headers
3084 # can be detected and how.
3085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3086 /* end confdefs.h. */
3087 #include <ac_nonexistent.h>
3088 _ACEOF
3089 if ac_fn_c_try_cpp "$LINENO"; then :
3090 # Broken: success on invalid input.
3091 continue
3092 else
3093 # Passes both tests.
3094 ac_preproc_ok=:
3095 break
3097 rm -f conftest.err conftest.i conftest.$ac_ext
3099 done
3100 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3101 rm -f conftest.i conftest.err conftest.$ac_ext
3102 if $ac_preproc_ok; then :
3103 break
3106 done
3107 ac_cv_prog_CPP=$CPP
3110 CPP=$ac_cv_prog_CPP
3111 else
3112 ac_cv_prog_CPP=$CPP
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3115 $as_echo "$CPP" >&6; }
3116 ac_preproc_ok=false
3117 for ac_c_preproc_warn_flag in '' yes
3119 # Use a header file that comes with gcc, so configuring glibc
3120 # with a fresh cross-compiler works.
3121 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3122 # <limits.h> exists even on freestanding compilers.
3123 # On the NeXT, cc -E runs the code through the compiler's parser,
3124 # not just through cpp. "Syntax error" is here to catch this case.
3125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3126 /* end confdefs.h. */
3127 #ifdef __STDC__
3128 # include <limits.h>
3129 #else
3130 # include <assert.h>
3131 #endif
3132 Syntax error
3133 _ACEOF
3134 if ac_fn_c_try_cpp "$LINENO"; then :
3136 else
3137 # Broken: fails on valid input.
3138 continue
3140 rm -f conftest.err conftest.i conftest.$ac_ext
3142 # OK, works on sane cases. Now check whether nonexistent headers
3143 # can be detected and how.
3144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3145 /* end confdefs.h. */
3146 #include <ac_nonexistent.h>
3147 _ACEOF
3148 if ac_fn_c_try_cpp "$LINENO"; then :
3149 # Broken: success on invalid input.
3150 continue
3151 else
3152 # Passes both tests.
3153 ac_preproc_ok=:
3154 break
3156 rm -f conftest.err conftest.i conftest.$ac_ext
3158 done
3159 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3160 rm -f conftest.i conftest.err conftest.$ac_ext
3161 if $ac_preproc_ok; then :
3163 else
3164 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3165 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3166 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3167 See \`config.log' for more details" "$LINENO" 5; }
3170 ac_ext=c
3171 ac_cpp='$CPP $CPPFLAGS'
3172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3178 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3179 if ${ac_cv_path_GREP+:} false; then :
3180 $as_echo_n "(cached) " >&6
3181 else
3182 if test -z "$GREP"; then
3183 ac_path_GREP_found=false
3184 # Loop through the user's path and test for each of PROGNAME-LIST
3185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3186 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3188 IFS=$as_save_IFS
3189 test -z "$as_dir" && as_dir=.
3190 for ac_prog in grep ggrep; do
3191 for ac_exec_ext in '' $ac_executable_extensions; do
3192 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3193 as_fn_executable_p "$ac_path_GREP" || continue
3194 # Check for GNU ac_path_GREP and select it if it is found.
3195 # Check for GNU $ac_path_GREP
3196 case `"$ac_path_GREP" --version 2>&1` in
3197 *GNU*)
3198 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3200 ac_count=0
3201 $as_echo_n 0123456789 >"conftest.in"
3202 while :
3204 cat "conftest.in" "conftest.in" >"conftest.tmp"
3205 mv "conftest.tmp" "conftest.in"
3206 cp "conftest.in" "conftest.nl"
3207 $as_echo 'GREP' >> "conftest.nl"
3208 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3209 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3210 as_fn_arith $ac_count + 1 && ac_count=$as_val
3211 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3212 # Best one so far, save it but keep looking for a better one
3213 ac_cv_path_GREP="$ac_path_GREP"
3214 ac_path_GREP_max=$ac_count
3216 # 10*(2^10) chars as input seems more than enough
3217 test $ac_count -gt 10 && break
3218 done
3219 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3220 esac
3222 $ac_path_GREP_found && break 3
3223 done
3224 done
3225 done
3226 IFS=$as_save_IFS
3227 if test -z "$ac_cv_path_GREP"; then
3228 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3230 else
3231 ac_cv_path_GREP=$GREP
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3236 $as_echo "$ac_cv_path_GREP" >&6; }
3237 GREP="$ac_cv_path_GREP"
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3241 $as_echo_n "checking for egrep... " >&6; }
3242 if ${ac_cv_path_EGREP+:} false; then :
3243 $as_echo_n "(cached) " >&6
3244 else
3245 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3246 then ac_cv_path_EGREP="$GREP -E"
3247 else
3248 if test -z "$EGREP"; then
3249 ac_path_EGREP_found=false
3250 # Loop through the user's path and test for each of PROGNAME-LIST
3251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3252 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3254 IFS=$as_save_IFS
3255 test -z "$as_dir" && as_dir=.
3256 for ac_prog in egrep; do
3257 for ac_exec_ext in '' $ac_executable_extensions; do
3258 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3259 as_fn_executable_p "$ac_path_EGREP" || continue
3260 # Check for GNU ac_path_EGREP and select it if it is found.
3261 # Check for GNU $ac_path_EGREP
3262 case `"$ac_path_EGREP" --version 2>&1` in
3263 *GNU*)
3264 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3266 ac_count=0
3267 $as_echo_n 0123456789 >"conftest.in"
3268 while :
3270 cat "conftest.in" "conftest.in" >"conftest.tmp"
3271 mv "conftest.tmp" "conftest.in"
3272 cp "conftest.in" "conftest.nl"
3273 $as_echo 'EGREP' >> "conftest.nl"
3274 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3275 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3276 as_fn_arith $ac_count + 1 && ac_count=$as_val
3277 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3278 # Best one so far, save it but keep looking for a better one
3279 ac_cv_path_EGREP="$ac_path_EGREP"
3280 ac_path_EGREP_max=$ac_count
3282 # 10*(2^10) chars as input seems more than enough
3283 test $ac_count -gt 10 && break
3284 done
3285 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3286 esac
3288 $ac_path_EGREP_found && break 3
3289 done
3290 done
3291 done
3292 IFS=$as_save_IFS
3293 if test -z "$ac_cv_path_EGREP"; then
3294 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3296 else
3297 ac_cv_path_EGREP=$EGREP
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3303 $as_echo "$ac_cv_path_EGREP" >&6; }
3304 EGREP="$ac_cv_path_EGREP"
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3308 $as_echo_n "checking for ANSI C header files... " >&6; }
3309 if ${ac_cv_header_stdc+:} false; then :
3310 $as_echo_n "(cached) " >&6
3311 else
3312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3313 /* end confdefs.h. */
3314 #include <stdlib.h>
3315 #include <stdarg.h>
3316 #include <string.h>
3317 #include <float.h>
3320 main ()
3324 return 0;
3326 _ACEOF
3327 if ac_fn_c_try_compile "$LINENO"; then :
3328 ac_cv_header_stdc=yes
3329 else
3330 ac_cv_header_stdc=no
3332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3334 if test $ac_cv_header_stdc = yes; then
3335 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3337 /* end confdefs.h. */
3338 #include <string.h>
3340 _ACEOF
3341 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3342 $EGREP "memchr" >/dev/null 2>&1; then :
3344 else
3345 ac_cv_header_stdc=no
3347 rm -f conftest*
3351 if test $ac_cv_header_stdc = yes; then
3352 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3354 /* end confdefs.h. */
3355 #include <stdlib.h>
3357 _ACEOF
3358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3359 $EGREP "free" >/dev/null 2>&1; then :
3361 else
3362 ac_cv_header_stdc=no
3364 rm -f conftest*
3368 if test $ac_cv_header_stdc = yes; then
3369 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3370 if test "$cross_compiling" = yes; then :
3372 else
3373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3374 /* end confdefs.h. */
3375 #include <ctype.h>
3376 #include <stdlib.h>
3377 #if ((' ' & 0x0FF) == 0x020)
3378 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3379 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3380 #else
3381 # define ISLOWER(c) \
3382 (('a' <= (c) && (c) <= 'i') \
3383 || ('j' <= (c) && (c) <= 'r') \
3384 || ('s' <= (c) && (c) <= 'z'))
3385 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3386 #endif
3388 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3390 main ()
3392 int i;
3393 for (i = 0; i < 256; i++)
3394 if (XOR (islower (i), ISLOWER (i))
3395 || toupper (i) != TOUPPER (i))
3396 return 2;
3397 return 0;
3399 _ACEOF
3400 if ac_fn_c_try_run "$LINENO"; then :
3402 else
3403 ac_cv_header_stdc=no
3405 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3406 conftest.$ac_objext conftest.beam conftest.$ac_ext
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3412 $as_echo "$ac_cv_header_stdc" >&6; }
3413 if test $ac_cv_header_stdc = yes; then
3415 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3419 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3420 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3421 inttypes.h stdint.h unistd.h
3422 do :
3423 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3424 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3426 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3427 cat >>confdefs.h <<_ACEOF
3428 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3429 _ACEOF
3433 done
3436 for ac_header in sys/types.h
3437 do :
3438 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
3439 if test "x$ac_cv_header_sys_types_h" = xyes; then :
3440 cat >>confdefs.h <<_ACEOF
3441 #define HAVE_SYS_TYPES_H 1
3442 _ACEOF
3446 done
3448 ac_header_dirent=no
3449 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3450 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
3452 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
3453 if eval \${$as_ac_Header+:} false; then :
3454 $as_echo_n "(cached) " >&6
3455 else
3456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3457 /* end confdefs.h. */
3458 #include <sys/types.h>
3459 #include <$ac_hdr>
3462 main ()
3464 if ((DIR *) 0)
3465 return 0;
3467 return 0;
3469 _ACEOF
3470 if ac_fn_c_try_compile "$LINENO"; then :
3471 eval "$as_ac_Header=yes"
3472 else
3473 eval "$as_ac_Header=no"
3475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3477 eval ac_res=\$$as_ac_Header
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3479 $as_echo "$ac_res" >&6; }
3480 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3481 cat >>confdefs.h <<_ACEOF
3482 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
3483 _ACEOF
3485 ac_header_dirent=$ac_hdr; break
3488 done
3489 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3490 if test $ac_header_dirent = dirent.h; then
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
3492 $as_echo_n "checking for library containing opendir... " >&6; }
3493 if ${ac_cv_search_opendir+:} false; then :
3494 $as_echo_n "(cached) " >&6
3495 else
3496 ac_func_search_save_LIBS=$LIBS
3497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3498 /* end confdefs.h. */
3500 /* Override any GCC internal prototype to avoid an error.
3501 Use char because int might match the return type of a GCC
3502 builtin and then its argument prototype would still apply. */
3503 #ifdef __cplusplus
3504 extern "C"
3505 #endif
3506 char opendir ();
3508 main ()
3510 return opendir ();
3512 return 0;
3514 _ACEOF
3515 for ac_lib in '' dir; do
3516 if test -z "$ac_lib"; then
3517 ac_res="none required"
3518 else
3519 ac_res=-l$ac_lib
3520 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3522 if ac_fn_c_try_link "$LINENO"; then :
3523 ac_cv_search_opendir=$ac_res
3525 rm -f core conftest.err conftest.$ac_objext \
3526 conftest$ac_exeext
3527 if ${ac_cv_search_opendir+:} false; then :
3528 break
3530 done
3531 if ${ac_cv_search_opendir+:} false; then :
3533 else
3534 ac_cv_search_opendir=no
3536 rm conftest.$ac_ext
3537 LIBS=$ac_func_search_save_LIBS
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
3540 $as_echo "$ac_cv_search_opendir" >&6; }
3541 ac_res=$ac_cv_search_opendir
3542 if test "$ac_res" != no; then :
3543 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3547 else
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
3549 $as_echo_n "checking for library containing opendir... " >&6; }
3550 if ${ac_cv_search_opendir+:} false; then :
3551 $as_echo_n "(cached) " >&6
3552 else
3553 ac_func_search_save_LIBS=$LIBS
3554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3555 /* end confdefs.h. */
3557 /* Override any GCC internal prototype to avoid an error.
3558 Use char because int might match the return type of a GCC
3559 builtin and then its argument prototype would still apply. */
3560 #ifdef __cplusplus
3561 extern "C"
3562 #endif
3563 char opendir ();
3565 main ()
3567 return opendir ();
3569 return 0;
3571 _ACEOF
3572 for ac_lib in '' x; do
3573 if test -z "$ac_lib"; then
3574 ac_res="none required"
3575 else
3576 ac_res=-l$ac_lib
3577 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3579 if ac_fn_c_try_link "$LINENO"; then :
3580 ac_cv_search_opendir=$ac_res
3582 rm -f core conftest.err conftest.$ac_objext \
3583 conftest$ac_exeext
3584 if ${ac_cv_search_opendir+:} false; then :
3585 break
3587 done
3588 if ${ac_cv_search_opendir+:} false; then :
3590 else
3591 ac_cv_search_opendir=no
3593 rm conftest.$ac_ext
3594 LIBS=$ac_func_search_save_LIBS
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
3597 $as_echo "$ac_cv_search_opendir" >&6; }
3598 ac_res=$ac_cv_search_opendir
3599 if test "$ac_res" != no; then :
3600 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for opendir in -lc" >&5
3607 $as_echo_n "checking for opendir in -lc... " >&6; }
3608 if ${ac_cv_lib_c_opendir+:} false; then :
3609 $as_echo_n "(cached) " >&6
3610 else
3611 ac_check_lib_save_LIBS=$LIBS
3612 LIBS="-lc $LIBS"
3613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3614 /* end confdefs.h. */
3616 /* Override any GCC internal prototype to avoid an error.
3617 Use char because int might match the return type of a GCC
3618 builtin and then its argument prototype would still apply. */
3619 #ifdef __cplusplus
3620 extern "C"
3621 #endif
3622 char opendir ();
3624 main ()
3626 return opendir ();
3628 return 0;
3630 _ACEOF
3631 if ac_fn_c_try_link "$LINENO"; then :
3632 ac_cv_lib_c_opendir=yes
3633 else
3634 ac_cv_lib_c_opendir=no
3636 rm -f core conftest.err conftest.$ac_objext \
3637 conftest$ac_exeext conftest.$ac_ext
3638 LIBS=$ac_check_lib_save_LIBS
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_opendir" >&5
3641 $as_echo "$ac_cv_lib_c_opendir" >&6; }
3642 if test "x$ac_cv_lib_c_opendir" = xyes; then :
3644 $as_echo "#define HAVE_OPENDIR 1" >>confdefs.h
3649 case $target in #(
3650 powerpc64le*) :
3652 $as_echo "#define M2C_LONGREAL_FLOAT128 1" >>confdefs.h
3653 ;; #(
3654 *) :
3656 esac
3658 case $target in #(
3659 powerpc64le*) :
3661 $as_echo "#define M2C_LONGREAL_PPC64LE 1" >>confdefs.h
3662 ;; #(
3663 *) :
3665 esac
3667 ac_config_headers="$ac_config_headers gm2config.aci"
3669 cat >confcache <<\_ACEOF
3670 # This file is a shell script that caches the results of configure
3671 # tests run on this system so they can be shared between configure
3672 # scripts and configure runs, see configure's option --config-cache.
3673 # It is not useful on other systems. If it contains results you don't
3674 # want to keep, you may remove or edit it.
3676 # config.status only pays attention to the cache file if you give it
3677 # the --recheck option to rerun configure.
3679 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3680 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3681 # following values.
3683 _ACEOF
3685 # The following way of writing the cache mishandles newlines in values,
3686 # but we know of no workaround that is simple, portable, and efficient.
3687 # So, we kill variables containing newlines.
3688 # Ultrix sh set writes to stderr and can't be redirected directly,
3689 # and sets the high bit in the cache file unless we assign to the vars.
3691 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3692 eval ac_val=\$$ac_var
3693 case $ac_val in #(
3694 *${as_nl}*)
3695 case $ac_var in #(
3696 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3697 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3698 esac
3699 case $ac_var in #(
3700 _ | IFS | as_nl) ;; #(
3701 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3702 *) { eval $ac_var=; unset $ac_var;} ;;
3703 esac ;;
3704 esac
3705 done
3707 (set) 2>&1 |
3708 case $as_nl`(ac_space=' '; set) 2>&1` in #(
3709 *${as_nl}ac_space=\ *)
3710 # `set' does not quote correctly, so add quotes: double-quote
3711 # substitution turns \\\\ into \\, and sed turns \\ into \.
3712 sed -n \
3713 "s/'/'\\\\''/g;
3714 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3715 ;; #(
3717 # `set' quotes correctly as required by POSIX, so do not add quotes.
3718 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3720 esac |
3721 sort
3723 sed '
3724 /^ac_cv_env_/b end
3725 t clear
3726 :clear
3727 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3728 t end
3729 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3730 :end' >>confcache
3731 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3732 if test -w "$cache_file"; then
3733 if test "x$cache_file" != "x/dev/null"; then
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
3735 $as_echo "$as_me: updating cache $cache_file" >&6;}
3736 if test ! -f "$cache_file" || test -h "$cache_file"; then
3737 cat confcache >"$cache_file"
3738 else
3739 case $cache_file in #(
3740 */* | ?:*)
3741 mv -f confcache "$cache_file"$$ &&
3742 mv -f "$cache_file"$$ "$cache_file" ;; #(
3744 mv -f confcache "$cache_file" ;;
3745 esac
3748 else
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
3750 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
3753 rm -f confcache
3755 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3756 # Let make expand exec_prefix.
3757 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3759 DEFS=-DHAVE_CONFIG_H
3761 ac_libobjs=
3762 ac_ltlibobjs=
3764 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3765 # 1. Remove the extension, and $U if already installed.
3766 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
3767 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
3768 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
3769 # will be set to the directory where LIBOBJS objects are built.
3770 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
3771 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
3772 done
3773 LIBOBJS=$ac_libobjs
3775 LTLIBOBJS=$ac_ltlibobjs
3779 : "${CONFIG_STATUS=./config.status}"
3780 ac_write_fail=0
3781 ac_clean_files_save=$ac_clean_files
3782 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
3784 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
3785 as_write_fail=0
3786 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
3787 #! $SHELL
3788 # Generated by $as_me.
3789 # Run this file to recreate the current configuration.
3790 # Compiler output produced by configure, useful for debugging
3791 # configure, is in config.log if it exists.
3793 debug=false
3794 ac_cs_recheck=false
3795 ac_cs_silent=false
3797 SHELL=\${CONFIG_SHELL-$SHELL}
3798 export SHELL
3799 _ASEOF
3800 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
3801 ## -------------------- ##
3802 ## M4sh Initialization. ##
3803 ## -------------------- ##
3805 # Be more Bourne compatible
3806 DUALCASE=1; export DUALCASE # for MKS sh
3807 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
3808 emulate sh
3809 NULLCMD=:
3810 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
3811 # is contrary to our usage. Disable this feature.
3812 alias -g '${1+"$@"}'='"$@"'
3813 setopt NO_GLOB_SUBST
3814 else
3815 case `(set -o) 2>/dev/null` in #(
3816 *posix*) :
3817 set -o posix ;; #(
3818 *) :
3820 esac
3824 as_nl='
3826 export as_nl
3827 # Printing a long string crashes Solaris 7 /usr/bin/printf.
3828 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3829 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
3830 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
3831 # Prefer a ksh shell builtin over an external printf program on Solaris,
3832 # but without wasting forks for bash or zsh.
3833 if test -z "$BASH_VERSION$ZSH_VERSION" \
3834 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
3835 as_echo='print -r --'
3836 as_echo_n='print -rn --'
3837 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
3838 as_echo='printf %s\n'
3839 as_echo_n='printf %s'
3840 else
3841 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
3842 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
3843 as_echo_n='/usr/ucb/echo -n'
3844 else
3845 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
3846 as_echo_n_body='eval
3847 arg=$1;
3848 case $arg in #(
3849 *"$as_nl"*)
3850 expr "X$arg" : "X\\(.*\\)$as_nl";
3851 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
3852 esac;
3853 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
3855 export as_echo_n_body
3856 as_echo_n='sh -c $as_echo_n_body as_echo'
3858 export as_echo_body
3859 as_echo='sh -c $as_echo_body as_echo'
3862 # The user is always right.
3863 if test "${PATH_SEPARATOR+set}" != set; then
3864 PATH_SEPARATOR=:
3865 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
3866 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
3867 PATH_SEPARATOR=';'
3872 # IFS
3873 # We need space, tab and new line, in precisely that order. Quoting is
3874 # there to prevent editors from complaining about space-tab.
3875 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
3876 # splitting by setting IFS to empty value.)
3877 IFS=" "" $as_nl"
3879 # Find who we are. Look in the path if we contain no directory separator.
3880 as_myself=
3881 case $0 in #((
3882 *[\\/]* ) as_myself=$0 ;;
3883 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3884 for as_dir in $PATH
3886 IFS=$as_save_IFS
3887 test -z "$as_dir" && as_dir=.
3888 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3889 done
3890 IFS=$as_save_IFS
3893 esac
3894 # We did not find ourselves, most probably we were run as `sh COMMAND'
3895 # in which case we are not to be found in the path.
3896 if test "x$as_myself" = x; then
3897 as_myself=$0
3899 if test ! -f "$as_myself"; then
3900 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
3901 exit 1
3904 # Unset variables that we do not need and which cause bugs (e.g. in
3905 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
3906 # suppresses any "Segmentation fault" message there. '((' could
3907 # trigger a bug in pdksh 5.2.14.
3908 for as_var in BASH_ENV ENV MAIL MAILPATH
3909 do eval test x\${$as_var+set} = xset \
3910 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
3911 done
3912 PS1='$ '
3913 PS2='> '
3914 PS4='+ '
3916 # NLS nuisances.
3917 LC_ALL=C
3918 export LC_ALL
3919 LANGUAGE=C
3920 export LANGUAGE
3922 # CDPATH.
3923 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
3926 # as_fn_error STATUS ERROR [LINENO LOG_FD]
3927 # ----------------------------------------
3928 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
3929 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
3930 # script with STATUS, using 1 if that was 0.
3931 as_fn_error ()
3933 as_status=$1; test $as_status -eq 0 && as_status=1
3934 if test "$4"; then
3935 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3936 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
3938 $as_echo "$as_me: error: $2" >&2
3939 as_fn_exit $as_status
3940 } # as_fn_error
3943 # as_fn_set_status STATUS
3944 # -----------------------
3945 # Set $? to STATUS, without forking.
3946 as_fn_set_status ()
3948 return $1
3949 } # as_fn_set_status
3951 # as_fn_exit STATUS
3952 # -----------------
3953 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
3954 as_fn_exit ()
3956 set +e
3957 as_fn_set_status $1
3958 exit $1
3959 } # as_fn_exit
3961 # as_fn_unset VAR
3962 # ---------------
3963 # Portably unset VAR.
3964 as_fn_unset ()
3966 { eval $1=; unset $1;}
3968 as_unset=as_fn_unset
3969 # as_fn_append VAR VALUE
3970 # ----------------------
3971 # Append the text in VALUE to the end of the definition contained in VAR. Take
3972 # advantage of any shell optimizations that allow amortized linear growth over
3973 # repeated appends, instead of the typical quadratic growth present in naive
3974 # implementations.
3975 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
3976 eval 'as_fn_append ()
3978 eval $1+=\$2
3980 else
3981 as_fn_append ()
3983 eval $1=\$$1\$2
3985 fi # as_fn_append
3987 # as_fn_arith ARG...
3988 # ------------------
3989 # Perform arithmetic evaluation on the ARGs, and store the result in the
3990 # global $as_val. Take advantage of shells that can avoid forks. The arguments
3991 # must be portable across $(()) and expr.
3992 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
3993 eval 'as_fn_arith ()
3995 as_val=$(( $* ))
3997 else
3998 as_fn_arith ()
4000 as_val=`expr "$@" || test $? -eq 1`
4002 fi # as_fn_arith
4005 if expr a : '\(a\)' >/dev/null 2>&1 &&
4006 test "X`expr 00001 : '.*\(...\)'`" = X001; then
4007 as_expr=expr
4008 else
4009 as_expr=false
4012 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4013 as_basename=basename
4014 else
4015 as_basename=false
4018 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4019 as_dirname=dirname
4020 else
4021 as_dirname=false
4024 as_me=`$as_basename -- "$0" ||
4025 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4026 X"$0" : 'X\(//\)$' \| \
4027 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4028 $as_echo X/"$0" |
4029 sed '/^.*\/\([^/][^/]*\)\/*$/{
4030 s//\1/
4033 /^X\/\(\/\/\)$/{
4034 s//\1/
4037 /^X\/\(\/\).*/{
4038 s//\1/
4041 s/.*/./; q'`
4043 # Avoid depending upon Character Ranges.
4044 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4045 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4046 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4047 as_cr_digits='0123456789'
4048 as_cr_alnum=$as_cr_Letters$as_cr_digits
4050 ECHO_C= ECHO_N= ECHO_T=
4051 case `echo -n x` in #(((((
4052 -n*)
4053 case `echo 'xy\c'` in
4054 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
4055 xy) ECHO_C='\c';;
4056 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
4057 ECHO_T=' ';;
4058 esac;;
4060 ECHO_N='-n';;
4061 esac
4063 rm -f conf$$ conf$$.exe conf$$.file
4064 if test -d conf$$.dir; then
4065 rm -f conf$$.dir/conf$$.file
4066 else
4067 rm -f conf$$.dir
4068 mkdir conf$$.dir 2>/dev/null
4070 if (echo >conf$$.file) 2>/dev/null; then
4071 if ln -s conf$$.file conf$$ 2>/dev/null; then
4072 as_ln_s='ln -s'
4073 # ... but there are two gotchas:
4074 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4075 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4076 # In both cases, we have to default to `cp -pR'.
4077 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4078 as_ln_s='cp -pR'
4079 elif ln conf$$.file conf$$ 2>/dev/null; then
4080 as_ln_s=ln
4081 else
4082 as_ln_s='cp -pR'
4084 else
4085 as_ln_s='cp -pR'
4087 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4088 rmdir conf$$.dir 2>/dev/null
4091 # as_fn_mkdir_p
4092 # -------------
4093 # Create "$as_dir" as a directory, including parents if necessary.
4094 as_fn_mkdir_p ()
4097 case $as_dir in #(
4098 -*) as_dir=./$as_dir;;
4099 esac
4100 test -d "$as_dir" || eval $as_mkdir_p || {
4101 as_dirs=
4102 while :; do
4103 case $as_dir in #(
4104 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4105 *) as_qdir=$as_dir;;
4106 esac
4107 as_dirs="'$as_qdir' $as_dirs"
4108 as_dir=`$as_dirname -- "$as_dir" ||
4109 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4110 X"$as_dir" : 'X\(//\)[^/]' \| \
4111 X"$as_dir" : 'X\(//\)$' \| \
4112 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4113 $as_echo X"$as_dir" |
4114 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4115 s//\1/
4118 /^X\(\/\/\)[^/].*/{
4119 s//\1/
4122 /^X\(\/\/\)$/{
4123 s//\1/
4126 /^X\(\/\).*/{
4127 s//\1/
4130 s/.*/./; q'`
4131 test -d "$as_dir" && break
4132 done
4133 test -z "$as_dirs" || eval "mkdir $as_dirs"
4134 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
4137 } # as_fn_mkdir_p
4138 if mkdir -p . 2>/dev/null; then
4139 as_mkdir_p='mkdir -p "$as_dir"'
4140 else
4141 test -d ./-p && rmdir ./-p
4142 as_mkdir_p=false
4146 # as_fn_executable_p FILE
4147 # -----------------------
4148 # Test if FILE is an executable regular file.
4149 as_fn_executable_p ()
4151 test -f "$1" && test -x "$1"
4152 } # as_fn_executable_p
4153 as_test_x='test -x'
4154 as_executable_p=as_fn_executable_p
4156 # Sed expression to map a string onto a valid CPP name.
4157 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4159 # Sed expression to map a string onto a valid variable name.
4160 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4163 exec 6>&1
4164 ## ----------------------------------- ##
4165 ## Main body of $CONFIG_STATUS script. ##
4166 ## ----------------------------------- ##
4167 _ASEOF
4168 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
4170 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4171 # Save the log message, to keep $0 and so on meaningful, and to
4172 # report actual input values of CONFIG_FILES etc. instead of their
4173 # values after options handling.
4174 ac_log="
4175 This file was extended by m2 $as_me , which was
4176 generated by GNU Autoconf 2.69. Invocation command line was
4178 CONFIG_FILES = $CONFIG_FILES
4179 CONFIG_HEADERS = $CONFIG_HEADERS
4180 CONFIG_LINKS = $CONFIG_LINKS
4181 CONFIG_COMMANDS = $CONFIG_COMMANDS
4182 $ $0 $@
4184 on `(hostname || uname -n) 2>/dev/null | sed 1q`
4187 _ACEOF
4190 case $ac_config_headers in *"
4191 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
4192 esac
4195 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4196 # Files that config.status was made for.
4197 config_headers="$ac_config_headers"
4199 _ACEOF
4201 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4202 ac_cs_usage="\
4203 \`$as_me' instantiates files and other configuration actions
4204 from templates according to the current configuration. Unless the files
4205 and actions are specified as TAGs, all are instantiated by default.
4207 Usage: $0 [OPTION]... [TAG]...
4209 -h, --help print this help, then exit
4210 -V, --version print version number and configuration settings, then exit
4211 --config print configuration, then exit
4212 -q, --quiet, --silent
4213 do not print progress messages
4214 -d, --debug don't remove temporary files
4215 --recheck update $as_me by reconfiguring in the same conditions
4216 --header=FILE[:TEMPLATE]
4217 instantiate the configuration header FILE
4219 Configuration headers:
4220 $config_headers
4222 Report bugs to the package provider."
4224 _ACEOF
4225 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4226 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
4227 ac_cs_version="\\
4228 m2 config.status
4229 configured by $0, generated by GNU Autoconf 2.69,
4230 with options \\"\$ac_cs_config\\"
4232 Copyright (C) 2012 Free Software Foundation, Inc.
4233 This config.status script is free software; the Free Software Foundation
4234 gives unlimited permission to copy, distribute and modify it."
4236 ac_pwd='$ac_pwd'
4237 srcdir='$srcdir'
4238 test -n "\$AWK" || AWK=awk
4239 _ACEOF
4241 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4242 # The default lists apply if the user does not specify any file.
4243 ac_need_defaults=:
4244 while test $# != 0
4246 case $1 in
4247 --*=?*)
4248 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4249 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4250 ac_shift=:
4252 --*=)
4253 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4254 ac_optarg=
4255 ac_shift=:
4258 ac_option=$1
4259 ac_optarg=$2
4260 ac_shift=shift
4262 esac
4264 case $ac_option in
4265 # Handling of the options.
4266 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4267 ac_cs_recheck=: ;;
4268 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4269 $as_echo "$ac_cs_version"; exit ;;
4270 --config | --confi | --conf | --con | --co | --c )
4271 $as_echo "$ac_cs_config"; exit ;;
4272 --debug | --debu | --deb | --de | --d | -d )
4273 debug=: ;;
4274 --header | --heade | --head | --hea )
4275 $ac_shift
4276 case $ac_optarg in
4277 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4278 esac
4279 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
4280 ac_need_defaults=false;;
4281 --he | --h)
4282 # Conflict between --help and --header
4283 as_fn_error $? "ambiguous option: \`$1'
4284 Try \`$0 --help' for more information.";;
4285 --help | --hel | -h )
4286 $as_echo "$ac_cs_usage"; exit ;;
4287 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4288 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4289 ac_cs_silent=: ;;
4291 # This is an error.
4292 -*) as_fn_error $? "unrecognized option: \`$1'
4293 Try \`$0 --help' for more information." ;;
4295 *) as_fn_append ac_config_targets " $1"
4296 ac_need_defaults=false ;;
4298 esac
4299 shift
4300 done
4302 ac_configure_extra_args=
4304 if $ac_cs_silent; then
4305 exec 6>/dev/null
4306 ac_configure_extra_args="$ac_configure_extra_args --silent"
4309 _ACEOF
4310 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4311 if \$ac_cs_recheck; then
4312 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4313 shift
4314 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
4315 CONFIG_SHELL='$SHELL'
4316 export CONFIG_SHELL
4317 exec "\$@"
4320 _ACEOF
4321 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4322 exec 5>>config.log
4324 echo
4325 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4326 ## Running $as_me. ##
4327 _ASBOX
4328 $as_echo "$ac_log"
4329 } >&5
4331 _ACEOF
4332 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4333 _ACEOF
4335 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4337 # Handling of arguments.
4338 for ac_config_target in $ac_config_targets
4340 case $ac_config_target in
4341 "gm2config.aci") CONFIG_HEADERS="$CONFIG_HEADERS gm2config.aci" ;;
4343 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
4344 esac
4345 done
4348 # If the user did not use the arguments to specify the items to instantiate,
4349 # then the envvar interface is used. Set only those that are not.
4350 # We use the long form for the default assignment because of an extremely
4351 # bizarre bug on SunOS 4.1.3.
4352 if $ac_need_defaults; then
4353 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4356 # Have a temporary directory for convenience. Make it in the build tree
4357 # simply because there is no reason against having it here, and in addition,
4358 # creating and moving files from /tmp can sometimes cause problems.
4359 # Hook for its removal unless debugging.
4360 # Note that there is a small window in which the directory will not be cleaned:
4361 # after its creation but before its name has been assigned to `$tmp'.
4362 $debug ||
4364 tmp= ac_tmp=
4365 trap 'exit_status=$?
4366 : "${ac_tmp:=$tmp}"
4367 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
4369 trap 'as_fn_exit 1' 1 2 13 15
4371 # Create a (secure) tmp directory for tmp files.
4374 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4375 test -d "$tmp"
4376 } ||
4378 tmp=./conf$$-$RANDOM
4379 (umask 077 && mkdir "$tmp")
4380 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
4381 ac_tmp=$tmp
4383 # Set up the scripts for CONFIG_HEADERS section.
4384 # No need to generate them if there are no CONFIG_HEADERS.
4385 # This happens for instance with `./config.status Makefile'.
4386 if test -n "$CONFIG_HEADERS"; then
4387 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
4388 BEGIN {
4389 _ACEOF
4391 # Transform confdefs.h into an awk script `defines.awk', embedded as
4392 # here-document in config.status, that substitutes the proper values into
4393 # config.h.in to produce config.h.
4395 # Create a delimiter string that does not exist in confdefs.h, to ease
4396 # handling of long lines.
4397 ac_delim='%!_!# '
4398 for ac_last_try in false false :; do
4399 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
4400 if test -z "$ac_tt"; then
4401 break
4402 elif $ac_last_try; then
4403 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
4404 else
4405 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4407 done
4409 # For the awk script, D is an array of macro values keyed by name,
4410 # likewise P contains macro parameters if any. Preserve backslash
4411 # newline sequences.
4413 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
4414 sed -n '
4415 s/.\{148\}/&'"$ac_delim"'/g
4416 t rset
4417 :rset
4418 s/^[ ]*#[ ]*define[ ][ ]*/ /
4419 t def
4421 :def
4422 s/\\$//
4423 t bsnl
4424 s/["\\]/\\&/g
4425 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
4426 D["\1"]=" \3"/p
4427 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
4429 :bsnl
4430 s/["\\]/\\&/g
4431 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
4432 D["\1"]=" \3\\\\\\n"\\/p
4433 t cont
4434 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
4435 t cont
4437 :cont
4439 s/.\{148\}/&'"$ac_delim"'/g
4440 t clear
4441 :clear
4442 s/\\$//
4443 t bsnlc
4444 s/["\\]/\\&/g; s/^/"/; s/$/"/p
4446 :bsnlc
4447 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
4448 b cont
4449 ' <confdefs.h | sed '
4450 s/'"$ac_delim"'/"\\\
4451 "/g' >>$CONFIG_STATUS || ac_write_fail=1
4453 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4454 for (key in D) D_is_set[key] = 1
4455 FS = "\a"
4457 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
4458 line = \$ 0
4459 split(line, arg, " ")
4460 if (arg[1] == "#") {
4461 defundef = arg[2]
4462 mac1 = arg[3]
4463 } else {
4464 defundef = substr(arg[1], 2)
4465 mac1 = arg[2]
4467 split(mac1, mac2, "(") #)
4468 macro = mac2[1]
4469 prefix = substr(line, 1, index(line, defundef) - 1)
4470 if (D_is_set[macro]) {
4471 # Preserve the white space surrounding the "#".
4472 print prefix "define", macro P[macro] D[macro]
4473 next
4474 } else {
4475 # Replace #undef with comments. This is necessary, for example,
4476 # in the case of _POSIX_SOURCE, which is predefined and required
4477 # on some systems where configure will not decide to define it.
4478 if (defundef == "undef") {
4479 print "/*", prefix defundef, macro, "*/"
4480 next
4484 { print }
4485 _ACAWK
4486 _ACEOF
4487 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4488 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
4489 fi # test -n "$CONFIG_HEADERS"
4492 eval set X " :H $CONFIG_HEADERS "
4493 shift
4494 for ac_tag
4496 case $ac_tag in
4497 :[FHLC]) ac_mode=$ac_tag; continue;;
4498 esac
4499 case $ac_mode$ac_tag in
4500 :[FHL]*:*);;
4501 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
4502 :[FH]-) ac_tag=-:-;;
4503 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
4504 esac
4505 ac_save_IFS=$IFS
4506 IFS=:
4507 set x $ac_tag
4508 IFS=$ac_save_IFS
4509 shift
4510 ac_file=$1
4511 shift
4513 case $ac_mode in
4514 :L) ac_source=$1;;
4515 :[FH])
4516 ac_file_inputs=
4517 for ac_f
4519 case $ac_f in
4520 -) ac_f="$ac_tmp/stdin";;
4521 *) # Look for the file first in the build tree, then in the source tree
4522 # (if the path is not absolute). The absolute path cannot be DOS-style,
4523 # because $ac_f cannot contain `:'.
4524 test -f "$ac_f" ||
4525 case $ac_f in
4526 [\\/$]*) false;;
4527 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
4528 esac ||
4529 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
4530 esac
4531 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
4532 as_fn_append ac_file_inputs " '$ac_f'"
4533 done
4535 # Let's still pretend it is `configure' which instantiates (i.e., don't
4536 # use $as_me), people would be surprised to read:
4537 # /* config.h. Generated by config.status. */
4538 configure_input='Generated from '`
4539 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
4540 `' by configure.'
4541 if test x"$ac_file" != x-; then
4542 configure_input="$ac_file. $configure_input"
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
4544 $as_echo "$as_me: creating $ac_file" >&6;}
4546 # Neutralize special characters interpreted by sed in replacement strings.
4547 case $configure_input in #(
4548 *\&* | *\|* | *\\* )
4549 ac_sed_conf_input=`$as_echo "$configure_input" |
4550 sed 's/[\\\\&|]/\\\\&/g'`;; #(
4551 *) ac_sed_conf_input=$configure_input;;
4552 esac
4554 case $ac_tag in
4555 *:-:* | *:-) cat >"$ac_tmp/stdin" \
4556 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
4557 esac
4559 esac
4561 ac_dir=`$as_dirname -- "$ac_file" ||
4562 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4563 X"$ac_file" : 'X\(//\)[^/]' \| \
4564 X"$ac_file" : 'X\(//\)$' \| \
4565 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
4566 $as_echo X"$ac_file" |
4567 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4568 s//\1/
4571 /^X\(\/\/\)[^/].*/{
4572 s//\1/
4575 /^X\(\/\/\)$/{
4576 s//\1/
4579 /^X\(\/\).*/{
4580 s//\1/
4583 s/.*/./; q'`
4584 as_dir="$ac_dir"; as_fn_mkdir_p
4585 ac_builddir=.
4587 case "$ac_dir" in
4588 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
4590 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
4591 # A ".." for each directory in $ac_dir_suffix.
4592 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
4593 case $ac_top_builddir_sub in
4594 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
4595 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
4596 esac ;;
4597 esac
4598 ac_abs_top_builddir=$ac_pwd
4599 ac_abs_builddir=$ac_pwd$ac_dir_suffix
4600 # for backward compatibility:
4601 ac_top_builddir=$ac_top_build_prefix
4603 case $srcdir in
4604 .) # We are building in place.
4605 ac_srcdir=.
4606 ac_top_srcdir=$ac_top_builddir_sub
4607 ac_abs_top_srcdir=$ac_pwd ;;
4608 [\\/]* | ?:[\\/]* ) # Absolute name.
4609 ac_srcdir=$srcdir$ac_dir_suffix;
4610 ac_top_srcdir=$srcdir
4611 ac_abs_top_srcdir=$srcdir ;;
4612 *) # Relative name.
4613 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
4614 ac_top_srcdir=$ac_top_build_prefix$srcdir
4615 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
4616 esac
4617 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
4620 case $ac_mode in
4624 # CONFIG_HEADER
4626 if test x"$ac_file" != x-; then
4628 $as_echo "/* $configure_input */" \
4629 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
4630 } >"$ac_tmp/config.h" \
4631 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4632 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
4634 $as_echo "$as_me: $ac_file is unchanged" >&6;}
4635 else
4636 rm -f "$ac_file"
4637 mv "$ac_tmp/config.h" "$ac_file" \
4638 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4640 else
4641 $as_echo "/* $configure_input */" \
4642 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
4643 || as_fn_error $? "could not create -" "$LINENO" 5
4648 esac
4651 case $ac_file$ac_mode in
4652 "gm2config.aci":H) echo timestamp > stamp-h ;;
4654 esac
4655 done # for ac_tag
4658 as_fn_exit 0
4659 _ACEOF
4660 ac_clean_files=$ac_clean_files_save
4662 test $ac_write_fail = 0 ||
4663 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
4666 # configure is writing to config.log, and then calls config.status.
4667 # config.status does its own redirection, appending to config.log.
4668 # Unfortunately, on DOS this fails, as config.log is still kept open
4669 # by configure, so config.status won't be able to write to it; its
4670 # output is simply discarded. So we exec the FD to /dev/null,
4671 # effectively closing config.log, so it can be properly (re)opened and
4672 # appended to by config.status. When coming back to configure, we
4673 # need to make the FD available again.
4674 if test "$no_create" != yes; then
4675 ac_cs_success=:
4676 ac_config_status_args=
4677 test "$silent" = yes &&
4678 ac_config_status_args="$ac_config_status_args --quiet"
4679 exec 5>/dev/null
4680 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4681 exec 5>>config.log
4682 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4683 # would make configure fail if this is the last instruction.
4684 $ac_cs_success || as_fn_exit 1
4686 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
4688 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}