2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for libatomic_ops 7.2alpha4.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 case \`(set -o) 2>/dev/null\` in #(
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 test -z "$as_dir" && as_dir=.
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
238 SHELL=${CONFIG_SHELL-/bin/sh}
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
249 # Portably unset VAR.
252 { eval $1=; unset $1;}
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
276 # Create "$as_dir" as a directory, including parents if necessary.
281 -*) as_dir=./$as_dir;;
283 test -d "$as_dir" || eval $as_mkdir_p || {
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
314 test -d "$as_dir" && break
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
352 as_val=`expr "$@" || test $? -eq 1`
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
364 as_status=$?; test $as_status -eq 0 && as_status=1
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
446 # Exit status is that of the last command.
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
468 mkdir conf$$.dir 2>/dev/null
470 if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
479 elif ln conf$$.file conf$$ 2>/dev/null; then
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
493 test -d ./-p && rmdir ./-p
497 if test -x / >/dev/null 2>&1; then
500 if ls -dL / >/dev/null 2>&1; then
507 if test -d "$1"; then
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
518 as_executable_p=$as_test_x
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527 exec 7<&0 </dev/null 6>&1
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
537 ac_default_prefix=/usr/local
539 ac_config_libobj_dir=.
546 # Identity of this package.
547 PACKAGE_NAME='libatomic_ops'
548 PACKAGE_TARNAME='libatomic_ops'
549 PACKAGE_VERSION='7.2alpha4'
550 PACKAGE_STRING='libatomic_ops 7.2alpha4'
554 ac_unique_file="src/atomic_ops.c"
555 # Factoring default headers for most tests.
556 ac_includes_default="\
558 #ifdef HAVE_SYS_TYPES_H
559 # include <sys/types.h>
561 #ifdef HAVE_SYS_STAT_H
562 # include <sys/stat.h>
568 # ifdef HAVE_STDLIB_H
573 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
578 #ifdef HAVE_STRINGS_H
579 # include <strings.h>
581 #ifdef HAVE_INTTYPES_H
582 # include <inttypes.h>
591 ac_subst_vars='LTLIBOBJS
599 am__fastdepCCAS_FALSE
629 INSTALL_STRIP_PROGRAM
683 program_transform_name
696 enable_option_checking
697 enable_dependency_tracking
699 ac_precious_vars='build_alias
712 # Initialize some variables set by options.
714 ac_init_version=false
715 ac_unrecognized_opts=
717 # The variables have the same names as the options, with
718 # dashes changed to underlines.
726 program_transform_name=s,x,x,
734 # Installation directory options.
735 # These are left unexpanded so users can "make install exec_prefix=/foo"
736 # and all the variables that are supposed to be based on exec_prefix
737 # by default will actually change.
738 # Use braces instead of parens because sh, perl, etc. also accept them.
739 # (The list follows the same order as the GNU Coding Standards.)
740 bindir='${exec_prefix}/bin'
741 sbindir='${exec_prefix}/sbin'
742 libexecdir='${exec_prefix}/libexec'
743 datarootdir='${prefix}/share'
744 datadir='${datarootdir}'
745 sysconfdir='${prefix}/etc'
746 sharedstatedir='${prefix}/com'
747 localstatedir='${prefix}/var'
748 includedir='${prefix}/include'
749 oldincludedir='/usr/include'
750 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
751 infodir='${datarootdir}/info'
756 libdir='${exec_prefix}/lib'
757 localedir='${datarootdir}/locale'
758 mandir='${datarootdir}/man'
764 # If the previous option needs an argument, assign it.
765 if test -n "$ac_prev"; then
766 eval $ac_prev=\$ac_option
772 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
776 # Accept the important Cygnus configure options, so we can diagnose typos.
778 case $ac_dashdash$ac_option in
782 -bindir | --bindir | --bindi | --bind | --bin | --bi)
784 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
787 -build | --build | --buil | --bui | --bu)
788 ac_prev=build_alias ;;
789 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
790 build_alias=$ac_optarg ;;
792 -cache-file | --cache-file | --cache-fil | --cache-fi \
793 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
794 ac_prev=cache_file ;;
795 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
796 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
797 cache_file=$ac_optarg ;;
800 cache_file=config.cache ;;
802 -datadir | --datadir | --datadi | --datad)
804 -datadir=* | --datadir=* | --datadi=* | --datad=*)
805 datadir=$ac_optarg ;;
807 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
808 | --dataroo | --dataro | --datar)
809 ac_prev=datarootdir ;;
810 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
811 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
812 datarootdir=$ac_optarg ;;
814 -disable-* | --disable-*)
815 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
816 # Reject names that are not valid shell variable names.
817 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
818 as_fn_error "invalid feature name: $ac_useropt"
819 ac_useropt_orig=$ac_useropt
820 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
821 case $ac_user_opts in
825 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
826 ac_unrecognized_sep=', ';;
828 eval enable_$ac_useropt=no ;;
830 -docdir | --docdir | --docdi | --doc | --do)
832 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
835 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
837 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
840 -enable-* | --enable-*)
841 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
842 # Reject names that are not valid shell variable names.
843 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
844 as_fn_error "invalid feature name: $ac_useropt"
845 ac_useropt_orig=$ac_useropt
846 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
847 case $ac_user_opts in
851 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
852 ac_unrecognized_sep=', ';;
854 eval enable_$ac_useropt=\$ac_optarg ;;
856 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
857 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
858 | --exec | --exe | --ex)
859 ac_prev=exec_prefix ;;
860 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
861 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
862 | --exec=* | --exe=* | --ex=*)
863 exec_prefix=$ac_optarg ;;
865 -gas | --gas | --ga | --g)
866 # Obsolete; use --with-gas.
869 -help | --help | --hel | --he | -h)
871 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
872 ac_init_help=recursive ;;
873 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
874 ac_init_help=short ;;
876 -host | --host | --hos | --ho)
877 ac_prev=host_alias ;;
878 -host=* | --host=* | --hos=* | --ho=*)
879 host_alias=$ac_optarg ;;
881 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
883 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
885 htmldir=$ac_optarg ;;
887 -includedir | --includedir | --includedi | --included | --include \
888 | --includ | --inclu | --incl | --inc)
889 ac_prev=includedir ;;
890 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
891 | --includ=* | --inclu=* | --incl=* | --inc=*)
892 includedir=$ac_optarg ;;
894 -infodir | --infodir | --infodi | --infod | --info | --inf)
896 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
897 infodir=$ac_optarg ;;
899 -libdir | --libdir | --libdi | --libd)
901 -libdir=* | --libdir=* | --libdi=* | --libd=*)
904 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
905 | --libexe | --libex | --libe)
906 ac_prev=libexecdir ;;
907 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
908 | --libexe=* | --libex=* | --libe=*)
909 libexecdir=$ac_optarg ;;
911 -localedir | --localedir | --localedi | --localed | --locale)
913 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
914 localedir=$ac_optarg ;;
916 -localstatedir | --localstatedir | --localstatedi | --localstated \
917 | --localstate | --localstat | --localsta | --localst | --locals)
918 ac_prev=localstatedir ;;
919 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
920 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
921 localstatedir=$ac_optarg ;;
923 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
925 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
929 # Obsolete; use --without-fp.
932 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
933 | --no-cr | --no-c | -n)
936 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
937 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
940 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
941 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
942 | --oldin | --oldi | --old | --ol | --o)
943 ac_prev=oldincludedir ;;
944 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
945 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
946 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
947 oldincludedir=$ac_optarg ;;
949 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
951 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
954 -program-prefix | --program-prefix | --program-prefi | --program-pref \
955 | --program-pre | --program-pr | --program-p)
956 ac_prev=program_prefix ;;
957 -program-prefix=* | --program-prefix=* | --program-prefi=* \
958 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
959 program_prefix=$ac_optarg ;;
961 -program-suffix | --program-suffix | --program-suffi | --program-suff \
962 | --program-suf | --program-su | --program-s)
963 ac_prev=program_suffix ;;
964 -program-suffix=* | --program-suffix=* | --program-suffi=* \
965 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
966 program_suffix=$ac_optarg ;;
968 -program-transform-name | --program-transform-name \
969 | --program-transform-nam | --program-transform-na \
970 | --program-transform-n | --program-transform- \
971 | --program-transform | --program-transfor \
972 | --program-transfo | --program-transf \
973 | --program-trans | --program-tran \
974 | --progr-tra | --program-tr | --program-t)
975 ac_prev=program_transform_name ;;
976 -program-transform-name=* | --program-transform-name=* \
977 | --program-transform-nam=* | --program-transform-na=* \
978 | --program-transform-n=* | --program-transform-=* \
979 | --program-transform=* | --program-transfor=* \
980 | --program-transfo=* | --program-transf=* \
981 | --program-trans=* | --program-tran=* \
982 | --progr-tra=* | --program-tr=* | --program-t=*)
983 program_transform_name=$ac_optarg ;;
985 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
987 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
990 -psdir | --psdir | --psdi | --psd | --ps)
992 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
995 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
996 | -silent | --silent | --silen | --sile | --sil)
999 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1001 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1003 sbindir=$ac_optarg ;;
1005 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1006 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1007 | --sharedst | --shareds | --shared | --share | --shar \
1009 ac_prev=sharedstatedir ;;
1010 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1011 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1012 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1014 sharedstatedir=$ac_optarg ;;
1016 -site | --site | --sit)
1018 -site=* | --site=* | --sit=*)
1021 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1023 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1024 srcdir=$ac_optarg ;;
1026 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1027 | --syscon | --sysco | --sysc | --sys | --sy)
1028 ac_prev=sysconfdir ;;
1029 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1030 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1031 sysconfdir=$ac_optarg ;;
1033 -target | --target | --targe | --targ | --tar | --ta | --t)
1034 ac_prev=target_alias ;;
1035 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1036 target_alias=$ac_optarg ;;
1038 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1041 -version | --version | --versio | --versi | --vers | -V)
1042 ac_init_version=: ;;
1045 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1046 # Reject names that are not valid shell variable names.
1047 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1048 as_fn_error "invalid package name: $ac_useropt"
1049 ac_useropt_orig=$ac_useropt
1050 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1051 case $ac_user_opts in
1055 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1056 ac_unrecognized_sep=', ';;
1058 eval with_$ac_useropt=\$ac_optarg ;;
1060 -without-* | --without-*)
1061 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1062 # Reject names that are not valid shell variable names.
1063 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1064 as_fn_error "invalid package name: $ac_useropt"
1065 ac_useropt_orig=$ac_useropt
1066 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1067 case $ac_user_opts in
1071 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1072 ac_unrecognized_sep=', ';;
1074 eval with_$ac_useropt=no ;;
1077 # Obsolete; use --with-x.
1080 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1081 | --x-incl | --x-inc | --x-in | --x-i)
1082 ac_prev=x_includes ;;
1083 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1084 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1085 x_includes=$ac_optarg ;;
1087 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1088 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1089 ac_prev=x_libraries ;;
1090 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1091 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1092 x_libraries=$ac_optarg ;;
1094 -*) as_fn_error "unrecognized option: \`$ac_option'
1095 Try \`$0 --help' for more information."
1099 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1100 # Reject names that are not valid shell variable names.
1101 case $ac_envvar in #(
1102 '' | [0-9]* | *[!_$as_cr_alnum]* )
1103 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1105 eval $ac_envvar=\$ac_optarg
1106 export $ac_envvar ;;
1109 # FIXME: should be removed in autoconf 3.0.
1110 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1111 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1112 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1113 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1119 if test -n "$ac_prev"; then
1120 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1121 as_fn_error "missing argument to $ac_option"
1124 if test -n "$ac_unrecognized_opts"; then
1125 case $enable_option_checking in
1127 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1128 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1132 # Check all directory arguments for consistency.
1133 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1134 datadir sysconfdir sharedstatedir localstatedir includedir \
1135 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1136 libdir localedir mandir
1138 eval ac_val=\$$ac_var
1139 # Remove trailing slashes.
1142 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1143 eval $ac_var=\$ac_val;;
1145 # Be sure to have absolute directory names.
1147 [\\/$]* | ?:[\\/]* ) continue;;
1148 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1150 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1153 # There might be people who depend on the old broken behavior: `$host'
1154 # used to hold the argument of --host etc.
1155 # FIXME: To remove some day.
1158 target=$target_alias
1160 # FIXME: To remove some day.
1161 if test "x$host_alias" != x; then
1162 if test "x$build_alias" = x; then
1163 cross_compiling=maybe
1164 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1165 If a cross compiler is detected then cross compile mode will be used." >&2
1166 elif test "x$build_alias" != "x$host_alias"; then
1172 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1174 test "$silent" = yes && exec 6>/dev/null
1177 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1178 ac_ls_di=`ls -di .` &&
1179 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1180 as_fn_error "working directory cannot be determined"
1181 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1182 as_fn_error "pwd does not report name of working directory"
1185 # Find the source files, if location was not specified.
1186 if test -z "$srcdir"; then
1187 ac_srcdir_defaulted=yes
1188 # Try the directory containing this script, then the parent directory.
1189 ac_confdir=`$as_dirname -- "$as_myself" ||
1190 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1191 X"$as_myself" : 'X\(//\)[^/]' \| \
1192 X"$as_myself" : 'X\(//\)$' \| \
1193 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1194 $as_echo X"$as_myself" |
1195 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1213 if test ! -r "$srcdir/$ac_unique_file"; then
1217 ac_srcdir_defaulted=no
1219 if test ! -r "$srcdir/$ac_unique_file"; then
1220 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1221 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1223 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1225 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1227 # When building in place, set srcdir=.
1228 if test "$ac_abs_confdir" = "$ac_pwd"; then
1231 # Remove unnecessary trailing slashes from srcdir.
1232 # Double slashes in file names in object file debugging info
1233 # mess up M-x gdb in Emacs.
1235 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1237 for ac_var in $ac_precious_vars; do
1238 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1239 eval ac_env_${ac_var}_value=\$${ac_var}
1240 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1241 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1245 # Report the --help message.
1247 if test "$ac_init_help" = "long"; then
1248 # Omit some internal or obsolete options to make the list less imposing.
1249 # This message is too long to be a string in the A/UX 3.1 sh.
1251 \`configure' configures libatomic_ops 7.2alpha4 to adapt to many kinds of systems.
1253 Usage: $0 [OPTION]... [VAR=VALUE]...
1255 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1256 VAR=VALUE. See below for descriptions of some of the useful variables.
1258 Defaults for the options are specified in brackets.
1261 -h, --help display this help and exit
1262 --help=short display options specific to this package
1263 --help=recursive display the short help of all the included packages
1264 -V, --version display version information and exit
1265 -q, --quiet, --silent do not print \`checking...' messages
1266 --cache-file=FILE cache test results in FILE [disabled]
1267 -C, --config-cache alias for \`--cache-file=config.cache'
1268 -n, --no-create do not create output files
1269 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1271 Installation directories:
1272 --prefix=PREFIX install architecture-independent files in PREFIX
1273 [$ac_default_prefix]
1274 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1277 By default, \`make install' will install all the files in
1278 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1279 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1280 for instance \`--prefix=\$HOME'.
1282 For better control, use the options below.
1284 Fine tuning of the installation directories:
1285 --bindir=DIR user executables [EPREFIX/bin]
1286 --sbindir=DIR system admin executables [EPREFIX/sbin]
1287 --libexecdir=DIR program executables [EPREFIX/libexec]
1288 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1289 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1290 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1291 --libdir=DIR object code libraries [EPREFIX/lib]
1292 --includedir=DIR C header files [PREFIX/include]
1293 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1294 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1295 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1296 --infodir=DIR info documentation [DATAROOTDIR/info]
1297 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1298 --mandir=DIR man documentation [DATAROOTDIR/man]
1299 --docdir=DIR documentation root [DATAROOTDIR/doc/libatomic_ops]
1300 --htmldir=DIR html documentation [DOCDIR]
1301 --dvidir=DIR dvi documentation [DOCDIR]
1302 --pdfdir=DIR pdf documentation [DOCDIR]
1303 --psdir=DIR ps documentation [DOCDIR]
1309 --program-prefix=PREFIX prepend PREFIX to installed program names
1310 --program-suffix=SUFFIX append SUFFIX to installed program names
1311 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1314 --build=BUILD configure for building on BUILD [guessed]
1315 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1316 --target=TARGET configure for building compilers for TARGET [HOST]
1320 if test -n "$ac_init_help"; then
1321 case $ac_init_help in
1322 short | recursive ) echo "Configuration of libatomic_ops 7.2alpha4:";;
1327 --disable-option-checking ignore unrecognized --enable/--with options
1328 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1329 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1330 --disable-dependency-tracking speeds up one-time build
1331 --enable-dependency-tracking do not reject slow dependency extractors
1333 Some influential environment variables:
1334 CC C compiler command
1335 CFLAGS C compiler flags
1336 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1337 nonstandard directory <lib dir>
1338 LIBS libraries to pass to the linker, e.g. -l<library>
1339 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1340 you have headers in a nonstandard directory <include dir>
1341 CCAS assembler compiler command (defaults to CC)
1342 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1345 Use these variables to override the choices made by `configure' or to help
1346 it to find libraries and programs with nonstandard names/locations.
1348 Report bugs to the package provider.
1353 if test "$ac_init_help" = "recursive"; then
1354 # If there are subdirs, report their specific --help.
1355 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1356 test -d "$ac_dir" ||
1357 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1362 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1364 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1365 # A ".." for each directory in $ac_dir_suffix.
1366 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1367 case $ac_top_builddir_sub in
1368 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1369 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1372 ac_abs_top_builddir=$ac_pwd
1373 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1374 # for backward compatibility:
1375 ac_top_builddir=$ac_top_build_prefix
1378 .) # We are building in place.
1380 ac_top_srcdir=$ac_top_builddir_sub
1381 ac_abs_top_srcdir=$ac_pwd ;;
1382 [\\/]* | ?:[\\/]* ) # Absolute name.
1383 ac_srcdir=$srcdir$ac_dir_suffix;
1384 ac_top_srcdir=$srcdir
1385 ac_abs_top_srcdir=$srcdir ;;
1387 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1388 ac_top_srcdir=$ac_top_build_prefix$srcdir
1389 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1391 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1393 cd "$ac_dir" || { ac_status=$?; continue; }
1394 # Check for guested configure.
1395 if test -f "$ac_srcdir/configure.gnu"; then
1397 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1398 elif test -f "$ac_srcdir/configure"; then
1400 $SHELL "$ac_srcdir/configure" --help=recursive
1402 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1404 cd "$ac_pwd" || { ac_status=$?; break; }
1408 test -n "$ac_init_help" && exit $ac_status
1409 if $ac_init_version; then
1411 libatomic_ops configure 7.2alpha4
1412 generated by GNU Autoconf 2.64
1414 Copyright (C) 2009 Free Software Foundation, Inc.
1415 This configure script is free software; the Free Software Foundation
1416 gives unlimited permission to copy, distribute and modify it.
1421 ## ------------------------ ##
1422 ## Autoconf initialization. ##
1423 ## ------------------------ ##
1425 # ac_fn_c_try_compile LINENO
1426 # --------------------------
1427 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1428 ac_fn_c_try_compile ()
1430 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1431 rm -f conftest.$ac_objext
1432 if { { ac_try="$ac_compile"
1434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1435 *) ac_try_echo=$ac_try;;
1437 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1438 $as_echo "$ac_try_echo"; } >&5
1439 (eval "$ac_compile") 2>conftest.err
1441 if test -s conftest.err; then
1442 grep -v '^ *+' conftest.err >conftest.er1
1443 cat conftest.er1 >&5
1444 mv -f conftest.er1 conftest.err
1446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1447 test $ac_status = 0; } && {
1448 test -z "$ac_c_werror_flag" ||
1449 test ! -s conftest.err
1450 } && test -s conftest.$ac_objext; then :
1453 $as_echo "$as_me: failed program was:" >&5
1454 sed 's/^/| /' conftest.$ac_ext >&5
1458 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1461 } # ac_fn_c_try_compile
1463 # ac_fn_c_try_cpp LINENO
1464 # ----------------------
1465 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1468 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1469 if { { ac_try="$ac_cpp conftest.$ac_ext"
1471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1472 *) ac_try_echo=$ac_try;;
1474 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1475 $as_echo "$ac_try_echo"; } >&5
1476 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1478 if test -s conftest.err; then
1479 grep -v '^ *+' conftest.err >conftest.er1
1480 cat conftest.er1 >&5
1481 mv -f conftest.er1 conftest.err
1483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1484 test $ac_status = 0; } >/dev/null && {
1485 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1486 test ! -s conftest.err
1490 $as_echo "$as_me: failed program was:" >&5
1491 sed 's/^/| /' conftest.$ac_ext >&5
1495 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1500 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1501 # -------------------------------------------------------
1502 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1503 # the include files in INCLUDES and setting the cache variable VAR
1505 ac_fn_c_check_header_mongrel ()
1507 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1508 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1510 $as_echo_n "checking for $2... " >&6; }
1511 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1512 $as_echo_n "(cached) " >&6
1515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1516 $as_echo "$ac_res" >&6; }
1518 # Is the header compilable?
1519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1520 $as_echo_n "checking $2 usability... " >&6; }
1521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1522 /* end confdefs.h. */
1526 if ac_fn_c_try_compile "$LINENO"; then :
1527 ac_header_compiler=yes
1529 ac_header_compiler=no
1531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1533 $as_echo "$ac_header_compiler" >&6; }
1535 # Is the header present?
1536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1537 $as_echo_n "checking $2 presence... " >&6; }
1538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1539 /* end confdefs.h. */
1542 if ac_fn_c_try_cpp "$LINENO"; then :
1543 ac_header_preproc=yes
1545 ac_header_preproc=no
1547 rm -f conftest.err conftest.$ac_ext
1548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1549 $as_echo "$ac_header_preproc" >&6; }
1551 # So? What about this header?
1552 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1555 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1557 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1561 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1563 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1565 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1567 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1569 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1573 $as_echo_n "checking for $2... " >&6; }
1574 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1575 $as_echo_n "(cached) " >&6
1577 eval "$3=\$ac_header_compiler"
1580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1581 $as_echo "$ac_res" >&6; }
1583 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1585 } # ac_fn_c_check_header_mongrel
1587 # ac_fn_c_try_run LINENO
1588 # ----------------------
1589 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1590 # that executables *can* be run.
1593 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1594 if { { ac_try="$ac_link"
1596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1597 *) ac_try_echo=$ac_try;;
1599 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1600 $as_echo "$ac_try_echo"; } >&5
1601 (eval "$ac_link") 2>&5
1603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1604 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1605 { { case "(($ac_try" in
1606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1607 *) ac_try_echo=$ac_try;;
1609 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1610 $as_echo "$ac_try_echo"; } >&5
1611 (eval "$ac_try") 2>&5
1613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1614 test $ac_status = 0; }; }; then :
1617 $as_echo "$as_me: program exited with status $ac_status" >&5
1618 $as_echo "$as_me: failed program was:" >&5
1619 sed 's/^/| /' conftest.$ac_ext >&5
1621 ac_retval=$ac_status
1623 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1624 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1629 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1630 # -------------------------------------------------------
1631 # Tests whether HEADER exists and can be compiled using the include files in
1632 # INCLUDES, setting the cache variable VAR accordingly.
1633 ac_fn_c_check_header_compile ()
1635 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1637 $as_echo_n "checking for $2... " >&6; }
1638 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1639 $as_echo_n "(cached) " >&6
1641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1642 /* end confdefs.h. */
1646 if ac_fn_c_try_compile "$LINENO"; then :
1651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1655 $as_echo "$ac_res" >&6; }
1656 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1658 } # ac_fn_c_check_header_compile
1660 # ac_fn_c_try_link LINENO
1661 # -----------------------
1662 # Try to link conftest.$ac_ext, and return whether this succeeded.
1665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1666 rm -f conftest.$ac_objext conftest$ac_exeext
1667 if { { ac_try="$ac_link"
1669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1670 *) ac_try_echo=$ac_try;;
1672 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1673 $as_echo "$ac_try_echo"; } >&5
1674 (eval "$ac_link") 2>conftest.err
1676 if test -s conftest.err; then
1677 grep -v '^ *+' conftest.err >conftest.er1
1678 cat conftest.er1 >&5
1679 mv -f conftest.er1 conftest.err
1681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1682 test $ac_status = 0; } && {
1683 test -z "$ac_c_werror_flag" ||
1684 test ! -s conftest.err
1685 } && test -s conftest$ac_exeext && {
1686 test "$cross_compiling" = yes ||
1687 $as_test_x conftest$ac_exeext
1691 $as_echo "$as_me: failed program was:" >&5
1692 sed 's/^/| /' conftest.$ac_ext >&5
1696 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1697 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1698 # interfere with the next link command; also delete a directory that is
1699 # left behind by Apple's compiler. We do this before executing the actions.
1700 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1701 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1704 } # ac_fn_c_try_link
1706 # ac_fn_c_check_func LINENO FUNC VAR
1707 # ----------------------------------
1708 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1709 ac_fn_c_check_func ()
1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1713 $as_echo_n "checking for $2... " >&6; }
1714 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1715 $as_echo_n "(cached) " >&6
1717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1718 /* end confdefs.h. */
1719 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1720 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1721 #define $2 innocuous_$2
1723 /* System header to define __stub macros and hopefully few prototypes,
1724 which can conflict with char $2 (); below.
1725 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1726 <limits.h> exists even on freestanding compilers. */
1729 # include <limits.h>
1731 # include <assert.h>
1736 /* Override any GCC internal prototype to avoid an error.
1737 Use char because int might match the return type of a GCC
1738 builtin and then its argument prototype would still apply. */
1743 /* The GNU C library defines this for functions which it implements
1744 to always fail with ENOSYS. Some functions are actually named
1745 something starting with __ and the normal name is an alias. */
1746 #if defined __stub_$2 || defined __stub___$2
1758 if ac_fn_c_try_link "$LINENO"; then :
1763 rm -f core conftest.err conftest.$ac_objext \
1764 conftest$ac_exeext conftest.$ac_ext
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1768 $as_echo "$ac_res" >&6; }
1769 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1771 } # ac_fn_c_check_func
1772 cat >config.log <<_ACEOF
1773 This file contains any messages produced by compilers while
1774 running configure, to aid debugging if configure makes a mistake.
1776 It was created by libatomic_ops $as_me 7.2alpha4, which was
1777 generated by GNU Autoconf 2.64. Invocation command line was
1789 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1790 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1791 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1792 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1793 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1795 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1796 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1798 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1799 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1800 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1801 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1802 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1803 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1804 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1812 test -z "$as_dir" && as_dir=.
1813 $as_echo "PATH: $as_dir"
1829 # Keep a trace of the command line.
1830 # Strip out --no-create and --no-recursion so they do not pile up.
1831 # Strip out --silent because we don't want to record it for future runs.
1832 # Also quote any args containing shell meta-characters.
1833 # Make two passes to allow for proper duplicate-argument suppression.
1837 ac_must_keep_next=false
1843 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1844 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1845 | -silent | --silent | --silen | --sile | --sil)
1848 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1851 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1853 as_fn_append ac_configure_args1 " '$ac_arg'"
1854 if test $ac_must_keep_next = true; then
1855 ac_must_keep_next=false # Got value, back to normal.
1858 *=* | --config-cache | -C | -disable-* | --disable-* \
1859 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1860 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1861 | -with-* | --with-* | -without-* | --without-* | --x)
1862 case "$ac_configure_args0 " in
1863 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1866 -* ) ac_must_keep_next=true ;;
1869 as_fn_append ac_configure_args " '$ac_arg'"
1874 { ac_configure_args0=; unset ac_configure_args0;}
1875 { ac_configure_args1=; unset ac_configure_args1;}
1877 # When interrupted or exit'd, cleanup temporary files, and complete
1878 # config.log. We remove comments because anyway the quotes in there
1879 # would cause problems or look ugly.
1880 # WARNING: Use '\'' to represent an apostrophe within the trap.
1881 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1882 trap 'exit_status=$?
1883 # Save into config.log some information that might help in debugging.
1888 ## ---------------- ##
1889 ## Cache variables. ##
1890 ## ---------------- ##
1893 # The following way of writing the cache mishandles newlines in values,
1895 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1896 eval ac_val=\$$ac_var
1900 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1901 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1904 _ | IFS | as_nl) ;; #(
1905 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1906 *) { eval $ac_var=; unset $ac_var;} ;;
1911 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1912 *${as_nl}ac_space=\ *)
1914 "s/'\''/'\''\\\\'\'''\''/g;
1915 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1918 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1926 ## ----------------- ##
1927 ## Output variables. ##
1928 ## ----------------- ##
1931 for ac_var in $ac_subst_vars
1933 eval ac_val=\$$ac_var
1935 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1937 $as_echo "$ac_var='\''$ac_val'\''"
1941 if test -n "$ac_subst_files"; then
1943 ## ------------------- ##
1944 ## File substitutions. ##
1945 ## ------------------- ##
1948 for ac_var in $ac_subst_files
1950 eval ac_val=\$$ac_var
1952 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1954 $as_echo "$ac_var='\''$ac_val'\''"
1959 if test -s confdefs.h; then
1969 test "$ac_signal" != 0 &&
1970 $as_echo "$as_me: caught signal $ac_signal"
1971 $as_echo "$as_me: exit $exit_status"
1973 rm -f core *.core core.conftest.* &&
1974 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1977 for ac_signal in 1 2 13 15; do
1978 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1982 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1983 rm -f -r conftest* confdefs.h
1985 $as_echo "/* confdefs.h */" > confdefs.h
1987 # Predefined preprocessor variables.
1989 cat >>confdefs.h <<_ACEOF
1990 #define PACKAGE_NAME "$PACKAGE_NAME"
1993 cat >>confdefs.h <<_ACEOF
1994 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1997 cat >>confdefs.h <<_ACEOF
1998 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2001 cat >>confdefs.h <<_ACEOF
2002 #define PACKAGE_STRING "$PACKAGE_STRING"
2005 cat >>confdefs.h <<_ACEOF
2006 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2009 cat >>confdefs.h <<_ACEOF
2010 #define PACKAGE_URL "$PACKAGE_URL"
2014 # Let the site file select an alternate cache file if it wants to.
2015 # Prefer an explicitly selected file to automatically selected ones.
2018 if test -n "$CONFIG_SITE"; then
2019 ac_site_file1=$CONFIG_SITE
2020 elif test "x$prefix" != xNONE; then
2021 ac_site_file1=$prefix/share/config.site
2022 ac_site_file2=$prefix/etc/config.site
2024 ac_site_file1=$ac_default_prefix/share/config.site
2025 ac_site_file2=$ac_default_prefix/etc/config.site
2027 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2029 test "x$ac_site_file" = xNONE && continue
2030 if test -r "$ac_site_file"; then
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2032 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2033 sed 's/^/| /' "$ac_site_file" >&5
2038 if test -r "$cache_file"; then
2039 # Some versions of bash will fail to source /dev/null (special
2040 # files actually), so we avoid doing that.
2041 if test -f "$cache_file"; then
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2043 $as_echo "$as_me: loading cache $cache_file" >&6;}
2045 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2046 *) . "./$cache_file";;
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2051 $as_echo "$as_me: creating cache $cache_file" >&6;}
2055 # Check that the precious variables saved in the cache have kept the same
2057 ac_cache_corrupted=false
2058 for ac_var in $ac_precious_vars; do
2059 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2060 eval ac_new_set=\$ac_env_${ac_var}_set
2061 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2062 eval ac_new_val=\$ac_env_${ac_var}_value
2063 case $ac_old_set,$ac_new_set in
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2066 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2067 ac_cache_corrupted=: ;;
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2070 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2071 ac_cache_corrupted=: ;;
2074 if test "x$ac_old_val" != "x$ac_new_val"; then
2075 # differences in whitespace do not lead to failure.
2076 ac_old_val_w=`echo x $ac_old_val`
2077 ac_new_val_w=`echo x $ac_new_val`
2078 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2080 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2081 ac_cache_corrupted=:
2083 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2084 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2085 eval $ac_var=\$ac_old_val
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2088 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2090 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2093 # Pass precious variables to config.status.
2094 if test "$ac_new_set" = set; then
2096 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2097 *) ac_arg=$ac_var=$ac_new_val ;;
2099 case " $ac_configure_args " in
2100 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2101 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2105 if $ac_cache_corrupted; then
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2107 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2109 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2110 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2112 ## -------------------- ##
2113 ## Main body of script. ##
2114 ## -------------------- ##
2117 ac_cpp='$CPP $CPPFLAGS'
2118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2124 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2125 for ac_t in install-sh install.sh shtool; do
2126 if test -f "$ac_dir/$ac_t"; then
2128 ac_install_sh="$ac_aux_dir/$ac_t -c"
2133 if test -z "$ac_aux_dir"; then
2134 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2137 # These three variables are undocumented and unsupported,
2138 # and are intended to be withdrawn in a future Autoconf release.
2139 # They can cause serious problems if a builder's source tree is in a directory
2140 # whose full name contains unusual characters.
2141 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2142 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2143 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2146 # Make sure we can run config.sub.
2147 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2148 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2151 $as_echo_n "checking build system type... " >&6; }
2152 if test "${ac_cv_build+set}" = set; then :
2153 $as_echo_n "(cached) " >&6
2155 ac_build_alias=$build_alias
2156 test "x$ac_build_alias" = x &&
2157 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2158 test "x$ac_build_alias" = x &&
2159 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2160 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2161 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2165 $as_echo "$ac_cv_build" >&6; }
2166 case $ac_cv_build in
2168 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2171 ac_save_IFS=$IFS; IFS='-'
2177 # Remember, the first character of IFS is used to create $*,
2178 # except with old shells:
2181 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2185 $as_echo_n "checking host system type... " >&6; }
2186 if test "${ac_cv_host+set}" = set; then :
2187 $as_echo_n "(cached) " >&6
2189 if test "x$host_alias" = x; then
2190 ac_cv_host=$ac_cv_build
2192 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2193 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2198 $as_echo "$ac_cv_host" >&6; }
2201 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2204 ac_save_IFS=$IFS; IFS='-'
2210 # Remember, the first character of IFS is used to create $*,
2211 # except with old shells:
2214 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2218 $as_echo_n "checking target system type... " >&6; }
2219 if test "${ac_cv_target+set}" = set; then :
2220 $as_echo_n "(cached) " >&6
2222 if test "x$target_alias" = x; then
2223 ac_cv_target=$ac_cv_host
2225 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2226 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2231 $as_echo "$ac_cv_target" >&6; }
2232 case $ac_cv_target in
2234 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2236 target=$ac_cv_target
2237 ac_save_IFS=$IFS; IFS='-'
2243 # Remember, the first character of IFS is used to create $*,
2244 # except with old shells:
2247 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2250 # The aliases save the names the user supplied, while $host etc.
2251 # will get canonicalized.
2252 test -n "$target_alias" &&
2253 test "$program_prefix$program_suffix$program_transform_name" = \
2255 program_prefix=${target_alias}-
2257 am__api_version='1.10'
2259 # Find a good install program. We prefer a C program (faster),
2260 # so one script is as good as another. But avoid the broken or
2261 # incompatible versions:
2262 # SysV /etc/install, /usr/sbin/install
2263 # SunOS /usr/etc/install
2264 # IRIX /sbin/install
2266 # AmigaOS /C/install, which installs bootblocks on floppy discs
2267 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2268 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2269 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2270 # OS/2's system install, which has a completely different semantic
2271 # ./install, which can be erroneously created by make from ./install.sh.
2272 # Reject install programs that cannot install multiple files.
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2274 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2275 if test -z "$INSTALL"; then
2276 if test "${ac_cv_path_install+set}" = set; then :
2277 $as_echo_n "(cached) " >&6
2279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2283 test -z "$as_dir" && as_dir=.
2284 # Account for people who put trailing slashes in PATH elements.
2285 case $as_dir/ in #((
2286 ./ | .// | /[cC]/* | \
2287 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2288 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2291 # OSF1 and SCO ODT 3.0 have their own names for install.
2292 # Don't use installbsd from OSF since it installs stuff as root
2294 for ac_prog in ginstall scoinst install; do
2295 for ac_exec_ext in '' $ac_executable_extensions; do
2296 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2297 if test $ac_prog = install &&
2298 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2299 # AIX install. It has an incompatible calling convention.
2301 elif test $ac_prog = install &&
2302 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2303 # program-specific install script used by HP pwplus--don't use.
2306 rm -rf conftest.one conftest.two conftest.dir
2307 echo one > conftest.one
2308 echo two > conftest.two
2310 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2311 test -s conftest.one && test -s conftest.two &&
2312 test -s conftest.dir/conftest.one &&
2313 test -s conftest.dir/conftest.two
2315 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2328 rm -rf conftest.one conftest.two conftest.dir
2331 if test "${ac_cv_path_install+set}" = set; then
2332 INSTALL=$ac_cv_path_install
2334 # As a last resort, use the slow shell script. Don't cache a
2335 # value for INSTALL within a source directory, because that will
2336 # break other packages using the cache if that directory is
2337 # removed, or if the value is a relative name.
2338 INSTALL=$ac_install_sh
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2342 $as_echo "$INSTALL" >&6; }
2344 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2345 # It thinks the first close brace ends the variable substitution.
2346 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2348 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2350 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2353 $as_echo_n "checking whether build environment is sane... " >&6; }
2356 echo timestamp > conftest.file
2357 # Do `set' in a subshell so we don't clobber the current shell's
2358 # arguments. Must try -L first in case configure is actually a
2359 # symlink; some systems play weird games with the mod time of symlinks
2360 # (eg FreeBSD returns the mod time of the symlink's containing
2363 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2364 if test "$*" = "X"; then
2366 set X `ls -t $srcdir/configure conftest.file`
2369 if test "$*" != "X $srcdir/configure conftest.file" \
2370 && test "$*" != "X conftest.file $srcdir/configure"; then
2372 # If neither matched, then we have a broken ls. This can happen
2373 # if, for instance, CONFIG_SHELL is bash and it inherits a
2374 # broken ls alias from the environment. This has actually
2375 # happened. Such a system could not be considered "sane".
2376 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2377 alias in your environment" "$LINENO" 5
2380 test "$2" = conftest.file
2386 as_fn_error "newly created file is older than distributed files!
2387 Check your system clock" "$LINENO" 5
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2390 $as_echo "yes" >&6; }
2391 test "$program_prefix" != NONE &&
2392 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2393 # Use a double $ so make ignores it.
2394 test "$program_suffix" != NONE &&
2395 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2396 # Double any \ or $.
2397 # By default was `s,x,x', remove it if useless.
2398 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2399 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2401 # expand $ac_aux_dir to an absolute path
2402 am_aux_dir=`cd $ac_aux_dir && pwd`
2404 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2405 # Use eval to expand $SHELL
2406 if eval "$MISSING --run true"; then
2407 am_missing_run="$MISSING --run "
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2411 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2415 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2416 if test -z "$MKDIR_P"; then
2417 if test "${ac_cv_path_mkdir+set}" = set; then :
2418 $as_echo_n "(cached) " >&6
2420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2421 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2424 test -z "$as_dir" && as_dir=.
2425 for ac_prog in mkdir gmkdir; do
2426 for ac_exec_ext in '' $ac_executable_extensions; do
2427 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2428 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2429 'mkdir (GNU coreutils) '* | \
2430 'mkdir (coreutils) '* | \
2431 'mkdir (fileutils) '4.1*)
2432 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2442 if test "${ac_cv_path_mkdir+set}" = set; then
2443 MKDIR_P="$ac_cv_path_mkdir -p"
2445 # As a last resort, use the slow shell script. Don't cache a
2446 # value for MKDIR_P within a source directory, because that will
2447 # break other packages using the cache if that directory is
2448 # removed, or if the value is a relative name.
2449 test -d ./--version && rmdir ./--version
2450 MKDIR_P="$ac_install_sh -d"
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2454 $as_echo "$MKDIR_P" >&6; }
2458 [\\/$]* | ?:[\\/]*) ;;
2459 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2462 for ac_prog in gawk mawk nawk awk
2464 # Extract the first word of "$ac_prog", so it can be a program name with args.
2465 set dummy $ac_prog; ac_word=$2
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2467 $as_echo_n "checking for $ac_word... " >&6; }
2468 if test "${ac_cv_prog_AWK+set}" = set; then :
2469 $as_echo_n "(cached) " >&6
2471 if test -n "$AWK"; then
2472 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2478 test -z "$as_dir" && as_dir=.
2479 for ac_exec_ext in '' $ac_executable_extensions; do
2480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2481 ac_cv_prog_AWK="$ac_prog"
2482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2492 if test -n "$AWK"; then
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2494 $as_echo "$AWK" >&6; }
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2497 $as_echo "no" >&6; }
2501 test -n "$AWK" && break
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2505 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2507 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2508 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2509 $as_echo_n "(cached) " >&6
2511 cat >conftest.make <<\_ACEOF
2514 @echo '@@@%%%=$(MAKE)=@@@%%%'
2516 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2517 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2519 eval ac_cv_prog_make_${ac_make}_set=yes;;
2521 eval ac_cv_prog_make_${ac_make}_set=no;;
2525 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2527 $as_echo "yes" >&6; }
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2531 $as_echo "no" >&6; }
2532 SET_MAKE="MAKE=${MAKE-make}"
2535 rm -rf .tst 2>/dev/null
2536 mkdir .tst 2>/dev/null
2537 if test -d .tst; then
2542 rmdir .tst 2>/dev/null
2544 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2545 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2546 # is not polluted with repeated "-I."
2547 am__isrc=' -I$(srcdir)'
2548 # test to see if srcdir already configured
2549 if test -f $srcdir/config.status; then
2550 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2554 # test whether we have cygpath
2555 if test -z "$CYGPATH_W"; then
2556 if (cygpath --version) >/dev/null 2>/dev/null; then
2557 CYGPATH_W='cygpath -w'
2564 # Define the identity of the package.
2565 PACKAGE='libatomic_ops'
2569 cat >>confdefs.h <<_ACEOF
2570 #define PACKAGE "$PACKAGE"
2574 cat >>confdefs.h <<_ACEOF
2575 #define VERSION "$VERSION"
2578 # Some tools Automake needs.
2580 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2583 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2586 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2589 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2592 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2594 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2596 # Installed binaries are usually stripped using `strip' when the user
2597 # run `make install-strip'. However `strip' might not be the right
2598 # tool to use in cross-compilation environments, therefore Automake
2599 # will honor the `STRIP' environment variable to overrule this program.
2600 if test "$cross_compiling" != no; then
2601 if test -n "$ac_tool_prefix"; then
2602 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2603 set dummy ${ac_tool_prefix}strip; ac_word=$2
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2605 $as_echo_n "checking for $ac_word... " >&6; }
2606 if test "${ac_cv_prog_STRIP+set}" = set; then :
2607 $as_echo_n "(cached) " >&6
2609 if test -n "$STRIP"; then
2610 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616 test -z "$as_dir" && as_dir=.
2617 for ac_exec_ext in '' $ac_executable_extensions; do
2618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2619 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2629 STRIP=$ac_cv_prog_STRIP
2630 if test -n "$STRIP"; then
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2632 $as_echo "$STRIP" >&6; }
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2635 $as_echo "no" >&6; }
2640 if test -z "$ac_cv_prog_STRIP"; then
2642 # Extract the first word of "strip", so it can be a program name with args.
2643 set dummy strip; ac_word=$2
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2645 $as_echo_n "checking for $ac_word... " >&6; }
2646 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2647 $as_echo_n "(cached) " >&6
2649 if test -n "$ac_ct_STRIP"; then
2650 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2656 test -z "$as_dir" && as_dir=.
2657 for ac_exec_ext in '' $ac_executable_extensions; do
2658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2659 ac_cv_prog_ac_ct_STRIP="strip"
2660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2669 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2670 if test -n "$ac_ct_STRIP"; then
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2672 $as_echo "$ac_ct_STRIP" >&6; }
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2675 $as_echo "no" >&6; }
2678 if test "x$ac_ct_STRIP" = x; then
2681 case $cross_compiling:$ac_tool_warned in
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2684 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2685 ac_tool_warned=yes ;;
2690 STRIP="$ac_cv_prog_STRIP"
2694 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2696 # We need awk for the "check" target. The system "awk" is bad on
2698 # Always define AMTAR for backward compatibility.
2700 AMTAR=${AMTAR-"${am_missing_run}tar"}
2702 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2708 if test -n "$ac_tool_prefix"; then
2709 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2710 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2712 $as_echo_n "checking for $ac_word... " >&6; }
2713 if test "${ac_cv_prog_RANLIB+set}" = set; then :
2714 $as_echo_n "(cached) " >&6
2716 if test -n "$RANLIB"; then
2717 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2723 test -z "$as_dir" && as_dir=.
2724 for ac_exec_ext in '' $ac_executable_extensions; do
2725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2726 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2736 RANLIB=$ac_cv_prog_RANLIB
2737 if test -n "$RANLIB"; then
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
2739 $as_echo "$RANLIB" >&6; }
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2742 $as_echo "no" >&6; }
2747 if test -z "$ac_cv_prog_RANLIB"; then
2748 ac_ct_RANLIB=$RANLIB
2749 # Extract the first word of "ranlib", so it can be a program name with args.
2750 set dummy ranlib; ac_word=$2
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2752 $as_echo_n "checking for $ac_word... " >&6; }
2753 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
2754 $as_echo_n "(cached) " >&6
2756 if test -n "$ac_ct_RANLIB"; then
2757 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2763 test -z "$as_dir" && as_dir=.
2764 for ac_exec_ext in '' $ac_executable_extensions; do
2765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2766 ac_cv_prog_ac_ct_RANLIB="ranlib"
2767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2776 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2777 if test -n "$ac_ct_RANLIB"; then
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
2779 $as_echo "$ac_ct_RANLIB" >&6; }
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2782 $as_echo "no" >&6; }
2785 if test "x$ac_ct_RANLIB" = x; then
2788 case $cross_compiling:$ac_tool_warned in
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2791 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2792 ac_tool_warned=yes ;;
2794 RANLIB=$ac_ct_RANLIB
2797 RANLIB="$ac_cv_prog_RANLIB"
2801 ac_config_headers="$ac_config_headers src/config.h"
2804 # Checks for programs.
2805 DEPDIR="${am__leading_dot}deps"
2807 ac_config_commands="$ac_config_commands depfiles"
2810 am_make=${MAKE-make}
2811 cat > confinc << 'END'
2816 # If we don't find an include directive, just comment out the code.
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2818 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2822 # First try GNU make style include.
2823 echo "include confinc" > confmf
2824 # We grep out `Entering directory' and `Leaving directory'
2825 # messages which can occur if `w' ends up in MAKEFLAGS.
2826 # In particular we don't look at `^make:' because GNU make might
2827 # be invoked under some other name (usually "gmake"), in which
2828 # case it prints its new name instead of `make'.
2829 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2834 # Now try BSD make style include.
2835 if test "$am__include" = "#"; then
2836 echo '.include "confinc"' > confmf
2837 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2838 am__include=.include
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2846 $as_echo "$_am_result" >&6; }
2847 rm -f confinc confmf
2849 # Check whether --enable-dependency-tracking was given.
2850 if test "${enable_dependency_tracking+set}" = set; then :
2851 enableval=$enable_dependency_tracking;
2854 if test "x$enable_dependency_tracking" != xno; then
2855 am_depcomp="$ac_aux_dir/depcomp"
2858 if test "x$enable_dependency_tracking" != xno; then
2868 ac_cpp='$CPP $CPPFLAGS'
2869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2872 if test -n "$ac_tool_prefix"; then
2873 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2874 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2876 $as_echo_n "checking for $ac_word... " >&6; }
2877 if test "${ac_cv_prog_CC+set}" = set; then :
2878 $as_echo_n "(cached) " >&6
2880 if test -n "$CC"; then
2881 ac_cv_prog_CC="$CC" # Let the user override the test.
2883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2887 test -z "$as_dir" && as_dir=.
2888 for ac_exec_ext in '' $ac_executable_extensions; do
2889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2890 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2901 if test -n "$CC"; then
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2903 $as_echo "$CC" >&6; }
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2906 $as_echo "no" >&6; }
2911 if test -z "$ac_cv_prog_CC"; then
2913 # Extract the first word of "gcc", so it can be a program name with args.
2914 set dummy gcc; ac_word=$2
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2916 $as_echo_n "checking for $ac_word... " >&6; }
2917 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2918 $as_echo_n "(cached) " >&6
2920 if test -n "$ac_ct_CC"; then
2921 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2927 test -z "$as_dir" && as_dir=.
2928 for ac_exec_ext in '' $ac_executable_extensions; do
2929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2930 ac_cv_prog_ac_ct_CC="gcc"
2931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2940 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2941 if test -n "$ac_ct_CC"; then
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2943 $as_echo "$ac_ct_CC" >&6; }
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2946 $as_echo "no" >&6; }
2949 if test "x$ac_ct_CC" = x; then
2952 case $cross_compiling:$ac_tool_warned in
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2955 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2956 ac_tool_warned=yes ;;
2964 if test -z "$CC"; then
2965 if test -n "$ac_tool_prefix"; then
2966 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2967 set dummy ${ac_tool_prefix}cc; ac_word=$2
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2969 $as_echo_n "checking for $ac_word... " >&6; }
2970 if test "${ac_cv_prog_CC+set}" = set; then :
2971 $as_echo_n "(cached) " >&6
2973 if test -n "$CC"; then
2974 ac_cv_prog_CC="$CC" # Let the user override the test.
2976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2980 test -z "$as_dir" && as_dir=.
2981 for ac_exec_ext in '' $ac_executable_extensions; do
2982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2983 ac_cv_prog_CC="${ac_tool_prefix}cc"
2984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2994 if test -n "$CC"; then
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2996 $as_echo "$CC" >&6; }
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2999 $as_echo "no" >&6; }
3005 if test -z "$CC"; then
3006 # Extract the first word of "cc", so it can be a program name with args.
3007 set dummy cc; ac_word=$2
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3009 $as_echo_n "checking for $ac_word... " >&6; }
3010 if test "${ac_cv_prog_CC+set}" = set; then :
3011 $as_echo_n "(cached) " >&6
3013 if test -n "$CC"; then
3014 ac_cv_prog_CC="$CC" # Let the user override the test.
3017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3021 test -z "$as_dir" && as_dir=.
3022 for ac_exec_ext in '' $ac_executable_extensions; do
3023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3024 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3025 ac_prog_rejected=yes
3029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3036 if test $ac_prog_rejected = yes; then
3037 # We found a bogon in the path, so make sure we never use it.
3038 set dummy $ac_cv_prog_CC
3040 if test $# != 0; then
3041 # We chose a different compiler from the bogus one.
3042 # However, it has the same basename, so the bogon will be chosen
3043 # first if we set CC to just the basename; use the full file name.
3045 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3051 if test -n "$CC"; then
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3053 $as_echo "$CC" >&6; }
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3056 $as_echo "no" >&6; }
3061 if test -z "$CC"; then
3062 if test -n "$ac_tool_prefix"; then
3063 for ac_prog in cl.exe
3065 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3066 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3068 $as_echo_n "checking for $ac_word... " >&6; }
3069 if test "${ac_cv_prog_CC+set}" = set; then :
3070 $as_echo_n "(cached) " >&6
3072 if test -n "$CC"; then
3073 ac_cv_prog_CC="$CC" # Let the user override the test.
3075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3079 test -z "$as_dir" && as_dir=.
3080 for ac_exec_ext in '' $ac_executable_extensions; do
3081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3082 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3093 if test -n "$CC"; then
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3095 $as_echo "$CC" >&6; }
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3098 $as_echo "no" >&6; }
3102 test -n "$CC" && break
3105 if test -z "$CC"; then
3107 for ac_prog in cl.exe
3109 # Extract the first word of "$ac_prog", so it can be a program name with args.
3110 set dummy $ac_prog; ac_word=$2
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3112 $as_echo_n "checking for $ac_word... " >&6; }
3113 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3114 $as_echo_n "(cached) " >&6
3116 if test -n "$ac_ct_CC"; then
3117 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3123 test -z "$as_dir" && as_dir=.
3124 for ac_exec_ext in '' $ac_executable_extensions; do
3125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3126 ac_cv_prog_ac_ct_CC="$ac_prog"
3127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3136 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3137 if test -n "$ac_ct_CC"; then
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3139 $as_echo "$ac_ct_CC" >&6; }
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3142 $as_echo "no" >&6; }
3146 test -n "$ac_ct_CC" && break
3149 if test "x$ac_ct_CC" = x; then
3152 case $cross_compiling:$ac_tool_warned in
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3155 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3156 ac_tool_warned=yes ;;
3165 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3166 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3167 as_fn_error "no acceptable C compiler found in \$PATH
3168 See \`config.log' for more details." "$LINENO" 5; }
3170 # Provide some information about the compiler.
3171 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3174 for ac_option in --version -v -V -qversion; do
3175 { { ac_try="$ac_compiler $ac_option >&5"
3177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3178 *) ac_try_echo=$ac_try;;
3180 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3181 $as_echo "$ac_try_echo"; } >&5
3182 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3184 if test -s conftest.err; then
3186 ... rest of stderr output deleted ...
3187 10q' conftest.err >conftest.er1
3188 cat conftest.er1 >&5
3189 rm -f conftest.er1 conftest.err
3191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3192 test $ac_status = 0; }
3195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3196 /* end confdefs.h. */
3201 FILE *f = fopen ("conftest.out", "w");
3202 return ferror (f) || fclose (f) != 0;
3208 ac_clean_files_save=$ac_clean_files
3209 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3210 # Try to create an executable without -o first, disregard a.out.
3211 # It will help us diagnose broken compilers, and finding out an intuition
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3214 $as_echo_n "checking for C compiler default output file name... " >&6; }
3215 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3217 # The possible output files:
3218 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3221 for ac_file in $ac_files
3224 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3225 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3230 if { { ac_try="$ac_link_default"
3232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3233 *) ac_try_echo=$ac_try;;
3235 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3236 $as_echo "$ac_try_echo"; } >&5
3237 (eval "$ac_link_default") 2>&5
3239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3240 test $ac_status = 0; }; then :
3241 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3242 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3243 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3244 # so that the user can short-circuit this test for compilers unknown to
3246 for ac_file in $ac_files ''
3248 test -f "$ac_file" || continue
3250 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3253 # We found the default executable, but exeext='' is most
3257 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3259 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3261 # We set ac_cv_exeext here because the later test for it is not
3262 # safe: cross compilers may not add the suffix if given an `-o'
3263 # argument, so we may need to know it at that point already.
3264 # Even if this section looks crufty: it has the advantage of
3271 test "$ac_cv_exeext" = no && ac_cv_exeext=
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3277 $as_echo "$ac_file" >&6; }
3278 if test -z "$ac_file"; then :
3279 $as_echo "$as_me: failed program was:" >&5
3280 sed 's/^/| /' conftest.$ac_ext >&5
3282 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3283 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3284 { as_fn_set_status 77
3285 as_fn_error "C compiler cannot create executables
3286 See \`config.log' for more details." "$LINENO" 5; }; }
3288 ac_exeext=$ac_cv_exeext
3290 # Check that the compiler produces executables we can run. If not, either
3291 # the compiler is broken, or we cross compile.
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3293 $as_echo_n "checking whether the C compiler works... " >&6; }
3294 # If not cross compiling, check that we can run a simple program.
3295 if test "$cross_compiling" != yes; then
3296 if { ac_try='./$ac_file'
3297 { { case "(($ac_try" in
3298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3299 *) ac_try_echo=$ac_try;;
3301 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3302 $as_echo "$ac_try_echo"; } >&5
3303 (eval "$ac_try") 2>&5
3305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3306 test $ac_status = 0; }; }; then
3309 if test "$cross_compiling" = maybe; then
3312 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3313 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3314 as_fn_error "cannot run C compiled programs.
3315 If you meant to cross compile, use \`--host'.
3316 See \`config.log' for more details." "$LINENO" 5; }
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3321 $as_echo "yes" >&6; }
3323 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3324 ac_clean_files=$ac_clean_files_save
3325 # Check that the compiler produces executables we can run. If not, either
3326 # the compiler is broken, or we cross compile.
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3328 $as_echo_n "checking whether we are cross compiling... " >&6; }
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3330 $as_echo "$cross_compiling" >&6; }
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3333 $as_echo_n "checking for suffix of executables... " >&6; }
3334 if { { ac_try="$ac_link"
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_link") 2>&5
3343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3344 test $ac_status = 0; }; then :
3345 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3346 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3347 # work properly (i.e., refer to `conftest.exe'), while it won't with
3349 for ac_file in conftest.exe conftest conftest.*; do
3350 test -f "$ac_file" || continue
3352 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3353 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3359 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3360 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3361 as_fn_error "cannot compute suffix of executables: cannot compile and link
3362 See \`config.log' for more details." "$LINENO" 5; }
3364 rm -f conftest$ac_cv_exeext
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3366 $as_echo "$ac_cv_exeext" >&6; }
3368 rm -f conftest.$ac_ext
3369 EXEEXT=$ac_cv_exeext
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3372 $as_echo_n "checking for suffix of object files... " >&6; }
3373 if test "${ac_cv_objext+set}" = set; then :
3374 $as_echo_n "(cached) " >&6
3376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3377 /* end confdefs.h. */
3387 rm -f conftest.o conftest.obj
3388 if { { ac_try="$ac_compile"
3390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391 *) ac_try_echo=$ac_try;;
3393 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3394 $as_echo "$ac_try_echo"; } >&5
3395 (eval "$ac_compile") 2>&5
3397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3398 test $ac_status = 0; }; then :
3399 for ac_file in conftest.o conftest.obj conftest.*; do
3400 test -f "$ac_file" || continue;
3402 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3403 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3408 $as_echo "$as_me: failed program was:" >&5
3409 sed 's/^/| /' conftest.$ac_ext >&5
3411 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3412 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3413 as_fn_error "cannot compute suffix of object files: cannot compile
3414 See \`config.log' for more details." "$LINENO" 5; }
3416 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3419 $as_echo "$ac_cv_objext" >&6; }
3420 OBJEXT=$ac_cv_objext
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3423 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3424 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3425 $as_echo_n "(cached) " >&6
3427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3428 /* end confdefs.h. */
3441 if ac_fn_c_try_compile "$LINENO"; then :
3446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3447 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3451 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3452 if test $ac_compiler_gnu = yes; then
3457 ac_test_CFLAGS=${CFLAGS+set}
3458 ac_save_CFLAGS=$CFLAGS
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3460 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3461 if test "${ac_cv_prog_cc_g+set}" = set; then :
3462 $as_echo_n "(cached) " >&6
3464 ac_save_c_werror_flag=$ac_c_werror_flag
3465 ac_c_werror_flag=yes
3468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3469 /* end confdefs.h. */
3479 if ac_fn_c_try_compile "$LINENO"; then :
3483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3484 /* end confdefs.h. */
3494 if ac_fn_c_try_compile "$LINENO"; then :
3497 ac_c_werror_flag=$ac_save_c_werror_flag
3499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3500 /* end confdefs.h. */
3510 if ac_fn_c_try_compile "$LINENO"; then :
3513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3518 ac_c_werror_flag=$ac_save_c_werror_flag
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3521 $as_echo "$ac_cv_prog_cc_g" >&6; }
3522 if test "$ac_test_CFLAGS" = set; then
3523 CFLAGS=$ac_save_CFLAGS
3524 elif test $ac_cv_prog_cc_g = yes; then
3525 if test "$GCC" = yes; then
3531 if test "$GCC" = yes; then
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3538 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3539 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3540 $as_echo_n "(cached) " >&6
3542 ac_cv_prog_cc_c89=no
3544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3545 /* end confdefs.h. */
3548 #include <sys/types.h>
3549 #include <sys/stat.h>
3550 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3551 struct buf { int x; };
3552 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3553 static char *e (p, i)
3559 static char *f (char * (*g) (char **, int), char **p, ...)
3564 s = g (p, va_arg (v,int));
3569 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3570 function prototypes and stuff, but not '\xHH' hex character constants.
3571 These don't provoke an error unfortunately, instead are silently treated
3572 as 'x'. The following induces an error, until -std is added to get
3573 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3574 array size at least. It's necessary to write '\x00'==0 to get something
3575 that's true only with -std. */
3576 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3578 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3579 inside strings and character constants. */
3581 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3583 int test (int i, double x);
3584 struct s1 {int (*f) (int a);};
3585 struct s2 {int (*f) (double a);};
3586 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3592 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3597 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3598 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3600 CC="$ac_save_CC $ac_arg"
3601 if ac_fn_c_try_compile "$LINENO"; then :
3602 ac_cv_prog_cc_c89=$ac_arg
3604 rm -f core conftest.err conftest.$ac_objext
3605 test "x$ac_cv_prog_cc_c89" != "xno" && break
3607 rm -f conftest.$ac_ext
3612 case "x$ac_cv_prog_cc_c89" in
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3615 $as_echo "none needed" >&6; } ;;
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3618 $as_echo "unsupported" >&6; } ;;
3620 CC="$CC $ac_cv_prog_cc_c89"
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3622 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3624 if test "x$ac_cv_prog_cc_c89" != xno; then :
3629 ac_cpp='$CPP $CPPFLAGS'
3630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3634 depcc="$CC" am_compiler_list=
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3637 $as_echo_n "checking dependency style of $depcc... " >&6; }
3638 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3639 $as_echo_n "(cached) " >&6
3641 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3642 # We make a subdir and do the tests there. Otherwise we can end up
3643 # making bogus files that we don't know about and never remove. For
3644 # instance it was reported that on HP-UX the gcc test will end up
3645 # making a dummy file named `D' -- because `-MD' means `put the output
3648 # Copy depcomp to subdir because otherwise we won't find it if we're
3649 # using a relative directory.
3650 cp "$am_depcomp" conftest.dir
3652 # We will build objects and dependencies in a subdirectory because
3653 # it helps to detect inapplicable dependency modes. For instance
3654 # both Tru64's cc and ICC support -MD to output dependencies as a
3655 # side effect of compilation, but ICC will put the dependencies in
3656 # the current directory while Tru64 will put them in the object
3660 am_cv_CC_dependencies_compiler_type=none
3661 if test "$am_compiler_list" = ""; then
3662 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3664 for depmode in $am_compiler_list; do
3665 # Setup a source with many dependencies, because some compilers
3666 # like to wrap large dependency lists on column 80 (with \), and
3667 # we should not choose a depcomp mode which is confused by this.
3669 # We need to recreate these files for each test, as the compiler may
3670 # overwrite some of them when testing with obscure command lines.
3671 # This happens at least with the AIX C compiler.
3673 for i in 1 2 3 4 5 6; do
3674 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3675 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3676 # Solaris 8's {/usr,}/bin/sh.
3677 touch sub/conftst$i.h
3679 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3683 # after this tag, mechanisms are not by side-effect, so they'll
3684 # only be used when explicitly requested
3685 if test "x$enable_dependency_tracking" = xyes; then
3693 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3694 # mode. It turns out that the SunPro C++ compiler does not properly
3695 # handle `-M -o', and we need to detect this.
3696 if depmode=$depmode \
3697 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3698 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3699 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3700 >/dev/null 2>conftest.err &&
3701 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3702 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3703 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3704 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3705 # icc doesn't choke on unknown options, it will just issue warnings
3706 # or remarks (even with -Werror). So we grep stderr for any message
3707 # that says an option was ignored or not supported.
3708 # When given -MP, icc 7.0 and 7.1 complain thusly:
3709 # icc: Command line warning: ignoring option '-M'; no argument required
3710 # The diagnosis changed in icc 8.0:
3711 # icc: Command line remark: option '-MP' not supported
3712 if (grep 'ignoring option' conftest.err ||
3713 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3714 am_cv_CC_dependencies_compiler_type=$depmode
3723 am_cv_CC_dependencies_compiler_type=none
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3728 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3729 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3732 test "x$enable_dependency_tracking" != xno \
3733 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3735 am__fastdepCC_FALSE='#'
3737 am__fastdepCC_TRUE='#'
3738 am__fastdepCC_FALSE=
3742 if test "x$CC" != xcc; then
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
3744 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
3747 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
3749 set dummy $CC; ac_cc=`$as_echo "$2" |
3750 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3751 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
3752 $as_echo_n "(cached) " >&6
3754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3755 /* end confdefs.h. */
3765 # Make sure it works both with $CC and with simple cc.
3766 # We do the test twice because some compilers refuse to overwrite an
3767 # existing .o file with -o, though they will create one.
3768 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3770 if { { case "(($ac_try" in
3771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3772 *) ac_try_echo=$ac_try;;
3774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3775 $as_echo "$ac_try_echo"; } >&5
3776 (eval "$ac_try") 2>&5
3778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3779 test $ac_status = 0; } &&
3780 test -f conftest2.$ac_objext && { { case "(($ac_try" in
3781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3782 *) ac_try_echo=$ac_try;;
3784 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3785 $as_echo "$ac_try_echo"; } >&5
3786 (eval "$ac_try") 2>&5
3788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3789 test $ac_status = 0; };
3791 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3792 if test "x$CC" != xcc; then
3793 # Test first that cc exists at all.
3794 if { ac_try='cc -c conftest.$ac_ext >&5'
3795 { { case "(($ac_try" in
3796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3797 *) ac_try_echo=$ac_try;;
3799 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3800 $as_echo "$ac_try_echo"; } >&5
3801 (eval "$ac_try") 2>&5
3803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3804 test $ac_status = 0; }; }; then
3805 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3807 if { { case "(($ac_try" in
3808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3809 *) ac_try_echo=$ac_try;;
3811 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3812 $as_echo "$ac_try_echo"; } >&5
3813 (eval "$ac_try") 2>&5
3815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3816 test $ac_status = 0; } &&
3817 test -f conftest2.$ac_objext && { { case "(($ac_try" in
3818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3819 *) ac_try_echo=$ac_try;;
3821 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3822 $as_echo "$ac_try_echo"; } >&5
3823 (eval "$ac_try") 2>&5
3825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3826 test $ac_status = 0; };
3831 # cc exists but doesn't like -o.
3832 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3837 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3839 rm -f core conftest*
3842 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3844 $as_echo "yes" >&6; }
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3847 $as_echo "no" >&6; }
3849 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
3853 # FIXME: we rely on the cache variable name because
3854 # there is no other way.
3856 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3857 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
3858 if test "$am_t" != yes; then
3859 # Losing compiler, so override with the script.
3860 # FIXME: It is wrong to rewrite CC.
3861 # But if we don't then we get into trouble of one sort or another.
3862 # A longer-term fix would be to have automake use am__CC in this case,
3863 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3864 CC="$am_aux_dir/compile $CC"
3868 # By default we simply use the C compiler to build assembly code.
3870 test "${CCAS+set}" = set || CCAS=$CC
3871 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
3875 depcc="$CCAS" am_compiler_list=
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3878 $as_echo_n "checking dependency style of $depcc... " >&6; }
3879 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
3880 $as_echo_n "(cached) " >&6
3882 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3883 # We make a subdir and do the tests there. Otherwise we can end up
3884 # making bogus files that we don't know about and never remove. For
3885 # instance it was reported that on HP-UX the gcc test will end up
3886 # making a dummy file named `D' -- because `-MD' means `put the output
3889 # Copy depcomp to subdir because otherwise we won't find it if we're
3890 # using a relative directory.
3891 cp "$am_depcomp" conftest.dir
3893 # We will build objects and dependencies in a subdirectory because
3894 # it helps to detect inapplicable dependency modes. For instance
3895 # both Tru64's cc and ICC support -MD to output dependencies as a
3896 # side effect of compilation, but ICC will put the dependencies in
3897 # the current directory while Tru64 will put them in the object
3901 am_cv_CCAS_dependencies_compiler_type=none
3902 if test "$am_compiler_list" = ""; then
3903 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3905 for depmode in $am_compiler_list; do
3906 # Setup a source with many dependencies, because some compilers
3907 # like to wrap large dependency lists on column 80 (with \), and
3908 # we should not choose a depcomp mode which is confused by this.
3910 # We need to recreate these files for each test, as the compiler may
3911 # overwrite some of them when testing with obscure command lines.
3912 # This happens at least with the AIX C compiler.
3914 for i in 1 2 3 4 5 6; do
3915 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3916 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3917 # Solaris 8's {/usr,}/bin/sh.
3918 touch sub/conftst$i.h
3920 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3924 # after this tag, mechanisms are not by side-effect, so they'll
3925 # only be used when explicitly requested
3926 if test "x$enable_dependency_tracking" = xyes; then
3934 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3935 # mode. It turns out that the SunPro C++ compiler does not properly
3936 # handle `-M -o', and we need to detect this.
3937 if depmode=$depmode \
3938 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3939 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3940 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3941 >/dev/null 2>conftest.err &&
3942 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3943 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3944 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3945 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3946 # icc doesn't choke on unknown options, it will just issue warnings
3947 # or remarks (even with -Werror). So we grep stderr for any message
3948 # that says an option was ignored or not supported.
3949 # When given -MP, icc 7.0 and 7.1 complain thusly:
3950 # icc: Command line warning: ignoring option '-M'; no argument required
3951 # The diagnosis changed in icc 8.0:
3952 # icc: Command line remark: option '-MP' not supported
3953 if (grep 'ignoring option' conftest.err ||
3954 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3955 am_cv_CCAS_dependencies_compiler_type=$depmode
3964 am_cv_CCAS_dependencies_compiler_type=none
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
3969 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
3970 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
3973 test "x$enable_dependency_tracking" != xno \
3974 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
3975 am__fastdepCCAS_TRUE=
3976 am__fastdepCCAS_FALSE='#'
3978 am__fastdepCCAS_TRUE='#'
3979 am__fastdepCCAS_FALSE=
3984 # Checks for functions.
3987 ac_cpp='$CPP $CPPFLAGS'
3988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3992 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3993 # On Suns, sometimes $CPP names a directory.
3994 if test -n "$CPP" && test -d "$CPP"; then
3997 if test -z "$CPP"; then
3998 if test "${ac_cv_prog_CPP+set}" = set; then :
3999 $as_echo_n "(cached) " >&6
4001 # Double quotes because CPP needs to be expanded
4002 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4005 for ac_c_preproc_warn_flag in '' yes
4007 # Use a header file that comes with gcc, so configuring glibc
4008 # with a fresh cross-compiler works.
4009 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4010 # <limits.h> exists even on freestanding compilers.
4011 # On the NeXT, cc -E runs the code through the compiler's parser,
4012 # not just through cpp. "Syntax error" is here to catch this case.
4013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4014 /* end confdefs.h. */
4016 # include <limits.h>
4018 # include <assert.h>
4022 if ac_fn_c_try_cpp "$LINENO"; then :
4025 # Broken: fails on valid input.
4028 rm -f conftest.err conftest.$ac_ext
4030 # OK, works on sane cases. Now check whether nonexistent headers
4031 # can be detected and how.
4032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4033 /* end confdefs.h. */
4034 #include <ac_nonexistent.h>
4036 if ac_fn_c_try_cpp "$LINENO"; then :
4037 # Broken: success on invalid input.
4040 # Passes both tests.
4044 rm -f conftest.err conftest.$ac_ext
4047 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4048 rm -f conftest.err conftest.$ac_ext
4049 if $ac_preproc_ok; then :
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4062 $as_echo "$CPP" >&6; }
4064 for ac_c_preproc_warn_flag in '' yes
4066 # Use a header file that comes with gcc, so configuring glibc
4067 # with a fresh cross-compiler works.
4068 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4069 # <limits.h> exists even on freestanding compilers.
4070 # On the NeXT, cc -E runs the code through the compiler's parser,
4071 # not just through cpp. "Syntax error" is here to catch this case.
4072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4073 /* end confdefs.h. */
4075 # include <limits.h>
4077 # include <assert.h>
4081 if ac_fn_c_try_cpp "$LINENO"; then :
4084 # Broken: fails on valid input.
4087 rm -f conftest.err conftest.$ac_ext
4089 # OK, works on sane cases. Now check whether nonexistent headers
4090 # can be detected and how.
4091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4092 /* end confdefs.h. */
4093 #include <ac_nonexistent.h>
4095 if ac_fn_c_try_cpp "$LINENO"; then :
4096 # Broken: success on invalid input.
4099 # Passes both tests.
4103 rm -f conftest.err conftest.$ac_ext
4106 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4107 rm -f conftest.err conftest.$ac_ext
4108 if $ac_preproc_ok; then :
4111 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4112 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4113 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4114 See \`config.log' for more details." "$LINENO" 5; }
4118 ac_cpp='$CPP $CPPFLAGS'
4119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4125 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4126 if test "${ac_cv_path_GREP+set}" = set; then :
4127 $as_echo_n "(cached) " >&6
4129 if test -z "$GREP"; then
4130 ac_path_GREP_found=false
4131 # Loop through the user's path and test for each of PROGNAME-LIST
4132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4133 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4136 test -z "$as_dir" && as_dir=.
4137 for ac_prog in grep ggrep; do
4138 for ac_exec_ext in '' $ac_executable_extensions; do
4139 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4140 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4141 # Check for GNU ac_path_GREP and select it if it is found.
4142 # Check for GNU $ac_path_GREP
4143 case `"$ac_path_GREP" --version 2>&1` in
4145 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4148 $as_echo_n 0123456789 >"conftest.in"
4151 cat "conftest.in" "conftest.in" >"conftest.tmp"
4152 mv "conftest.tmp" "conftest.in"
4153 cp "conftest.in" "conftest.nl"
4154 $as_echo 'GREP' >> "conftest.nl"
4155 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4156 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4157 as_fn_arith $ac_count + 1 && ac_count=$as_val
4158 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4159 # Best one so far, save it but keep looking for a better one
4160 ac_cv_path_GREP="$ac_path_GREP"
4161 ac_path_GREP_max=$ac_count
4163 # 10*(2^10) chars as input seems more than enough
4164 test $ac_count -gt 10 && break
4166 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4169 $ac_path_GREP_found && break 3
4174 if test -z "$ac_cv_path_GREP"; then
4175 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4178 ac_cv_path_GREP=$GREP
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4183 $as_echo "$ac_cv_path_GREP" >&6; }
4184 GREP="$ac_cv_path_GREP"
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4188 $as_echo_n "checking for egrep... " >&6; }
4189 if test "${ac_cv_path_EGREP+set}" = set; then :
4190 $as_echo_n "(cached) " >&6
4192 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4193 then ac_cv_path_EGREP="$GREP -E"
4195 if test -z "$EGREP"; then
4196 ac_path_EGREP_found=false
4197 # Loop through the user's path and test for each of PROGNAME-LIST
4198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4199 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4202 test -z "$as_dir" && as_dir=.
4203 for ac_prog in egrep; do
4204 for ac_exec_ext in '' $ac_executable_extensions; do
4205 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4206 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4207 # Check for GNU ac_path_EGREP and select it if it is found.
4208 # Check for GNU $ac_path_EGREP
4209 case `"$ac_path_EGREP" --version 2>&1` in
4211 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4214 $as_echo_n 0123456789 >"conftest.in"
4217 cat "conftest.in" "conftest.in" >"conftest.tmp"
4218 mv "conftest.tmp" "conftest.in"
4219 cp "conftest.in" "conftest.nl"
4220 $as_echo 'EGREP' >> "conftest.nl"
4221 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4222 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4223 as_fn_arith $ac_count + 1 && ac_count=$as_val
4224 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4225 # Best one so far, save it but keep looking for a better one
4226 ac_cv_path_EGREP="$ac_path_EGREP"
4227 ac_path_EGREP_max=$ac_count
4229 # 10*(2^10) chars as input seems more than enough
4230 test $ac_count -gt 10 && break
4232 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4235 $ac_path_EGREP_found && break 3
4240 if test -z "$ac_cv_path_EGREP"; then
4241 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4244 ac_cv_path_EGREP=$EGREP
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4250 $as_echo "$ac_cv_path_EGREP" >&6; }
4251 EGREP="$ac_cv_path_EGREP"
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4255 $as_echo_n "checking for ANSI C header files... " >&6; }
4256 if test "${ac_cv_header_stdc+set}" = set; then :
4257 $as_echo_n "(cached) " >&6
4259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4260 /* end confdefs.h. */
4274 if ac_fn_c_try_compile "$LINENO"; then :
4275 ac_cv_header_stdc=yes
4277 ac_cv_header_stdc=no
4279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4281 if test $ac_cv_header_stdc = yes; then
4282 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4284 /* end confdefs.h. */
4288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4289 $EGREP "memchr" >/dev/null 2>&1; then :
4292 ac_cv_header_stdc=no
4298 if test $ac_cv_header_stdc = yes; then
4299 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4301 /* end confdefs.h. */
4305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4306 $EGREP "free" >/dev/null 2>&1; then :
4309 ac_cv_header_stdc=no
4315 if test $ac_cv_header_stdc = yes; then
4316 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4317 if test "$cross_compiling" = yes; then :
4320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4321 /* end confdefs.h. */
4324 #if ((' ' & 0x0FF) == 0x020)
4325 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4326 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4328 # define ISLOWER(c) \
4329 (('a' <= (c) && (c) <= 'i') \
4330 || ('j' <= (c) && (c) <= 'r') \
4331 || ('s' <= (c) && (c) <= 'z'))
4332 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4335 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4340 for (i = 0; i < 256; i++)
4341 if (XOR (islower (i), ISLOWER (i))
4342 || toupper (i) != TOUPPER (i))
4347 if ac_fn_c_try_run "$LINENO"; then :
4350 ac_cv_header_stdc=no
4352 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4353 conftest.$ac_objext conftest.beam conftest.$ac_ext
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4359 $as_echo "$ac_cv_header_stdc" >&6; }
4360 if test $ac_cv_header_stdc = yes; then
4362 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4366 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4367 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4368 inttypes.h stdint.h unistd.h
4370 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4371 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4373 eval as_val=\$$as_ac_Header
4374 if test "x$as_val" = x""yes; then :
4375 cat >>confdefs.h <<_ACEOF
4376 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4384 for ac_header in stdlib.h unistd.h
4386 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4387 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4388 eval as_val=\$$as_ac_Header
4389 if test "x$as_val" = x""yes; then :
4390 cat >>confdefs.h <<_ACEOF
4391 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4398 for ac_func in getpagesize
4400 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
4401 if test "x$ac_cv_func_getpagesize" = x""yes; then :
4402 cat >>confdefs.h <<_ACEOF
4403 #define HAVE_GETPAGESIZE 1
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
4410 $as_echo_n "checking for working mmap... " >&6; }
4411 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
4412 $as_echo_n "(cached) " >&6
4414 if test "$cross_compiling" = yes; then :
4415 ac_cv_func_mmap_fixed_mapped=no
4417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4418 /* end confdefs.h. */
4419 $ac_includes_default
4420 /* malloc might have been renamed as rpl_malloc. */
4423 /* Thanks to Mike Haertel and Jim Avera for this test.
4424 Here is a matrix of mmap possibilities:
4425 mmap private not fixed
4426 mmap private fixed at somewhere currently unmapped
4427 mmap private fixed at somewhere already mapped
4428 mmap shared not fixed
4429 mmap shared fixed at somewhere currently unmapped
4430 mmap shared fixed at somewhere already mapped
4431 For private mappings, we should verify that changes cannot be read()
4432 back from the file, nor mmap's back from the file at a different
4433 address. (There have been systems where private was not correctly
4434 implemented like the infamous i386 svr4.0, and systems where the
4435 VM page cache was not coherent with the file system buffer cache
4436 like early versions of FreeBSD and possibly contemporary NetBSD.)
4437 For shared mappings, we should conversely verify that changes get
4438 propagated back to all the places they're supposed to be.
4440 Grep wants private fixed already mapped.
4441 The main things grep needs to know about mmap are:
4442 * does it exist and is it safe to write into the mmap'd area
4443 * how to use it (BSD variants) */
4446 #include <sys/mman.h>
4448 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
4452 /* This mess was copied from the GNU getpagesize.h. */
4453 #ifndef HAVE_GETPAGESIZE
4454 /* Assume that all systems that can run configure have sys/param.h. */
4455 # ifndef HAVE_SYS_PARAM_H
4456 # define HAVE_SYS_PARAM_H 1
4459 # ifdef _SC_PAGESIZE
4460 # define getpagesize() sysconf(_SC_PAGESIZE)
4461 # else /* no _SC_PAGESIZE */
4462 # ifdef HAVE_SYS_PARAM_H
4463 # include <sys/param.h>
4464 # ifdef EXEC_PAGESIZE
4465 # define getpagesize() EXEC_PAGESIZE
4466 # else /* no EXEC_PAGESIZE */
4468 # define getpagesize() NBPG * CLSIZE
4471 # endif /* no CLSIZE */
4472 # else /* no NBPG */
4474 # define getpagesize() NBPC
4475 # else /* no NBPC */
4477 # define getpagesize() PAGESIZE
4478 # endif /* PAGESIZE */
4479 # endif /* no NBPC */
4480 # endif /* no NBPG */
4481 # endif /* no EXEC_PAGESIZE */
4482 # else /* no HAVE_SYS_PARAM_H */
4483 # define getpagesize() 8192 /* punt totally */
4484 # endif /* no HAVE_SYS_PARAM_H */
4485 # endif /* no _SC_PAGESIZE */
4487 #endif /* no HAVE_GETPAGESIZE */
4492 char *data, *data2, *data3;
4496 pagesize = getpagesize ();
4498 /* First, make a file with some known garbage in it. */
4499 data = (char *) malloc (pagesize);
4502 for (i = 0; i < pagesize; ++i)
4503 *(data + i) = rand ();
4505 fd = creat ("conftest.mmap", 0600);
4508 if (write (fd, data, pagesize) != pagesize)
4512 /* Next, try to mmap the file at a fixed address which already has
4513 something else allocated at it. If we can, also make sure that
4514 we see the same garbage. */
4515 fd = open ("conftest.mmap", O_RDWR);
4518 data2 = (char *) malloc (2 * pagesize);
4521 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
4522 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4523 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4525 for (i = 0; i < pagesize; ++i)
4526 if (*(data + i) != *(data2 + i))
4529 /* Finally, make sure that changes to the mapped area do not
4530 percolate back to the file as seen by read(). (This is a bug on
4531 some variants of i386 svr4.0.) */
4532 for (i = 0; i < pagesize; ++i)
4533 *(data2 + i) = *(data2 + i) + 1;
4534 data3 = (char *) malloc (pagesize);
4537 if (read (fd, data3, pagesize) != pagesize)
4539 for (i = 0; i < pagesize; ++i)
4540 if (*(data + i) != *(data3 + i))
4546 if ac_fn_c_try_run "$LINENO"; then :
4547 ac_cv_func_mmap_fixed_mapped=yes
4549 ac_cv_func_mmap_fixed_mapped=no
4551 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4552 conftest.$ac_objext conftest.beam conftest.$ac_ext
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
4557 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
4558 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4560 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
4566 # Checks for header files.
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4568 $as_echo_n "checking for ANSI C header files... " >&6; }
4569 if test "${ac_cv_header_stdc+set}" = set; then :
4570 $as_echo_n "(cached) " >&6
4572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4573 /* end confdefs.h. */
4587 if ac_fn_c_try_compile "$LINENO"; then :
4588 ac_cv_header_stdc=yes
4590 ac_cv_header_stdc=no
4592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4594 if test $ac_cv_header_stdc = yes; then
4595 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4597 /* end confdefs.h. */
4601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4602 $EGREP "memchr" >/dev/null 2>&1; then :
4605 ac_cv_header_stdc=no
4611 if test $ac_cv_header_stdc = yes; then
4612 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4614 /* end confdefs.h. */
4618 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4619 $EGREP "free" >/dev/null 2>&1; then :
4622 ac_cv_header_stdc=no
4628 if test $ac_cv_header_stdc = yes; then
4629 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4630 if test "$cross_compiling" = yes; then :
4633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4634 /* end confdefs.h. */
4637 #if ((' ' & 0x0FF) == 0x020)
4638 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4639 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4641 # define ISLOWER(c) \
4642 (('a' <= (c) && (c) <= 'i') \
4643 || ('j' <= (c) && (c) <= 'r') \
4644 || ('s' <= (c) && (c) <= 'z'))
4645 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4648 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4653 for (i = 0; i < 256; i++)
4654 if (XOR (islower (i), ISLOWER (i))
4655 || toupper (i) != TOUPPER (i))
4660 if ac_fn_c_try_run "$LINENO"; then :
4663 ac_cv_header_stdc=no
4665 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4666 conftest.$ac_objext conftest.beam conftest.$ac_ext
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4672 $as_echo "$ac_cv_header_stdc" >&6; }
4673 if test $ac_cv_header_stdc = yes; then
4675 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4679 # AC_CHECK_HEADERS([ ])
4681 # Determine PIC flag, adjust default CFLAGS
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Determining PIC compiler flag" >&5
4685 $as_echo_n "checking Determining PIC compiler flag... " >&6; }
4686 if test "$GCC" = yes; then
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -fPIC" >&5
4688 $as_echo "-fPIC" >&6; }
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"+Z\"" >&5
4694 $as_echo "\"+Z\"" >&6; }
4696 if test "$GCC" != yes; then
4697 CFLAGS="$CFLAGS +O2 -mt"
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -Kpic" >&5
4702 $as_echo "-Kpic" >&6; }
4704 if test "$GCC" != yes; then
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -fPIC" >&5
4711 $as_echo "-fPIC" >&6; }
4713 # Any Linux compiler had better be gcc compatible.
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"<none>\"" >&5
4717 $as_echo "\"<none>\"" >&6; }
4721 CFLAGS="$CFLAGS -DNDEBUG"
4726 if test x$need_asm = xtrue; then
4735 ac_config_files="$ac_config_files Makefile src/Makefile src/atomic_ops/Makefile src/atomic_ops/sysdeps/Makefile doc/Makefile tests/Makefile"
4737 ac_config_commands="$ac_config_commands default"
4739 cat >confcache <<\_ACEOF
4740 # This file is a shell script that caches the results of configure
4741 # tests run on this system so they can be shared between configure
4742 # scripts and configure runs, see configure's option --config-cache.
4743 # It is not useful on other systems. If it contains results you don't
4744 # want to keep, you may remove or edit it.
4746 # config.status only pays attention to the cache file if you give it
4747 # the --recheck option to rerun configure.
4749 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4750 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4755 # The following way of writing the cache mishandles newlines in values,
4756 # but we know of no workaround that is simple, portable, and efficient.
4757 # So, we kill variables containing newlines.
4758 # Ultrix sh set writes to stderr and can't be redirected directly,
4759 # and sets the high bit in the cache file unless we assign to the vars.
4761 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4762 eval ac_val=\$$ac_var
4766 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4767 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4770 _ | IFS | as_nl) ;; #(
4771 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4772 *) { eval $ac_var=; unset $ac_var;} ;;
4778 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4779 *${as_nl}ac_space=\ *)
4780 # `set' does not quote correctly, so add quotes: double-quote
4781 # substitution turns \\\\ into \\, and sed turns \\ into \.
4784 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4787 # `set' quotes correctly as required by POSIX, so do not add quotes.
4788 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4797 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4799 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4801 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4802 if test -w "$cache_file"; then
4803 test "x$cache_file" != "x/dev/null" &&
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4805 $as_echo "$as_me: updating cache $cache_file" >&6;}
4806 cat confcache >$cache_file
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4809 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4814 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4815 # Let make expand exec_prefix.
4816 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4818 DEFS=-DHAVE_CONFIG_H
4822 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4823 # 1. Remove the extension, and $U if already installed.
4824 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4825 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4826 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4827 # will be set to the directory where LIBOBJS objects are built.
4828 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4829 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4833 LTLIBOBJS=$ac_ltlibobjs
4836 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
4837 as_fn_error "conditional \"AMDEP\" was never defined.
4838 Usually this means the macro was only invoked conditionally." "$LINENO" 5
4840 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
4841 as_fn_error "conditional \"am__fastdepCC\" was never defined.
4842 Usually this means the macro was only invoked conditionally." "$LINENO" 5
4844 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
4845 as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
4846 Usually this means the macro was only invoked conditionally." "$LINENO" 5
4848 if test -z "${NEED_ASM_TRUE}" && test -z "${NEED_ASM_FALSE}"; then
4849 as_fn_error "conditional \"NEED_ASM\" was never defined.
4850 Usually this means the macro was only invoked conditionally." "$LINENO" 5
4853 : ${CONFIG_STATUS=./config.status}
4855 ac_clean_files_save=$ac_clean_files
4856 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4858 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4860 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4862 # Generated by $as_me.
4863 # Run this file to recreate the current configuration.
4864 # Compiler output produced by configure, useful for debugging
4865 # configure, is in config.log if it exists.
4871 SHELL=\${CONFIG_SHELL-$SHELL}
4874 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4875 ## -------------------- ##
4876 ## M4sh Initialization. ##
4877 ## -------------------- ##
4879 # Be more Bourne compatible
4880 DUALCASE=1; export DUALCASE # for MKS sh
4881 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4884 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4885 # is contrary to our usage. Disable this feature.
4886 alias -g '${1+"$@"}'='"$@"'
4887 setopt NO_GLOB_SUBST
4889 case `(set -o) 2>/dev/null` in #(
4901 # Printing a long string crashes Solaris 7 /usr/bin/printf.
4902 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4903 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4904 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4905 # Prefer a ksh shell builtin over an external printf program on Solaris,
4906 # but without wasting forks for bash or zsh.
4907 if test -z "$BASH_VERSION$ZSH_VERSION" \
4908 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4909 as_echo='print -r --'
4910 as_echo_n='print -rn --'
4911 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4912 as_echo='printf %s\n'
4913 as_echo_n='printf %s'
4915 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4916 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4917 as_echo_n='/usr/ucb/echo -n'
4919 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4920 as_echo_n_body='eval
4924 expr "X$arg" : "X\\(.*\\)$as_nl";
4925 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4927 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4929 export as_echo_n_body
4930 as_echo_n='sh -c $as_echo_n_body as_echo'
4933 as_echo='sh -c $as_echo_body as_echo'
4936 # The user is always right.
4937 if test "${PATH_SEPARATOR+set}" != set; then
4939 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4940 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4947 # We need space, tab and new line, in precisely that order. Quoting is
4948 # there to prevent editors from complaining about space-tab.
4949 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
4950 # splitting by setting IFS to empty value.)
4953 # Find who we are. Look in the path if we contain no directory separator.
4955 *[\\/]* ) as_myself=$0 ;;
4956 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4960 test -z "$as_dir" && as_dir=.
4961 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4967 # We did not find ourselves, most probably we were run as `sh COMMAND'
4968 # in which case we are not to be found in the path.
4969 if test "x$as_myself" = x; then
4972 if test ! -f "$as_myself"; then
4973 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4977 # Unset variables that we do not need and which cause bugs (e.g. in
4978 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
4979 # suppresses any "Segmentation fault" message there. '((' could
4980 # trigger a bug in pdksh 5.2.14.
4981 for as_var in BASH_ENV ENV MAIL MAILPATH
4982 do eval test x\${$as_var+set} = xset \
4983 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4996 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4999 # as_fn_error ERROR [LINENO LOG_FD]
5000 # ---------------------------------
5001 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5002 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5003 # script with status $?, using 1 if that was 0.
5006 as_status=$?; test $as_status -eq 0 && as_status=1
5008 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5009 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
5011 $as_echo "$as_me: error: $1" >&2
5012 as_fn_exit $as_status
5016 # as_fn_set_status STATUS
5017 # -----------------------
5018 # Set $? to STATUS, without forking.
5022 } # as_fn_set_status
5026 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5036 # Portably unset VAR.
5039 { eval $1=; unset $1;}
5041 as_unset=as_fn_unset
5042 # as_fn_append VAR VALUE
5043 # ----------------------
5044 # Append the text in VALUE to the end of the definition contained in VAR. Take
5045 # advantage of any shell optimizations that allow amortized linear growth over
5046 # repeated appends, instead of the typical quadratic growth present in naive
5048 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5049 eval 'as_fn_append ()
5060 # as_fn_arith ARG...
5061 # ------------------
5062 # Perform arithmetic evaluation on the ARGs, and store the result in the
5063 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5064 # must be portable across $(()) and expr.
5065 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5066 eval 'as_fn_arith ()
5073 as_val=`expr "$@" || test $? -eq 1`
5078 if expr a : '\(a\)' >/dev/null 2>&1 &&
5079 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5085 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5086 as_basename=basename
5091 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5097 as_me=`$as_basename -- "$0" ||
5098 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5099 X"$0" : 'X\(//\)$' \| \
5100 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5102 sed '/^.*\/\([^/][^/]*\)\/*$/{
5116 # Avoid depending upon Character Ranges.
5117 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5118 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5119 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5120 as_cr_digits='0123456789'
5121 as_cr_alnum=$as_cr_Letters$as_cr_digits
5123 ECHO_C= ECHO_N= ECHO_T=
5124 case `echo -n x` in #(((((
5126 case `echo 'xy\c'` in
5127 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5129 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5136 rm -f conf$$ conf$$.exe conf$$.file
5137 if test -d conf$$.dir; then
5138 rm -f conf$$.dir/conf$$.file
5141 mkdir conf$$.dir 2>/dev/null
5143 if (echo >conf$$.file) 2>/dev/null; then
5144 if ln -s conf$$.file conf$$ 2>/dev/null; then
5146 # ... but there are two gotchas:
5147 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5148 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5149 # In both cases, we have to default to `cp -p'.
5150 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5152 elif ln conf$$.file conf$$ 2>/dev/null; then
5160 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5161 rmdir conf$$.dir 2>/dev/null
5166 # Create "$as_dir" as a directory, including parents if necessary.
5171 -*) as_dir=./$as_dir;;
5173 test -d "$as_dir" || eval $as_mkdir_p || {
5177 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5178 *) as_qdir=$as_dir;;
5180 as_dirs="'$as_qdir' $as_dirs"
5181 as_dir=`$as_dirname -- "$as_dir" ||
5182 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5183 X"$as_dir" : 'X\(//\)[^/]' \| \
5184 X"$as_dir" : 'X\(//\)$' \| \
5185 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5186 $as_echo X"$as_dir" |
5187 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5204 test -d "$as_dir" && break
5206 test -z "$as_dirs" || eval "mkdir $as_dirs"
5207 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
5211 if mkdir -p . 2>/dev/null; then
5212 as_mkdir_p='mkdir -p "$as_dir"'
5214 test -d ./-p && rmdir ./-p
5218 if test -x / >/dev/null 2>&1; then
5221 if ls -dL / >/dev/null 2>&1; then
5228 if test -d "$1"; then
5234 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
5235 ???[sx]*):;;*)false;;esac;fi
5239 as_executable_p=$as_test_x
5241 # Sed expression to map a string onto a valid CPP name.
5242 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5244 # Sed expression to map a string onto a valid variable name.
5245 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5249 ## ----------------------------------- ##
5250 ## Main body of $CONFIG_STATUS script. ##
5251 ## ----------------------------------- ##
5253 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5255 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5256 # Save the log message, to keep $0 and so on meaningful, and to
5257 # report actual input values of CONFIG_FILES etc. instead of their
5258 # values after options handling.
5260 This file was extended by libatomic_ops $as_me 7.2alpha4, which was
5261 generated by GNU Autoconf 2.64. Invocation command line was
5263 CONFIG_FILES = $CONFIG_FILES
5264 CONFIG_HEADERS = $CONFIG_HEADERS
5265 CONFIG_LINKS = $CONFIG_LINKS
5266 CONFIG_COMMANDS = $CONFIG_COMMANDS
5269 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5274 case $ac_config_files in *"
5275 "*) set x $ac_config_files; shift; ac_config_files=$*;;
5278 case $ac_config_headers in *"
5279 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5283 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5284 # Files that config.status was made for.
5285 config_files="$ac_config_files"
5286 config_headers="$ac_config_headers"
5287 config_commands="$ac_config_commands"
5291 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5293 \`$as_me' instantiates files and other configuration actions
5294 from templates according to the current configuration. Unless the files
5295 and actions are specified as TAGs, all are instantiated by default.
5297 Usage: $0 [OPTION]... [TAG]...
5299 -h, --help print this help, then exit
5300 -V, --version print version number and configuration settings, then exit
5301 -q, --quiet, --silent
5302 do not print progress messages
5303 -d, --debug don't remove temporary files
5304 --recheck update $as_me by reconfiguring in the same conditions
5305 --file=FILE[:TEMPLATE]
5306 instantiate the configuration file FILE
5307 --header=FILE[:TEMPLATE]
5308 instantiate the configuration header FILE
5310 Configuration files:
5313 Configuration headers:
5316 Configuration commands:
5319 Report bugs to the package provider."
5322 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5324 libatomic_ops config.status 7.2alpha4
5325 configured by $0, generated by GNU Autoconf 2.64,
5326 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
5328 Copyright (C) 2009 Free Software Foundation, Inc.
5329 This config.status script is free software; the Free Software Foundation
5330 gives unlimited permission to copy, distribute and modify it."
5337 test -n "\$AWK" || AWK=awk
5340 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5341 # The default lists apply if the user does not specify any file.
5347 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5348 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5359 # Handling of the options.
5360 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5362 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5363 $as_echo "$ac_cs_version"; exit ;;
5364 --debug | --debu | --deb | --de | --d | -d )
5366 --file | --fil | --fi | --f )
5369 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5371 as_fn_append CONFIG_FILES " '$ac_optarg'"
5372 ac_need_defaults=false;;
5373 --header | --heade | --head | --hea )
5376 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5378 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5379 ac_need_defaults=false;;
5381 # Conflict between --help and --header
5382 as_fn_error "ambiguous option: \`$1'
5383 Try \`$0 --help' for more information.";;
5384 --help | --hel | -h )
5385 $as_echo "$ac_cs_usage"; exit ;;
5386 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5387 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5391 -*) as_fn_error "unrecognized option: \`$1'
5392 Try \`$0 --help' for more information." ;;
5394 *) as_fn_append ac_config_targets " $1"
5395 ac_need_defaults=false ;;
5401 ac_configure_extra_args=
5403 if $ac_cs_silent; then
5405 ac_configure_extra_args="$ac_configure_extra_args --silent"
5409 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5410 if \$ac_cs_recheck; then
5411 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5413 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5414 CONFIG_SHELL='$SHELL'
5420 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5424 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5425 ## Running $as_me. ##
5431 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5435 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
5437 PICFLAG="${PICFLAG}"
5444 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5446 # Handling of arguments.
5447 for ac_config_target in $ac_config_targets
5449 case $ac_config_target in
5450 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
5451 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5452 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5453 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
5454 "src/atomic_ops/Makefile") CONFIG_FILES="$CONFIG_FILES src/atomic_ops/Makefile" ;;
5455 "src/atomic_ops/sysdeps/Makefile") CONFIG_FILES="$CONFIG_FILES src/atomic_ops/sysdeps/Makefile" ;;
5456 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
5457 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
5458 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
5460 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5465 # If the user did not use the arguments to specify the items to instantiate,
5466 # then the envvar interface is used. Set only those that are not.
5467 # We use the long form for the default assignment because of an extremely
5468 # bizarre bug on SunOS 4.1.3.
5469 if $ac_need_defaults; then
5470 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5471 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5472 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5475 # Have a temporary directory for convenience. Make it in the build tree
5476 # simply because there is no reason against having it here, and in addition,
5477 # creating and moving files from /tmp can sometimes cause problems.
5478 # Hook for its removal unless debugging.
5479 # Note that there is a small window in which the directory will not be cleaned:
5480 # after its creation but before its name has been assigned to `$tmp'.
5484 trap 'exit_status=$?
5485 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
5487 trap 'as_fn_exit 1' 1 2 13 15
5489 # Create a (secure) tmp directory for tmp files.
5492 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5493 test -n "$tmp" && test -d "$tmp"
5496 tmp=./conf$$-$RANDOM
5497 (umask 077 && mkdir "$tmp")
5498 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
5500 # Set up the scripts for CONFIG_FILES section.
5501 # No need to generate them if there are no CONFIG_FILES.
5502 # This happens for instance with `./config.status config.h'.
5503 if test -n "$CONFIG_FILES"; then
5506 ac_cr=`echo X | tr X '\015'`
5507 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5508 # But we know of no other shell where ac_cr would be empty at this
5509 # point, so we can use a bashism as a fallback.
5510 if test "x$ac_cr" = x; then
5511 eval ac_cr=\$\'\\r\'
5513 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5514 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5520 echo 'BEGIN {' >"$tmp/subs1.awk" &&
5525 echo "cat >conf$$subs.awk <<_ACEOF" &&
5526 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5529 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5530 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
5532 for ac_last_try in false false false false false :; do
5533 . ./conf$$subs.sh ||
5534 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5536 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5537 if test $ac_delim_n = $ac_delim_num; then
5539 elif $ac_last_try; then
5540 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5542 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5547 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5548 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
5552 s/^/S["/; s/!.*/"]=/
5562 s/\(.\{148\}\).*/\1/
5564 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5569 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5576 s/\(.\{148\}\).*/\1/
5578 s/["\\]/\\&/g; s/^/"/; s/$/"/
5582 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5587 ' <conf$$subs.awk | sed '
5592 ' >>$CONFIG_STATUS || ac_write_fail=1
5593 rm -f conf$$subs.awk
5594 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5596 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
5597 for (key in S) S_is_set[key] = 1
5603 nfields = split(line, field, "@")
5605 len = length(field[1])
5606 for (i = 2; i < nfields; i++) {
5608 keylen = length(key)
5609 if (S_is_set[key]) {
5611 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5612 len += length(value) + length(field[++i])
5623 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5624 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5625 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5628 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
5629 || as_fn_error "could not setup config files machinery" "$LINENO" 5
5632 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5633 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5634 # trailing colons and then remove the whole line if VPATH becomes empty
5635 # (actually we leave an empty line to preserve line numbers).
5636 if test "x$srcdir" = x.; then
5637 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5641 s/^\([^=]*=[ ]*\):*/\1/
5647 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5648 fi # test -n "$CONFIG_FILES"
5650 # Set up the scripts for CONFIG_HEADERS section.
5651 # No need to generate them if there are no CONFIG_HEADERS.
5652 # This happens for instance with `./config.status Makefile'.
5653 if test -n "$CONFIG_HEADERS"; then
5654 cat >"$tmp/defines.awk" <<\_ACAWK ||
5658 # Transform confdefs.h into an awk script `defines.awk', embedded as
5659 # here-document in config.status, that substitutes the proper values into
5660 # config.h.in to produce config.h.
5662 # Create a delimiter string that does not exist in confdefs.h, to ease
5663 # handling of long lines.
5665 for ac_last_try in false false :; do
5666 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
5667 if test -z "$ac_t"; then
5669 elif $ac_last_try; then
5670 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
5672 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5676 # For the awk script, D is an array of macro values keyed by name,
5677 # likewise P contains macro parameters if any. Preserve backslash
5678 # newline sequences.
5680 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5682 s/.\{148\}/&'"$ac_delim"'/g
5685 s/^[ ]*#[ ]*define[ ][ ]*/ /
5692 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5694 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
5698 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5699 D["\1"]=" \3\\\\\\n"\\/p
5701 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5706 s/.\{148\}/&'"$ac_delim"'/g
5711 s/["\\]/\\&/g; s/^/"/; s/$/"/p
5714 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5716 ' <confdefs.h | sed '
5717 s/'"$ac_delim"'/"\\\
5718 "/g' >>$CONFIG_STATUS || ac_write_fail=1
5720 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5721 for (key in D) D_is_set[key] = 1
5724 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5726 split(line, arg, " ")
5727 if (arg[1] == "#") {
5731 defundef = substr(arg[1], 2)
5734 split(mac1, mac2, "(") #)
5736 prefix = substr(line, 1, index(line, defundef) - 1)
5737 if (D_is_set[macro]) {
5738 # Preserve the white space surrounding the "#".
5739 print prefix "define", macro P[macro] D[macro]
5742 # Replace #undef with comments. This is necessary, for example,
5743 # in the case of _POSIX_SOURCE, which is predefined and required
5744 # on some systems where configure will not decide to define it.
5745 if (defundef == "undef") {
5746 print "/*", prefix defundef, macro, "*/"
5754 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5755 as_fn_error "could not setup config headers machinery" "$LINENO" 5
5756 fi # test -n "$CONFIG_HEADERS"
5759 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
5764 :[FHLC]) ac_mode=$ac_tag; continue;;
5766 case $ac_mode$ac_tag in
5768 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
5769 :[FH]-) ac_tag=-:-;;
5770 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5787 -) ac_f="$tmp/stdin";;
5788 *) # Look for the file first in the build tree, then in the source tree
5789 # (if the path is not absolute). The absolute path cannot be DOS-style,
5790 # because $ac_f cannot contain `:'.
5794 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5796 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5798 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5799 as_fn_append ac_file_inputs " '$ac_f'"
5802 # Let's still pretend it is `configure' which instantiates (i.e., don't
5803 # use $as_me), people would be surprised to read:
5804 # /* config.h. Generated by config.status. */
5805 configure_input='Generated from '`
5806 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5808 if test x"$ac_file" != x-; then
5809 configure_input="$ac_file. $configure_input"
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5811 $as_echo "$as_me: creating $ac_file" >&6;}
5813 # Neutralize special characters interpreted by sed in replacement strings.
5814 case $configure_input in #(
5815 *\&* | *\|* | *\\* )
5816 ac_sed_conf_input=`$as_echo "$configure_input" |
5817 sed 's/[\\\\&|]/\\\\&/g'`;; #(
5818 *) ac_sed_conf_input=$configure_input;;
5822 *:-:* | *:-) cat >"$tmp/stdin" \
5823 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
5828 ac_dir=`$as_dirname -- "$ac_file" ||
5829 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5830 X"$ac_file" : 'X\(//\)[^/]' \| \
5831 X"$ac_file" : 'X\(//\)$' \| \
5832 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5833 $as_echo X"$ac_file" |
5834 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5851 as_dir="$ac_dir"; as_fn_mkdir_p
5855 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5857 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5858 # A ".." for each directory in $ac_dir_suffix.
5859 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5860 case $ac_top_builddir_sub in
5861 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5862 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5865 ac_abs_top_builddir=$ac_pwd
5866 ac_abs_builddir=$ac_pwd$ac_dir_suffix
5867 # for backward compatibility:
5868 ac_top_builddir=$ac_top_build_prefix
5871 .) # We are building in place.
5873 ac_top_srcdir=$ac_top_builddir_sub
5874 ac_abs_top_srcdir=$ac_pwd ;;
5875 [\\/]* | ?:[\\/]* ) # Absolute name.
5876 ac_srcdir=$srcdir$ac_dir_suffix;
5877 ac_top_srcdir=$srcdir
5878 ac_abs_top_srcdir=$srcdir ;;
5880 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5881 ac_top_srcdir=$ac_top_build_prefix$srcdir
5882 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5884 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5894 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5895 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
5899 [\\/$]* | ?:[\\/]* ) ;;
5900 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
5904 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5905 # If the template does not know about datarootdir, expand it.
5906 # FIXME: This hack should be removed a few years after 2.60.
5907 ac_datarootdir_hack=; ac_datarootdir_seen=
5918 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5919 *datarootdir*) ac_datarootdir_seen=yes;;
5920 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5922 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5924 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5925 ac_datarootdir_hack='
5926 s&@datadir@&$datadir&g
5927 s&@docdir@&$docdir&g
5928 s&@infodir@&$infodir&g
5929 s&@localedir@&$localedir&g
5930 s&@mandir@&$mandir&g
5931 s&\\\${datarootdir}&$datarootdir&g' ;;
5935 # Neutralize VPATH when `$srcdir' = `.'.
5936 # Shell code in configure.ac might set extrasub.
5937 # FIXME: do we really want to maintain this feature?
5938 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5939 ac_sed_extra="$ac_vpsub
5942 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5944 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5945 s|@configure_input@|$ac_sed_conf_input|;t t
5946 s&@top_builddir@&$ac_top_builddir_sub&;t t
5947 s&@top_build_prefix@&$ac_top_build_prefix&;t t
5948 s&@srcdir@&$ac_srcdir&;t t
5949 s&@abs_srcdir@&$ac_abs_srcdir&;t t
5950 s&@top_srcdir@&$ac_top_srcdir&;t t
5951 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5952 s&@builddir@&$ac_builddir&;t t
5953 s&@abs_builddir@&$ac_abs_builddir&;t t
5954 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5955 s&@INSTALL@&$ac_INSTALL&;t t
5956 s&@MKDIR_P@&$ac_MKDIR_P&;t t
5957 $ac_datarootdir_hack
5959 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
5960 || as_fn_error "could not create $ac_file" "$LINENO" 5
5962 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5963 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
5964 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5966 which seems to be undefined. Please make sure it is defined." >&5
5967 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5968 which seems to be undefined. Please make sure it is defined." >&2;}
5972 -) cat "$tmp/out" && rm -f "$tmp/out";;
5973 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
5975 || as_fn_error "could not create $ac_file" "$LINENO" 5
5981 if test x"$ac_file" != x-; then
5983 $as_echo "/* $configure_input */" \
5984 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
5985 } >"$tmp/config.h" \
5986 || as_fn_error "could not create $ac_file" "$LINENO" 5
5987 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
5989 $as_echo "$as_me: $ac_file is unchanged" >&6;}
5992 mv "$tmp/config.h" "$ac_file" \
5993 || as_fn_error "could not create $ac_file" "$LINENO" 5
5996 $as_echo "/* $configure_input */" \
5997 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
5998 || as_fn_error "could not create -" "$LINENO" 5
6000 # Compute "$ac_file"'s index in $config_headers.
6003 for _am_header in $config_headers :; do
6005 $_am_arg | $_am_arg:* )
6008 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
6011 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
6012 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6013 X"$_am_arg" : 'X\(//\)[^/]' \| \
6014 X"$_am_arg" : 'X\(//\)$' \| \
6015 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
6016 $as_echo X"$_am_arg" |
6017 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6033 s/.*/./; q'`/stamp-h$_am_stamp_count
6036 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
6037 $as_echo "$as_me: executing $ac_file commands" >&6;}
6042 case $ac_file$ac_mode in
6043 "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files
6044 # are listed without --file. Let's play safe and only enable the eval
6045 # if we detect the quoting.
6046 case $CONFIG_FILES in
6047 *\'*) eval set x "$CONFIG_FILES" ;;
6048 *) set x $CONFIG_FILES ;;
6053 # Strip MF so we end up with the name of the file.
6054 mf=`echo "$mf" | sed -e 's/:.*$//'`
6055 # Check whether this is an Automake generated Makefile or not.
6056 # We used to match only the files named `Makefile.in', but
6057 # some people rename them; so instead we look at the file content.
6058 # Grep'ing the first line is not enough: some people post-process
6059 # each Makefile.in and add a new line on top of each file to say so.
6060 # Grep'ing the whole file is not good either: AIX grep has a line
6061 # limit of 2048, but all sed's we know have understand at least 4000.
6062 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
6063 dirpart=`$as_dirname -- "$mf" ||
6064 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6065 X"$mf" : 'X\(//\)[^/]' \| \
6066 X"$mf" : 'X\(//\)$' \| \
6067 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
6069 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6089 # Extract the definition of DEPDIR, am__include, and am__quote
6090 # from the Makefile without running `make'.
6091 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6092 test -z "$DEPDIR" && continue
6093 am__include=`sed -n 's/^am__include = //p' < "$mf"`
6094 test -z "am__include" && continue
6095 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6096 # When using ansi2knr, U may be empty or an underscore; expand it
6097 U=`sed -n 's/^U = //p' < "$mf"`
6098 # Find all dependency output files, they are included files with
6099 # $(DEPDIR) in their names. We invoke sed twice because it is the
6100 # simplest approach to changing $(DEPDIR) to its actual value in the
6102 for file in `sed -n "
6103 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6104 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6105 # Make sure the directory exists.
6106 test -f "$dirpart/$file" && continue
6107 fdir=`$as_dirname -- "$file" ||
6108 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6109 X"$file" : 'X\(//\)[^/]' \| \
6110 X"$file" : 'X\(//\)$' \| \
6111 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
6113 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6130 as_dir=$dirpart/$fdir; as_fn_mkdir_p
6131 # echo "creating $dirpart/$file"
6132 echo '# dummy' > "$dirpart/$file"
6144 ac_clean_files=$ac_clean_files_save
6146 test $ac_write_fail = 0 ||
6147 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
6150 # configure is writing to config.log, and then calls config.status.
6151 # config.status does its own redirection, appending to config.log.
6152 # Unfortunately, on DOS this fails, as config.log is still kept open
6153 # by configure, so config.status won't be able to write to it; its
6154 # output is simply discarded. So we exec the FD to /dev/null,
6155 # effectively closing config.log, so it can be properly (re)opened and
6156 # appended to by config.status. When coming back to configure, we
6157 # need to make the FD available again.
6158 if test "$no_create" != yes; then
6160 ac_config_status_args=
6161 test "$silent" = yes &&
6162 ac_config_status_args="$ac_config_status_args --quiet"
6164 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6166 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6167 # would make configure fail if this is the last instruction.
6168 $ac_cs_success || as_fn_exit $?
6170 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6172 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}