2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for yasm 1.2.0.
5 # Report bugs to <bug-yasm@tortall.net>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev/null; then :
183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
191 test -z "$as_dir" && as_dir=.
195 for as_base in sh bash ksh sh5; do
196 # Try only shells that exist, to save several forks.
197 as_shell=$as_dir/$as_base
198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 CONFIG_SHELL=$as_shell as_have_required=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211 CONFIG_SHELL=$SHELL as_have_required=yes
216 if test "x$CONFIG_SHELL" != x; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
220 # Preserve -v and -x to the replacement shell.
223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 *v*x* | *x*v* ) as_opts=-vx ;;
231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
241 $as_echo "$0: Please tell bug-autoconf@gnu.org and
242 $0: bug-yasm@tortall.net about your system, including any
243 $0: error possibly output before this message. Then install
244 $0: a modern shell, or manually run the script under such a
245 $0: shell if you do have one."
251 SHELL=${CONFIG_SHELL-/bin/sh}
253 # Unset more variables known to interfere with behavior of common tools.
254 CLICOLOR_FORCE= GREP_OPTIONS=
255 unset CLICOLOR_FORCE GREP_OPTIONS
257 ## --------------------- ##
258 ## M4sh Shell Functions. ##
259 ## --------------------- ##
262 # Portably unset VAR.
265 { eval $1=; unset $1;}
269 # as_fn_set_status STATUS
270 # -----------------------
271 # Set $? to STATUS, without forking.
279 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289 # Create "$as_dir" as a directory, including parents if necessary.
294 -*) as_dir=./$as_dir;;
296 test -d "$as_dir" || eval $as_mkdir_p || {
300 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
303 as_dirs="'$as_qdir' $as_dirs"
304 as_dir=`$as_dirname -- "$as_dir" ||
305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306 X"$as_dir" : 'X\(//\)[^/]' \| \
307 X"$as_dir" : 'X\(//\)$' \| \
308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309 $as_echo X"$as_dir" |
310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
327 test -d "$as_dir" && break
329 test -z "$as_dirs" || eval "mkdir $as_dirs"
330 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
334 # as_fn_append VAR VALUE
335 # ----------------------
336 # Append the text in VALUE to the end of the definition contained in VAR. Take
337 # advantage of any shell optimizations that allow amortized linear growth over
338 # repeated appends, instead of the typical quadratic growth present in naive
340 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341 eval 'as_fn_append ()
354 # Perform arithmetic evaluation on the ARGs, and store the result in the
355 # global $as_val. Take advantage of shells that can avoid forks. The arguments
356 # must be portable across $(()) and expr.
357 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
365 as_val=`expr "$@" || test $? -eq 1`
370 # as_fn_error STATUS ERROR [LINENO LOG_FD]
371 # ----------------------------------------
372 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374 # script with STATUS, using 1 if that was 0.
377 as_status=$1; test $as_status -eq 0 && as_status=1
379 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382 $as_echo "$as_me: error: $2" >&2
383 as_fn_exit $as_status
386 if expr a : '\(a\)' >/dev/null 2>&1 &&
387 test "X`expr 00001 : '.*\(...\)'`" = X001; then
393 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
405 as_me=`$as_basename -- "$0" ||
406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407 X"$0" : 'X\(//\)$' \| \
408 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410 sed '/^.*\/\([^/][^/]*\)\/*$/{
424 # Avoid depending upon Character Ranges.
425 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428 as_cr_digits='0123456789'
429 as_cr_alnum=$as_cr_Letters$as_cr_digits
432 as_lineno_1=$LINENO as_lineno_1a=$LINENO
433 as_lineno_2=$LINENO as_lineno_2a=$LINENO
434 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 chmod +x "$as_me.lineno" ||
453 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
463 ECHO_C= ECHO_N= ECHO_T=
464 case `echo -n x` in #(((((
466 case `echo 'xy\c'` in
467 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
469 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
476 rm -f conf$$ conf$$.exe conf$$.file
477 if test -d conf$$.dir; then
478 rm -f conf$$.dir/conf$$.file
481 mkdir conf$$.dir 2>/dev/null
483 if (echo >conf$$.file) 2>/dev/null; then
484 if ln -s conf$$.file conf$$ 2>/dev/null; then
486 # ... but there are two gotchas:
487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489 # In both cases, we have to default to `cp -p'.
490 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492 elif ln conf$$.file conf$$ 2>/dev/null; then
500 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501 rmdir conf$$.dir 2>/dev/null
503 if mkdir -p . 2>/dev/null; then
504 as_mkdir_p='mkdir -p "$as_dir"'
506 test -d ./-p && rmdir ./-p
510 if test -x / >/dev/null 2>&1; then
513 if ls -dL / >/dev/null 2>&1; then
520 if test -d "$1"; then
526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527 ???[sx]*):;;*)false;;esac;fi
531 as_executable_p=$as_test_x
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
540 test -n "$DJDIR" || exec 7<&0 </dev/null
544 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
551 ac_default_prefix=/usr/local
553 ac_config_libobj_dir=.
560 # Identity of this package.
562 PACKAGE_TARNAME='yasm'
563 PACKAGE_VERSION='1.2.0'
564 PACKAGE_STRING='yasm 1.2.0'
565 PACKAGE_BUGREPORT='bug-yasm@tortall.net'
568 # Factoring default headers for most tests.
569 ac_includes_default="\
571 #ifdef HAVE_SYS_TYPES_H
572 # include <sys/types.h>
574 #ifdef HAVE_SYS_STAT_H
575 # include <sys/stat.h>
581 # ifdef HAVE_STDLIB_H
586 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
591 #ifdef HAVE_STRINGS_H
592 # include <strings.h>
594 #ifdef HAVE_INTTYPES_H
595 # include <inttypes.h>
605 ac_subst_vars='am__EXEEXT_FALSE
609 HAVE_PYTHON_BINDINGS_FALSE
610 HAVE_PYTHON_BINDINGS_TRUE
644 XGETTEXT_EXTRA_OPTIONS
652 GETTEXT_MACRO_VERSION
681 MAINTAINER_MODE_FALSE
691 INSTALL_STRIP_PROGRAM
733 program_transform_name
746 enable_option_checking
747 enable_maintainer_mode
753 enable_python_bindings
754 enable_dependency_tracking
762 ac_precious_vars='build_alias
776 # Initialize some variables set by options.
778 ac_init_version=false
779 ac_unrecognized_opts=
781 # The variables have the same names as the options, with
782 # dashes changed to underlines.
790 program_transform_name=s,x,x,
798 # Installation directory options.
799 # These are left unexpanded so users can "make install exec_prefix=/foo"
800 # and all the variables that are supposed to be based on exec_prefix
801 # by default will actually change.
802 # Use braces instead of parens because sh, perl, etc. also accept them.
803 # (The list follows the same order as the GNU Coding Standards.)
804 bindir='${exec_prefix}/bin'
805 sbindir='${exec_prefix}/sbin'
806 libexecdir='${exec_prefix}/libexec'
807 datarootdir='${prefix}/share'
808 datadir='${datarootdir}'
809 sysconfdir='${prefix}/etc'
810 sharedstatedir='${prefix}/com'
811 localstatedir='${prefix}/var'
812 includedir='${prefix}/include'
813 oldincludedir='/usr/include'
814 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
815 infodir='${datarootdir}/info'
820 libdir='${exec_prefix}/lib'
821 localedir='${datarootdir}/locale'
822 mandir='${datarootdir}/man'
828 # If the previous option needs an argument, assign it.
829 if test -n "$ac_prev"; then
830 eval $ac_prev=\$ac_option
836 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
841 # Accept the important Cygnus configure options, so we can diagnose typos.
843 case $ac_dashdash$ac_option in
847 -bindir | --bindir | --bindi | --bind | --bin | --bi)
849 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
852 -build | --build | --buil | --bui | --bu)
853 ac_prev=build_alias ;;
854 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
855 build_alias=$ac_optarg ;;
857 -cache-file | --cache-file | --cache-fil | --cache-fi \
858 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
859 ac_prev=cache_file ;;
860 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
861 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
862 cache_file=$ac_optarg ;;
865 cache_file=config.cache ;;
867 -datadir | --datadir | --datadi | --datad)
869 -datadir=* | --datadir=* | --datadi=* | --datad=*)
870 datadir=$ac_optarg ;;
872 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
873 | --dataroo | --dataro | --datar)
874 ac_prev=datarootdir ;;
875 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
876 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
877 datarootdir=$ac_optarg ;;
879 -disable-* | --disable-*)
880 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
881 # Reject names that are not valid shell variable names.
882 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
883 as_fn_error $? "invalid feature name: $ac_useropt"
884 ac_useropt_orig=$ac_useropt
885 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
886 case $ac_user_opts in
890 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
891 ac_unrecognized_sep=', ';;
893 eval enable_$ac_useropt=no ;;
895 -docdir | --docdir | --docdi | --doc | --do)
897 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
900 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
902 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
905 -enable-* | --enable-*)
906 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
907 # Reject names that are not valid shell variable names.
908 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
909 as_fn_error $? "invalid feature name: $ac_useropt"
910 ac_useropt_orig=$ac_useropt
911 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
912 case $ac_user_opts in
916 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
917 ac_unrecognized_sep=', ';;
919 eval enable_$ac_useropt=\$ac_optarg ;;
921 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
922 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
923 | --exec | --exe | --ex)
924 ac_prev=exec_prefix ;;
925 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
926 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
927 | --exec=* | --exe=* | --ex=*)
928 exec_prefix=$ac_optarg ;;
930 -gas | --gas | --ga | --g)
931 # Obsolete; use --with-gas.
934 -help | --help | --hel | --he | -h)
936 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
937 ac_init_help=recursive ;;
938 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
939 ac_init_help=short ;;
941 -host | --host | --hos | --ho)
942 ac_prev=host_alias ;;
943 -host=* | --host=* | --hos=* | --ho=*)
944 host_alias=$ac_optarg ;;
946 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
948 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
950 htmldir=$ac_optarg ;;
952 -includedir | --includedir | --includedi | --included | --include \
953 | --includ | --inclu | --incl | --inc)
954 ac_prev=includedir ;;
955 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
956 | --includ=* | --inclu=* | --incl=* | --inc=*)
957 includedir=$ac_optarg ;;
959 -infodir | --infodir | --infodi | --infod | --info | --inf)
961 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
962 infodir=$ac_optarg ;;
964 -libdir | --libdir | --libdi | --libd)
966 -libdir=* | --libdir=* | --libdi=* | --libd=*)
969 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
970 | --libexe | --libex | --libe)
971 ac_prev=libexecdir ;;
972 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
973 | --libexe=* | --libex=* | --libe=*)
974 libexecdir=$ac_optarg ;;
976 -localedir | --localedir | --localedi | --localed | --locale)
978 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
979 localedir=$ac_optarg ;;
981 -localstatedir | --localstatedir | --localstatedi | --localstated \
982 | --localstate | --localstat | --localsta | --localst | --locals)
983 ac_prev=localstatedir ;;
984 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
985 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
986 localstatedir=$ac_optarg ;;
988 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
990 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
994 # Obsolete; use --without-fp.
997 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
998 | --no-cr | --no-c | -n)
1001 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1002 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1005 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1006 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1007 | --oldin | --oldi | --old | --ol | --o)
1008 ac_prev=oldincludedir ;;
1009 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1010 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1011 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1012 oldincludedir=$ac_optarg ;;
1014 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1016 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1017 prefix=$ac_optarg ;;
1019 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1020 | --program-pre | --program-pr | --program-p)
1021 ac_prev=program_prefix ;;
1022 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1023 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1024 program_prefix=$ac_optarg ;;
1026 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1027 | --program-suf | --program-su | --program-s)
1028 ac_prev=program_suffix ;;
1029 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1030 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1031 program_suffix=$ac_optarg ;;
1033 -program-transform-name | --program-transform-name \
1034 | --program-transform-nam | --program-transform-na \
1035 | --program-transform-n | --program-transform- \
1036 | --program-transform | --program-transfor \
1037 | --program-transfo | --program-transf \
1038 | --program-trans | --program-tran \
1039 | --progr-tra | --program-tr | --program-t)
1040 ac_prev=program_transform_name ;;
1041 -program-transform-name=* | --program-transform-name=* \
1042 | --program-transform-nam=* | --program-transform-na=* \
1043 | --program-transform-n=* | --program-transform-=* \
1044 | --program-transform=* | --program-transfor=* \
1045 | --program-transfo=* | --program-transf=* \
1046 | --program-trans=* | --program-tran=* \
1047 | --progr-tra=* | --program-tr=* | --program-t=*)
1048 program_transform_name=$ac_optarg ;;
1050 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1052 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1053 pdfdir=$ac_optarg ;;
1055 -psdir | --psdir | --psdi | --psd | --ps)
1057 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1060 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1061 | -silent | --silent | --silen | --sile | --sil)
1064 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1066 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1068 sbindir=$ac_optarg ;;
1070 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1071 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1072 | --sharedst | --shareds | --shared | --share | --shar \
1074 ac_prev=sharedstatedir ;;
1075 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1076 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1077 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1079 sharedstatedir=$ac_optarg ;;
1081 -site | --site | --sit)
1083 -site=* | --site=* | --sit=*)
1086 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1088 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1089 srcdir=$ac_optarg ;;
1091 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1092 | --syscon | --sysco | --sysc | --sys | --sy)
1093 ac_prev=sysconfdir ;;
1094 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1095 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1096 sysconfdir=$ac_optarg ;;
1098 -target | --target | --targe | --targ | --tar | --ta | --t)
1099 ac_prev=target_alias ;;
1100 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1101 target_alias=$ac_optarg ;;
1103 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1106 -version | --version | --versio | --versi | --vers | -V)
1107 ac_init_version=: ;;
1110 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1111 # Reject names that are not valid shell variable names.
1112 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1113 as_fn_error $? "invalid package name: $ac_useropt"
1114 ac_useropt_orig=$ac_useropt
1115 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1116 case $ac_user_opts in
1120 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1121 ac_unrecognized_sep=', ';;
1123 eval with_$ac_useropt=\$ac_optarg ;;
1125 -without-* | --without-*)
1126 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1127 # Reject names that are not valid shell variable names.
1128 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1129 as_fn_error $? "invalid package name: $ac_useropt"
1130 ac_useropt_orig=$ac_useropt
1131 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1132 case $ac_user_opts in
1136 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1137 ac_unrecognized_sep=', ';;
1139 eval with_$ac_useropt=no ;;
1142 # Obsolete; use --with-x.
1145 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1146 | --x-incl | --x-inc | --x-in | --x-i)
1147 ac_prev=x_includes ;;
1148 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1149 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1150 x_includes=$ac_optarg ;;
1152 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1153 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1154 ac_prev=x_libraries ;;
1155 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1156 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1157 x_libraries=$ac_optarg ;;
1159 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1160 Try \`$0 --help' for more information"
1164 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1165 # Reject names that are not valid shell variable names.
1166 case $ac_envvar in #(
1167 '' | [0-9]* | *[!_$as_cr_alnum]* )
1168 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1170 eval $ac_envvar=\$ac_optarg
1171 export $ac_envvar ;;
1174 # FIXME: should be removed in autoconf 3.0.
1175 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1176 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1177 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1178 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1184 if test -n "$ac_prev"; then
1185 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1186 as_fn_error $? "missing argument to $ac_option"
1189 if test -n "$ac_unrecognized_opts"; then
1190 case $enable_option_checking in
1192 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1193 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1197 # Check all directory arguments for consistency.
1198 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1199 datadir sysconfdir sharedstatedir localstatedir includedir \
1200 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1201 libdir localedir mandir
1203 eval ac_val=\$$ac_var
1204 # Remove trailing slashes.
1207 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1208 eval $ac_var=\$ac_val;;
1210 # Be sure to have absolute directory names.
1212 [\\/$]* | ?:[\\/]* ) continue;;
1213 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1215 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1218 # There might be people who depend on the old broken behavior: `$host'
1219 # used to hold the argument of --host etc.
1220 # FIXME: To remove some day.
1223 target=$target_alias
1225 # FIXME: To remove some day.
1226 if test "x$host_alias" != x; then
1227 if test "x$build_alias" = x; then
1228 cross_compiling=maybe
1229 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1230 If a cross compiler is detected then cross compile mode will be used" >&2
1231 elif test "x$build_alias" != "x$host_alias"; then
1237 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1239 test "$silent" = yes && exec 6>/dev/null
1242 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1243 ac_ls_di=`ls -di .` &&
1244 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1245 as_fn_error $? "working directory cannot be determined"
1246 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1247 as_fn_error $? "pwd does not report name of working directory"
1250 # Find the source files, if location was not specified.
1251 if test -z "$srcdir"; then
1252 ac_srcdir_defaulted=yes
1253 # Try the directory containing this script, then the parent directory.
1254 ac_confdir=`$as_dirname -- "$as_myself" ||
1255 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1256 X"$as_myself" : 'X\(//\)[^/]' \| \
1257 X"$as_myself" : 'X\(//\)$' \| \
1258 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1259 $as_echo X"$as_myself" |
1260 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1278 if test ! -r "$srcdir/$ac_unique_file"; then
1282 ac_srcdir_defaulted=no
1284 if test ! -r "$srcdir/$ac_unique_file"; then
1285 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1286 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1288 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1290 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1292 # When building in place, set srcdir=.
1293 if test "$ac_abs_confdir" = "$ac_pwd"; then
1296 # Remove unnecessary trailing slashes from srcdir.
1297 # Double slashes in file names in object file debugging info
1298 # mess up M-x gdb in Emacs.
1300 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1302 for ac_var in $ac_precious_vars; do
1303 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1304 eval ac_env_${ac_var}_value=\$${ac_var}
1305 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1306 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1310 # Report the --help message.
1312 if test "$ac_init_help" = "long"; then
1313 # Omit some internal or obsolete options to make the list less imposing.
1314 # This message is too long to be a string in the A/UX 3.1 sh.
1316 \`configure' configures yasm 1.2.0 to adapt to many kinds of systems.
1318 Usage: $0 [OPTION]... [VAR=VALUE]...
1320 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1321 VAR=VALUE. See below for descriptions of some of the useful variables.
1323 Defaults for the options are specified in brackets.
1326 -h, --help display this help and exit
1327 --help=short display options specific to this package
1328 --help=recursive display the short help of all the included packages
1329 -V, --version display version information and exit
1330 -q, --quiet, --silent do not print \`checking ...' messages
1331 --cache-file=FILE cache test results in FILE [disabled]
1332 -C, --config-cache alias for \`--cache-file=config.cache'
1333 -n, --no-create do not create output files
1334 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1336 Installation directories:
1337 --prefix=PREFIX install architecture-independent files in PREFIX
1338 [$ac_default_prefix]
1339 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1342 By default, \`make install' will install all the files in
1343 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1344 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1345 for instance \`--prefix=\$HOME'.
1347 For better control, use the options below.
1349 Fine tuning of the installation directories:
1350 --bindir=DIR user executables [EPREFIX/bin]
1351 --sbindir=DIR system admin executables [EPREFIX/sbin]
1352 --libexecdir=DIR program executables [EPREFIX/libexec]
1353 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1354 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1355 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1356 --libdir=DIR object code libraries [EPREFIX/lib]
1357 --includedir=DIR C header files [PREFIX/include]
1358 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1359 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1360 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1361 --infodir=DIR info documentation [DATAROOTDIR/info]
1362 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1363 --mandir=DIR man documentation [DATAROOTDIR/man]
1364 --docdir=DIR documentation root [DATAROOTDIR/doc/yasm]
1365 --htmldir=DIR html documentation [DOCDIR]
1366 --dvidir=DIR dvi documentation [DOCDIR]
1367 --pdfdir=DIR pdf documentation [DOCDIR]
1368 --psdir=DIR ps documentation [DOCDIR]
1374 --program-prefix=PREFIX prepend PREFIX to installed program names
1375 --program-suffix=SUFFIX append SUFFIX to installed program names
1376 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1379 --build=BUILD configure for building on BUILD [guessed]
1380 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1384 if test -n "$ac_init_help"; then
1385 case $ac_init_help in
1386 short | recursive ) echo "Configuration of yasm 1.2.0:";;
1391 --disable-option-checking ignore unrecognized --enable/--with options
1392 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1393 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1394 --enable-maintainer-mode enable make rules and dependencies not useful
1395 (and sometimes confusing) to the casual installer
1396 --enable-debug Turn on debugging and compile time warnings
1397 --enable-warnerror Treat GCC warnings as errors
1398 --enable-profiling Enable profiling (requires GCC)
1399 --enable-gcov Enable gcov code coverage (requires GCC)
1400 --enable-python Enable Python-requiring portions of build
1401 --enable-python-bindings
1402 Build Python bindings
1403 --disable-dependency-tracking speeds up one-time build
1404 --enable-dependency-tracking do not reject slow dependency extractors
1405 --disable-nls do not use Native Language Support
1406 --disable-rpath do not hardcode runtime library paths
1409 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1410 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1411 --with-dmalloc use dmalloc, as in
1412 http://www.dmalloc.com/dmalloc.tar.gz
1413 --with-gnu-ld assume the C compiler uses GNU ld default=no
1414 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1415 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1416 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1417 --without-libintl-prefix don't search for libintl in includedir and libdir
1419 Some influential environment variables:
1420 CC C compiler command
1421 CFLAGS C compiler flags
1422 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1423 nonstandard directory <lib dir>
1424 LIBS libraries to pass to the linker, e.g. -l<library>
1425 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1426 you have headers in a nonstandard directory <include dir>
1429 build system C compiler
1431 build system C linker frontend
1433 host system C preprocessor
1435 Use these variables to override the choices made by `configure' or to help
1436 it to find libraries and programs with nonstandard names/locations.
1438 Report bugs to <bug-yasm@tortall.net>.
1443 if test "$ac_init_help" = "recursive"; then
1444 # If there are subdirs, report their specific --help.
1445 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1446 test -d "$ac_dir" ||
1447 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1452 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1454 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1455 # A ".." for each directory in $ac_dir_suffix.
1456 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1457 case $ac_top_builddir_sub in
1458 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1459 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1462 ac_abs_top_builddir=$ac_pwd
1463 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1464 # for backward compatibility:
1465 ac_top_builddir=$ac_top_build_prefix
1468 .) # We are building in place.
1470 ac_top_srcdir=$ac_top_builddir_sub
1471 ac_abs_top_srcdir=$ac_pwd ;;
1472 [\\/]* | ?:[\\/]* ) # Absolute name.
1473 ac_srcdir=$srcdir$ac_dir_suffix;
1474 ac_top_srcdir=$srcdir
1475 ac_abs_top_srcdir=$srcdir ;;
1477 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1478 ac_top_srcdir=$ac_top_build_prefix$srcdir
1479 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1481 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1483 cd "$ac_dir" || { ac_status=$?; continue; }
1484 # Check for guested configure.
1485 if test -f "$ac_srcdir/configure.gnu"; then
1487 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1488 elif test -f "$ac_srcdir/configure"; then
1490 $SHELL "$ac_srcdir/configure" --help=recursive
1492 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1494 cd "$ac_pwd" || { ac_status=$?; break; }
1498 test -n "$ac_init_help" && exit $ac_status
1499 if $ac_init_version; then
1501 yasm configure 1.2.0
1502 generated by GNU Autoconf 2.68
1504 Copyright (C) 2010 Free Software Foundation, Inc.
1505 This configure script is free software; the Free Software Foundation
1506 gives unlimited permission to copy, distribute and modify it.
1511 ## ------------------------ ##
1512 ## Autoconf initialization. ##
1513 ## ------------------------ ##
1515 # ac_fn_c_try_compile LINENO
1516 # --------------------------
1517 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1518 ac_fn_c_try_compile ()
1520 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1521 rm -f conftest.$ac_objext
1522 if { { ac_try="$ac_compile"
1524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1525 *) ac_try_echo=$ac_try;;
1527 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1528 $as_echo "$ac_try_echo"; } >&5
1529 (eval "$ac_compile") 2>conftest.err
1531 if test -s conftest.err; then
1532 grep -v '^ *+' conftest.err >conftest.er1
1533 cat conftest.er1 >&5
1534 mv -f conftest.er1 conftest.err
1536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1537 test $ac_status = 0; } && {
1538 test -z "$ac_c_werror_flag" ||
1539 test ! -s conftest.err
1540 } && test -s conftest.$ac_objext; then :
1543 $as_echo "$as_me: failed program was:" >&5
1544 sed 's/^/| /' conftest.$ac_ext >&5
1548 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1549 as_fn_set_status $ac_retval
1551 } # ac_fn_c_try_compile
1553 # ac_fn_c_try_cpp LINENO
1554 # ----------------------
1555 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1558 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1559 if { { ac_try="$ac_cpp conftest.$ac_ext"
1561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1562 *) ac_try_echo=$ac_try;;
1564 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1565 $as_echo "$ac_try_echo"; } >&5
1566 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1568 if test -s conftest.err; then
1569 grep -v '^ *+' conftest.err >conftest.er1
1570 cat conftest.er1 >&5
1571 mv -f conftest.er1 conftest.err
1573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1574 test $ac_status = 0; } > conftest.i && {
1575 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1576 test ! -s conftest.err
1580 $as_echo "$as_me: failed program was:" >&5
1581 sed 's/^/| /' conftest.$ac_ext >&5
1585 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1586 as_fn_set_status $ac_retval
1590 # ac_fn_c_try_run LINENO
1591 # ----------------------
1592 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1593 # that executables *can* be run.
1596 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1597 if { { ac_try="$ac_link"
1599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1600 *) ac_try_echo=$ac_try;;
1602 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1603 $as_echo "$ac_try_echo"; } >&5
1604 (eval "$ac_link") 2>&5
1606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1607 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1608 { { case "(($ac_try" in
1609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1610 *) ac_try_echo=$ac_try;;
1612 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1613 $as_echo "$ac_try_echo"; } >&5
1614 (eval "$ac_try") 2>&5
1616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1617 test $ac_status = 0; }; }; then :
1620 $as_echo "$as_me: program exited with status $ac_status" >&5
1621 $as_echo "$as_me: failed program was:" >&5
1622 sed 's/^/| /' conftest.$ac_ext >&5
1624 ac_retval=$ac_status
1626 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1627 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1628 as_fn_set_status $ac_retval
1632 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1633 # -------------------------------------------------------
1634 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1635 # the include files in INCLUDES and setting the cache variable VAR
1637 ac_fn_c_check_header_mongrel ()
1639 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1640 if eval \${$3+:} false; then :
1641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1642 $as_echo_n "checking for $2... " >&6; }
1643 if eval \${$3+:} false; then :
1644 $as_echo_n "(cached) " >&6
1647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1648 $as_echo "$ac_res" >&6; }
1650 # Is the header compilable?
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1652 $as_echo_n "checking $2 usability... " >&6; }
1653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1654 /* end confdefs.h. */
1658 if ac_fn_c_try_compile "$LINENO"; then :
1659 ac_header_compiler=yes
1661 ac_header_compiler=no
1663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1665 $as_echo "$ac_header_compiler" >&6; }
1667 # Is the header present?
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1669 $as_echo_n "checking $2 presence... " >&6; }
1670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1671 /* end confdefs.h. */
1674 if ac_fn_c_try_cpp "$LINENO"; then :
1675 ac_header_preproc=yes
1677 ac_header_preproc=no
1679 rm -f conftest.err conftest.i conftest.$ac_ext
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1681 $as_echo "$ac_header_preproc" >&6; }
1683 # So? What about this header?
1684 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1687 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1689 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1693 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1695 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1697 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1699 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1701 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1702 ( $as_echo "## ----------------------------------- ##
1703 ## Report this to bug-yasm@tortall.net ##
1704 ## ----------------------------------- ##"
1705 ) | sed "s/^/$as_me: WARNING: /" >&2
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1709 $as_echo_n "checking for $2... " >&6; }
1710 if eval \${$3+:} false; then :
1711 $as_echo_n "(cached) " >&6
1713 eval "$3=\$ac_header_compiler"
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1717 $as_echo "$ac_res" >&6; }
1719 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1721 } # ac_fn_c_check_header_mongrel
1723 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1724 # -------------------------------------------------------
1725 # Tests whether HEADER exists and can be compiled using the include files in
1726 # INCLUDES, setting the cache variable VAR accordingly.
1727 ac_fn_c_check_header_compile ()
1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1731 $as_echo_n "checking for $2... " >&6; }
1732 if eval \${$3+:} false; then :
1733 $as_echo_n "(cached) " >&6
1735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1736 /* end confdefs.h. */
1740 if ac_fn_c_try_compile "$LINENO"; then :
1745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1749 $as_echo "$ac_res" >&6; }
1750 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1752 } # ac_fn_c_check_header_compile
1754 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1755 # -------------------------------------------
1756 # Tests whether TYPE exists after having included INCLUDES, setting cache
1757 # variable VAR accordingly.
1758 ac_fn_c_check_type ()
1760 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1762 $as_echo_n "checking for $2... " >&6; }
1763 if eval \${$3+:} false; then :
1764 $as_echo_n "(cached) " >&6
1767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1768 /* end confdefs.h. */
1779 if ac_fn_c_try_compile "$LINENO"; then :
1780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1781 /* end confdefs.h. */
1792 if ac_fn_c_try_compile "$LINENO"; then :
1797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1803 $as_echo "$ac_res" >&6; }
1804 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1806 } # ac_fn_c_check_type
1808 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1809 # --------------------------------------------
1810 # Tries to find the compile-time value of EXPR in a program that includes
1811 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1813 ac_fn_c_compute_int ()
1815 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1816 if test "$cross_compiling" = yes; then
1817 # Depending upon the size, compute the lo and hi bounds.
1818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1819 /* end confdefs.h. */
1824 static int test_array [1 - 2 * !(($2) >= 0)];
1831 if ac_fn_c_try_compile "$LINENO"; then :
1834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1835 /* end confdefs.h. */
1840 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1847 if ac_fn_c_try_compile "$LINENO"; then :
1848 ac_hi=$ac_mid; break
1850 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1851 if test $ac_lo -le $ac_mid; then
1855 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1861 /* end confdefs.h. */
1866 static int test_array [1 - 2 * !(($2) < 0)];
1873 if ac_fn_c_try_compile "$LINENO"; then :
1876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1877 /* end confdefs.h. */
1882 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1889 if ac_fn_c_try_compile "$LINENO"; then :
1890 ac_lo=$ac_mid; break
1892 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1893 if test $ac_mid -le $ac_hi; then
1897 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1907 # Binary search between lo and hi bounds.
1908 while test "x$ac_lo" != "x$ac_hi"; do
1909 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1911 /* end confdefs.h. */
1916 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1923 if ac_fn_c_try_compile "$LINENO"; then :
1926 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1931 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1936 /* end confdefs.h. */
1938 static long int longval () { return $2; }
1939 static unsigned long int ulongval () { return $2; }
1946 FILE *f = fopen ("conftest.val", "w");
1951 long int i = longval ();
1954 fprintf (f, "%ld", i);
1958 unsigned long int i = ulongval ();
1961 fprintf (f, "%lu", i);
1963 /* Do not output a trailing newline, as this causes \r\n confusion
1964 on some platforms. */
1965 return ferror (f) || fclose (f) != 0;
1971 if ac_fn_c_try_run "$LINENO"; then :
1972 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1976 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1977 conftest.$ac_objext conftest.beam conftest.$ac_ext
1981 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1982 as_fn_set_status $ac_retval
1984 } # ac_fn_c_compute_int
1986 # ac_fn_c_try_link LINENO
1987 # -----------------------
1988 # Try to link conftest.$ac_ext, and return whether this succeeded.
1991 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1992 rm -f conftest.$ac_objext conftest$ac_exeext
1993 if { { ac_try="$ac_link"
1995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1996 *) ac_try_echo=$ac_try;;
1998 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1999 $as_echo "$ac_try_echo"; } >&5
2000 (eval "$ac_link") 2>conftest.err
2002 if test -s conftest.err; then
2003 grep -v '^ *+' conftest.err >conftest.er1
2004 cat conftest.er1 >&5
2005 mv -f conftest.er1 conftest.err
2007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2008 test $ac_status = 0; } && {
2009 test -z "$ac_c_werror_flag" ||
2010 test ! -s conftest.err
2011 } && test -s conftest$ac_exeext && {
2012 test "$cross_compiling" = yes ||
2013 $as_test_x conftest$ac_exeext
2017 $as_echo "$as_me: failed program was:" >&5
2018 sed 's/^/| /' conftest.$ac_ext >&5
2022 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2023 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2024 # interfere with the next link command; also delete a directory that is
2025 # left behind by Apple's compiler. We do this before executing the actions.
2026 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2027 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2028 as_fn_set_status $ac_retval
2030 } # ac_fn_c_try_link
2032 # ac_fn_c_check_func LINENO FUNC VAR
2033 # ----------------------------------
2034 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2035 ac_fn_c_check_func ()
2037 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2039 $as_echo_n "checking for $2... " >&6; }
2040 if eval \${$3+:} false; then :
2041 $as_echo_n "(cached) " >&6
2043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2044 /* end confdefs.h. */
2045 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2046 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2047 #define $2 innocuous_$2
2049 /* System header to define __stub macros and hopefully few prototypes,
2050 which can conflict with char $2 (); below.
2051 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2052 <limits.h> exists even on freestanding compilers. */
2055 # include <limits.h>
2057 # include <assert.h>
2062 /* Override any GCC internal prototype to avoid an error.
2063 Use char because int might match the return type of a GCC
2064 builtin and then its argument prototype would still apply. */
2069 /* The GNU C library defines this for functions which it implements
2070 to always fail with ENOSYS. Some functions are actually named
2071 something starting with __ and the normal name is an alias. */
2072 #if defined __stub_$2 || defined __stub___$2
2084 if ac_fn_c_try_link "$LINENO"; then :
2089 rm -f core conftest.err conftest.$ac_objext \
2090 conftest$ac_exeext conftest.$ac_ext
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2094 $as_echo "$ac_res" >&6; }
2095 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2097 } # ac_fn_c_check_func
2098 cat >config.log <<_ACEOF
2099 This file contains any messages produced by compilers while
2100 running configure, to aid debugging if configure makes a mistake.
2102 It was created by yasm $as_me 1.2.0, which was
2103 generated by GNU Autoconf 2.68. Invocation command line was
2115 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2116 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2117 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2118 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2119 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2121 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2122 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2124 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2125 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2126 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2127 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2128 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2129 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2130 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2138 test -z "$as_dir" && as_dir=.
2139 $as_echo "PATH: $as_dir"
2155 # Keep a trace of the command line.
2156 # Strip out --no-create and --no-recursion so they do not pile up.
2157 # Strip out --silent because we don't want to record it for future runs.
2158 # Also quote any args containing shell meta-characters.
2159 # Make two passes to allow for proper duplicate-argument suppression.
2163 ac_must_keep_next=false
2169 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2170 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2171 | -silent | --silent | --silen | --sile | --sil)
2174 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2177 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2179 as_fn_append ac_configure_args1 " '$ac_arg'"
2180 if test $ac_must_keep_next = true; then
2181 ac_must_keep_next=false # Got value, back to normal.
2184 *=* | --config-cache | -C | -disable-* | --disable-* \
2185 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2186 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2187 | -with-* | --with-* | -without-* | --without-* | --x)
2188 case "$ac_configure_args0 " in
2189 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2192 -* ) ac_must_keep_next=true ;;
2195 as_fn_append ac_configure_args " '$ac_arg'"
2200 { ac_configure_args0=; unset ac_configure_args0;}
2201 { ac_configure_args1=; unset ac_configure_args1;}
2203 # When interrupted or exit'd, cleanup temporary files, and complete
2204 # config.log. We remove comments because anyway the quotes in there
2205 # would cause problems or look ugly.
2206 # WARNING: Use '\'' to represent an apostrophe within the trap.
2207 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2208 trap 'exit_status=$?
2209 # Save into config.log some information that might help in debugging.
2213 $as_echo "## ---------------- ##
2214 ## Cache variables. ##
2215 ## ---------------- ##"
2217 # The following way of writing the cache mishandles newlines in values,
2219 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2220 eval ac_val=\$$ac_var
2224 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2225 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2228 _ | IFS | as_nl) ;; #(
2229 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2230 *) { eval $ac_var=; unset $ac_var;} ;;
2235 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2236 *${as_nl}ac_space=\ *)
2238 "s/'\''/'\''\\\\'\'''\''/g;
2239 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2242 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2249 $as_echo "## ----------------- ##
2250 ## Output variables. ##
2251 ## ----------------- ##"
2253 for ac_var in $ac_subst_vars
2255 eval ac_val=\$$ac_var
2257 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2259 $as_echo "$ac_var='\''$ac_val'\''"
2263 if test -n "$ac_subst_files"; then
2264 $as_echo "## ------------------- ##
2265 ## File substitutions. ##
2266 ## ------------------- ##"
2268 for ac_var in $ac_subst_files
2270 eval ac_val=\$$ac_var
2272 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2274 $as_echo "$ac_var='\''$ac_val'\''"
2279 if test -s confdefs.h; then
2280 $as_echo "## ----------- ##
2287 test "$ac_signal" != 0 &&
2288 $as_echo "$as_me: caught signal $ac_signal"
2289 $as_echo "$as_me: exit $exit_status"
2291 rm -f core *.core core.conftest.* &&
2292 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2295 for ac_signal in 1 2 13 15; do
2296 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2300 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2301 rm -f -r conftest* confdefs.h
2303 $as_echo "/* confdefs.h */" > confdefs.h
2305 # Predefined preprocessor variables.
2307 cat >>confdefs.h <<_ACEOF
2308 #define PACKAGE_NAME "$PACKAGE_NAME"
2311 cat >>confdefs.h <<_ACEOF
2312 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2315 cat >>confdefs.h <<_ACEOF
2316 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2319 cat >>confdefs.h <<_ACEOF
2320 #define PACKAGE_STRING "$PACKAGE_STRING"
2323 cat >>confdefs.h <<_ACEOF
2324 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2327 cat >>confdefs.h <<_ACEOF
2328 #define PACKAGE_URL "$PACKAGE_URL"
2332 # Let the site file select an alternate cache file if it wants to.
2333 # Prefer an explicitly selected file to automatically selected ones.
2336 if test -n "$CONFIG_SITE"; then
2337 # We do not want a PATH search for config.site.
2338 case $CONFIG_SITE in #((
2339 -*) ac_site_file1=./$CONFIG_SITE;;
2340 */*) ac_site_file1=$CONFIG_SITE;;
2341 *) ac_site_file1=./$CONFIG_SITE;;
2343 elif test "x$prefix" != xNONE; then
2344 ac_site_file1=$prefix/share/config.site
2345 ac_site_file2=$prefix/etc/config.site
2347 ac_site_file1=$ac_default_prefix/share/config.site
2348 ac_site_file2=$ac_default_prefix/etc/config.site
2350 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2352 test "x$ac_site_file" = xNONE && continue
2353 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2355 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2356 sed 's/^/| /' "$ac_site_file" >&5
2358 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2359 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2360 as_fn_error $? "failed to load site script $ac_site_file
2361 See \`config.log' for more details" "$LINENO" 5; }
2365 if test -r "$cache_file"; then
2366 # Some versions of bash will fail to source /dev/null (special files
2367 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2368 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2370 $as_echo "$as_me: loading cache $cache_file" >&6;}
2372 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2373 *) . "./$cache_file";;
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2378 $as_echo "$as_me: creating cache $cache_file" >&6;}
2382 gt_needs="$gt_needs "
2383 # Check that the precious variables saved in the cache have kept the same
2385 ac_cache_corrupted=false
2386 for ac_var in $ac_precious_vars; do
2387 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2388 eval ac_new_set=\$ac_env_${ac_var}_set
2389 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2390 eval ac_new_val=\$ac_env_${ac_var}_value
2391 case $ac_old_set,$ac_new_set in
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2394 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2395 ac_cache_corrupted=: ;;
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2398 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2399 ac_cache_corrupted=: ;;
2402 if test "x$ac_old_val" != "x$ac_new_val"; then
2403 # differences in whitespace do not lead to failure.
2404 ac_old_val_w=`echo x $ac_old_val`
2405 ac_new_val_w=`echo x $ac_new_val`
2406 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2408 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2409 ac_cache_corrupted=:
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2412 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2413 eval $ac_var=\$ac_old_val
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2416 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2418 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2421 # Pass precious variables to config.status.
2422 if test "$ac_new_set" = set; then
2424 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2425 *) ac_arg=$ac_var=$ac_new_val ;;
2427 case " $ac_configure_args " in
2428 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2429 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2433 if $ac_cache_corrupted; then
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2435 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2437 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2438 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2440 ## -------------------- ##
2441 ## Main body of script. ##
2442 ## -------------------- ##
2445 ac_cpp='$CPP $CPPFLAGS'
2446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2451 #AC_CONFIG_SRCDIR([src/main.c])
2453 for ac_dir in config "$srcdir"/config; do
2454 if test -f "$ac_dir/install-sh"; then
2456 ac_install_sh="$ac_aux_dir/install-sh -c"
2458 elif test -f "$ac_dir/install.sh"; then
2460 ac_install_sh="$ac_aux_dir/install.sh -c"
2462 elif test -f "$ac_dir/shtool"; then
2464 ac_install_sh="$ac_aux_dir/shtool install -c"
2468 if test -z "$ac_aux_dir"; then
2469 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2472 # These three variables are undocumented and unsupported,
2473 # and are intended to be withdrawn in a future Autoconf release.
2474 # They can cause serious problems if a builder's source tree is in a directory
2475 # whose full name contains unusual characters.
2476 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2477 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2478 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2481 ac_config_headers="$ac_config_headers config.h"
2484 am__api_version='1.11'
2486 # Find a good install program. We prefer a C program (faster),
2487 # so one script is as good as another. But avoid the broken or
2488 # incompatible versions:
2489 # SysV /etc/install, /usr/sbin/install
2490 # SunOS /usr/etc/install
2491 # IRIX /sbin/install
2493 # AmigaOS /C/install, which installs bootblocks on floppy discs
2494 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2495 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2496 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2497 # OS/2's system install, which has a completely different semantic
2498 # ./install, which can be erroneously created by make from ./install.sh.
2499 # Reject install programs that cannot install multiple files.
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2501 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2502 if test -z "$INSTALL"; then
2503 if ${ac_cv_path_install+:} false; then :
2504 $as_echo_n "(cached) " >&6
2506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2510 test -z "$as_dir" && as_dir=.
2511 # Account for people who put trailing slashes in PATH elements.
2512 case $as_dir/ in #((
2513 ./ | .// | /[cC]/* | \
2514 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2515 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2518 # OSF1 and SCO ODT 3.0 have their own names for install.
2519 # Don't use installbsd from OSF since it installs stuff as root
2521 for ac_prog in ginstall scoinst install; do
2522 for ac_exec_ext in '' $ac_executable_extensions; do
2523 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2524 if test $ac_prog = install &&
2525 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2526 # AIX install. It has an incompatible calling convention.
2528 elif test $ac_prog = install &&
2529 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2530 # program-specific install script used by HP pwplus--don't use.
2533 rm -rf conftest.one conftest.two conftest.dir
2534 echo one > conftest.one
2535 echo two > conftest.two
2537 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2538 test -s conftest.one && test -s conftest.two &&
2539 test -s conftest.dir/conftest.one &&
2540 test -s conftest.dir/conftest.two
2542 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2555 rm -rf conftest.one conftest.two conftest.dir
2558 if test "${ac_cv_path_install+set}" = set; then
2559 INSTALL=$ac_cv_path_install
2561 # As a last resort, use the slow shell script. Don't cache a
2562 # value for INSTALL within a source directory, because that will
2563 # break other packages using the cache if that directory is
2564 # removed, or if the value is a relative name.
2565 INSTALL=$ac_install_sh
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2569 $as_echo "$INSTALL" >&6; }
2571 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2572 # It thinks the first close brace ends the variable substitution.
2573 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2575 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2577 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2580 $as_echo_n "checking whether build environment is sane... " >&6; }
2583 echo timestamp > conftest.file
2584 # Reject unsafe characters in $srcdir or the absolute working directory
2585 # name. Accept space and tab only in the latter.
2589 *[\\\"\#\$\&\'\`$am_lf]*)
2590 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2593 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2594 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2597 # Do `set' in a subshell so we don't clobber the current shell's
2598 # arguments. Must try -L first in case configure is actually a
2599 # symlink; some systems play weird games with the mod time of symlinks
2600 # (eg FreeBSD returns the mod time of the symlink's containing
2603 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2604 if test "$*" = "X"; then
2606 set X `ls -t "$srcdir/configure" conftest.file`
2609 if test "$*" != "X $srcdir/configure conftest.file" \
2610 && test "$*" != "X conftest.file $srcdir/configure"; then
2612 # If neither matched, then we have a broken ls. This can happen
2613 # if, for instance, CONFIG_SHELL is bash and it inherits a
2614 # broken ls alias from the environment. This has actually
2615 # happened. Such a system could not be considered "sane".
2616 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2617 alias in your environment" "$LINENO" 5
2620 test "$2" = conftest.file
2626 as_fn_error $? "newly created file is older than distributed files!
2627 Check your system clock" "$LINENO" 5
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2630 $as_echo "yes" >&6; }
2631 test "$program_prefix" != NONE &&
2632 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2633 # Use a double $ so make ignores it.
2634 test "$program_suffix" != NONE &&
2635 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2636 # Double any \ or $.
2637 # By default was `s,x,x', remove it if useless.
2638 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2639 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2641 # expand $ac_aux_dir to an absolute path
2642 am_aux_dir=`cd $ac_aux_dir && pwd`
2644 if test x"${MISSING+set}" != xset; then
2647 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2649 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2652 # Use eval to expand $SHELL
2653 if eval "$MISSING --run true"; then
2654 am_missing_run="$MISSING --run "
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2658 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2661 if test x"${install_sh}" != xset; then
2664 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2666 install_sh="\${SHELL} $am_aux_dir/install-sh"
2670 # Installed binaries are usually stripped using `strip' when the user
2671 # run `make install-strip'. However `strip' might not be the right
2672 # tool to use in cross-compilation environments, therefore Automake
2673 # will honor the `STRIP' environment variable to overrule this program.
2674 if test "$cross_compiling" != no; then
2675 if test -n "$ac_tool_prefix"; then
2676 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2677 set dummy ${ac_tool_prefix}strip; ac_word=$2
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2679 $as_echo_n "checking for $ac_word... " >&6; }
2680 if ${ac_cv_prog_STRIP+:} false; then :
2681 $as_echo_n "(cached) " >&6
2683 if test -n "$STRIP"; then
2684 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2690 test -z "$as_dir" && as_dir=.
2691 for ac_exec_ext in '' $ac_executable_extensions; do
2692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2693 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2703 STRIP=$ac_cv_prog_STRIP
2704 if test -n "$STRIP"; then
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2706 $as_echo "$STRIP" >&6; }
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2709 $as_echo "no" >&6; }
2714 if test -z "$ac_cv_prog_STRIP"; then
2716 # Extract the first word of "strip", so it can be a program name with args.
2717 set dummy strip; ac_word=$2
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2719 $as_echo_n "checking for $ac_word... " >&6; }
2720 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2721 $as_echo_n "(cached) " >&6
2723 if test -n "$ac_ct_STRIP"; then
2724 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2730 test -z "$as_dir" && as_dir=.
2731 for ac_exec_ext in '' $ac_executable_extensions; do
2732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2733 ac_cv_prog_ac_ct_STRIP="strip"
2734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2743 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2744 if test -n "$ac_ct_STRIP"; then
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2746 $as_echo "$ac_ct_STRIP" >&6; }
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2749 $as_echo "no" >&6; }
2752 if test "x$ac_ct_STRIP" = x; then
2755 case $cross_compiling:$ac_tool_warned in
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2758 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2759 ac_tool_warned=yes ;;
2764 STRIP="$ac_cv_prog_STRIP"
2768 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2771 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2772 if test -z "$MKDIR_P"; then
2773 if ${ac_cv_path_mkdir+:} false; then :
2774 $as_echo_n "(cached) " >&6
2776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2777 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2780 test -z "$as_dir" && as_dir=.
2781 for ac_prog in mkdir gmkdir; do
2782 for ac_exec_ext in '' $ac_executable_extensions; do
2783 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2784 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2785 'mkdir (GNU coreutils) '* | \
2786 'mkdir (coreutils) '* | \
2787 'mkdir (fileutils) '4.1*)
2788 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2798 test -d ./--version && rmdir ./--version
2799 if test "${ac_cv_path_mkdir+set}" = set; then
2800 MKDIR_P="$ac_cv_path_mkdir -p"
2802 # As a last resort, use the slow shell script. Don't cache a
2803 # value for MKDIR_P within a source directory, because that will
2804 # break other packages using the cache if that directory is
2805 # removed, or if the value is a relative name.
2806 MKDIR_P="$ac_install_sh -d"
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2810 $as_echo "$MKDIR_P" >&6; }
2814 [\\/$]* | ?:[\\/]*) ;;
2815 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2818 for ac_prog in gawk mawk nawk awk
2820 # Extract the first word of "$ac_prog", so it can be a program name with args.
2821 set dummy $ac_prog; ac_word=$2
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2823 $as_echo_n "checking for $ac_word... " >&6; }
2824 if ${ac_cv_prog_AWK+:} false; then :
2825 $as_echo_n "(cached) " >&6
2827 if test -n "$AWK"; then
2828 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2834 test -z "$as_dir" && as_dir=.
2835 for ac_exec_ext in '' $ac_executable_extensions; do
2836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2837 ac_cv_prog_AWK="$ac_prog"
2838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2848 if test -n "$AWK"; then
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2850 $as_echo "$AWK" >&6; }
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2853 $as_echo "no" >&6; }
2857 test -n "$AWK" && break
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2861 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2863 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2864 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2865 $as_echo_n "(cached) " >&6
2867 cat >conftest.make <<\_ACEOF
2870 @echo '@@@%%%=$(MAKE)=@@@%%%'
2872 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2873 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2875 eval ac_cv_prog_make_${ac_make}_set=yes;;
2877 eval ac_cv_prog_make_${ac_make}_set=no;;
2881 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2883 $as_echo "yes" >&6; }
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2887 $as_echo "no" >&6; }
2888 SET_MAKE="MAKE=${MAKE-make}"
2891 rm -rf .tst 2>/dev/null
2892 mkdir .tst 2>/dev/null
2893 if test -d .tst; then
2898 rmdir .tst 2>/dev/null
2900 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2901 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2902 # is not polluted with repeated "-I."
2903 am__isrc=' -I$(srcdir)'
2904 # test to see if srcdir already configured
2905 if test -f $srcdir/config.status; then
2906 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2910 # test whether we have cygpath
2911 if test -z "$CYGPATH_W"; then
2912 if (cygpath --version) >/dev/null 2>/dev/null; then
2913 CYGPATH_W='cygpath -w'
2920 # Define the identity of the package.
2925 cat >>confdefs.h <<_ACEOF
2926 #define PACKAGE "$PACKAGE"
2930 cat >>confdefs.h <<_ACEOF
2931 #define VERSION "$VERSION"
2934 # Some tools Automake needs.
2936 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2939 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2942 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2945 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2948 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2950 # We need awk for the "check" target. The system "awk" is bad on
2952 # Always define AMTAR for backward compatibility.
2954 AMTAR=${AMTAR-"${am_missing_run}tar"}
2956 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2964 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2965 # Check whether --enable-maintainer-mode was given.
2966 if test "${enable_maintainer_mode+set}" = set; then :
2967 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2969 USE_MAINTAINER_MODE=no
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2973 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2974 if test $USE_MAINTAINER_MODE = yes; then
2975 MAINTAINER_MODE_TRUE=
2976 MAINTAINER_MODE_FALSE='#'
2978 MAINTAINER_MODE_TRUE='#'
2979 MAINTAINER_MODE_FALSE=
2982 MAINT=$MAINTAINER_MODE_TRUE
2987 # autoconf command-line options
2989 # Check whether --enable-debug was given.
2990 if test "${enable_debug+set}" = set; then :
2991 enableval=$enable_debug; case "${enableval}" in
2992 yes) debugging="yes" ;;
2993 no) debugging="no" ;;
2994 *) as_fn_error $? "bad value ${enableval} for --enable-debug" "$LINENO" 5 ;;
2999 # Check whether --enable-warnerror was given.
3000 if test "${enable_warnerror+set}" = set; then :
3001 enableval=$enable_warnerror; case "${enableval}" in
3002 yes) warnerror="yes" ;;
3003 no) warnerror="no" ;;
3004 *) as_fn_error $? "bad value ${enableval} for --enable-warnerror" "$LINENO" 5 ;;
3009 # Check whether --enable-profiling was given.
3010 if test "${enable_profiling+set}" = set; then :
3011 enableval=$enable_profiling; case "${enableval}" in
3012 yes) profiling="yes" ;;
3013 no) profiling="no" ;;
3014 *) as_fn_error $? "bad value ${enableval} for --enable-profiling" "$LINENO" 5 ;;
3019 # Check whether --enable-gcov was given.
3020 if test "${enable_gcov+set}" = set; then :
3021 enableval=$enable_gcov; case "${enableval}" in
3024 *) as_fn_error $? "bad value ${enableval} for --enable-gcov" "$LINENO" 5 ;;
3029 # Check whether --enable-python was given.
3030 if test "${enable_python+set}" = set; then :
3031 enableval=$enable_python; case "${enableval}" in
3032 yes) enable_python="yes" ;;
3033 no) enable_python="no" ;;
3034 *) as_fn_error $? "bad value ${enableval} for --enable-python" "$LINENO" 5 ;;
3037 enable_python="auto"
3041 # Check whether --enable-python-bindings was given.
3042 if test "${enable_python_bindings+set}" = set; then :
3043 enableval=$enable_python_bindings; case "${enableval}" in
3044 yes) enable_python_bindings="yes" ;;
3045 no) enable_python_bindings="no" ;;
3046 *) as_fn_error $? "bad value ${enableval} for --enable-python-bindings" "$LINENO" 5 ;;
3049 enable_python_bindings="no"
3054 # Checks for programs.
3056 DEPDIR="${am__leading_dot}deps"
3058 ac_config_commands="$ac_config_commands depfiles"
3061 am_make=${MAKE-make}
3062 cat > confinc << 'END'
3064 @echo this is the am__doit target
3067 # If we don't find an include directive, just comment out the code.
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3069 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3073 # First try GNU make style include.
3074 echo "include confinc" > confmf
3075 # Ignore all kinds of additional output from `make'.
3076 case `$am_make -s -f confmf 2> /dev/null` in #(
3077 *the\ am__doit\ target*)
3083 # Now try BSD make style include.
3084 if test "$am__include" = "#"; then
3085 echo '.include "confinc"' > confmf
3086 case `$am_make -s -f confmf 2> /dev/null` in #(
3087 *the\ am__doit\ target*)
3088 am__include=.include
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3097 $as_echo "$_am_result" >&6; }
3098 rm -f confinc confmf
3100 # Check whether --enable-dependency-tracking was given.
3101 if test "${enable_dependency_tracking+set}" = set; then :
3102 enableval=$enable_dependency_tracking;
3105 if test "x$enable_dependency_tracking" != xno; then
3106 am_depcomp="$ac_aux_dir/depcomp"
3109 if test "x$enable_dependency_tracking" != xno; then
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
3123 if test -n "$ac_tool_prefix"; then
3124 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3125 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3127 $as_echo_n "checking for $ac_word... " >&6; }
3128 if ${ac_cv_prog_CC+:} false; then :
3129 $as_echo_n "(cached) " >&6
3131 if test -n "$CC"; then
3132 ac_cv_prog_CC="$CC" # Let the user override the test.
3134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3138 test -z "$as_dir" && as_dir=.
3139 for ac_exec_ext in '' $ac_executable_extensions; do
3140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3141 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3152 if test -n "$CC"; then
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3154 $as_echo "$CC" >&6; }
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3157 $as_echo "no" >&6; }
3162 if test -z "$ac_cv_prog_CC"; then
3164 # Extract the first word of "gcc", so it can be a program name with args.
3165 set dummy gcc; ac_word=$2
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3167 $as_echo_n "checking for $ac_word... " >&6; }
3168 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3169 $as_echo_n "(cached) " >&6
3171 if test -n "$ac_ct_CC"; then
3172 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3178 test -z "$as_dir" && as_dir=.
3179 for ac_exec_ext in '' $ac_executable_extensions; do
3180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3181 ac_cv_prog_ac_ct_CC="gcc"
3182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3191 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3192 if test -n "$ac_ct_CC"; then
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3194 $as_echo "$ac_ct_CC" >&6; }
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3197 $as_echo "no" >&6; }
3200 if test "x$ac_ct_CC" = x; then
3203 case $cross_compiling:$ac_tool_warned in
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3206 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3207 ac_tool_warned=yes ;;
3215 if test -z "$CC"; then
3216 if test -n "$ac_tool_prefix"; then
3217 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3218 set dummy ${ac_tool_prefix}cc; ac_word=$2
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3220 $as_echo_n "checking for $ac_word... " >&6; }
3221 if ${ac_cv_prog_CC+:} false; then :
3222 $as_echo_n "(cached) " >&6
3224 if test -n "$CC"; then
3225 ac_cv_prog_CC="$CC" # Let the user override the test.
3227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3231 test -z "$as_dir" && as_dir=.
3232 for ac_exec_ext in '' $ac_executable_extensions; do
3233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3234 ac_cv_prog_CC="${ac_tool_prefix}cc"
3235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3245 if test -n "$CC"; then
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3247 $as_echo "$CC" >&6; }
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3250 $as_echo "no" >&6; }
3256 if test -z "$CC"; then
3257 # Extract the first word of "cc", so it can be a program name with args.
3258 set dummy cc; ac_word=$2
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3260 $as_echo_n "checking for $ac_word... " >&6; }
3261 if ${ac_cv_prog_CC+:} false; then :
3262 $as_echo_n "(cached) " >&6
3264 if test -n "$CC"; then
3265 ac_cv_prog_CC="$CC" # Let the user override the test.
3268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3272 test -z "$as_dir" && as_dir=.
3273 for ac_exec_ext in '' $ac_executable_extensions; do
3274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3275 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3276 ac_prog_rejected=yes
3280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3287 if test $ac_prog_rejected = yes; then
3288 # We found a bogon in the path, so make sure we never use it.
3289 set dummy $ac_cv_prog_CC
3291 if test $# != 0; then
3292 # We chose a different compiler from the bogus one.
3293 # However, it has the same basename, so the bogon will be chosen
3294 # first if we set CC to just the basename; use the full file name.
3296 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3302 if test -n "$CC"; then
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3304 $as_echo "$CC" >&6; }
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3307 $as_echo "no" >&6; }
3312 if test -z "$CC"; then
3313 if test -n "$ac_tool_prefix"; then
3314 for ac_prog in cl.exe
3316 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3317 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3319 $as_echo_n "checking for $ac_word... " >&6; }
3320 if ${ac_cv_prog_CC+:} false; then :
3321 $as_echo_n "(cached) " >&6
3323 if test -n "$CC"; then
3324 ac_cv_prog_CC="$CC" # Let the user override the test.
3326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3330 test -z "$as_dir" && as_dir=.
3331 for ac_exec_ext in '' $ac_executable_extensions; do
3332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3333 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3344 if test -n "$CC"; then
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3346 $as_echo "$CC" >&6; }
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3349 $as_echo "no" >&6; }
3353 test -n "$CC" && break
3356 if test -z "$CC"; then
3358 for ac_prog in cl.exe
3360 # Extract the first word of "$ac_prog", so it can be a program name with args.
3361 set dummy $ac_prog; ac_word=$2
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3363 $as_echo_n "checking for $ac_word... " >&6; }
3364 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3365 $as_echo_n "(cached) " >&6
3367 if test -n "$ac_ct_CC"; then
3368 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3374 test -z "$as_dir" && as_dir=.
3375 for ac_exec_ext in '' $ac_executable_extensions; do
3376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3377 ac_cv_prog_ac_ct_CC="$ac_prog"
3378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3387 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3388 if test -n "$ac_ct_CC"; then
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3390 $as_echo "$ac_ct_CC" >&6; }
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3393 $as_echo "no" >&6; }
3397 test -n "$ac_ct_CC" && break
3400 if test "x$ac_ct_CC" = x; then
3403 case $cross_compiling:$ac_tool_warned in
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3406 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3407 ac_tool_warned=yes ;;
3416 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3417 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3418 as_fn_error $? "no acceptable C compiler found in \$PATH
3419 See \`config.log' for more details" "$LINENO" 5; }
3421 # Provide some information about the compiler.
3422 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3425 for ac_option in --version -v -V -qversion; do
3426 { { ac_try="$ac_compiler $ac_option >&5"
3428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3429 *) ac_try_echo=$ac_try;;
3431 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3432 $as_echo "$ac_try_echo"; } >&5
3433 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3435 if test -s conftest.err; then
3437 ... rest of stderr output deleted ...
3438 10q' conftest.err >conftest.er1
3439 cat conftest.er1 >&5
3441 rm -f conftest.er1 conftest.err
3442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3443 test $ac_status = 0; }
3446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3447 /* end confdefs.h. */
3457 ac_clean_files_save=$ac_clean_files
3458 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3459 # Try to create an executable without -o first, disregard a.out.
3460 # It will help us diagnose broken compilers, and finding out an intuition
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3463 $as_echo_n "checking whether the C compiler works... " >&6; }
3464 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3466 # The possible output files:
3467 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3470 for ac_file in $ac_files
3473 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3474 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3479 if { { ac_try="$ac_link_default"
3481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3482 *) ac_try_echo=$ac_try;;
3484 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3485 $as_echo "$ac_try_echo"; } >&5
3486 (eval "$ac_link_default") 2>&5
3488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3489 test $ac_status = 0; }; then :
3490 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3491 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3492 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3493 # so that the user can short-circuit this test for compilers unknown to
3495 for ac_file in $ac_files ''
3497 test -f "$ac_file" || continue
3499 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3502 # We found the default executable, but exeext='' is most
3506 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3508 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3510 # We set ac_cv_exeext here because the later test for it is not
3511 # safe: cross compilers may not add the suffix if given an `-o'
3512 # argument, so we may need to know it at that point already.
3513 # Even if this section looks crufty: it has the advantage of
3520 test "$ac_cv_exeext" = no && ac_cv_exeext=
3525 if test -z "$ac_file"; then :
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3527 $as_echo "no" >&6; }
3528 $as_echo "$as_me: failed program was:" >&5
3529 sed 's/^/| /' conftest.$ac_ext >&5
3531 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3532 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3533 as_fn_error 77 "C compiler cannot create executables
3534 See \`config.log' for more details" "$LINENO" 5; }
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3537 $as_echo "yes" >&6; }
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3540 $as_echo_n "checking for C compiler default output file name... " >&6; }
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3542 $as_echo "$ac_file" >&6; }
3543 ac_exeext=$ac_cv_exeext
3545 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3546 ac_clean_files=$ac_clean_files_save
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3548 $as_echo_n "checking for suffix of executables... " >&6; }
3549 if { { ac_try="$ac_link"
3551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3552 *) ac_try_echo=$ac_try;;
3554 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3555 $as_echo "$ac_try_echo"; } >&5
3556 (eval "$ac_link") 2>&5
3558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3559 test $ac_status = 0; }; then :
3560 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3561 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3562 # work properly (i.e., refer to `conftest.exe'), while it won't with
3564 for ac_file in conftest.exe conftest conftest.*; do
3565 test -f "$ac_file" || continue
3567 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3568 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3574 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3575 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3576 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3577 See \`config.log' for more details" "$LINENO" 5; }
3579 rm -f conftest conftest$ac_cv_exeext
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3581 $as_echo "$ac_cv_exeext" >&6; }
3583 rm -f conftest.$ac_ext
3584 EXEEXT=$ac_cv_exeext
3586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3587 /* end confdefs.h. */
3592 FILE *f = fopen ("conftest.out", "w");
3593 return ferror (f) || fclose (f) != 0;
3599 ac_clean_files="$ac_clean_files conftest.out"
3600 # Check that the compiler produces executables we can run. If not, either
3601 # the compiler is broken, or we cross compile.
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3603 $as_echo_n "checking whether we are cross compiling... " >&6; }
3604 if test "$cross_compiling" != yes; then
3605 { { ac_try="$ac_link"
3607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3608 *) ac_try_echo=$ac_try;;
3610 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3611 $as_echo "$ac_try_echo"; } >&5
3612 (eval "$ac_link") 2>&5
3614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3615 test $ac_status = 0; }
3616 if { ac_try='./conftest$ac_cv_exeext'
3617 { { case "(($ac_try" in
3618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3619 *) ac_try_echo=$ac_try;;
3621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3622 $as_echo "$ac_try_echo"; } >&5
3623 (eval "$ac_try") 2>&5
3625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3626 test $ac_status = 0; }; }; then
3629 if test "$cross_compiling" = maybe; then
3632 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3633 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3634 as_fn_error $? "cannot run C compiled programs.
3635 If you meant to cross compile, use \`--host'.
3636 See \`config.log' for more details" "$LINENO" 5; }
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3641 $as_echo "$cross_compiling" >&6; }
3643 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3644 ac_clean_files=$ac_clean_files_save
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3646 $as_echo_n "checking for suffix of object files... " >&6; }
3647 if ${ac_cv_objext+:} false; then :
3648 $as_echo_n "(cached) " >&6
3650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3651 /* end confdefs.h. */
3661 rm -f conftest.o conftest.obj
3662 if { { ac_try="$ac_compile"
3664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3665 *) ac_try_echo=$ac_try;;
3667 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3668 $as_echo "$ac_try_echo"; } >&5
3669 (eval "$ac_compile") 2>&5
3671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3672 test $ac_status = 0; }; then :
3673 for ac_file in conftest.o conftest.obj conftest.*; do
3674 test -f "$ac_file" || continue;
3676 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3677 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3682 $as_echo "$as_me: failed program was:" >&5
3683 sed 's/^/| /' conftest.$ac_ext >&5
3685 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3686 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3687 as_fn_error $? "cannot compute suffix of object files: cannot compile
3688 See \`config.log' for more details" "$LINENO" 5; }
3690 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3693 $as_echo "$ac_cv_objext" >&6; }
3694 OBJEXT=$ac_cv_objext
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3697 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3698 if ${ac_cv_c_compiler_gnu+:} false; then :
3699 $as_echo_n "(cached) " >&6
3701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3702 /* end confdefs.h. */
3715 if ac_fn_c_try_compile "$LINENO"; then :
3720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3721 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3725 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3726 if test $ac_compiler_gnu = yes; then
3731 ac_test_CFLAGS=${CFLAGS+set}
3732 ac_save_CFLAGS=$CFLAGS
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3734 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3735 if ${ac_cv_prog_cc_g+:} false; then :
3736 $as_echo_n "(cached) " >&6
3738 ac_save_c_werror_flag=$ac_c_werror_flag
3739 ac_c_werror_flag=yes
3742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3743 /* end confdefs.h. */
3753 if ac_fn_c_try_compile "$LINENO"; then :
3757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3758 /* end confdefs.h. */
3768 if ac_fn_c_try_compile "$LINENO"; then :
3771 ac_c_werror_flag=$ac_save_c_werror_flag
3773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3774 /* end confdefs.h. */
3784 if ac_fn_c_try_compile "$LINENO"; then :
3787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3792 ac_c_werror_flag=$ac_save_c_werror_flag
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3795 $as_echo "$ac_cv_prog_cc_g" >&6; }
3796 if test "$ac_test_CFLAGS" = set; then
3797 CFLAGS=$ac_save_CFLAGS
3798 elif test $ac_cv_prog_cc_g = yes; then
3799 if test "$GCC" = yes; then
3805 if test "$GCC" = yes; then
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3812 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3813 if ${ac_cv_prog_cc_c89+:} false; then :
3814 $as_echo_n "(cached) " >&6
3816 ac_cv_prog_cc_c89=no
3818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3819 /* end confdefs.h. */
3822 #include <sys/types.h>
3823 #include <sys/stat.h>
3824 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3825 struct buf { int x; };
3826 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3827 static char *e (p, i)
3833 static char *f (char * (*g) (char **, int), char **p, ...)
3838 s = g (p, va_arg (v,int));
3843 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3844 function prototypes and stuff, but not '\xHH' hex character constants.
3845 These don't provoke an error unfortunately, instead are silently treated
3846 as 'x'. The following induces an error, until -std is added to get
3847 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3848 array size at least. It's necessary to write '\x00'==0 to get something
3849 that's true only with -std. */
3850 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3852 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3853 inside strings and character constants. */
3855 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3857 int test (int i, double x);
3858 struct s1 {int (*f) (int a);};
3859 struct s2 {int (*f) (double a);};
3860 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3866 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3871 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3872 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3874 CC="$ac_save_CC $ac_arg"
3875 if ac_fn_c_try_compile "$LINENO"; then :
3876 ac_cv_prog_cc_c89=$ac_arg
3878 rm -f core conftest.err conftest.$ac_objext
3879 test "x$ac_cv_prog_cc_c89" != "xno" && break
3881 rm -f conftest.$ac_ext
3886 case "x$ac_cv_prog_cc_c89" in
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3889 $as_echo "none needed" >&6; } ;;
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3892 $as_echo "unsupported" >&6; } ;;
3894 CC="$CC $ac_cv_prog_cc_c89"
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3896 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3898 if test "x$ac_cv_prog_cc_c89" != xno; then :
3903 ac_cpp='$CPP $CPPFLAGS'
3904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3908 depcc="$CC" am_compiler_list=
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3911 $as_echo_n "checking dependency style of $depcc... " >&6; }
3912 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3913 $as_echo_n "(cached) " >&6
3915 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3916 # We make a subdir and do the tests there. Otherwise we can end up
3917 # making bogus files that we don't know about and never remove. For
3918 # instance it was reported that on HP-UX the gcc test will end up
3919 # making a dummy file named `D' -- because `-MD' means `put the output
3922 # Copy depcomp to subdir because otherwise we won't find it if we're
3923 # using a relative directory.
3924 cp "$am_depcomp" conftest.dir
3926 # We will build objects and dependencies in a subdirectory because
3927 # it helps to detect inapplicable dependency modes. For instance
3928 # both Tru64's cc and ICC support -MD to output dependencies as a
3929 # side effect of compilation, but ICC will put the dependencies in
3930 # the current directory while Tru64 will put them in the object
3934 am_cv_CC_dependencies_compiler_type=none
3935 if test "$am_compiler_list" = ""; then
3936 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3939 case " $depcc " in #(
3940 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3943 for depmode in $am_compiler_list; do
3944 # Setup a source with many dependencies, because some compilers
3945 # like to wrap large dependency lists on column 80 (with \), and
3946 # we should not choose a depcomp mode which is confused by this.
3948 # We need to recreate these files for each test, as the compiler may
3949 # overwrite some of them when testing with obscure command lines.
3950 # This happens at least with the AIX C compiler.
3952 for i in 1 2 3 4 5 6; do
3953 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3954 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3955 # Solaris 8's {/usr,}/bin/sh.
3956 touch sub/conftst$i.h
3958 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3960 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3961 # mode. It turns out that the SunPro C++ compiler does not properly
3962 # handle `-M -o', and we need to detect this. Also, some Intel
3963 # versions had trouble with output in subdirs
3964 am__obj=sub/conftest.${OBJEXT-o}
3965 am__minus_obj="-o $am__obj"
3968 # This depmode causes a compiler race in universal mode.
3969 test "$am__universal" = false || continue
3972 # after this tag, mechanisms are not by side-effect, so they'll
3973 # only be used when explicitly requested
3974 if test "x$enable_dependency_tracking" = xyes; then
3980 msvisualcpp | msvcmsys)
3981 # This compiler won't grok `-c -o', but also, the minuso test has
3982 # not run yet. These depmodes are late enough in the game, and
3983 # so weak that their functioning should not be impacted.
3984 am__obj=conftest.${OBJEXT-o}
3989 if depmode=$depmode \
3990 source=sub/conftest.c object=$am__obj \
3991 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3992 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3993 >/dev/null 2>conftest.err &&
3994 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3995 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3996 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3997 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3998 # icc doesn't choke on unknown options, it will just issue warnings
3999 # or remarks (even with -Werror). So we grep stderr for any message
4000 # that says an option was ignored or not supported.
4001 # When given -MP, icc 7.0 and 7.1 complain thusly:
4002 # icc: Command line warning: ignoring option '-M'; no argument required
4003 # The diagnosis changed in icc 8.0:
4004 # icc: Command line remark: option '-MP' not supported
4005 if (grep 'ignoring option' conftest.err ||
4006 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4007 am_cv_CC_dependencies_compiler_type=$depmode
4016 am_cv_CC_dependencies_compiler_type=none
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4021 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4022 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4025 test "x$enable_dependency_tracking" != xno \
4026 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4028 am__fastdepCC_FALSE='#'
4030 am__fastdepCC_TRUE='#'
4031 am__fastdepCC_FALSE=
4036 ac_cpp='$CPP $CPPFLAGS'
4037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4041 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4042 # On Suns, sometimes $CPP names a directory.
4043 if test -n "$CPP" && test -d "$CPP"; then
4046 if test -z "$CPP"; then
4047 if ${ac_cv_prog_CPP+:} false; then :
4048 $as_echo_n "(cached) " >&6
4050 # Double quotes because CPP needs to be expanded
4051 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4054 for ac_c_preproc_warn_flag in '' yes
4056 # Use a header file that comes with gcc, so configuring glibc
4057 # with a fresh cross-compiler works.
4058 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4059 # <limits.h> exists even on freestanding compilers.
4060 # On the NeXT, cc -E runs the code through the compiler's parser,
4061 # not just through cpp. "Syntax error" is here to catch this case.
4062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4063 /* end confdefs.h. */
4065 # include <limits.h>
4067 # include <assert.h>
4071 if ac_fn_c_try_cpp "$LINENO"; then :
4074 # Broken: fails on valid input.
4077 rm -f conftest.err conftest.i conftest.$ac_ext
4079 # OK, works on sane cases. Now check whether nonexistent headers
4080 # can be detected and how.
4081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4082 /* end confdefs.h. */
4083 #include <ac_nonexistent.h>
4085 if ac_fn_c_try_cpp "$LINENO"; then :
4086 # Broken: success on invalid input.
4089 # Passes both tests.
4093 rm -f conftest.err conftest.i conftest.$ac_ext
4096 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4097 rm -f conftest.i conftest.err conftest.$ac_ext
4098 if $ac_preproc_ok; then :
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4111 $as_echo "$CPP" >&6; }
4113 for ac_c_preproc_warn_flag in '' yes
4115 # Use a header file that comes with gcc, so configuring glibc
4116 # with a fresh cross-compiler works.
4117 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4118 # <limits.h> exists even on freestanding compilers.
4119 # On the NeXT, cc -E runs the code through the compiler's parser,
4120 # not just through cpp. "Syntax error" is here to catch this case.
4121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4122 /* end confdefs.h. */
4124 # include <limits.h>
4126 # include <assert.h>
4130 if ac_fn_c_try_cpp "$LINENO"; then :
4133 # Broken: fails on valid input.
4136 rm -f conftest.err conftest.i conftest.$ac_ext
4138 # OK, works on sane cases. Now check whether nonexistent headers
4139 # can be detected and how.
4140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4141 /* end confdefs.h. */
4142 #include <ac_nonexistent.h>
4144 if ac_fn_c_try_cpp "$LINENO"; then :
4145 # Broken: success on invalid input.
4148 # Passes both tests.
4152 rm -f conftest.err conftest.i conftest.$ac_ext
4155 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4156 rm -f conftest.i conftest.err conftest.$ac_ext
4157 if $ac_preproc_ok; then :
4160 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4161 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4162 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4163 See \`config.log' for more details" "$LINENO" 5; }
4167 ac_cpp='$CPP $CPPFLAGS'
4168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4172 case $ac_cv_prog_cc_stdc in #(
4174 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4177 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4178 if ${ac_cv_prog_cc_c99+:} false; then :
4179 $as_echo_n "(cached) " >&6
4181 ac_cv_prog_cc_c99=no
4183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4184 /* end confdefs.h. */
4186 #include <stdbool.h>
4191 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4192 #define debug(...) fprintf (stderr, __VA_ARGS__)
4193 #define showlist(...) puts (#__VA_ARGS__)
4194 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4196 test_varargs_macros (void)
4201 debug ("X = %d\n", x);
4202 showlist (The first, second, and third items.);
4203 report (x>y, "x is %d but y is %d", x, y);
4206 // Check long long types.
4207 #define BIG64 18446744073709551615ull
4208 #define BIG32 4294967295ul
4209 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4211 your preprocessor is broken;
4215 your preprocessor is broken;
4217 static long long int bignum = -9223372036854775807LL;
4218 static unsigned long long int ubignum = BIG64;
4220 struct incomplete_array
4228 const wchar_t *name;
4232 typedef const char *ccp;
4235 test_restrict (ccp restrict text)
4237 // See if C++-style comments work.
4238 // Iterate through items via the restricted pointer.
4239 // Also check for declarations in for loops.
4240 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4245 // Check varargs and va_copy.
4247 test_varargs (const char *format, ...)
4250 va_start (args, format);
4252 va_copy (args_copy, args);
4263 str = va_arg (args_copy, const char *);
4266 number = va_arg (args_copy, int);
4269 fnumber = va_arg (args_copy, double);
4284 _Bool success = false;
4287 if (test_restrict ("String literal") == 0)
4289 char *restrict newvar = "Another string";
4292 test_varargs ("s, d' f .", "string", 65, 34.234);
4293 test_varargs_macros ();
4295 // Check flexible array members.
4296 struct incomplete_array *ia =
4297 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4299 for (int i = 0; i < ia->datasize; ++i)
4300 ia->data[i] = i * 1.234;
4302 // Check named initializers.
4303 struct named_init ni = {
4305 .name = L"Test wide string",
4306 .average = 543.34343,
4311 int dynamic_array[ni.number];
4312 dynamic_array[ni.number - 1] = 543;
4314 // work around unused variable warnings
4315 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4316 || dynamic_array[ni.number - 1] != 543);
4322 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4324 CC="$ac_save_CC $ac_arg"
4325 if ac_fn_c_try_compile "$LINENO"; then :
4326 ac_cv_prog_cc_c99=$ac_arg
4328 rm -f core conftest.err conftest.$ac_objext
4329 test "x$ac_cv_prog_cc_c99" != "xno" && break
4331 rm -f conftest.$ac_ext
4336 case "x$ac_cv_prog_cc_c99" in
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4339 $as_echo "none needed" >&6; } ;;
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4342 $as_echo "unsupported" >&6; } ;;
4344 CC="$CC $ac_cv_prog_cc_c99"
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4346 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4348 if test "x$ac_cv_prog_cc_c99" != xno; then :
4349 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4352 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4353 if ${ac_cv_prog_cc_c89+:} false; then :
4354 $as_echo_n "(cached) " >&6
4356 ac_cv_prog_cc_c89=no
4358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4359 /* end confdefs.h. */
4362 #include <sys/types.h>
4363 #include <sys/stat.h>
4364 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4365 struct buf { int x; };
4366 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4367 static char *e (p, i)
4373 static char *f (char * (*g) (char **, int), char **p, ...)
4378 s = g (p, va_arg (v,int));
4383 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4384 function prototypes and stuff, but not '\xHH' hex character constants.
4385 These don't provoke an error unfortunately, instead are silently treated
4386 as 'x'. The following induces an error, until -std is added to get
4387 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4388 array size at least. It's necessary to write '\x00'==0 to get something
4389 that's true only with -std. */
4390 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4392 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4393 inside strings and character constants. */
4395 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4397 int test (int i, double x);
4398 struct s1 {int (*f) (int a);};
4399 struct s2 {int (*f) (double a);};
4400 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4406 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4411 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4412 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4414 CC="$ac_save_CC $ac_arg"
4415 if ac_fn_c_try_compile "$LINENO"; then :
4416 ac_cv_prog_cc_c89=$ac_arg
4418 rm -f core conftest.err conftest.$ac_objext
4419 test "x$ac_cv_prog_cc_c89" != "xno" && break
4421 rm -f conftest.$ac_ext
4426 case "x$ac_cv_prog_cc_c89" in
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4429 $as_echo "none needed" >&6; } ;;
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4432 $as_echo "unsupported" >&6; } ;;
4434 CC="$CC $ac_cv_prog_cc_c89"
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4436 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4438 if test "x$ac_cv_prog_cc_c89" != xno; then :
4439 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4441 ac_cv_prog_cc_stdc=no
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4448 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4449 if ${ac_cv_prog_cc_stdc+:} false; then :
4450 $as_echo_n "(cached) " >&6
4453 case $ac_cv_prog_cc_stdc in #(
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4456 $as_echo "unsupported" >&6; } ;; #(
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4459 $as_echo "none needed" >&6; } ;; #(
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4462 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4467 $as_echo_n "checking whether ln -s works... " >&6; }
4469 if test "$LN_S" = "ln -s"; then
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4471 $as_echo "yes" >&6; }
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4474 $as_echo "no, using $LN_S" >&6; }
4477 #automake default ARFLAGS to "cru"
4478 if test -n "$ac_tool_prefix"; then
4479 for ac_prog in $AR ar
4481 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4482 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4484 $as_echo_n "checking for $ac_word... " >&6; }
4485 if ${ac_cv_prog_AR+:} false; then :
4486 $as_echo_n "(cached) " >&6
4488 if test -n "$AR"; then
4489 ac_cv_prog_AR="$AR" # Let the user override the test.
4491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4495 test -z "$as_dir" && as_dir=.
4496 for ac_exec_ext in '' $ac_executable_extensions; do
4497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4498 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4509 if test -n "$AR"; then
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4511 $as_echo "$AR" >&6; }
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4514 $as_echo "no" >&6; }
4518 test -n "$AR" && break
4521 if test -z "$AR"; then
4523 for ac_prog in $AR ar
4525 # Extract the first word of "$ac_prog", so it can be a program name with args.
4526 set dummy $ac_prog; ac_word=$2
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4528 $as_echo_n "checking for $ac_word... " >&6; }
4529 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4530 $as_echo_n "(cached) " >&6
4532 if test -n "$ac_ct_AR"; then
4533 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4539 test -z "$as_dir" && as_dir=.
4540 for ac_exec_ext in '' $ac_executable_extensions; do
4541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4542 ac_cv_prog_ac_ct_AR="$ac_prog"
4543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4552 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4553 if test -n "$ac_ct_AR"; then
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4555 $as_echo "$ac_ct_AR" >&6; }
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4558 $as_echo "no" >&6; }
4562 test -n "$ac_ct_AR" && break
4565 if test "x$ac_ct_AR" = x; then
4568 case $cross_compiling:$ac_tool_warned in
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4571 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4572 ac_tool_warned=yes ;;
4578 if test -n "$ac_tool_prefix"; then
4579 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4580 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4582 $as_echo_n "checking for $ac_word... " >&6; }
4583 if ${ac_cv_prog_RANLIB+:} false; then :
4584 $as_echo_n "(cached) " >&6
4586 if test -n "$RANLIB"; then
4587 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4593 test -z "$as_dir" && as_dir=.
4594 for ac_exec_ext in '' $ac_executable_extensions; do
4595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4596 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4606 RANLIB=$ac_cv_prog_RANLIB
4607 if test -n "$RANLIB"; then
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4609 $as_echo "$RANLIB" >&6; }
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4612 $as_echo "no" >&6; }
4617 if test -z "$ac_cv_prog_RANLIB"; then
4618 ac_ct_RANLIB=$RANLIB
4619 # Extract the first word of "ranlib", so it can be a program name with args.
4620 set dummy ranlib; ac_word=$2
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4622 $as_echo_n "checking for $ac_word... " >&6; }
4623 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4624 $as_echo_n "(cached) " >&6
4626 if test -n "$ac_ct_RANLIB"; then
4627 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4633 test -z "$as_dir" && as_dir=.
4634 for ac_exec_ext in '' $ac_executable_extensions; do
4635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4636 ac_cv_prog_ac_ct_RANLIB="ranlib"
4637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4646 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4647 if test -n "$ac_ct_RANLIB"; then
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4649 $as_echo "$ac_ct_RANLIB" >&6; }
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4652 $as_echo "no" >&6; }
4655 if test "x$ac_ct_RANLIB" = x; then
4658 case $cross_compiling:$ac_tool_warned in
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4661 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4662 ac_tool_warned=yes ;;
4664 RANLIB=$ac_ct_RANLIB
4667 RANLIB="$ac_cv_prog_RANLIB"
4671 # REQUIRE a standard (ANSI/ISO) C compiler
4672 if test "$ac_cv_prog_cc_stdc" = no; then
4673 as_fn_error $? "A standard (ANSI/ISO C89) C compiler is required." "$LINENO" 5
4676 # Check for xmlto (for rendering manpages, needed only for development)
4677 for ac_prog in $XMLTO xmlto
4679 # Extract the first word of "$ac_prog", so it can be a program name with args.
4680 set dummy $ac_prog; ac_word=$2
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4682 $as_echo_n "checking for $ac_word... " >&6; }
4683 if ${ac_cv_prog_XMLTO+:} false; then :
4684 $as_echo_n "(cached) " >&6
4686 if test -n "$XMLTO"; then
4687 ac_cv_prog_XMLTO="$XMLTO" # Let the user override the test.
4689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4693 test -z "$as_dir" && as_dir=.
4694 for ac_exec_ext in '' $ac_executable_extensions; do
4695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4696 ac_cv_prog_XMLTO="$ac_prog"
4697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4706 XMLTO=$ac_cv_prog_XMLTO
4707 if test -n "$XMLTO"; then
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
4709 $as_echo "$XMLTO" >&6; }
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4712 $as_echo "no" >&6; }
4716 test -n "$XMLTO" && break
4718 test -n "$XMLTO" || XMLTO=":"
4720 if test "$XMLTO" = ":"; then
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found, manpages will not be rebuilt." >&5
4722 $as_echo "$as_me: WARNING: xmlto not found, manpages will not be rebuilt." >&2;}
4724 if test "$XMLTO" != ":"; then
4733 # Check for compiler output filename suffixes.
4738 # Checks for libraries.
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
4741 $as_echo_n "checking if malloc debugging is wanted... " >&6; }
4743 # Check whether --with-dmalloc was given.
4744 if test "${with_dmalloc+set}" = set; then :
4745 withval=$with_dmalloc; if test "$withval" = yes; then
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4747 $as_echo "yes" >&6; }
4749 $as_echo "#define WITH_DMALLOC 1" >>confdefs.h
4751 LIBS="$LIBS -ldmalloc"
4752 LDFLAGS="$LDFLAGS -g"
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4755 $as_echo "no" >&6; }
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4759 $as_echo "no" >&6; }
4765 # Checks for header files.
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4770 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4771 if ${ac_cv_path_GREP+:} false; then :
4772 $as_echo_n "(cached) " >&6
4774 if test -z "$GREP"; then
4775 ac_path_GREP_found=false
4776 # Loop through the user's path and test for each of PROGNAME-LIST
4777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4778 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4781 test -z "$as_dir" && as_dir=.
4782 for ac_prog in grep ggrep; do
4783 for ac_exec_ext in '' $ac_executable_extensions; do
4784 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4785 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4786 # Check for GNU ac_path_GREP and select it if it is found.
4787 # Check for GNU $ac_path_GREP
4788 case `"$ac_path_GREP" --version 2>&1` in
4790 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4793 $as_echo_n 0123456789 >"conftest.in"
4796 cat "conftest.in" "conftest.in" >"conftest.tmp"
4797 mv "conftest.tmp" "conftest.in"
4798 cp "conftest.in" "conftest.nl"
4799 $as_echo 'GREP' >> "conftest.nl"
4800 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4801 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4802 as_fn_arith $ac_count + 1 && ac_count=$as_val
4803 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4804 # Best one so far, save it but keep looking for a better one
4805 ac_cv_path_GREP="$ac_path_GREP"
4806 ac_path_GREP_max=$ac_count
4808 # 10*(2^10) chars as input seems more than enough
4809 test $ac_count -gt 10 && break
4811 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4814 $ac_path_GREP_found && break 3
4819 if test -z "$ac_cv_path_GREP"; then
4820 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4823 ac_cv_path_GREP=$GREP
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4828 $as_echo "$ac_cv_path_GREP" >&6; }
4829 GREP="$ac_cv_path_GREP"
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4833 $as_echo_n "checking for egrep... " >&6; }
4834 if ${ac_cv_path_EGREP+:} false; then :
4835 $as_echo_n "(cached) " >&6
4837 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4838 then ac_cv_path_EGREP="$GREP -E"
4840 if test -z "$EGREP"; then
4841 ac_path_EGREP_found=false
4842 # Loop through the user's path and test for each of PROGNAME-LIST
4843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4844 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4847 test -z "$as_dir" && as_dir=.
4848 for ac_prog in egrep; do
4849 for ac_exec_ext in '' $ac_executable_extensions; do
4850 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4851 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4852 # Check for GNU ac_path_EGREP and select it if it is found.
4853 # Check for GNU $ac_path_EGREP
4854 case `"$ac_path_EGREP" --version 2>&1` in
4856 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4859 $as_echo_n 0123456789 >"conftest.in"
4862 cat "conftest.in" "conftest.in" >"conftest.tmp"
4863 mv "conftest.tmp" "conftest.in"
4864 cp "conftest.in" "conftest.nl"
4865 $as_echo 'EGREP' >> "conftest.nl"
4866 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4867 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4868 as_fn_arith $ac_count + 1 && ac_count=$as_val
4869 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4870 # Best one so far, save it but keep looking for a better one
4871 ac_cv_path_EGREP="$ac_path_EGREP"
4872 ac_path_EGREP_max=$ac_count
4874 # 10*(2^10) chars as input seems more than enough
4875 test $ac_count -gt 10 && break
4877 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4880 $ac_path_EGREP_found && break 3
4885 if test -z "$ac_cv_path_EGREP"; then
4886 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4889 ac_cv_path_EGREP=$EGREP
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4895 $as_echo "$ac_cv_path_EGREP" >&6; }
4896 EGREP="$ac_cv_path_EGREP"
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4900 $as_echo_n "checking for ANSI C header files... " >&6; }
4901 if ${ac_cv_header_stdc+:} false; then :
4902 $as_echo_n "(cached) " >&6
4904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4905 /* end confdefs.h. */
4919 if ac_fn_c_try_compile "$LINENO"; then :
4920 ac_cv_header_stdc=yes
4922 ac_cv_header_stdc=no
4924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4926 if test $ac_cv_header_stdc = yes; then
4927 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4929 /* end confdefs.h. */
4933 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4934 $EGREP "memchr" >/dev/null 2>&1; then :
4937 ac_cv_header_stdc=no
4943 if test $ac_cv_header_stdc = yes; then
4944 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4946 /* end confdefs.h. */
4950 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4951 $EGREP "free" >/dev/null 2>&1; then :
4954 ac_cv_header_stdc=no
4960 if test $ac_cv_header_stdc = yes; then
4961 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4962 if test "$cross_compiling" = yes; then :
4965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4966 /* end confdefs.h. */
4969 #if ((' ' & 0x0FF) == 0x020)
4970 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4971 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4973 # define ISLOWER(c) \
4974 (('a' <= (c) && (c) <= 'i') \
4975 || ('j' <= (c) && (c) <= 'r') \
4976 || ('s' <= (c) && (c) <= 'z'))
4977 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4980 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4985 for (i = 0; i < 256; i++)
4986 if (XOR (islower (i), ISLOWER (i))
4987 || toupper (i) != TOUPPER (i))
4992 if ac_fn_c_try_run "$LINENO"; then :
4995 ac_cv_header_stdc=no
4997 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4998 conftest.$ac_objext conftest.beam conftest.$ac_ext
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5004 $as_echo "$ac_cv_header_stdc" >&6; }
5005 if test $ac_cv_header_stdc = yes; then
5007 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5011 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5012 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5013 inttypes.h stdint.h unistd.h
5015 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5016 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5018 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5019 cat >>confdefs.h <<_ACEOF
5020 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5028 for ac_header in strings.h libgen.h unistd.h direct.h sys/stat.h
5030 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5031 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5032 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5033 cat >>confdefs.h <<_ACEOF
5034 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5042 # REQUIRE standard C headers
5043 if test "$ac_cv_header_stdc" != yes; then
5044 as_fn_error $? "Standard (ANSI/ISO C89) header files are required." "$LINENO" 5
5048 # Checks for typedefs, structures, and compiler characteristics.
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5051 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5052 if ${ac_cv_c_const+:} false; then :
5053 $as_echo_n "(cached) " >&6
5055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5056 /* end confdefs.h. */
5061 /* FIXME: Include the comments suggested by Paul. */
5063 /* Ultrix mips cc rejects this. */
5064 typedef int charset[2];
5066 /* SunOS 4.1.1 cc rejects this. */
5067 char const *const *pcpcc;
5069 /* NEC SVR4.0.2 mips cc rejects this. */
5070 struct point {int x, y;};
5071 static struct point const zero = {0,0};
5072 /* AIX XL C 1.02.0.0 rejects this.
5073 It does not let you subtract one const X* pointer from another in
5074 an arm of an if-expression whose if-part is not a constant
5076 const char *g = "string";
5077 pcpcc = &g + (g ? g-g : 0);
5078 /* HPUX 7.0 cc rejects these. */
5080 ppc = (char**) pcpcc;
5081 pcpcc = (char const *const *) ppc;
5082 { /* SCO 3.2v4 cc rejects this. */
5084 char const *s = 0 ? (char *) 0 : (char const *) 0;
5089 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5091 const int *foo = &x[0];
5094 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5095 typedef const int *iptr;
5099 { /* AIX XL C 1.02.0.0 rejects this saying
5100 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5101 struct s { int j; const int *ap[3]; };
5102 struct s *b; b->j = 5;
5104 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5108 return !cs[0] && !zero.x;
5115 if ac_fn_c_try_compile "$LINENO"; then :
5120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5123 $as_echo "$ac_cv_c_const" >&6; }
5124 if test $ac_cv_c_const = no; then
5126 $as_echo "#define const /**/" >>confdefs.h
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5131 $as_echo_n "checking for inline... " >&6; }
5132 if ${ac_cv_c_inline+:} false; then :
5133 $as_echo_n "(cached) " >&6
5136 for ac_kw in inline __inline__ __inline; do
5137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5138 /* end confdefs.h. */
5141 static $ac_kw foo_t static_foo () {return 0; }
5142 $ac_kw foo_t foo () {return 0; }
5146 if ac_fn_c_try_compile "$LINENO"; then :
5147 ac_cv_c_inline=$ac_kw
5149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5150 test "$ac_cv_c_inline" != no && break
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5155 $as_echo "$ac_cv_c_inline" >&6; }
5157 case $ac_cv_c_inline in
5160 case $ac_cv_c_inline in
5162 *) ac_val=$ac_cv_c_inline;;
5164 cat >>confdefs.h <<_ACEOF
5166 #define inline $ac_val
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
5173 $as_echo_n "checking for function prototypes... " >&6; }
5174 if test "$ac_cv_prog_cc_c89" != no; then
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5176 $as_echo "yes" >&6; }
5178 $as_echo "#define PROTOTYPES 1" >>confdefs.h
5181 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5185 $as_echo "no" >&6; }
5188 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5189 if test "x$ac_cv_type_size_t" = xyes; then :
5193 cat >>confdefs.h <<_ACEOF
5194 #define size_t unsigned int
5199 # ------ AX CREATE STDINT H -------------------------------------
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint types" >&5
5201 $as_echo_n "checking for stdint types... " >&6; }
5202 ac_stdint_h=`echo libyasm-stdint.h`
5203 # try to shortcircuit - if the default include path of the compiler
5204 # can find a "stdint.h" header then we assume that all compilers can.
5205 if ${ac_cv_header_stdint_t+:} false; then :
5206 $as_echo_n "(cached) " >&6
5209 old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS=""
5210 old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS=""
5211 old_CFLAGS="$CFLAGS" ; CFLAGS=""
5212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5213 /* end confdefs.h. */
5218 int_least32_t v = 0;
5223 if ac_fn_c_try_compile "$LINENO"; then :
5224 ac_cv_stdint_result="(assuming C99 compatible system)"
5225 ac_cv_header_stdint_t="stdint.h";
5227 ac_cv_header_stdint_t=""
5229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5230 CXXFLAGS="$old_CXXFLAGS"
5231 CPPFLAGS="$old_CPPFLAGS"
5232 CFLAGS="$old_CFLAGS"
5236 v="... $ac_cv_header_stdint_h"
5237 if test "$ac_stdint_h" = "stdint.h" ; then
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./stdint.h?)" >&5
5239 $as_echo "(are you sure you want them in ./stdint.h?)" >&6; }
5240 elif test "$ac_stdint_h" = "inttypes.h" ; then
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./inttypes.h?)" >&5
5242 $as_echo "(are you sure you want them in ./inttypes.h?)" >&6; }
5243 elif test "_$ac_cv_header_stdint_t" = "_" ; then
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (putting them into $ac_stdint_h)$v" >&5
5245 $as_echo "(putting them into $ac_stdint_h)$v" >&6; }
5247 ac_cv_header_stdint="$ac_cv_header_stdint_t"
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint (shortcircuit)" >&5
5249 $as_echo "$ac_cv_header_stdint (shortcircuit)" >&6; }
5252 if test "_$ac_cv_header_stdint_t" = "_" ; then # can not shortcircuit..
5255 inttype_headers=`echo | sed -e 's/,/ /g'`
5257 ac_cv_stdint_result="(no helpful system typedefs seen)"
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
5260 $as_echo_n "checking for stdint uintptr_t... " >&6; }
5261 if ${ac_cv_header_stdint_x+:} false; then :
5262 $as_echo_n "(cached) " >&6
5265 ac_cv_header_stdint_x="" # the 1997 typedefs (inttypes.h)
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
5267 $as_echo "(..)" >&6; }
5268 for i in stdint.h inttypes.h sys/inttypes.h $inttype_headers ; do
5269 unset ac_cv_type_uintptr_t
5270 unset ac_cv_type_uint64_t
5271 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <$i>
5273 if test "x$ac_cv_type_uintptr_t" = xyes; then :
5274 ac_cv_header_stdint_x=$i
5279 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
5281 if test "x$ac_cv_type_uint64_t" = xyes; then :
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
5290 $as_echo_n "checking for stdint uintptr_t... " >&6; }
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_x" >&5
5294 $as_echo "$ac_cv_header_stdint_x" >&6; }
5297 if test "_$ac_cv_header_stdint_x" = "_" ; then
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
5300 $as_echo_n "checking for stdint uint32_t... " >&6; }
5301 if ${ac_cv_header_stdint_o+:} false; then :
5302 $as_echo_n "(cached) " >&6
5305 ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h)
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
5307 $as_echo "(..)" >&6; }
5308 for i in inttypes.h sys/inttypes.h stdint.h $inttype_headers ; do
5309 unset ac_cv_type_uint32_t
5310 unset ac_cv_type_uint64_t
5311 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <$i>
5313 if test "x$ac_cv_type_uint32_t" = xyes; then :
5314 ac_cv_header_stdint_o=$i
5319 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
5321 if test "x$ac_cv_type_uint64_t" = xyes; then :
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
5330 $as_echo_n "checking for stdint uint32_t... " >&6; }
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_o" >&5
5334 $as_echo "$ac_cv_header_stdint_o" >&6; }
5338 if test "_$ac_cv_header_stdint_x" = "_" ; then
5339 if test "_$ac_cv_header_stdint_o" = "_" ; then
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
5342 $as_echo_n "checking for stdint u_int32_t... " >&6; }
5343 if ${ac_cv_header_stdint_u+:} false; then :
5344 $as_echo_n "(cached) " >&6
5347 ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h)
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
5349 $as_echo "(..)" >&6; }
5350 for i in sys/types.h inttypes.h sys/inttypes.h $inttype_headers ; do
5351 unset ac_cv_type_u_int32_t
5352 unset ac_cv_type_u_int64_t
5353 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <$i>
5355 if test "x$ac_cv_type_u_int32_t" = xyes; then :
5356 ac_cv_header_stdint_u=$i
5361 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include<$i>
5363 if test "x$ac_cv_type_u_int64_t" = xyes; then :
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
5372 $as_echo_n "checking for stdint u_int32_t... " >&6; }
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_u" >&5
5376 $as_echo "$ac_cv_header_stdint_u" >&6; }
5380 if test "_$ac_cv_header_stdint_x" = "_" ; then
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint datatype model" >&5
5382 $as_echo_n "checking for stdint datatype model... " >&6; }
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
5384 $as_echo "(..)" >&6; }
5386 # The cast to long int works around a bug in the HP C Compiler
5387 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5388 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5389 # This bug is HP SR number 8606223364.
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
5391 $as_echo_n "checking size of char... " >&6; }
5392 if ${ac_cv_sizeof_char+:} false; then :
5393 $as_echo_n "(cached) " >&6
5395 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
5398 if test "$ac_cv_type_char" = yes; then
5399 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5400 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5401 as_fn_error 77 "cannot compute sizeof (char)
5402 See \`config.log' for more details" "$LINENO" 5; }
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
5410 $as_echo "$ac_cv_sizeof_char" >&6; }
5414 cat >>confdefs.h <<_ACEOF
5415 #define SIZEOF_CHAR $ac_cv_sizeof_char
5419 # The cast to long int works around a bug in the HP C Compiler
5420 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5421 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5422 # This bug is HP SR number 8606223364.
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5424 $as_echo_n "checking size of short... " >&6; }
5425 if ${ac_cv_sizeof_short+:} false; then :
5426 $as_echo_n "(cached) " >&6
5428 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5431 if test "$ac_cv_type_short" = yes; then
5432 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5433 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5434 as_fn_error 77 "cannot compute sizeof (short)
5435 See \`config.log' for more details" "$LINENO" 5; }
5437 ac_cv_sizeof_short=0
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5443 $as_echo "$ac_cv_sizeof_short" >&6; }
5447 cat >>confdefs.h <<_ACEOF
5448 #define SIZEOF_SHORT $ac_cv_sizeof_short
5452 # The cast to long int works around a bug in the HP C Compiler
5453 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5454 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5455 # This bug is HP SR number 8606223364.
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5457 $as_echo_n "checking size of int... " >&6; }
5458 if ${ac_cv_sizeof_int+:} false; then :
5459 $as_echo_n "(cached) " >&6
5461 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5464 if test "$ac_cv_type_int" = yes; then
5465 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5466 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5467 as_fn_error 77 "cannot compute sizeof (int)
5468 See \`config.log' for more details" "$LINENO" 5; }
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5476 $as_echo "$ac_cv_sizeof_int" >&6; }
5480 cat >>confdefs.h <<_ACEOF
5481 #define SIZEOF_INT $ac_cv_sizeof_int
5485 # The cast to long int works around a bug in the HP C Compiler
5486 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5487 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5488 # This bug is HP SR number 8606223364.
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5490 $as_echo_n "checking size of long... " >&6; }
5491 if ${ac_cv_sizeof_long+:} false; then :
5492 $as_echo_n "(cached) " >&6
5494 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5497 if test "$ac_cv_type_long" = yes; then
5498 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5499 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5500 as_fn_error 77 "cannot compute sizeof (long)
5501 See \`config.log' for more details" "$LINENO" 5; }
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5509 $as_echo "$ac_cv_sizeof_long" >&6; }
5513 cat >>confdefs.h <<_ACEOF
5514 #define SIZEOF_LONG $ac_cv_sizeof_long
5518 # The cast to long int works around a bug in the HP C Compiler
5519 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5520 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5521 # This bug is HP SR number 8606223364.
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
5523 $as_echo_n "checking size of void*... " >&6; }
5524 if ${ac_cv_sizeof_voidp+:} false; then :
5525 $as_echo_n "(cached) " >&6
5527 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then :
5530 if test "$ac_cv_type_voidp" = yes; then
5531 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5532 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5533 as_fn_error 77 "cannot compute sizeof (void*)
5534 See \`config.log' for more details" "$LINENO" 5; }
5536 ac_cv_sizeof_voidp=0
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
5542 $as_echo "$ac_cv_sizeof_voidp" >&6; }
5546 cat >>confdefs.h <<_ACEOF
5547 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
5551 ac_cv_char_data_model=""
5552 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_char"
5553 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_short"
5554 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_int"
5555 ac_cv_long_data_model=""
5556 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_int"
5557 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_long"
5558 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_voidp"
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking data model" >&5
5560 $as_echo_n "checking data model... " >&6; }
5561 case "$ac_cv_char_data_model/$ac_cv_long_data_model" in
5562 122/242) ac_cv_data_model="IP16" ; n="standard 16bit machine" ;;
5563 122/244) ac_cv_data_model="LP32" ; n="standard 32bit machine" ;;
5564 122/*) ac_cv_data_model="i16" ; n="unusual int16 model" ;;
5565 124/444) ac_cv_data_model="ILP32" ; n="standard 32bit unixish" ;;
5566 124/488) ac_cv_data_model="LP64" ; n="standard 64bit unixish" ;;
5567 124/448) ac_cv_data_model="LLP64" ; n="unusual 64bit unixish" ;;
5568 124/*) ac_cv_data_model="i32" ; n="unusual int32 model" ;;
5569 128/888) ac_cv_data_model="ILP64" ; n="unusual 64bit numeric" ;;
5570 128/*) ac_cv_data_model="i64" ; n="unusual int64 model" ;;
5571 222/*2) ac_cv_data_model="DSP16" ; n="strict 16bit dsptype" ;;
5572 333/*3) ac_cv_data_model="DSP24" ; n="strict 24bit dsptype" ;;
5573 444/*4) ac_cv_data_model="DSP32" ; n="strict 32bit dsptype" ;;
5574 666/*6) ac_cv_data_model="DSP48" ; n="strict 48bit dsptype" ;;
5575 888/*8) ac_cv_data_model="DSP64" ; n="strict 64bit dsptype" ;;
5576 222/*|333/*|444/*|666/*|888/*) :
5577 ac_cv_data_model="iDSP" ; n="unusual dsptype" ;;
5578 *) ac_cv_data_model="none" ; n="very unusual model" ;;
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_data_model ($ac_cv_long_data_model, $n)" >&5
5581 $as_echo "$ac_cv_data_model ($ac_cv_long_data_model, $n)" >&6; }
5585 if test "_$ac_cv_header_stdint_x" != "_" ; then
5586 ac_cv_header_stdint="$ac_cv_header_stdint_x"
5587 elif test "_$ac_cv_header_stdint_o" != "_" ; then
5588 ac_cv_header_stdint="$ac_cv_header_stdint_o"
5589 elif test "_$ac_cv_header_stdint_u" != "_" ; then
5590 ac_cv_header_stdint="$ac_cv_header_stdint_u"
5592 ac_cv_header_stdint="stddef.h"
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra inttypes in chosen header" >&5
5596 $as_echo_n "checking for extra inttypes in chosen header... " >&6; }
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($ac_cv_header_stdint)" >&5
5598 $as_echo "($ac_cv_header_stdint)" >&6; }
5599 unset ac_cv_type_int_least32_t
5600 unset ac_cv_type_int_fast32_t
5601 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <$ac_cv_header_stdint>
5603 if test "x$ac_cv_type_int_least32_t" = xyes; then :
5607 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include<$ac_cv_header_stdint>
5609 if test "x$ac_cv_type_int_fast32_t" = xyes; then :
5613 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "#include <$ac_cv_header_stdint>
5615 if test "x$ac_cv_type_intmax_t" = xyes; then :
5620 fi # shortcircut to system "stdint.h"
5621 # ------------------ PREPARE VARIABLES ------------------------------
5622 #if test "$GCC" = "yes" ; then
5623 #ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
5625 ac_cv_stdint_message="using $CC"
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&5
5629 $as_echo "make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&6; }
5631 # ----------------- DONE inttypes.h checks START header -------------
5632 ac_config_commands="$ac_config_commands $ac_stdint_h"
5637 # Checks for library functions.
5639 for ac_func in abort toascii vsnprintf
5641 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5642 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5643 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5644 cat >>confdefs.h <<_ACEOF
5645 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5651 for ac_func in strsep mergesort getcwd
5653 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5654 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5655 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5656 cat >>confdefs.h <<_ACEOF
5657 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5663 for ac_func in popen ftruncate
5665 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5666 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5667 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5668 cat >>confdefs.h <<_ACEOF
5669 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5675 # Look for the case-insensitive comparison functions
5676 for ac_func in strcasecmp strncasecmp stricmp _stricmp strcmpi
5678 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5679 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5680 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5681 cat >>confdefs.h <<_ACEOF
5682 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5690 # Check for gettext() and other i18n/l10n things.
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5695 $as_echo_n "checking whether NLS is requested... " >&6; }
5696 # Check whether --enable-nls was given.
5697 if test "${enable_nls+set}" = set; then :
5698 enableval=$enable_nls; USE_NLS=$enableval
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5704 $as_echo "$USE_NLS" >&6; }
5709 GETTEXT_MACRO_VERSION=0.17
5714 # Prepare PATH_SEPARATOR.
5715 # The user is always right.
5716 if test "${PATH_SEPARATOR+set}" != set; then
5717 echo "#! /bin/sh" >conf$$.sh
5718 echo "exit 0" >>conf$$.sh
5720 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5728 # Find out how to test for executable files. Don't use a zero-byte file,
5729 # as systems may use methods other than mode bits to determine executability.
5730 cat >conf$$.file <<_ASEOF
5734 chmod +x conf$$.file
5735 if test -x conf$$.file >/dev/null 2>&1; then
5736 ac_executable_p="test -x"
5738 ac_executable_p="test -f"
5742 # Extract the first word of "msgfmt", so it can be a program name with args.
5743 set dummy msgfmt; ac_word=$2
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5745 $as_echo_n "checking for $ac_word... " >&6; }
5746 if ${ac_cv_path_MSGFMT+:} false; then :
5747 $as_echo_n "(cached) " >&6
5751 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5754 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5755 for ac_dir in $PATH; do
5757 test -z "$ac_dir" && ac_dir=.
5758 for ac_exec_ext in '' $ac_executable_extensions; do
5759 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5760 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5761 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
5762 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5763 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5770 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5774 MSGFMT="$ac_cv_path_MSGFMT"
5775 if test "$MSGFMT" != ":"; then
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5777 $as_echo "$MSGFMT" >&6; }
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5780 $as_echo "no" >&6; }
5783 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5784 set dummy gmsgfmt; ac_word=$2
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5786 $as_echo_n "checking for $ac_word... " >&6; }
5787 if ${ac_cv_path_GMSGFMT+:} false; then :
5788 $as_echo_n "(cached) " >&6
5792 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5799 test -z "$as_dir" && as_dir=.
5800 for ac_exec_ext in '' $ac_executable_extensions; do
5801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5802 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5810 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5814 GMSGFMT=$ac_cv_path_GMSGFMT
5815 if test -n "$GMSGFMT"; then
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5817 $as_echo "$GMSGFMT" >&6; }
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5820 $as_echo "no" >&6; }
5825 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5826 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
5827 *) MSGFMT_015=$MSGFMT ;;
5830 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5831 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
5832 *) GMSGFMT_015=$GMSGFMT ;;
5837 # Prepare PATH_SEPARATOR.
5838 # The user is always right.
5839 if test "${PATH_SEPARATOR+set}" != set; then
5840 echo "#! /bin/sh" >conf$$.sh
5841 echo "exit 0" >>conf$$.sh
5843 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5851 # Find out how to test for executable files. Don't use a zero-byte file,
5852 # as systems may use methods other than mode bits to determine executability.
5853 cat >conf$$.file <<_ASEOF
5857 chmod +x conf$$.file
5858 if test -x conf$$.file >/dev/null 2>&1; then
5859 ac_executable_p="test -x"
5861 ac_executable_p="test -f"
5865 # Extract the first word of "xgettext", so it can be a program name with args.
5866 set dummy xgettext; ac_word=$2
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5868 $as_echo_n "checking for $ac_word... " >&6; }
5869 if ${ac_cv_path_XGETTEXT+:} false; then :
5870 $as_echo_n "(cached) " >&6
5874 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5877 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5878 for ac_dir in $PATH; do
5880 test -z "$ac_dir" && ac_dir=.
5881 for ac_exec_ext in '' $ac_executable_extensions; do
5882 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5883 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5884 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5885 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5886 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5893 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5897 XGETTEXT="$ac_cv_path_XGETTEXT"
5898 if test "$XGETTEXT" != ":"; then
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5900 $as_echo "$XGETTEXT" >&6; }
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5903 $as_echo "no" >&6; }
5908 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5909 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
5910 *) XGETTEXT_015=$XGETTEXT ;;
5915 # Prepare PATH_SEPARATOR.
5916 # The user is always right.
5917 if test "${PATH_SEPARATOR+set}" != set; then
5918 echo "#! /bin/sh" >conf$$.sh
5919 echo "exit 0" >>conf$$.sh
5921 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5929 # Find out how to test for executable files. Don't use a zero-byte file,
5930 # as systems may use methods other than mode bits to determine executability.
5931 cat >conf$$.file <<_ASEOF
5935 chmod +x conf$$.file
5936 if test -x conf$$.file >/dev/null 2>&1; then
5937 ac_executable_p="test -x"
5939 ac_executable_p="test -f"
5943 # Extract the first word of "msgmerge", so it can be a program name with args.
5944 set dummy msgmerge; ac_word=$2
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5946 $as_echo_n "checking for $ac_word... " >&6; }
5947 if ${ac_cv_path_MSGMERGE+:} false; then :
5948 $as_echo_n "(cached) " >&6
5952 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5955 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5956 for ac_dir in $PATH; do
5958 test -z "$ac_dir" && ac_dir=.
5959 for ac_exec_ext in '' $ac_executable_extensions; do
5960 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5961 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5962 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
5963 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5970 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5974 MSGMERGE="$ac_cv_path_MSGMERGE"
5975 if test "$MSGMERGE" != ":"; then
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
5977 $as_echo "$MSGMERGE" >&6; }
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5980 $as_echo "no" >&6; }
5984 test -n "$localedir" || localedir='${datadir}/locale'
5987 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
5990 ac_config_commands="$ac_config_commands po-directories"
5994 if test "X$prefix" = "XNONE"; then
5995 acl_final_prefix="$ac_default_prefix"
5997 acl_final_prefix="$prefix"
5999 if test "X$exec_prefix" = "XNONE"; then
6000 acl_final_exec_prefix='${prefix}'
6002 acl_final_exec_prefix="$exec_prefix"
6004 acl_save_prefix="$prefix"
6005 prefix="$acl_final_prefix"
6006 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6007 prefix="$acl_save_prefix"
6009 # Make sure we can run config.sub.
6010 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6011 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6014 $as_echo_n "checking build system type... " >&6; }
6015 if ${ac_cv_build+:} false; then :
6016 $as_echo_n "(cached) " >&6
6018 ac_build_alias=$build_alias
6019 test "x$ac_build_alias" = x &&
6020 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6021 test "x$ac_build_alias" = x &&
6022 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6023 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6024 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6028 $as_echo "$ac_cv_build" >&6; }
6029 case $ac_cv_build in
6031 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6034 ac_save_IFS=$IFS; IFS='-'
6040 # Remember, the first character of IFS is used to create $*,
6041 # except with old shells:
6044 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6048 $as_echo_n "checking host system type... " >&6; }
6049 if ${ac_cv_host+:} false; then :
6050 $as_echo_n "(cached) " >&6
6052 if test "x$host_alias" = x; then
6053 ac_cv_host=$ac_cv_build
6055 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6056 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6061 $as_echo "$ac_cv_host" >&6; }
6064 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6067 ac_save_IFS=$IFS; IFS='-'
6073 # Remember, the first character of IFS is used to create $*,
6074 # except with old shells:
6077 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6081 # Check whether --with-gnu-ld was given.
6082 if test "${with_gnu_ld+set}" = set; then :
6083 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6088 # Prepare PATH_SEPARATOR.
6089 # The user is always right.
6090 if test "${PATH_SEPARATOR+set}" != set; then
6091 echo "#! /bin/sh" >conf$$.sh
6092 echo "exit 0" >>conf$$.sh
6094 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6102 if test "$GCC" = yes; then
6103 # Check if gcc -print-prog-name=ld gives a path.
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
6105 $as_echo_n "checking for ld used by GCC... " >&6; }
6108 # gcc leaves a trailing carriage return which upsets mingw
6109 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6111 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6114 # Accept absolute paths.
6115 [\\/]* | [A-Za-z]:[\\/]*)
6116 re_direlt='/[^/][^/]*/\.\./'
6117 # Canonicalize the path of ld
6118 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6119 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6120 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6122 test -z "$LD" && LD="$ac_prog"
6125 # If it fails, then pretend we aren't using GCC.
6129 # If it is relative, then search for the first ld in PATH.
6133 elif test "$with_gnu_ld" = yes; then
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6135 $as_echo_n "checking for GNU ld... " >&6; }
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6138 $as_echo_n "checking for non-GNU ld... " >&6; }
6140 if ${acl_cv_path_LD+:} false; then :
6141 $as_echo_n "(cached) " >&6
6143 if test -z "$LD"; then
6144 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6145 for ac_dir in $PATH; do
6146 test -z "$ac_dir" && ac_dir=.
6147 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6148 acl_cv_path_LD="$ac_dir/$ac_prog"
6149 # Check to see if the program is GNU ld. I'd rather use --version,
6150 # but apparently some GNU ld's only accept -v.
6151 # Break only if it was the GNU/non-GNU ld that we prefer.
6152 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
6153 *GNU* | *'with BFD'*)
6154 test "$with_gnu_ld" != no && break ;;
6156 test "$with_gnu_ld" != yes && break ;;
6162 acl_cv_path_LD="$LD" # Let the user override the test with a path.
6166 LD="$acl_cv_path_LD"
6167 if test -n "$LD"; then
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6169 $as_echo "$LD" >&6; }
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6172 $as_echo "no" >&6; }
6174 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6176 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6177 if ${acl_cv_prog_gnu_ld+:} false; then :
6178 $as_echo_n "(cached) " >&6
6180 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6181 case `$LD -v 2>&1 </dev/null` in
6182 *GNU* | *'with BFD'*)
6183 acl_cv_prog_gnu_ld=yes ;;
6185 acl_cv_prog_gnu_ld=no ;;
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
6189 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
6190 with_gnu_ld=$acl_cv_prog_gnu_ld
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
6196 $as_echo_n "checking for shared library run path origin... " >&6; }
6197 if ${acl_cv_rpath+:} false; then :
6198 $as_echo_n "(cached) " >&6
6201 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6202 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
6209 $as_echo "$acl_cv_rpath" >&6; }
6211 acl_libext="$acl_cv_libext"
6212 acl_shlibext="$acl_cv_shlibext"
6213 acl_libname_spec="$acl_cv_libname_spec"
6214 acl_library_names_spec="$acl_cv_library_names_spec"
6215 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6216 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6217 acl_hardcode_direct="$acl_cv_hardcode_direct"
6218 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
6219 # Check whether --enable-rpath was given.
6220 if test "${enable_rpath+set}" = set; then :
6221 enableval=$enable_rpath; :
6229 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
6230 if test -n "$searchpath"; then
6231 acl_save_IFS="${IFS= }"; IFS=":"
6232 for searchdir in $searchpath; do
6233 if test -d "$searchdir"; then
6234 case "$searchdir" in
6235 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
6236 *) searchdir=`cd "$searchdir" && pwd`
6237 case "$searchdir" in
6238 */lib64 ) acl_libdirstem=lib64 ;;
6256 acl_save_prefix="$prefix"
6257 prefix="$acl_final_prefix"
6258 acl_save_exec_prefix="$exec_prefix"
6259 exec_prefix="$acl_final_exec_prefix"
6261 eval additional_includedir=\"$includedir\"
6262 eval additional_libdir=\"$libdir\"
6264 exec_prefix="$acl_save_exec_prefix"
6265 prefix="$acl_save_prefix"
6268 # Check whether --with-libiconv-prefix was given.
6269 if test "${with_libiconv_prefix+set}" = set; then :
6270 withval=$with_libiconv_prefix;
6271 if test "X$withval" = "Xno"; then
6274 if test "X$withval" = "X"; then
6276 acl_save_prefix="$prefix"
6277 prefix="$acl_final_prefix"
6278 acl_save_exec_prefix="$exec_prefix"
6279 exec_prefix="$acl_final_exec_prefix"
6281 eval additional_includedir=\"$includedir\"
6282 eval additional_libdir=\"$libdir\"
6284 exec_prefix="$acl_save_exec_prefix"
6285 prefix="$acl_save_prefix"
6288 additional_includedir="$withval/include"
6289 additional_libdir="$withval/$acl_libdirstem"
6301 names_already_handled=
6302 names_next_round='iconv '
6303 while test -n "$names_next_round"; do
6304 names_this_round="$names_next_round"
6306 for name in $names_this_round; do
6308 for n in $names_already_handled; do
6309 if test "$n" = "$name"; then
6314 if test -z "$already_handled"; then
6315 names_already_handled="$names_already_handled $name"
6316 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6317 eval value=\"\$HAVE_LIB$uppername\"
6318 if test -n "$value"; then
6319 if test "$value" = yes; then
6320 eval value=\"\$LIB$uppername\"
6321 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6322 eval value=\"\$LTLIB$uppername\"
6323 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6332 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
6333 if test -n "$acl_shlibext"; then
6334 shrext=".$acl_shlibext" # typically: shrext=.so
6338 if test $use_additional = yes; then
6339 dir="$additional_libdir"
6340 if test -n "$acl_shlibext"; then
6341 if test -f "$dir/$libname$shrext"; then
6343 found_so="$dir/$libname$shrext"
6345 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6346 ver=`(cd "$dir" && \
6347 for f in "$libname$shrext".*; do echo "$f"; done \
6348 | sed -e "s,^$libname$shrext\\\\.,," \
6349 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6350 | sed 1q ) 2>/dev/null`
6351 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6353 found_so="$dir/$libname$shrext.$ver"
6356 eval library_names=\"$acl_library_names_spec\"
6357 for f in $library_names; do
6358 if test -f "$dir/$f"; then
6367 if test "X$found_dir" = "X"; then
6368 if test -f "$dir/$libname.$acl_libext"; then
6370 found_a="$dir/$libname.$acl_libext"
6373 if test "X$found_dir" != "X"; then
6374 if test -f "$dir/$libname.la"; then
6375 found_la="$dir/$libname.la"
6379 if test "X$found_dir" = "X"; then
6380 for x in $LDFLAGS $LTLIBICONV; do
6382 acl_save_prefix="$prefix"
6383 prefix="$acl_final_prefix"
6384 acl_save_exec_prefix="$exec_prefix"
6385 exec_prefix="$acl_final_exec_prefix"
6387 exec_prefix="$acl_save_exec_prefix"
6388 prefix="$acl_save_prefix"
6392 dir=`echo "X$x" | sed -e 's/^X-L//'`
6393 if test -n "$acl_shlibext"; then
6394 if test -f "$dir/$libname$shrext"; then
6396 found_so="$dir/$libname$shrext"
6398 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6399 ver=`(cd "$dir" && \
6400 for f in "$libname$shrext".*; do echo "$f"; done \
6401 | sed -e "s,^$libname$shrext\\\\.,," \
6402 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6403 | sed 1q ) 2>/dev/null`
6404 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6406 found_so="$dir/$libname$shrext.$ver"
6409 eval library_names=\"$acl_library_names_spec\"
6410 for f in $library_names; do
6411 if test -f "$dir/$f"; then
6420 if test "X$found_dir" = "X"; then
6421 if test -f "$dir/$libname.$acl_libext"; then
6423 found_a="$dir/$libname.$acl_libext"
6426 if test "X$found_dir" != "X"; then
6427 if test -f "$dir/$libname.la"; then
6428 found_la="$dir/$libname.la"
6433 if test "X$found_dir" != "X"; then
6438 if test "X$found_dir" != "X"; then
6439 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6440 if test "X$found_so" != "X"; then
6441 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
6442 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6445 for x in $ltrpathdirs; do
6446 if test "X$x" = "X$found_dir"; then
6451 if test -z "$haveit"; then
6452 ltrpathdirs="$ltrpathdirs $found_dir"
6454 if test "$acl_hardcode_direct" = yes; then
6455 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6457 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
6458 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6460 for x in $rpathdirs; do
6461 if test "X$x" = "X$found_dir"; then
6466 if test -z "$haveit"; then
6467 rpathdirs="$rpathdirs $found_dir"
6471 for x in $LDFLAGS $LIBICONV; do
6473 acl_save_prefix="$prefix"
6474 prefix="$acl_final_prefix"
6475 acl_save_exec_prefix="$exec_prefix"
6476 exec_prefix="$acl_final_exec_prefix"
6478 exec_prefix="$acl_save_exec_prefix"
6479 prefix="$acl_save_prefix"
6481 if test "X$x" = "X-L$found_dir"; then
6486 if test -z "$haveit"; then
6487 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6489 if test "$acl_hardcode_minus_L" != no; then
6490 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6492 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6498 if test "X$found_a" != "X"; then
6499 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6501 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6504 additional_includedir=
6505 case "$found_dir" in
6506 */$acl_libdirstem | */$acl_libdirstem/)
6507 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6508 LIBICONV_PREFIX="$basedir"
6509 additional_includedir="$basedir/include"
6512 if test "X$additional_includedir" != "X"; then
6513 if test "X$additional_includedir" != "X/usr/include"; then
6515 if test "X$additional_includedir" = "X/usr/local/include"; then
6516 if test -n "$GCC"; then
6518 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6522 if test -z "$haveit"; then
6523 for x in $CPPFLAGS $INCICONV; do
6525 acl_save_prefix="$prefix"
6526 prefix="$acl_final_prefix"
6527 acl_save_exec_prefix="$exec_prefix"
6528 exec_prefix="$acl_final_exec_prefix"
6530 exec_prefix="$acl_save_exec_prefix"
6531 prefix="$acl_save_prefix"
6533 if test "X$x" = "X-I$additional_includedir"; then
6538 if test -z "$haveit"; then
6539 if test -d "$additional_includedir"; then
6540 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6546 if test -n "$found_la"; then
6547 save_libdir="$libdir"
6549 */* | *\\*) . "$found_la" ;;
6550 *) . "./$found_la" ;;
6552 libdir="$save_libdir"
6553 for dep in $dependency_libs; do
6556 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6557 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
6559 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
6560 if test -n "$GCC"; then
6562 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6566 if test -z "$haveit"; then
6568 for x in $LDFLAGS $LIBICONV; do
6570 acl_save_prefix="$prefix"
6571 prefix="$acl_final_prefix"
6572 acl_save_exec_prefix="$exec_prefix"
6573 exec_prefix="$acl_final_exec_prefix"
6575 exec_prefix="$acl_save_exec_prefix"
6576 prefix="$acl_save_prefix"
6578 if test "X$x" = "X-L$additional_libdir"; then
6583 if test -z "$haveit"; then
6584 if test -d "$additional_libdir"; then
6585 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6589 for x in $LDFLAGS $LTLIBICONV; do
6591 acl_save_prefix="$prefix"
6592 prefix="$acl_final_prefix"
6593 acl_save_exec_prefix="$exec_prefix"
6594 exec_prefix="$acl_final_exec_prefix"
6596 exec_prefix="$acl_save_exec_prefix"
6597 prefix="$acl_save_prefix"
6599 if test "X$x" = "X-L$additional_libdir"; then
6604 if test -z "$haveit"; then
6605 if test -d "$additional_libdir"; then
6606 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6613 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6614 if test "$enable_rpath" != no; then
6616 for x in $rpathdirs; do
6617 if test "X$x" = "X$dir"; then
6622 if test -z "$haveit"; then
6623 rpathdirs="$rpathdirs $dir"
6626 for x in $ltrpathdirs; do
6627 if test "X$x" = "X$dir"; then
6632 if test -z "$haveit"; then
6633 ltrpathdirs="$ltrpathdirs $dir"
6638 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6641 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6644 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6645 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6651 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6652 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6658 if test "X$rpathdirs" != "X"; then
6659 if test -n "$acl_hardcode_libdir_separator"; then
6661 for found_dir in $rpathdirs; do
6662 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6664 acl_save_libdir="$libdir"
6666 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6667 libdir="$acl_save_libdir"
6668 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6670 for found_dir in $rpathdirs; do
6671 acl_save_libdir="$libdir"
6673 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6674 libdir="$acl_save_libdir"
6675 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6679 if test "X$ltrpathdirs" != "X"; then
6680 for found_dir in $ltrpathdirs; do
6681 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
6710 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
6711 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
6712 $as_echo_n "(cached) " >&6
6714 gt_save_LIBS="$LIBS"
6715 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
6716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6717 /* end confdefs.h. */
6718 #include <CoreFoundation/CFPreferences.h>
6722 CFPreferencesCopyAppValue(NULL, NULL)
6727 if ac_fn_c_try_link "$LINENO"; then :
6728 gt_cv_func_CFPreferencesCopyAppValue=yes
6730 gt_cv_func_CFPreferencesCopyAppValue=no
6732 rm -f core conftest.err conftest.$ac_objext \
6733 conftest$ac_exeext conftest.$ac_ext
6734 LIBS="$gt_save_LIBS"
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6737 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6738 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6740 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
6744 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
6745 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
6746 $as_echo_n "(cached) " >&6
6748 gt_save_LIBS="$LIBS"
6749 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
6750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6751 /* end confdefs.h. */
6752 #include <CoreFoundation/CFLocale.h>
6756 CFLocaleCopyCurrent();
6761 if ac_fn_c_try_link "$LINENO"; then :
6762 gt_cv_func_CFLocaleCopyCurrent=yes
6764 gt_cv_func_CFLocaleCopyCurrent=no
6766 rm -f core conftest.err conftest.$ac_objext \
6767 conftest$ac_exeext conftest.$ac_ext
6768 LIBS="$gt_save_LIBS"
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6771 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
6772 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6774 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
6778 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6779 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6791 case " $gt_needs " in
6792 *" need-formatstring-macros "*) gt_api_version=3 ;;
6793 *" need-ngettext "*) gt_api_version=2 ;;
6794 *) gt_api_version=1 ;;
6796 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
6797 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
6799 if test "$USE_NLS" = "yes"; then
6800 gt_use_preinstalled_gnugettext=no
6803 if test $gt_api_version -ge 3; then
6804 gt_revision_test_code='
6805 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
6806 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
6808 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
6811 gt_revision_test_code=
6813 if test $gt_api_version -ge 2; then
6814 gt_expression_test_code=' + * ngettext ("", "", 0)'
6816 gt_expression_test_code=
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
6820 $as_echo_n "checking for GNU gettext in libc... " >&6; }
6821 if eval \${$gt_func_gnugettext_libc+:} false; then :
6822 $as_echo_n "(cached) " >&6
6824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6825 /* end confdefs.h. */
6826 #include <libintl.h>
6827 $gt_revision_test_code
6828 extern int _nl_msg_cat_cntr;
6829 extern int *_nl_domain_bindings;
6833 bindtextdomain ("", "");
6834 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
6839 if ac_fn_c_try_link "$LINENO"; then :
6840 eval "$gt_func_gnugettext_libc=yes"
6842 eval "$gt_func_gnugettext_libc=no"
6844 rm -f core conftest.err conftest.$ac_objext \
6845 conftest$ac_exeext conftest.$ac_ext
6847 eval ac_res=\$$gt_func_gnugettext_libc
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6849 $as_echo "$ac_res" >&6; }
6851 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
6857 am_save_CPPFLAGS="$CPPFLAGS"
6859 for element in $INCICONV; do
6861 for x in $CPPFLAGS; do
6863 acl_save_prefix="$prefix"
6864 prefix="$acl_final_prefix"
6865 acl_save_exec_prefix="$exec_prefix"
6866 exec_prefix="$acl_final_exec_prefix"
6868 exec_prefix="$acl_save_exec_prefix"
6869 prefix="$acl_save_prefix"
6871 if test "X$x" = "X$element"; then
6876 if test -z "$haveit"; then
6877 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
6883 $as_echo_n "checking for iconv... " >&6; }
6884 if ${am_cv_func_iconv+:} false; then :
6885 $as_echo_n "(cached) " >&6
6888 am_cv_func_iconv="no, consider installing GNU libiconv"
6890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6891 /* end confdefs.h. */
6897 iconv_t cd = iconv_open("","");
6898 iconv(cd,NULL,NULL,NULL,NULL);
6904 if ac_fn_c_try_link "$LINENO"; then :
6905 am_cv_func_iconv=yes
6907 rm -f core conftest.err conftest.$ac_objext \
6908 conftest$ac_exeext conftest.$ac_ext
6909 if test "$am_cv_func_iconv" != yes; then
6910 am_save_LIBS="$LIBS"
6911 LIBS="$LIBS $LIBICONV"
6912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6913 /* end confdefs.h. */
6919 iconv_t cd = iconv_open("","");
6920 iconv(cd,NULL,NULL,NULL,NULL);
6926 if ac_fn_c_try_link "$LINENO"; then :
6928 am_cv_func_iconv=yes
6930 rm -f core conftest.err conftest.$ac_objext \
6931 conftest$ac_exeext conftest.$ac_ext
6932 LIBS="$am_save_LIBS"
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
6937 $as_echo "$am_cv_func_iconv" >&6; }
6938 if test "$am_cv_func_iconv" = yes; then
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
6940 $as_echo_n "checking for working iconv... " >&6; }
6941 if ${am_cv_func_iconv_works+:} false; then :
6942 $as_echo_n "(cached) " >&6
6945 am_save_LIBS="$LIBS"
6946 if test $am_cv_lib_iconv = yes; then
6947 LIBS="$LIBS $LIBICONV"
6949 if test "$cross_compiling" = yes; then :
6951 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
6952 *) am_cv_func_iconv_works="guessing yes" ;;
6955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6956 /* end confdefs.h. */
6962 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
6965 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
6966 if (cd_utf8_to_88591 != (iconv_t)(-1))
6968 static const char input[] = "\342\202\254"; /* EURO SIGN */
6970 const char *inptr = input;
6971 size_t inbytesleft = strlen (input);
6973 size_t outbytesleft = sizeof (buf);
6974 size_t res = iconv (cd_utf8_to_88591,
6975 (char **) &inptr, &inbytesleft,
6976 &outptr, &outbytesleft);
6981 #if 0 /* This bug could be worked around by the caller. */
6982 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
6984 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
6985 if (cd_88591_to_utf8 != (iconv_t)(-1))
6987 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
6989 const char *inptr = input;
6990 size_t inbytesleft = strlen (input);
6992 size_t outbytesleft = sizeof (buf);
6993 size_t res = iconv (cd_88591_to_utf8,
6994 (char **) &inptr, &inbytesleft,
6995 &outptr, &outbytesleft);
7001 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
7003 if (/* Try standardized names. */
7004 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
7005 /* Try IRIX, OSF/1 names. */
7006 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
7007 /* Try AIX names. */
7008 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
7009 /* Try HP-UX names. */
7010 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
7015 if ac_fn_c_try_run "$LINENO"; then :
7016 am_cv_func_iconv_works=yes
7018 am_cv_func_iconv_works=no
7020 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7021 conftest.$ac_objext conftest.beam conftest.$ac_ext
7024 LIBS="$am_save_LIBS"
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
7028 $as_echo "$am_cv_func_iconv_works" >&6; }
7029 case "$am_cv_func_iconv_works" in
7030 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
7031 *) am_func_iconv=yes ;;
7034 am_func_iconv=no am_cv_lib_iconv=no
7036 if test "$am_func_iconv" = yes; then
7038 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
7041 if test "$am_cv_lib_iconv" = yes; then
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
7043 $as_echo_n "checking how to link with libiconv... " >&6; }
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
7045 $as_echo "$LIBICONV" >&6; }
7047 CPPFLAGS="$am_save_CPPFLAGS"
7061 acl_save_prefix="$prefix"
7062 prefix="$acl_final_prefix"
7063 acl_save_exec_prefix="$exec_prefix"
7064 exec_prefix="$acl_final_exec_prefix"
7066 eval additional_includedir=\"$includedir\"
7067 eval additional_libdir=\"$libdir\"
7069 exec_prefix="$acl_save_exec_prefix"
7070 prefix="$acl_save_prefix"
7073 # Check whether --with-libintl-prefix was given.
7074 if test "${with_libintl_prefix+set}" = set; then :
7075 withval=$with_libintl_prefix;
7076 if test "X$withval" = "Xno"; then
7079 if test "X$withval" = "X"; then
7081 acl_save_prefix="$prefix"
7082 prefix="$acl_final_prefix"
7083 acl_save_exec_prefix="$exec_prefix"
7084 exec_prefix="$acl_final_exec_prefix"
7086 eval additional_includedir=\"$includedir\"
7087 eval additional_libdir=\"$libdir\"
7089 exec_prefix="$acl_save_exec_prefix"
7090 prefix="$acl_save_prefix"
7093 additional_includedir="$withval/include"
7094 additional_libdir="$withval/$acl_libdirstem"
7106 names_already_handled=
7107 names_next_round='intl '
7108 while test -n "$names_next_round"; do
7109 names_this_round="$names_next_round"
7111 for name in $names_this_round; do
7113 for n in $names_already_handled; do
7114 if test "$n" = "$name"; then
7119 if test -z "$already_handled"; then
7120 names_already_handled="$names_already_handled $name"
7121 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7122 eval value=\"\$HAVE_LIB$uppername\"
7123 if test -n "$value"; then
7124 if test "$value" = yes; then
7125 eval value=\"\$LIB$uppername\"
7126 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
7127 eval value=\"\$LTLIB$uppername\"
7128 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
7137 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
7138 if test -n "$acl_shlibext"; then
7139 shrext=".$acl_shlibext" # typically: shrext=.so
7143 if test $use_additional = yes; then
7144 dir="$additional_libdir"
7145 if test -n "$acl_shlibext"; then
7146 if test -f "$dir/$libname$shrext"; then
7148 found_so="$dir/$libname$shrext"
7150 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7151 ver=`(cd "$dir" && \
7152 for f in "$libname$shrext".*; do echo "$f"; done \
7153 | sed -e "s,^$libname$shrext\\\\.,," \
7154 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7155 | sed 1q ) 2>/dev/null`
7156 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7158 found_so="$dir/$libname$shrext.$ver"
7161 eval library_names=\"$acl_library_names_spec\"
7162 for f in $library_names; do
7163 if test -f "$dir/$f"; then
7172 if test "X$found_dir" = "X"; then
7173 if test -f "$dir/$libname.$acl_libext"; then
7175 found_a="$dir/$libname.$acl_libext"
7178 if test "X$found_dir" != "X"; then
7179 if test -f "$dir/$libname.la"; then
7180 found_la="$dir/$libname.la"
7184 if test "X$found_dir" = "X"; then
7185 for x in $LDFLAGS $LTLIBINTL; do
7187 acl_save_prefix="$prefix"
7188 prefix="$acl_final_prefix"
7189 acl_save_exec_prefix="$exec_prefix"
7190 exec_prefix="$acl_final_exec_prefix"
7192 exec_prefix="$acl_save_exec_prefix"
7193 prefix="$acl_save_prefix"
7197 dir=`echo "X$x" | sed -e 's/^X-L//'`
7198 if test -n "$acl_shlibext"; then
7199 if test -f "$dir/$libname$shrext"; then
7201 found_so="$dir/$libname$shrext"
7203 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7204 ver=`(cd "$dir" && \
7205 for f in "$libname$shrext".*; do echo "$f"; done \
7206 | sed -e "s,^$libname$shrext\\\\.,," \
7207 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7208 | sed 1q ) 2>/dev/null`
7209 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7211 found_so="$dir/$libname$shrext.$ver"
7214 eval library_names=\"$acl_library_names_spec\"
7215 for f in $library_names; do
7216 if test -f "$dir/$f"; then
7225 if test "X$found_dir" = "X"; then
7226 if test -f "$dir/$libname.$acl_libext"; then
7228 found_a="$dir/$libname.$acl_libext"
7231 if test "X$found_dir" != "X"; then
7232 if test -f "$dir/$libname.la"; then
7233 found_la="$dir/$libname.la"
7238 if test "X$found_dir" != "X"; then
7243 if test "X$found_dir" != "X"; then
7244 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
7245 if test "X$found_so" != "X"; then
7246 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
7247 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7250 for x in $ltrpathdirs; do
7251 if test "X$x" = "X$found_dir"; then
7256 if test -z "$haveit"; then
7257 ltrpathdirs="$ltrpathdirs $found_dir"
7259 if test "$acl_hardcode_direct" = yes; then
7260 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7262 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
7263 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7265 for x in $rpathdirs; do
7266 if test "X$x" = "X$found_dir"; then
7271 if test -z "$haveit"; then
7272 rpathdirs="$rpathdirs $found_dir"
7276 for x in $LDFLAGS $LIBINTL; do
7278 acl_save_prefix="$prefix"
7279 prefix="$acl_final_prefix"
7280 acl_save_exec_prefix="$exec_prefix"
7281 exec_prefix="$acl_final_exec_prefix"
7283 exec_prefix="$acl_save_exec_prefix"
7284 prefix="$acl_save_prefix"
7286 if test "X$x" = "X-L$found_dir"; then
7291 if test -z "$haveit"; then
7292 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
7294 if test "$acl_hardcode_minus_L" != no; then
7295 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7297 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7303 if test "X$found_a" != "X"; then
7304 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
7306 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
7309 additional_includedir=
7310 case "$found_dir" in
7311 */$acl_libdirstem | */$acl_libdirstem/)
7312 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
7313 LIBINTL_PREFIX="$basedir"
7314 additional_includedir="$basedir/include"
7317 if test "X$additional_includedir" != "X"; then
7318 if test "X$additional_includedir" != "X/usr/include"; then
7320 if test "X$additional_includedir" = "X/usr/local/include"; then
7321 if test -n "$GCC"; then
7323 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7327 if test -z "$haveit"; then
7328 for x in $CPPFLAGS $INCINTL; do
7330 acl_save_prefix="$prefix"
7331 prefix="$acl_final_prefix"
7332 acl_save_exec_prefix="$exec_prefix"
7333 exec_prefix="$acl_final_exec_prefix"
7335 exec_prefix="$acl_save_exec_prefix"
7336 prefix="$acl_save_prefix"
7338 if test "X$x" = "X-I$additional_includedir"; then
7343 if test -z "$haveit"; then
7344 if test -d "$additional_includedir"; then
7345 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7351 if test -n "$found_la"; then
7352 save_libdir="$libdir"
7354 */* | *\\*) . "$found_la" ;;
7355 *) . "./$found_la" ;;
7357 libdir="$save_libdir"
7358 for dep in $dependency_libs; do
7361 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7362 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
7364 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
7365 if test -n "$GCC"; then
7367 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7371 if test -z "$haveit"; then
7373 for x in $LDFLAGS $LIBINTL; do
7375 acl_save_prefix="$prefix"
7376 prefix="$acl_final_prefix"
7377 acl_save_exec_prefix="$exec_prefix"
7378 exec_prefix="$acl_final_exec_prefix"
7380 exec_prefix="$acl_save_exec_prefix"
7381 prefix="$acl_save_prefix"
7383 if test "X$x" = "X-L$additional_libdir"; then
7388 if test -z "$haveit"; then
7389 if test -d "$additional_libdir"; then
7390 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7394 for x in $LDFLAGS $LTLIBINTL; do
7396 acl_save_prefix="$prefix"
7397 prefix="$acl_final_prefix"
7398 acl_save_exec_prefix="$exec_prefix"
7399 exec_prefix="$acl_final_exec_prefix"
7401 exec_prefix="$acl_save_exec_prefix"
7402 prefix="$acl_save_prefix"
7404 if test "X$x" = "X-L$additional_libdir"; then
7409 if test -z "$haveit"; then
7410 if test -d "$additional_libdir"; then
7411 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7418 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7419 if test "$enable_rpath" != no; then
7421 for x in $rpathdirs; do
7422 if test "X$x" = "X$dir"; then
7427 if test -z "$haveit"; then
7428 rpathdirs="$rpathdirs $dir"
7431 for x in $ltrpathdirs; do
7432 if test "X$x" = "X$dir"; then
7437 if test -z "$haveit"; then
7438 ltrpathdirs="$ltrpathdirs $dir"
7443 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7446 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7449 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7450 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7456 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7457 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7463 if test "X$rpathdirs" != "X"; then
7464 if test -n "$acl_hardcode_libdir_separator"; then
7466 for found_dir in $rpathdirs; do
7467 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
7469 acl_save_libdir="$libdir"
7471 eval flag=\"$acl_hardcode_libdir_flag_spec\"
7472 libdir="$acl_save_libdir"
7473 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7475 for found_dir in $rpathdirs; do
7476 acl_save_libdir="$libdir"
7478 eval flag=\"$acl_hardcode_libdir_flag_spec\"
7479 libdir="$acl_save_libdir"
7480 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7484 if test "X$ltrpathdirs" != "X"; then
7485 for found_dir in $ltrpathdirs; do
7486 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
7491 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
7492 if eval \${$gt_func_gnugettext_libintl+:} false; then :
7493 $as_echo_n "(cached) " >&6
7495 gt_save_CPPFLAGS="$CPPFLAGS"
7496 CPPFLAGS="$CPPFLAGS $INCINTL"
7497 gt_save_LIBS="$LIBS"
7498 LIBS="$LIBS $LIBINTL"
7499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7500 /* end confdefs.h. */
7501 #include <libintl.h>
7502 $gt_revision_test_code
7503 extern int _nl_msg_cat_cntr;
7508 const char *_nl_expand_alias (const char *);
7512 bindtextdomain ("", "");
7513 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7518 if ac_fn_c_try_link "$LINENO"; then :
7519 eval "$gt_func_gnugettext_libintl=yes"
7521 eval "$gt_func_gnugettext_libintl=no"
7523 rm -f core conftest.err conftest.$ac_objext \
7524 conftest$ac_exeext conftest.$ac_ext
7525 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
7526 LIBS="$LIBS $LIBICONV"
7527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7528 /* end confdefs.h. */
7529 #include <libintl.h>
7530 $gt_revision_test_code
7531 extern int _nl_msg_cat_cntr;
7536 const char *_nl_expand_alias (const char *);
7540 bindtextdomain ("", "");
7541 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7546 if ac_fn_c_try_link "$LINENO"; then :
7547 LIBINTL="$LIBINTL $LIBICONV"
7548 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7549 eval "$gt_func_gnugettext_libintl=yes"
7552 rm -f core conftest.err conftest.$ac_objext \
7553 conftest$ac_exeext conftest.$ac_ext
7555 CPPFLAGS="$gt_save_CPPFLAGS"
7556 LIBS="$gt_save_LIBS"
7558 eval ac_res=\$$gt_func_gnugettext_libintl
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7560 $as_echo "$ac_res" >&6; }
7563 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
7564 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
7565 && test "$PACKAGE" != gettext-runtime \
7566 && test "$PACKAGE" != gettext-tools; }; then
7567 gt_use_preinstalled_gnugettext=yes
7576 if test -n "$INTL_MACOSX_LIBS"; then
7577 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7578 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7579 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
7580 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7584 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7585 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7587 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
7595 $as_echo_n "checking whether to use NLS... " >&6; }
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
7597 $as_echo "$USE_NLS" >&6; }
7598 if test "$USE_NLS" = "yes"; then
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
7600 $as_echo_n "checking where the gettext function comes from... " >&6; }
7601 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7602 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
7603 gt_source="external libintl"
7608 gt_source="included intl directory"
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
7611 $as_echo "$gt_source" >&6; }
7614 if test "$USE_NLS" = "yes"; then
7616 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7617 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
7619 $as_echo_n "checking how to link with libintl... " >&6; }
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
7621 $as_echo "$LIBINTL" >&6; }
7623 for element in $INCINTL; do
7625 for x in $CPPFLAGS; do
7627 acl_save_prefix="$prefix"
7628 prefix="$acl_final_prefix"
7629 acl_save_exec_prefix="$exec_prefix"
7630 exec_prefix="$acl_final_exec_prefix"
7632 exec_prefix="$acl_save_exec_prefix"
7633 prefix="$acl_save_prefix"
7635 if test "X$x" = "X$element"; then
7640 if test -z "$haveit"; then
7641 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7648 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
7651 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
7667 # autoheader templates for AM_GNU_GETTEXT checks.
7674 # Check for GNU C Library
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU C Library" >&5
7677 $as_echo_n "checking for GNU C Library... " >&6; }
7678 if ${yasm_cv_header_gnulib+:} false; then :
7679 $as_echo_n "(cached) " >&6
7681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7682 /* end confdefs.h. */
7683 #include <features.h>
7684 #ifdef __GNU_LIBRARY__
7689 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7690 $EGREP "gnulib" >/dev/null 2>&1; then :
7691 yasm_cv_header_gnulib=yes
7693 yasm_cv_header_gnulib=no
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $yasm_cv_header_gnulib" >&5
7699 $as_echo "$yasm_cv_header_gnulib" >&6; }
7700 if test "$yasm_cv_header_gnulib" = yes; then
7701 $as_echo "#define HAVE_GNU_C_LIBRARY 1" >>confdefs.h
7705 # Force x86 architecture only for now.
7710 # Require things for --enable-maintainer-mode option.
7711 if test "$USE_MAINTAINER_MODE" = "yes"; then
7713 if test "$debugging" != "no"; then
7717 # Enable more warnings
7718 if test "$GCC" = "yes"; then
7719 MORE_CFLAGS="$MORE_CFLAGS -W"
7720 MORE_CFLAGS="$MORE_CFLAGS -Waggregate-return"
7721 MORE_CFLAGS="$MORE_CFLAGS -Wbad-function-cast"
7722 MORE_CFLAGS="$MORE_CFLAGS -Wcast-align"
7723 MORE_CFLAGS="$MORE_CFLAGS -Wcast-qual"
7724 MORE_CFLAGS="$MORE_CFLAGS -Wchar-subscripts"
7725 # MORE_CFLAGS="$MORE_CFLAGS -Wconversion"
7726 # MORE_CFLAGS="$MORE_CFLAGS -Wdeclaration-after-statement"
7727 # MORE_CFLAGS="$MORE_CFLAGS -Wendif-labels"
7728 MORE_CFLAGS="$MORE_CFLAGS -Winline"
7729 MORE_CFLAGS="$MORE_CFLAGS -Wmissing-declarations"
7730 MORE_CFLAGS="$MORE_CFLAGS -Wmissing-prototypes"
7731 MORE_CFLAGS="$MORE_CFLAGS -Wnested-externs"
7732 MORE_CFLAGS="$MORE_CFLAGS -Wpointer-arith"
7733 MORE_CFLAGS="$MORE_CFLAGS -Wreturn-type"
7734 MORE_CFLAGS="$MORE_CFLAGS -Wshadow"
7735 MORE_CFLAGS="$MORE_CFLAGS -Wsign-compare"
7736 MORE_CFLAGS="$MORE_CFLAGS -Wstrict-prototypes"
7737 MORE_CFLAGS="$MORE_CFLAGS -Wswitch"
7738 MORE_CFLAGS="$MORE_CFLAGS -Wwrite-strings"
7739 MORE_CFLAGS="$MORE_CFLAGS -Wno-undef"
7740 # MORE_CFLAGS="$MORE_CFLAGS -Wno-unused"
7741 MORE_CFLAGS="$MORE_CFLAGS -Wno-unused-parameter"
7746 # Add some more CFLAGS for various options.
7749 if test "$debugging" = "no" ; then
7751 CFLAGS="`echo $CFLAGS' ' | sed -e 's/-g[0-9] //g' | sed -e 's/-g//g'`"
7755 # Turn warnings into errors
7756 if test "$warnerror" = "yes"; then
7757 if test "$GCC" = "yes"; then
7758 MORE_CFLAGS="$MORE_CFLAGS -Werror"
7762 # Enable output of profiling information
7763 if test "$profiling" = "yes"; then
7764 if test "$GCC" = "yes"; then
7765 MORE_CFLAGS="$MORE_CFLAGS -pg"
7769 # Enable output of gcov information
7770 if test "$gcov" = "yes"; then
7771 if test "$GCC" = "yes"; then
7772 MORE_CFLAGS="$MORE_CFLAGS -fprofile-arcs -ftest-coverage"
7776 # If we're using GCC, then we can turn on -ansi -pedantic -Wall too.
7777 if test "$USE_MAINTAINER_MODE" = "yes"; then
7778 if test "$GCC" = yes; then
7779 MORE_CFLAGS="-ansi -pedantic -Wall $MORE_CFLAGS"
7786 if test "${build}" != "${host}" ; then
7787 CC_FOR_BUILD=${CC_FOR_BUILD-cc}
7788 CCLD_FOR_BUILD=${CCLD_FOR_BUILD-cc}
7790 CC_FOR_BUILD="\$(CC)"
7791 CCLD_FOR_BUILD="\$(CC)"
7797 if test "$build" != "$target" || test "$build" != "$host"; then
7798 CPP_PROG="${CPP_FOR_HOST-cc -E}"
7803 cat >>confdefs.h <<_ACEOF
7804 #define CPP_PROG "${CPP_PROG}"
7808 # Detect if we have Python
7809 if test x$enable_python = xno; then
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: Checking for Python" >&5
7813 $as_echo "$as_me: Checking for Python" >&6;}
7819 if test -n "$PYTHON"; then
7820 # If the user set $PYTHON, use it and don't search something else.
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.4" >&5
7822 $as_echo_n "checking whether $PYTHON version >= 2.4... " >&6; }
7824 # split strings by '.' and convert to numeric. Append some zeros
7825 # because we need at least 4 digits for the hex conversion.
7826 # map returns an iterator in Python 3.0 and a list in 2.x
7827 minver = list(map(int, '2.4'.split('.'))) + [0, 0, 0]
7829 # xrange is not present in Python 3.0 and range returns an iterator
7830 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
7831 sys.exit(sys.hexversion < minverhex)"
7832 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
7833 ($PYTHON -c "$prog") >&5 2>&5
7835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7836 (exit $ac_status); }; then :
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7838 $as_echo "yes" >&6; }
7840 as_fn_error $? "too old" "$LINENO" 5
7842 am_display_PYTHON=$PYTHON
7844 # Otherwise, try each interpreter until we find one that satisfies
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.4" >&5
7847 $as_echo_n "checking for a Python interpreter with version >= 2.4... " >&6; }
7848 if ${am_cv_pathless_PYTHON+:} false; then :
7849 $as_echo_n "(cached) " >&6
7852 for am_cv_pathless_PYTHON in python python2 python3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
7853 test "$am_cv_pathless_PYTHON" = none && break
7855 # split strings by '.' and convert to numeric. Append some zeros
7856 # because we need at least 4 digits for the hex conversion.
7857 # map returns an iterator in Python 3.0 and a list in 2.x
7858 minver = list(map(int, '2.4'.split('.'))) + [0, 0, 0]
7860 # xrange is not present in Python 3.0 and range returns an iterator
7861 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
7862 sys.exit(sys.hexversion < minverhex)"
7863 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
7864 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
7866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867 (exit $ac_status); }; then :
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
7873 $as_echo "$am_cv_pathless_PYTHON" >&6; }
7874 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
7875 if test "$am_cv_pathless_PYTHON" = none; then
7878 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
7879 set dummy $am_cv_pathless_PYTHON; ac_word=$2
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7881 $as_echo_n "checking for $ac_word... " >&6; }
7882 if ${ac_cv_path_PYTHON+:} false; then :
7883 $as_echo_n "(cached) " >&6
7887 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
7890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7894 test -z "$as_dir" && as_dir=.
7895 for ac_exec_ext in '' $ac_executable_extensions; do
7896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7897 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
7898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7908 PYTHON=$ac_cv_path_PYTHON
7909 if test -n "$PYTHON"; then
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
7911 $as_echo "$PYTHON" >&6; }
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7914 $as_echo "no" >&6; }
7919 am_display_PYTHON=$am_cv_pathless_PYTHON
7923 if test "$PYTHON" = :; then
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Python not found" >&5
7925 $as_echo "$as_me: WARNING: Python not found" >&2;}
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
7930 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
7931 if ${am_cv_python_version+:} false; then :
7932 $as_echo_n "(cached) " >&6
7934 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
7937 $as_echo "$am_cv_python_version" >&6; }
7938 PYTHON_VERSION=$am_cv_python_version
7942 PYTHON_PREFIX='${prefix}'
7944 PYTHON_EXEC_PREFIX='${exec_prefix}'
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
7949 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
7950 if ${am_cv_python_platform+:} false; then :
7951 $as_echo_n "(cached) " >&6
7953 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
7956 $as_echo "$am_cv_python_platform" >&6; }
7957 PYTHON_PLATFORM=$am_cv_python_platform
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
7963 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
7964 if ${am_cv_python_pythondir+:} false; then :
7965 $as_echo_n "(cached) " >&6
7967 if test "x$prefix" = xNONE
7969 am_py_prefix=$ac_default_prefix
7971 am_py_prefix=$prefix
7973 am_cv_python_pythondir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='$am_py_prefix'))" 2>/dev/null ||
7974 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
7975 case $am_cv_python_pythondir in
7977 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
7978 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
7981 case $am_py_prefix in
7984 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
7992 $as_echo "$am_cv_python_pythondir" >&6; }
7993 pythondir=$am_cv_python_pythondir
7997 pkgpythondir=\${pythondir}/$PACKAGE
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
8001 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
8002 if ${am_cv_python_pyexecdir+:} false; then :
8003 $as_echo_n "(cached) " >&6
8005 if test "x$exec_prefix" = xNONE
8007 am_py_exec_prefix=$am_py_prefix
8009 am_py_exec_prefix=$exec_prefix
8011 am_cv_python_pyexecdir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(1,0,prefix='$am_py_exec_prefix'))" 2>/dev/null ||
8012 echo "$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
8013 case $am_cv_python_pyexecdir in
8014 $am_py_exec_prefix*)
8015 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
8016 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
8019 case $am_py_exec_prefix in
8022 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
8030 $as_echo "$am_cv_python_pyexecdir" >&6; }
8031 pyexecdir=$am_cv_python_pyexecdir
8035 pkgpyexecdir=\${pyexecdir}/$PACKAGE
8043 if test -z "$PYTHON" || test "$PYTHON" = : ; then
8049 if test x$have_python = xno ; then
8050 if test x$enable_python = xyes ; then
8051 as_fn_error $? "Python explicitly requested, but a suitable Python version was not found" "$LINENO" 5
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find a suitable version of Python" >&5
8054 $as_echo "$as_me: WARNING: Could not find a suitable version of Python" >&2;}
8059 # Detect if we can build Python bindings
8060 # (needs Python, Python headers, and Cython)
8061 if test x$enable_python_bindings = xno; then
8062 have_python_bindings=no
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: Checking to see if we can build Python bindings" >&5
8065 $as_echo "$as_me: Checking to see if we can build Python bindings" >&6;}
8066 have_python_bindings=no
8067 if test x$have_python = xyes; then
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cython >= 0.11.3" >&5
8069 $as_echo_n "checking for Cython >= 0.11.3... " >&6; }
8071 from Cython.Compiler.Version import version
8077 # split strings by '.' and convert to numeric. Append some zeros
8078 # because we need at least 4 digits for the hex conversion.
8079 ver = map(get_int, version.rstrip('abcdefghijklmnopqrstuvwxyz').split('.')) + [0, 0, 0]
8081 for i in range(0, 4): verhex = (verhex << 8) + ver[i]
8082 minver = map(get_int, '0.11.3'.split('.')) + [0, 0, 0]
8084 for i in range(0, 4): minverhex = (minverhex << 8) + minver[i]
8085 sys.exit(verhex < minverhex)"
8086 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
8087 ($PYTHON -c "$prog") >&5 2>&5
8089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8090 (exit $ac_status); }; then :
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8092 $as_echo "yes" >&6; }
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8096 $as_echo "no" >&6; }
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for headers required to compile python extensions" >&5
8102 $as_echo_n "checking for headers required to compile python extensions... " >&6; }
8103 py_prefix=`$PYTHON -c "import sys; print sys.prefix"`
8104 py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"`
8105 PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}"
8106 if test "$py_prefix" != "$py_exec_prefix"; then
8107 PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION}"
8110 save_CPPFLAGS="$CPPFLAGS"
8111 CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES"
8112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8113 /* end confdefs.h. */
8116 if ac_fn_c_try_cpp "$LINENO"; then :
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
8118 $as_echo "found" >&6; }
8119 have_python_headers=yes
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8122 $as_echo "not found" >&6; }
8123 have_python_headers=no
8125 rm -f conftest.err conftest.i conftest.$ac_ext
8126 CPPFLAGS="$save_CPPFLAGS"
8129 if test x$have_cython = xyes -a x$have_python_headers = xyes ; then
8130 have_python_bindings=yes
8134 if test x$have_python_bindings = xno ; then
8135 if test x$enable_python_bindings = xyes ; then
8136 as_fn_error $? "Building Python bindings explicitly requested, but can't build Python bindings because either Cython, Python headers or a suitable Python version was not found" "$LINENO" 5
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Couldn't find either Cython, the Python headers or a suitable version of Python, not building Python bindings" >&5
8139 $as_echo "$as_me: WARNING: Couldn't find either Cython, the Python headers or a suitable version of Python, not building Python bindings" >&2;}
8144 if test x$have_python = xyes; then
8146 HAVE_PYTHON_FALSE='#'
8148 HAVE_PYTHON_TRUE='#'
8152 if test x$have_python_bindings = xyes; then
8153 HAVE_PYTHON_BINDINGS_TRUE=
8154 HAVE_PYTHON_BINDINGS_FALSE='#'
8156 HAVE_PYTHON_BINDINGS_TRUE='#'
8157 HAVE_PYTHON_BINDINGS_FALSE=
8161 ac_config_files="$ac_config_files Makefile po/Makefile.in"
8163 cat >confcache <<\_ACEOF
8164 # This file is a shell script that caches the results of configure
8165 # tests run on this system so they can be shared between configure
8166 # scripts and configure runs, see configure's option --config-cache.
8167 # It is not useful on other systems. If it contains results you don't
8168 # want to keep, you may remove or edit it.
8170 # config.status only pays attention to the cache file if you give it
8171 # the --recheck option to rerun configure.
8173 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8174 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8179 # The following way of writing the cache mishandles newlines in values,
8180 # but we know of no workaround that is simple, portable, and efficient.
8181 # So, we kill variables containing newlines.
8182 # Ultrix sh set writes to stderr and can't be redirected directly,
8183 # and sets the high bit in the cache file unless we assign to the vars.
8185 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8186 eval ac_val=\$$ac_var
8190 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8191 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8194 _ | IFS | as_nl) ;; #(
8195 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8196 *) { eval $ac_var=; unset $ac_var;} ;;
8202 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8203 *${as_nl}ac_space=\ *)
8204 # `set' does not quote correctly, so add quotes: double-quote
8205 # substitution turns \\\\ into \\, and sed turns \\ into \.
8208 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8211 # `set' quotes correctly as required by POSIX, so do not add quotes.
8212 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8221 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8223 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8225 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8226 if test -w "$cache_file"; then
8227 if test "x$cache_file" != "x/dev/null"; then
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8229 $as_echo "$as_me: updating cache $cache_file" >&6;}
8230 if test ! -f "$cache_file" || test -h "$cache_file"; then
8231 cat confcache >"$cache_file"
8233 case $cache_file in #(
8235 mv -f confcache "$cache_file"$$ &&
8236 mv -f "$cache_file"$$ "$cache_file" ;; #(
8238 mv -f confcache "$cache_file" ;;
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8244 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8249 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8250 # Let make expand exec_prefix.
8251 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8253 DEFS=-DHAVE_CONFIG_H
8258 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8259 # 1. Remove the extension, and $U if already installed.
8260 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8261 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8262 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8263 # will be set to the directory where LIBOBJS objects are built.
8264 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8265 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8269 LTLIBOBJS=$ac_ltlibobjs
8272 if test -n "$EXEEXT"; then
8274 am__EXEEXT_FALSE='#'
8280 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
8281 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
8282 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8284 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8285 as_fn_error $? "conditional \"AMDEP\" was never defined.
8286 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8288 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8289 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
8290 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8292 if test -z "${BUILD_MAN_TRUE}" && test -z "${BUILD_MAN_FALSE}"; then
8293 as_fn_error $? "conditional \"BUILD_MAN\" was never defined.
8294 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8296 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
8297 as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined.
8298 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8300 if test -z "${HAVE_PYTHON_BINDINGS_TRUE}" && test -z "${HAVE_PYTHON_BINDINGS_FALSE}"; then
8301 as_fn_error $? "conditional \"HAVE_PYTHON_BINDINGS\" was never defined.
8302 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8305 : "${CONFIG_STATUS=./config.status}"
8307 ac_clean_files_save=$ac_clean_files
8308 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8310 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8312 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8314 # Generated by $as_me.
8315 # Run this file to recreate the current configuration.
8316 # Compiler output produced by configure, useful for debugging
8317 # configure, is in config.log if it exists.
8323 SHELL=\${CONFIG_SHELL-$SHELL}
8326 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8327 ## -------------------- ##
8328 ## M4sh Initialization. ##
8329 ## -------------------- ##
8331 # Be more Bourne compatible
8332 DUALCASE=1; export DUALCASE # for MKS sh
8333 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8336 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8337 # is contrary to our usage. Disable this feature.
8338 alias -g '${1+"$@"}'='"$@"'
8339 setopt NO_GLOB_SUBST
8341 case `(set -o) 2>/dev/null` in #(
8353 # Printing a long string crashes Solaris 7 /usr/bin/printf.
8354 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8355 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8356 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8357 # Prefer a ksh shell builtin over an external printf program on Solaris,
8358 # but without wasting forks for bash or zsh.
8359 if test -z "$BASH_VERSION$ZSH_VERSION" \
8360 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8361 as_echo='print -r --'
8362 as_echo_n='print -rn --'
8363 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8364 as_echo='printf %s\n'
8365 as_echo_n='printf %s'
8367 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8368 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8369 as_echo_n='/usr/ucb/echo -n'
8371 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8372 as_echo_n_body='eval
8376 expr "X$arg" : "X\\(.*\\)$as_nl";
8377 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8379 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8381 export as_echo_n_body
8382 as_echo_n='sh -c $as_echo_n_body as_echo'
8385 as_echo='sh -c $as_echo_body as_echo'
8388 # The user is always right.
8389 if test "${PATH_SEPARATOR+set}" != set; then
8391 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8392 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8399 # We need space, tab and new line, in precisely that order. Quoting is
8400 # there to prevent editors from complaining about space-tab.
8401 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8402 # splitting by setting IFS to empty value.)
8405 # Find who we are. Look in the path if we contain no directory separator.
8408 *[\\/]* ) as_myself=$0 ;;
8409 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8413 test -z "$as_dir" && as_dir=.
8414 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8420 # We did not find ourselves, most probably we were run as `sh COMMAND'
8421 # in which case we are not to be found in the path.
8422 if test "x$as_myself" = x; then
8425 if test ! -f "$as_myself"; then
8426 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8430 # Unset variables that we do not need and which cause bugs (e.g. in
8431 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8432 # suppresses any "Segmentation fault" message there. '((' could
8433 # trigger a bug in pdksh 5.2.14.
8434 for as_var in BASH_ENV ENV MAIL MAILPATH
8435 do eval test x\${$as_var+set} = xset \
8436 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8449 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8452 # as_fn_error STATUS ERROR [LINENO LOG_FD]
8453 # ----------------------------------------
8454 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8455 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8456 # script with STATUS, using 1 if that was 0.
8459 as_status=$1; test $as_status -eq 0 && as_status=1
8461 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8462 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8464 $as_echo "$as_me: error: $2" >&2
8465 as_fn_exit $as_status
8469 # as_fn_set_status STATUS
8470 # -----------------------
8471 # Set $? to STATUS, without forking.
8475 } # as_fn_set_status
8479 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8489 # Portably unset VAR.
8492 { eval $1=; unset $1;}
8494 as_unset=as_fn_unset
8495 # as_fn_append VAR VALUE
8496 # ----------------------
8497 # Append the text in VALUE to the end of the definition contained in VAR. Take
8498 # advantage of any shell optimizations that allow amortized linear growth over
8499 # repeated appends, instead of the typical quadratic growth present in naive
8501 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8502 eval 'as_fn_append ()
8513 # as_fn_arith ARG...
8514 # ------------------
8515 # Perform arithmetic evaluation on the ARGs, and store the result in the
8516 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8517 # must be portable across $(()) and expr.
8518 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8519 eval 'as_fn_arith ()
8526 as_val=`expr "$@" || test $? -eq 1`
8531 if expr a : '\(a\)' >/dev/null 2>&1 &&
8532 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8538 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8539 as_basename=basename
8544 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8550 as_me=`$as_basename -- "$0" ||
8551 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8552 X"$0" : 'X\(//\)$' \| \
8553 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8555 sed '/^.*\/\([^/][^/]*\)\/*$/{
8569 # Avoid depending upon Character Ranges.
8570 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8571 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8572 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8573 as_cr_digits='0123456789'
8574 as_cr_alnum=$as_cr_Letters$as_cr_digits
8576 ECHO_C= ECHO_N= ECHO_T=
8577 case `echo -n x` in #(((((
8579 case `echo 'xy\c'` in
8580 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8582 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8589 rm -f conf$$ conf$$.exe conf$$.file
8590 if test -d conf$$.dir; then
8591 rm -f conf$$.dir/conf$$.file
8594 mkdir conf$$.dir 2>/dev/null
8596 if (echo >conf$$.file) 2>/dev/null; then
8597 if ln -s conf$$.file conf$$ 2>/dev/null; then
8599 # ... but there are two gotchas:
8600 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8601 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8602 # In both cases, we have to default to `cp -p'.
8603 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8605 elif ln conf$$.file conf$$ 2>/dev/null; then
8613 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8614 rmdir conf$$.dir 2>/dev/null
8619 # Create "$as_dir" as a directory, including parents if necessary.
8624 -*) as_dir=./$as_dir;;
8626 test -d "$as_dir" || eval $as_mkdir_p || {
8630 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8631 *) as_qdir=$as_dir;;
8633 as_dirs="'$as_qdir' $as_dirs"
8634 as_dir=`$as_dirname -- "$as_dir" ||
8635 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8636 X"$as_dir" : 'X\(//\)[^/]' \| \
8637 X"$as_dir" : 'X\(//\)$' \| \
8638 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8639 $as_echo X"$as_dir" |
8640 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8657 test -d "$as_dir" && break
8659 test -z "$as_dirs" || eval "mkdir $as_dirs"
8660 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8664 if mkdir -p . 2>/dev/null; then
8665 as_mkdir_p='mkdir -p "$as_dir"'
8667 test -d ./-p && rmdir ./-p
8671 if test -x / >/dev/null 2>&1; then
8674 if ls -dL / >/dev/null 2>&1; then
8681 if test -d "$1"; then
8687 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
8688 ???[sx]*):;;*)false;;esac;fi
8692 as_executable_p=$as_test_x
8694 # Sed expression to map a string onto a valid CPP name.
8695 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8697 # Sed expression to map a string onto a valid variable name.
8698 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8702 ## ----------------------------------- ##
8703 ## Main body of $CONFIG_STATUS script. ##
8704 ## ----------------------------------- ##
8706 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8708 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8709 # Save the log message, to keep $0 and so on meaningful, and to
8710 # report actual input values of CONFIG_FILES etc. instead of their
8711 # values after options handling.
8713 This file was extended by yasm $as_me 1.2.0, which was
8714 generated by GNU Autoconf 2.68. Invocation command line was
8716 CONFIG_FILES = $CONFIG_FILES
8717 CONFIG_HEADERS = $CONFIG_HEADERS
8718 CONFIG_LINKS = $CONFIG_LINKS
8719 CONFIG_COMMANDS = $CONFIG_COMMANDS
8722 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8727 case $ac_config_files in *"
8728 "*) set x $ac_config_files; shift; ac_config_files=$*;;
8731 case $ac_config_headers in *"
8732 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8736 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8737 # Files that config.status was made for.
8738 config_files="$ac_config_files"
8739 config_headers="$ac_config_headers"
8740 config_commands="$ac_config_commands"
8744 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8746 \`$as_me' instantiates files and other configuration actions
8747 from templates according to the current configuration. Unless the files
8748 and actions are specified as TAGs, all are instantiated by default.
8750 Usage: $0 [OPTION]... [TAG]...
8752 -h, --help print this help, then exit
8753 -V, --version print version number and configuration settings, then exit
8754 --config print configuration, then exit
8755 -q, --quiet, --silent
8756 do not print progress messages
8757 -d, --debug don't remove temporary files
8758 --recheck update $as_me by reconfiguring in the same conditions
8759 --file=FILE[:TEMPLATE]
8760 instantiate the configuration file FILE
8761 --header=FILE[:TEMPLATE]
8762 instantiate the configuration header FILE
8764 Configuration files:
8767 Configuration headers:
8770 Configuration commands:
8773 Report bugs to <bug-yasm@tortall.net>."
8776 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8777 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8779 yasm config.status 1.2.0
8780 configured by $0, generated by GNU Autoconf 2.68,
8781 with options \\"\$ac_cs_config\\"
8783 Copyright (C) 2010 Free Software Foundation, Inc.
8784 This config.status script is free software; the Free Software Foundation
8785 gives unlimited permission to copy, distribute and modify it."
8792 test -n "\$AWK" || AWK=awk
8795 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8796 # The default lists apply if the user does not specify any file.
8802 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8803 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8807 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8819 # Handling of the options.
8820 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8822 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8823 $as_echo "$ac_cs_version"; exit ;;
8824 --config | --confi | --conf | --con | --co | --c )
8825 $as_echo "$ac_cs_config"; exit ;;
8826 --debug | --debu | --deb | --de | --d | -d )
8828 --file | --fil | --fi | --f )
8831 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8832 '') as_fn_error $? "missing file argument" ;;
8834 as_fn_append CONFIG_FILES " '$ac_optarg'"
8835 ac_need_defaults=false;;
8836 --header | --heade | --head | --hea )
8839 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8841 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8842 ac_need_defaults=false;;
8844 # Conflict between --help and --header
8845 as_fn_error $? "ambiguous option: \`$1'
8846 Try \`$0 --help' for more information.";;
8847 --help | --hel | -h )
8848 $as_echo "$ac_cs_usage"; exit ;;
8849 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8850 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8854 -*) as_fn_error $? "unrecognized option: \`$1'
8855 Try \`$0 --help' for more information." ;;
8857 *) as_fn_append ac_config_targets " $1"
8858 ac_need_defaults=false ;;
8864 ac_configure_extra_args=
8866 if $ac_cs_silent; then
8868 ac_configure_extra_args="$ac_configure_extra_args --silent"
8872 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8873 if \$ac_cs_recheck; then
8874 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8876 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8877 CONFIG_SHELL='$SHELL'
8883 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8887 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8888 ## Running $as_me. ##
8894 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8898 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8899 # variables for create stdint.h replacement
8902 ac_stdint_h="$ac_stdint_h"
8903 _ac_stdint_h=`$as_echo "_$PACKAGE-$ac_stdint_h" | $as_tr_cpp`
8904 ac_cv_stdint_message="$ac_cv_stdint_message"
8905 ac_cv_header_stdint_t="$ac_cv_header_stdint_t"
8906 ac_cv_header_stdint_x="$ac_cv_header_stdint_x"
8907 ac_cv_header_stdint_o="$ac_cv_header_stdint_o"
8908 ac_cv_header_stdint_u="$ac_cv_header_stdint_u"
8909 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
8910 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
8911 ac_cv_char_data_model="$ac_cv_char_data_model"
8912 ac_cv_long_data_model="$ac_cv_long_data_model"
8913 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
8914 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
8915 ac_cv_type_intmax_t="$ac_cv_type_intmax_t"
8917 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
8918 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
8919 # from automake < 1.5.
8920 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
8921 # Capture the value of LINGUAS because we need it to compute CATALOGS.
8922 LINGUAS="${LINGUAS-%UNSET%}"
8927 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8929 # Handling of arguments.
8930 for ac_config_target in $ac_config_targets
8932 case $ac_config_target in
8933 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8934 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8935 "$ac_stdint_h") CONFIG_COMMANDS="$CONFIG_COMMANDS $ac_stdint_h" ;;
8936 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
8937 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8938 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
8940 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8945 # If the user did not use the arguments to specify the items to instantiate,
8946 # then the envvar interface is used. Set only those that are not.
8947 # We use the long form for the default assignment because of an extremely
8948 # bizarre bug on SunOS 4.1.3.
8949 if $ac_need_defaults; then
8950 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8951 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8952 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8955 # Have a temporary directory for convenience. Make it in the build tree
8956 # simply because there is no reason against having it here, and in addition,
8957 # creating and moving files from /tmp can sometimes cause problems.
8958 # Hook for its removal unless debugging.
8959 # Note that there is a small window in which the directory will not be cleaned:
8960 # after its creation but before its name has been assigned to `$tmp'.
8964 trap 'exit_status=$?
8966 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8968 trap 'as_fn_exit 1' 1 2 13 15
8970 # Create a (secure) tmp directory for tmp files.
8973 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8977 tmp=./conf$$-$RANDOM
8978 (umask 077 && mkdir "$tmp")
8979 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8982 # Set up the scripts for CONFIG_FILES section.
8983 # No need to generate them if there are no CONFIG_FILES.
8984 # This happens for instance with `./config.status config.h'.
8985 if test -n "$CONFIG_FILES"; then
8988 ac_cr=`echo X | tr X '\015'`
8989 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8990 # But we know of no other shell where ac_cr would be empty at this
8991 # point, so we can use a bashism as a fallback.
8992 if test "x$ac_cr" = x; then
8993 eval ac_cr=\$\'\\r\'
8995 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8996 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9002 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9007 echo "cat >conf$$subs.awk <<_ACEOF" &&
9008 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9011 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9012 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9014 for ac_last_try in false false false false false :; do
9015 . ./conf$$subs.sh ||
9016 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9018 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9019 if test $ac_delim_n = $ac_delim_num; then
9021 elif $ac_last_try; then
9022 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9024 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9029 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9030 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
9034 s/^/S["/; s/!.*/"]=/
9044 s/\(.\{148\}\)..*/\1/
9046 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9051 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9058 s/\(.\{148\}\)..*/\1/
9060 s/["\\]/\\&/g; s/^/"/; s/$/"/
9064 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9069 ' <conf$$subs.awk | sed '
9074 ' >>$CONFIG_STATUS || ac_write_fail=1
9075 rm -f conf$$subs.awk
9076 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9078 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
9079 for (key in S) S_is_set[key] = 1
9085 nfields = split(line, field, "@")
9087 len = length(field[1])
9088 for (i = 2; i < nfields; i++) {
9090 keylen = length(key)
9091 if (S_is_set[key]) {
9093 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9094 len += length(value) + length(field[++i])
9105 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9106 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9107 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9110 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
9111 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9114 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9115 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9116 # trailing colons and then remove the whole line if VPATH becomes empty
9117 # (actually we leave an empty line to preserve line numbers).
9118 if test "x$srcdir" = x.; then
9119 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
9137 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9138 fi # test -n "$CONFIG_FILES"
9140 # Set up the scripts for CONFIG_HEADERS section.
9141 # No need to generate them if there are no CONFIG_HEADERS.
9142 # This happens for instance with `./config.status Makefile'.
9143 if test -n "$CONFIG_HEADERS"; then
9144 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
9148 # Transform confdefs.h into an awk script `defines.awk', embedded as
9149 # here-document in config.status, that substitutes the proper values into
9150 # config.h.in to produce config.h.
9152 # Create a delimiter string that does not exist in confdefs.h, to ease
9153 # handling of long lines.
9155 for ac_last_try in false false :; do
9156 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
9157 if test -z "$ac_tt"; then
9159 elif $ac_last_try; then
9160 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
9162 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9166 # For the awk script, D is an array of macro values keyed by name,
9167 # likewise P contains macro parameters if any. Preserve backslash
9168 # newline sequences.
9170 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9172 s/.\{148\}/&'"$ac_delim"'/g
9175 s/^[ ]*#[ ]*define[ ][ ]*/ /
9182 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9184 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
9188 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9189 D["\1"]=" \3\\\\\\n"\\/p
9191 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9196 s/.\{148\}/&'"$ac_delim"'/g
9201 s/["\\]/\\&/g; s/^/"/; s/$/"/p
9204 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9206 ' <confdefs.h | sed '
9207 s/'"$ac_delim"'/"\\\
9208 "/g' >>$CONFIG_STATUS || ac_write_fail=1
9210 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9211 for (key in D) D_is_set[key] = 1
9214 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9216 split(line, arg, " ")
9217 if (arg[1] == "#") {
9221 defundef = substr(arg[1], 2)
9224 split(mac1, mac2, "(") #)
9226 prefix = substr(line, 1, index(line, defundef) - 1)
9227 if (D_is_set[macro]) {
9228 # Preserve the white space surrounding the "#".
9229 print prefix "define", macro P[macro] D[macro]
9232 # Replace #undef with comments. This is necessary, for example,
9233 # in the case of _POSIX_SOURCE, which is predefined and required
9234 # on some systems where configure will not decide to define it.
9235 if (defundef == "undef") {
9236 print "/*", prefix defundef, macro, "*/"
9244 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9245 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
9246 fi # test -n "$CONFIG_HEADERS"
9249 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
9254 :[FHLC]) ac_mode=$ac_tag; continue;;
9256 case $ac_mode$ac_tag in
9258 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9259 :[FH]-) ac_tag=-:-;;
9260 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9277 -) ac_f="$ac_tmp/stdin";;
9278 *) # Look for the file first in the build tree, then in the source tree
9279 # (if the path is not absolute). The absolute path cannot be DOS-style,
9280 # because $ac_f cannot contain `:'.
9284 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9286 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9288 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9289 as_fn_append ac_file_inputs " '$ac_f'"
9292 # Let's still pretend it is `configure' which instantiates (i.e., don't
9293 # use $as_me), people would be surprised to read:
9294 # /* config.h. Generated by config.status. */
9295 configure_input='Generated from '`
9296 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9298 if test x"$ac_file" != x-; then
9299 configure_input="$ac_file. $configure_input"
9300 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9301 $as_echo "$as_me: creating $ac_file" >&6;}
9303 # Neutralize special characters interpreted by sed in replacement strings.
9304 case $configure_input in #(
9305 *\&* | *\|* | *\\* )
9306 ac_sed_conf_input=`$as_echo "$configure_input" |
9307 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9308 *) ac_sed_conf_input=$configure_input;;
9312 *:-:* | *:-) cat >"$ac_tmp/stdin" \
9313 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9318 ac_dir=`$as_dirname -- "$ac_file" ||
9319 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9320 X"$ac_file" : 'X\(//\)[^/]' \| \
9321 X"$ac_file" : 'X\(//\)$' \| \
9322 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9323 $as_echo X"$ac_file" |
9324 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9341 as_dir="$ac_dir"; as_fn_mkdir_p
9345 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9347 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9348 # A ".." for each directory in $ac_dir_suffix.
9349 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9350 case $ac_top_builddir_sub in
9351 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9352 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9355 ac_abs_top_builddir=$ac_pwd
9356 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9357 # for backward compatibility:
9358 ac_top_builddir=$ac_top_build_prefix
9361 .) # We are building in place.
9363 ac_top_srcdir=$ac_top_builddir_sub
9364 ac_abs_top_srcdir=$ac_pwd ;;
9365 [\\/]* | ?:[\\/]* ) # Absolute name.
9366 ac_srcdir=$srcdir$ac_dir_suffix;
9367 ac_top_srcdir=$srcdir
9368 ac_abs_top_srcdir=$srcdir ;;
9370 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9371 ac_top_srcdir=$ac_top_build_prefix$srcdir
9372 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9374 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9384 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9385 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9389 [\\/$]* | ?:[\\/]* ) ;;
9390 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
9394 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9395 # If the template does not know about datarootdir, expand it.
9396 # FIXME: This hack should be removed a few years after 2.60.
9397 ac_datarootdir_hack=; ac_datarootdir_seen=
9408 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9409 *datarootdir*) ac_datarootdir_seen=yes;;
9410 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9412 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9414 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9415 ac_datarootdir_hack='
9416 s&@datadir@&$datadir&g
9417 s&@docdir@&$docdir&g
9418 s&@infodir@&$infodir&g
9419 s&@localedir@&$localedir&g
9420 s&@mandir@&$mandir&g
9421 s&\\\${datarootdir}&$datarootdir&g' ;;
9425 # Neutralize VPATH when `$srcdir' = `.'.
9426 # Shell code in configure.ac might set extrasub.
9427 # FIXME: do we really want to maintain this feature?
9428 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9429 ac_sed_extra="$ac_vpsub
9432 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9434 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9435 s|@configure_input@|$ac_sed_conf_input|;t t
9436 s&@top_builddir@&$ac_top_builddir_sub&;t t
9437 s&@top_build_prefix@&$ac_top_build_prefix&;t t
9438 s&@srcdir@&$ac_srcdir&;t t
9439 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9440 s&@top_srcdir@&$ac_top_srcdir&;t t
9441 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9442 s&@builddir@&$ac_builddir&;t t
9443 s&@abs_builddir@&$ac_abs_builddir&;t t
9444 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9445 s&@INSTALL@&$ac_INSTALL&;t t
9446 s&@MKDIR_P@&$ac_MKDIR_P&;t t
9447 $ac_datarootdir_hack
9449 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
9450 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9452 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9453 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
9454 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
9455 "$ac_tmp/out"`; test -z "$ac_out"; } &&
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9457 which seems to be undefined. Please make sure it is defined" >&5
9458 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9459 which seems to be undefined. Please make sure it is defined" >&2;}
9461 rm -f "$ac_tmp/stdin"
9463 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9464 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9466 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9472 if test x"$ac_file" != x-; then
9474 $as_echo "/* $configure_input */" \
9475 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
9476 } >"$ac_tmp/config.h" \
9477 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9478 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9480 $as_echo "$as_me: $ac_file is unchanged" >&6;}
9483 mv "$ac_tmp/config.h" "$ac_file" \
9484 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9487 $as_echo "/* $configure_input */" \
9488 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
9489 || as_fn_error $? "could not create -" "$LINENO" 5
9491 # Compute "$ac_file"'s index in $config_headers.
9494 for _am_header in $config_headers :; do
9496 $_am_arg | $_am_arg:* )
9499 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9502 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
9503 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9504 X"$_am_arg" : 'X\(//\)[^/]' \| \
9505 X"$_am_arg" : 'X\(//\)$' \| \
9506 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
9507 $as_echo X"$_am_arg" |
9508 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9524 s/.*/./; q'`/stamp-h$_am_stamp_count
9527 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9528 $as_echo "$as_me: executing $ac_file commands" >&6;}
9533 case $ac_file$ac_mode in
9534 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
9535 # Autoconf 2.62 quotes --file arguments for eval, but not when files
9536 # are listed without --file. Let's play safe and only enable the eval
9537 # if we detect the quoting.
9538 case $CONFIG_FILES in
9539 *\'*) eval set x "$CONFIG_FILES" ;;
9540 *) set x $CONFIG_FILES ;;
9545 # Strip MF so we end up with the name of the file.
9546 mf=`echo "$mf" | sed -e 's/:.*$//'`
9547 # Check whether this is an Automake generated Makefile or not.
9548 # We used to match only the files named `Makefile.in', but
9549 # some people rename them; so instead we look at the file content.
9550 # Grep'ing the first line is not enough: some people post-process
9551 # each Makefile.in and add a new line on top of each file to say so.
9552 # Grep'ing the whole file is not good either: AIX grep has a line
9553 # limit of 2048, but all sed's we know have understand at least 4000.
9554 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
9555 dirpart=`$as_dirname -- "$mf" ||
9556 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9557 X"$mf" : 'X\(//\)[^/]' \| \
9558 X"$mf" : 'X\(//\)$' \| \
9559 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
9561 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9581 # Extract the definition of DEPDIR, am__include, and am__quote
9582 # from the Makefile without running `make'.
9583 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9584 test -z "$DEPDIR" && continue
9585 am__include=`sed -n 's/^am__include = //p' < "$mf"`
9586 test -z "am__include" && continue
9587 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9588 # When using ansi2knr, U may be empty or an underscore; expand it
9589 U=`sed -n 's/^U = //p' < "$mf"`
9590 # Find all dependency output files, they are included files with
9591 # $(DEPDIR) in their names. We invoke sed twice because it is the
9592 # simplest approach to changing $(DEPDIR) to its actual value in the
9594 for file in `sed -n "
9595 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9596 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9597 # Make sure the directory exists.
9598 test -f "$dirpart/$file" && continue
9599 fdir=`$as_dirname -- "$file" ||
9600 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9601 X"$file" : 'X\(//\)[^/]' \| \
9602 X"$file" : 'X\(//\)$' \| \
9603 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
9605 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9622 as_dir=$dirpart/$fdir; as_fn_mkdir_p
9623 # echo "creating $dirpart/$file"
9624 echo '# dummy' > "$dirpart/$file"
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_stdint_h : $_ac_stdint_h" >&5
9631 $as_echo "$as_me: creating $ac_stdint_h : $_ac_stdint_h" >&6;}
9632 ac_stdint=$tmp/_stdint.h
9634 echo "#ifndef" $_ac_stdint_h >$ac_stdint
9635 echo "#define" $_ac_stdint_h "1" >>$ac_stdint
9636 echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint
9637 echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint
9638 echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint
9639 if test "_$ac_cv_header_stdint_t" != "_" ; then
9640 echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint
9641 echo "#include <stdint.h>" >>$ac_stdint
9642 echo "#endif" >>$ac_stdint
9643 echo "#endif" >>$ac_stdint
9646 cat >>$ac_stdint <<STDINT_EOF
9648 /* ................... shortcircuit part ........................... */
9650 #if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H
9655 /* .................... configured part ............................ */
9659 echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint
9660 if test "_$ac_cv_header_stdint_x" != "_" ; then
9661 ac_header="$ac_cv_header_stdint_x"
9662 echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint
9664 echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint
9667 echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint
9668 if test "_$ac_cv_header_stdint_o" != "_" ; then
9669 ac_header="$ac_cv_header_stdint_o"
9670 echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint
9672 echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint
9675 echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint
9676 if test "_$ac_cv_header_stdint_u" != "_" ; then
9677 ac_header="$ac_cv_header_stdint_u"
9678 echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint
9680 echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint
9683 echo "" >>$ac_stdint
9685 if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then
9686 echo "#include <$ac_header>" >>$ac_stdint
9687 echo "" >>$ac_stdint
9690 echo "/* which 64bit typedef has been found */" >>$ac_stdint
9691 if test "$ac_cv_type_uint64_t" = "yes" ; then
9692 echo "#define _STDINT_HAVE_UINT64_T" "1" >>$ac_stdint
9694 echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint
9696 if test "$ac_cv_type_u_int64_t" = "yes" ; then
9697 echo "#define _STDINT_HAVE_U_INT64_T" "1" >>$ac_stdint
9699 echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint
9701 echo "" >>$ac_stdint
9703 echo "/* which type model has been detected */" >>$ac_stdint
9704 if test "_$ac_cv_char_data_model" != "_" ; then
9705 echo "#define _STDINT_CHAR_MODEL" "$ac_cv_char_data_model" >>$ac_stdint
9706 echo "#define _STDINT_LONG_MODEL" "$ac_cv_long_data_model" >>$ac_stdint
9708 echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint
9709 echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint
9711 echo "" >>$ac_stdint
9713 echo "/* whether int_least types were detected */" >>$ac_stdint
9714 if test "$ac_cv_type_int_least32_t" = "yes"; then
9715 echo "#define _STDINT_HAVE_INT_LEAST32_T" "1" >>$ac_stdint
9717 echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint
9719 echo "/* whether int_fast types were detected */" >>$ac_stdint
9720 if test "$ac_cv_type_int_fast32_t" = "yes"; then
9721 echo "#define _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint
9723 echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint
9725 echo "/* whether intmax_t type was detected */" >>$ac_stdint
9726 if test "$ac_cv_type_intmax_t" = "yes"; then
9727 echo "#define _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint
9729 echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint
9731 echo "" >>$ac_stdint
9733 cat >>$ac_stdint <<STDINT_EOF
9734 /* .................... detections part ............................ */
9736 /* whether we need to define bitspecific types from compiler base types */
9737 #ifndef _STDINT_HEADER_INTPTR
9738 #ifndef _STDINT_HEADER_UINT32
9739 #ifndef _STDINT_HEADER_U_INT32
9740 #define _STDINT_NEED_INT_MODEL_T
9742 #define _STDINT_HAVE_U_INT_TYPES
9747 #ifdef _STDINT_HAVE_U_INT_TYPES
9748 #undef _STDINT_NEED_INT_MODEL_T
9751 #ifdef _STDINT_CHAR_MODEL
9752 #if _STDINT_CHAR_MODEL+0 == 122 || _STDINT_CHAR_MODEL+0 == 124
9753 #ifndef _STDINT_BYTE_MODEL
9754 #define _STDINT_BYTE_MODEL 12
9759 #ifndef _STDINT_HAVE_INT_LEAST32_T
9760 #define _STDINT_NEED_INT_LEAST_T
9763 #ifndef _STDINT_HAVE_INT_FAST32_T
9764 #define _STDINT_NEED_INT_FAST_T
9767 #ifndef _STDINT_HEADER_INTPTR
9768 #define _STDINT_NEED_INTPTR_T
9771 #ifndef _STDINT_HAVE_INTMAX_T
9772 #define _STDINT_NEED_INTMAX_T
9775 /* .................... definition part ............................ */
9777 /* some system headers have good uint64_t */
9778 #ifndef _HAVE_UINT64_T
9779 #if defined _STDINT_HAVE_UINT64_T || defined HAVE_UINT64_T
9780 #define _HAVE_UINT64_T
9781 #elif defined _STDINT_HAVE_U_INT64_T || defined HAVE_U_INT64_T
9782 #define _HAVE_UINT64_T
9783 typedef u_int64_t uint64_t;
9787 #ifndef _HAVE_UINT64_T
9788 /* .. here are some common heuristics using compiler runtime specifics */
9789 #if defined __STDC_VERSION__ && defined __STDC_VERSION__ >= 199901L
9790 #define _HAVE_UINT64_T
9791 #define _HAVE_LONGLONG_UINT64_T
9792 typedef long long int64_t;
9793 typedef unsigned long long uint64_t;
9795 #elif !defined __STRICT_ANSI__
9796 #if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
9797 #define _HAVE_UINT64_T
9798 typedef __int64 int64_t;
9799 typedef unsigned __int64 uint64_t;
9801 #elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__
9802 /* note: all ELF-systems seem to have loff-support which needs 64-bit */
9803 #if !defined _NO_LONGLONG
9804 #define _HAVE_UINT64_T
9805 #define _HAVE_LONGLONG_UINT64_T
9806 typedef long long int64_t;
9807 typedef unsigned long long uint64_t;
9810 #elif defined __alpha || (defined __mips && defined _ABIN32)
9811 #if !defined _NO_LONGLONG
9812 typedef long int64_t;
9813 typedef unsigned long uint64_t;
9815 /* compiler/cpu type to define int64_t */
9820 #if defined _STDINT_HAVE_U_INT_TYPES
9821 /* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */
9822 typedef u_int8_t uint8_t;
9823 typedef u_int16_t uint16_t;
9824 typedef u_int32_t uint32_t;
9826 /* glibc compatibility */
9827 #ifndef __int8_t_defined
9828 #define __int8_t_defined
9832 #ifdef _STDINT_NEED_INT_MODEL_T
9833 /* we must guess all the basic types. Apart from byte-adressable system, */
9834 /* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */
9835 /* (btw, those nibble-addressable systems are way off, or so we assume) */
9838 #if defined _STDINT_BYTE_MODEL
9839 #if _STDINT_LONG_MODEL+0 == 242
9840 /* 2:4:2 = IP16 = a normal 16-bit system */
9841 typedef unsigned char uint8_t;
9842 typedef unsigned short uint16_t;
9843 typedef unsigned long uint32_t;
9844 #ifndef __int8_t_defined
9845 #define __int8_t_defined
9846 typedef char int8_t;
9847 typedef short int16_t;
9848 typedef long int32_t;
9850 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444
9851 /* 2:4:4 = LP32 = a 32-bit system derived from a 16-bit */
9852 /* 4:4:4 = ILP32 = a normal 32-bit system */
9853 typedef unsigned char uint8_t;
9854 typedef unsigned short uint16_t;
9855 typedef unsigned int uint32_t;
9856 #ifndef __int8_t_defined
9857 #define __int8_t_defined
9858 typedef char int8_t;
9859 typedef short int16_t;
9860 typedef int int32_t;
9862 #elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488
9863 /* 4:8:4 = IP32 = a 32-bit system prepared for 64-bit */
9864 /* 4:8:8 = LP64 = a normal 64-bit system */
9865 typedef unsigned char uint8_t;
9866 typedef unsigned short uint16_t;
9867 typedef unsigned int uint32_t;
9868 #ifndef __int8_t_defined
9869 #define __int8_t_defined
9870 typedef char int8_t;
9871 typedef short int16_t;
9872 typedef int int32_t;
9874 /* this system has a "long" of 64bit */
9875 #ifndef _HAVE_UINT64_T
9876 #define _HAVE_UINT64_T
9877 typedef unsigned long uint64_t;
9878 typedef long int64_t;
9880 #elif _STDINT_LONG_MODEL+0 == 448
9881 /* LLP64 a 64-bit system derived from a 32-bit system */
9882 typedef unsigned char uint8_t;
9883 typedef unsigned short uint16_t;
9884 typedef unsigned int uint32_t;
9885 #ifndef __int8_t_defined
9886 #define __int8_t_defined
9887 typedef char int8_t;
9888 typedef short int16_t;
9889 typedef int int32_t;
9891 /* assuming the system has a "long long" */
9892 #ifndef _HAVE_UINT64_T
9893 #define _HAVE_UINT64_T
9894 #define _HAVE_LONGLONG_UINT64_T
9895 typedef unsigned long long uint64_t;
9896 typedef long long int64_t;
9899 #define _STDINT_NO_INT32_T
9902 #define _STDINT_NO_INT8_T
9903 #define _STDINT_NO_INT32_T
9908 * quote from SunOS-5.8 sys/inttypes.h:
9909 * Use at your own risk. As of February 1996, the committee is squarely
9910 * behind the fixed sized types; the "least" and "fast" types are still being
9911 * discussed. The probability that the "fast" types may be removed before
9912 * the standard is finalized is high enough that they are not currently
9916 #if defined _STDINT_NEED_INT_LEAST_T
9917 typedef int8_t int_least8_t;
9918 typedef int16_t int_least16_t;
9919 typedef int32_t int_least32_t;
9920 #ifdef _HAVE_UINT64_T
9921 typedef int64_t int_least64_t;
9924 typedef uint8_t uint_least8_t;
9925 typedef uint16_t uint_least16_t;
9926 typedef uint32_t uint_least32_t;
9927 #ifdef _HAVE_UINT64_T
9928 typedef uint64_t uint_least64_t;
9933 #if defined _STDINT_NEED_INT_FAST_T
9934 typedef int8_t int_fast8_t;
9935 typedef int int_fast16_t;
9936 typedef int32_t int_fast32_t;
9937 #ifdef _HAVE_UINT64_T
9938 typedef int64_t int_fast64_t;
9941 typedef uint8_t uint_fast8_t;
9942 typedef unsigned uint_fast16_t;
9943 typedef uint32_t uint_fast32_t;
9944 #ifdef _HAVE_UINT64_T
9945 typedef uint64_t uint_fast64_t;
9950 #ifdef _STDINT_NEED_INTMAX_T
9951 #ifdef _HAVE_UINT64_T
9952 typedef int64_t intmax_t;
9953 typedef uint64_t uintmax_t;
9955 typedef long intmax_t;
9956 typedef unsigned long uintmax_t;
9960 #ifdef _STDINT_NEED_INTPTR_T
9961 #ifndef __intptr_t_defined
9962 #define __intptr_t_defined
9963 /* we encourage using "long" to store pointer values, never use "int" ! */
9964 #if _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484
9965 typedef unsinged int uintptr_t;
9966 typedef int intptr_t;
9967 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444
9968 typedef unsigned long uintptr_t;
9969 typedef long intptr_t;
9970 #elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T
9971 typedef uint64_t uintptr_t;
9972 typedef int64_t intptr_t;
9973 #else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */
9974 typedef unsigned long uintptr_t;
9975 typedef long intptr_t;
9980 /* The ISO C99 standard specifies that in C++ implementations these
9981 should only be defined if explicitly requested. */
9982 #if !defined __cplusplus || defined __STDC_CONSTANT_MACROS
9986 # define INT8_C(c) c
9987 # define INT16_C(c) c
9988 # define INT32_C(c) c
9989 # ifdef _HAVE_LONGLONG_UINT64_T
9990 # define INT64_C(c) c ## L
9992 # define INT64_C(c) c ## LL
9996 # define UINT8_C(c) c ## U
9997 # define UINT16_C(c) c ## U
9998 # define UINT32_C(c) c ## U
9999 # ifdef _HAVE_LONGLONG_UINT64_T
10000 # define UINT64_C(c) c ## UL
10002 # define UINT64_C(c) c ## ULL
10005 /* Maximal type. */
10006 # ifdef _HAVE_LONGLONG_UINT64_T
10007 # define INTMAX_C(c) c ## L
10008 # define UINTMAX_C(c) c ## UL
10010 # define INTMAX_C(c) c ## LL
10011 # define UINTMAX_C(c) c ## ULL
10014 /* literalnumbers */
10018 /* These limits are merily those of a two complement byte-oriented system */
10020 /* Minimum of signed integral types. */
10021 # define INT8_MIN (-128)
10022 # define INT16_MIN (-32767-1)
10023 # define INT32_MIN (-2147483647-1)
10024 # define INT64_MIN (-__INT64_C(9223372036854775807)-1)
10025 /* Maximum of signed integral types. */
10026 # define INT8_MAX (127)
10027 # define INT16_MAX (32767)
10028 # define INT32_MAX (2147483647)
10029 # define INT64_MAX (__INT64_C(9223372036854775807))
10031 /* Maximum of unsigned integral types. */
10032 # define UINT8_MAX (255)
10033 # define UINT16_MAX (65535)
10034 # define UINT32_MAX (4294967295U)
10035 # define UINT64_MAX (__UINT64_C(18446744073709551615))
10037 /* Minimum of signed integral types having a minimum size. */
10038 # define INT_LEAST8_MIN INT8_MIN
10039 # define INT_LEAST16_MIN INT16_MIN
10040 # define INT_LEAST32_MIN INT32_MIN
10041 # define INT_LEAST64_MIN INT64_MIN
10042 /* Maximum of signed integral types having a minimum size. */
10043 # define INT_LEAST8_MAX INT8_MAX
10044 # define INT_LEAST16_MAX INT16_MAX
10045 # define INT_LEAST32_MAX INT32_MAX
10046 # define INT_LEAST64_MAX INT64_MAX
10048 /* Maximum of unsigned integral types having a minimum size. */
10049 # define UINT_LEAST8_MAX UINT8_MAX
10050 # define UINT_LEAST16_MAX UINT16_MAX
10051 # define UINT_LEAST32_MAX UINT32_MAX
10052 # define UINT_LEAST64_MAX UINT64_MAX
10061 if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_stdint_h is unchanged" >&5
10063 $as_echo "$as_me: $ac_stdint_h is unchanged" >&6;}
10065 ac_dir=`$as_dirname -- "$ac_stdint_h" ||
10066 $as_expr X"$ac_stdint_h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10067 X"$ac_stdint_h" : 'X\(//\)[^/]' \| \
10068 X"$ac_stdint_h" : 'X\(//\)$' \| \
10069 X"$ac_stdint_h" : 'X\(/\)' \| . 2>/dev/null ||
10070 $as_echo X"$ac_stdint_h" |
10071 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10075 /^X\(\/\/\)[^/].*/{
10088 as_dir="$ac_dir"; as_fn_mkdir_p
10090 mv $ac_stdint $ac_stdint_h
10093 "po-directories":C)
10094 for ac_file in $CONFIG_FILES; do
10095 # Support "outfile[:infile[:infile...]]"
10097 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10099 # PO directories have a Makefile.in generated from Makefile.in.in.
10100 case "$ac_file" in */Makefile.in)
10101 # Adjust a relative srcdir.
10102 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
10103 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
10104 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
10105 # In autoconf-2.13 it is called $ac_given_srcdir.
10106 # In autoconf-2.50 it is called $srcdir.
10107 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
10108 case "$ac_given_srcdir" in
10109 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
10110 /*) top_srcdir="$ac_given_srcdir" ;;
10111 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
10113 # Treat a directory as a PO directory if and only if it has a
10114 # POTFILES.in file. This allows packages to have multiple PO
10115 # directories under different names or in different locations.
10116 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
10117 rm -f "$ac_dir/POTFILES"
10118 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
10119 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
10120 POMAKEFILEDEPS="POTFILES.in"
10121 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
10122 # on $ac_dir but don't depend on user-specified configuration
10124 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
10125 # The LINGUAS file contains the set of available languages.
10126 if test -n "$OBSOLETE_ALL_LINGUAS"; then
10127 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
10129 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
10130 # Hide the ALL_LINGUAS assigment from automake < 1.5.
10131 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
10132 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
10134 # The set of available languages was given in configure.in.
10135 # Hide the ALL_LINGUAS assigment from automake < 1.5.
10136 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
10139 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
10140 # Compute UPDATEPOFILES
10141 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
10142 # Compute DUMMYPOFILES
10143 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
10145 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
10146 case "$ac_given_srcdir" in
10148 *) srcdirpre='$(srcdir)/' ;;
10154 for lang in $ALL_LINGUAS; do
10155 POFILES="$POFILES $srcdirpre$lang.po"
10156 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
10157 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
10158 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
10160 # CATALOGS depends on both $ac_dir and the user's LINGUAS
10161 # environment variable.
10163 if test -n "$ALL_LINGUAS"; then
10164 for presentlang in $ALL_LINGUAS; do
10166 if test "%UNSET%" != "$LINGUAS"; then
10167 desiredlanguages="$LINGUAS"
10169 desiredlanguages="$ALL_LINGUAS"
10171 for desiredlang in $desiredlanguages; do
10172 # Use the presentlang catalog if desiredlang is
10173 # a. equal to presentlang, or
10174 # b. a variant of presentlang (because in this case,
10175 # presentlang can be used as a fallback for messages
10176 # which are not translated in the desiredlang catalog).
10177 case "$desiredlang" in
10178 "$presentlang"*) useit=yes;;
10181 if test $useit = yes; then
10182 INST_LINGUAS="$INST_LINGUAS $presentlang"
10187 if test -n "$INST_LINGUAS"; then
10188 for lang in $INST_LINGUAS; do
10189 CATALOGS="$CATALOGS $lang.gmo"
10192 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
10193 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
10194 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
10195 if test -f "$f"; then
10197 *.orig | *.bak | *~) ;;
10198 *) cat "$f" >> "$ac_dir/Makefile" ;;
10213 ac_clean_files=$ac_clean_files_save
10215 test $ac_write_fail = 0 ||
10216 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10219 # configure is writing to config.log, and then calls config.status.
10220 # config.status does its own redirection, appending to config.log.
10221 # Unfortunately, on DOS this fails, as config.log is still kept open
10222 # by configure, so config.status won't be able to write to it; its
10223 # output is simply discarded. So we exec the FD to /dev/null,
10224 # effectively closing config.log, so it can be properly (re)opened and
10225 # appended to by config.status. When coming back to configure, we
10226 # need to make the FD available again.
10227 if test "$no_create" != yes; then
10229 ac_config_status_args=
10230 test "$silent" = yes &&
10231 ac_config_status_args="$ac_config_status_args --quiet"
10233 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10235 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10236 # would make configure fail if this is the last instruction.
10237 $ac_cs_success || as_fn_exit 1
10239 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10241 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}