2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libatomic_ops 7.2.
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 :
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+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
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
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
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'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
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.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
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 || :
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.
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147 *v*x* | *x*v* ) as_opts=-vx ;;
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
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 :
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+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
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; }
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 :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || 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 :
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 test -z "$as_dir" && as_dir=.
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 :
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
238 if test "x$CONFIG_SHELL" != x; then :
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.
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
248 *v*x* | *x*v* ) as_opts=-vx ;;
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
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."
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."
276 SHELL=${CONFIG_SHELL-/bin/sh}
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 ## --------------------- ##
287 # Portably unset VAR.
290 { eval $1=; unset $1;}
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 # Create "$as_dir" as a directory, including parents if necessary.
319 -*) as_dir=./$as_dir;;
321 test -d "$as_dir" || eval $as_mkdir_p || {
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 test -d "$as_dir" && break
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
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
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
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 :
398 as_val=`expr "$@" || test $? -eq 1`
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.
410 as_status=$1; test $as_status -eq 0 && as_status=1
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
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
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. :-)
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
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).
496 # Exit status is that of the last command.
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
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
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 ||
529 elif ln conf$$.file conf$$ 2>/dev/null; then
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"'
543 test -d ./-p && rmdir ./-p
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
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`
568 ac_default_prefix=/usr/local
570 ac_config_libobj_dir=.
577 # Identity of this package.
578 PACKAGE_NAME='libatomic_ops'
579 PACKAGE_TARNAME='libatomic_ops'
580 PACKAGE_VERSION='7.2'
581 PACKAGE_STRING='libatomic_ops 7.2'
585 ac_unique_file="src/atomic_ops.c"
587 # Factoring default headers for most tests.
588 ac_includes_default="\
590 #ifdef HAVE_SYS_TYPES_H
591 # include <sys/types.h>
593 #ifdef HAVE_SYS_STAT_H
594 # include <sys/stat.h>
600 # ifdef HAVE_STDLIB_H
605 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
610 #ifdef HAVE_STRINGS_H
611 # include <strings.h>
613 #ifdef HAVE_INTTYPES_H
614 # include <inttypes.h>
623 ac_subst_vars='am__EXEEXT_FALSE
636 am__fastdepCCAS_FALSE
671 INSTALL_STRIP_PROGRAM
725 program_transform_name
738 enable_option_checking
740 enable_dependency_tracking
742 ac_precious_vars='build_alias
755 # Initialize some variables set by options.
757 ac_init_version=false
758 ac_unrecognized_opts=
760 # The variables have the same names as the options, with
761 # dashes changed to underlines.
769 program_transform_name=s,x,x,
777 # Installation directory options.
778 # These are left unexpanded so users can "make install exec_prefix=/foo"
779 # and all the variables that are supposed to be based on exec_prefix
780 # by default will actually change.
781 # Use braces instead of parens because sh, perl, etc. also accept them.
782 # (The list follows the same order as the GNU Coding Standards.)
783 bindir='${exec_prefix}/bin'
784 sbindir='${exec_prefix}/sbin'
785 libexecdir='${exec_prefix}/libexec'
786 datarootdir='${prefix}/share'
787 datadir='${datarootdir}'
788 sysconfdir='${prefix}/etc'
789 sharedstatedir='${prefix}/com'
790 localstatedir='${prefix}/var'
791 includedir='${prefix}/include'
792 oldincludedir='/usr/include'
793 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
794 infodir='${datarootdir}/info'
799 libdir='${exec_prefix}/lib'
800 localedir='${datarootdir}/locale'
801 mandir='${datarootdir}/man'
807 # If the previous option needs an argument, assign it.
808 if test -n "$ac_prev"; then
809 eval $ac_prev=\$ac_option
815 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
820 # Accept the important Cygnus configure options, so we can diagnose typos.
822 case $ac_dashdash$ac_option in
826 -bindir | --bindir | --bindi | --bind | --bin | --bi)
828 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
831 -build | --build | --buil | --bui | --bu)
832 ac_prev=build_alias ;;
833 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
834 build_alias=$ac_optarg ;;
836 -cache-file | --cache-file | --cache-fil | --cache-fi \
837 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
838 ac_prev=cache_file ;;
839 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
840 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
841 cache_file=$ac_optarg ;;
844 cache_file=config.cache ;;
846 -datadir | --datadir | --datadi | --datad)
848 -datadir=* | --datadir=* | --datadi=* | --datad=*)
849 datadir=$ac_optarg ;;
851 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
852 | --dataroo | --dataro | --datar)
853 ac_prev=datarootdir ;;
854 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
855 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
856 datarootdir=$ac_optarg ;;
858 -disable-* | --disable-*)
859 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
860 # Reject names that are not valid shell variable names.
861 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
862 as_fn_error $? "invalid feature name: $ac_useropt"
863 ac_useropt_orig=$ac_useropt
864 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
865 case $ac_user_opts in
869 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
870 ac_unrecognized_sep=', ';;
872 eval enable_$ac_useropt=no ;;
874 -docdir | --docdir | --docdi | --doc | --do)
876 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
879 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
881 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
884 -enable-* | --enable-*)
885 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
886 # Reject names that are not valid shell variable names.
887 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
888 as_fn_error $? "invalid feature name: $ac_useropt"
889 ac_useropt_orig=$ac_useropt
890 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
891 case $ac_user_opts in
895 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
896 ac_unrecognized_sep=', ';;
898 eval enable_$ac_useropt=\$ac_optarg ;;
900 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
901 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
902 | --exec | --exe | --ex)
903 ac_prev=exec_prefix ;;
904 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
905 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
906 | --exec=* | --exe=* | --ex=*)
907 exec_prefix=$ac_optarg ;;
909 -gas | --gas | --ga | --g)
910 # Obsolete; use --with-gas.
913 -help | --help | --hel | --he | -h)
915 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
916 ac_init_help=recursive ;;
917 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
918 ac_init_help=short ;;
920 -host | --host | --hos | --ho)
921 ac_prev=host_alias ;;
922 -host=* | --host=* | --hos=* | --ho=*)
923 host_alias=$ac_optarg ;;
925 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
927 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
929 htmldir=$ac_optarg ;;
931 -includedir | --includedir | --includedi | --included | --include \
932 | --includ | --inclu | --incl | --inc)
933 ac_prev=includedir ;;
934 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
935 | --includ=* | --inclu=* | --incl=* | --inc=*)
936 includedir=$ac_optarg ;;
938 -infodir | --infodir | --infodi | --infod | --info | --inf)
940 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
941 infodir=$ac_optarg ;;
943 -libdir | --libdir | --libdi | --libd)
945 -libdir=* | --libdir=* | --libdi=* | --libd=*)
948 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
949 | --libexe | --libex | --libe)
950 ac_prev=libexecdir ;;
951 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
952 | --libexe=* | --libex=* | --libe=*)
953 libexecdir=$ac_optarg ;;
955 -localedir | --localedir | --localedi | --localed | --locale)
957 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
958 localedir=$ac_optarg ;;
960 -localstatedir | --localstatedir | --localstatedi | --localstated \
961 | --localstate | --localstat | --localsta | --localst | --locals)
962 ac_prev=localstatedir ;;
963 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
964 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
965 localstatedir=$ac_optarg ;;
967 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
969 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
973 # Obsolete; use --without-fp.
976 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
977 | --no-cr | --no-c | -n)
980 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
981 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
984 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
985 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
986 | --oldin | --oldi | --old | --ol | --o)
987 ac_prev=oldincludedir ;;
988 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
989 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
990 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
991 oldincludedir=$ac_optarg ;;
993 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
995 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
998 -program-prefix | --program-prefix | --program-prefi | --program-pref \
999 | --program-pre | --program-pr | --program-p)
1000 ac_prev=program_prefix ;;
1001 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1002 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1003 program_prefix=$ac_optarg ;;
1005 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1006 | --program-suf | --program-su | --program-s)
1007 ac_prev=program_suffix ;;
1008 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1009 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1010 program_suffix=$ac_optarg ;;
1012 -program-transform-name | --program-transform-name \
1013 | --program-transform-nam | --program-transform-na \
1014 | --program-transform-n | --program-transform- \
1015 | --program-transform | --program-transfor \
1016 | --program-transfo | --program-transf \
1017 | --program-trans | --program-tran \
1018 | --progr-tra | --program-tr | --program-t)
1019 ac_prev=program_transform_name ;;
1020 -program-transform-name=* | --program-transform-name=* \
1021 | --program-transform-nam=* | --program-transform-na=* \
1022 | --program-transform-n=* | --program-transform-=* \
1023 | --program-transform=* | --program-transfor=* \
1024 | --program-transfo=* | --program-transf=* \
1025 | --program-trans=* | --program-tran=* \
1026 | --progr-tra=* | --program-tr=* | --program-t=*)
1027 program_transform_name=$ac_optarg ;;
1029 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1031 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1032 pdfdir=$ac_optarg ;;
1034 -psdir | --psdir | --psdi | --psd | --ps)
1036 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1039 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1040 | -silent | --silent | --silen | --sile | --sil)
1043 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1045 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1047 sbindir=$ac_optarg ;;
1049 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1050 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1051 | --sharedst | --shareds | --shared | --share | --shar \
1053 ac_prev=sharedstatedir ;;
1054 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1055 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1056 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1058 sharedstatedir=$ac_optarg ;;
1060 -site | --site | --sit)
1062 -site=* | --site=* | --sit=*)
1065 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1067 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1068 srcdir=$ac_optarg ;;
1070 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1071 | --syscon | --sysco | --sysc | --sys | --sy)
1072 ac_prev=sysconfdir ;;
1073 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1074 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1075 sysconfdir=$ac_optarg ;;
1077 -target | --target | --targe | --targ | --tar | --ta | --t)
1078 ac_prev=target_alias ;;
1079 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1080 target_alias=$ac_optarg ;;
1082 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1085 -version | --version | --versio | --versi | --vers | -V)
1086 ac_init_version=: ;;
1089 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1090 # Reject names that are not valid shell variable names.
1091 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1092 as_fn_error $? "invalid package name: $ac_useropt"
1093 ac_useropt_orig=$ac_useropt
1094 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1095 case $ac_user_opts in
1099 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1100 ac_unrecognized_sep=', ';;
1102 eval with_$ac_useropt=\$ac_optarg ;;
1104 -without-* | --without-*)
1105 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1106 # Reject names that are not valid shell variable names.
1107 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1108 as_fn_error $? "invalid package name: $ac_useropt"
1109 ac_useropt_orig=$ac_useropt
1110 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1111 case $ac_user_opts in
1115 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1116 ac_unrecognized_sep=', ';;
1118 eval with_$ac_useropt=no ;;
1121 # Obsolete; use --with-x.
1124 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1125 | --x-incl | --x-inc | --x-in | --x-i)
1126 ac_prev=x_includes ;;
1127 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1128 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1129 x_includes=$ac_optarg ;;
1131 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1132 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1133 ac_prev=x_libraries ;;
1134 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1135 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1136 x_libraries=$ac_optarg ;;
1138 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1139 Try \`$0 --help' for more information"
1143 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1144 # Reject names that are not valid shell variable names.
1145 case $ac_envvar in #(
1146 '' | [0-9]* | *[!_$as_cr_alnum]* )
1147 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1149 eval $ac_envvar=\$ac_optarg
1150 export $ac_envvar ;;
1153 # FIXME: should be removed in autoconf 3.0.
1154 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1155 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1156 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1157 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1163 if test -n "$ac_prev"; then
1164 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1165 as_fn_error $? "missing argument to $ac_option"
1168 if test -n "$ac_unrecognized_opts"; then
1169 case $enable_option_checking in
1171 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1172 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1176 # Check all directory arguments for consistency.
1177 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1178 datadir sysconfdir sharedstatedir localstatedir includedir \
1179 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1180 libdir localedir mandir
1182 eval ac_val=\$$ac_var
1183 # Remove trailing slashes.
1186 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1187 eval $ac_var=\$ac_val;;
1189 # Be sure to have absolute directory names.
1191 [\\/$]* | ?:[\\/]* ) continue;;
1192 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1194 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1197 # There might be people who depend on the old broken behavior: `$host'
1198 # used to hold the argument of --host etc.
1199 # FIXME: To remove some day.
1202 target=$target_alias
1204 # FIXME: To remove some day.
1205 if test "x$host_alias" != x; then
1206 if test "x$build_alias" = x; then
1207 cross_compiling=maybe
1208 elif test "x$build_alias" != "x$host_alias"; then
1214 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1216 test "$silent" = yes && exec 6>/dev/null
1219 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1220 ac_ls_di=`ls -di .` &&
1221 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1222 as_fn_error $? "working directory cannot be determined"
1223 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1224 as_fn_error $? "pwd does not report name of working directory"
1227 # Find the source files, if location was not specified.
1228 if test -z "$srcdir"; then
1229 ac_srcdir_defaulted=yes
1230 # Try the directory containing this script, then the parent directory.
1231 ac_confdir=`$as_dirname -- "$as_myself" ||
1232 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1233 X"$as_myself" : 'X\(//\)[^/]' \| \
1234 X"$as_myself" : 'X\(//\)$' \| \
1235 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1236 $as_echo X"$as_myself" |
1237 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1255 if test ! -r "$srcdir/$ac_unique_file"; then
1259 ac_srcdir_defaulted=no
1261 if test ! -r "$srcdir/$ac_unique_file"; then
1262 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1263 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1265 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1267 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1269 # When building in place, set srcdir=.
1270 if test "$ac_abs_confdir" = "$ac_pwd"; then
1273 # Remove unnecessary trailing slashes from srcdir.
1274 # Double slashes in file names in object file debugging info
1275 # mess up M-x gdb in Emacs.
1277 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1279 for ac_var in $ac_precious_vars; do
1280 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1281 eval ac_env_${ac_var}_value=\$${ac_var}
1282 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1283 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1287 # Report the --help message.
1289 if test "$ac_init_help" = "long"; then
1290 # Omit some internal or obsolete options to make the list less imposing.
1291 # This message is too long to be a string in the A/UX 3.1 sh.
1293 \`configure' configures libatomic_ops 7.2 to adapt to many kinds of systems.
1295 Usage: $0 [OPTION]... [VAR=VALUE]...
1297 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1298 VAR=VALUE. See below for descriptions of some of the useful variables.
1300 Defaults for the options are specified in brackets.
1303 -h, --help display this help and exit
1304 --help=short display options specific to this package
1305 --help=recursive display the short help of all the included packages
1306 -V, --version display version information and exit
1307 -q, --quiet, --silent do not print \`checking ...' messages
1308 --cache-file=FILE cache test results in FILE [disabled]
1309 -C, --config-cache alias for \`--cache-file=config.cache'
1310 -n, --no-create do not create output files
1311 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1313 Installation directories:
1314 --prefix=PREFIX install architecture-independent files in PREFIX
1315 [$ac_default_prefix]
1316 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1319 By default, \`make install' will install all the files in
1320 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1321 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1322 for instance \`--prefix=\$HOME'.
1324 For better control, use the options below.
1326 Fine tuning of the installation directories:
1327 --bindir=DIR user executables [EPREFIX/bin]
1328 --sbindir=DIR system admin executables [EPREFIX/sbin]
1329 --libexecdir=DIR program executables [EPREFIX/libexec]
1330 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1331 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1332 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1333 --libdir=DIR object code libraries [EPREFIX/lib]
1334 --includedir=DIR C header files [PREFIX/include]
1335 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1336 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1337 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1338 --infodir=DIR info documentation [DATAROOTDIR/info]
1339 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1340 --mandir=DIR man documentation [DATAROOTDIR/man]
1341 --docdir=DIR documentation root [DATAROOTDIR/doc/libatomic_ops]
1342 --htmldir=DIR html documentation [DOCDIR]
1343 --dvidir=DIR dvi documentation [DOCDIR]
1344 --pdfdir=DIR pdf documentation [DOCDIR]
1345 --psdir=DIR ps documentation [DOCDIR]
1351 --program-prefix=PREFIX prepend PREFIX to installed program names
1352 --program-suffix=SUFFIX append SUFFIX to installed program names
1353 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1356 --build=BUILD configure for building on BUILD [guessed]
1357 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1358 --target=TARGET configure for building compilers for TARGET [HOST]
1362 if test -n "$ac_init_help"; then
1363 case $ac_init_help in
1364 short | recursive ) echo "Configuration of libatomic_ops 7.2:";;
1369 --disable-option-checking ignore unrecognized --enable/--with options
1370 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1371 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1372 --enable-silent-rules less verbose build output (undo: "make V=1")
1373 --disable-silent-rules verbose build output (undo: "make V=0")
1374 --enable-dependency-tracking
1375 do not reject slow dependency extractors
1376 --disable-dependency-tracking
1377 speeds up one-time build
1379 Some influential environment variables:
1380 CC C compiler command
1381 CFLAGS C compiler flags
1382 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1383 nonstandard directory <lib dir>
1384 LIBS libraries to pass to the linker, e.g. -l<library>
1385 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1386 you have headers in a nonstandard directory <include dir>
1387 CCAS assembler compiler command (defaults to CC)
1388 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1391 Use these variables to override the choices made by `configure' or to help
1392 it to find libraries and programs with nonstandard names/locations.
1394 Report bugs to the package provider.
1399 if test "$ac_init_help" = "recursive"; then
1400 # If there are subdirs, report their specific --help.
1401 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1402 test -d "$ac_dir" ||
1403 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1408 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1410 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1411 # A ".." for each directory in $ac_dir_suffix.
1412 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1413 case $ac_top_builddir_sub in
1414 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1415 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1418 ac_abs_top_builddir=$ac_pwd
1419 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1420 # for backward compatibility:
1421 ac_top_builddir=$ac_top_build_prefix
1424 .) # We are building in place.
1426 ac_top_srcdir=$ac_top_builddir_sub
1427 ac_abs_top_srcdir=$ac_pwd ;;
1428 [\\/]* | ?:[\\/]* ) # Absolute name.
1429 ac_srcdir=$srcdir$ac_dir_suffix;
1430 ac_top_srcdir=$srcdir
1431 ac_abs_top_srcdir=$srcdir ;;
1433 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1434 ac_top_srcdir=$ac_top_build_prefix$srcdir
1435 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1437 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1439 cd "$ac_dir" || { ac_status=$?; continue; }
1440 # Check for guested configure.
1441 if test -f "$ac_srcdir/configure.gnu"; then
1443 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1444 elif test -f "$ac_srcdir/configure"; then
1446 $SHELL "$ac_srcdir/configure" --help=recursive
1448 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1450 cd "$ac_pwd" || { ac_status=$?; break; }
1454 test -n "$ac_init_help" && exit $ac_status
1455 if $ac_init_version; then
1457 libatomic_ops configure 7.2
1458 generated by GNU Autoconf 2.69
1460 Copyright (C) 2012 Free Software Foundation, Inc.
1461 This configure script is free software; the Free Software Foundation
1462 gives unlimited permission to copy, distribute and modify it.
1467 ## ------------------------ ##
1468 ## Autoconf initialization. ##
1469 ## ------------------------ ##
1471 # ac_fn_c_try_compile LINENO
1472 # --------------------------
1473 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1474 ac_fn_c_try_compile ()
1476 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1477 rm -f conftest.$ac_objext
1478 if { { ac_try="$ac_compile"
1480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1481 *) ac_try_echo=$ac_try;;
1483 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1484 $as_echo "$ac_try_echo"; } >&5
1485 (eval "$ac_compile") 2>conftest.err
1487 if test -s conftest.err; then
1488 grep -v '^ *+' conftest.err >conftest.er1
1489 cat conftest.er1 >&5
1490 mv -f conftest.er1 conftest.err
1492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1493 test $ac_status = 0; } && {
1494 test -z "$ac_c_werror_flag" ||
1495 test ! -s conftest.err
1496 } && test -s conftest.$ac_objext; then :
1499 $as_echo "$as_me: failed program was:" >&5
1500 sed 's/^/| /' conftest.$ac_ext >&5
1504 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1505 as_fn_set_status $ac_retval
1507 } # ac_fn_c_try_compile
1509 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1510 # -------------------------------------------------------
1511 # Tests whether HEADER exists and can be compiled using the include files in
1512 # INCLUDES, setting the cache variable VAR accordingly.
1513 ac_fn_c_check_header_compile ()
1515 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1517 $as_echo_n "checking for $2... " >&6; }
1518 if eval \${$3+:} false; then :
1519 $as_echo_n "(cached) " >&6
1521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1522 /* end confdefs.h. */
1526 if ac_fn_c_try_compile "$LINENO"; then :
1531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1535 $as_echo "$ac_res" >&6; }
1536 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1538 } # ac_fn_c_check_header_compile
1540 # ac_fn_c_try_cpp LINENO
1541 # ----------------------
1542 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1545 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1546 if { { ac_try="$ac_cpp conftest.$ac_ext"
1548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1549 *) ac_try_echo=$ac_try;;
1551 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1552 $as_echo "$ac_try_echo"; } >&5
1553 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1555 if test -s conftest.err; then
1556 grep -v '^ *+' conftest.err >conftest.er1
1557 cat conftest.er1 >&5
1558 mv -f conftest.er1 conftest.err
1560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1561 test $ac_status = 0; } > conftest.i && {
1562 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1563 test ! -s conftest.err
1567 $as_echo "$as_me: failed program was:" >&5
1568 sed 's/^/| /' conftest.$ac_ext >&5
1572 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1573 as_fn_set_status $ac_retval
1577 # ac_fn_c_try_run LINENO
1578 # ----------------------
1579 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1580 # that executables *can* be run.
1583 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1584 if { { ac_try="$ac_link"
1586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1587 *) ac_try_echo=$ac_try;;
1589 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1590 $as_echo "$ac_try_echo"; } >&5
1591 (eval "$ac_link") 2>&5
1593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1594 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1595 { { case "(($ac_try" in
1596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1597 *) ac_try_echo=$ac_try;;
1599 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1600 $as_echo "$ac_try_echo"; } >&5
1601 (eval "$ac_try") 2>&5
1603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1604 test $ac_status = 0; }; }; then :
1607 $as_echo "$as_me: program exited with status $ac_status" >&5
1608 $as_echo "$as_me: failed program was:" >&5
1609 sed 's/^/| /' conftest.$ac_ext >&5
1611 ac_retval=$ac_status
1613 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1614 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1615 as_fn_set_status $ac_retval
1619 # ac_fn_c_try_link LINENO
1620 # -----------------------
1621 # Try to link conftest.$ac_ext, and return whether this succeeded.
1624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625 rm -f conftest.$ac_objext conftest$ac_exeext
1626 if { { ac_try="$ac_link"
1628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1629 *) ac_try_echo=$ac_try;;
1631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1632 $as_echo "$ac_try_echo"; } >&5
1633 (eval "$ac_link") 2>conftest.err
1635 if test -s conftest.err; then
1636 grep -v '^ *+' conftest.err >conftest.er1
1637 cat conftest.er1 >&5
1638 mv -f conftest.er1 conftest.err
1640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1641 test $ac_status = 0; } && {
1642 test -z "$ac_c_werror_flag" ||
1643 test ! -s conftest.err
1644 } && test -s conftest$ac_exeext && {
1645 test "$cross_compiling" = yes ||
1646 test -x conftest$ac_exeext
1650 $as_echo "$as_me: failed program was:" >&5
1651 sed 's/^/| /' conftest.$ac_ext >&5
1655 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1656 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1657 # interfere with the next link command; also delete a directory that is
1658 # left behind by Apple's compiler. We do this before executing the actions.
1659 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1660 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1661 as_fn_set_status $ac_retval
1663 } # ac_fn_c_try_link
1665 # ac_fn_c_check_func LINENO FUNC VAR
1666 # ----------------------------------
1667 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1668 ac_fn_c_check_func ()
1670 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1672 $as_echo_n "checking for $2... " >&6; }
1673 if eval \${$3+:} false; then :
1674 $as_echo_n "(cached) " >&6
1676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1677 /* end confdefs.h. */
1678 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1679 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1680 #define $2 innocuous_$2
1682 /* System header to define __stub macros and hopefully few prototypes,
1683 which can conflict with char $2 (); below.
1684 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1685 <limits.h> exists even on freestanding compilers. */
1688 # include <limits.h>
1690 # include <assert.h>
1695 /* Override any GCC internal prototype to avoid an error.
1696 Use char because int might match the return type of a GCC
1697 builtin and then its argument prototype would still apply. */
1702 /* The GNU C library defines this for functions which it implements
1703 to always fail with ENOSYS. Some functions are actually named
1704 something starting with __ and the normal name is an alias. */
1705 #if defined __stub_$2 || defined __stub___$2
1717 if ac_fn_c_try_link "$LINENO"; then :
1722 rm -f core conftest.err conftest.$ac_objext \
1723 conftest$ac_exeext conftest.$ac_ext
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1727 $as_echo "$ac_res" >&6; }
1728 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1730 } # ac_fn_c_check_func
1731 cat >config.log <<_ACEOF
1732 This file contains any messages produced by compilers while
1733 running configure, to aid debugging if configure makes a mistake.
1735 It was created by libatomic_ops $as_me 7.2, which was
1736 generated by GNU Autoconf 2.69. Invocation command line was
1748 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1749 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1750 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1751 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1752 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1754 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1755 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1757 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1758 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1759 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1760 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1761 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1762 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1763 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1771 test -z "$as_dir" && as_dir=.
1772 $as_echo "PATH: $as_dir"
1788 # Keep a trace of the command line.
1789 # Strip out --no-create and --no-recursion so they do not pile up.
1790 # Strip out --silent because we don't want to record it for future runs.
1791 # Also quote any args containing shell meta-characters.
1792 # Make two passes to allow for proper duplicate-argument suppression.
1796 ac_must_keep_next=false
1802 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1803 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1804 | -silent | --silent | --silen | --sile | --sil)
1807 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1810 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1812 as_fn_append ac_configure_args1 " '$ac_arg'"
1813 if test $ac_must_keep_next = true; then
1814 ac_must_keep_next=false # Got value, back to normal.
1817 *=* | --config-cache | -C | -disable-* | --disable-* \
1818 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1819 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1820 | -with-* | --with-* | -without-* | --without-* | --x)
1821 case "$ac_configure_args0 " in
1822 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1825 -* ) ac_must_keep_next=true ;;
1828 as_fn_append ac_configure_args " '$ac_arg'"
1833 { ac_configure_args0=; unset ac_configure_args0;}
1834 { ac_configure_args1=; unset ac_configure_args1;}
1836 # When interrupted or exit'd, cleanup temporary files, and complete
1837 # config.log. We remove comments because anyway the quotes in there
1838 # would cause problems or look ugly.
1839 # WARNING: Use '\'' to represent an apostrophe within the trap.
1840 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1841 trap 'exit_status=$?
1842 # Save into config.log some information that might help in debugging.
1846 $as_echo "## ---------------- ##
1847 ## Cache variables. ##
1848 ## ---------------- ##"
1850 # The following way of writing the cache mishandles newlines in values,
1852 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1853 eval ac_val=\$$ac_var
1857 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1858 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1861 _ | IFS | as_nl) ;; #(
1862 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1863 *) { eval $ac_var=; unset $ac_var;} ;;
1868 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1869 *${as_nl}ac_space=\ *)
1871 "s/'\''/'\''\\\\'\'''\''/g;
1872 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1875 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1882 $as_echo "## ----------------- ##
1883 ## Output variables. ##
1884 ## ----------------- ##"
1886 for ac_var in $ac_subst_vars
1888 eval ac_val=\$$ac_var
1890 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1892 $as_echo "$ac_var='\''$ac_val'\''"
1896 if test -n "$ac_subst_files"; then
1897 $as_echo "## ------------------- ##
1898 ## File substitutions. ##
1899 ## ------------------- ##"
1901 for ac_var in $ac_subst_files
1903 eval ac_val=\$$ac_var
1905 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1907 $as_echo "$ac_var='\''$ac_val'\''"
1912 if test -s confdefs.h; then
1913 $as_echo "## ----------- ##
1920 test "$ac_signal" != 0 &&
1921 $as_echo "$as_me: caught signal $ac_signal"
1922 $as_echo "$as_me: exit $exit_status"
1924 rm -f core *.core core.conftest.* &&
1925 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1928 for ac_signal in 1 2 13 15; do
1929 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1933 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1934 rm -f -r conftest* confdefs.h
1936 $as_echo "/* confdefs.h */" > confdefs.h
1938 # Predefined preprocessor variables.
1940 cat >>confdefs.h <<_ACEOF
1941 #define PACKAGE_NAME "$PACKAGE_NAME"
1944 cat >>confdefs.h <<_ACEOF
1945 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1948 cat >>confdefs.h <<_ACEOF
1949 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1952 cat >>confdefs.h <<_ACEOF
1953 #define PACKAGE_STRING "$PACKAGE_STRING"
1956 cat >>confdefs.h <<_ACEOF
1957 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1960 cat >>confdefs.h <<_ACEOF
1961 #define PACKAGE_URL "$PACKAGE_URL"
1965 # Let the site file select an alternate cache file if it wants to.
1966 # Prefer an explicitly selected file to automatically selected ones.
1969 if test -n "$CONFIG_SITE"; then
1970 # We do not want a PATH search for config.site.
1971 case $CONFIG_SITE in #((
1972 -*) ac_site_file1=./$CONFIG_SITE;;
1973 */*) ac_site_file1=$CONFIG_SITE;;
1974 *) ac_site_file1=./$CONFIG_SITE;;
1976 elif test "x$prefix" != xNONE; then
1977 ac_site_file1=$prefix/share/config.site
1978 ac_site_file2=$prefix/etc/config.site
1980 ac_site_file1=$ac_default_prefix/share/config.site
1981 ac_site_file2=$ac_default_prefix/etc/config.site
1983 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1985 test "x$ac_site_file" = xNONE && continue
1986 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1988 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1989 sed 's/^/| /' "$ac_site_file" >&5
1991 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1992 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1993 as_fn_error $? "failed to load site script $ac_site_file
1994 See \`config.log' for more details" "$LINENO" 5; }
1998 if test -r "$cache_file"; then
1999 # Some versions of bash will fail to source /dev/null (special files
2000 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2001 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2003 $as_echo "$as_me: loading cache $cache_file" >&6;}
2005 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2006 *) . "./$cache_file";;
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2011 $as_echo "$as_me: creating cache $cache_file" >&6;}
2015 as_fn_append ac_header_list " stdlib.h"
2016 as_fn_append ac_header_list " unistd.h"
2017 as_fn_append ac_header_list " sys/param.h"
2018 # Check that the precious variables saved in the cache have kept the same
2020 ac_cache_corrupted=false
2021 for ac_var in $ac_precious_vars; do
2022 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2023 eval ac_new_set=\$ac_env_${ac_var}_set
2024 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2025 eval ac_new_val=\$ac_env_${ac_var}_value
2026 case $ac_old_set,$ac_new_set in
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2029 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2030 ac_cache_corrupted=: ;;
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2033 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2034 ac_cache_corrupted=: ;;
2037 if test "x$ac_old_val" != "x$ac_new_val"; then
2038 # differences in whitespace do not lead to failure.
2039 ac_old_val_w=`echo x $ac_old_val`
2040 ac_new_val_w=`echo x $ac_new_val`
2041 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2043 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2044 ac_cache_corrupted=:
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2047 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2048 eval $ac_var=\$ac_old_val
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2051 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2053 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2056 # Pass precious variables to config.status.
2057 if test "$ac_new_set" = set; then
2059 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2060 *) ac_arg=$ac_var=$ac_new_val ;;
2062 case " $ac_configure_args " in
2063 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2064 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2068 if $ac_cache_corrupted; then
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2070 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2072 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2073 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2075 ## -------------------- ##
2076 ## Main body of script. ##
2077 ## -------------------- ##
2080 ac_cpp='$CPP $CPPFLAGS'
2081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2088 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2089 if test -f "$ac_dir/install-sh"; then
2091 ac_install_sh="$ac_aux_dir/install-sh -c"
2093 elif test -f "$ac_dir/install.sh"; then
2095 ac_install_sh="$ac_aux_dir/install.sh -c"
2097 elif test -f "$ac_dir/shtool"; then
2099 ac_install_sh="$ac_aux_dir/shtool install -c"
2103 if test -z "$ac_aux_dir"; then
2104 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2107 # These three variables are undocumented and unsupported,
2108 # and are intended to be withdrawn in a future Autoconf release.
2109 # They can cause serious problems if a builder's source tree is in a directory
2110 # whose full name contains unusual characters.
2111 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2112 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2113 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2116 # Make sure we can run config.sub.
2117 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2118 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2121 $as_echo_n "checking build system type... " >&6; }
2122 if ${ac_cv_build+:} false; then :
2123 $as_echo_n "(cached) " >&6
2125 ac_build_alias=$build_alias
2126 test "x$ac_build_alias" = x &&
2127 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2128 test "x$ac_build_alias" = x &&
2129 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2130 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2131 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2135 $as_echo "$ac_cv_build" >&6; }
2136 case $ac_cv_build in
2138 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2141 ac_save_IFS=$IFS; IFS='-'
2147 # Remember, the first character of IFS is used to create $*,
2148 # except with old shells:
2151 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2155 $as_echo_n "checking host system type... " >&6; }
2156 if ${ac_cv_host+:} false; then :
2157 $as_echo_n "(cached) " >&6
2159 if test "x$host_alias" = x; then
2160 ac_cv_host=$ac_cv_build
2162 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2163 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2168 $as_echo "$ac_cv_host" >&6; }
2171 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2174 ac_save_IFS=$IFS; IFS='-'
2180 # Remember, the first character of IFS is used to create $*,
2181 # except with old shells:
2184 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2188 $as_echo_n "checking target system type... " >&6; }
2189 if ${ac_cv_target+:} false; then :
2190 $as_echo_n "(cached) " >&6
2192 if test "x$target_alias" = x; then
2193 ac_cv_target=$ac_cv_host
2195 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2196 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2201 $as_echo "$ac_cv_target" >&6; }
2202 case $ac_cv_target in
2204 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2206 target=$ac_cv_target
2207 ac_save_IFS=$IFS; IFS='-'
2213 # Remember, the first character of IFS is used to create $*,
2214 # except with old shells:
2217 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2220 # The aliases save the names the user supplied, while $host etc.
2221 # will get canonicalized.
2222 test -n "$target_alias" &&
2223 test "$program_prefix$program_suffix$program_transform_name" = \
2225 program_prefix=${target_alias}-
2227 am__api_version='1.14'
2229 # Find a good install program. We prefer a C program (faster),
2230 # so one script is as good as another. But avoid the broken or
2231 # incompatible versions:
2232 # SysV /etc/install, /usr/sbin/install
2233 # SunOS /usr/etc/install
2234 # IRIX /sbin/install
2236 # AmigaOS /C/install, which installs bootblocks on floppy discs
2237 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2238 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2239 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2240 # OS/2's system install, which has a completely different semantic
2241 # ./install, which can be erroneously created by make from ./install.sh.
2242 # Reject install programs that cannot install multiple files.
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2244 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2245 if test -z "$INSTALL"; then
2246 if ${ac_cv_path_install+:} false; then :
2247 $as_echo_n "(cached) " >&6
2249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2253 test -z "$as_dir" && as_dir=.
2254 # Account for people who put trailing slashes in PATH elements.
2255 case $as_dir/ in #((
2256 ./ | .// | /[cC]/* | \
2257 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2258 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2261 # OSF1 and SCO ODT 3.0 have their own names for install.
2262 # Don't use installbsd from OSF since it installs stuff as root
2264 for ac_prog in ginstall scoinst install; do
2265 for ac_exec_ext in '' $ac_executable_extensions; do
2266 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2267 if test $ac_prog = install &&
2268 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2269 # AIX install. It has an incompatible calling convention.
2271 elif test $ac_prog = install &&
2272 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2273 # program-specific install script used by HP pwplus--don't use.
2276 rm -rf conftest.one conftest.two conftest.dir
2277 echo one > conftest.one
2278 echo two > conftest.two
2280 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2281 test -s conftest.one && test -s conftest.two &&
2282 test -s conftest.dir/conftest.one &&
2283 test -s conftest.dir/conftest.two
2285 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2298 rm -rf conftest.one conftest.two conftest.dir
2301 if test "${ac_cv_path_install+set}" = set; then
2302 INSTALL=$ac_cv_path_install
2304 # As a last resort, use the slow shell script. Don't cache a
2305 # value for INSTALL within a source directory, because that will
2306 # break other packages using the cache if that directory is
2307 # removed, or if the value is a relative name.
2308 INSTALL=$ac_install_sh
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2312 $as_echo "$INSTALL" >&6; }
2314 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2315 # It thinks the first close brace ends the variable substitution.
2316 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2318 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2320 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2323 $as_echo_n "checking whether build environment is sane... " >&6; }
2324 # Reject unsafe characters in $srcdir or the absolute working directory
2325 # name. Accept space and tab only in the latter.
2329 *[\\\"\#\$\&\'\`$am_lf]*)
2330 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2333 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2334 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2337 # Do 'set' in a subshell so we don't clobber the current shell's
2338 # arguments. Must try -L first in case configure is actually a
2339 # symlink; some systems play weird games with the mod time of symlinks
2340 # (eg FreeBSD returns the mod time of the symlink's containing
2344 for am_try in 1 2; do
2345 echo "timestamp, slept: $am_has_slept" > conftest.file
2346 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2347 if test "$*" = "X"; then
2349 set X `ls -t "$srcdir/configure" conftest.file`
2351 if test "$*" != "X $srcdir/configure conftest.file" \
2352 && test "$*" != "X conftest.file $srcdir/configure"; then
2354 # If neither matched, then we have a broken ls. This can happen
2355 # if, for instance, CONFIG_SHELL is bash and it inherits a
2356 # broken ls alias from the environment. This has actually
2357 # happened. Such a system could not be considered "sane".
2358 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2359 alias in your environment" "$LINENO" 5
2361 if test "$2" = conftest.file || test $am_try -eq 2; then
2368 test "$2" = conftest.file
2374 as_fn_error $? "newly created file is older than distributed files!
2375 Check your system clock" "$LINENO" 5
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2378 $as_echo "yes" >&6; }
2379 # If we didn't sleep, we still need to ensure time stamps of config.status and
2380 # generated files are strictly newer.
2382 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2389 test "$program_prefix" != NONE &&
2390 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2391 # Use a double $ so make ignores it.
2392 test "$program_suffix" != NONE &&
2393 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2394 # Double any \ or $.
2395 # By default was `s,x,x', remove it if useless.
2396 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2397 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2399 # expand $ac_aux_dir to an absolute path
2400 am_aux_dir=`cd $ac_aux_dir && pwd`
2402 if test x"${MISSING+set}" != xset; then
2405 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2407 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2410 # Use eval to expand $SHELL
2411 if eval "$MISSING --is-lightweight"; then
2412 am_missing_run="$MISSING "
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2416 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2419 if test x"${install_sh}" != xset; then
2422 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2424 install_sh="\${SHELL} $am_aux_dir/install-sh"
2428 # Installed binaries are usually stripped using 'strip' when the user
2429 # run "make install-strip". However 'strip' might not be the right
2430 # tool to use in cross-compilation environments, therefore Automake
2431 # will honor the 'STRIP' environment variable to overrule this program.
2432 if test "$cross_compiling" != no; then
2433 if test -n "$ac_tool_prefix"; then
2434 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2435 set dummy ${ac_tool_prefix}strip; ac_word=$2
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2437 $as_echo_n "checking for $ac_word... " >&6; }
2438 if ${ac_cv_prog_STRIP+:} false; then :
2439 $as_echo_n "(cached) " >&6
2441 if test -n "$STRIP"; then
2442 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2448 test -z "$as_dir" && as_dir=.
2449 for ac_exec_ext in '' $ac_executable_extensions; do
2450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2451 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2461 STRIP=$ac_cv_prog_STRIP
2462 if test -n "$STRIP"; then
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2464 $as_echo "$STRIP" >&6; }
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2467 $as_echo "no" >&6; }
2472 if test -z "$ac_cv_prog_STRIP"; then
2474 # Extract the first word of "strip", so it can be a program name with args.
2475 set dummy strip; ac_word=$2
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2477 $as_echo_n "checking for $ac_word... " >&6; }
2478 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2479 $as_echo_n "(cached) " >&6
2481 if test -n "$ac_ct_STRIP"; then
2482 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2488 test -z "$as_dir" && as_dir=.
2489 for ac_exec_ext in '' $ac_executable_extensions; do
2490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2491 ac_cv_prog_ac_ct_STRIP="strip"
2492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2501 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2502 if test -n "$ac_ct_STRIP"; then
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2504 $as_echo "$ac_ct_STRIP" >&6; }
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2507 $as_echo "no" >&6; }
2510 if test "x$ac_ct_STRIP" = x; then
2513 case $cross_compiling:$ac_tool_warned in
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2516 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2517 ac_tool_warned=yes ;;
2522 STRIP="$ac_cv_prog_STRIP"
2526 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2529 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2530 if test -z "$MKDIR_P"; then
2531 if ${ac_cv_path_mkdir+:} false; then :
2532 $as_echo_n "(cached) " >&6
2534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2535 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2538 test -z "$as_dir" && as_dir=.
2539 for ac_prog in mkdir gmkdir; do
2540 for ac_exec_ext in '' $ac_executable_extensions; do
2541 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2542 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2543 'mkdir (GNU coreutils) '* | \
2544 'mkdir (coreutils) '* | \
2545 'mkdir (fileutils) '4.1*)
2546 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2556 test -d ./--version && rmdir ./--version
2557 if test "${ac_cv_path_mkdir+set}" = set; then
2558 MKDIR_P="$ac_cv_path_mkdir -p"
2560 # As a last resort, use the slow shell script. Don't cache a
2561 # value for MKDIR_P within a source directory, because that will
2562 # break other packages using the cache if that directory is
2563 # removed, or if the value is a relative name.
2564 MKDIR_P="$ac_install_sh -d"
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2568 $as_echo "$MKDIR_P" >&6; }
2570 for ac_prog in gawk mawk nawk awk
2572 # Extract the first word of "$ac_prog", so it can be a program name with args.
2573 set dummy $ac_prog; ac_word=$2
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2575 $as_echo_n "checking for $ac_word... " >&6; }
2576 if ${ac_cv_prog_AWK+:} false; then :
2577 $as_echo_n "(cached) " >&6
2579 if test -n "$AWK"; then
2580 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2586 test -z "$as_dir" && as_dir=.
2587 for ac_exec_ext in '' $ac_executable_extensions; do
2588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2589 ac_cv_prog_AWK="$ac_prog"
2590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2600 if test -n "$AWK"; then
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2602 $as_echo "$AWK" >&6; }
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2605 $as_echo "no" >&6; }
2609 test -n "$AWK" && break
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2613 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2615 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2616 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2617 $as_echo_n "(cached) " >&6
2619 cat >conftest.make <<\_ACEOF
2622 @echo '@@@%%%=$(MAKE)=@@@%%%'
2624 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2625 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2627 eval ac_cv_prog_make_${ac_make}_set=yes;;
2629 eval ac_cv_prog_make_${ac_make}_set=no;;
2633 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2635 $as_echo "yes" >&6; }
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2639 $as_echo "no" >&6; }
2640 SET_MAKE="MAKE=${MAKE-make}"
2643 rm -rf .tst 2>/dev/null
2644 mkdir .tst 2>/dev/null
2645 if test -d .tst; then
2650 rmdir .tst 2>/dev/null
2652 # Check whether --enable-silent-rules was given.
2653 if test "${enable_silent_rules+set}" = set; then :
2654 enableval=$enable_silent_rules;
2657 case $enable_silent_rules in # (((
2658 yes) AM_DEFAULT_VERBOSITY=0;;
2659 no) AM_DEFAULT_VERBOSITY=1;;
2660 *) AM_DEFAULT_VERBOSITY=1;;
2662 am_make=${MAKE-make}
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2664 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2665 if ${am_cv_make_support_nested_variables+:} false; then :
2666 $as_echo_n "(cached) " >&6
2668 if $as_echo 'TRUE=$(BAR$(V))
2674 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2675 am_cv_make_support_nested_variables=yes
2677 am_cv_make_support_nested_variables=no
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2681 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2682 if test $am_cv_make_support_nested_variables = yes; then
2684 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2686 AM_V=$AM_DEFAULT_VERBOSITY
2687 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2691 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2692 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2693 # is not polluted with repeated "-I."
2694 am__isrc=' -I$(srcdir)'
2695 # test to see if srcdir already configured
2696 if test -f $srcdir/config.status; then
2697 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2701 # test whether we have cygpath
2702 if test -z "$CYGPATH_W"; then
2703 if (cygpath --version) >/dev/null 2>/dev/null; then
2704 CYGPATH_W='cygpath -w'
2711 # Define the identity of the package.
2712 PACKAGE='libatomic_ops'
2716 cat >>confdefs.h <<_ACEOF
2717 #define PACKAGE "$PACKAGE"
2721 cat >>confdefs.h <<_ACEOF
2722 #define VERSION "$VERSION"
2725 # Some tools Automake needs.
2727 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2730 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2733 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2736 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2739 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2741 # For better backward compatibility. To be removed once Automake 1.9.x
2742 # dies out for good. For more background, see:
2743 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2744 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2745 mkdir_p='$(MKDIR_P)'
2747 # We need awk for the "check" target. The system "awk" is bad on
2749 # Always define AMTAR for backward compatibility. Yes, it's still used
2750 # in the wild :-( We should find a proper way to deprecate it ...
2754 # We'll loop over all known methods to create a tar archive until one works.
2755 _am_tools='gnutar pax cpio none'
2757 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2764 # POSIX will say in a future version that running "rm -f" with no argument
2765 # is OK; and we want to be able to make that assumption in our Makefile
2766 # recipes. So use an aggressive probe to check that the usage we want is
2767 # actually supported "in the wild" to an acceptable degree.
2768 # See automake bug#10828.
2769 # To make any issue more visible, cause the running configure to be aborted
2770 # by default if the 'rm' program in use doesn't match our expectations; the
2771 # user can still override this though.
2772 if rm -f && rm -fr && rm -rf; then : OK; else
2776 Your 'rm' program seems unable to run without file operands specified
2777 on the command line, even when the '-f' option is present. This is contrary
2778 to the behaviour of most rm programs out there, and not conforming with
2779 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2781 Please tell bug-automake@gnu.org about your system, including the value
2782 of your $PATH and any error possibly output before this message. This
2783 can help us improve future automake versions.
2786 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2787 echo 'Configuration will proceed anyway, since you have set the' >&2
2788 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2792 Aborting the configuration process, to ensure you take notice of the issue.
2794 You can download and install GNU coreutils to get an 'rm' implementation
2795 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2797 If you want to complete the configuration process using your problematic
2798 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2799 to "yes", and re-run configure.
2802 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2805 if test -n "$ac_tool_prefix"; then
2806 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2807 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2809 $as_echo_n "checking for $ac_word... " >&6; }
2810 if ${ac_cv_prog_RANLIB+:} false; then :
2811 $as_echo_n "(cached) " >&6
2813 if test -n "$RANLIB"; then
2814 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2820 test -z "$as_dir" && as_dir=.
2821 for ac_exec_ext in '' $ac_executable_extensions; do
2822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2823 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2833 RANLIB=$ac_cv_prog_RANLIB
2834 if test -n "$RANLIB"; then
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
2836 $as_echo "$RANLIB" >&6; }
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2839 $as_echo "no" >&6; }
2844 if test -z "$ac_cv_prog_RANLIB"; then
2845 ac_ct_RANLIB=$RANLIB
2846 # Extract the first word of "ranlib", so it can be a program name with args.
2847 set dummy ranlib; ac_word=$2
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2849 $as_echo_n "checking for $ac_word... " >&6; }
2850 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
2851 $as_echo_n "(cached) " >&6
2853 if test -n "$ac_ct_RANLIB"; then
2854 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2860 test -z "$as_dir" && as_dir=.
2861 for ac_exec_ext in '' $ac_executable_extensions; do
2862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2863 ac_cv_prog_ac_ct_RANLIB="ranlib"
2864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2873 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2874 if test -n "$ac_ct_RANLIB"; then
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
2876 $as_echo "$ac_ct_RANLIB" >&6; }
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2879 $as_echo "no" >&6; }
2882 if test "x$ac_ct_RANLIB" = x; then
2885 case $cross_compiling:$ac_tool_warned in
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2888 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2889 ac_tool_warned=yes ;;
2891 RANLIB=$ac_ct_RANLIB
2894 RANLIB="$ac_cv_prog_RANLIB"
2898 ac_config_headers="$ac_config_headers src/config.h"
2901 # Checks for programs.
2902 DEPDIR="${am__leading_dot}deps"
2904 ac_config_commands="$ac_config_commands depfiles"
2907 am_make=${MAKE-make}
2908 cat > confinc << 'END'
2910 @echo this is the am__doit target
2913 # If we don't find an include directive, just comment out the code.
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2915 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2919 # First try GNU make style include.
2920 echo "include confinc" > confmf
2921 # Ignore all kinds of additional output from 'make'.
2922 case `$am_make -s -f confmf 2> /dev/null` in #(
2923 *the\ am__doit\ target*)
2929 # Now try BSD make style include.
2930 if test "$am__include" = "#"; then
2931 echo '.include "confinc"' > confmf
2932 case `$am_make -s -f confmf 2> /dev/null` in #(
2933 *the\ am__doit\ target*)
2934 am__include=.include
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2943 $as_echo "$_am_result" >&6; }
2944 rm -f confinc confmf
2946 # Check whether --enable-dependency-tracking was given.
2947 if test "${enable_dependency_tracking+set}" = set; then :
2948 enableval=$enable_dependency_tracking;
2951 if test "x$enable_dependency_tracking" != xno; then
2952 am_depcomp="$ac_aux_dir/depcomp"
2956 if test "x$enable_dependency_tracking" != xno; then
2966 ac_cpp='$CPP $CPPFLAGS'
2967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2970 if test -n "$ac_tool_prefix"; then
2971 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2972 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2974 $as_echo_n "checking for $ac_word... " >&6; }
2975 if ${ac_cv_prog_CC+:} false; then :
2976 $as_echo_n "(cached) " >&6
2978 if test -n "$CC"; then
2979 ac_cv_prog_CC="$CC" # Let the user override the test.
2981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2985 test -z "$as_dir" && as_dir=.
2986 for ac_exec_ext in '' $ac_executable_extensions; do
2987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2988 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2999 if test -n "$CC"; then
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3001 $as_echo "$CC" >&6; }
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3004 $as_echo "no" >&6; }
3009 if test -z "$ac_cv_prog_CC"; then
3011 # Extract the first word of "gcc", so it can be a program name with args.
3012 set dummy gcc; ac_word=$2
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3014 $as_echo_n "checking for $ac_word... " >&6; }
3015 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3016 $as_echo_n "(cached) " >&6
3018 if test -n "$ac_ct_CC"; then
3019 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3025 test -z "$as_dir" && as_dir=.
3026 for ac_exec_ext in '' $ac_executable_extensions; do
3027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3028 ac_cv_prog_ac_ct_CC="gcc"
3029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3038 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3039 if test -n "$ac_ct_CC"; then
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3041 $as_echo "$ac_ct_CC" >&6; }
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3044 $as_echo "no" >&6; }
3047 if test "x$ac_ct_CC" = x; then
3050 case $cross_compiling:$ac_tool_warned in
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3053 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3054 ac_tool_warned=yes ;;
3062 if test -z "$CC"; then
3063 if test -n "$ac_tool_prefix"; then
3064 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3065 set dummy ${ac_tool_prefix}cc; ac_word=$2
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3067 $as_echo_n "checking for $ac_word... " >&6; }
3068 if ${ac_cv_prog_CC+:} false; then :
3069 $as_echo_n "(cached) " >&6
3071 if test -n "$CC"; then
3072 ac_cv_prog_CC="$CC" # Let the user override the test.
3074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3078 test -z "$as_dir" && as_dir=.
3079 for ac_exec_ext in '' $ac_executable_extensions; do
3080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3081 ac_cv_prog_CC="${ac_tool_prefix}cc"
3082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3092 if test -n "$CC"; then
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3094 $as_echo "$CC" >&6; }
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3097 $as_echo "no" >&6; }
3103 if test -z "$CC"; then
3104 # Extract the first word of "cc", so it can be a program name with args.
3105 set dummy cc; ac_word=$2
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3107 $as_echo_n "checking for $ac_word... " >&6; }
3108 if ${ac_cv_prog_CC+:} false; then :
3109 $as_echo_n "(cached) " >&6
3111 if test -n "$CC"; then
3112 ac_cv_prog_CC="$CC" # Let the user override the test.
3115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3119 test -z "$as_dir" && as_dir=.
3120 for ac_exec_ext in '' $ac_executable_extensions; do
3121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3122 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3123 ac_prog_rejected=yes
3127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3134 if test $ac_prog_rejected = yes; then
3135 # We found a bogon in the path, so make sure we never use it.
3136 set dummy $ac_cv_prog_CC
3138 if test $# != 0; then
3139 # We chose a different compiler from the bogus one.
3140 # However, it has the same basename, so the bogon will be chosen
3141 # first if we set CC to just the basename; use the full file name.
3143 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3149 if test -n "$CC"; then
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3151 $as_echo "$CC" >&6; }
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3154 $as_echo "no" >&6; }
3159 if test -z "$CC"; then
3160 if test -n "$ac_tool_prefix"; then
3161 for ac_prog in cl.exe
3163 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3164 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3166 $as_echo_n "checking for $ac_word... " >&6; }
3167 if ${ac_cv_prog_CC+:} false; then :
3168 $as_echo_n "(cached) " >&6
3170 if test -n "$CC"; then
3171 ac_cv_prog_CC="$CC" # Let the user override the test.
3173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3177 test -z "$as_dir" && as_dir=.
3178 for ac_exec_ext in '' $ac_executable_extensions; do
3179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3180 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3191 if test -n "$CC"; then
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3193 $as_echo "$CC" >&6; }
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3196 $as_echo "no" >&6; }
3200 test -n "$CC" && break
3203 if test -z "$CC"; then
3205 for ac_prog in cl.exe
3207 # Extract the first word of "$ac_prog", so it can be a program name with args.
3208 set dummy $ac_prog; ac_word=$2
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3210 $as_echo_n "checking for $ac_word... " >&6; }
3211 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3212 $as_echo_n "(cached) " >&6
3214 if test -n "$ac_ct_CC"; then
3215 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3221 test -z "$as_dir" && as_dir=.
3222 for ac_exec_ext in '' $ac_executable_extensions; do
3223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3224 ac_cv_prog_ac_ct_CC="$ac_prog"
3225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3234 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3235 if test -n "$ac_ct_CC"; then
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3237 $as_echo "$ac_ct_CC" >&6; }
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3240 $as_echo "no" >&6; }
3244 test -n "$ac_ct_CC" && break
3247 if test "x$ac_ct_CC" = x; then
3250 case $cross_compiling:$ac_tool_warned in
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3253 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3254 ac_tool_warned=yes ;;
3263 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3264 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3265 as_fn_error $? "no acceptable C compiler found in \$PATH
3266 See \`config.log' for more details" "$LINENO" 5; }
3268 # Provide some information about the compiler.
3269 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3272 for ac_option in --version -v -V -qversion; do
3273 { { ac_try="$ac_compiler $ac_option >&5"
3275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3276 *) ac_try_echo=$ac_try;;
3278 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3279 $as_echo "$ac_try_echo"; } >&5
3280 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3282 if test -s conftest.err; then
3284 ... rest of stderr output deleted ...
3285 10q' conftest.err >conftest.er1
3286 cat conftest.er1 >&5
3288 rm -f conftest.er1 conftest.err
3289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3290 test $ac_status = 0; }
3293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3294 /* end confdefs.h. */
3304 ac_clean_files_save=$ac_clean_files
3305 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3306 # Try to create an executable without -o first, disregard a.out.
3307 # It will help us diagnose broken compilers, and finding out an intuition
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3310 $as_echo_n "checking whether the C compiler works... " >&6; }
3311 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3313 # The possible output files:
3314 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3317 for ac_file in $ac_files
3320 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3321 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3326 if { { ac_try="$ac_link_default"
3328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3329 *) ac_try_echo=$ac_try;;
3331 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3332 $as_echo "$ac_try_echo"; } >&5
3333 (eval "$ac_link_default") 2>&5
3335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3336 test $ac_status = 0; }; then :
3337 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3338 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3339 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3340 # so that the user can short-circuit this test for compilers unknown to
3342 for ac_file in $ac_files ''
3344 test -f "$ac_file" || continue
3346 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3349 # We found the default executable, but exeext='' is most
3353 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3355 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3357 # We set ac_cv_exeext here because the later test for it is not
3358 # safe: cross compilers may not add the suffix if given an `-o'
3359 # argument, so we may need to know it at that point already.
3360 # Even if this section looks crufty: it has the advantage of
3367 test "$ac_cv_exeext" = no && ac_cv_exeext=
3372 if test -z "$ac_file"; then :
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3374 $as_echo "no" >&6; }
3375 $as_echo "$as_me: failed program was:" >&5
3376 sed 's/^/| /' conftest.$ac_ext >&5
3378 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3379 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3380 as_fn_error 77 "C compiler cannot create executables
3381 See \`config.log' for more details" "$LINENO" 5; }
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3384 $as_echo "yes" >&6; }
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3387 $as_echo_n "checking for C compiler default output file name... " >&6; }
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3389 $as_echo "$ac_file" >&6; }
3390 ac_exeext=$ac_cv_exeext
3392 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3393 ac_clean_files=$ac_clean_files_save
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3395 $as_echo_n "checking for suffix of executables... " >&6; }
3396 if { { ac_try="$ac_link"
3398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3399 *) ac_try_echo=$ac_try;;
3401 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3402 $as_echo "$ac_try_echo"; } >&5
3403 (eval "$ac_link") 2>&5
3405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3406 test $ac_status = 0; }; then :
3407 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3408 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3409 # work properly (i.e., refer to `conftest.exe'), while it won't with
3411 for ac_file in conftest.exe conftest conftest.*; do
3412 test -f "$ac_file" || continue
3414 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3415 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3421 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3422 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3423 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3424 See \`config.log' for more details" "$LINENO" 5; }
3426 rm -f conftest conftest$ac_cv_exeext
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3428 $as_echo "$ac_cv_exeext" >&6; }
3430 rm -f conftest.$ac_ext
3431 EXEEXT=$ac_cv_exeext
3433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3434 /* end confdefs.h. */
3439 FILE *f = fopen ("conftest.out", "w");
3440 return ferror (f) || fclose (f) != 0;
3446 ac_clean_files="$ac_clean_files conftest.out"
3447 # Check that the compiler produces executables we can run. If not, either
3448 # the compiler is broken, or we cross compile.
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3450 $as_echo_n "checking whether we are cross compiling... " >&6; }
3451 if test "$cross_compiling" != yes; then
3452 { { ac_try="$ac_link"
3454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3455 *) ac_try_echo=$ac_try;;
3457 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3458 $as_echo "$ac_try_echo"; } >&5
3459 (eval "$ac_link") 2>&5
3461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3462 test $ac_status = 0; }
3463 if { ac_try='./conftest$ac_cv_exeext'
3464 { { case "(($ac_try" in
3465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3466 *) ac_try_echo=$ac_try;;
3468 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3469 $as_echo "$ac_try_echo"; } >&5
3470 (eval "$ac_try") 2>&5
3472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3473 test $ac_status = 0; }; }; then
3476 if test "$cross_compiling" = maybe; then
3479 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3480 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3481 as_fn_error $? "cannot run C compiled programs.
3482 If you meant to cross compile, use \`--host'.
3483 See \`config.log' for more details" "$LINENO" 5; }
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3488 $as_echo "$cross_compiling" >&6; }
3490 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3491 ac_clean_files=$ac_clean_files_save
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3493 $as_echo_n "checking for suffix of object files... " >&6; }
3494 if ${ac_cv_objext+:} false; then :
3495 $as_echo_n "(cached) " >&6
3497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3498 /* end confdefs.h. */
3508 rm -f conftest.o conftest.obj
3509 if { { ac_try="$ac_compile"
3511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3512 *) ac_try_echo=$ac_try;;
3514 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3515 $as_echo "$ac_try_echo"; } >&5
3516 (eval "$ac_compile") 2>&5
3518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3519 test $ac_status = 0; }; then :
3520 for ac_file in conftest.o conftest.obj conftest.*; do
3521 test -f "$ac_file" || continue;
3523 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3524 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3529 $as_echo "$as_me: failed program was:" >&5
3530 sed 's/^/| /' conftest.$ac_ext >&5
3532 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3533 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3534 as_fn_error $? "cannot compute suffix of object files: cannot compile
3535 See \`config.log' for more details" "$LINENO" 5; }
3537 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3540 $as_echo "$ac_cv_objext" >&6; }
3541 OBJEXT=$ac_cv_objext
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3544 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3545 if ${ac_cv_c_compiler_gnu+:} false; then :
3546 $as_echo_n "(cached) " >&6
3548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3549 /* end confdefs.h. */
3562 if ac_fn_c_try_compile "$LINENO"; then :
3567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3568 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3572 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3573 if test $ac_compiler_gnu = yes; then
3578 ac_test_CFLAGS=${CFLAGS+set}
3579 ac_save_CFLAGS=$CFLAGS
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3581 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3582 if ${ac_cv_prog_cc_g+:} false; then :
3583 $as_echo_n "(cached) " >&6
3585 ac_save_c_werror_flag=$ac_c_werror_flag
3586 ac_c_werror_flag=yes
3589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3590 /* end confdefs.h. */
3600 if ac_fn_c_try_compile "$LINENO"; then :
3604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3605 /* end confdefs.h. */
3615 if ac_fn_c_try_compile "$LINENO"; then :
3618 ac_c_werror_flag=$ac_save_c_werror_flag
3620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3621 /* end confdefs.h. */
3631 if ac_fn_c_try_compile "$LINENO"; then :
3634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3639 ac_c_werror_flag=$ac_save_c_werror_flag
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3642 $as_echo "$ac_cv_prog_cc_g" >&6; }
3643 if test "$ac_test_CFLAGS" = set; then
3644 CFLAGS=$ac_save_CFLAGS
3645 elif test $ac_cv_prog_cc_g = yes; then
3646 if test "$GCC" = yes; then
3652 if test "$GCC" = yes; then
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3659 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3660 if ${ac_cv_prog_cc_c89+:} false; then :
3661 $as_echo_n "(cached) " >&6
3663 ac_cv_prog_cc_c89=no
3665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3666 /* end confdefs.h. */
3670 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3671 struct buf { int x; };
3672 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3673 static char *e (p, i)
3679 static char *f (char * (*g) (char **, int), char **p, ...)
3684 s = g (p, va_arg (v,int));
3689 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3690 function prototypes and stuff, but not '\xHH' hex character constants.
3691 These don't provoke an error unfortunately, instead are silently treated
3692 as 'x'. The following induces an error, until -std is added to get
3693 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3694 array size at least. It's necessary to write '\x00'==0 to get something
3695 that's true only with -std. */
3696 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3698 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3699 inside strings and character constants. */
3701 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3703 int test (int i, double x);
3704 struct s1 {int (*f) (int a);};
3705 struct s2 {int (*f) (double a);};
3706 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3712 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3717 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3718 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3720 CC="$ac_save_CC $ac_arg"
3721 if ac_fn_c_try_compile "$LINENO"; then :
3722 ac_cv_prog_cc_c89=$ac_arg
3724 rm -f core conftest.err conftest.$ac_objext
3725 test "x$ac_cv_prog_cc_c89" != "xno" && break
3727 rm -f conftest.$ac_ext
3732 case "x$ac_cv_prog_cc_c89" in
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3735 $as_echo "none needed" >&6; } ;;
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3738 $as_echo "unsupported" >&6; } ;;
3740 CC="$CC $ac_cv_prog_cc_c89"
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3742 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3744 if test "x$ac_cv_prog_cc_c89" != xno; then :
3749 ac_cpp='$CPP $CPPFLAGS'
3750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3755 ac_cpp='$CPP $CPPFLAGS'
3756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3760 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3761 if ${am_cv_prog_cc_c_o+:} false; then :
3762 $as_echo_n "(cached) " >&6
3764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3765 /* end confdefs.h. */
3775 # Make sure it works both with $CC and with simple cc.
3776 # Following AC_PROG_CC_C_O, we do the test twice because some
3777 # compilers refuse to overwrite an existing .o file with -o,
3778 # though they will create one.
3779 am_cv_prog_cc_c_o=yes
3781 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3782 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785 (exit $ac_status); } \
3786 && test -f conftest2.$ac_objext; then
3789 am_cv_prog_cc_c_o=no
3793 rm -f core conftest*
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3797 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3798 if test "$am_cv_prog_cc_c_o" != yes; then
3799 # Losing compiler, so override with the script.
3800 # FIXME: It is wrong to rewrite CC.
3801 # But if we don't then we get into trouble of one sort or another.
3802 # A longer-term fix would be to have automake use am__CC in this case,
3803 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3804 CC="$am_aux_dir/compile $CC"
3807 ac_cpp='$CPP $CPPFLAGS'
3808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3813 depcc="$CC" am_compiler_list=
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3816 $as_echo_n "checking dependency style of $depcc... " >&6; }
3817 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3818 $as_echo_n "(cached) " >&6
3820 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3821 # We make a subdir and do the tests there. Otherwise we can end up
3822 # making bogus files that we don't know about and never remove. For
3823 # instance it was reported that on HP-UX the gcc test will end up
3824 # making a dummy file named 'D' -- because '-MD' means "put the output
3828 # Copy depcomp to subdir because otherwise we won't find it if we're
3829 # using a relative directory.
3830 cp "$am_depcomp" conftest.dir
3832 # We will build objects and dependencies in a subdirectory because
3833 # it helps to detect inapplicable dependency modes. For instance
3834 # both Tru64's cc and ICC support -MD to output dependencies as a
3835 # side effect of compilation, but ICC will put the dependencies in
3836 # the current directory while Tru64 will put them in the object
3840 am_cv_CC_dependencies_compiler_type=none
3841 if test "$am_compiler_list" = ""; then
3842 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3845 case " $depcc " in #(
3846 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3849 for depmode in $am_compiler_list; do
3850 # Setup a source with many dependencies, because some compilers
3851 # like to wrap large dependency lists on column 80 (with \), and
3852 # we should not choose a depcomp mode which is confused by this.
3854 # We need to recreate these files for each test, as the compiler may
3855 # overwrite some of them when testing with obscure command lines.
3856 # This happens at least with the AIX C compiler.
3858 for i in 1 2 3 4 5 6; do
3859 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3860 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3861 # Solaris 10 /bin/sh.
3862 echo '/* dummy */' > sub/conftst$i.h
3864 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3866 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3867 # mode. It turns out that the SunPro C++ compiler does not properly
3868 # handle '-M -o', and we need to detect this. Also, some Intel
3869 # versions had trouble with output in subdirs.
3870 am__obj=sub/conftest.${OBJEXT-o}
3871 am__minus_obj="-o $am__obj"
3874 # This depmode causes a compiler race in universal mode.
3875 test "$am__universal" = false || continue
3878 # After this tag, mechanisms are not by side-effect, so they'll
3879 # only be used when explicitly requested.
3880 if test "x$enable_dependency_tracking" = xyes; then
3886 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3887 # This compiler won't grok '-c -o', but also, the minuso test has
3888 # not run yet. These depmodes are late enough in the game, and
3889 # so weak that their functioning should not be impacted.
3890 am__obj=conftest.${OBJEXT-o}
3895 if depmode=$depmode \
3896 source=sub/conftest.c object=$am__obj \
3897 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3898 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3899 >/dev/null 2>conftest.err &&
3900 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3901 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3902 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3903 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3904 # icc doesn't choke on unknown options, it will just issue warnings
3905 # or remarks (even with -Werror). So we grep stderr for any message
3906 # that says an option was ignored or not supported.
3907 # When given -MP, icc 7.0 and 7.1 complain thusly:
3908 # icc: Command line warning: ignoring option '-M'; no argument required
3909 # The diagnosis changed in icc 8.0:
3910 # icc: Command line remark: option '-MP' not supported
3911 if (grep 'ignoring option' conftest.err ||
3912 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3913 am_cv_CC_dependencies_compiler_type=$depmode
3922 am_cv_CC_dependencies_compiler_type=none
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3927 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3928 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3931 test "x$enable_dependency_tracking" != xno \
3932 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3934 am__fastdepCC_FALSE='#'
3936 am__fastdepCC_TRUE='#'
3937 am__fastdepCC_FALSE=
3942 # By default we simply use the C compiler to build assembly code.
3944 test "${CCAS+set}" = set || CCAS=$CC
3945 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
3949 depcc="$CCAS" am_compiler_list=
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3952 $as_echo_n "checking dependency style of $depcc... " >&6; }
3953 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
3954 $as_echo_n "(cached) " >&6
3956 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3957 # We make a subdir and do the tests there. Otherwise we can end up
3958 # making bogus files that we don't know about and never remove. For
3959 # instance it was reported that on HP-UX the gcc test will end up
3960 # making a dummy file named 'D' -- because '-MD' means "put the output
3964 # Copy depcomp to subdir because otherwise we won't find it if we're
3965 # using a relative directory.
3966 cp "$am_depcomp" conftest.dir
3968 # We will build objects and dependencies in a subdirectory because
3969 # it helps to detect inapplicable dependency modes. For instance
3970 # both Tru64's cc and ICC support -MD to output dependencies as a
3971 # side effect of compilation, but ICC will put the dependencies in
3972 # the current directory while Tru64 will put them in the object
3976 am_cv_CCAS_dependencies_compiler_type=none
3977 if test "$am_compiler_list" = ""; then
3978 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3983 for depmode in $am_compiler_list; do
3984 # Setup a source with many dependencies, because some compilers
3985 # like to wrap large dependency lists on column 80 (with \), and
3986 # we should not choose a depcomp mode which is confused by this.
3988 # We need to recreate these files for each test, as the compiler may
3989 # overwrite some of them when testing with obscure command lines.
3990 # This happens at least with the AIX C compiler.
3992 for i in 1 2 3 4 5 6; do
3993 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3994 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3995 # Solaris 10 /bin/sh.
3996 echo '/* dummy */' > sub/conftst$i.h
3998 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4000 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4001 # mode. It turns out that the SunPro C++ compiler does not properly
4002 # handle '-M -o', and we need to detect this. Also, some Intel
4003 # versions had trouble with output in subdirs.
4004 am__obj=sub/conftest.${OBJEXT-o}
4005 am__minus_obj="-o $am__obj"
4008 # This depmode causes a compiler race in universal mode.
4009 test "$am__universal" = false || continue
4012 # After this tag, mechanisms are not by side-effect, so they'll
4013 # only be used when explicitly requested.
4014 if test "x$enable_dependency_tracking" = xyes; then
4020 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4021 # This compiler won't grok '-c -o', but also, the minuso test has
4022 # not run yet. These depmodes are late enough in the game, and
4023 # so weak that their functioning should not be impacted.
4024 am__obj=conftest.${OBJEXT-o}
4029 if depmode=$depmode \
4030 source=sub/conftest.c object=$am__obj \
4031 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4032 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4033 >/dev/null 2>conftest.err &&
4034 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4035 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4036 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4037 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4038 # icc doesn't choke on unknown options, it will just issue warnings
4039 # or remarks (even with -Werror). So we grep stderr for any message
4040 # that says an option was ignored or not supported.
4041 # When given -MP, icc 7.0 and 7.1 complain thusly:
4042 # icc: Command line warning: ignoring option '-M'; no argument required
4043 # The diagnosis changed in icc 8.0:
4044 # icc: Command line remark: option '-MP' not supported
4045 if (grep 'ignoring option' conftest.err ||
4046 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4047 am_cv_CCAS_dependencies_compiler_type=$depmode
4056 am_cv_CCAS_dependencies_compiler_type=none
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4061 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4062 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4065 test "x$enable_dependency_tracking" != xno \
4066 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4067 am__fastdepCCAS_TRUE=
4068 am__fastdepCCAS_FALSE='#'
4070 am__fastdepCCAS_TRUE='#'
4071 am__fastdepCCAS_FALSE=
4076 # Checks for functions.
4079 ac_cpp='$CPP $CPPFLAGS'
4080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4084 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4085 # On Suns, sometimes $CPP names a directory.
4086 if test -n "$CPP" && test -d "$CPP"; then
4089 if test -z "$CPP"; then
4090 if ${ac_cv_prog_CPP+:} false; then :
4091 $as_echo_n "(cached) " >&6
4093 # Double quotes because CPP needs to be expanded
4094 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4097 for ac_c_preproc_warn_flag in '' yes
4099 # Use a header file that comes with gcc, so configuring glibc
4100 # with a fresh cross-compiler works.
4101 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4102 # <limits.h> exists even on freestanding compilers.
4103 # On the NeXT, cc -E runs the code through the compiler's parser,
4104 # not just through cpp. "Syntax error" is here to catch this case.
4105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4106 /* end confdefs.h. */
4108 # include <limits.h>
4110 # include <assert.h>
4114 if ac_fn_c_try_cpp "$LINENO"; then :
4117 # Broken: fails on valid input.
4120 rm -f conftest.err conftest.i conftest.$ac_ext
4122 # OK, works on sane cases. Now check whether nonexistent headers
4123 # can be detected and how.
4124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4125 /* end confdefs.h. */
4126 #include <ac_nonexistent.h>
4128 if ac_fn_c_try_cpp "$LINENO"; then :
4129 # Broken: success on invalid input.
4132 # Passes both tests.
4136 rm -f conftest.err conftest.i conftest.$ac_ext
4139 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4140 rm -f conftest.i conftest.err conftest.$ac_ext
4141 if $ac_preproc_ok; then :
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4154 $as_echo "$CPP" >&6; }
4156 for ac_c_preproc_warn_flag in '' yes
4158 # Use a header file that comes with gcc, so configuring glibc
4159 # with a fresh cross-compiler works.
4160 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4161 # <limits.h> exists even on freestanding compilers.
4162 # On the NeXT, cc -E runs the code through the compiler's parser,
4163 # not just through cpp. "Syntax error" is here to catch this case.
4164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4165 /* end confdefs.h. */
4167 # include <limits.h>
4169 # include <assert.h>
4173 if ac_fn_c_try_cpp "$LINENO"; then :
4176 # Broken: fails on valid input.
4179 rm -f conftest.err conftest.i conftest.$ac_ext
4181 # OK, works on sane cases. Now check whether nonexistent headers
4182 # can be detected and how.
4183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4184 /* end confdefs.h. */
4185 #include <ac_nonexistent.h>
4187 if ac_fn_c_try_cpp "$LINENO"; then :
4188 # Broken: success on invalid input.
4191 # Passes both tests.
4195 rm -f conftest.err conftest.i conftest.$ac_ext
4198 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4199 rm -f conftest.i conftest.err conftest.$ac_ext
4200 if $ac_preproc_ok; then :
4203 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4204 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4205 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4206 See \`config.log' for more details" "$LINENO" 5; }
4210 ac_cpp='$CPP $CPPFLAGS'
4211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4217 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4218 if ${ac_cv_path_GREP+:} false; then :
4219 $as_echo_n "(cached) " >&6
4221 if test -z "$GREP"; then
4222 ac_path_GREP_found=false
4223 # Loop through the user's path and test for each of PROGNAME-LIST
4224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4225 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4228 test -z "$as_dir" && as_dir=.
4229 for ac_prog in grep ggrep; do
4230 for ac_exec_ext in '' $ac_executable_extensions; do
4231 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4232 as_fn_executable_p "$ac_path_GREP" || continue
4233 # Check for GNU ac_path_GREP and select it if it is found.
4234 # Check for GNU $ac_path_GREP
4235 case `"$ac_path_GREP" --version 2>&1` in
4237 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4240 $as_echo_n 0123456789 >"conftest.in"
4243 cat "conftest.in" "conftest.in" >"conftest.tmp"
4244 mv "conftest.tmp" "conftest.in"
4245 cp "conftest.in" "conftest.nl"
4246 $as_echo 'GREP' >> "conftest.nl"
4247 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4248 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4249 as_fn_arith $ac_count + 1 && ac_count=$as_val
4250 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4251 # Best one so far, save it but keep looking for a better one
4252 ac_cv_path_GREP="$ac_path_GREP"
4253 ac_path_GREP_max=$ac_count
4255 # 10*(2^10) chars as input seems more than enough
4256 test $ac_count -gt 10 && break
4258 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4261 $ac_path_GREP_found && break 3
4266 if test -z "$ac_cv_path_GREP"; then
4267 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4270 ac_cv_path_GREP=$GREP
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4275 $as_echo "$ac_cv_path_GREP" >&6; }
4276 GREP="$ac_cv_path_GREP"
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4280 $as_echo_n "checking for egrep... " >&6; }
4281 if ${ac_cv_path_EGREP+:} false; then :
4282 $as_echo_n "(cached) " >&6
4284 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4285 then ac_cv_path_EGREP="$GREP -E"
4287 if test -z "$EGREP"; then
4288 ac_path_EGREP_found=false
4289 # Loop through the user's path and test for each of PROGNAME-LIST
4290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4291 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4294 test -z "$as_dir" && as_dir=.
4295 for ac_prog in egrep; do
4296 for ac_exec_ext in '' $ac_executable_extensions; do
4297 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4298 as_fn_executable_p "$ac_path_EGREP" || continue
4299 # Check for GNU ac_path_EGREP and select it if it is found.
4300 # Check for GNU $ac_path_EGREP
4301 case `"$ac_path_EGREP" --version 2>&1` in
4303 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4306 $as_echo_n 0123456789 >"conftest.in"
4309 cat "conftest.in" "conftest.in" >"conftest.tmp"
4310 mv "conftest.tmp" "conftest.in"
4311 cp "conftest.in" "conftest.nl"
4312 $as_echo 'EGREP' >> "conftest.nl"
4313 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4314 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4315 as_fn_arith $ac_count + 1 && ac_count=$as_val
4316 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4317 # Best one so far, save it but keep looking for a better one
4318 ac_cv_path_EGREP="$ac_path_EGREP"
4319 ac_path_EGREP_max=$ac_count
4321 # 10*(2^10) chars as input seems more than enough
4322 test $ac_count -gt 10 && break
4324 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4327 $ac_path_EGREP_found && break 3
4332 if test -z "$ac_cv_path_EGREP"; then
4333 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4336 ac_cv_path_EGREP=$EGREP
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4342 $as_echo "$ac_cv_path_EGREP" >&6; }
4343 EGREP="$ac_cv_path_EGREP"
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4347 $as_echo_n "checking for ANSI C header files... " >&6; }
4348 if ${ac_cv_header_stdc+:} false; then :
4349 $as_echo_n "(cached) " >&6
4351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4352 /* end confdefs.h. */
4366 if ac_fn_c_try_compile "$LINENO"; then :
4367 ac_cv_header_stdc=yes
4369 ac_cv_header_stdc=no
4371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4373 if test $ac_cv_header_stdc = yes; then
4374 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4376 /* end confdefs.h. */
4380 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4381 $EGREP "memchr" >/dev/null 2>&1; then :
4384 ac_cv_header_stdc=no
4390 if test $ac_cv_header_stdc = yes; then
4391 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4393 /* end confdefs.h. */
4397 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4398 $EGREP "free" >/dev/null 2>&1; then :
4401 ac_cv_header_stdc=no
4407 if test $ac_cv_header_stdc = yes; then
4408 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4409 if test "$cross_compiling" = yes; then :
4412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4413 /* end confdefs.h. */
4416 #if ((' ' & 0x0FF) == 0x020)
4417 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4418 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4420 # define ISLOWER(c) \
4421 (('a' <= (c) && (c) <= 'i') \
4422 || ('j' <= (c) && (c) <= 'r') \
4423 || ('s' <= (c) && (c) <= 'z'))
4424 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4427 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4432 for (i = 0; i < 256; i++)
4433 if (XOR (islower (i), ISLOWER (i))
4434 || toupper (i) != TOUPPER (i))
4439 if ac_fn_c_try_run "$LINENO"; then :
4442 ac_cv_header_stdc=no
4444 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4445 conftest.$ac_objext conftest.beam conftest.$ac_ext
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4451 $as_echo "$ac_cv_header_stdc" >&6; }
4452 if test $ac_cv_header_stdc = yes; then
4454 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4458 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4459 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4460 inttypes.h stdint.h unistd.h
4462 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4463 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4465 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4466 cat >>confdefs.h <<_ACEOF
4467 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4478 for ac_header in $ac_header_list
4480 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4481 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4483 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4484 cat >>confdefs.h <<_ACEOF
4485 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4499 for ac_func in getpagesize
4501 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
4502 if test "x$ac_cv_func_getpagesize" = xyes; then :
4503 cat >>confdefs.h <<_ACEOF
4504 #define HAVE_GETPAGESIZE 1
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
4511 $as_echo_n "checking for working mmap... " >&6; }
4512 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
4513 $as_echo_n "(cached) " >&6
4515 if test "$cross_compiling" = yes; then :
4516 ac_cv_func_mmap_fixed_mapped=no
4518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4519 /* end confdefs.h. */
4520 $ac_includes_default
4521 /* malloc might have been renamed as rpl_malloc. */
4524 /* Thanks to Mike Haertel and Jim Avera for this test.
4525 Here is a matrix of mmap possibilities:
4526 mmap private not fixed
4527 mmap private fixed at somewhere currently unmapped
4528 mmap private fixed at somewhere already mapped
4529 mmap shared not fixed
4530 mmap shared fixed at somewhere currently unmapped
4531 mmap shared fixed at somewhere already mapped
4532 For private mappings, we should verify that changes cannot be read()
4533 back from the file, nor mmap's back from the file at a different
4534 address. (There have been systems where private was not correctly
4535 implemented like the infamous i386 svr4.0, and systems where the
4536 VM page cache was not coherent with the file system buffer cache
4537 like early versions of FreeBSD and possibly contemporary NetBSD.)
4538 For shared mappings, we should conversely verify that changes get
4539 propagated back to all the places they're supposed to be.
4541 Grep wants private fixed already mapped.
4542 The main things grep needs to know about mmap are:
4543 * does it exist and is it safe to write into the mmap'd area
4544 * how to use it (BSD variants) */
4547 #include <sys/mman.h>
4549 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
4553 /* This mess was copied from the GNU getpagesize.h. */
4554 #ifndef HAVE_GETPAGESIZE
4555 # ifdef _SC_PAGESIZE
4556 # define getpagesize() sysconf(_SC_PAGESIZE)
4557 # else /* no _SC_PAGESIZE */
4558 # ifdef HAVE_SYS_PARAM_H
4559 # include <sys/param.h>
4560 # ifdef EXEC_PAGESIZE
4561 # define getpagesize() EXEC_PAGESIZE
4562 # else /* no EXEC_PAGESIZE */
4564 # define getpagesize() NBPG * CLSIZE
4567 # endif /* no CLSIZE */
4568 # else /* no NBPG */
4570 # define getpagesize() NBPC
4571 # else /* no NBPC */
4573 # define getpagesize() PAGESIZE
4574 # endif /* PAGESIZE */
4575 # endif /* no NBPC */
4576 # endif /* no NBPG */
4577 # endif /* no EXEC_PAGESIZE */
4578 # else /* no HAVE_SYS_PARAM_H */
4579 # define getpagesize() 8192 /* punt totally */
4580 # endif /* no HAVE_SYS_PARAM_H */
4581 # endif /* no _SC_PAGESIZE */
4583 #endif /* no HAVE_GETPAGESIZE */
4588 char *data, *data2, *data3;
4593 pagesize = getpagesize ();
4595 /* First, make a file with some known garbage in it. */
4596 data = (char *) malloc (pagesize);
4599 for (i = 0; i < pagesize; ++i)
4600 *(data + i) = rand ();
4602 fd = creat ("conftest.mmap", 0600);
4605 if (write (fd, data, pagesize) != pagesize)
4609 /* Next, check that the tail of a page is zero-filled. File must have
4610 non-zero length, otherwise we risk SIGBUS for entire page. */
4611 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
4615 if (write (fd2, cdata2, 1) != 1)
4617 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
4618 if (data2 == MAP_FAILED)
4620 for (i = 0; i < pagesize; ++i)
4624 if (munmap (data2, pagesize))
4627 /* Next, try to mmap the file at a fixed address which already has
4628 something else allocated at it. If we can, also make sure that
4629 we see the same garbage. */
4630 fd = open ("conftest.mmap", O_RDWR);
4633 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4634 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4636 for (i = 0; i < pagesize; ++i)
4637 if (*(data + i) != *(data2 + i))
4640 /* Finally, make sure that changes to the mapped area do not
4641 percolate back to the file as seen by read(). (This is a bug on
4642 some variants of i386 svr4.0.) */
4643 for (i = 0; i < pagesize; ++i)
4644 *(data2 + i) = *(data2 + i) + 1;
4645 data3 = (char *) malloc (pagesize);
4648 if (read (fd, data3, pagesize) != pagesize)
4650 for (i = 0; i < pagesize; ++i)
4651 if (*(data + i) != *(data3 + i))
4657 if ac_fn_c_try_run "$LINENO"; then :
4658 ac_cv_func_mmap_fixed_mapped=yes
4660 ac_cv_func_mmap_fixed_mapped=no
4662 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4663 conftest.$ac_objext conftest.beam conftest.$ac_ext
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
4668 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
4669 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4671 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
4674 rm -f conftest.mmap conftest.txt
4677 # Checks for header files.
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4679 $as_echo_n "checking for ANSI C header files... " >&6; }
4680 if ${ac_cv_header_stdc+:} false; then :
4681 $as_echo_n "(cached) " >&6
4683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4684 /* end confdefs.h. */
4698 if ac_fn_c_try_compile "$LINENO"; then :
4699 ac_cv_header_stdc=yes
4701 ac_cv_header_stdc=no
4703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4705 if test $ac_cv_header_stdc = yes; then
4706 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4708 /* end confdefs.h. */
4712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4713 $EGREP "memchr" >/dev/null 2>&1; then :
4716 ac_cv_header_stdc=no
4722 if test $ac_cv_header_stdc = yes; then
4723 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4725 /* end confdefs.h. */
4729 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4730 $EGREP "free" >/dev/null 2>&1; then :
4733 ac_cv_header_stdc=no
4739 if test $ac_cv_header_stdc = yes; then
4740 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4741 if test "$cross_compiling" = yes; then :
4744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4745 /* end confdefs.h. */
4748 #if ((' ' & 0x0FF) == 0x020)
4749 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4750 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4752 # define ISLOWER(c) \
4753 (('a' <= (c) && (c) <= 'i') \
4754 || ('j' <= (c) && (c) <= 'r') \
4755 || ('s' <= (c) && (c) <= 'z'))
4756 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4759 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4764 for (i = 0; i < 256; i++)
4765 if (XOR (islower (i), ISLOWER (i))
4766 || toupper (i) != TOUPPER (i))
4771 if ac_fn_c_try_run "$LINENO"; then :
4774 ac_cv_header_stdc=no
4776 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4777 conftest.$ac_objext conftest.beam conftest.$ac_ext
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4783 $as_echo "$ac_cv_header_stdc" >&6; }
4784 if test $ac_cv_header_stdc = yes; then
4786 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4790 # AC_CHECK_HEADERS([ ])
4792 # Determine PIC flag.
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PIC compiler flag" >&5
4796 $as_echo_n "checking for PIC compiler flag... " >&6; }
4797 if test "$GCC" = yes; then
4799 *-*-cygwin* | *-*-mingw*)
4800 # Cygwin and Mingw[-w32/64] do not need -fPIC.
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"<none>\"" >&5
4802 $as_echo "\"<none>\"" >&6; }
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -fPIC" >&5
4806 $as_echo "-fPIC" >&6; }
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc -fPIC causes __PIC__ definition" >&5
4809 $as_echo_n "checking whether gcc -fPIC causes __PIC__ definition... " >&6; }
4810 # Workaround: at least GCC 3.4.6 (Solaris) does not define this macro.
4811 old_CFLAGS="$CFLAGS"
4812 CFLAGS="$PICFLAG $CFLAGS"
4813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4814 /* end confdefs.h. */
4828 if ac_fn_c_try_compile "$LINENO"; then :
4833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4834 CFLAGS="$old_CFLAGS"
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pic_macro" >&5
4836 $as_echo "$ac_cv_pic_macro" >&6; }
4837 if test "$ac_cv_pic_macro" = yes; then :
4840 PICFLAG="-D__PIC__=1 $PICFLAG"
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"+Z\"" >&5
4848 $as_echo "\"+Z\"" >&6; }
4850 CFLAGS="$CFLAGS +O2 -mt"
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -Kpic" >&5
4854 $as_echo "-Kpic" >&6; }
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -fPIC" >&5
4861 $as_echo "-fPIC" >&6; }
4863 # Any Linux compiler had better be gcc compatible.
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"<none>\"" >&5
4867 $as_echo "\"<none>\"" >&6; }
4871 CFLAGS="$CFLAGS -DNDEBUG"
4879 ## Libraries needed to support threads.
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
4881 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
4882 if ${ac_cv_lib_pthread_pthread_self+:} false; then :
4883 $as_echo_n "(cached) " >&6
4885 ac_check_lib_save_LIBS=$LIBS
4886 LIBS="-lpthread $LIBS"
4887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4888 /* end confdefs.h. */
4890 /* Override any GCC internal prototype to avoid an error.
4891 Use char because int might match the return type of a GCC
4892 builtin and then its argument prototype would still apply. */
4896 char pthread_self ();
4900 return pthread_self ();
4905 if ac_fn_c_try_link "$LINENO"; then :
4906 ac_cv_lib_pthread_pthread_self=yes
4908 ac_cv_lib_pthread_pthread_self=no
4910 rm -f core conftest.err conftest.$ac_objext \
4911 conftest$ac_exeext conftest.$ac_ext
4912 LIBS=$ac_check_lib_save_LIBS
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
4915 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
4916 if test "x$ac_cv_lib_pthread_pthread_self" = xyes; then :
4917 THREADDLLIBS="-lpthread"
4921 $as_echo "#define _REENTRANT 1" >>confdefs.h
4925 $as_echo "#define _PTHREADS 1" >>confdefs.h
4928 *-*-openbsd* | *-*-kfreebsd*-gnu | *-*-dgux*)
4929 THREADDLLIBS=-pthread
4931 *-*-cygwin* | *-*-darwin*)
4941 if test x$have_pthreads = xtrue; then
4942 HAVE_PTHREAD_H_TRUE=
4943 HAVE_PTHREAD_H_FALSE='#'
4945 HAVE_PTHREAD_H_TRUE='#'
4946 HAVE_PTHREAD_H_FALSE=
4949 if test x$need_asm = xtrue; then
4958 ac_config_files="$ac_config_files Makefile pkgconfig/atomic_ops.pc pkgconfig/atomic_ops-uninstalled.pc doc/Makefile src/Makefile src/atomic_ops/Makefile src/atomic_ops/sysdeps/Makefile tests/Makefile"
4960 ac_config_commands="$ac_config_commands default"
4962 cat >confcache <<\_ACEOF
4963 # This file is a shell script that caches the results of configure
4964 # tests run on this system so they can be shared between configure
4965 # scripts and configure runs, see configure's option --config-cache.
4966 # It is not useful on other systems. If it contains results you don't
4967 # want to keep, you may remove or edit it.
4969 # config.status only pays attention to the cache file if you give it
4970 # the --recheck option to rerun configure.
4972 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4973 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4978 # The following way of writing the cache mishandles newlines in values,
4979 # but we know of no workaround that is simple, portable, and efficient.
4980 # So, we kill variables containing newlines.
4981 # Ultrix sh set writes to stderr and can't be redirected directly,
4982 # and sets the high bit in the cache file unless we assign to the vars.
4984 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4985 eval ac_val=\$$ac_var
4989 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4990 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4993 _ | IFS | as_nl) ;; #(
4994 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4995 *) { eval $ac_var=; unset $ac_var;} ;;
5001 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5002 *${as_nl}ac_space=\ *)
5003 # `set' does not quote correctly, so add quotes: double-quote
5004 # substitution turns \\\\ into \\, and sed turns \\ into \.
5007 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5010 # `set' quotes correctly as required by POSIX, so do not add quotes.
5011 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5020 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5022 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5024 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5025 if test -w "$cache_file"; then
5026 if test "x$cache_file" != "x/dev/null"; then
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5028 $as_echo "$as_me: updating cache $cache_file" >&6;}
5029 if test ! -f "$cache_file" || test -h "$cache_file"; then
5030 cat confcache >"$cache_file"
5032 case $cache_file in #(
5034 mv -f confcache "$cache_file"$$ &&
5035 mv -f "$cache_file"$$ "$cache_file" ;; #(
5037 mv -f confcache "$cache_file" ;;
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5043 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5048 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5049 # Let make expand exec_prefix.
5050 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5052 DEFS=-DHAVE_CONFIG_H
5057 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5058 # 1. Remove the extension, and $U if already installed.
5059 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5060 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5061 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5062 # will be set to the directory where LIBOBJS objects are built.
5063 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5064 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5068 LTLIBOBJS=$ac_ltlibobjs
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
5072 $as_echo_n "checking that generated files are newer than configure... " >&6; }
5073 if test -n "$am_sleep_pid"; then
5074 # Hide warnings about reused PIDs.
5075 wait $am_sleep_pid 2>/dev/null
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
5078 $as_echo "done" >&6; }
5079 if test -n "$EXEEXT"; then
5081 am__EXEEXT_FALSE='#'
5087 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5088 as_fn_error $? "conditional \"AMDEP\" was never defined.
5089 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5091 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5092 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
5093 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5095 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
5096 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
5097 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5099 if test -z "${HAVE_PTHREAD_H_TRUE}" && test -z "${HAVE_PTHREAD_H_FALSE}"; then
5100 as_fn_error $? "conditional \"HAVE_PTHREAD_H\" was never defined.
5101 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5103 if test -z "${NEED_ASM_TRUE}" && test -z "${NEED_ASM_FALSE}"; then
5104 as_fn_error $? "conditional \"NEED_ASM\" was never defined.
5105 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5108 : "${CONFIG_STATUS=./config.status}"
5110 ac_clean_files_save=$ac_clean_files
5111 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5113 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5115 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5117 # Generated by $as_me.
5118 # Run this file to recreate the current configuration.
5119 # Compiler output produced by configure, useful for debugging
5120 # configure, is in config.log if it exists.
5126 SHELL=\${CONFIG_SHELL-$SHELL}
5129 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5130 ## -------------------- ##
5131 ## M4sh Initialization. ##
5132 ## -------------------- ##
5134 # Be more Bourne compatible
5135 DUALCASE=1; export DUALCASE # for MKS sh
5136 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5139 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5140 # is contrary to our usage. Disable this feature.
5141 alias -g '${1+"$@"}'='"$@"'
5142 setopt NO_GLOB_SUBST
5144 case `(set -o) 2>/dev/null` in #(
5156 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5157 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5158 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5159 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5160 # Prefer a ksh shell builtin over an external printf program on Solaris,
5161 # but without wasting forks for bash or zsh.
5162 if test -z "$BASH_VERSION$ZSH_VERSION" \
5163 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5164 as_echo='print -r --'
5165 as_echo_n='print -rn --'
5166 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5167 as_echo='printf %s\n'
5168 as_echo_n='printf %s'
5170 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5171 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5172 as_echo_n='/usr/ucb/echo -n'
5174 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5175 as_echo_n_body='eval
5179 expr "X$arg" : "X\\(.*\\)$as_nl";
5180 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5182 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5184 export as_echo_n_body
5185 as_echo_n='sh -c $as_echo_n_body as_echo'
5188 as_echo='sh -c $as_echo_body as_echo'
5191 # The user is always right.
5192 if test "${PATH_SEPARATOR+set}" != set; then
5194 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5195 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5202 # We need space, tab and new line, in precisely that order. Quoting is
5203 # there to prevent editors from complaining about space-tab.
5204 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5205 # splitting by setting IFS to empty value.)
5208 # Find who we are. Look in the path if we contain no directory separator.
5211 *[\\/]* ) as_myself=$0 ;;
5212 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5216 test -z "$as_dir" && as_dir=.
5217 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5223 # We did not find ourselves, most probably we were run as `sh COMMAND'
5224 # in which case we are not to be found in the path.
5225 if test "x$as_myself" = x; then
5228 if test ! -f "$as_myself"; then
5229 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5233 # Unset variables that we do not need and which cause bugs (e.g. in
5234 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5235 # suppresses any "Segmentation fault" message there. '((' could
5236 # trigger a bug in pdksh 5.2.14.
5237 for as_var in BASH_ENV ENV MAIL MAILPATH
5238 do eval test x\${$as_var+set} = xset \
5239 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5252 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5255 # as_fn_error STATUS ERROR [LINENO LOG_FD]
5256 # ----------------------------------------
5257 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5258 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5259 # script with STATUS, using 1 if that was 0.
5262 as_status=$1; test $as_status -eq 0 && as_status=1
5264 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5265 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5267 $as_echo "$as_me: error: $2" >&2
5268 as_fn_exit $as_status
5272 # as_fn_set_status STATUS
5273 # -----------------------
5274 # Set $? to STATUS, without forking.
5278 } # as_fn_set_status
5282 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5292 # Portably unset VAR.
5295 { eval $1=; unset $1;}
5297 as_unset=as_fn_unset
5298 # as_fn_append VAR VALUE
5299 # ----------------------
5300 # Append the text in VALUE to the end of the definition contained in VAR. Take
5301 # advantage of any shell optimizations that allow amortized linear growth over
5302 # repeated appends, instead of the typical quadratic growth present in naive
5304 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5305 eval 'as_fn_append ()
5316 # as_fn_arith ARG...
5317 # ------------------
5318 # Perform arithmetic evaluation on the ARGs, and store the result in the
5319 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5320 # must be portable across $(()) and expr.
5321 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5322 eval 'as_fn_arith ()
5329 as_val=`expr "$@" || test $? -eq 1`
5334 if expr a : '\(a\)' >/dev/null 2>&1 &&
5335 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5341 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5342 as_basename=basename
5347 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5353 as_me=`$as_basename -- "$0" ||
5354 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5355 X"$0" : 'X\(//\)$' \| \
5356 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5358 sed '/^.*\/\([^/][^/]*\)\/*$/{
5372 # Avoid depending upon Character Ranges.
5373 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5374 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5375 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5376 as_cr_digits='0123456789'
5377 as_cr_alnum=$as_cr_Letters$as_cr_digits
5379 ECHO_C= ECHO_N= ECHO_T=
5380 case `echo -n x` in #(((((
5382 case `echo 'xy\c'` in
5383 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5385 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5392 rm -f conf$$ conf$$.exe conf$$.file
5393 if test -d conf$$.dir; then
5394 rm -f conf$$.dir/conf$$.file
5397 mkdir conf$$.dir 2>/dev/null
5399 if (echo >conf$$.file) 2>/dev/null; then
5400 if ln -s conf$$.file conf$$ 2>/dev/null; then
5402 # ... but there are two gotchas:
5403 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5404 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5405 # In both cases, we have to default to `cp -pR'.
5406 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5408 elif ln conf$$.file conf$$ 2>/dev/null; then
5416 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5417 rmdir conf$$.dir 2>/dev/null
5422 # Create "$as_dir" as a directory, including parents if necessary.
5427 -*) as_dir=./$as_dir;;
5429 test -d "$as_dir" || eval $as_mkdir_p || {
5433 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5434 *) as_qdir=$as_dir;;
5436 as_dirs="'$as_qdir' $as_dirs"
5437 as_dir=`$as_dirname -- "$as_dir" ||
5438 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5439 X"$as_dir" : 'X\(//\)[^/]' \| \
5440 X"$as_dir" : 'X\(//\)$' \| \
5441 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5442 $as_echo X"$as_dir" |
5443 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5460 test -d "$as_dir" && break
5462 test -z "$as_dirs" || eval "mkdir $as_dirs"
5463 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5467 if mkdir -p . 2>/dev/null; then
5468 as_mkdir_p='mkdir -p "$as_dir"'
5470 test -d ./-p && rmdir ./-p
5475 # as_fn_executable_p FILE
5476 # -----------------------
5477 # Test if FILE is an executable regular file.
5478 as_fn_executable_p ()
5480 test -f "$1" && test -x "$1"
5481 } # as_fn_executable_p
5483 as_executable_p=as_fn_executable_p
5485 # Sed expression to map a string onto a valid CPP name.
5486 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5488 # Sed expression to map a string onto a valid variable name.
5489 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5493 ## ----------------------------------- ##
5494 ## Main body of $CONFIG_STATUS script. ##
5495 ## ----------------------------------- ##
5497 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5499 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5500 # Save the log message, to keep $0 and so on meaningful, and to
5501 # report actual input values of CONFIG_FILES etc. instead of their
5502 # values after options handling.
5504 This file was extended by libatomic_ops $as_me 7.2, which was
5505 generated by GNU Autoconf 2.69. Invocation command line was
5507 CONFIG_FILES = $CONFIG_FILES
5508 CONFIG_HEADERS = $CONFIG_HEADERS
5509 CONFIG_LINKS = $CONFIG_LINKS
5510 CONFIG_COMMANDS = $CONFIG_COMMANDS
5513 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5518 case $ac_config_files in *"
5519 "*) set x $ac_config_files; shift; ac_config_files=$*;;
5522 case $ac_config_headers in *"
5523 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5527 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5528 # Files that config.status was made for.
5529 config_files="$ac_config_files"
5530 config_headers="$ac_config_headers"
5531 config_commands="$ac_config_commands"
5535 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5537 \`$as_me' instantiates files and other configuration actions
5538 from templates according to the current configuration. Unless the files
5539 and actions are specified as TAGs, all are instantiated by default.
5541 Usage: $0 [OPTION]... [TAG]...
5543 -h, --help print this help, then exit
5544 -V, --version print version number and configuration settings, then exit
5545 --config print configuration, then exit
5546 -q, --quiet, --silent
5547 do not print progress messages
5548 -d, --debug don't remove temporary files
5549 --recheck update $as_me by reconfiguring in the same conditions
5550 --file=FILE[:TEMPLATE]
5551 instantiate the configuration file FILE
5552 --header=FILE[:TEMPLATE]
5553 instantiate the configuration header FILE
5555 Configuration files:
5558 Configuration headers:
5561 Configuration commands:
5564 Report bugs to the package provider."
5567 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5568 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5570 libatomic_ops config.status 7.2
5571 configured by $0, generated by GNU Autoconf 2.69,
5572 with options \\"\$ac_cs_config\\"
5574 Copyright (C) 2012 Free Software Foundation, Inc.
5575 This config.status script is free software; the Free Software Foundation
5576 gives unlimited permission to copy, distribute and modify it."
5583 test -n "\$AWK" || AWK=awk
5586 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5587 # The default lists apply if the user does not specify any file.
5593 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5594 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5598 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5610 # Handling of the options.
5611 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5613 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5614 $as_echo "$ac_cs_version"; exit ;;
5615 --config | --confi | --conf | --con | --co | --c )
5616 $as_echo "$ac_cs_config"; exit ;;
5617 --debug | --debu | --deb | --de | --d | -d )
5619 --file | --fil | --fi | --f )
5622 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5623 '') as_fn_error $? "missing file argument" ;;
5625 as_fn_append CONFIG_FILES " '$ac_optarg'"
5626 ac_need_defaults=false;;
5627 --header | --heade | --head | --hea )
5630 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5632 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5633 ac_need_defaults=false;;
5635 # Conflict between --help and --header
5636 as_fn_error $? "ambiguous option: \`$1'
5637 Try \`$0 --help' for more information.";;
5638 --help | --hel | -h )
5639 $as_echo "$ac_cs_usage"; exit ;;
5640 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5641 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5645 -*) as_fn_error $? "unrecognized option: \`$1'
5646 Try \`$0 --help' for more information." ;;
5648 *) as_fn_append ac_config_targets " $1"
5649 ac_need_defaults=false ;;
5655 ac_configure_extra_args=
5657 if $ac_cs_silent; then
5659 ac_configure_extra_args="$ac_configure_extra_args --silent"
5663 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5664 if \$ac_cs_recheck; then
5665 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5667 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5668 CONFIG_SHELL='$SHELL'
5674 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5678 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5679 ## Running $as_me. ##
5685 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5689 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
5691 PICFLAG="${PICFLAG}"
5698 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5700 # Handling of arguments.
5701 for ac_config_target in $ac_config_targets
5703 case $ac_config_target in
5704 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
5705 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5706 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5707 "pkgconfig/atomic_ops.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/atomic_ops.pc" ;;
5708 "pkgconfig/atomic_ops-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/atomic_ops-uninstalled.pc" ;;
5709 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
5710 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
5711 "src/atomic_ops/Makefile") CONFIG_FILES="$CONFIG_FILES src/atomic_ops/Makefile" ;;
5712 "src/atomic_ops/sysdeps/Makefile") CONFIG_FILES="$CONFIG_FILES src/atomic_ops/sysdeps/Makefile" ;;
5713 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
5714 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
5716 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5721 # If the user did not use the arguments to specify the items to instantiate,
5722 # then the envvar interface is used. Set only those that are not.
5723 # We use the long form for the default assignment because of an extremely
5724 # bizarre bug on SunOS 4.1.3.
5725 if $ac_need_defaults; then
5726 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5727 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5728 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5731 # Have a temporary directory for convenience. Make it in the build tree
5732 # simply because there is no reason against having it here, and in addition,
5733 # creating and moving files from /tmp can sometimes cause problems.
5734 # Hook for its removal unless debugging.
5735 # Note that there is a small window in which the directory will not be cleaned:
5736 # after its creation but before its name has been assigned to `$tmp'.
5740 trap 'exit_status=$?
5742 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5744 trap 'as_fn_exit 1' 1 2 13 15
5746 # Create a (secure) tmp directory for tmp files.
5749 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5753 tmp=./conf$$-$RANDOM
5754 (umask 077 && mkdir "$tmp")
5755 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5758 # Set up the scripts for CONFIG_FILES section.
5759 # No need to generate them if there are no CONFIG_FILES.
5760 # This happens for instance with `./config.status config.h'.
5761 if test -n "$CONFIG_FILES"; then
5764 ac_cr=`echo X | tr X '\015'`
5765 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5766 # But we know of no other shell where ac_cr would be empty at this
5767 # point, so we can use a bashism as a fallback.
5768 if test "x$ac_cr" = x; then
5769 eval ac_cr=\$\'\\r\'
5771 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5772 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5778 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5783 echo "cat >conf$$subs.awk <<_ACEOF" &&
5784 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5787 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5788 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5790 for ac_last_try in false false false false false :; do
5791 . ./conf$$subs.sh ||
5792 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5794 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5795 if test $ac_delim_n = $ac_delim_num; then
5797 elif $ac_last_try; then
5798 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5800 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5805 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5806 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5810 s/^/S["/; s/!.*/"]=/
5820 s/\(.\{148\}\)..*/\1/
5822 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5827 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5834 s/\(.\{148\}\)..*/\1/
5836 s/["\\]/\\&/g; s/^/"/; s/$/"/
5840 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5845 ' <conf$$subs.awk | sed '
5850 ' >>$CONFIG_STATUS || ac_write_fail=1
5851 rm -f conf$$subs.awk
5852 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5854 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5855 for (key in S) S_is_set[key] = 1
5861 nfields = split(line, field, "@")
5863 len = length(field[1])
5864 for (i = 2; i < nfields; i++) {
5866 keylen = length(key)
5867 if (S_is_set[key]) {
5869 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5870 len += length(value) + length(field[++i])
5881 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5882 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5883 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5886 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
5887 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5890 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5891 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5892 # trailing colons and then remove the whole line if VPATH becomes empty
5893 # (actually we leave an empty line to preserve line numbers).
5894 if test "x$srcdir" = x.; then
5895 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
5913 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5914 fi # test -n "$CONFIG_FILES"
5916 # Set up the scripts for CONFIG_HEADERS section.
5917 # No need to generate them if there are no CONFIG_HEADERS.
5918 # This happens for instance with `./config.status Makefile'.
5919 if test -n "$CONFIG_HEADERS"; then
5920 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
5924 # Transform confdefs.h into an awk script `defines.awk', embedded as
5925 # here-document in config.status, that substitutes the proper values into
5926 # config.h.in to produce config.h.
5928 # Create a delimiter string that does not exist in confdefs.h, to ease
5929 # handling of long lines.
5931 for ac_last_try in false false :; do
5932 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
5933 if test -z "$ac_tt"; then
5935 elif $ac_last_try; then
5936 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
5938 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5942 # For the awk script, D is an array of macro values keyed by name,
5943 # likewise P contains macro parameters if any. Preserve backslash
5944 # newline sequences.
5946 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5948 s/.\{148\}/&'"$ac_delim"'/g
5951 s/^[ ]*#[ ]*define[ ][ ]*/ /
5958 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5960 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
5964 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5965 D["\1"]=" \3\\\\\\n"\\/p
5967 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5972 s/.\{148\}/&'"$ac_delim"'/g
5977 s/["\\]/\\&/g; s/^/"/; s/$/"/p
5980 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5982 ' <confdefs.h | sed '
5983 s/'"$ac_delim"'/"\\\
5984 "/g' >>$CONFIG_STATUS || ac_write_fail=1
5986 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5987 for (key in D) D_is_set[key] = 1
5990 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5992 split(line, arg, " ")
5993 if (arg[1] == "#") {
5997 defundef = substr(arg[1], 2)
6000 split(mac1, mac2, "(") #)
6002 prefix = substr(line, 1, index(line, defundef) - 1)
6003 if (D_is_set[macro]) {
6004 # Preserve the white space surrounding the "#".
6005 print prefix "define", macro P[macro] D[macro]
6008 # Replace #undef with comments. This is necessary, for example,
6009 # in the case of _POSIX_SOURCE, which is predefined and required
6010 # on some systems where configure will not decide to define it.
6011 if (defundef == "undef") {
6012 print "/*", prefix defundef, macro, "*/"
6020 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6021 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6022 fi # test -n "$CONFIG_HEADERS"
6025 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
6030 :[FHLC]) ac_mode=$ac_tag; continue;;
6032 case $ac_mode$ac_tag in
6034 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6035 :[FH]-) ac_tag=-:-;;
6036 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6053 -) ac_f="$ac_tmp/stdin";;
6054 *) # Look for the file first in the build tree, then in the source tree
6055 # (if the path is not absolute). The absolute path cannot be DOS-style,
6056 # because $ac_f cannot contain `:'.
6060 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6062 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6064 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6065 as_fn_append ac_file_inputs " '$ac_f'"
6068 # Let's still pretend it is `configure' which instantiates (i.e., don't
6069 # use $as_me), people would be surprised to read:
6070 # /* config.h. Generated by config.status. */
6071 configure_input='Generated from '`
6072 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6074 if test x"$ac_file" != x-; then
6075 configure_input="$ac_file. $configure_input"
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6077 $as_echo "$as_me: creating $ac_file" >&6;}
6079 # Neutralize special characters interpreted by sed in replacement strings.
6080 case $configure_input in #(
6081 *\&* | *\|* | *\\* )
6082 ac_sed_conf_input=`$as_echo "$configure_input" |
6083 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6084 *) ac_sed_conf_input=$configure_input;;
6088 *:-:* | *:-) cat >"$ac_tmp/stdin" \
6089 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6094 ac_dir=`$as_dirname -- "$ac_file" ||
6095 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6096 X"$ac_file" : 'X\(//\)[^/]' \| \
6097 X"$ac_file" : 'X\(//\)$' \| \
6098 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6099 $as_echo X"$ac_file" |
6100 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6117 as_dir="$ac_dir"; as_fn_mkdir_p
6121 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6123 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6124 # A ".." for each directory in $ac_dir_suffix.
6125 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6126 case $ac_top_builddir_sub in
6127 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6128 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6131 ac_abs_top_builddir=$ac_pwd
6132 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6133 # for backward compatibility:
6134 ac_top_builddir=$ac_top_build_prefix
6137 .) # We are building in place.
6139 ac_top_srcdir=$ac_top_builddir_sub
6140 ac_abs_top_srcdir=$ac_pwd ;;
6141 [\\/]* | ?:[\\/]* ) # Absolute name.
6142 ac_srcdir=$srcdir$ac_dir_suffix;
6143 ac_top_srcdir=$srcdir
6144 ac_abs_top_srcdir=$srcdir ;;
6146 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6147 ac_top_srcdir=$ac_top_build_prefix$srcdir
6148 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6150 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6160 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6161 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6165 [\\/$]* | ?:[\\/]* ) ;;
6166 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
6170 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6171 # If the template does not know about datarootdir, expand it.
6172 # FIXME: This hack should be removed a few years after 2.60.
6173 ac_datarootdir_hack=; ac_datarootdir_seen=
6184 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6185 *datarootdir*) ac_datarootdir_seen=yes;;
6186 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6188 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6190 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6191 ac_datarootdir_hack='
6192 s&@datadir@&$datadir&g
6193 s&@docdir@&$docdir&g
6194 s&@infodir@&$infodir&g
6195 s&@localedir@&$localedir&g
6196 s&@mandir@&$mandir&g
6197 s&\\\${datarootdir}&$datarootdir&g' ;;
6201 # Neutralize VPATH when `$srcdir' = `.'.
6202 # Shell code in configure.ac might set extrasub.
6203 # FIXME: do we really want to maintain this feature?
6204 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6205 ac_sed_extra="$ac_vpsub
6208 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6210 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6211 s|@configure_input@|$ac_sed_conf_input|;t t
6212 s&@top_builddir@&$ac_top_builddir_sub&;t t
6213 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6214 s&@srcdir@&$ac_srcdir&;t t
6215 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6216 s&@top_srcdir@&$ac_top_srcdir&;t t
6217 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6218 s&@builddir@&$ac_builddir&;t t
6219 s&@abs_builddir@&$ac_abs_builddir&;t t
6220 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6221 s&@INSTALL@&$ac_INSTALL&;t t
6222 s&@MKDIR_P@&$ac_MKDIR_P&;t t
6223 $ac_datarootdir_hack
6225 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6226 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6228 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6229 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6230 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6231 "$ac_tmp/out"`; test -z "$ac_out"; } &&
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6233 which seems to be undefined. Please make sure it is defined" >&5
6234 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6235 which seems to be undefined. Please make sure it is defined" >&2;}
6237 rm -f "$ac_tmp/stdin"
6239 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6240 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6242 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6248 if test x"$ac_file" != x-; then
6250 $as_echo "/* $configure_input */" \
6251 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6252 } >"$ac_tmp/config.h" \
6253 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6254 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6256 $as_echo "$as_me: $ac_file is unchanged" >&6;}
6259 mv "$ac_tmp/config.h" "$ac_file" \
6260 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6263 $as_echo "/* $configure_input */" \
6264 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6265 || as_fn_error $? "could not create -" "$LINENO" 5
6267 # Compute "$ac_file"'s index in $config_headers.
6270 for _am_header in $config_headers :; do
6272 $_am_arg | $_am_arg:* )
6275 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
6278 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
6279 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6280 X"$_am_arg" : 'X\(//\)[^/]' \| \
6281 X"$_am_arg" : 'X\(//\)$' \| \
6282 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
6283 $as_echo X"$_am_arg" |
6284 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6300 s/.*/./; q'`/stamp-h$_am_stamp_count
6303 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
6304 $as_echo "$as_me: executing $ac_file commands" >&6;}
6309 case $ac_file$ac_mode in
6310 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
6311 # Older Autoconf quotes --file arguments for eval, but not when files
6312 # are listed without --file. Let's play safe and only enable the eval
6313 # if we detect the quoting.
6314 case $CONFIG_FILES in
6315 *\'*) eval set x "$CONFIG_FILES" ;;
6316 *) set x $CONFIG_FILES ;;
6321 # Strip MF so we end up with the name of the file.
6322 mf=`echo "$mf" | sed -e 's/:.*$//'`
6323 # Check whether this is an Automake generated Makefile or not.
6324 # We used to match only the files named 'Makefile.in', but
6325 # some people rename them; so instead we look at the file content.
6326 # Grep'ing the first line is not enough: some people post-process
6327 # each Makefile.in and add a new line on top of each file to say so.
6328 # Grep'ing the whole file is not good either: AIX grep has a line
6329 # limit of 2048, but all sed's we know have understand at least 4000.
6330 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
6331 dirpart=`$as_dirname -- "$mf" ||
6332 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6333 X"$mf" : 'X\(//\)[^/]' \| \
6334 X"$mf" : 'X\(//\)$' \| \
6335 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
6337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6357 # Extract the definition of DEPDIR, am__include, and am__quote
6358 # from the Makefile without running 'make'.
6359 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6360 test -z "$DEPDIR" && continue
6361 am__include=`sed -n 's/^am__include = //p' < "$mf"`
6362 test -z "$am__include" && continue
6363 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6364 # Find all dependency output files, they are included files with
6365 # $(DEPDIR) in their names. We invoke sed twice because it is the
6366 # simplest approach to changing $(DEPDIR) to its actual value in the
6368 for file in `sed -n "
6369 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6370 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
6371 # Make sure the directory exists.
6372 test -f "$dirpart/$file" && continue
6373 fdir=`$as_dirname -- "$file" ||
6374 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6375 X"$file" : 'X\(//\)[^/]' \| \
6376 X"$file" : 'X\(//\)$' \| \
6377 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
6379 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6396 as_dir=$dirpart/$fdir; as_fn_mkdir_p
6397 # echo "creating $dirpart/$file"
6398 echo '# dummy' > "$dirpart/$file"
6411 ac_clean_files=$ac_clean_files_save
6413 test $ac_write_fail = 0 ||
6414 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6417 # configure is writing to config.log, and then calls config.status.
6418 # config.status does its own redirection, appending to config.log.
6419 # Unfortunately, on DOS this fails, as config.log is still kept open
6420 # by configure, so config.status won't be able to write to it; its
6421 # output is simply discarded. So we exec the FD to /dev/null,
6422 # effectively closing config.log, so it can be properly (re)opened and
6423 # appended to by config.status. When coming back to configure, we
6424 # need to make the FD available again.
6425 if test "$no_create" != yes; then
6427 ac_config_status_args=
6428 test "$silent" = yes &&
6429 ac_config_status_args="$ac_config_status_args --quiet"
6431 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6433 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6434 # would make configure fail if this is the last instruction.
6435 $ac_cs_success || as_fn_exit 1
6437 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6439 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}