2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for libatomic_ops 7.2.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 case \`(set -o) 2>/dev/null\` in #(
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168 exitcode=1; echo positional parameters were not saved.
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1"
176 if (eval "$as_required") 2>/dev/null; then :
181 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 test -z "$as_dir" && as_dir=.
193 for as_base in sh bash ksh sh5; do
194 # Try only shells that exist, to save several forks.
195 as_shell=$as_dir/$as_base
196 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198 CONFIG_SHELL=$as_shell as_have_required=yes
199 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
207 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209 CONFIG_SHELL=$SHELL as_have_required=yes
214 if test "x$CONFIG_SHELL" != x; then :
215 # We cannot yet assume a decent shell, so we have to provide a
216 # neutralization value for shells without unset; and this also
217 # works around shells that cannot unset nonexistent variables.
218 # Preserve -v and -x to the replacement shell.
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224 *v*x* | *x*v* ) as_opts=-vx ;;
229 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x${ZSH_VERSION+set} = xset ; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
239 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240 $0: including any error possibly output before this
241 $0: message. Then install a modern shell, or manually run
242 $0: the script under such a shell if you do have one."
248 SHELL=${CONFIG_SHELL-/bin/sh}
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE= GREP_OPTIONS=
252 unset CLICOLOR_FORCE GREP_OPTIONS
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
259 # Portably unset VAR.
262 { eval $1=; unset $1;}
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
286 # Create "$as_dir" as a directory, including parents if necessary.
291 -*) as_dir=./$as_dir;;
293 test -d "$as_dir" || eval $as_mkdir_p || {
297 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
300 as_dirs="'$as_qdir' $as_dirs"
301 as_dir=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303 X"$as_dir" : 'X\(//\)[^/]' \| \
304 X"$as_dir" : 'X\(//\)$' \| \
305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
324 test -d "$as_dir" && break
326 test -z "$as_dirs" || eval "mkdir $as_dirs"
327 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
331 # as_fn_append VAR VALUE
332 # ----------------------
333 # Append the text in VALUE to the end of the definition contained in VAR. Take
334 # advantage of any shell optimizations that allow amortized linear growth over
335 # repeated appends, instead of the typical quadratic growth present in naive
337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338 eval 'as_fn_append ()
351 # Perform arithmetic evaluation on the ARGs, and store the result in the
352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
353 # must be portable across $(()) and expr.
354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
362 as_val=`expr "$@" || test $? -eq 1`
367 # as_fn_error STATUS ERROR [LINENO LOG_FD]
368 # ----------------------------------------
369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371 # script with STATUS, using 1 if that was 0.
374 as_status=$1; test $as_status -eq 0 && as_status=1
376 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
379 $as_echo "$as_me: error: $2" >&2
380 as_fn_exit $as_status
383 if expr a : '\(a\)' >/dev/null 2>&1 &&
384 test "X`expr 00001 : '.*\(...\)'`" = X001; then
390 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
396 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
402 as_me=`$as_basename -- "$0" ||
403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404 X"$0" : 'X\(//\)$' \| \
405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
407 sed '/^.*\/\([^/][^/]*\)\/*$/{
421 # Avoid depending upon Character Ranges.
422 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425 as_cr_digits='0123456789'
426 as_cr_alnum=$as_cr_Letters$as_cr_digits
429 as_lineno_1=$LINENO as_lineno_1a=$LINENO
430 as_lineno_2=$LINENO as_lineno_2a=$LINENO
431 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449 chmod +x "$as_me.lineno" ||
450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
452 # Don't try to exec as it changes $[0], causing all sort of problems
453 # (the dirname of $[0] is not the place where we might find the
454 # original and so on. Autoconf is especially sensitive to this).
456 # Exit status is that of the last command.
460 ECHO_C= ECHO_N= ECHO_T=
461 case `echo -n x` in #(((((
463 case `echo 'xy\c'` in
464 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
466 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
473 rm -f conf$$ conf$$.exe conf$$.file
474 if test -d conf$$.dir; then
475 rm -f conf$$.dir/conf$$.file
478 mkdir conf$$.dir 2>/dev/null
480 if (echo >conf$$.file) 2>/dev/null; then
481 if ln -s conf$$.file conf$$ 2>/dev/null; then
483 # ... but there are two gotchas:
484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486 # In both cases, we have to default to `cp -p'.
487 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
489 elif ln conf$$.file conf$$ 2>/dev/null; then
497 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498 rmdir conf$$.dir 2>/dev/null
500 if mkdir -p . 2>/dev/null; then
501 as_mkdir_p='mkdir -p "$as_dir"'
503 test -d ./-p && rmdir ./-p
507 if test -x / >/dev/null 2>&1; then
510 if ls -dL / >/dev/null 2>&1; then
517 if test -d "$1"; then
523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524 ???[sx]*):;;*)false;;esac;fi
528 as_executable_p=$as_test_x
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537 test -n "$DJDIR" || exec 7<&0 </dev/null
541 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
542 # so uname gets run too.
543 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
548 ac_default_prefix=/usr/local
550 ac_config_libobj_dir=.
557 # Identity of this package.
558 PACKAGE_NAME='libatomic_ops'
559 PACKAGE_TARNAME='libatomic_ops'
560 PACKAGE_VERSION='7.2'
561 PACKAGE_STRING='libatomic_ops 7.2'
565 ac_unique_file="src/atomic_ops.c"
567 # Factoring default headers for most tests.
568 ac_includes_default="\
570 #ifdef HAVE_SYS_TYPES_H
571 # include <sys/types.h>
573 #ifdef HAVE_SYS_STAT_H
574 # include <sys/stat.h>
580 # ifdef HAVE_STDLIB_H
585 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
590 #ifdef HAVE_STRINGS_H
591 # include <strings.h>
593 #ifdef HAVE_INTTYPES_H
594 # include <inttypes.h>
603 ac_subst_vars='am__EXEEXT_FALSE
616 am__fastdepCCAS_FALSE
646 INSTALL_STRIP_PROGRAM
700 program_transform_name
713 enable_option_checking
714 enable_dependency_tracking
716 ac_precious_vars='build_alias
729 # Initialize some variables set by options.
731 ac_init_version=false
732 ac_unrecognized_opts=
734 # The variables have the same names as the options, with
735 # dashes changed to underlines.
743 program_transform_name=s,x,x,
751 # Installation directory options.
752 # These are left unexpanded so users can "make install exec_prefix=/foo"
753 # and all the variables that are supposed to be based on exec_prefix
754 # by default will actually change.
755 # Use braces instead of parens because sh, perl, etc. also accept them.
756 # (The list follows the same order as the GNU Coding Standards.)
757 bindir='${exec_prefix}/bin'
758 sbindir='${exec_prefix}/sbin'
759 libexecdir='${exec_prefix}/libexec'
760 datarootdir='${prefix}/share'
761 datadir='${datarootdir}'
762 sysconfdir='${prefix}/etc'
763 sharedstatedir='${prefix}/com'
764 localstatedir='${prefix}/var'
765 includedir='${prefix}/include'
766 oldincludedir='/usr/include'
767 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
768 infodir='${datarootdir}/info'
773 libdir='${exec_prefix}/lib'
774 localedir='${datarootdir}/locale'
775 mandir='${datarootdir}/man'
781 # If the previous option needs an argument, assign it.
782 if test -n "$ac_prev"; then
783 eval $ac_prev=\$ac_option
789 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
794 # Accept the important Cygnus configure options, so we can diagnose typos.
796 case $ac_dashdash$ac_option in
800 -bindir | --bindir | --bindi | --bind | --bin | --bi)
802 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
805 -build | --build | --buil | --bui | --bu)
806 ac_prev=build_alias ;;
807 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
808 build_alias=$ac_optarg ;;
810 -cache-file | --cache-file | --cache-fil | --cache-fi \
811 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
812 ac_prev=cache_file ;;
813 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
814 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
815 cache_file=$ac_optarg ;;
818 cache_file=config.cache ;;
820 -datadir | --datadir | --datadi | --datad)
822 -datadir=* | --datadir=* | --datadi=* | --datad=*)
823 datadir=$ac_optarg ;;
825 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
826 | --dataroo | --dataro | --datar)
827 ac_prev=datarootdir ;;
828 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
829 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
830 datarootdir=$ac_optarg ;;
832 -disable-* | --disable-*)
833 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
834 # Reject names that are not valid shell variable names.
835 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
836 as_fn_error $? "invalid feature name: $ac_useropt"
837 ac_useropt_orig=$ac_useropt
838 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
839 case $ac_user_opts in
843 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
844 ac_unrecognized_sep=', ';;
846 eval enable_$ac_useropt=no ;;
848 -docdir | --docdir | --docdi | --doc | --do)
850 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
853 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
855 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
858 -enable-* | --enable-*)
859 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
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--enable-$ac_useropt_orig"
870 ac_unrecognized_sep=', ';;
872 eval enable_$ac_useropt=\$ac_optarg ;;
874 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
875 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
876 | --exec | --exe | --ex)
877 ac_prev=exec_prefix ;;
878 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
879 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
880 | --exec=* | --exe=* | --ex=*)
881 exec_prefix=$ac_optarg ;;
883 -gas | --gas | --ga | --g)
884 # Obsolete; use --with-gas.
887 -help | --help | --hel | --he | -h)
889 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
890 ac_init_help=recursive ;;
891 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
892 ac_init_help=short ;;
894 -host | --host | --hos | --ho)
895 ac_prev=host_alias ;;
896 -host=* | --host=* | --hos=* | --ho=*)
897 host_alias=$ac_optarg ;;
899 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
901 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
903 htmldir=$ac_optarg ;;
905 -includedir | --includedir | --includedi | --included | --include \
906 | --includ | --inclu | --incl | --inc)
907 ac_prev=includedir ;;
908 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
909 | --includ=* | --inclu=* | --incl=* | --inc=*)
910 includedir=$ac_optarg ;;
912 -infodir | --infodir | --infodi | --infod | --info | --inf)
914 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
915 infodir=$ac_optarg ;;
917 -libdir | --libdir | --libdi | --libd)
919 -libdir=* | --libdir=* | --libdi=* | --libd=*)
922 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
923 | --libexe | --libex | --libe)
924 ac_prev=libexecdir ;;
925 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
926 | --libexe=* | --libex=* | --libe=*)
927 libexecdir=$ac_optarg ;;
929 -localedir | --localedir | --localedi | --localed | --locale)
931 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
932 localedir=$ac_optarg ;;
934 -localstatedir | --localstatedir | --localstatedi | --localstated \
935 | --localstate | --localstat | --localsta | --localst | --locals)
936 ac_prev=localstatedir ;;
937 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
938 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
939 localstatedir=$ac_optarg ;;
941 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
943 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
947 # Obsolete; use --without-fp.
950 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
951 | --no-cr | --no-c | -n)
954 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
955 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
958 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
959 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
960 | --oldin | --oldi | --old | --ol | --o)
961 ac_prev=oldincludedir ;;
962 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
963 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
964 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
965 oldincludedir=$ac_optarg ;;
967 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
969 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
972 -program-prefix | --program-prefix | --program-prefi | --program-pref \
973 | --program-pre | --program-pr | --program-p)
974 ac_prev=program_prefix ;;
975 -program-prefix=* | --program-prefix=* | --program-prefi=* \
976 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
977 program_prefix=$ac_optarg ;;
979 -program-suffix | --program-suffix | --program-suffi | --program-suff \
980 | --program-suf | --program-su | --program-s)
981 ac_prev=program_suffix ;;
982 -program-suffix=* | --program-suffix=* | --program-suffi=* \
983 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
984 program_suffix=$ac_optarg ;;
986 -program-transform-name | --program-transform-name \
987 | --program-transform-nam | --program-transform-na \
988 | --program-transform-n | --program-transform- \
989 | --program-transform | --program-transfor \
990 | --program-transfo | --program-transf \
991 | --program-trans | --program-tran \
992 | --progr-tra | --program-tr | --program-t)
993 ac_prev=program_transform_name ;;
994 -program-transform-name=* | --program-transform-name=* \
995 | --program-transform-nam=* | --program-transform-na=* \
996 | --program-transform-n=* | --program-transform-=* \
997 | --program-transform=* | --program-transfor=* \
998 | --program-transfo=* | --program-transf=* \
999 | --program-trans=* | --program-tran=* \
1000 | --progr-tra=* | --program-tr=* | --program-t=*)
1001 program_transform_name=$ac_optarg ;;
1003 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1005 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1006 pdfdir=$ac_optarg ;;
1008 -psdir | --psdir | --psdi | --psd | --ps)
1010 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1013 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1014 | -silent | --silent | --silen | --sile | --sil)
1017 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1019 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1021 sbindir=$ac_optarg ;;
1023 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1024 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1025 | --sharedst | --shareds | --shared | --share | --shar \
1027 ac_prev=sharedstatedir ;;
1028 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1029 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1030 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1032 sharedstatedir=$ac_optarg ;;
1034 -site | --site | --sit)
1036 -site=* | --site=* | --sit=*)
1039 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1041 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1042 srcdir=$ac_optarg ;;
1044 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1045 | --syscon | --sysco | --sysc | --sys | --sy)
1046 ac_prev=sysconfdir ;;
1047 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1048 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1049 sysconfdir=$ac_optarg ;;
1051 -target | --target | --targe | --targ | --tar | --ta | --t)
1052 ac_prev=target_alias ;;
1053 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1054 target_alias=$ac_optarg ;;
1056 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1059 -version | --version | --versio | --versi | --vers | -V)
1060 ac_init_version=: ;;
1063 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1064 # Reject names that are not valid shell variable names.
1065 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1066 as_fn_error $? "invalid package name: $ac_useropt"
1067 ac_useropt_orig=$ac_useropt
1068 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1069 case $ac_user_opts in
1073 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1074 ac_unrecognized_sep=', ';;
1076 eval with_$ac_useropt=\$ac_optarg ;;
1078 -without-* | --without-*)
1079 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1080 # Reject names that are not valid shell variable names.
1081 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1082 as_fn_error $? "invalid package name: $ac_useropt"
1083 ac_useropt_orig=$ac_useropt
1084 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1085 case $ac_user_opts in
1089 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1090 ac_unrecognized_sep=', ';;
1092 eval with_$ac_useropt=no ;;
1095 # Obsolete; use --with-x.
1098 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1099 | --x-incl | --x-inc | --x-in | --x-i)
1100 ac_prev=x_includes ;;
1101 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1102 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1103 x_includes=$ac_optarg ;;
1105 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1106 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1107 ac_prev=x_libraries ;;
1108 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1109 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1110 x_libraries=$ac_optarg ;;
1112 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1113 Try \`$0 --help' for more information"
1117 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1118 # Reject names that are not valid shell variable names.
1119 case $ac_envvar in #(
1120 '' | [0-9]* | *[!_$as_cr_alnum]* )
1121 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1123 eval $ac_envvar=\$ac_optarg
1124 export $ac_envvar ;;
1127 # FIXME: should be removed in autoconf 3.0.
1128 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1129 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1130 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1131 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1137 if test -n "$ac_prev"; then
1138 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1139 as_fn_error $? "missing argument to $ac_option"
1142 if test -n "$ac_unrecognized_opts"; then
1143 case $enable_option_checking in
1145 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1146 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1150 # Check all directory arguments for consistency.
1151 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1152 datadir sysconfdir sharedstatedir localstatedir includedir \
1153 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1154 libdir localedir mandir
1156 eval ac_val=\$$ac_var
1157 # Remove trailing slashes.
1160 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1161 eval $ac_var=\$ac_val;;
1163 # Be sure to have absolute directory names.
1165 [\\/$]* | ?:[\\/]* ) continue;;
1166 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1168 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1171 # There might be people who depend on the old broken behavior: `$host'
1172 # used to hold the argument of --host etc.
1173 # FIXME: To remove some day.
1176 target=$target_alias
1178 # FIXME: To remove some day.
1179 if test "x$host_alias" != x; then
1180 if test "x$build_alias" = x; then
1181 cross_compiling=maybe
1182 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1183 If a cross compiler is detected then cross compile mode will be used" >&2
1184 elif test "x$build_alias" != "x$host_alias"; then
1190 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1192 test "$silent" = yes && exec 6>/dev/null
1195 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1196 ac_ls_di=`ls -di .` &&
1197 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1198 as_fn_error $? "working directory cannot be determined"
1199 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1200 as_fn_error $? "pwd does not report name of working directory"
1203 # Find the source files, if location was not specified.
1204 if test -z "$srcdir"; then
1205 ac_srcdir_defaulted=yes
1206 # Try the directory containing this script, then the parent directory.
1207 ac_confdir=`$as_dirname -- "$as_myself" ||
1208 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1209 X"$as_myself" : 'X\(//\)[^/]' \| \
1210 X"$as_myself" : 'X\(//\)$' \| \
1211 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1212 $as_echo X"$as_myself" |
1213 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1231 if test ! -r "$srcdir/$ac_unique_file"; then
1235 ac_srcdir_defaulted=no
1237 if test ! -r "$srcdir/$ac_unique_file"; then
1238 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1239 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1241 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1243 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1245 # When building in place, set srcdir=.
1246 if test "$ac_abs_confdir" = "$ac_pwd"; then
1249 # Remove unnecessary trailing slashes from srcdir.
1250 # Double slashes in file names in object file debugging info
1251 # mess up M-x gdb in Emacs.
1253 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1255 for ac_var in $ac_precious_vars; do
1256 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1257 eval ac_env_${ac_var}_value=\$${ac_var}
1258 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1259 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1263 # Report the --help message.
1265 if test "$ac_init_help" = "long"; then
1266 # Omit some internal or obsolete options to make the list less imposing.
1267 # This message is too long to be a string in the A/UX 3.1 sh.
1269 \`configure' configures libatomic_ops 7.2 to adapt to many kinds of systems.
1271 Usage: $0 [OPTION]... [VAR=VALUE]...
1273 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1274 VAR=VALUE. See below for descriptions of some of the useful variables.
1276 Defaults for the options are specified in brackets.
1279 -h, --help display this help and exit
1280 --help=short display options specific to this package
1281 --help=recursive display the short help of all the included packages
1282 -V, --version display version information and exit
1283 -q, --quiet, --silent do not print \`checking ...' messages
1284 --cache-file=FILE cache test results in FILE [disabled]
1285 -C, --config-cache alias for \`--cache-file=config.cache'
1286 -n, --no-create do not create output files
1287 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1289 Installation directories:
1290 --prefix=PREFIX install architecture-independent files in PREFIX
1291 [$ac_default_prefix]
1292 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1295 By default, \`make install' will install all the files in
1296 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1297 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1298 for instance \`--prefix=\$HOME'.
1300 For better control, use the options below.
1302 Fine tuning of the installation directories:
1303 --bindir=DIR user executables [EPREFIX/bin]
1304 --sbindir=DIR system admin executables [EPREFIX/sbin]
1305 --libexecdir=DIR program executables [EPREFIX/libexec]
1306 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1307 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1308 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1309 --libdir=DIR object code libraries [EPREFIX/lib]
1310 --includedir=DIR C header files [PREFIX/include]
1311 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1312 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1313 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1314 --infodir=DIR info documentation [DATAROOTDIR/info]
1315 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1316 --mandir=DIR man documentation [DATAROOTDIR/man]
1317 --docdir=DIR documentation root [DATAROOTDIR/doc/libatomic_ops]
1318 --htmldir=DIR html documentation [DOCDIR]
1319 --dvidir=DIR dvi documentation [DOCDIR]
1320 --pdfdir=DIR pdf documentation [DOCDIR]
1321 --psdir=DIR ps documentation [DOCDIR]
1327 --program-prefix=PREFIX prepend PREFIX to installed program names
1328 --program-suffix=SUFFIX append SUFFIX to installed program names
1329 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1332 --build=BUILD configure for building on BUILD [guessed]
1333 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1334 --target=TARGET configure for building compilers for TARGET [HOST]
1338 if test -n "$ac_init_help"; then
1339 case $ac_init_help in
1340 short | recursive ) echo "Configuration of libatomic_ops 7.2:";;
1345 --disable-option-checking ignore unrecognized --enable/--with options
1346 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1347 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1348 --disable-dependency-tracking speeds up one-time build
1349 --enable-dependency-tracking do not reject slow dependency extractors
1351 Some influential environment variables:
1352 CC C compiler command
1353 CFLAGS C compiler flags
1354 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1355 nonstandard directory <lib dir>
1356 LIBS libraries to pass to the linker, e.g. -l<library>
1357 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1358 you have headers in a nonstandard directory <include dir>
1359 CCAS assembler compiler command (defaults to CC)
1360 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1363 Use these variables to override the choices made by `configure' or to help
1364 it to find libraries and programs with nonstandard names/locations.
1366 Report bugs to the package provider.
1371 if test "$ac_init_help" = "recursive"; then
1372 # If there are subdirs, report their specific --help.
1373 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1374 test -d "$ac_dir" ||
1375 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1380 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1382 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1383 # A ".." for each directory in $ac_dir_suffix.
1384 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1385 case $ac_top_builddir_sub in
1386 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1387 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1390 ac_abs_top_builddir=$ac_pwd
1391 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1392 # for backward compatibility:
1393 ac_top_builddir=$ac_top_build_prefix
1396 .) # We are building in place.
1398 ac_top_srcdir=$ac_top_builddir_sub
1399 ac_abs_top_srcdir=$ac_pwd ;;
1400 [\\/]* | ?:[\\/]* ) # Absolute name.
1401 ac_srcdir=$srcdir$ac_dir_suffix;
1402 ac_top_srcdir=$srcdir
1403 ac_abs_top_srcdir=$srcdir ;;
1405 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1406 ac_top_srcdir=$ac_top_build_prefix$srcdir
1407 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1409 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1411 cd "$ac_dir" || { ac_status=$?; continue; }
1412 # Check for guested configure.
1413 if test -f "$ac_srcdir/configure.gnu"; then
1415 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1416 elif test -f "$ac_srcdir/configure"; then
1418 $SHELL "$ac_srcdir/configure" --help=recursive
1420 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1422 cd "$ac_pwd" || { ac_status=$?; break; }
1426 test -n "$ac_init_help" && exit $ac_status
1427 if $ac_init_version; then
1429 libatomic_ops configure 7.2
1430 generated by GNU Autoconf 2.68
1432 Copyright (C) 2010 Free Software Foundation, Inc.
1433 This configure script is free software; the Free Software Foundation
1434 gives unlimited permission to copy, distribute and modify it.
1439 ## ------------------------ ##
1440 ## Autoconf initialization. ##
1441 ## ------------------------ ##
1443 # ac_fn_c_try_compile LINENO
1444 # --------------------------
1445 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1446 ac_fn_c_try_compile ()
1448 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1449 rm -f conftest.$ac_objext
1450 if { { ac_try="$ac_compile"
1452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1453 *) ac_try_echo=$ac_try;;
1455 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1456 $as_echo "$ac_try_echo"; } >&5
1457 (eval "$ac_compile") 2>conftest.err
1459 if test -s conftest.err; then
1460 grep -v '^ *+' conftest.err >conftest.er1
1461 cat conftest.er1 >&5
1462 mv -f conftest.er1 conftest.err
1464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1465 test $ac_status = 0; } && {
1466 test -z "$ac_c_werror_flag" ||
1467 test ! -s conftest.err
1468 } && test -s conftest.$ac_objext; then :
1471 $as_echo "$as_me: failed program was:" >&5
1472 sed 's/^/| /' conftest.$ac_ext >&5
1476 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1477 as_fn_set_status $ac_retval
1479 } # ac_fn_c_try_compile
1481 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1482 # -------------------------------------------------------
1483 # Tests whether HEADER exists and can be compiled using the include files in
1484 # INCLUDES, setting the cache variable VAR accordingly.
1485 ac_fn_c_check_header_compile ()
1487 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1489 $as_echo_n "checking for $2... " >&6; }
1490 if eval \${$3+:} false; then :
1491 $as_echo_n "(cached) " >&6
1493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1494 /* end confdefs.h. */
1498 if ac_fn_c_try_compile "$LINENO"; then :
1503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1507 $as_echo "$ac_res" >&6; }
1508 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1510 } # ac_fn_c_check_header_compile
1512 # ac_fn_c_try_cpp LINENO
1513 # ----------------------
1514 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1517 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1518 if { { ac_try="$ac_cpp conftest.$ac_ext"
1520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1521 *) ac_try_echo=$ac_try;;
1523 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1524 $as_echo "$ac_try_echo"; } >&5
1525 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1527 if test -s conftest.err; then
1528 grep -v '^ *+' conftest.err >conftest.er1
1529 cat conftest.er1 >&5
1530 mv -f conftest.er1 conftest.err
1532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1533 test $ac_status = 0; } > conftest.i && {
1534 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1535 test ! -s conftest.err
1539 $as_echo "$as_me: failed program was:" >&5
1540 sed 's/^/| /' conftest.$ac_ext >&5
1544 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1545 as_fn_set_status $ac_retval
1549 # ac_fn_c_try_run LINENO
1550 # ----------------------
1551 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1552 # that executables *can* be run.
1555 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1556 if { { ac_try="$ac_link"
1558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1559 *) ac_try_echo=$ac_try;;
1561 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1562 $as_echo "$ac_try_echo"; } >&5
1563 (eval "$ac_link") 2>&5
1565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1566 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1567 { { case "(($ac_try" in
1568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1569 *) ac_try_echo=$ac_try;;
1571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1572 $as_echo "$ac_try_echo"; } >&5
1573 (eval "$ac_try") 2>&5
1575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1576 test $ac_status = 0; }; }; then :
1579 $as_echo "$as_me: program exited with status $ac_status" >&5
1580 $as_echo "$as_me: failed program was:" >&5
1581 sed 's/^/| /' conftest.$ac_ext >&5
1583 ac_retval=$ac_status
1585 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1586 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1587 as_fn_set_status $ac_retval
1591 # ac_fn_c_try_link LINENO
1592 # -----------------------
1593 # Try to link conftest.$ac_ext, and return whether this succeeded.
1596 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1597 rm -f conftest.$ac_objext conftest$ac_exeext
1598 if { { ac_try="$ac_link"
1600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1601 *) ac_try_echo=$ac_try;;
1603 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1604 $as_echo "$ac_try_echo"; } >&5
1605 (eval "$ac_link") 2>conftest.err
1607 if test -s conftest.err; then
1608 grep -v '^ *+' conftest.err >conftest.er1
1609 cat conftest.er1 >&5
1610 mv -f conftest.er1 conftest.err
1612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1613 test $ac_status = 0; } && {
1614 test -z "$ac_c_werror_flag" ||
1615 test ! -s conftest.err
1616 } && test -s conftest$ac_exeext && {
1617 test "$cross_compiling" = yes ||
1618 $as_test_x conftest$ac_exeext
1622 $as_echo "$as_me: failed program was:" >&5
1623 sed 's/^/| /' conftest.$ac_ext >&5
1627 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1628 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1629 # interfere with the next link command; also delete a directory that is
1630 # left behind by Apple's compiler. We do this before executing the actions.
1631 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1632 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1633 as_fn_set_status $ac_retval
1635 } # ac_fn_c_try_link
1637 # ac_fn_c_check_func LINENO FUNC VAR
1638 # ----------------------------------
1639 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1640 ac_fn_c_check_func ()
1642 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1644 $as_echo_n "checking for $2... " >&6; }
1645 if eval \${$3+:} false; then :
1646 $as_echo_n "(cached) " >&6
1648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1649 /* end confdefs.h. */
1650 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1651 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1652 #define $2 innocuous_$2
1654 /* System header to define __stub macros and hopefully few prototypes,
1655 which can conflict with char $2 (); below.
1656 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1657 <limits.h> exists even on freestanding compilers. */
1660 # include <limits.h>
1662 # include <assert.h>
1667 /* Override any GCC internal prototype to avoid an error.
1668 Use char because int might match the return type of a GCC
1669 builtin and then its argument prototype would still apply. */
1674 /* The GNU C library defines this for functions which it implements
1675 to always fail with ENOSYS. Some functions are actually named
1676 something starting with __ and the normal name is an alias. */
1677 #if defined __stub_$2 || defined __stub___$2
1689 if ac_fn_c_try_link "$LINENO"; then :
1694 rm -f core conftest.err conftest.$ac_objext \
1695 conftest$ac_exeext conftest.$ac_ext
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1699 $as_echo "$ac_res" >&6; }
1700 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1702 } # ac_fn_c_check_func
1703 cat >config.log <<_ACEOF
1704 This file contains any messages produced by compilers while
1705 running configure, to aid debugging if configure makes a mistake.
1707 It was created by libatomic_ops $as_me 7.2, which was
1708 generated by GNU Autoconf 2.68. Invocation command line was
1720 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1721 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1722 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1723 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1724 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1726 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1727 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1729 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1730 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1731 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1732 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1733 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1734 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1735 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1743 test -z "$as_dir" && as_dir=.
1744 $as_echo "PATH: $as_dir"
1760 # Keep a trace of the command line.
1761 # Strip out --no-create and --no-recursion so they do not pile up.
1762 # Strip out --silent because we don't want to record it for future runs.
1763 # Also quote any args containing shell meta-characters.
1764 # Make two passes to allow for proper duplicate-argument suppression.
1768 ac_must_keep_next=false
1774 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1775 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1776 | -silent | --silent | --silen | --sile | --sil)
1779 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1782 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1784 as_fn_append ac_configure_args1 " '$ac_arg'"
1785 if test $ac_must_keep_next = true; then
1786 ac_must_keep_next=false # Got value, back to normal.
1789 *=* | --config-cache | -C | -disable-* | --disable-* \
1790 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1791 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1792 | -with-* | --with-* | -without-* | --without-* | --x)
1793 case "$ac_configure_args0 " in
1794 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1797 -* ) ac_must_keep_next=true ;;
1800 as_fn_append ac_configure_args " '$ac_arg'"
1805 { ac_configure_args0=; unset ac_configure_args0;}
1806 { ac_configure_args1=; unset ac_configure_args1;}
1808 # When interrupted or exit'd, cleanup temporary files, and complete
1809 # config.log. We remove comments because anyway the quotes in there
1810 # would cause problems or look ugly.
1811 # WARNING: Use '\'' to represent an apostrophe within the trap.
1812 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1813 trap 'exit_status=$?
1814 # Save into config.log some information that might help in debugging.
1818 $as_echo "## ---------------- ##
1819 ## Cache variables. ##
1820 ## ---------------- ##"
1822 # The following way of writing the cache mishandles newlines in values,
1824 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1825 eval ac_val=\$$ac_var
1829 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1830 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1833 _ | IFS | as_nl) ;; #(
1834 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1835 *) { eval $ac_var=; unset $ac_var;} ;;
1840 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1841 *${as_nl}ac_space=\ *)
1843 "s/'\''/'\''\\\\'\'''\''/g;
1844 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1847 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1854 $as_echo "## ----------------- ##
1855 ## Output variables. ##
1856 ## ----------------- ##"
1858 for ac_var in $ac_subst_vars
1860 eval ac_val=\$$ac_var
1862 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1864 $as_echo "$ac_var='\''$ac_val'\''"
1868 if test -n "$ac_subst_files"; then
1869 $as_echo "## ------------------- ##
1870 ## File substitutions. ##
1871 ## ------------------- ##"
1873 for ac_var in $ac_subst_files
1875 eval ac_val=\$$ac_var
1877 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1879 $as_echo "$ac_var='\''$ac_val'\''"
1884 if test -s confdefs.h; then
1885 $as_echo "## ----------- ##
1892 test "$ac_signal" != 0 &&
1893 $as_echo "$as_me: caught signal $ac_signal"
1894 $as_echo "$as_me: exit $exit_status"
1896 rm -f core *.core core.conftest.* &&
1897 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1900 for ac_signal in 1 2 13 15; do
1901 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1905 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1906 rm -f -r conftest* confdefs.h
1908 $as_echo "/* confdefs.h */" > confdefs.h
1910 # Predefined preprocessor variables.
1912 cat >>confdefs.h <<_ACEOF
1913 #define PACKAGE_NAME "$PACKAGE_NAME"
1916 cat >>confdefs.h <<_ACEOF
1917 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1920 cat >>confdefs.h <<_ACEOF
1921 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1924 cat >>confdefs.h <<_ACEOF
1925 #define PACKAGE_STRING "$PACKAGE_STRING"
1928 cat >>confdefs.h <<_ACEOF
1929 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1932 cat >>confdefs.h <<_ACEOF
1933 #define PACKAGE_URL "$PACKAGE_URL"
1937 # Let the site file select an alternate cache file if it wants to.
1938 # Prefer an explicitly selected file to automatically selected ones.
1941 if test -n "$CONFIG_SITE"; then
1942 # We do not want a PATH search for config.site.
1943 case $CONFIG_SITE in #((
1944 -*) ac_site_file1=./$CONFIG_SITE;;
1945 */*) ac_site_file1=$CONFIG_SITE;;
1946 *) ac_site_file1=./$CONFIG_SITE;;
1948 elif test "x$prefix" != xNONE; then
1949 ac_site_file1=$prefix/share/config.site
1950 ac_site_file2=$prefix/etc/config.site
1952 ac_site_file1=$ac_default_prefix/share/config.site
1953 ac_site_file2=$ac_default_prefix/etc/config.site
1955 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1957 test "x$ac_site_file" = xNONE && continue
1958 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1960 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1961 sed 's/^/| /' "$ac_site_file" >&5
1963 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1964 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1965 as_fn_error $? "failed to load site script $ac_site_file
1966 See \`config.log' for more details" "$LINENO" 5; }
1970 if test -r "$cache_file"; then
1971 # Some versions of bash will fail to source /dev/null (special files
1972 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1973 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1975 $as_echo "$as_me: loading cache $cache_file" >&6;}
1977 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1978 *) . "./$cache_file";;
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1983 $as_echo "$as_me: creating cache $cache_file" >&6;}
1987 as_fn_append ac_header_list " stdlib.h"
1988 as_fn_append ac_header_list " unistd.h"
1989 as_fn_append ac_header_list " sys/param.h"
1990 # Check that the precious variables saved in the cache have kept the same
1992 ac_cache_corrupted=false
1993 for ac_var in $ac_precious_vars; do
1994 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1995 eval ac_new_set=\$ac_env_${ac_var}_set
1996 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1997 eval ac_new_val=\$ac_env_${ac_var}_value
1998 case $ac_old_set,$ac_new_set in
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2001 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2002 ac_cache_corrupted=: ;;
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2005 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2006 ac_cache_corrupted=: ;;
2009 if test "x$ac_old_val" != "x$ac_new_val"; then
2010 # differences in whitespace do not lead to failure.
2011 ac_old_val_w=`echo x $ac_old_val`
2012 ac_new_val_w=`echo x $ac_new_val`
2013 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2015 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2016 ac_cache_corrupted=:
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2019 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2020 eval $ac_var=\$ac_old_val
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2023 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2025 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2028 # Pass precious variables to config.status.
2029 if test "$ac_new_set" = set; then
2031 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2032 *) ac_arg=$ac_var=$ac_new_val ;;
2034 case " $ac_configure_args " in
2035 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2036 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2040 if $ac_cache_corrupted; then
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2042 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2044 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2045 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2047 ## -------------------- ##
2048 ## Main body of script. ##
2049 ## -------------------- ##
2052 ac_cpp='$CPP $CPPFLAGS'
2053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2060 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2061 if test -f "$ac_dir/install-sh"; then
2063 ac_install_sh="$ac_aux_dir/install-sh -c"
2065 elif test -f "$ac_dir/install.sh"; then
2067 ac_install_sh="$ac_aux_dir/install.sh -c"
2069 elif test -f "$ac_dir/shtool"; then
2071 ac_install_sh="$ac_aux_dir/shtool install -c"
2075 if test -z "$ac_aux_dir"; then
2076 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2079 # These three variables are undocumented and unsupported,
2080 # and are intended to be withdrawn in a future Autoconf release.
2081 # They can cause serious problems if a builder's source tree is in a directory
2082 # whose full name contains unusual characters.
2083 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2084 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2085 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2088 # Make sure we can run config.sub.
2089 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2090 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2093 $as_echo_n "checking build system type... " >&6; }
2094 if ${ac_cv_build+:} false; then :
2095 $as_echo_n "(cached) " >&6
2097 ac_build_alias=$build_alias
2098 test "x$ac_build_alias" = x &&
2099 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2100 test "x$ac_build_alias" = x &&
2101 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2102 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2103 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2107 $as_echo "$ac_cv_build" >&6; }
2108 case $ac_cv_build in
2110 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2113 ac_save_IFS=$IFS; IFS='-'
2119 # Remember, the first character of IFS is used to create $*,
2120 # except with old shells:
2123 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2127 $as_echo_n "checking host system type... " >&6; }
2128 if ${ac_cv_host+:} false; then :
2129 $as_echo_n "(cached) " >&6
2131 if test "x$host_alias" = x; then
2132 ac_cv_host=$ac_cv_build
2134 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2135 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2140 $as_echo "$ac_cv_host" >&6; }
2143 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2146 ac_save_IFS=$IFS; IFS='-'
2152 # Remember, the first character of IFS is used to create $*,
2153 # except with old shells:
2156 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2160 $as_echo_n "checking target system type... " >&6; }
2161 if ${ac_cv_target+:} false; then :
2162 $as_echo_n "(cached) " >&6
2164 if test "x$target_alias" = x; then
2165 ac_cv_target=$ac_cv_host
2167 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2168 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2173 $as_echo "$ac_cv_target" >&6; }
2174 case $ac_cv_target in
2176 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2178 target=$ac_cv_target
2179 ac_save_IFS=$IFS; IFS='-'
2185 # Remember, the first character of IFS is used to create $*,
2186 # except with old shells:
2189 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2192 # The aliases save the names the user supplied, while $host etc.
2193 # will get canonicalized.
2194 test -n "$target_alias" &&
2195 test "$program_prefix$program_suffix$program_transform_name" = \
2197 program_prefix=${target_alias}-
2199 am__api_version='1.11'
2201 # Find a good install program. We prefer a C program (faster),
2202 # so one script is as good as another. But avoid the broken or
2203 # incompatible versions:
2204 # SysV /etc/install, /usr/sbin/install
2205 # SunOS /usr/etc/install
2206 # IRIX /sbin/install
2208 # AmigaOS /C/install, which installs bootblocks on floppy discs
2209 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2210 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2211 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2212 # OS/2's system install, which has a completely different semantic
2213 # ./install, which can be erroneously created by make from ./install.sh.
2214 # Reject install programs that cannot install multiple files.
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2216 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2217 if test -z "$INSTALL"; then
2218 if ${ac_cv_path_install+:} false; then :
2219 $as_echo_n "(cached) " >&6
2221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2225 test -z "$as_dir" && as_dir=.
2226 # Account for people who put trailing slashes in PATH elements.
2227 case $as_dir/ in #((
2228 ./ | .// | /[cC]/* | \
2229 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2230 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2233 # OSF1 and SCO ODT 3.0 have their own names for install.
2234 # Don't use installbsd from OSF since it installs stuff as root
2236 for ac_prog in ginstall scoinst install; do
2237 for ac_exec_ext in '' $ac_executable_extensions; do
2238 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2239 if test $ac_prog = install &&
2240 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2241 # AIX install. It has an incompatible calling convention.
2243 elif test $ac_prog = install &&
2244 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2245 # program-specific install script used by HP pwplus--don't use.
2248 rm -rf conftest.one conftest.two conftest.dir
2249 echo one > conftest.one
2250 echo two > conftest.two
2252 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2253 test -s conftest.one && test -s conftest.two &&
2254 test -s conftest.dir/conftest.one &&
2255 test -s conftest.dir/conftest.two
2257 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2270 rm -rf conftest.one conftest.two conftest.dir
2273 if test "${ac_cv_path_install+set}" = set; then
2274 INSTALL=$ac_cv_path_install
2276 # As a last resort, use the slow shell script. Don't cache a
2277 # value for INSTALL within a source directory, because that will
2278 # break other packages using the cache if that directory is
2279 # removed, or if the value is a relative name.
2280 INSTALL=$ac_install_sh
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2284 $as_echo "$INSTALL" >&6; }
2286 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2287 # It thinks the first close brace ends the variable substitution.
2288 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2290 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2292 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2295 $as_echo_n "checking whether build environment is sane... " >&6; }
2298 echo timestamp > conftest.file
2299 # Reject unsafe characters in $srcdir or the absolute working directory
2300 # name. Accept space and tab only in the latter.
2304 *[\\\"\#\$\&\'\`$am_lf]*)
2305 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2308 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2309 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2312 # Do `set' in a subshell so we don't clobber the current shell's
2313 # arguments. Must try -L first in case configure is actually a
2314 # symlink; some systems play weird games with the mod time of symlinks
2315 # (eg FreeBSD returns the mod time of the symlink's containing
2318 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2319 if test "$*" = "X"; then
2321 set X `ls -t "$srcdir/configure" conftest.file`
2324 if test "$*" != "X $srcdir/configure conftest.file" \
2325 && test "$*" != "X conftest.file $srcdir/configure"; then
2327 # If neither matched, then we have a broken ls. This can happen
2328 # if, for instance, CONFIG_SHELL is bash and it inherits a
2329 # broken ls alias from the environment. This has actually
2330 # happened. Such a system could not be considered "sane".
2331 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2332 alias in your environment" "$LINENO" 5
2335 test "$2" = conftest.file
2341 as_fn_error $? "newly created file is older than distributed files!
2342 Check your system clock" "$LINENO" 5
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2345 $as_echo "yes" >&6; }
2346 test "$program_prefix" != NONE &&
2347 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2348 # Use a double $ so make ignores it.
2349 test "$program_suffix" != NONE &&
2350 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2351 # Double any \ or $.
2352 # By default was `s,x,x', remove it if useless.
2353 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2354 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2356 # expand $ac_aux_dir to an absolute path
2357 am_aux_dir=`cd $ac_aux_dir && pwd`
2359 if test x"${MISSING+set}" != xset; then
2362 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2364 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2367 # Use eval to expand $SHELL
2368 if eval "$MISSING --run true"; then
2369 am_missing_run="$MISSING --run "
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2373 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2376 if test x"${install_sh}" != xset; then
2379 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2381 install_sh="\${SHELL} $am_aux_dir/install-sh"
2385 # Installed binaries are usually stripped using `strip' when the user
2386 # run `make install-strip'. However `strip' might not be the right
2387 # tool to use in cross-compilation environments, therefore Automake
2388 # will honor the `STRIP' environment variable to overrule this program.
2389 if test "$cross_compiling" != no; then
2390 if test -n "$ac_tool_prefix"; then
2391 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2392 set dummy ${ac_tool_prefix}strip; ac_word=$2
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2394 $as_echo_n "checking for $ac_word... " >&6; }
2395 if ${ac_cv_prog_STRIP+:} false; then :
2396 $as_echo_n "(cached) " >&6
2398 if test -n "$STRIP"; then
2399 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2405 test -z "$as_dir" && as_dir=.
2406 for ac_exec_ext in '' $ac_executable_extensions; do
2407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2408 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2418 STRIP=$ac_cv_prog_STRIP
2419 if test -n "$STRIP"; then
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2421 $as_echo "$STRIP" >&6; }
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2424 $as_echo "no" >&6; }
2429 if test -z "$ac_cv_prog_STRIP"; then
2431 # Extract the first word of "strip", so it can be a program name with args.
2432 set dummy strip; ac_word=$2
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2434 $as_echo_n "checking for $ac_word... " >&6; }
2435 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2436 $as_echo_n "(cached) " >&6
2438 if test -n "$ac_ct_STRIP"; then
2439 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2445 test -z "$as_dir" && as_dir=.
2446 for ac_exec_ext in '' $ac_executable_extensions; do
2447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2448 ac_cv_prog_ac_ct_STRIP="strip"
2449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2458 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2459 if test -n "$ac_ct_STRIP"; then
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2461 $as_echo "$ac_ct_STRIP" >&6; }
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2464 $as_echo "no" >&6; }
2467 if test "x$ac_ct_STRIP" = x; then
2470 case $cross_compiling:$ac_tool_warned in
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2473 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2474 ac_tool_warned=yes ;;
2479 STRIP="$ac_cv_prog_STRIP"
2483 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2486 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2487 if test -z "$MKDIR_P"; then
2488 if ${ac_cv_path_mkdir+:} false; then :
2489 $as_echo_n "(cached) " >&6
2491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2492 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2495 test -z "$as_dir" && as_dir=.
2496 for ac_prog in mkdir gmkdir; do
2497 for ac_exec_ext in '' $ac_executable_extensions; do
2498 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2499 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2500 'mkdir (GNU coreutils) '* | \
2501 'mkdir (coreutils) '* | \
2502 'mkdir (fileutils) '4.1*)
2503 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2513 test -d ./--version && rmdir ./--version
2514 if test "${ac_cv_path_mkdir+set}" = set; then
2515 MKDIR_P="$ac_cv_path_mkdir -p"
2517 # As a last resort, use the slow shell script. Don't cache a
2518 # value for MKDIR_P within a source directory, because that will
2519 # break other packages using the cache if that directory is
2520 # removed, or if the value is a relative name.
2521 MKDIR_P="$ac_install_sh -d"
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2525 $as_echo "$MKDIR_P" >&6; }
2529 [\\/$]* | ?:[\\/]*) ;;
2530 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2533 for ac_prog in gawk mawk nawk awk
2535 # Extract the first word of "$ac_prog", so it can be a program name with args.
2536 set dummy $ac_prog; ac_word=$2
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2538 $as_echo_n "checking for $ac_word... " >&6; }
2539 if ${ac_cv_prog_AWK+:} false; then :
2540 $as_echo_n "(cached) " >&6
2542 if test -n "$AWK"; then
2543 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2549 test -z "$as_dir" && as_dir=.
2550 for ac_exec_ext in '' $ac_executable_extensions; do
2551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2552 ac_cv_prog_AWK="$ac_prog"
2553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2563 if test -n "$AWK"; then
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2565 $as_echo "$AWK" >&6; }
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2568 $as_echo "no" >&6; }
2572 test -n "$AWK" && break
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2576 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2578 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2579 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2580 $as_echo_n "(cached) " >&6
2582 cat >conftest.make <<\_ACEOF
2585 @echo '@@@%%%=$(MAKE)=@@@%%%'
2587 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2588 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2590 eval ac_cv_prog_make_${ac_make}_set=yes;;
2592 eval ac_cv_prog_make_${ac_make}_set=no;;
2596 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2598 $as_echo "yes" >&6; }
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2602 $as_echo "no" >&6; }
2603 SET_MAKE="MAKE=${MAKE-make}"
2606 rm -rf .tst 2>/dev/null
2607 mkdir .tst 2>/dev/null
2608 if test -d .tst; then
2613 rmdir .tst 2>/dev/null
2615 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2616 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2617 # is not polluted with repeated "-I."
2618 am__isrc=' -I$(srcdir)'
2619 # test to see if srcdir already configured
2620 if test -f $srcdir/config.status; then
2621 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2625 # test whether we have cygpath
2626 if test -z "$CYGPATH_W"; then
2627 if (cygpath --version) >/dev/null 2>/dev/null; then
2628 CYGPATH_W='cygpath -w'
2635 # Define the identity of the package.
2636 PACKAGE='libatomic_ops'
2640 cat >>confdefs.h <<_ACEOF
2641 #define PACKAGE "$PACKAGE"
2645 cat >>confdefs.h <<_ACEOF
2646 #define VERSION "$VERSION"
2649 # Some tools Automake needs.
2651 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2654 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2657 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2660 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2663 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2665 # We need awk for the "check" target. The system "awk" is bad on
2667 # Always define AMTAR for backward compatibility.
2669 AMTAR=${AMTAR-"${am_missing_run}tar"}
2671 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2677 if test -n "$ac_tool_prefix"; then
2678 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2679 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2681 $as_echo_n "checking for $ac_word... " >&6; }
2682 if ${ac_cv_prog_RANLIB+:} false; then :
2683 $as_echo_n "(cached) " >&6
2685 if test -n "$RANLIB"; then
2686 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2692 test -z "$as_dir" && as_dir=.
2693 for ac_exec_ext in '' $ac_executable_extensions; do
2694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2695 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2705 RANLIB=$ac_cv_prog_RANLIB
2706 if test -n "$RANLIB"; then
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
2708 $as_echo "$RANLIB" >&6; }
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2711 $as_echo "no" >&6; }
2716 if test -z "$ac_cv_prog_RANLIB"; then
2717 ac_ct_RANLIB=$RANLIB
2718 # Extract the first word of "ranlib", so it can be a program name with args.
2719 set dummy ranlib; ac_word=$2
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2721 $as_echo_n "checking for $ac_word... " >&6; }
2722 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
2723 $as_echo_n "(cached) " >&6
2725 if test -n "$ac_ct_RANLIB"; then
2726 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2732 test -z "$as_dir" && as_dir=.
2733 for ac_exec_ext in '' $ac_executable_extensions; do
2734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2735 ac_cv_prog_ac_ct_RANLIB="ranlib"
2736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2745 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2746 if test -n "$ac_ct_RANLIB"; then
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
2748 $as_echo "$ac_ct_RANLIB" >&6; }
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2751 $as_echo "no" >&6; }
2754 if test "x$ac_ct_RANLIB" = x; then
2757 case $cross_compiling:$ac_tool_warned in
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2760 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2761 ac_tool_warned=yes ;;
2763 RANLIB=$ac_ct_RANLIB
2766 RANLIB="$ac_cv_prog_RANLIB"
2770 ac_config_headers="$ac_config_headers src/config.h"
2773 # Checks for programs.
2774 DEPDIR="${am__leading_dot}deps"
2776 ac_config_commands="$ac_config_commands depfiles"
2779 am_make=${MAKE-make}
2780 cat > confinc << 'END'
2782 @echo this is the am__doit target
2785 # If we don't find an include directive, just comment out the code.
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2787 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2791 # First try GNU make style include.
2792 echo "include confinc" > confmf
2793 # Ignore all kinds of additional output from `make'.
2794 case `$am_make -s -f confmf 2> /dev/null` in #(
2795 *the\ am__doit\ target*)
2801 # Now try BSD make style include.
2802 if test "$am__include" = "#"; then
2803 echo '.include "confinc"' > confmf
2804 case `$am_make -s -f confmf 2> /dev/null` in #(
2805 *the\ am__doit\ target*)
2806 am__include=.include
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2815 $as_echo "$_am_result" >&6; }
2816 rm -f confinc confmf
2818 # Check whether --enable-dependency-tracking was given.
2819 if test "${enable_dependency_tracking+set}" = set; then :
2820 enableval=$enable_dependency_tracking;
2823 if test "x$enable_dependency_tracking" != xno; then
2824 am_depcomp="$ac_aux_dir/depcomp"
2827 if test "x$enable_dependency_tracking" != xno; then
2837 ac_cpp='$CPP $CPPFLAGS'
2838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2841 if test -n "$ac_tool_prefix"; then
2842 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2843 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2845 $as_echo_n "checking for $ac_word... " >&6; }
2846 if ${ac_cv_prog_CC+:} false; then :
2847 $as_echo_n "(cached) " >&6
2849 if test -n "$CC"; then
2850 ac_cv_prog_CC="$CC" # Let the user override the test.
2852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2856 test -z "$as_dir" && as_dir=.
2857 for ac_exec_ext in '' $ac_executable_extensions; do
2858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2859 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2870 if test -n "$CC"; then
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2872 $as_echo "$CC" >&6; }
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2875 $as_echo "no" >&6; }
2880 if test -z "$ac_cv_prog_CC"; then
2882 # Extract the first word of "gcc", so it can be a program name with args.
2883 set dummy gcc; ac_word=$2
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2885 $as_echo_n "checking for $ac_word... " >&6; }
2886 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2887 $as_echo_n "(cached) " >&6
2889 if test -n "$ac_ct_CC"; then
2890 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2896 test -z "$as_dir" && as_dir=.
2897 for ac_exec_ext in '' $ac_executable_extensions; do
2898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2899 ac_cv_prog_ac_ct_CC="gcc"
2900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2909 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2910 if test -n "$ac_ct_CC"; then
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2912 $as_echo "$ac_ct_CC" >&6; }
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2915 $as_echo "no" >&6; }
2918 if test "x$ac_ct_CC" = x; then
2921 case $cross_compiling:$ac_tool_warned in
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2924 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2925 ac_tool_warned=yes ;;
2933 if test -z "$CC"; then
2934 if test -n "$ac_tool_prefix"; then
2935 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2936 set dummy ${ac_tool_prefix}cc; ac_word=$2
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2938 $as_echo_n "checking for $ac_word... " >&6; }
2939 if ${ac_cv_prog_CC+:} false; then :
2940 $as_echo_n "(cached) " >&6
2942 if test -n "$CC"; then
2943 ac_cv_prog_CC="$CC" # Let the user override the test.
2945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949 test -z "$as_dir" && as_dir=.
2950 for ac_exec_ext in '' $ac_executable_extensions; do
2951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2952 ac_cv_prog_CC="${ac_tool_prefix}cc"
2953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2963 if test -n "$CC"; then
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2965 $as_echo "$CC" >&6; }
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2968 $as_echo "no" >&6; }
2974 if test -z "$CC"; then
2975 # Extract the first word of "cc", so it can be a program name with args.
2976 set dummy cc; ac_word=$2
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2978 $as_echo_n "checking for $ac_word... " >&6; }
2979 if ${ac_cv_prog_CC+:} false; then :
2980 $as_echo_n "(cached) " >&6
2982 if test -n "$CC"; then
2983 ac_cv_prog_CC="$CC" # Let the user override the test.
2986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2990 test -z "$as_dir" && as_dir=.
2991 for ac_exec_ext in '' $ac_executable_extensions; do
2992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2993 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2994 ac_prog_rejected=yes
2998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3005 if test $ac_prog_rejected = yes; then
3006 # We found a bogon in the path, so make sure we never use it.
3007 set dummy $ac_cv_prog_CC
3009 if test $# != 0; then
3010 # We chose a different compiler from the bogus one.
3011 # However, it has the same basename, so the bogon will be chosen
3012 # first if we set CC to just the basename; use the full file name.
3014 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3020 if test -n "$CC"; then
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3022 $as_echo "$CC" >&6; }
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3025 $as_echo "no" >&6; }
3030 if test -z "$CC"; then
3031 if test -n "$ac_tool_prefix"; then
3032 for ac_prog in cl.exe
3034 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3035 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3037 $as_echo_n "checking for $ac_word... " >&6; }
3038 if ${ac_cv_prog_CC+:} false; then :
3039 $as_echo_n "(cached) " >&6
3041 if test -n "$CC"; then
3042 ac_cv_prog_CC="$CC" # Let the user override the test.
3044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3048 test -z "$as_dir" && as_dir=.
3049 for ac_exec_ext in '' $ac_executable_extensions; do
3050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3051 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3062 if test -n "$CC"; then
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3064 $as_echo "$CC" >&6; }
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3067 $as_echo "no" >&6; }
3071 test -n "$CC" && break
3074 if test -z "$CC"; then
3076 for ac_prog in cl.exe
3078 # Extract the first word of "$ac_prog", so it can be a program name with args.
3079 set dummy $ac_prog; ac_word=$2
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3081 $as_echo_n "checking for $ac_word... " >&6; }
3082 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3083 $as_echo_n "(cached) " >&6
3085 if test -n "$ac_ct_CC"; then
3086 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3092 test -z "$as_dir" && as_dir=.
3093 for ac_exec_ext in '' $ac_executable_extensions; do
3094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3095 ac_cv_prog_ac_ct_CC="$ac_prog"
3096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3105 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3106 if test -n "$ac_ct_CC"; then
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3108 $as_echo "$ac_ct_CC" >&6; }
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3111 $as_echo "no" >&6; }
3115 test -n "$ac_ct_CC" && break
3118 if test "x$ac_ct_CC" = x; then
3121 case $cross_compiling:$ac_tool_warned in
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3124 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3125 ac_tool_warned=yes ;;
3134 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3135 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3136 as_fn_error $? "no acceptable C compiler found in \$PATH
3137 See \`config.log' for more details" "$LINENO" 5; }
3139 # Provide some information about the compiler.
3140 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3143 for ac_option in --version -v -V -qversion; do
3144 { { ac_try="$ac_compiler $ac_option >&5"
3146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3147 *) ac_try_echo=$ac_try;;
3149 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3150 $as_echo "$ac_try_echo"; } >&5
3151 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3153 if test -s conftest.err; then
3155 ... rest of stderr output deleted ...
3156 10q' conftest.err >conftest.er1
3157 cat conftest.er1 >&5
3159 rm -f conftest.er1 conftest.err
3160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3161 test $ac_status = 0; }
3164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3165 /* end confdefs.h. */
3175 ac_clean_files_save=$ac_clean_files
3176 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3177 # Try to create an executable without -o first, disregard a.out.
3178 # It will help us diagnose broken compilers, and finding out an intuition
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3181 $as_echo_n "checking whether the C compiler works... " >&6; }
3182 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3184 # The possible output files:
3185 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3188 for ac_file in $ac_files
3191 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3192 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3197 if { { ac_try="$ac_link_default"
3199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3200 *) ac_try_echo=$ac_try;;
3202 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3203 $as_echo "$ac_try_echo"; } >&5
3204 (eval "$ac_link_default") 2>&5
3206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3207 test $ac_status = 0; }; then :
3208 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3209 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3210 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3211 # so that the user can short-circuit this test for compilers unknown to
3213 for ac_file in $ac_files ''
3215 test -f "$ac_file" || continue
3217 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3220 # We found the default executable, but exeext='' is most
3224 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3226 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3228 # We set ac_cv_exeext here because the later test for it is not
3229 # safe: cross compilers may not add the suffix if given an `-o'
3230 # argument, so we may need to know it at that point already.
3231 # Even if this section looks crufty: it has the advantage of
3238 test "$ac_cv_exeext" = no && ac_cv_exeext=
3243 if test -z "$ac_file"; then :
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3245 $as_echo "no" >&6; }
3246 $as_echo "$as_me: failed program was:" >&5
3247 sed 's/^/| /' conftest.$ac_ext >&5
3249 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3250 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3251 as_fn_error 77 "C compiler cannot create executables
3252 See \`config.log' for more details" "$LINENO" 5; }
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3255 $as_echo "yes" >&6; }
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3258 $as_echo_n "checking for C compiler default output file name... " >&6; }
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3260 $as_echo "$ac_file" >&6; }
3261 ac_exeext=$ac_cv_exeext
3263 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3264 ac_clean_files=$ac_clean_files_save
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3266 $as_echo_n "checking for suffix of executables... " >&6; }
3267 if { { ac_try="$ac_link"
3269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3270 *) ac_try_echo=$ac_try;;
3272 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3273 $as_echo "$ac_try_echo"; } >&5
3274 (eval "$ac_link") 2>&5
3276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3277 test $ac_status = 0; }; then :
3278 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3279 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3280 # work properly (i.e., refer to `conftest.exe'), while it won't with
3282 for ac_file in conftest.exe conftest conftest.*; do
3283 test -f "$ac_file" || continue
3285 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3286 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3292 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3293 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3294 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3295 See \`config.log' for more details" "$LINENO" 5; }
3297 rm -f conftest conftest$ac_cv_exeext
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3299 $as_echo "$ac_cv_exeext" >&6; }
3301 rm -f conftest.$ac_ext
3302 EXEEXT=$ac_cv_exeext
3304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3305 /* end confdefs.h. */
3310 FILE *f = fopen ("conftest.out", "w");
3311 return ferror (f) || fclose (f) != 0;
3317 ac_clean_files="$ac_clean_files conftest.out"
3318 # Check that the compiler produces executables we can run. If not, either
3319 # the compiler is broken, or we cross compile.
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3321 $as_echo_n "checking whether we are cross compiling... " >&6; }
3322 if test "$cross_compiling" != yes; then
3323 { { ac_try="$ac_link"
3325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326 *) ac_try_echo=$ac_try;;
3328 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3329 $as_echo "$ac_try_echo"; } >&5
3330 (eval "$ac_link") 2>&5
3332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3333 test $ac_status = 0; }
3334 if { ac_try='./conftest$ac_cv_exeext'
3335 { { case "(($ac_try" in
3336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3337 *) ac_try_echo=$ac_try;;
3339 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3340 $as_echo "$ac_try_echo"; } >&5
3341 (eval "$ac_try") 2>&5
3343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3344 test $ac_status = 0; }; }; then
3347 if test "$cross_compiling" = maybe; then
3350 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3351 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3352 as_fn_error $? "cannot run C compiled programs.
3353 If you meant to cross compile, use \`--host'.
3354 See \`config.log' for more details" "$LINENO" 5; }
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3359 $as_echo "$cross_compiling" >&6; }
3361 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3362 ac_clean_files=$ac_clean_files_save
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3364 $as_echo_n "checking for suffix of object files... " >&6; }
3365 if ${ac_cv_objext+:} false; then :
3366 $as_echo_n "(cached) " >&6
3368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3369 /* end confdefs.h. */
3379 rm -f conftest.o conftest.obj
3380 if { { ac_try="$ac_compile"
3382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3383 *) ac_try_echo=$ac_try;;
3385 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3386 $as_echo "$ac_try_echo"; } >&5
3387 (eval "$ac_compile") 2>&5
3389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3390 test $ac_status = 0; }; then :
3391 for ac_file in conftest.o conftest.obj conftest.*; do
3392 test -f "$ac_file" || continue;
3394 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3395 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3400 $as_echo "$as_me: failed program was:" >&5
3401 sed 's/^/| /' conftest.$ac_ext >&5
3403 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3404 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3405 as_fn_error $? "cannot compute suffix of object files: cannot compile
3406 See \`config.log' for more details" "$LINENO" 5; }
3408 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3411 $as_echo "$ac_cv_objext" >&6; }
3412 OBJEXT=$ac_cv_objext
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3415 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3416 if ${ac_cv_c_compiler_gnu+:} false; then :
3417 $as_echo_n "(cached) " >&6
3419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3420 /* end confdefs.h. */
3433 if ac_fn_c_try_compile "$LINENO"; then :
3438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3439 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3443 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3444 if test $ac_compiler_gnu = yes; then
3449 ac_test_CFLAGS=${CFLAGS+set}
3450 ac_save_CFLAGS=$CFLAGS
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3452 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3453 if ${ac_cv_prog_cc_g+:} false; then :
3454 $as_echo_n "(cached) " >&6
3456 ac_save_c_werror_flag=$ac_c_werror_flag
3457 ac_c_werror_flag=yes
3460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3461 /* end confdefs.h. */
3471 if ac_fn_c_try_compile "$LINENO"; then :
3475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3476 /* end confdefs.h. */
3486 if ac_fn_c_try_compile "$LINENO"; then :
3489 ac_c_werror_flag=$ac_save_c_werror_flag
3491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3492 /* end confdefs.h. */
3502 if ac_fn_c_try_compile "$LINENO"; then :
3505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3510 ac_c_werror_flag=$ac_save_c_werror_flag
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3513 $as_echo "$ac_cv_prog_cc_g" >&6; }
3514 if test "$ac_test_CFLAGS" = set; then
3515 CFLAGS=$ac_save_CFLAGS
3516 elif test $ac_cv_prog_cc_g = yes; then
3517 if test "$GCC" = yes; then
3523 if test "$GCC" = yes; then
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3530 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3531 if ${ac_cv_prog_cc_c89+:} false; then :
3532 $as_echo_n "(cached) " >&6
3534 ac_cv_prog_cc_c89=no
3536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3537 /* end confdefs.h. */
3540 #include <sys/types.h>
3541 #include <sys/stat.h>
3542 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3543 struct buf { int x; };
3544 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3545 static char *e (p, i)
3551 static char *f (char * (*g) (char **, int), char **p, ...)
3556 s = g (p, va_arg (v,int));
3561 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3562 function prototypes and stuff, but not '\xHH' hex character constants.
3563 These don't provoke an error unfortunately, instead are silently treated
3564 as 'x'. The following induces an error, until -std is added to get
3565 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3566 array size at least. It's necessary to write '\x00'==0 to get something
3567 that's true only with -std. */
3568 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3570 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3571 inside strings and character constants. */
3573 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3575 int test (int i, double x);
3576 struct s1 {int (*f) (int a);};
3577 struct s2 {int (*f) (double a);};
3578 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3584 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3589 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3590 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3592 CC="$ac_save_CC $ac_arg"
3593 if ac_fn_c_try_compile "$LINENO"; then :
3594 ac_cv_prog_cc_c89=$ac_arg
3596 rm -f core conftest.err conftest.$ac_objext
3597 test "x$ac_cv_prog_cc_c89" != "xno" && break
3599 rm -f conftest.$ac_ext
3604 case "x$ac_cv_prog_cc_c89" in
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3607 $as_echo "none needed" >&6; } ;;
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3610 $as_echo "unsupported" >&6; } ;;
3612 CC="$CC $ac_cv_prog_cc_c89"
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3614 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3616 if test "x$ac_cv_prog_cc_c89" != xno; then :
3621 ac_cpp='$CPP $CPPFLAGS'
3622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3626 depcc="$CC" am_compiler_list=
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3629 $as_echo_n "checking dependency style of $depcc... " >&6; }
3630 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3631 $as_echo_n "(cached) " >&6
3633 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3634 # We make a subdir and do the tests there. Otherwise we can end up
3635 # making bogus files that we don't know about and never remove. For
3636 # instance it was reported that on HP-UX the gcc test will end up
3637 # making a dummy file named `D' -- because `-MD' means `put the output
3640 # Copy depcomp to subdir because otherwise we won't find it if we're
3641 # using a relative directory.
3642 cp "$am_depcomp" conftest.dir
3644 # We will build objects and dependencies in a subdirectory because
3645 # it helps to detect inapplicable dependency modes. For instance
3646 # both Tru64's cc and ICC support -MD to output dependencies as a
3647 # side effect of compilation, but ICC will put the dependencies in
3648 # the current directory while Tru64 will put them in the object
3652 am_cv_CC_dependencies_compiler_type=none
3653 if test "$am_compiler_list" = ""; then
3654 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3657 case " $depcc " in #(
3658 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3661 for depmode in $am_compiler_list; do
3662 # Setup a source with many dependencies, because some compilers
3663 # like to wrap large dependency lists on column 80 (with \), and
3664 # we should not choose a depcomp mode which is confused by this.
3666 # We need to recreate these files for each test, as the compiler may
3667 # overwrite some of them when testing with obscure command lines.
3668 # This happens at least with the AIX C compiler.
3670 for i in 1 2 3 4 5 6; do
3671 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3672 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3673 # Solaris 8's {/usr,}/bin/sh.
3674 touch sub/conftst$i.h
3676 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3678 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3679 # mode. It turns out that the SunPro C++ compiler does not properly
3680 # handle `-M -o', and we need to detect this. Also, some Intel
3681 # versions had trouble with output in subdirs
3682 am__obj=sub/conftest.${OBJEXT-o}
3683 am__minus_obj="-o $am__obj"
3686 # This depmode causes a compiler race in universal mode.
3687 test "$am__universal" = false || continue
3690 # after this tag, mechanisms are not by side-effect, so they'll
3691 # only be used when explicitly requested
3692 if test "x$enable_dependency_tracking" = xyes; then
3698 msvisualcpp | msvcmsys)
3699 # This compiler won't grok `-c -o', but also, the minuso test has
3700 # not run yet. These depmodes are late enough in the game, and
3701 # so weak that their functioning should not be impacted.
3702 am__obj=conftest.${OBJEXT-o}
3707 if depmode=$depmode \
3708 source=sub/conftest.c object=$am__obj \
3709 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3710 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3711 >/dev/null 2>conftest.err &&
3712 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3713 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3714 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3715 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3716 # icc doesn't choke on unknown options, it will just issue warnings
3717 # or remarks (even with -Werror). So we grep stderr for any message
3718 # that says an option was ignored or not supported.
3719 # When given -MP, icc 7.0 and 7.1 complain thusly:
3720 # icc: Command line warning: ignoring option '-M'; no argument required
3721 # The diagnosis changed in icc 8.0:
3722 # icc: Command line remark: option '-MP' not supported
3723 if (grep 'ignoring option' conftest.err ||
3724 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3725 am_cv_CC_dependencies_compiler_type=$depmode
3734 am_cv_CC_dependencies_compiler_type=none
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3739 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3740 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3743 test "x$enable_dependency_tracking" != xno \
3744 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3746 am__fastdepCC_FALSE='#'
3748 am__fastdepCC_TRUE='#'
3749 am__fastdepCC_FALSE=
3753 if test "x$CC" != xcc; then
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
3755 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
3758 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
3760 set dummy $CC; ac_cc=`$as_echo "$2" |
3761 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3762 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
3763 $as_echo_n "(cached) " >&6
3765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3766 /* end confdefs.h. */
3776 # Make sure it works both with $CC and with simple cc.
3777 # We do the test twice because some compilers refuse to overwrite an
3778 # existing .o file with -o, though they will create one.
3779 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3781 if { { case "(($ac_try" in
3782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3783 *) ac_try_echo=$ac_try;;
3785 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3786 $as_echo "$ac_try_echo"; } >&5
3787 (eval "$ac_try") 2>&5
3789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3790 test $ac_status = 0; } &&
3791 test -f conftest2.$ac_objext && { { case "(($ac_try" in
3792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3793 *) ac_try_echo=$ac_try;;
3795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3796 $as_echo "$ac_try_echo"; } >&5
3797 (eval "$ac_try") 2>&5
3799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3800 test $ac_status = 0; };
3802 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3803 if test "x$CC" != xcc; then
3804 # Test first that cc exists at all.
3805 if { ac_try='cc -c conftest.$ac_ext >&5'
3806 { { case "(($ac_try" in
3807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3808 *) ac_try_echo=$ac_try;;
3810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3811 $as_echo "$ac_try_echo"; } >&5
3812 (eval "$ac_try") 2>&5
3814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3815 test $ac_status = 0; }; }; then
3816 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3818 if { { case "(($ac_try" in
3819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3820 *) ac_try_echo=$ac_try;;
3822 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3823 $as_echo "$ac_try_echo"; } >&5
3824 (eval "$ac_try") 2>&5
3826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3827 test $ac_status = 0; } &&
3828 test -f conftest2.$ac_objext && { { case "(($ac_try" in
3829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3830 *) ac_try_echo=$ac_try;;
3832 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3833 $as_echo "$ac_try_echo"; } >&5
3834 (eval "$ac_try") 2>&5
3836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3837 test $ac_status = 0; };
3842 # cc exists but doesn't like -o.
3843 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3848 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3850 rm -f core conftest*
3853 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3855 $as_echo "yes" >&6; }
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3858 $as_echo "no" >&6; }
3860 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
3864 # FIXME: we rely on the cache variable name because
3865 # there is no other way.
3867 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3868 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
3869 if test "$am_t" != yes; then
3870 # Losing compiler, so override with the script.
3871 # FIXME: It is wrong to rewrite CC.
3872 # But if we don't then we get into trouble of one sort or another.
3873 # A longer-term fix would be to have automake use am__CC in this case,
3874 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3875 CC="$am_aux_dir/compile $CC"
3879 # By default we simply use the C compiler to build assembly code.
3881 test "${CCAS+set}" = set || CCAS=$CC
3882 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
3886 depcc="$CCAS" am_compiler_list=
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3889 $as_echo_n "checking dependency style of $depcc... " >&6; }
3890 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
3891 $as_echo_n "(cached) " >&6
3893 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3894 # We make a subdir and do the tests there. Otherwise we can end up
3895 # making bogus files that we don't know about and never remove. For
3896 # instance it was reported that on HP-UX the gcc test will end up
3897 # making a dummy file named `D' -- because `-MD' means `put the output
3900 # Copy depcomp to subdir because otherwise we won't find it if we're
3901 # using a relative directory.
3902 cp "$am_depcomp" conftest.dir
3904 # We will build objects and dependencies in a subdirectory because
3905 # it helps to detect inapplicable dependency modes. For instance
3906 # both Tru64's cc and ICC support -MD to output dependencies as a
3907 # side effect of compilation, but ICC will put the dependencies in
3908 # the current directory while Tru64 will put them in the object
3912 am_cv_CCAS_dependencies_compiler_type=none
3913 if test "$am_compiler_list" = ""; then
3914 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3919 for depmode in $am_compiler_list; do
3920 # Setup a source with many dependencies, because some compilers
3921 # like to wrap large dependency lists on column 80 (with \), and
3922 # we should not choose a depcomp mode which is confused by this.
3924 # We need to recreate these files for each test, as the compiler may
3925 # overwrite some of them when testing with obscure command lines.
3926 # This happens at least with the AIX C compiler.
3928 for i in 1 2 3 4 5 6; do
3929 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3930 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3931 # Solaris 8's {/usr,}/bin/sh.
3932 touch sub/conftst$i.h
3934 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3936 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3937 # mode. It turns out that the SunPro C++ compiler does not properly
3938 # handle `-M -o', and we need to detect this. Also, some Intel
3939 # versions had trouble with output in subdirs
3940 am__obj=sub/conftest.${OBJEXT-o}
3941 am__minus_obj="-o $am__obj"
3944 # This depmode causes a compiler race in universal mode.
3945 test "$am__universal" = false || continue
3948 # after this tag, mechanisms are not by side-effect, so they'll
3949 # only be used when explicitly requested
3950 if test "x$enable_dependency_tracking" = xyes; then
3956 msvisualcpp | msvcmsys)
3957 # This compiler won't grok `-c -o', but also, the minuso test has
3958 # not run yet. These depmodes are late enough in the game, and
3959 # so weak that their functioning should not be impacted.
3960 am__obj=conftest.${OBJEXT-o}
3965 if depmode=$depmode \
3966 source=sub/conftest.c object=$am__obj \
3967 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3968 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3969 >/dev/null 2>conftest.err &&
3970 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3971 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3972 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3973 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3974 # icc doesn't choke on unknown options, it will just issue warnings
3975 # or remarks (even with -Werror). So we grep stderr for any message
3976 # that says an option was ignored or not supported.
3977 # When given -MP, icc 7.0 and 7.1 complain thusly:
3978 # icc: Command line warning: ignoring option '-M'; no argument required
3979 # The diagnosis changed in icc 8.0:
3980 # icc: Command line remark: option '-MP' not supported
3981 if (grep 'ignoring option' conftest.err ||
3982 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3983 am_cv_CCAS_dependencies_compiler_type=$depmode
3992 am_cv_CCAS_dependencies_compiler_type=none
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
3997 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
3998 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4001 test "x$enable_dependency_tracking" != xno \
4002 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4003 am__fastdepCCAS_TRUE=
4004 am__fastdepCCAS_FALSE='#'
4006 am__fastdepCCAS_TRUE='#'
4007 am__fastdepCCAS_FALSE=
4012 # Checks for functions.
4015 ac_cpp='$CPP $CPPFLAGS'
4016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4020 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4021 # On Suns, sometimes $CPP names a directory.
4022 if test -n "$CPP" && test -d "$CPP"; then
4025 if test -z "$CPP"; then
4026 if ${ac_cv_prog_CPP+:} false; then :
4027 $as_echo_n "(cached) " >&6
4029 # Double quotes because CPP needs to be expanded
4030 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4033 for ac_c_preproc_warn_flag in '' yes
4035 # Use a header file that comes with gcc, so configuring glibc
4036 # with a fresh cross-compiler works.
4037 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4038 # <limits.h> exists even on freestanding compilers.
4039 # On the NeXT, cc -E runs the code through the compiler's parser,
4040 # not just through cpp. "Syntax error" is here to catch this case.
4041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4042 /* end confdefs.h. */
4044 # include <limits.h>
4046 # include <assert.h>
4050 if ac_fn_c_try_cpp "$LINENO"; then :
4053 # Broken: fails on valid input.
4056 rm -f conftest.err conftest.i conftest.$ac_ext
4058 # OK, works on sane cases. Now check whether nonexistent headers
4059 # can be detected and how.
4060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4061 /* end confdefs.h. */
4062 #include <ac_nonexistent.h>
4064 if ac_fn_c_try_cpp "$LINENO"; then :
4065 # Broken: success on invalid input.
4068 # Passes both tests.
4072 rm -f conftest.err conftest.i conftest.$ac_ext
4075 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4076 rm -f conftest.i conftest.err conftest.$ac_ext
4077 if $ac_preproc_ok; then :
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4090 $as_echo "$CPP" >&6; }
4092 for ac_c_preproc_warn_flag in '' yes
4094 # Use a header file that comes with gcc, so configuring glibc
4095 # with a fresh cross-compiler works.
4096 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4097 # <limits.h> exists even on freestanding compilers.
4098 # On the NeXT, cc -E runs the code through the compiler's parser,
4099 # not just through cpp. "Syntax error" is here to catch this case.
4100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4101 /* end confdefs.h. */
4103 # include <limits.h>
4105 # include <assert.h>
4109 if ac_fn_c_try_cpp "$LINENO"; then :
4112 # Broken: fails on valid input.
4115 rm -f conftest.err conftest.i conftest.$ac_ext
4117 # OK, works on sane cases. Now check whether nonexistent headers
4118 # can be detected and how.
4119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4120 /* end confdefs.h. */
4121 #include <ac_nonexistent.h>
4123 if ac_fn_c_try_cpp "$LINENO"; then :
4124 # Broken: success on invalid input.
4127 # Passes both tests.
4131 rm -f conftest.err conftest.i conftest.$ac_ext
4134 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4135 rm -f conftest.i conftest.err conftest.$ac_ext
4136 if $ac_preproc_ok; then :
4139 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4140 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4141 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4142 See \`config.log' for more details" "$LINENO" 5; }
4146 ac_cpp='$CPP $CPPFLAGS'
4147 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4148 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4149 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4153 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4154 if ${ac_cv_path_GREP+:} false; then :
4155 $as_echo_n "(cached) " >&6
4157 if test -z "$GREP"; then
4158 ac_path_GREP_found=false
4159 # Loop through the user's path and test for each of PROGNAME-LIST
4160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4161 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4164 test -z "$as_dir" && as_dir=.
4165 for ac_prog in grep ggrep; do
4166 for ac_exec_ext in '' $ac_executable_extensions; do
4167 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4168 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4169 # Check for GNU ac_path_GREP and select it if it is found.
4170 # Check for GNU $ac_path_GREP
4171 case `"$ac_path_GREP" --version 2>&1` in
4173 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4176 $as_echo_n 0123456789 >"conftest.in"
4179 cat "conftest.in" "conftest.in" >"conftest.tmp"
4180 mv "conftest.tmp" "conftest.in"
4181 cp "conftest.in" "conftest.nl"
4182 $as_echo 'GREP' >> "conftest.nl"
4183 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4184 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4185 as_fn_arith $ac_count + 1 && ac_count=$as_val
4186 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4187 # Best one so far, save it but keep looking for a better one
4188 ac_cv_path_GREP="$ac_path_GREP"
4189 ac_path_GREP_max=$ac_count
4191 # 10*(2^10) chars as input seems more than enough
4192 test $ac_count -gt 10 && break
4194 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4197 $ac_path_GREP_found && break 3
4202 if test -z "$ac_cv_path_GREP"; then
4203 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4206 ac_cv_path_GREP=$GREP
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4211 $as_echo "$ac_cv_path_GREP" >&6; }
4212 GREP="$ac_cv_path_GREP"
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4216 $as_echo_n "checking for egrep... " >&6; }
4217 if ${ac_cv_path_EGREP+:} false; then :
4218 $as_echo_n "(cached) " >&6
4220 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4221 then ac_cv_path_EGREP="$GREP -E"
4223 if test -z "$EGREP"; then
4224 ac_path_EGREP_found=false
4225 # Loop through the user's path and test for each of PROGNAME-LIST
4226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4227 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4230 test -z "$as_dir" && as_dir=.
4231 for ac_prog in egrep; do
4232 for ac_exec_ext in '' $ac_executable_extensions; do
4233 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4234 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4235 # Check for GNU ac_path_EGREP and select it if it is found.
4236 # Check for GNU $ac_path_EGREP
4237 case `"$ac_path_EGREP" --version 2>&1` in
4239 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4242 $as_echo_n 0123456789 >"conftest.in"
4245 cat "conftest.in" "conftest.in" >"conftest.tmp"
4246 mv "conftest.tmp" "conftest.in"
4247 cp "conftest.in" "conftest.nl"
4248 $as_echo 'EGREP' >> "conftest.nl"
4249 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4250 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4251 as_fn_arith $ac_count + 1 && ac_count=$as_val
4252 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4253 # Best one so far, save it but keep looking for a better one
4254 ac_cv_path_EGREP="$ac_path_EGREP"
4255 ac_path_EGREP_max=$ac_count
4257 # 10*(2^10) chars as input seems more than enough
4258 test $ac_count -gt 10 && break
4260 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4263 $ac_path_EGREP_found && break 3
4268 if test -z "$ac_cv_path_EGREP"; then
4269 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4272 ac_cv_path_EGREP=$EGREP
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4278 $as_echo "$ac_cv_path_EGREP" >&6; }
4279 EGREP="$ac_cv_path_EGREP"
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4283 $as_echo_n "checking for ANSI C header files... " >&6; }
4284 if ${ac_cv_header_stdc+:} false; then :
4285 $as_echo_n "(cached) " >&6
4287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4288 /* end confdefs.h. */
4302 if ac_fn_c_try_compile "$LINENO"; then :
4303 ac_cv_header_stdc=yes
4305 ac_cv_header_stdc=no
4307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4309 if test $ac_cv_header_stdc = yes; then
4310 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4312 /* end confdefs.h. */
4316 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4317 $EGREP "memchr" >/dev/null 2>&1; then :
4320 ac_cv_header_stdc=no
4326 if test $ac_cv_header_stdc = yes; then
4327 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4329 /* end confdefs.h. */
4333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4334 $EGREP "free" >/dev/null 2>&1; then :
4337 ac_cv_header_stdc=no
4343 if test $ac_cv_header_stdc = yes; then
4344 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4345 if test "$cross_compiling" = yes; then :
4348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4349 /* end confdefs.h. */
4352 #if ((' ' & 0x0FF) == 0x020)
4353 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4354 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4356 # define ISLOWER(c) \
4357 (('a' <= (c) && (c) <= 'i') \
4358 || ('j' <= (c) && (c) <= 'r') \
4359 || ('s' <= (c) && (c) <= 'z'))
4360 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4363 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4368 for (i = 0; i < 256; i++)
4369 if (XOR (islower (i), ISLOWER (i))
4370 || toupper (i) != TOUPPER (i))
4375 if ac_fn_c_try_run "$LINENO"; then :
4378 ac_cv_header_stdc=no
4380 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4381 conftest.$ac_objext conftest.beam conftest.$ac_ext
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4387 $as_echo "$ac_cv_header_stdc" >&6; }
4388 if test $ac_cv_header_stdc = yes; then
4390 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4394 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4395 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4396 inttypes.h stdint.h unistd.h
4398 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4399 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4401 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4402 cat >>confdefs.h <<_ACEOF
4403 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4414 for ac_header in $ac_header_list
4416 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4417 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4419 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4420 cat >>confdefs.h <<_ACEOF
4421 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4435 for ac_func in getpagesize
4437 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
4438 if test "x$ac_cv_func_getpagesize" = xyes; then :
4439 cat >>confdefs.h <<_ACEOF
4440 #define HAVE_GETPAGESIZE 1
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
4447 $as_echo_n "checking for working mmap... " >&6; }
4448 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
4449 $as_echo_n "(cached) " >&6
4451 if test "$cross_compiling" = yes; then :
4452 ac_cv_func_mmap_fixed_mapped=no
4454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4455 /* end confdefs.h. */
4456 $ac_includes_default
4457 /* malloc might have been renamed as rpl_malloc. */
4460 /* Thanks to Mike Haertel and Jim Avera for this test.
4461 Here is a matrix of mmap possibilities:
4462 mmap private not fixed
4463 mmap private fixed at somewhere currently unmapped
4464 mmap private fixed at somewhere already mapped
4465 mmap shared not fixed
4466 mmap shared fixed at somewhere currently unmapped
4467 mmap shared fixed at somewhere already mapped
4468 For private mappings, we should verify that changes cannot be read()
4469 back from the file, nor mmap's back from the file at a different
4470 address. (There have been systems where private was not correctly
4471 implemented like the infamous i386 svr4.0, and systems where the
4472 VM page cache was not coherent with the file system buffer cache
4473 like early versions of FreeBSD and possibly contemporary NetBSD.)
4474 For shared mappings, we should conversely verify that changes get
4475 propagated back to all the places they're supposed to be.
4477 Grep wants private fixed already mapped.
4478 The main things grep needs to know about mmap are:
4479 * does it exist and is it safe to write into the mmap'd area
4480 * how to use it (BSD variants) */
4483 #include <sys/mman.h>
4485 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
4489 /* This mess was copied from the GNU getpagesize.h. */
4490 #ifndef HAVE_GETPAGESIZE
4491 # ifdef _SC_PAGESIZE
4492 # define getpagesize() sysconf(_SC_PAGESIZE)
4493 # else /* no _SC_PAGESIZE */
4494 # ifdef HAVE_SYS_PARAM_H
4495 # include <sys/param.h>
4496 # ifdef EXEC_PAGESIZE
4497 # define getpagesize() EXEC_PAGESIZE
4498 # else /* no EXEC_PAGESIZE */
4500 # define getpagesize() NBPG * CLSIZE
4503 # endif /* no CLSIZE */
4504 # else /* no NBPG */
4506 # define getpagesize() NBPC
4507 # else /* no NBPC */
4509 # define getpagesize() PAGESIZE
4510 # endif /* PAGESIZE */
4511 # endif /* no NBPC */
4512 # endif /* no NBPG */
4513 # endif /* no EXEC_PAGESIZE */
4514 # else /* no HAVE_SYS_PARAM_H */
4515 # define getpagesize() 8192 /* punt totally */
4516 # endif /* no HAVE_SYS_PARAM_H */
4517 # endif /* no _SC_PAGESIZE */
4519 #endif /* no HAVE_GETPAGESIZE */
4524 char *data, *data2, *data3;
4529 pagesize = getpagesize ();
4531 /* First, make a file with some known garbage in it. */
4532 data = (char *) malloc (pagesize);
4535 for (i = 0; i < pagesize; ++i)
4536 *(data + i) = rand ();
4538 fd = creat ("conftest.mmap", 0600);
4541 if (write (fd, data, pagesize) != pagesize)
4545 /* Next, check that the tail of a page is zero-filled. File must have
4546 non-zero length, otherwise we risk SIGBUS for entire page. */
4547 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
4551 if (write (fd2, cdata2, 1) != 1)
4553 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
4554 if (data2 == MAP_FAILED)
4556 for (i = 0; i < pagesize; ++i)
4560 if (munmap (data2, pagesize))
4563 /* Next, try to mmap the file at a fixed address which already has
4564 something else allocated at it. If we can, also make sure that
4565 we see the same garbage. */
4566 fd = open ("conftest.mmap", O_RDWR);
4569 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4570 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4572 for (i = 0; i < pagesize; ++i)
4573 if (*(data + i) != *(data2 + i))
4576 /* Finally, make sure that changes to the mapped area do not
4577 percolate back to the file as seen by read(). (This is a bug on
4578 some variants of i386 svr4.0.) */
4579 for (i = 0; i < pagesize; ++i)
4580 *(data2 + i) = *(data2 + i) + 1;
4581 data3 = (char *) malloc (pagesize);
4584 if (read (fd, data3, pagesize) != pagesize)
4586 for (i = 0; i < pagesize; ++i)
4587 if (*(data + i) != *(data3 + i))
4593 if ac_fn_c_try_run "$LINENO"; then :
4594 ac_cv_func_mmap_fixed_mapped=yes
4596 ac_cv_func_mmap_fixed_mapped=no
4598 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4599 conftest.$ac_objext conftest.beam conftest.$ac_ext
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
4604 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
4605 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4607 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
4610 rm -f conftest.mmap conftest.txt
4613 # Checks for header files.
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4615 $as_echo_n "checking for ANSI C header files... " >&6; }
4616 if ${ac_cv_header_stdc+:} false; then :
4617 $as_echo_n "(cached) " >&6
4619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4620 /* end confdefs.h. */
4634 if ac_fn_c_try_compile "$LINENO"; then :
4635 ac_cv_header_stdc=yes
4637 ac_cv_header_stdc=no
4639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4641 if test $ac_cv_header_stdc = yes; then
4642 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4644 /* end confdefs.h. */
4648 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4649 $EGREP "memchr" >/dev/null 2>&1; then :
4652 ac_cv_header_stdc=no
4658 if test $ac_cv_header_stdc = yes; then
4659 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4661 /* end confdefs.h. */
4665 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4666 $EGREP "free" >/dev/null 2>&1; then :
4669 ac_cv_header_stdc=no
4675 if test $ac_cv_header_stdc = yes; then
4676 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4677 if test "$cross_compiling" = yes; then :
4680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4681 /* end confdefs.h. */
4684 #if ((' ' & 0x0FF) == 0x020)
4685 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4686 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4688 # define ISLOWER(c) \
4689 (('a' <= (c) && (c) <= 'i') \
4690 || ('j' <= (c) && (c) <= 'r') \
4691 || ('s' <= (c) && (c) <= 'z'))
4692 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4695 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4700 for (i = 0; i < 256; i++)
4701 if (XOR (islower (i), ISLOWER (i))
4702 || toupper (i) != TOUPPER (i))
4707 if ac_fn_c_try_run "$LINENO"; then :
4710 ac_cv_header_stdc=no
4712 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4713 conftest.$ac_objext conftest.beam conftest.$ac_ext
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4719 $as_echo "$ac_cv_header_stdc" >&6; }
4720 if test $ac_cv_header_stdc = yes; then
4722 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4726 # AC_CHECK_HEADERS([ ])
4728 # Determine PIC flag.
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PIC compiler flag" >&5
4732 $as_echo_n "checking for PIC compiler flag... " >&6; }
4733 if test "$GCC" = yes; then
4735 *-*-cygwin* | *-*-mingw*)
4736 # Cygwin and Mingw[-w32/64] do not need -fPIC.
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"<none>\"" >&5
4738 $as_echo "\"<none>\"" >&6; }
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -fPIC" >&5
4742 $as_echo "-fPIC" >&6; }
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc -fPIC causes __PIC__ definition" >&5
4745 $as_echo_n "checking whether gcc -fPIC causes __PIC__ definition... " >&6; }
4746 # Workaround: at least GCC 3.4.6 (Solaris) does not define this macro.
4747 old_CFLAGS="$CFLAGS"
4748 CFLAGS="$PICFLAG $CFLAGS"
4749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4750 /* end confdefs.h. */
4764 if ac_fn_c_try_compile "$LINENO"; then :
4769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4770 CFLAGS="$old_CFLAGS"
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pic_macro" >&5
4772 $as_echo "$ac_cv_pic_macro" >&6; }
4773 if test "$ac_cv_pic_macro" = yes; then :
4776 PICFLAG="-D__PIC__=1 $PICFLAG"
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"+Z\"" >&5
4784 $as_echo "\"+Z\"" >&6; }
4786 CFLAGS="$CFLAGS +O2 -mt"
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -Kpic" >&5
4790 $as_echo "-Kpic" >&6; }
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -fPIC" >&5
4797 $as_echo "-fPIC" >&6; }
4799 # Any Linux compiler had better be gcc compatible.
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"<none>\"" >&5
4803 $as_echo "\"<none>\"" >&6; }
4807 CFLAGS="$CFLAGS -DNDEBUG"
4815 ## Libraries needed to support threads.
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
4817 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
4818 if ${ac_cv_lib_pthread_pthread_self+:} false; then :
4819 $as_echo_n "(cached) " >&6
4821 ac_check_lib_save_LIBS=$LIBS
4822 LIBS="-lpthread $LIBS"
4823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4824 /* end confdefs.h. */
4826 /* Override any GCC internal prototype to avoid an error.
4827 Use char because int might match the return type of a GCC
4828 builtin and then its argument prototype would still apply. */
4832 char pthread_self ();
4836 return pthread_self ();
4841 if ac_fn_c_try_link "$LINENO"; then :
4842 ac_cv_lib_pthread_pthread_self=yes
4844 ac_cv_lib_pthread_pthread_self=no
4846 rm -f core conftest.err conftest.$ac_objext \
4847 conftest$ac_exeext conftest.$ac_ext
4848 LIBS=$ac_check_lib_save_LIBS
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
4851 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
4852 if test "x$ac_cv_lib_pthread_pthread_self" = xyes; then :
4853 THREADDLLIBS="-lpthread"
4857 $as_echo "#define _REENTRANT 1" >>confdefs.h
4861 $as_echo "#define _PTHREADS 1" >>confdefs.h
4864 *-*-openbsd* | *-*-kfreebsd*-gnu | *-*-dgux*)
4865 THREADDLLIBS=-pthread
4867 *-*-cygwin* | *-*-darwin*)
4877 if test x$have_pthreads = xtrue; then
4878 HAVE_PTHREAD_H_TRUE=
4879 HAVE_PTHREAD_H_FALSE='#'
4881 HAVE_PTHREAD_H_TRUE='#'
4882 HAVE_PTHREAD_H_FALSE=
4885 if test x$need_asm = xtrue; then
4894 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"
4896 ac_config_commands="$ac_config_commands default"
4898 cat >confcache <<\_ACEOF
4899 # This file is a shell script that caches the results of configure
4900 # tests run on this system so they can be shared between configure
4901 # scripts and configure runs, see configure's option --config-cache.
4902 # It is not useful on other systems. If it contains results you don't
4903 # want to keep, you may remove or edit it.
4905 # config.status only pays attention to the cache file if you give it
4906 # the --recheck option to rerun configure.
4908 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4909 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4914 # The following way of writing the cache mishandles newlines in values,
4915 # but we know of no workaround that is simple, portable, and efficient.
4916 # So, we kill variables containing newlines.
4917 # Ultrix sh set writes to stderr and can't be redirected directly,
4918 # and sets the high bit in the cache file unless we assign to the vars.
4920 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4921 eval ac_val=\$$ac_var
4925 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4926 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4929 _ | IFS | as_nl) ;; #(
4930 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4931 *) { eval $ac_var=; unset $ac_var;} ;;
4937 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4938 *${as_nl}ac_space=\ *)
4939 # `set' does not quote correctly, so add quotes: double-quote
4940 # substitution turns \\\\ into \\, and sed turns \\ into \.
4943 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4946 # `set' quotes correctly as required by POSIX, so do not add quotes.
4947 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4956 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4958 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4960 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4961 if test -w "$cache_file"; then
4962 if test "x$cache_file" != "x/dev/null"; then
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4964 $as_echo "$as_me: updating cache $cache_file" >&6;}
4965 if test ! -f "$cache_file" || test -h "$cache_file"; then
4966 cat confcache >"$cache_file"
4968 case $cache_file in #(
4970 mv -f confcache "$cache_file"$$ &&
4971 mv -f "$cache_file"$$ "$cache_file" ;; #(
4973 mv -f confcache "$cache_file" ;;
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4979 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4984 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4985 # Let make expand exec_prefix.
4986 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4988 DEFS=-DHAVE_CONFIG_H
4993 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4994 # 1. Remove the extension, and $U if already installed.
4995 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4996 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4997 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4998 # will be set to the directory where LIBOBJS objects are built.
4999 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5000 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5004 LTLIBOBJS=$ac_ltlibobjs
5007 if test -n "$EXEEXT"; then
5009 am__EXEEXT_FALSE='#'
5015 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5016 as_fn_error $? "conditional \"AMDEP\" was never defined.
5017 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5019 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5020 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
5021 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5023 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
5024 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
5025 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5027 if test -z "${HAVE_PTHREAD_H_TRUE}" && test -z "${HAVE_PTHREAD_H_FALSE}"; then
5028 as_fn_error $? "conditional \"HAVE_PTHREAD_H\" was never defined.
5029 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5031 if test -z "${NEED_ASM_TRUE}" && test -z "${NEED_ASM_FALSE}"; then
5032 as_fn_error $? "conditional \"NEED_ASM\" was never defined.
5033 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5036 : "${CONFIG_STATUS=./config.status}"
5038 ac_clean_files_save=$ac_clean_files
5039 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5041 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5043 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5045 # Generated by $as_me.
5046 # Run this file to recreate the current configuration.
5047 # Compiler output produced by configure, useful for debugging
5048 # configure, is in config.log if it exists.
5054 SHELL=\${CONFIG_SHELL-$SHELL}
5057 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5058 ## -------------------- ##
5059 ## M4sh Initialization. ##
5060 ## -------------------- ##
5062 # Be more Bourne compatible
5063 DUALCASE=1; export DUALCASE # for MKS sh
5064 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5067 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5068 # is contrary to our usage. Disable this feature.
5069 alias -g '${1+"$@"}'='"$@"'
5070 setopt NO_GLOB_SUBST
5072 case `(set -o) 2>/dev/null` in #(
5084 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5085 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5086 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5087 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5088 # Prefer a ksh shell builtin over an external printf program on Solaris,
5089 # but without wasting forks for bash or zsh.
5090 if test -z "$BASH_VERSION$ZSH_VERSION" \
5091 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5092 as_echo='print -r --'
5093 as_echo_n='print -rn --'
5094 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5095 as_echo='printf %s\n'
5096 as_echo_n='printf %s'
5098 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5099 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5100 as_echo_n='/usr/ucb/echo -n'
5102 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5103 as_echo_n_body='eval
5107 expr "X$arg" : "X\\(.*\\)$as_nl";
5108 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5110 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5112 export as_echo_n_body
5113 as_echo_n='sh -c $as_echo_n_body as_echo'
5116 as_echo='sh -c $as_echo_body as_echo'
5119 # The user is always right.
5120 if test "${PATH_SEPARATOR+set}" != set; then
5122 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5123 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5130 # We need space, tab and new line, in precisely that order. Quoting is
5131 # there to prevent editors from complaining about space-tab.
5132 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5133 # splitting by setting IFS to empty value.)
5136 # Find who we are. Look in the path if we contain no directory separator.
5139 *[\\/]* ) as_myself=$0 ;;
5140 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5144 test -z "$as_dir" && as_dir=.
5145 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5151 # We did not find ourselves, most probably we were run as `sh COMMAND'
5152 # in which case we are not to be found in the path.
5153 if test "x$as_myself" = x; then
5156 if test ! -f "$as_myself"; then
5157 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5161 # Unset variables that we do not need and which cause bugs (e.g. in
5162 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5163 # suppresses any "Segmentation fault" message there. '((' could
5164 # trigger a bug in pdksh 5.2.14.
5165 for as_var in BASH_ENV ENV MAIL MAILPATH
5166 do eval test x\${$as_var+set} = xset \
5167 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5180 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5183 # as_fn_error STATUS ERROR [LINENO LOG_FD]
5184 # ----------------------------------------
5185 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5186 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5187 # script with STATUS, using 1 if that was 0.
5190 as_status=$1; test $as_status -eq 0 && as_status=1
5192 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5193 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5195 $as_echo "$as_me: error: $2" >&2
5196 as_fn_exit $as_status
5200 # as_fn_set_status STATUS
5201 # -----------------------
5202 # Set $? to STATUS, without forking.
5206 } # as_fn_set_status
5210 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5220 # Portably unset VAR.
5223 { eval $1=; unset $1;}
5225 as_unset=as_fn_unset
5226 # as_fn_append VAR VALUE
5227 # ----------------------
5228 # Append the text in VALUE to the end of the definition contained in VAR. Take
5229 # advantage of any shell optimizations that allow amortized linear growth over
5230 # repeated appends, instead of the typical quadratic growth present in naive
5232 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5233 eval 'as_fn_append ()
5244 # as_fn_arith ARG...
5245 # ------------------
5246 # Perform arithmetic evaluation on the ARGs, and store the result in the
5247 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5248 # must be portable across $(()) and expr.
5249 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5250 eval 'as_fn_arith ()
5257 as_val=`expr "$@" || test $? -eq 1`
5262 if expr a : '\(a\)' >/dev/null 2>&1 &&
5263 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5269 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5270 as_basename=basename
5275 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5281 as_me=`$as_basename -- "$0" ||
5282 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5283 X"$0" : 'X\(//\)$' \| \
5284 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5286 sed '/^.*\/\([^/][^/]*\)\/*$/{
5300 # Avoid depending upon Character Ranges.
5301 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5302 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5303 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5304 as_cr_digits='0123456789'
5305 as_cr_alnum=$as_cr_Letters$as_cr_digits
5307 ECHO_C= ECHO_N= ECHO_T=
5308 case `echo -n x` in #(((((
5310 case `echo 'xy\c'` in
5311 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5313 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5320 rm -f conf$$ conf$$.exe conf$$.file
5321 if test -d conf$$.dir; then
5322 rm -f conf$$.dir/conf$$.file
5325 mkdir conf$$.dir 2>/dev/null
5327 if (echo >conf$$.file) 2>/dev/null; then
5328 if ln -s conf$$.file conf$$ 2>/dev/null; then
5330 # ... but there are two gotchas:
5331 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5332 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5333 # In both cases, we have to default to `cp -p'.
5334 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5336 elif ln conf$$.file conf$$ 2>/dev/null; then
5344 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5345 rmdir conf$$.dir 2>/dev/null
5350 # Create "$as_dir" as a directory, including parents if necessary.
5355 -*) as_dir=./$as_dir;;
5357 test -d "$as_dir" || eval $as_mkdir_p || {
5361 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5362 *) as_qdir=$as_dir;;
5364 as_dirs="'$as_qdir' $as_dirs"
5365 as_dir=`$as_dirname -- "$as_dir" ||
5366 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5367 X"$as_dir" : 'X\(//\)[^/]' \| \
5368 X"$as_dir" : 'X\(//\)$' \| \
5369 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5370 $as_echo X"$as_dir" |
5371 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5388 test -d "$as_dir" && break
5390 test -z "$as_dirs" || eval "mkdir $as_dirs"
5391 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5395 if mkdir -p . 2>/dev/null; then
5396 as_mkdir_p='mkdir -p "$as_dir"'
5398 test -d ./-p && rmdir ./-p
5402 if test -x / >/dev/null 2>&1; then
5405 if ls -dL / >/dev/null 2>&1; then
5412 if test -d "$1"; then
5418 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
5419 ???[sx]*):;;*)false;;esac;fi
5423 as_executable_p=$as_test_x
5425 # Sed expression to map a string onto a valid CPP name.
5426 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5428 # Sed expression to map a string onto a valid variable name.
5429 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5433 ## ----------------------------------- ##
5434 ## Main body of $CONFIG_STATUS script. ##
5435 ## ----------------------------------- ##
5437 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5439 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5440 # Save the log message, to keep $0 and so on meaningful, and to
5441 # report actual input values of CONFIG_FILES etc. instead of their
5442 # values after options handling.
5444 This file was extended by libatomic_ops $as_me 7.2, which was
5445 generated by GNU Autoconf 2.68. Invocation command line was
5447 CONFIG_FILES = $CONFIG_FILES
5448 CONFIG_HEADERS = $CONFIG_HEADERS
5449 CONFIG_LINKS = $CONFIG_LINKS
5450 CONFIG_COMMANDS = $CONFIG_COMMANDS
5453 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5458 case $ac_config_files in *"
5459 "*) set x $ac_config_files; shift; ac_config_files=$*;;
5462 case $ac_config_headers in *"
5463 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5467 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5468 # Files that config.status was made for.
5469 config_files="$ac_config_files"
5470 config_headers="$ac_config_headers"
5471 config_commands="$ac_config_commands"
5475 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5477 \`$as_me' instantiates files and other configuration actions
5478 from templates according to the current configuration. Unless the files
5479 and actions are specified as TAGs, all are instantiated by default.
5481 Usage: $0 [OPTION]... [TAG]...
5483 -h, --help print this help, then exit
5484 -V, --version print version number and configuration settings, then exit
5485 --config print configuration, then exit
5486 -q, --quiet, --silent
5487 do not print progress messages
5488 -d, --debug don't remove temporary files
5489 --recheck update $as_me by reconfiguring in the same conditions
5490 --file=FILE[:TEMPLATE]
5491 instantiate the configuration file FILE
5492 --header=FILE[:TEMPLATE]
5493 instantiate the configuration header FILE
5495 Configuration files:
5498 Configuration headers:
5501 Configuration commands:
5504 Report bugs to the package provider."
5507 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5508 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5510 libatomic_ops config.status 7.2
5511 configured by $0, generated by GNU Autoconf 2.68,
5512 with options \\"\$ac_cs_config\\"
5514 Copyright (C) 2010 Free Software Foundation, Inc.
5515 This config.status script is free software; the Free Software Foundation
5516 gives unlimited permission to copy, distribute and modify it."
5523 test -n "\$AWK" || AWK=awk
5526 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5527 # The default lists apply if the user does not specify any file.
5533 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5534 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5538 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5550 # Handling of the options.
5551 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5553 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5554 $as_echo "$ac_cs_version"; exit ;;
5555 --config | --confi | --conf | --con | --co | --c )
5556 $as_echo "$ac_cs_config"; exit ;;
5557 --debug | --debu | --deb | --de | --d | -d )
5559 --file | --fil | --fi | --f )
5562 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5563 '') as_fn_error $? "missing file argument" ;;
5565 as_fn_append CONFIG_FILES " '$ac_optarg'"
5566 ac_need_defaults=false;;
5567 --header | --heade | --head | --hea )
5570 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5572 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5573 ac_need_defaults=false;;
5575 # Conflict between --help and --header
5576 as_fn_error $? "ambiguous option: \`$1'
5577 Try \`$0 --help' for more information.";;
5578 --help | --hel | -h )
5579 $as_echo "$ac_cs_usage"; exit ;;
5580 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5581 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5585 -*) as_fn_error $? "unrecognized option: \`$1'
5586 Try \`$0 --help' for more information." ;;
5588 *) as_fn_append ac_config_targets " $1"
5589 ac_need_defaults=false ;;
5595 ac_configure_extra_args=
5597 if $ac_cs_silent; then
5599 ac_configure_extra_args="$ac_configure_extra_args --silent"
5603 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5604 if \$ac_cs_recheck; then
5605 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5607 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5608 CONFIG_SHELL='$SHELL'
5614 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5618 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5619 ## Running $as_me. ##
5625 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5629 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
5631 PICFLAG="${PICFLAG}"
5638 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5640 # Handling of arguments.
5641 for ac_config_target in $ac_config_targets
5643 case $ac_config_target in
5644 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
5645 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5646 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5647 "pkgconfig/atomic_ops.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/atomic_ops.pc" ;;
5648 "pkgconfig/atomic_ops-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/atomic_ops-uninstalled.pc" ;;
5649 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
5650 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
5651 "src/atomic_ops/Makefile") CONFIG_FILES="$CONFIG_FILES src/atomic_ops/Makefile" ;;
5652 "src/atomic_ops/sysdeps/Makefile") CONFIG_FILES="$CONFIG_FILES src/atomic_ops/sysdeps/Makefile" ;;
5653 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
5654 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
5656 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5661 # If the user did not use the arguments to specify the items to instantiate,
5662 # then the envvar interface is used. Set only those that are not.
5663 # We use the long form for the default assignment because of an extremely
5664 # bizarre bug on SunOS 4.1.3.
5665 if $ac_need_defaults; then
5666 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5667 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5668 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5671 # Have a temporary directory for convenience. Make it in the build tree
5672 # simply because there is no reason against having it here, and in addition,
5673 # creating and moving files from /tmp can sometimes cause problems.
5674 # Hook for its removal unless debugging.
5675 # Note that there is a small window in which the directory will not be cleaned:
5676 # after its creation but before its name has been assigned to `$tmp'.
5680 trap 'exit_status=$?
5682 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5684 trap 'as_fn_exit 1' 1 2 13 15
5686 # Create a (secure) tmp directory for tmp files.
5689 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5693 tmp=./conf$$-$RANDOM
5694 (umask 077 && mkdir "$tmp")
5695 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5698 # Set up the scripts for CONFIG_FILES section.
5699 # No need to generate them if there are no CONFIG_FILES.
5700 # This happens for instance with `./config.status config.h'.
5701 if test -n "$CONFIG_FILES"; then
5704 ac_cr=`echo X | tr X '\015'`
5705 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5706 # But we know of no other shell where ac_cr would be empty at this
5707 # point, so we can use a bashism as a fallback.
5708 if test "x$ac_cr" = x; then
5709 eval ac_cr=\$\'\\r\'
5711 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5712 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5718 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5723 echo "cat >conf$$subs.awk <<_ACEOF" &&
5724 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5727 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5728 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5730 for ac_last_try in false false false false false :; do
5731 . ./conf$$subs.sh ||
5732 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5734 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5735 if test $ac_delim_n = $ac_delim_num; then
5737 elif $ac_last_try; then
5738 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5740 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5745 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5746 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5750 s/^/S["/; s/!.*/"]=/
5760 s/\(.\{148\}\)..*/\1/
5762 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5767 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5774 s/\(.\{148\}\)..*/\1/
5776 s/["\\]/\\&/g; s/^/"/; s/$/"/
5780 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5785 ' <conf$$subs.awk | sed '
5790 ' >>$CONFIG_STATUS || ac_write_fail=1
5791 rm -f conf$$subs.awk
5792 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5794 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5795 for (key in S) S_is_set[key] = 1
5801 nfields = split(line, field, "@")
5803 len = length(field[1])
5804 for (i = 2; i < nfields; i++) {
5806 keylen = length(key)
5807 if (S_is_set[key]) {
5809 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5810 len += length(value) + length(field[++i])
5821 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5822 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5823 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5826 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
5827 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5830 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5831 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5832 # trailing colons and then remove the whole line if VPATH becomes empty
5833 # (actually we leave an empty line to preserve line numbers).
5834 if test "x$srcdir" = x.; then
5835 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
5853 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5854 fi # test -n "$CONFIG_FILES"
5856 # Set up the scripts for CONFIG_HEADERS section.
5857 # No need to generate them if there are no CONFIG_HEADERS.
5858 # This happens for instance with `./config.status Makefile'.
5859 if test -n "$CONFIG_HEADERS"; then
5860 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
5864 # Transform confdefs.h into an awk script `defines.awk', embedded as
5865 # here-document in config.status, that substitutes the proper values into
5866 # config.h.in to produce config.h.
5868 # Create a delimiter string that does not exist in confdefs.h, to ease
5869 # handling of long lines.
5871 for ac_last_try in false false :; do
5872 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
5873 if test -z "$ac_tt"; then
5875 elif $ac_last_try; then
5876 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
5878 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5882 # For the awk script, D is an array of macro values keyed by name,
5883 # likewise P contains macro parameters if any. Preserve backslash
5884 # newline sequences.
5886 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5888 s/.\{148\}/&'"$ac_delim"'/g
5891 s/^[ ]*#[ ]*define[ ][ ]*/ /
5898 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5900 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
5904 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5905 D["\1"]=" \3\\\\\\n"\\/p
5907 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5912 s/.\{148\}/&'"$ac_delim"'/g
5917 s/["\\]/\\&/g; s/^/"/; s/$/"/p
5920 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5922 ' <confdefs.h | sed '
5923 s/'"$ac_delim"'/"\\\
5924 "/g' >>$CONFIG_STATUS || ac_write_fail=1
5926 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5927 for (key in D) D_is_set[key] = 1
5930 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5932 split(line, arg, " ")
5933 if (arg[1] == "#") {
5937 defundef = substr(arg[1], 2)
5940 split(mac1, mac2, "(") #)
5942 prefix = substr(line, 1, index(line, defundef) - 1)
5943 if (D_is_set[macro]) {
5944 # Preserve the white space surrounding the "#".
5945 print prefix "define", macro P[macro] D[macro]
5948 # Replace #undef with comments. This is necessary, for example,
5949 # in the case of _POSIX_SOURCE, which is predefined and required
5950 # on some systems where configure will not decide to define it.
5951 if (defundef == "undef") {
5952 print "/*", prefix defundef, macro, "*/"
5960 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5961 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
5962 fi # test -n "$CONFIG_HEADERS"
5965 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
5970 :[FHLC]) ac_mode=$ac_tag; continue;;
5972 case $ac_mode$ac_tag in
5974 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5975 :[FH]-) ac_tag=-:-;;
5976 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5993 -) ac_f="$ac_tmp/stdin";;
5994 *) # Look for the file first in the build tree, then in the source tree
5995 # (if the path is not absolute). The absolute path cannot be DOS-style,
5996 # because $ac_f cannot contain `:'.
6000 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6002 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6004 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6005 as_fn_append ac_file_inputs " '$ac_f'"
6008 # Let's still pretend it is `configure' which instantiates (i.e., don't
6009 # use $as_me), people would be surprised to read:
6010 # /* config.h. Generated by config.status. */
6011 configure_input='Generated from '`
6012 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6014 if test x"$ac_file" != x-; then
6015 configure_input="$ac_file. $configure_input"
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6017 $as_echo "$as_me: creating $ac_file" >&6;}
6019 # Neutralize special characters interpreted by sed in replacement strings.
6020 case $configure_input in #(
6021 *\&* | *\|* | *\\* )
6022 ac_sed_conf_input=`$as_echo "$configure_input" |
6023 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6024 *) ac_sed_conf_input=$configure_input;;
6028 *:-:* | *:-) cat >"$ac_tmp/stdin" \
6029 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6034 ac_dir=`$as_dirname -- "$ac_file" ||
6035 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6036 X"$ac_file" : 'X\(//\)[^/]' \| \
6037 X"$ac_file" : 'X\(//\)$' \| \
6038 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6039 $as_echo X"$ac_file" |
6040 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6057 as_dir="$ac_dir"; as_fn_mkdir_p
6061 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6063 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6064 # A ".." for each directory in $ac_dir_suffix.
6065 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6066 case $ac_top_builddir_sub in
6067 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6068 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6071 ac_abs_top_builddir=$ac_pwd
6072 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6073 # for backward compatibility:
6074 ac_top_builddir=$ac_top_build_prefix
6077 .) # We are building in place.
6079 ac_top_srcdir=$ac_top_builddir_sub
6080 ac_abs_top_srcdir=$ac_pwd ;;
6081 [\\/]* | ?:[\\/]* ) # Absolute name.
6082 ac_srcdir=$srcdir$ac_dir_suffix;
6083 ac_top_srcdir=$srcdir
6084 ac_abs_top_srcdir=$srcdir ;;
6086 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6087 ac_top_srcdir=$ac_top_build_prefix$srcdir
6088 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6090 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6100 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6101 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6105 [\\/$]* | ?:[\\/]* ) ;;
6106 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
6110 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6111 # If the template does not know about datarootdir, expand it.
6112 # FIXME: This hack should be removed a few years after 2.60.
6113 ac_datarootdir_hack=; ac_datarootdir_seen=
6124 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6125 *datarootdir*) ac_datarootdir_seen=yes;;
6126 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6128 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6130 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6131 ac_datarootdir_hack='
6132 s&@datadir@&$datadir&g
6133 s&@docdir@&$docdir&g
6134 s&@infodir@&$infodir&g
6135 s&@localedir@&$localedir&g
6136 s&@mandir@&$mandir&g
6137 s&\\\${datarootdir}&$datarootdir&g' ;;
6141 # Neutralize VPATH when `$srcdir' = `.'.
6142 # Shell code in configure.ac might set extrasub.
6143 # FIXME: do we really want to maintain this feature?
6144 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6145 ac_sed_extra="$ac_vpsub
6148 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6150 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6151 s|@configure_input@|$ac_sed_conf_input|;t t
6152 s&@top_builddir@&$ac_top_builddir_sub&;t t
6153 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6154 s&@srcdir@&$ac_srcdir&;t t
6155 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6156 s&@top_srcdir@&$ac_top_srcdir&;t t
6157 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6158 s&@builddir@&$ac_builddir&;t t
6159 s&@abs_builddir@&$ac_abs_builddir&;t t
6160 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6161 s&@INSTALL@&$ac_INSTALL&;t t
6162 s&@MKDIR_P@&$ac_MKDIR_P&;t t
6163 $ac_datarootdir_hack
6165 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6166 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6168 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6169 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6170 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6171 "$ac_tmp/out"`; test -z "$ac_out"; } &&
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6173 which seems to be undefined. Please make sure it is defined" >&5
6174 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6175 which seems to be undefined. Please make sure it is defined" >&2;}
6177 rm -f "$ac_tmp/stdin"
6179 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6180 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6182 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6188 if test x"$ac_file" != x-; then
6190 $as_echo "/* $configure_input */" \
6191 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6192 } >"$ac_tmp/config.h" \
6193 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6194 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6196 $as_echo "$as_me: $ac_file is unchanged" >&6;}
6199 mv "$ac_tmp/config.h" "$ac_file" \
6200 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6203 $as_echo "/* $configure_input */" \
6204 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6205 || as_fn_error $? "could not create -" "$LINENO" 5
6207 # Compute "$ac_file"'s index in $config_headers.
6210 for _am_header in $config_headers :; do
6212 $_am_arg | $_am_arg:* )
6215 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
6218 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
6219 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6220 X"$_am_arg" : 'X\(//\)[^/]' \| \
6221 X"$_am_arg" : 'X\(//\)$' \| \
6222 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
6223 $as_echo X"$_am_arg" |
6224 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6240 s/.*/./; q'`/stamp-h$_am_stamp_count
6243 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
6244 $as_echo "$as_me: executing $ac_file commands" >&6;}
6249 case $ac_file$ac_mode in
6250 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
6251 # Autoconf 2.62 quotes --file arguments for eval, but not when files
6252 # are listed without --file. Let's play safe and only enable the eval
6253 # if we detect the quoting.
6254 case $CONFIG_FILES in
6255 *\'*) eval set x "$CONFIG_FILES" ;;
6256 *) set x $CONFIG_FILES ;;
6261 # Strip MF so we end up with the name of the file.
6262 mf=`echo "$mf" | sed -e 's/:.*$//'`
6263 # Check whether this is an Automake generated Makefile or not.
6264 # We used to match only the files named `Makefile.in', but
6265 # some people rename them; so instead we look at the file content.
6266 # Grep'ing the first line is not enough: some people post-process
6267 # each Makefile.in and add a new line on top of each file to say so.
6268 # Grep'ing the whole file is not good either: AIX grep has a line
6269 # limit of 2048, but all sed's we know have understand at least 4000.
6270 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
6271 dirpart=`$as_dirname -- "$mf" ||
6272 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6273 X"$mf" : 'X\(//\)[^/]' \| \
6274 X"$mf" : 'X\(//\)$' \| \
6275 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
6277 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6297 # Extract the definition of DEPDIR, am__include, and am__quote
6298 # from the Makefile without running `make'.
6299 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6300 test -z "$DEPDIR" && continue
6301 am__include=`sed -n 's/^am__include = //p' < "$mf"`
6302 test -z "am__include" && continue
6303 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6304 # When using ansi2knr, U may be empty or an underscore; expand it
6305 U=`sed -n 's/^U = //p' < "$mf"`
6306 # Find all dependency output files, they are included files with
6307 # $(DEPDIR) in their names. We invoke sed twice because it is the
6308 # simplest approach to changing $(DEPDIR) to its actual value in the
6310 for file in `sed -n "
6311 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6312 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6313 # Make sure the directory exists.
6314 test -f "$dirpart/$file" && continue
6315 fdir=`$as_dirname -- "$file" ||
6316 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6317 X"$file" : 'X\(//\)[^/]' \| \
6318 X"$file" : 'X\(//\)$' \| \
6319 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
6321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6338 as_dir=$dirpart/$fdir; as_fn_mkdir_p
6339 # echo "creating $dirpart/$file"
6340 echo '# dummy' > "$dirpart/$file"
6353 ac_clean_files=$ac_clean_files_save
6355 test $ac_write_fail = 0 ||
6356 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6359 # configure is writing to config.log, and then calls config.status.
6360 # config.status does its own redirection, appending to config.log.
6361 # Unfortunately, on DOS this fails, as config.log is still kept open
6362 # by configure, so config.status won't be able to write to it; its
6363 # output is simply discarded. So we exec the FD to /dev/null,
6364 # effectively closing config.log, so it can be properly (re)opened and
6365 # appended to by config.status. When coming back to configure, we
6366 # need to make the FD available again.
6367 if test "$no_create" != yes; then
6369 ac_config_status_args=
6370 test "$silent" = yes &&
6371 ac_config_status_args="$ac_config_status_args --quiet"
6373 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6375 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6376 # would make configure fail if this is the last instruction.
6377 $ac_cs_success || as_fn_exit 1
6379 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6381 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}