2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for lockfree 0.1.
5 # Report bugs to <n.nakai@sdy.co.jp>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 case \`(set -o) 2>/dev/null\` in #(
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 test -z "$as_dir" && as_dir=.
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231 $as_echo "$0: Please tell bug-autoconf@gnu.org and n.nakai@sdy.co.jp
232 $0: about your system, including any error possibly output
233 $0: before this message. Then install a modern shell, or
234 $0: manually run the script under such a shell if you do
241 SHELL=${CONFIG_SHELL-/bin/sh}
243 # Unset more variables known to interfere with behavior of common tools.
244 CLICOLOR_FORCE= GREP_OPTIONS=
245 unset CLICOLOR_FORCE GREP_OPTIONS
247 ## --------------------- ##
248 ## M4sh Shell Functions. ##
249 ## --------------------- ##
252 # Portably unset VAR.
255 { eval $1=; unset $1;}
259 # as_fn_set_status STATUS
260 # -----------------------
261 # Set $? to STATUS, without forking.
269 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
279 # Create "$as_dir" as a directory, including parents if necessary.
284 -*) as_dir=./$as_dir;;
286 test -d "$as_dir" || eval $as_mkdir_p || {
290 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293 as_dirs="'$as_qdir' $as_dirs"
294 as_dir=`$as_dirname -- "$as_dir" ||
295 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
296 X"$as_dir" : 'X\(//\)[^/]' \| \
297 X"$as_dir" : 'X\(//\)$' \| \
298 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
299 $as_echo X"$as_dir" |
300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
317 test -d "$as_dir" && break
319 test -z "$as_dirs" || eval "mkdir $as_dirs"
320 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
324 # as_fn_append VAR VALUE
325 # ----------------------
326 # Append the text in VALUE to the end of the definition contained in VAR. Take
327 # advantage of any shell optimizations that allow amortized linear growth over
328 # repeated appends, instead of the typical quadratic growth present in naive
330 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
331 eval 'as_fn_append ()
344 # Perform arithmetic evaluation on the ARGs, and store the result in the
345 # global $as_val. Take advantage of shells that can avoid forks. The arguments
346 # must be portable across $(()) and expr.
347 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355 as_val=`expr "$@" || test $? -eq 1`
360 # as_fn_error ERROR [LINENO LOG_FD]
361 # ---------------------------------
362 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
363 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
364 # script with status $?, using 1 if that was 0.
367 as_status=$?; test $as_status -eq 0 && as_status=1
369 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
370 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
372 $as_echo "$as_me: error: $1" >&2
373 as_fn_exit $as_status
376 if expr a : '\(a\)' >/dev/null 2>&1 &&
377 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_me=`$as_basename -- "$0" ||
396 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
397 X"$0" : 'X\(//\)$' \| \
398 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
400 sed '/^.*\/\([^/][^/]*\)\/*$/{
414 # Avoid depending upon Character Ranges.
415 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
416 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
417 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
418 as_cr_digits='0123456789'
419 as_cr_alnum=$as_cr_Letters$as_cr_digits
422 as_lineno_1=$LINENO as_lineno_1a=$LINENO
423 as_lineno_2=$LINENO as_lineno_2a=$LINENO
424 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
425 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
426 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
438 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
442 chmod +x "$as_me.lineno" ||
443 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
445 # Don't try to exec as it changes $[0], causing all sort of problems
446 # (the dirname of $[0] is not the place where we might find the
447 # original and so on. Autoconf is especially sensitive to this).
449 # Exit status is that of the last command.
453 ECHO_C= ECHO_N= ECHO_T=
454 case `echo -n x` in #(((((
456 case `echo 'xy\c'` in
457 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
459 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
466 rm -f conf$$ conf$$.exe conf$$.file
467 if test -d conf$$.dir; then
468 rm -f conf$$.dir/conf$$.file
471 mkdir conf$$.dir 2>/dev/null
473 if (echo >conf$$.file) 2>/dev/null; then
474 if ln -s conf$$.file conf$$ 2>/dev/null; then
476 # ... but there are two gotchas:
477 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
478 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
479 # In both cases, we have to default to `cp -p'.
480 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
482 elif ln conf$$.file conf$$ 2>/dev/null; then
490 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
491 rmdir conf$$.dir 2>/dev/null
493 if mkdir -p . 2>/dev/null; then
494 as_mkdir_p='mkdir -p "$as_dir"'
496 test -d ./-p && rmdir ./-p
500 if test -x / >/dev/null 2>&1; then
503 if ls -dL / >/dev/null 2>&1; then
510 if test -d "$1"; then
516 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
517 ???[sx]*):;;*)false;;esac;fi
521 as_executable_p=$as_test_x
523 # Sed expression to map a string onto a valid CPP name.
524 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
526 # Sed expression to map a string onto a valid variable name.
527 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530 exec 7<&0 </dev/null 6>&1
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
540 ac_default_prefix=/usr/local
542 ac_config_libobj_dir=.
549 # Identity of this package.
550 PACKAGE_NAME='lockfree'
551 PACKAGE_TARNAME='lockfree'
552 PACKAGE_VERSION='0.1'
553 PACKAGE_STRING='lockfree 0.1'
554 PACKAGE_BUGREPORT='n.nakai@sdy.co.jp'
557 ac_unique_file="sample/lockfree_tests.cpp"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
571 # ifdef HAVE_STDLIB_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
594 ac_subst_vars='LTLIBOBJS
636 program_transform_name
649 enable_option_checking
651 ac_precious_vars='build_alias
665 # Initialize some variables set by options.
667 ac_init_version=false
668 ac_unrecognized_opts=
670 # The variables have the same names as the options, with
671 # dashes changed to underlines.
679 program_transform_name=s,x,x,
687 # Installation directory options.
688 # These are left unexpanded so users can "make install exec_prefix=/foo"
689 # and all the variables that are supposed to be based on exec_prefix
690 # by default will actually change.
691 # Use braces instead of parens because sh, perl, etc. also accept them.
692 # (The list follows the same order as the GNU Coding Standards.)
693 bindir='${exec_prefix}/bin'
694 sbindir='${exec_prefix}/sbin'
695 libexecdir='${exec_prefix}/libexec'
696 datarootdir='${prefix}/share'
697 datadir='${datarootdir}'
698 sysconfdir='${prefix}/etc'
699 sharedstatedir='${prefix}/com'
700 localstatedir='${prefix}/var'
701 includedir='${prefix}/include'
702 oldincludedir='/usr/include'
703 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
704 infodir='${datarootdir}/info'
709 libdir='${exec_prefix}/lib'
710 localedir='${datarootdir}/locale'
711 mandir='${datarootdir}/man'
717 # If the previous option needs an argument, assign it.
718 if test -n "$ac_prev"; then
719 eval $ac_prev=\$ac_option
725 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
729 # Accept the important Cygnus configure options, so we can diagnose typos.
731 case $ac_dashdash$ac_option in
735 -bindir | --bindir | --bindi | --bind | --bin | --bi)
737 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
740 -build | --build | --buil | --bui | --bu)
741 ac_prev=build_alias ;;
742 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
743 build_alias=$ac_optarg ;;
745 -cache-file | --cache-file | --cache-fil | --cache-fi \
746 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
747 ac_prev=cache_file ;;
748 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
749 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
750 cache_file=$ac_optarg ;;
753 cache_file=config.cache ;;
755 -datadir | --datadir | --datadi | --datad)
757 -datadir=* | --datadir=* | --datadi=* | --datad=*)
758 datadir=$ac_optarg ;;
760 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
761 | --dataroo | --dataro | --datar)
762 ac_prev=datarootdir ;;
763 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
764 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
765 datarootdir=$ac_optarg ;;
767 -disable-* | --disable-*)
768 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
769 # Reject names that are not valid shell variable names.
770 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
771 as_fn_error "invalid feature name: $ac_useropt"
772 ac_useropt_orig=$ac_useropt
773 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
774 case $ac_user_opts in
778 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
779 ac_unrecognized_sep=', ';;
781 eval enable_$ac_useropt=no ;;
783 -docdir | --docdir | --docdi | --doc | --do)
785 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
788 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
790 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
793 -enable-* | --enable-*)
794 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
795 # Reject names that are not valid shell variable names.
796 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
797 as_fn_error "invalid feature name: $ac_useropt"
798 ac_useropt_orig=$ac_useropt
799 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
800 case $ac_user_opts in
804 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
805 ac_unrecognized_sep=', ';;
807 eval enable_$ac_useropt=\$ac_optarg ;;
809 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
810 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
811 | --exec | --exe | --ex)
812 ac_prev=exec_prefix ;;
813 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
814 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
815 | --exec=* | --exe=* | --ex=*)
816 exec_prefix=$ac_optarg ;;
818 -gas | --gas | --ga | --g)
819 # Obsolete; use --with-gas.
822 -help | --help | --hel | --he | -h)
824 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
825 ac_init_help=recursive ;;
826 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
827 ac_init_help=short ;;
829 -host | --host | --hos | --ho)
830 ac_prev=host_alias ;;
831 -host=* | --host=* | --hos=* | --ho=*)
832 host_alias=$ac_optarg ;;
834 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
836 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
838 htmldir=$ac_optarg ;;
840 -includedir | --includedir | --includedi | --included | --include \
841 | --includ | --inclu | --incl | --inc)
842 ac_prev=includedir ;;
843 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
844 | --includ=* | --inclu=* | --incl=* | --inc=*)
845 includedir=$ac_optarg ;;
847 -infodir | --infodir | --infodi | --infod | --info | --inf)
849 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
850 infodir=$ac_optarg ;;
852 -libdir | --libdir | --libdi | --libd)
854 -libdir=* | --libdir=* | --libdi=* | --libd=*)
857 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
858 | --libexe | --libex | --libe)
859 ac_prev=libexecdir ;;
860 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
861 | --libexe=* | --libex=* | --libe=*)
862 libexecdir=$ac_optarg ;;
864 -localedir | --localedir | --localedi | --localed | --locale)
866 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
867 localedir=$ac_optarg ;;
869 -localstatedir | --localstatedir | --localstatedi | --localstated \
870 | --localstate | --localstat | --localsta | --localst | --locals)
871 ac_prev=localstatedir ;;
872 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
873 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
874 localstatedir=$ac_optarg ;;
876 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
878 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
882 # Obsolete; use --without-fp.
885 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
886 | --no-cr | --no-c | -n)
889 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
890 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
893 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
894 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
895 | --oldin | --oldi | --old | --ol | --o)
896 ac_prev=oldincludedir ;;
897 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
898 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
899 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
900 oldincludedir=$ac_optarg ;;
902 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
904 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
907 -program-prefix | --program-prefix | --program-prefi | --program-pref \
908 | --program-pre | --program-pr | --program-p)
909 ac_prev=program_prefix ;;
910 -program-prefix=* | --program-prefix=* | --program-prefi=* \
911 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
912 program_prefix=$ac_optarg ;;
914 -program-suffix | --program-suffix | --program-suffi | --program-suff \
915 | --program-suf | --program-su | --program-s)
916 ac_prev=program_suffix ;;
917 -program-suffix=* | --program-suffix=* | --program-suffi=* \
918 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
919 program_suffix=$ac_optarg ;;
921 -program-transform-name | --program-transform-name \
922 | --program-transform-nam | --program-transform-na \
923 | --program-transform-n | --program-transform- \
924 | --program-transform | --program-transfor \
925 | --program-transfo | --program-transf \
926 | --program-trans | --program-tran \
927 | --progr-tra | --program-tr | --program-t)
928 ac_prev=program_transform_name ;;
929 -program-transform-name=* | --program-transform-name=* \
930 | --program-transform-nam=* | --program-transform-na=* \
931 | --program-transform-n=* | --program-transform-=* \
932 | --program-transform=* | --program-transfor=* \
933 | --program-transfo=* | --program-transf=* \
934 | --program-trans=* | --program-tran=* \
935 | --progr-tra=* | --program-tr=* | --program-t=*)
936 program_transform_name=$ac_optarg ;;
938 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
940 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
943 -psdir | --psdir | --psdi | --psd | --ps)
945 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
948 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
949 | -silent | --silent | --silen | --sile | --sil)
952 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
954 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
956 sbindir=$ac_optarg ;;
958 -sharedstatedir | --sharedstatedir | --sharedstatedi \
959 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
960 | --sharedst | --shareds | --shared | --share | --shar \
962 ac_prev=sharedstatedir ;;
963 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
964 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
965 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
967 sharedstatedir=$ac_optarg ;;
969 -site | --site | --sit)
971 -site=* | --site=* | --sit=*)
974 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
976 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
979 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
980 | --syscon | --sysco | --sysc | --sys | --sy)
981 ac_prev=sysconfdir ;;
982 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
983 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
984 sysconfdir=$ac_optarg ;;
986 -target | --target | --targe | --targ | --tar | --ta | --t)
987 ac_prev=target_alias ;;
988 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
989 target_alias=$ac_optarg ;;
991 -v | -verbose | --verbose | --verbos | --verbo | --verb)
994 -version | --version | --versio | --versi | --vers | -V)
998 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
999 # Reject names that are not valid shell variable names.
1000 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1001 as_fn_error "invalid package name: $ac_useropt"
1002 ac_useropt_orig=$ac_useropt
1003 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1004 case $ac_user_opts in
1008 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1009 ac_unrecognized_sep=', ';;
1011 eval with_$ac_useropt=\$ac_optarg ;;
1013 -without-* | --without-*)
1014 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1015 # Reject names that are not valid shell variable names.
1016 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1017 as_fn_error "invalid package name: $ac_useropt"
1018 ac_useropt_orig=$ac_useropt
1019 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1020 case $ac_user_opts in
1024 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1025 ac_unrecognized_sep=', ';;
1027 eval with_$ac_useropt=no ;;
1030 # Obsolete; use --with-x.
1033 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1034 | --x-incl | --x-inc | --x-in | --x-i)
1035 ac_prev=x_includes ;;
1036 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1037 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1038 x_includes=$ac_optarg ;;
1040 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1041 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1042 ac_prev=x_libraries ;;
1043 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1044 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1045 x_libraries=$ac_optarg ;;
1047 -*) as_fn_error "unrecognized option: \`$ac_option'
1048 Try \`$0 --help' for more information."
1052 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1053 # Reject names that are not valid shell variable names.
1054 case $ac_envvar in #(
1055 '' | [0-9]* | *[!_$as_cr_alnum]* )
1056 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1058 eval $ac_envvar=\$ac_optarg
1059 export $ac_envvar ;;
1062 # FIXME: should be removed in autoconf 3.0.
1063 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1064 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1065 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1066 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1072 if test -n "$ac_prev"; then
1073 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1074 as_fn_error "missing argument to $ac_option"
1077 if test -n "$ac_unrecognized_opts"; then
1078 case $enable_option_checking in
1080 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1081 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1085 # Check all directory arguments for consistency.
1086 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1087 datadir sysconfdir sharedstatedir localstatedir includedir \
1088 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1089 libdir localedir mandir
1091 eval ac_val=\$$ac_var
1092 # Remove trailing slashes.
1095 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1096 eval $ac_var=\$ac_val;;
1098 # Be sure to have absolute directory names.
1100 [\\/$]* | ?:[\\/]* ) continue;;
1101 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1103 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1106 # There might be people who depend on the old broken behavior: `$host'
1107 # used to hold the argument of --host etc.
1108 # FIXME: To remove some day.
1111 target=$target_alias
1113 # FIXME: To remove some day.
1114 if test "x$host_alias" != x; then
1115 if test "x$build_alias" = x; then
1116 cross_compiling=maybe
1117 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1118 If a cross compiler is detected then cross compile mode will be used." >&2
1119 elif test "x$build_alias" != "x$host_alias"; then
1125 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1127 test "$silent" = yes && exec 6>/dev/null
1130 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1131 ac_ls_di=`ls -di .` &&
1132 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1133 as_fn_error "working directory cannot be determined"
1134 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1135 as_fn_error "pwd does not report name of working directory"
1138 # Find the source files, if location was not specified.
1139 if test -z "$srcdir"; then
1140 ac_srcdir_defaulted=yes
1141 # Try the directory containing this script, then the parent directory.
1142 ac_confdir=`$as_dirname -- "$as_myself" ||
1143 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1144 X"$as_myself" : 'X\(//\)[^/]' \| \
1145 X"$as_myself" : 'X\(//\)$' \| \
1146 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1147 $as_echo X"$as_myself" |
1148 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1166 if test ! -r "$srcdir/$ac_unique_file"; then
1170 ac_srcdir_defaulted=no
1172 if test ! -r "$srcdir/$ac_unique_file"; then
1173 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1174 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1176 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1178 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1180 # When building in place, set srcdir=.
1181 if test "$ac_abs_confdir" = "$ac_pwd"; then
1184 # Remove unnecessary trailing slashes from srcdir.
1185 # Double slashes in file names in object file debugging info
1186 # mess up M-x gdb in Emacs.
1188 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1190 for ac_var in $ac_precious_vars; do
1191 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1192 eval ac_env_${ac_var}_value=\$${ac_var}
1193 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1194 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1198 # Report the --help message.
1200 if test "$ac_init_help" = "long"; then
1201 # Omit some internal or obsolete options to make the list less imposing.
1202 # This message is too long to be a string in the A/UX 3.1 sh.
1204 \`configure' configures lockfree 0.1 to adapt to many kinds of systems.
1206 Usage: $0 [OPTION]... [VAR=VALUE]...
1208 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1209 VAR=VALUE. See below for descriptions of some of the useful variables.
1211 Defaults for the options are specified in brackets.
1214 -h, --help display this help and exit
1215 --help=short display options specific to this package
1216 --help=recursive display the short help of all the included packages
1217 -V, --version display version information and exit
1218 -q, --quiet, --silent do not print \`checking...' messages
1219 --cache-file=FILE cache test results in FILE [disabled]
1220 -C, --config-cache alias for \`--cache-file=config.cache'
1221 -n, --no-create do not create output files
1222 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1224 Installation directories:
1225 --prefix=PREFIX install architecture-independent files in PREFIX
1226 [$ac_default_prefix]
1227 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1230 By default, \`make install' will install all the files in
1231 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1232 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1233 for instance \`--prefix=\$HOME'.
1235 For better control, use the options below.
1237 Fine tuning of the installation directories:
1238 --bindir=DIR user executables [EPREFIX/bin]
1239 --sbindir=DIR system admin executables [EPREFIX/sbin]
1240 --libexecdir=DIR program executables [EPREFIX/libexec]
1241 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1242 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1243 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1244 --libdir=DIR object code libraries [EPREFIX/lib]
1245 --includedir=DIR C header files [PREFIX/include]
1246 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1247 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1248 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1249 --infodir=DIR info documentation [DATAROOTDIR/info]
1250 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1251 --mandir=DIR man documentation [DATAROOTDIR/man]
1252 --docdir=DIR documentation root [DATAROOTDIR/doc/lockfree]
1253 --htmldir=DIR html documentation [DOCDIR]
1254 --dvidir=DIR dvi documentation [DOCDIR]
1255 --pdfdir=DIR pdf documentation [DOCDIR]
1256 --psdir=DIR ps documentation [DOCDIR]
1263 if test -n "$ac_init_help"; then
1264 case $ac_init_help in
1265 short | recursive ) echo "Configuration of lockfree 0.1:";;
1269 Some influential environment variables:
1270 CXX C++ compiler command
1271 CXXFLAGS C++ compiler flags
1272 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1273 nonstandard directory <lib dir>
1274 LIBS libraries to pass to the linker, e.g. -l<library>
1275 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1276 you have headers in a nonstandard directory <include dir>
1277 CC C compiler command
1278 CFLAGS C compiler flags
1281 Use these variables to override the choices made by `configure' or to help
1282 it to find libraries and programs with nonstandard names/locations.
1284 Report bugs to <n.nakai@sdy.co.jp>.
1289 if test "$ac_init_help" = "recursive"; then
1290 # If there are subdirs, report their specific --help.
1291 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1292 test -d "$ac_dir" ||
1293 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1298 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1300 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1301 # A ".." for each directory in $ac_dir_suffix.
1302 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1303 case $ac_top_builddir_sub in
1304 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1305 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1308 ac_abs_top_builddir=$ac_pwd
1309 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1310 # for backward compatibility:
1311 ac_top_builddir=$ac_top_build_prefix
1314 .) # We are building in place.
1316 ac_top_srcdir=$ac_top_builddir_sub
1317 ac_abs_top_srcdir=$ac_pwd ;;
1318 [\\/]* | ?:[\\/]* ) # Absolute name.
1319 ac_srcdir=$srcdir$ac_dir_suffix;
1320 ac_top_srcdir=$srcdir
1321 ac_abs_top_srcdir=$srcdir ;;
1323 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1324 ac_top_srcdir=$ac_top_build_prefix$srcdir
1325 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1327 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1329 cd "$ac_dir" || { ac_status=$?; continue; }
1330 # Check for guested configure.
1331 if test -f "$ac_srcdir/configure.gnu"; then
1333 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1334 elif test -f "$ac_srcdir/configure"; then
1336 $SHELL "$ac_srcdir/configure" --help=recursive
1338 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1340 cd "$ac_pwd" || { ac_status=$?; break; }
1344 test -n "$ac_init_help" && exit $ac_status
1345 if $ac_init_version; then
1347 lockfree configure 0.1
1348 generated by GNU Autoconf 2.64
1350 Copyright (C) 2009 Free Software Foundation, Inc.
1351 This configure script is free software; the Free Software Foundation
1352 gives unlimited permission to copy, distribute and modify it.
1357 ## ------------------------ ##
1358 ## Autoconf initialization. ##
1359 ## ------------------------ ##
1361 # ac_fn_cxx_try_compile LINENO
1362 # ----------------------------
1363 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1364 ac_fn_cxx_try_compile ()
1366 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1367 rm -f conftest.$ac_objext
1368 if { { ac_try="$ac_compile"
1370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1371 *) ac_try_echo=$ac_try;;
1373 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1374 $as_echo "$ac_try_echo"; } >&5
1375 (eval "$ac_compile") 2>conftest.err
1377 if test -s conftest.err; then
1378 grep -v '^ *+' conftest.err >conftest.er1
1379 cat conftest.er1 >&5
1380 mv -f conftest.er1 conftest.err
1382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1383 test $ac_status = 0; } && {
1384 test -z "$ac_cxx_werror_flag" ||
1385 test ! -s conftest.err
1386 } && test -s conftest.$ac_objext; then :
1389 $as_echo "$as_me: failed program was:" >&5
1390 sed 's/^/| /' conftest.$ac_ext >&5
1394 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1397 } # ac_fn_cxx_try_compile
1399 # ac_fn_c_try_compile LINENO
1400 # --------------------------
1401 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1402 ac_fn_c_try_compile ()
1404 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1405 rm -f conftest.$ac_objext
1406 if { { ac_try="$ac_compile"
1408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1409 *) ac_try_echo=$ac_try;;
1411 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1412 $as_echo "$ac_try_echo"; } >&5
1413 (eval "$ac_compile") 2>conftest.err
1415 if test -s conftest.err; then
1416 grep -v '^ *+' conftest.err >conftest.er1
1417 cat conftest.er1 >&5
1418 mv -f conftest.er1 conftest.err
1420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1421 test $ac_status = 0; } && {
1422 test -z "$ac_c_werror_flag" ||
1423 test ! -s conftest.err
1424 } && test -s conftest.$ac_objext; then :
1427 $as_echo "$as_me: failed program was:" >&5
1428 sed 's/^/| /' conftest.$ac_ext >&5
1432 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1435 } # ac_fn_c_try_compile
1437 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1438 # -------------------------------------------
1439 # Tests whether TYPE exists after having included INCLUDES, setting cache
1440 # variable VAR accordingly.
1441 ac_fn_c_check_type ()
1443 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1445 $as_echo_n "checking for $2... " >&6; }
1446 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1447 $as_echo_n "(cached) " >&6
1450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1451 /* end confdefs.h. */
1462 if ac_fn_c_try_compile "$LINENO"; then :
1463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1464 /* end confdefs.h. */
1475 if ac_fn_c_try_compile "$LINENO"; then :
1480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1486 $as_echo "$ac_res" >&6; }
1487 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1489 } # ac_fn_c_check_type
1491 # ac_fn_c_try_cpp LINENO
1492 # ----------------------
1493 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1496 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1497 if { { ac_try="$ac_cpp conftest.$ac_ext"
1499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1500 *) ac_try_echo=$ac_try;;
1502 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1503 $as_echo "$ac_try_echo"; } >&5
1504 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1506 if test -s conftest.err; then
1507 grep -v '^ *+' conftest.err >conftest.er1
1508 cat conftest.er1 >&5
1509 mv -f conftest.er1 conftest.err
1511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1512 test $ac_status = 0; } >/dev/null && {
1513 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1514 test ! -s conftest.err
1518 $as_echo "$as_me: failed program was:" >&5
1519 sed 's/^/| /' conftest.$ac_ext >&5
1523 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1528 # ac_fn_c_try_run LINENO
1529 # ----------------------
1530 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1531 # that executables *can* be run.
1534 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1535 if { { ac_try="$ac_link"
1537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1538 *) ac_try_echo=$ac_try;;
1540 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1541 $as_echo "$ac_try_echo"; } >&5
1542 (eval "$ac_link") 2>&5
1544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1545 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1546 { { case "(($ac_try" in
1547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1548 *) ac_try_echo=$ac_try;;
1550 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1551 $as_echo "$ac_try_echo"; } >&5
1552 (eval "$ac_try") 2>&5
1554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1555 test $ac_status = 0; }; }; then :
1558 $as_echo "$as_me: program exited with status $ac_status" >&5
1559 $as_echo "$as_me: failed program was:" >&5
1560 sed 's/^/| /' conftest.$ac_ext >&5
1562 ac_retval=$ac_status
1564 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1565 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1570 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1571 # -------------------------------------------------------
1572 # Tests whether HEADER exists and can be compiled using the include files in
1573 # INCLUDES, setting the cache variable VAR accordingly.
1574 ac_fn_c_check_header_compile ()
1576 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1578 $as_echo_n "checking for $2... " >&6; }
1579 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1580 $as_echo_n "(cached) " >&6
1582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1583 /* end confdefs.h. */
1587 if ac_fn_c_try_compile "$LINENO"; then :
1592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1596 $as_echo "$ac_res" >&6; }
1597 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1599 } # ac_fn_c_check_header_compile
1600 cat >config.log <<_ACEOF
1601 This file contains any messages produced by compilers while
1602 running configure, to aid debugging if configure makes a mistake.
1604 It was created by lockfree $as_me 0.1, which was
1605 generated by GNU Autoconf 2.64. Invocation command line was
1617 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1618 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1619 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1620 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1621 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1623 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1624 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1626 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1627 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1628 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1629 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1630 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1631 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1632 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1640 test -z "$as_dir" && as_dir=.
1641 $as_echo "PATH: $as_dir"
1657 # Keep a trace of the command line.
1658 # Strip out --no-create and --no-recursion so they do not pile up.
1659 # Strip out --silent because we don't want to record it for future runs.
1660 # Also quote any args containing shell meta-characters.
1661 # Make two passes to allow for proper duplicate-argument suppression.
1665 ac_must_keep_next=false
1671 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1672 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1673 | -silent | --silent | --silen | --sile | --sil)
1676 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1679 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1681 as_fn_append ac_configure_args1 " '$ac_arg'"
1682 if test $ac_must_keep_next = true; then
1683 ac_must_keep_next=false # Got value, back to normal.
1686 *=* | --config-cache | -C | -disable-* | --disable-* \
1687 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1688 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1689 | -with-* | --with-* | -without-* | --without-* | --x)
1690 case "$ac_configure_args0 " in
1691 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1694 -* ) ac_must_keep_next=true ;;
1697 as_fn_append ac_configure_args " '$ac_arg'"
1702 { ac_configure_args0=; unset ac_configure_args0;}
1703 { ac_configure_args1=; unset ac_configure_args1;}
1705 # When interrupted or exit'd, cleanup temporary files, and complete
1706 # config.log. We remove comments because anyway the quotes in there
1707 # would cause problems or look ugly.
1708 # WARNING: Use '\'' to represent an apostrophe within the trap.
1709 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1710 trap 'exit_status=$?
1711 # Save into config.log some information that might help in debugging.
1716 ## ---------------- ##
1717 ## Cache variables. ##
1718 ## ---------------- ##
1721 # The following way of writing the cache mishandles newlines in values,
1723 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1724 eval ac_val=\$$ac_var
1728 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1729 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1732 _ | IFS | as_nl) ;; #(
1733 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1734 *) { eval $ac_var=; unset $ac_var;} ;;
1739 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1740 *${as_nl}ac_space=\ *)
1742 "s/'\''/'\''\\\\'\'''\''/g;
1743 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1746 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1754 ## ----------------- ##
1755 ## Output variables. ##
1756 ## ----------------- ##
1759 for ac_var in $ac_subst_vars
1761 eval ac_val=\$$ac_var
1763 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1765 $as_echo "$ac_var='\''$ac_val'\''"
1769 if test -n "$ac_subst_files"; then
1771 ## ------------------- ##
1772 ## File substitutions. ##
1773 ## ------------------- ##
1776 for ac_var in $ac_subst_files
1778 eval ac_val=\$$ac_var
1780 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1782 $as_echo "$ac_var='\''$ac_val'\''"
1787 if test -s confdefs.h; then
1797 test "$ac_signal" != 0 &&
1798 $as_echo "$as_me: caught signal $ac_signal"
1799 $as_echo "$as_me: exit $exit_status"
1801 rm -f core *.core core.conftest.* &&
1802 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1805 for ac_signal in 1 2 13 15; do
1806 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1810 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1811 rm -f -r conftest* confdefs.h
1813 $as_echo "/* confdefs.h */" > confdefs.h
1815 # Predefined preprocessor variables.
1817 cat >>confdefs.h <<_ACEOF
1818 #define PACKAGE_NAME "$PACKAGE_NAME"
1821 cat >>confdefs.h <<_ACEOF
1822 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1825 cat >>confdefs.h <<_ACEOF
1826 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1829 cat >>confdefs.h <<_ACEOF
1830 #define PACKAGE_STRING "$PACKAGE_STRING"
1833 cat >>confdefs.h <<_ACEOF
1834 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1837 cat >>confdefs.h <<_ACEOF
1838 #define PACKAGE_URL "$PACKAGE_URL"
1842 # Let the site file select an alternate cache file if it wants to.
1843 # Prefer an explicitly selected file to automatically selected ones.
1846 if test -n "$CONFIG_SITE"; then
1847 ac_site_file1=$CONFIG_SITE
1848 elif test "x$prefix" != xNONE; then
1849 ac_site_file1=$prefix/share/config.site
1850 ac_site_file2=$prefix/etc/config.site
1852 ac_site_file1=$ac_default_prefix/share/config.site
1853 ac_site_file2=$ac_default_prefix/etc/config.site
1855 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1857 test "x$ac_site_file" = xNONE && continue
1858 if test -r "$ac_site_file"; then
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1860 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1861 sed 's/^/| /' "$ac_site_file" >&5
1866 if test -r "$cache_file"; then
1867 # Some versions of bash will fail to source /dev/null (special
1868 # files actually), so we avoid doing that.
1869 if test -f "$cache_file"; then
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1871 $as_echo "$as_me: loading cache $cache_file" >&6;}
1873 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1874 *) . "./$cache_file";;
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1879 $as_echo "$as_me: creating cache $cache_file" >&6;}
1883 # Check that the precious variables saved in the cache have kept the same
1885 ac_cache_corrupted=false
1886 for ac_var in $ac_precious_vars; do
1887 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1888 eval ac_new_set=\$ac_env_${ac_var}_set
1889 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1890 eval ac_new_val=\$ac_env_${ac_var}_value
1891 case $ac_old_set,$ac_new_set in
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1894 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1895 ac_cache_corrupted=: ;;
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1898 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1899 ac_cache_corrupted=: ;;
1902 if test "x$ac_old_val" != "x$ac_new_val"; then
1903 # differences in whitespace do not lead to failure.
1904 ac_old_val_w=`echo x $ac_old_val`
1905 ac_new_val_w=`echo x $ac_new_val`
1906 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1908 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1909 ac_cache_corrupted=:
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1912 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1913 eval $ac_var=\$ac_old_val
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1916 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1918 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1921 # Pass precious variables to config.status.
1922 if test "$ac_new_set" = set; then
1924 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1925 *) ac_arg=$ac_var=$ac_new_val ;;
1927 case " $ac_configure_args " in
1928 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1929 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1933 if $ac_cache_corrupted; then
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1935 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1937 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1938 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1940 ## -------------------- ##
1941 ## Main body of script. ##
1942 ## -------------------- ##
1945 ac_cpp='$CPP $CPPFLAGS'
1946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1952 ac_config_headers="$ac_config_headers config.h"
1955 # Checks for programs.
1957 ac_cpp='$CXXCPP $CPPFLAGS'
1958 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1959 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1960 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1961 if test -z "$CXX"; then
1962 if test -n "$CCC"; then
1965 if test -n "$ac_tool_prefix"; then
1966 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
1968 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1969 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1971 $as_echo_n "checking for $ac_word... " >&6; }
1972 if test "${ac_cv_prog_CXX+set}" = set; then :
1973 $as_echo_n "(cached) " >&6
1975 if test -n "$CXX"; then
1976 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1982 test -z "$as_dir" && as_dir=.
1983 for ac_exec_ext in '' $ac_executable_extensions; do
1984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1985 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1996 if test -n "$CXX"; then
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
1998 $as_echo "$CXX" >&6; }
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2001 $as_echo "no" >&6; }
2005 test -n "$CXX" && break
2008 if test -z "$CXX"; then
2010 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2012 # Extract the first word of "$ac_prog", so it can be a program name with args.
2013 set dummy $ac_prog; ac_word=$2
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2015 $as_echo_n "checking for $ac_word... " >&6; }
2016 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
2017 $as_echo_n "(cached) " >&6
2019 if test -n "$ac_ct_CXX"; then
2020 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2026 test -z "$as_dir" && as_dir=.
2027 for ac_exec_ext in '' $ac_executable_extensions; do
2028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2029 ac_cv_prog_ac_ct_CXX="$ac_prog"
2030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2039 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2040 if test -n "$ac_ct_CXX"; then
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2042 $as_echo "$ac_ct_CXX" >&6; }
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2045 $as_echo "no" >&6; }
2049 test -n "$ac_ct_CXX" && break
2052 if test "x$ac_ct_CXX" = x; then
2055 case $cross_compiling:$ac_tool_warned in
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2058 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2059 ac_tool_warned=yes ;;
2067 # Provide some information about the compiler.
2068 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2071 for ac_option in --version -v -V -qversion; do
2072 { { ac_try="$ac_compiler $ac_option >&5"
2074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2075 *) ac_try_echo=$ac_try;;
2077 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2078 $as_echo "$ac_try_echo"; } >&5
2079 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2081 if test -s conftest.err; then
2083 ... rest of stderr output deleted ...
2084 10q' conftest.err >conftest.er1
2085 cat conftest.er1 >&5
2086 rm -f conftest.er1 conftest.err
2088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2089 test $ac_status = 0; }
2092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2093 /* end confdefs.h. */
2098 FILE *f = fopen ("conftest.out", "w");
2099 return ferror (f) || fclose (f) != 0;
2105 ac_clean_files_save=$ac_clean_files
2106 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2107 # Try to create an executable without -o first, disregard a.out.
2108 # It will help us diagnose broken compilers, and finding out an intuition
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
2111 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
2112 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2114 # The possible output files:
2115 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2118 for ac_file in $ac_files
2121 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2122 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2127 if { { ac_try="$ac_link_default"
2129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2130 *) ac_try_echo=$ac_try;;
2132 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2133 $as_echo "$ac_try_echo"; } >&5
2134 (eval "$ac_link_default") 2>&5
2136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2137 test $ac_status = 0; }; then :
2138 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2139 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2140 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2141 # so that the user can short-circuit this test for compilers unknown to
2143 for ac_file in $ac_files ''
2145 test -f "$ac_file" || continue
2147 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2150 # We found the default executable, but exeext='' is most
2154 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2156 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2158 # We set ac_cv_exeext here because the later test for it is not
2159 # safe: cross compilers may not add the suffix if given an `-o'
2160 # argument, so we may need to know it at that point already.
2161 # Even if this section looks crufty: it has the advantage of
2168 test "$ac_cv_exeext" = no && ac_cv_exeext=
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2174 $as_echo "$ac_file" >&6; }
2175 if test -z "$ac_file"; then :
2176 $as_echo "$as_me: failed program was:" >&5
2177 sed 's/^/| /' conftest.$ac_ext >&5
2179 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2180 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2181 { as_fn_set_status 77
2182 as_fn_error "C++ compiler cannot create executables
2183 See \`config.log' for more details." "$LINENO" 5; }; }
2185 ac_exeext=$ac_cv_exeext
2187 # Check that the compiler produces executables we can run. If not, either
2188 # the compiler is broken, or we cross compile.
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
2190 $as_echo_n "checking whether the C++ compiler works... " >&6; }
2191 # If not cross compiling, check that we can run a simple program.
2192 if test "$cross_compiling" != yes; then
2193 if { ac_try='./$ac_file'
2194 { { case "(($ac_try" in
2195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2196 *) ac_try_echo=$ac_try;;
2198 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2199 $as_echo "$ac_try_echo"; } >&5
2200 (eval "$ac_try") 2>&5
2202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2203 test $ac_status = 0; }; }; then
2206 if test "$cross_compiling" = maybe; then
2209 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2210 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2211 as_fn_error "cannot run C++ compiled programs.
2212 If you meant to cross compile, use \`--host'.
2213 See \`config.log' for more details." "$LINENO" 5; }
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2218 $as_echo "yes" >&6; }
2220 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2221 ac_clean_files=$ac_clean_files_save
2222 # Check that the compiler produces executables we can run. If not, either
2223 # the compiler is broken, or we cross compile.
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2225 $as_echo_n "checking whether we are cross compiling... " >&6; }
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2227 $as_echo "$cross_compiling" >&6; }
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2230 $as_echo_n "checking for suffix of executables... " >&6; }
2231 if { { ac_try="$ac_link"
2233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2234 *) ac_try_echo=$ac_try;;
2236 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2237 $as_echo "$ac_try_echo"; } >&5
2238 (eval "$ac_link") 2>&5
2240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2241 test $ac_status = 0; }; then :
2242 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2243 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2244 # work properly (i.e., refer to `conftest.exe'), while it won't with
2246 for ac_file in conftest.exe conftest conftest.*; do
2247 test -f "$ac_file" || continue
2249 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2250 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2256 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2257 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2258 as_fn_error "cannot compute suffix of executables: cannot compile and link
2259 See \`config.log' for more details." "$LINENO" 5; }
2261 rm -f conftest$ac_cv_exeext
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2263 $as_echo "$ac_cv_exeext" >&6; }
2265 rm -f conftest.$ac_ext
2266 EXEEXT=$ac_cv_exeext
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2269 $as_echo_n "checking for suffix of object files... " >&6; }
2270 if test "${ac_cv_objext+set}" = set; then :
2271 $as_echo_n "(cached) " >&6
2273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2274 /* end confdefs.h. */
2284 rm -f conftest.o conftest.obj
2285 if { { ac_try="$ac_compile"
2287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2288 *) ac_try_echo=$ac_try;;
2290 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2291 $as_echo "$ac_try_echo"; } >&5
2292 (eval "$ac_compile") 2>&5
2294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2295 test $ac_status = 0; }; then :
2296 for ac_file in conftest.o conftest.obj conftest.*; do
2297 test -f "$ac_file" || continue;
2299 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2300 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2305 $as_echo "$as_me: failed program was:" >&5
2306 sed 's/^/| /' conftest.$ac_ext >&5
2308 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2309 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2310 as_fn_error "cannot compute suffix of object files: cannot compile
2311 See \`config.log' for more details." "$LINENO" 5; }
2313 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2316 $as_echo "$ac_cv_objext" >&6; }
2317 OBJEXT=$ac_cv_objext
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
2320 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
2321 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
2322 $as_echo_n "(cached) " >&6
2324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2325 /* end confdefs.h. */
2338 if ac_fn_cxx_try_compile "$LINENO"; then :
2343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2344 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
2348 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
2349 if test $ac_compiler_gnu = yes; then
2354 ac_test_CXXFLAGS=${CXXFLAGS+set}
2355 ac_save_CXXFLAGS=$CXXFLAGS
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
2357 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
2358 if test "${ac_cv_prog_cxx_g+set}" = set; then :
2359 $as_echo_n "(cached) " >&6
2361 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2362 ac_cxx_werror_flag=yes
2365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2366 /* end confdefs.h. */
2376 if ac_fn_cxx_try_compile "$LINENO"; then :
2377 ac_cv_prog_cxx_g=yes
2380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2381 /* end confdefs.h. */
2391 if ac_fn_cxx_try_compile "$LINENO"; then :
2394 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2397 /* end confdefs.h. */
2407 if ac_fn_cxx_try_compile "$LINENO"; then :
2408 ac_cv_prog_cxx_g=yes
2410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2415 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
2418 $as_echo "$ac_cv_prog_cxx_g" >&6; }
2419 if test "$ac_test_CXXFLAGS" = set; then
2420 CXXFLAGS=$ac_save_CXXFLAGS
2421 elif test $ac_cv_prog_cxx_g = yes; then
2422 if test "$GXX" = yes; then
2428 if test "$GXX" = yes; then
2435 ac_cpp='$CPP $CPPFLAGS'
2436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2441 # Checks for libraries.
2443 # Checks for header files.
2445 # Checks for typedefs, structures, and compiler characteristics.
2447 ac_cpp='$CPP $CPPFLAGS'
2448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2451 if test -n "$ac_tool_prefix"; then
2452 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2453 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2455 $as_echo_n "checking for $ac_word... " >&6; }
2456 if test "${ac_cv_prog_CC+set}" = set; then :
2457 $as_echo_n "(cached) " >&6
2459 if test -n "$CC"; then
2460 ac_cv_prog_CC="$CC" # Let the user override the test.
2462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2466 test -z "$as_dir" && as_dir=.
2467 for ac_exec_ext in '' $ac_executable_extensions; do
2468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2469 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2480 if test -n "$CC"; then
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2482 $as_echo "$CC" >&6; }
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2485 $as_echo "no" >&6; }
2490 if test -z "$ac_cv_prog_CC"; then
2492 # Extract the first word of "gcc", so it can be a program name with args.
2493 set dummy gcc; ac_word=$2
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2495 $as_echo_n "checking for $ac_word... " >&6; }
2496 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2497 $as_echo_n "(cached) " >&6
2499 if test -n "$ac_ct_CC"; then
2500 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2506 test -z "$as_dir" && as_dir=.
2507 for ac_exec_ext in '' $ac_executable_extensions; do
2508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2509 ac_cv_prog_ac_ct_CC="gcc"
2510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2519 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2520 if test -n "$ac_ct_CC"; then
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2522 $as_echo "$ac_ct_CC" >&6; }
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2525 $as_echo "no" >&6; }
2528 if test "x$ac_ct_CC" = x; then
2531 case $cross_compiling:$ac_tool_warned in
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2534 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2535 ac_tool_warned=yes ;;
2543 if test -z "$CC"; then
2544 if test -n "$ac_tool_prefix"; then
2545 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2546 set dummy ${ac_tool_prefix}cc; ac_word=$2
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2548 $as_echo_n "checking for $ac_word... " >&6; }
2549 if test "${ac_cv_prog_CC+set}" = set; then :
2550 $as_echo_n "(cached) " >&6
2552 if test -n "$CC"; then
2553 ac_cv_prog_CC="$CC" # Let the user override the test.
2555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2559 test -z "$as_dir" && as_dir=.
2560 for ac_exec_ext in '' $ac_executable_extensions; do
2561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2562 ac_cv_prog_CC="${ac_tool_prefix}cc"
2563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2573 if test -n "$CC"; then
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2575 $as_echo "$CC" >&6; }
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2578 $as_echo "no" >&6; }
2584 if test -z "$CC"; then
2585 # Extract the first word of "cc", so it can be a program name with args.
2586 set dummy cc; ac_word=$2
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2588 $as_echo_n "checking for $ac_word... " >&6; }
2589 if test "${ac_cv_prog_CC+set}" = set; then :
2590 $as_echo_n "(cached) " >&6
2592 if test -n "$CC"; then
2593 ac_cv_prog_CC="$CC" # Let the user override the test.
2596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2600 test -z "$as_dir" && as_dir=.
2601 for ac_exec_ext in '' $ac_executable_extensions; do
2602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2603 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2604 ac_prog_rejected=yes
2608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2615 if test $ac_prog_rejected = yes; then
2616 # We found a bogon in the path, so make sure we never use it.
2617 set dummy $ac_cv_prog_CC
2619 if test $# != 0; then
2620 # We chose a different compiler from the bogus one.
2621 # However, it has the same basename, so the bogon will be chosen
2622 # first if we set CC to just the basename; use the full file name.
2624 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2630 if test -n "$CC"; then
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2632 $as_echo "$CC" >&6; }
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2635 $as_echo "no" >&6; }
2640 if test -z "$CC"; then
2641 if test -n "$ac_tool_prefix"; then
2642 for ac_prog in cl.exe
2644 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2645 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2647 $as_echo_n "checking for $ac_word... " >&6; }
2648 if test "${ac_cv_prog_CC+set}" = set; then :
2649 $as_echo_n "(cached) " >&6
2651 if test -n "$CC"; then
2652 ac_cv_prog_CC="$CC" # Let the user override the test.
2654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2658 test -z "$as_dir" && as_dir=.
2659 for ac_exec_ext in '' $ac_executable_extensions; do
2660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2661 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2672 if test -n "$CC"; then
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2674 $as_echo "$CC" >&6; }
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2677 $as_echo "no" >&6; }
2681 test -n "$CC" && break
2684 if test -z "$CC"; then
2686 for ac_prog in cl.exe
2688 # Extract the first word of "$ac_prog", so it can be a program name with args.
2689 set dummy $ac_prog; ac_word=$2
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2691 $as_echo_n "checking for $ac_word... " >&6; }
2692 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2693 $as_echo_n "(cached) " >&6
2695 if test -n "$ac_ct_CC"; then
2696 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2702 test -z "$as_dir" && as_dir=.
2703 for ac_exec_ext in '' $ac_executable_extensions; do
2704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2705 ac_cv_prog_ac_ct_CC="$ac_prog"
2706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2715 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2716 if test -n "$ac_ct_CC"; then
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2718 $as_echo "$ac_ct_CC" >&6; }
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2721 $as_echo "no" >&6; }
2725 test -n "$ac_ct_CC" && break
2728 if test "x$ac_ct_CC" = x; then
2731 case $cross_compiling:$ac_tool_warned in
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2734 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2735 ac_tool_warned=yes ;;
2744 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2745 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2746 as_fn_error "no acceptable C compiler found in \$PATH
2747 See \`config.log' for more details." "$LINENO" 5; }
2749 # Provide some information about the compiler.
2750 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2753 for ac_option in --version -v -V -qversion; do
2754 { { ac_try="$ac_compiler $ac_option >&5"
2756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2757 *) ac_try_echo=$ac_try;;
2759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2760 $as_echo "$ac_try_echo"; } >&5
2761 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2763 if test -s conftest.err; then
2765 ... rest of stderr output deleted ...
2766 10q' conftest.err >conftest.er1
2767 cat conftest.er1 >&5
2768 rm -f conftest.er1 conftest.err
2770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2771 test $ac_status = 0; }
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2775 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2776 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2777 $as_echo_n "(cached) " >&6
2779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2780 /* end confdefs.h. */
2793 if ac_fn_c_try_compile "$LINENO"; then :
2798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2799 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2803 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2804 if test $ac_compiler_gnu = yes; then
2809 ac_test_CFLAGS=${CFLAGS+set}
2810 ac_save_CFLAGS=$CFLAGS
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2812 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2813 if test "${ac_cv_prog_cc_g+set}" = set; then :
2814 $as_echo_n "(cached) " >&6
2816 ac_save_c_werror_flag=$ac_c_werror_flag
2817 ac_c_werror_flag=yes
2820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2821 /* end confdefs.h. */
2831 if ac_fn_c_try_compile "$LINENO"; then :
2835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2836 /* end confdefs.h. */
2846 if ac_fn_c_try_compile "$LINENO"; then :
2849 ac_c_werror_flag=$ac_save_c_werror_flag
2851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2852 /* end confdefs.h. */
2862 if ac_fn_c_try_compile "$LINENO"; then :
2865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2870 ac_c_werror_flag=$ac_save_c_werror_flag
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2873 $as_echo "$ac_cv_prog_cc_g" >&6; }
2874 if test "$ac_test_CFLAGS" = set; then
2875 CFLAGS=$ac_save_CFLAGS
2876 elif test $ac_cv_prog_cc_g = yes; then
2877 if test "$GCC" = yes; then
2883 if test "$GCC" = yes; then
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2890 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2891 if test "${ac_cv_prog_cc_c89+set}" = set; then :
2892 $as_echo_n "(cached) " >&6
2894 ac_cv_prog_cc_c89=no
2896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2897 /* end confdefs.h. */
2900 #include <sys/types.h>
2901 #include <sys/stat.h>
2902 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2903 struct buf { int x; };
2904 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2905 static char *e (p, i)
2911 static char *f (char * (*g) (char **, int), char **p, ...)
2916 s = g (p, va_arg (v,int));
2921 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2922 function prototypes and stuff, but not '\xHH' hex character constants.
2923 These don't provoke an error unfortunately, instead are silently treated
2924 as 'x'. The following induces an error, until -std is added to get
2925 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2926 array size at least. It's necessary to write '\x00'==0 to get something
2927 that's true only with -std. */
2928 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2930 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2931 inside strings and character constants. */
2933 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2935 int test (int i, double x);
2936 struct s1 {int (*f) (int a);};
2937 struct s2 {int (*f) (double a);};
2938 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2944 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2949 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2950 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2952 CC="$ac_save_CC $ac_arg"
2953 if ac_fn_c_try_compile "$LINENO"; then :
2954 ac_cv_prog_cc_c89=$ac_arg
2956 rm -f core conftest.err conftest.$ac_objext
2957 test "x$ac_cv_prog_cc_c89" != "xno" && break
2959 rm -f conftest.$ac_ext
2964 case "x$ac_cv_prog_cc_c89" in
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2967 $as_echo "none needed" >&6; } ;;
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2970 $as_echo "unsupported" >&6; } ;;
2972 CC="$CC $ac_cv_prog_cc_c89"
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2974 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2976 if test "x$ac_cv_prog_cc_c89" != xno; then :
2981 ac_cpp='$CPP $CPPFLAGS'
2982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2988 ac_cpp='$CPP $CPPFLAGS'
2989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
2993 $as_echo_n "checking how to run the C preprocessor... " >&6; }
2994 # On Suns, sometimes $CPP names a directory.
2995 if test -n "$CPP" && test -d "$CPP"; then
2998 if test -z "$CPP"; then
2999 if test "${ac_cv_prog_CPP+set}" = set; then :
3000 $as_echo_n "(cached) " >&6
3002 # Double quotes because CPP needs to be expanded
3003 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3006 for ac_c_preproc_warn_flag in '' yes
3008 # Use a header file that comes with gcc, so configuring glibc
3009 # with a fresh cross-compiler works.
3010 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3011 # <limits.h> exists even on freestanding compilers.
3012 # On the NeXT, cc -E runs the code through the compiler's parser,
3013 # not just through cpp. "Syntax error" is here to catch this case.
3014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3015 /* end confdefs.h. */
3017 # include <limits.h>
3019 # include <assert.h>
3023 if ac_fn_c_try_cpp "$LINENO"; then :
3026 # Broken: fails on valid input.
3029 rm -f conftest.err conftest.$ac_ext
3031 # OK, works on sane cases. Now check whether nonexistent headers
3032 # can be detected and how.
3033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3034 /* end confdefs.h. */
3035 #include <ac_nonexistent.h>
3037 if ac_fn_c_try_cpp "$LINENO"; then :
3038 # Broken: success on invalid input.
3041 # Passes both tests.
3045 rm -f conftest.err conftest.$ac_ext
3048 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3049 rm -f conftest.err conftest.$ac_ext
3050 if $ac_preproc_ok; then :
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3063 $as_echo "$CPP" >&6; }
3065 for ac_c_preproc_warn_flag in '' yes
3067 # Use a header file that comes with gcc, so configuring glibc
3068 # with a fresh cross-compiler works.
3069 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3070 # <limits.h> exists even on freestanding compilers.
3071 # On the NeXT, cc -E runs the code through the compiler's parser,
3072 # not just through cpp. "Syntax error" is here to catch this case.
3073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3074 /* end confdefs.h. */
3076 # include <limits.h>
3078 # include <assert.h>
3082 if ac_fn_c_try_cpp "$LINENO"; then :
3085 # Broken: fails on valid input.
3088 rm -f conftest.err conftest.$ac_ext
3090 # OK, works on sane cases. Now check whether nonexistent headers
3091 # can be detected and how.
3092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3093 /* end confdefs.h. */
3094 #include <ac_nonexistent.h>
3096 if ac_fn_c_try_cpp "$LINENO"; then :
3097 # Broken: success on invalid input.
3100 # Passes both tests.
3104 rm -f conftest.err conftest.$ac_ext
3107 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3108 rm -f conftest.err conftest.$ac_ext
3109 if $ac_preproc_ok; then :
3112 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3113 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3114 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3115 See \`config.log' for more details." "$LINENO" 5; }
3119 ac_cpp='$CPP $CPPFLAGS'
3120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3126 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3127 if test "${ac_cv_path_GREP+set}" = set; then :
3128 $as_echo_n "(cached) " >&6
3130 if test -z "$GREP"; then
3131 ac_path_GREP_found=false
3132 # Loop through the user's path and test for each of PROGNAME-LIST
3133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3134 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3137 test -z "$as_dir" && as_dir=.
3138 for ac_prog in grep ggrep; do
3139 for ac_exec_ext in '' $ac_executable_extensions; do
3140 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3141 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3142 # Check for GNU ac_path_GREP and select it if it is found.
3143 # Check for GNU $ac_path_GREP
3144 case `"$ac_path_GREP" --version 2>&1` in
3146 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3149 $as_echo_n 0123456789 >"conftest.in"
3152 cat "conftest.in" "conftest.in" >"conftest.tmp"
3153 mv "conftest.tmp" "conftest.in"
3154 cp "conftest.in" "conftest.nl"
3155 $as_echo 'GREP' >> "conftest.nl"
3156 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3157 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3158 as_fn_arith $ac_count + 1 && ac_count=$as_val
3159 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3160 # Best one so far, save it but keep looking for a better one
3161 ac_cv_path_GREP="$ac_path_GREP"
3162 ac_path_GREP_max=$ac_count
3164 # 10*(2^10) chars as input seems more than enough
3165 test $ac_count -gt 10 && break
3167 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3170 $ac_path_GREP_found && break 3
3175 if test -z "$ac_cv_path_GREP"; then
3176 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3179 ac_cv_path_GREP=$GREP
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3184 $as_echo "$ac_cv_path_GREP" >&6; }
3185 GREP="$ac_cv_path_GREP"
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3189 $as_echo_n "checking for egrep... " >&6; }
3190 if test "${ac_cv_path_EGREP+set}" = set; then :
3191 $as_echo_n "(cached) " >&6
3193 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3194 then ac_cv_path_EGREP="$GREP -E"
3196 if test -z "$EGREP"; then
3197 ac_path_EGREP_found=false
3198 # Loop through the user's path and test for each of PROGNAME-LIST
3199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3200 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3203 test -z "$as_dir" && as_dir=.
3204 for ac_prog in egrep; do
3205 for ac_exec_ext in '' $ac_executable_extensions; do
3206 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3207 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3208 # Check for GNU ac_path_EGREP and select it if it is found.
3209 # Check for GNU $ac_path_EGREP
3210 case `"$ac_path_EGREP" --version 2>&1` in
3212 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3215 $as_echo_n 0123456789 >"conftest.in"
3218 cat "conftest.in" "conftest.in" >"conftest.tmp"
3219 mv "conftest.tmp" "conftest.in"
3220 cp "conftest.in" "conftest.nl"
3221 $as_echo 'EGREP' >> "conftest.nl"
3222 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3223 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3224 as_fn_arith $ac_count + 1 && ac_count=$as_val
3225 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3226 # Best one so far, save it but keep looking for a better one
3227 ac_cv_path_EGREP="$ac_path_EGREP"
3228 ac_path_EGREP_max=$ac_count
3230 # 10*(2^10) chars as input seems more than enough
3231 test $ac_count -gt 10 && break
3233 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3236 $ac_path_EGREP_found && break 3
3241 if test -z "$ac_cv_path_EGREP"; then
3242 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3245 ac_cv_path_EGREP=$EGREP
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3251 $as_echo "$ac_cv_path_EGREP" >&6; }
3252 EGREP="$ac_cv_path_EGREP"
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3256 $as_echo_n "checking for ANSI C header files... " >&6; }
3257 if test "${ac_cv_header_stdc+set}" = set; then :
3258 $as_echo_n "(cached) " >&6
3260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3261 /* end confdefs.h. */
3275 if ac_fn_c_try_compile "$LINENO"; then :
3276 ac_cv_header_stdc=yes
3278 ac_cv_header_stdc=no
3280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3282 if test $ac_cv_header_stdc = yes; then
3283 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3285 /* end confdefs.h. */
3289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3290 $EGREP "memchr" >/dev/null 2>&1; then :
3293 ac_cv_header_stdc=no
3299 if test $ac_cv_header_stdc = yes; then
3300 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3302 /* end confdefs.h. */
3306 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3307 $EGREP "free" >/dev/null 2>&1; then :
3310 ac_cv_header_stdc=no
3316 if test $ac_cv_header_stdc = yes; then
3317 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3318 if test "$cross_compiling" = yes; then :
3321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3322 /* end confdefs.h. */
3325 #if ((' ' & 0x0FF) == 0x020)
3326 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3327 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3329 # define ISLOWER(c) \
3330 (('a' <= (c) && (c) <= 'i') \
3331 || ('j' <= (c) && (c) <= 'r') \
3332 || ('s' <= (c) && (c) <= 'z'))
3333 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3336 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3341 for (i = 0; i < 256; i++)
3342 if (XOR (islower (i), ISLOWER (i))
3343 || toupper (i) != TOUPPER (i))
3348 if ac_fn_c_try_run "$LINENO"; then :
3351 ac_cv_header_stdc=no
3353 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3354 conftest.$ac_objext conftest.beam conftest.$ac_ext
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3360 $as_echo "$ac_cv_header_stdc" >&6; }
3361 if test $ac_cv_header_stdc = yes; then
3363 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3367 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3368 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3369 inttypes.h stdint.h unistd.h
3371 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3372 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3374 eval as_val=\$$as_ac_Header
3375 if test "x$as_val" = x""yes; then :
3376 cat >>confdefs.h <<_ACEOF
3377 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
3386 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
3387 if test "${ac_cv_header_stdbool_h+set}" = set; then :
3388 $as_echo_n "(cached) " >&6
3390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3391 /* end confdefs.h. */
3393 #include <stdbool.h>
3395 "error: bool is not defined"
3398 "error: false is not defined"
3401 "error: false is not 0"
3404 "error: true is not defined"
3407 "error: true is not 1"
3409 #ifndef __bool_true_false_are_defined
3410 "error: __bool_true_false_are_defined is not defined"
3413 struct s { _Bool s: 1; _Bool t; } s;
3415 char a[true == 1 ? 1 : -1];
3416 char b[false == 0 ? 1 : -1];
3417 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
3418 char d[(bool) 0.5 == true ? 1 : -1];
3420 char f[(_Bool) 0.0 == false ? 1 : -1];
3422 char h[sizeof (_Bool)];
3424 enum { j = false, k = true, l = false * true, m = true * 256 };
3425 /* The following fails for
3426 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
3428 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
3429 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
3430 # if defined __xlc__ || defined __GNUC__
3431 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
3432 reported by James Lemley on 2005-10-05; see
3433 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
3434 This test is not quite right, since xlc is allowed to
3435 reject this program, as the initializer for xlcbug is
3436 not one of the forms that C requires support for.
3437 However, doing the test right would require a runtime
3438 test, and that would make cross-compilation harder.
3439 Let us hope that IBM fixes the xlc bug, and also adds
3440 support for this kind of constant expression. In the
3441 meantime, this test will reject xlc, which is OK, since
3442 our stdbool.h substitute should suffice. We also test
3443 this with GCC, where it should work, to detect more
3444 quickly whether someone messes up the test in the
3446 char digs[] = "0123456789";
3447 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
3449 /* Catch a bug in an HP-UX C compiler. See
3450 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
3451 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
3462 /* Refer to every declared value, to avoid compiler optimizations. */
3463 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
3464 + !m + !n + !o + !p + !q + !pq);
3470 if ac_fn_c_try_compile "$LINENO"; then :
3471 ac_cv_header_stdbool_h=yes
3473 ac_cv_header_stdbool_h=no
3475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
3478 $as_echo "$ac_cv_header_stdbool_h" >&6; }
3479 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
3480 if test "x$ac_cv_type__Bool" = x""yes; then :
3482 cat >>confdefs.h <<_ACEOF
3483 #define HAVE__BOOL 1
3489 if test $ac_cv_header_stdbool_h = yes; then
3491 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
3495 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
3496 if test "x$ac_cv_type_size_t" = x""yes; then :
3500 cat >>confdefs.h <<_ACEOF
3501 #define size_t unsigned int
3507 # Checks for library functions.
3509 ac_config_files="$ac_config_files Makefile sample/Makefile"
3511 cat >confcache <<\_ACEOF
3512 # This file is a shell script that caches the results of configure
3513 # tests run on this system so they can be shared between configure
3514 # scripts and configure runs, see configure's option --config-cache.
3515 # It is not useful on other systems. If it contains results you don't
3516 # want to keep, you may remove or edit it.
3518 # config.status only pays attention to the cache file if you give it
3519 # the --recheck option to rerun configure.
3521 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3522 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3527 # The following way of writing the cache mishandles newlines in values,
3528 # but we know of no workaround that is simple, portable, and efficient.
3529 # So, we kill variables containing newlines.
3530 # Ultrix sh set writes to stderr and can't be redirected directly,
3531 # and sets the high bit in the cache file unless we assign to the vars.
3533 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3534 eval ac_val=\$$ac_var
3538 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3539 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3542 _ | IFS | as_nl) ;; #(
3543 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3544 *) { eval $ac_var=; unset $ac_var;} ;;
3550 case $as_nl`(ac_space=' '; set) 2>&1` in #(
3551 *${as_nl}ac_space=\ *)
3552 # `set' does not quote correctly, so add quotes: double-quote
3553 # substitution turns \\\\ into \\, and sed turns \\ into \.
3556 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3559 # `set' quotes correctly as required by POSIX, so do not add quotes.
3560 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3569 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3571 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3573 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3574 if test -w "$cache_file"; then
3575 test "x$cache_file" != "x/dev/null" &&
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
3577 $as_echo "$as_me: updating cache $cache_file" >&6;}
3578 cat confcache >$cache_file
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
3581 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
3586 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3587 # Let make expand exec_prefix.
3588 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3590 DEFS=-DHAVE_CONFIG_H
3594 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3595 # 1. Remove the extension, and $U if already installed.
3596 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
3597 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
3598 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
3599 # will be set to the directory where LIBOBJS objects are built.
3600 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
3601 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
3605 LTLIBOBJS=$ac_ltlibobjs
3609 : ${CONFIG_STATUS=./config.status}
3611 ac_clean_files_save=$ac_clean_files
3612 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
3614 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
3616 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
3618 # Generated by $as_me.
3619 # Run this file to recreate the current configuration.
3620 # Compiler output produced by configure, useful for debugging
3621 # configure, is in config.log if it exists.
3627 SHELL=\${CONFIG_SHELL-$SHELL}
3630 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
3631 ## -------------------- ##
3632 ## M4sh Initialization. ##
3633 ## -------------------- ##
3635 # Be more Bourne compatible
3636 DUALCASE=1; export DUALCASE # for MKS sh
3637 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
3640 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
3641 # is contrary to our usage. Disable this feature.
3642 alias -g '${1+"$@"}'='"$@"'
3643 setopt NO_GLOB_SUBST
3645 case `(set -o) 2>/dev/null` in #(
3657 # Printing a long string crashes Solaris 7 /usr/bin/printf.
3658 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3659 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
3660 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
3661 # Prefer a ksh shell builtin over an external printf program on Solaris,
3662 # but without wasting forks for bash or zsh.
3663 if test -z "$BASH_VERSION$ZSH_VERSION" \
3664 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
3665 as_echo='print -r --'
3666 as_echo_n='print -rn --'
3667 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
3668 as_echo='printf %s\n'
3669 as_echo_n='printf %s'
3671 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
3672 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
3673 as_echo_n='/usr/ucb/echo -n'
3675 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
3676 as_echo_n_body='eval
3680 expr "X$arg" : "X\\(.*\\)$as_nl";
3681 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
3683 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
3685 export as_echo_n_body
3686 as_echo_n='sh -c $as_echo_n_body as_echo'
3689 as_echo='sh -c $as_echo_body as_echo'
3692 # The user is always right.
3693 if test "${PATH_SEPARATOR+set}" != set; then
3695 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
3696 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
3703 # We need space, tab and new line, in precisely that order. Quoting is
3704 # there to prevent editors from complaining about space-tab.
3705 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
3706 # splitting by setting IFS to empty value.)
3709 # Find who we are. Look in the path if we contain no directory separator.
3711 *[\\/]* ) as_myself=$0 ;;
3712 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3716 test -z "$as_dir" && as_dir=.
3717 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3723 # We did not find ourselves, most probably we were run as `sh COMMAND'
3724 # in which case we are not to be found in the path.
3725 if test "x$as_myself" = x; then
3728 if test ! -f "$as_myself"; then
3729 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
3733 # Unset variables that we do not need and which cause bugs (e.g. in
3734 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
3735 # suppresses any "Segmentation fault" message there. '((' could
3736 # trigger a bug in pdksh 5.2.14.
3737 for as_var in BASH_ENV ENV MAIL MAILPATH
3738 do eval test x\${$as_var+set} = xset \
3739 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
3752 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
3755 # as_fn_error ERROR [LINENO LOG_FD]
3756 # ---------------------------------
3757 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
3758 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
3759 # script with status $?, using 1 if that was 0.
3762 as_status=$?; test $as_status -eq 0 && as_status=1
3764 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3765 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
3767 $as_echo "$as_me: error: $1" >&2
3768 as_fn_exit $as_status
3772 # as_fn_set_status STATUS
3773 # -----------------------
3774 # Set $? to STATUS, without forking.
3778 } # as_fn_set_status
3782 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
3792 # Portably unset VAR.
3795 { eval $1=; unset $1;}
3797 as_unset=as_fn_unset
3798 # as_fn_append VAR VALUE
3799 # ----------------------
3800 # Append the text in VALUE to the end of the definition contained in VAR. Take
3801 # advantage of any shell optimizations that allow amortized linear growth over
3802 # repeated appends, instead of the typical quadratic growth present in naive
3804 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
3805 eval 'as_fn_append ()
3816 # as_fn_arith ARG...
3817 # ------------------
3818 # Perform arithmetic evaluation on the ARGs, and store the result in the
3819 # global $as_val. Take advantage of shells that can avoid forks. The arguments
3820 # must be portable across $(()) and expr.
3821 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
3822 eval 'as_fn_arith ()
3829 as_val=`expr "$@" || test $? -eq 1`
3834 if expr a : '\(a\)' >/dev/null 2>&1 &&
3835 test "X`expr 00001 : '.*\(...\)'`" = X001; then
3841 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
3842 as_basename=basename
3847 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
3853 as_me=`$as_basename -- "$0" ||
3854 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3855 X"$0" : 'X\(//\)$' \| \
3856 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
3858 sed '/^.*\/\([^/][^/]*\)\/*$/{
3872 # Avoid depending upon Character Ranges.
3873 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3874 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3875 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3876 as_cr_digits='0123456789'
3877 as_cr_alnum=$as_cr_Letters$as_cr_digits
3879 ECHO_C= ECHO_N= ECHO_T=
3880 case `echo -n x` in #(((((
3882 case `echo 'xy\c'` in
3883 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
3885 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
3892 rm -f conf$$ conf$$.exe conf$$.file
3893 if test -d conf$$.dir; then
3894 rm -f conf$$.dir/conf$$.file
3897 mkdir conf$$.dir 2>/dev/null
3899 if (echo >conf$$.file) 2>/dev/null; then
3900 if ln -s conf$$.file conf$$ 2>/dev/null; then
3902 # ... but there are two gotchas:
3903 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
3904 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
3905 # In both cases, we have to default to `cp -p'.
3906 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
3908 elif ln conf$$.file conf$$ 2>/dev/null; then
3916 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
3917 rmdir conf$$.dir 2>/dev/null
3922 # Create "$as_dir" as a directory, including parents if necessary.
3927 -*) as_dir=./$as_dir;;
3929 test -d "$as_dir" || eval $as_mkdir_p || {
3933 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
3934 *) as_qdir=$as_dir;;
3936 as_dirs="'$as_qdir' $as_dirs"
3937 as_dir=`$as_dirname -- "$as_dir" ||
3938 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3939 X"$as_dir" : 'X\(//\)[^/]' \| \
3940 X"$as_dir" : 'X\(//\)$' \| \
3941 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3942 $as_echo X"$as_dir" |
3943 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3960 test -d "$as_dir" && break
3962 test -z "$as_dirs" || eval "mkdir $as_dirs"
3963 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
3967 if mkdir -p . 2>/dev/null; then
3968 as_mkdir_p='mkdir -p "$as_dir"'
3970 test -d ./-p && rmdir ./-p
3974 if test -x / >/dev/null 2>&1; then
3977 if ls -dL / >/dev/null 2>&1; then
3984 if test -d "$1"; then
3990 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
3991 ???[sx]*):;;*)false;;esac;fi
3995 as_executable_p=$as_test_x
3997 # Sed expression to map a string onto a valid CPP name.
3998 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4000 # Sed expression to map a string onto a valid variable name.
4001 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4005 ## ----------------------------------- ##
4006 ## Main body of $CONFIG_STATUS script. ##
4007 ## ----------------------------------- ##
4009 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
4011 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4012 # Save the log message, to keep $0 and so on meaningful, and to
4013 # report actual input values of CONFIG_FILES etc. instead of their
4014 # values after options handling.
4016 This file was extended by lockfree $as_me 0.1, which was
4017 generated by GNU Autoconf 2.64. Invocation command line was
4019 CONFIG_FILES = $CONFIG_FILES
4020 CONFIG_HEADERS = $CONFIG_HEADERS
4021 CONFIG_LINKS = $CONFIG_LINKS
4022 CONFIG_COMMANDS = $CONFIG_COMMANDS
4025 on `(hostname || uname -n) 2>/dev/null | sed 1q`
4030 case $ac_config_files in *"
4031 "*) set x $ac_config_files; shift; ac_config_files=$*;;
4034 case $ac_config_headers in *"
4035 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
4039 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4040 # Files that config.status was made for.
4041 config_files="$ac_config_files"
4042 config_headers="$ac_config_headers"
4046 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4048 \`$as_me' instantiates files and other configuration actions
4049 from templates according to the current configuration. Unless the files
4050 and actions are specified as TAGs, all are instantiated by default.
4052 Usage: $0 [OPTION]... [TAG]...
4054 -h, --help print this help, then exit
4055 -V, --version print version number and configuration settings, then exit
4056 -q, --quiet, --silent
4057 do not print progress messages
4058 -d, --debug don't remove temporary files
4059 --recheck update $as_me by reconfiguring in the same conditions
4060 --file=FILE[:TEMPLATE]
4061 instantiate the configuration file FILE
4062 --header=FILE[:TEMPLATE]
4063 instantiate the configuration header FILE
4065 Configuration files:
4068 Configuration headers:
4071 Report bugs to <n.nakai@sdy.co.jp>."
4074 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4076 lockfree config.status 0.1
4077 configured by $0, generated by GNU Autoconf 2.64,
4078 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
4080 Copyright (C) 2009 Free Software Foundation, Inc.
4081 This config.status script is free software; the Free Software Foundation
4082 gives unlimited permission to copy, distribute and modify it."
4086 test -n "\$AWK" || AWK=awk
4089 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4090 # The default lists apply if the user does not specify any file.
4096 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4097 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4108 # Handling of the options.
4109 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4111 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4112 $as_echo "$ac_cs_version"; exit ;;
4113 --debug | --debu | --deb | --de | --d | -d )
4115 --file | --fil | --fi | --f )
4118 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4120 as_fn_append CONFIG_FILES " '$ac_optarg'"
4121 ac_need_defaults=false;;
4122 --header | --heade | --head | --hea )
4125 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4127 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
4128 ac_need_defaults=false;;
4130 # Conflict between --help and --header
4131 as_fn_error "ambiguous option: \`$1'
4132 Try \`$0 --help' for more information.";;
4133 --help | --hel | -h )
4134 $as_echo "$ac_cs_usage"; exit ;;
4135 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4136 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4140 -*) as_fn_error "unrecognized option: \`$1'
4141 Try \`$0 --help' for more information." ;;
4143 *) as_fn_append ac_config_targets " $1"
4144 ac_need_defaults=false ;;
4150 ac_configure_extra_args=
4152 if $ac_cs_silent; then
4154 ac_configure_extra_args="$ac_configure_extra_args --silent"
4158 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4159 if \$ac_cs_recheck; then
4160 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4162 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
4163 CONFIG_SHELL='$SHELL'
4169 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4173 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4174 ## Running $as_me. ##
4180 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4183 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4185 # Handling of arguments.
4186 for ac_config_target in $ac_config_targets
4188 case $ac_config_target in
4189 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
4190 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4191 "sample/Makefile") CONFIG_FILES="$CONFIG_FILES sample/Makefile" ;;
4193 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
4198 # If the user did not use the arguments to specify the items to instantiate,
4199 # then the envvar interface is used. Set only those that are not.
4200 # We use the long form for the default assignment because of an extremely
4201 # bizarre bug on SunOS 4.1.3.
4202 if $ac_need_defaults; then
4203 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4204 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4207 # Have a temporary directory for convenience. Make it in the build tree
4208 # simply because there is no reason against having it here, and in addition,
4209 # creating and moving files from /tmp can sometimes cause problems.
4210 # Hook for its removal unless debugging.
4211 # Note that there is a small window in which the directory will not be cleaned:
4212 # after its creation but before its name has been assigned to `$tmp'.
4216 trap 'exit_status=$?
4217 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
4219 trap 'as_fn_exit 1' 1 2 13 15
4221 # Create a (secure) tmp directory for tmp files.
4224 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4225 test -n "$tmp" && test -d "$tmp"
4228 tmp=./conf$$-$RANDOM
4229 (umask 077 && mkdir "$tmp")
4230 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
4232 # Set up the scripts for CONFIG_FILES section.
4233 # No need to generate them if there are no CONFIG_FILES.
4234 # This happens for instance with `./config.status config.h'.
4235 if test -n "$CONFIG_FILES"; then
4238 ac_cr=`echo X | tr X '\015'`
4239 # On cygwin, bash can eat \r inside `` if the user requested igncr.
4240 # But we know of no other shell where ac_cr would be empty at this
4241 # point, so we can use a bashism as a fallback.
4242 if test "x$ac_cr" = x; then
4243 eval ac_cr=\$\'\\r\'
4245 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
4246 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
4252 echo 'BEGIN {' >"$tmp/subs1.awk" &&
4257 echo "cat >conf$$subs.awk <<_ACEOF" &&
4258 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
4261 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
4262 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
4264 for ac_last_try in false false false false false :; do
4265 . ./conf$$subs.sh ||
4266 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
4268 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
4269 if test $ac_delim_n = $ac_delim_num; then
4271 elif $ac_last_try; then
4272 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
4274 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4279 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4280 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
4284 s/^/S["/; s/!.*/"]=/
4294 s/\(.\{148\}\).*/\1/
4296 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
4301 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4308 s/\(.\{148\}\).*/\1/
4310 s/["\\]/\\&/g; s/^/"/; s/$/"/
4314 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4319 ' <conf$$subs.awk | sed '
4324 ' >>$CONFIG_STATUS || ac_write_fail=1
4325 rm -f conf$$subs.awk
4326 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4328 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
4329 for (key in S) S_is_set[key] = 1
4335 nfields = split(line, field, "@")
4337 len = length(field[1])
4338 for (i = 2; i < nfields; i++) {
4340 keylen = length(key)
4341 if (S_is_set[key]) {
4343 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
4344 len += length(value) + length(field[++i])
4355 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4356 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
4357 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
4360 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
4361 || as_fn_error "could not setup config files machinery" "$LINENO" 5
4364 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4365 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4366 # trailing colons and then remove the whole line if VPATH becomes empty
4367 # (actually we leave an empty line to preserve line numbers).
4368 if test "x$srcdir" = x.; then
4369 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4373 s/^\([^=]*=[ ]*\):*/\1/
4379 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4380 fi # test -n "$CONFIG_FILES"
4382 # Set up the scripts for CONFIG_HEADERS section.
4383 # No need to generate them if there are no CONFIG_HEADERS.
4384 # This happens for instance with `./config.status Makefile'.
4385 if test -n "$CONFIG_HEADERS"; then
4386 cat >"$tmp/defines.awk" <<\_ACAWK ||
4390 # Transform confdefs.h into an awk script `defines.awk', embedded as
4391 # here-document in config.status, that substitutes the proper values into
4392 # config.h.in to produce config.h.
4394 # Create a delimiter string that does not exist in confdefs.h, to ease
4395 # handling of long lines.
4397 for ac_last_try in false false :; do
4398 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
4399 if test -z "$ac_t"; then
4401 elif $ac_last_try; then
4402 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
4404 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4408 # For the awk script, D is an array of macro values keyed by name,
4409 # likewise P contains macro parameters if any. Preserve backslash
4410 # newline sequences.
4412 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
4414 s/.\{148\}/&'"$ac_delim"'/g
4417 s/^[ ]*#[ ]*define[ ][ ]*/ /
4424 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
4426 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
4430 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
4431 D["\1"]=" \3\\\\\\n"\\/p
4433 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
4438 s/.\{148\}/&'"$ac_delim"'/g
4443 s/["\\]/\\&/g; s/^/"/; s/$/"/p
4446 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
4448 ' <confdefs.h | sed '
4449 s/'"$ac_delim"'/"\\\
4450 "/g' >>$CONFIG_STATUS || ac_write_fail=1
4452 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4453 for (key in D) D_is_set[key] = 1
4456 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
4458 split(line, arg, " ")
4459 if (arg[1] == "#") {
4463 defundef = substr(arg[1], 2)
4466 split(mac1, mac2, "(") #)
4468 prefix = substr(line, 1, index(line, defundef) - 1)
4469 if (D_is_set[macro]) {
4470 # Preserve the white space surrounding the "#".
4471 print prefix "define", macro P[macro] D[macro]
4474 # Replace #undef with comments. This is necessary, for example,
4475 # in the case of _POSIX_SOURCE, which is predefined and required
4476 # on some systems where configure will not decide to define it.
4477 if (defundef == "undef") {
4478 print "/*", prefix defundef, macro, "*/"
4486 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4487 as_fn_error "could not setup config headers machinery" "$LINENO" 5
4488 fi # test -n "$CONFIG_HEADERS"
4491 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
4496 :[FHLC]) ac_mode=$ac_tag; continue;;
4498 case $ac_mode$ac_tag in
4500 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
4501 :[FH]-) ac_tag=-:-;;
4502 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
4519 -) ac_f="$tmp/stdin";;
4520 *) # Look for the file first in the build tree, then in the source tree
4521 # (if the path is not absolute). The absolute path cannot be DOS-style,
4522 # because $ac_f cannot contain `:'.
4526 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
4528 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
4530 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
4531 as_fn_append ac_file_inputs " '$ac_f'"
4534 # Let's still pretend it is `configure' which instantiates (i.e., don't
4535 # use $as_me), people would be surprised to read:
4536 # /* config.h. Generated by config.status. */
4537 configure_input='Generated from '`
4538 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
4540 if test x"$ac_file" != x-; then
4541 configure_input="$ac_file. $configure_input"
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
4543 $as_echo "$as_me: creating $ac_file" >&6;}
4545 # Neutralize special characters interpreted by sed in replacement strings.
4546 case $configure_input in #(
4547 *\&* | *\|* | *\\* )
4548 ac_sed_conf_input=`$as_echo "$configure_input" |
4549 sed 's/[\\\\&|]/\\\\&/g'`;; #(
4550 *) ac_sed_conf_input=$configure_input;;
4554 *:-:* | *:-) cat >"$tmp/stdin" \
4555 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
4560 ac_dir=`$as_dirname -- "$ac_file" ||
4561 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4562 X"$ac_file" : 'X\(//\)[^/]' \| \
4563 X"$ac_file" : 'X\(//\)$' \| \
4564 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
4565 $as_echo X"$ac_file" |
4566 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4583 as_dir="$ac_dir"; as_fn_mkdir_p
4587 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
4589 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
4590 # A ".." for each directory in $ac_dir_suffix.
4591 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
4592 case $ac_top_builddir_sub in
4593 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
4594 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
4597 ac_abs_top_builddir=$ac_pwd
4598 ac_abs_builddir=$ac_pwd$ac_dir_suffix
4599 # for backward compatibility:
4600 ac_top_builddir=$ac_top_build_prefix
4603 .) # We are building in place.
4605 ac_top_srcdir=$ac_top_builddir_sub
4606 ac_abs_top_srcdir=$ac_pwd ;;
4607 [\\/]* | ?:[\\/]* ) # Absolute name.
4608 ac_srcdir=$srcdir$ac_dir_suffix;
4609 ac_top_srcdir=$srcdir
4610 ac_abs_top_srcdir=$srcdir ;;
4612 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
4613 ac_top_srcdir=$ac_top_build_prefix$srcdir
4614 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
4616 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
4627 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4628 # If the template does not know about datarootdir, expand it.
4629 # FIXME: This hack should be removed a few years after 2.60.
4630 ac_datarootdir_hack=; ac_datarootdir_seen=
4641 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
4642 *datarootdir*) ac_datarootdir_seen=yes;;
4643 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
4645 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
4647 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4648 ac_datarootdir_hack='
4649 s&@datadir@&$datadir&g
4650 s&@docdir@&$docdir&g
4651 s&@infodir@&$infodir&g
4652 s&@localedir@&$localedir&g
4653 s&@mandir@&$mandir&g
4654 s&\\\${datarootdir}&$datarootdir&g' ;;
4658 # Neutralize VPATH when `$srcdir' = `.'.
4659 # Shell code in configure.ac might set extrasub.
4660 # FIXME: do we really want to maintain this feature?
4661 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4662 ac_sed_extra="$ac_vpsub
4665 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4667 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4668 s|@configure_input@|$ac_sed_conf_input|;t t
4669 s&@top_builddir@&$ac_top_builddir_sub&;t t
4670 s&@top_build_prefix@&$ac_top_build_prefix&;t t
4671 s&@srcdir@&$ac_srcdir&;t t
4672 s&@abs_srcdir@&$ac_abs_srcdir&;t t
4673 s&@top_srcdir@&$ac_top_srcdir&;t t
4674 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
4675 s&@builddir@&$ac_builddir&;t t
4676 s&@abs_builddir@&$ac_abs_builddir&;t t
4677 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
4678 $ac_datarootdir_hack
4680 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
4681 || as_fn_error "could not create $ac_file" "$LINENO" 5
4683 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
4684 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
4685 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4687 which seems to be undefined. Please make sure it is defined." >&5
4688 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4689 which seems to be undefined. Please make sure it is defined." >&2;}
4693 -) cat "$tmp/out" && rm -f "$tmp/out";;
4694 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
4696 || as_fn_error "could not create $ac_file" "$LINENO" 5
4702 if test x"$ac_file" != x-; then
4704 $as_echo "/* $configure_input */" \
4705 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
4706 } >"$tmp/config.h" \
4707 || as_fn_error "could not create $ac_file" "$LINENO" 5
4708 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
4710 $as_echo "$as_me: $ac_file is unchanged" >&6;}
4713 mv "$tmp/config.h" "$ac_file" \
4714 || as_fn_error "could not create $ac_file" "$LINENO" 5
4717 $as_echo "/* $configure_input */" \
4718 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
4719 || as_fn_error "could not create -" "$LINENO" 5
4731 ac_clean_files=$ac_clean_files_save
4733 test $ac_write_fail = 0 ||
4734 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
4737 # configure is writing to config.log, and then calls config.status.
4738 # config.status does its own redirection, appending to config.log.
4739 # Unfortunately, on DOS this fails, as config.log is still kept open
4740 # by configure, so config.status won't be able to write to it; its
4741 # output is simply discarded. So we exec the FD to /dev/null,
4742 # effectively closing config.log, so it can be properly (re)opened and
4743 # appended to by config.status. When coming back to configure, we
4744 # need to make the FD available again.
4745 if test "$no_create" != yes; then
4747 ac_config_status_args=
4748 test "$silent" = yes &&
4749 ac_config_status_args="$ac_config_status_args --quiet"
4751 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4753 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4754 # would make configure fail if this is the last instruction.
4755 $ac_cs_success || as_fn_exit $?
4757 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
4759 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}