2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 case \`(set -o) 2>/dev/null\` in #(
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 test -z "$as_dir" && as_dir=.
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
240 SHELL=${CONFIG_SHELL-/bin/sh}
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
251 # Portably unset VAR.
254 { eval $1=; unset $1;}
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
278 # Create "$as_dir" as a directory, including parents if necessary.
283 -*) as_dir=./$as_dir;;
285 test -d "$as_dir" || eval $as_mkdir_p || {
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316 test -d "$as_dir" && break
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
354 as_val=`expr "$@" || test $? -eq 1`
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
366 as_status=$?; test $as_status -eq 0 && as_status=1
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit $as_status
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
448 # Exit status is that of the last command.
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
470 mkdir conf$$.dir 2>/dev/null
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
481 elif ln conf$$.file conf$$ 2>/dev/null; then
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
495 test -d ./-p && rmdir ./-p
499 if test -x / >/dev/null 2>&1; then
502 if ls -dL / >/dev/null 2>&1; then
509 if test -d "$1"; then
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
520 as_executable_p=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529 test -n "$DJDIR" || exec 7<&0 </dev/null
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
540 ac_default_prefix=/usr/local
542 ac_config_libobj_dir=.
549 # Identity of this package.
557 ac_unique_file="src/gcm_input/message.h"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
571 # ifdef HAVE_STDLIB_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
594 ac_subst_vars='am__EXEEXT_FALSE
602 with_postgres_include
648 INSTALL_STRIP_PROGRAM
690 program_transform_name
703 enable_option_checking
704 enable_dependency_tracking
707 ac_precious_vars='build_alias
724 # Initialize some variables set by options.
726 ac_init_version=false
727 ac_unrecognized_opts=
729 # The variables have the same names as the options, with
730 # dashes changed to underlines.
738 program_transform_name=s,x,x,
746 # Installation directory options.
747 # These are left unexpanded so users can "make install exec_prefix=/foo"
748 # and all the variables that are supposed to be based on exec_prefix
749 # by default will actually change.
750 # Use braces instead of parens because sh, perl, etc. also accept them.
751 # (The list follows the same order as the GNU Coding Standards.)
752 bindir='${exec_prefix}/bin'
753 sbindir='${exec_prefix}/sbin'
754 libexecdir='${exec_prefix}/libexec'
755 datarootdir='${prefix}/share'
756 datadir='${datarootdir}'
757 sysconfdir='${prefix}/etc'
758 sharedstatedir='${prefix}/com'
759 localstatedir='${prefix}/var'
760 includedir='${prefix}/include'
761 oldincludedir='/usr/include'
762 docdir='${datarootdir}/doc/${PACKAGE}'
763 infodir='${datarootdir}/info'
768 libdir='${exec_prefix}/lib'
769 localedir='${datarootdir}/locale'
770 mandir='${datarootdir}/man'
776 # If the previous option needs an argument, assign it.
777 if test -n "$ac_prev"; then
778 eval $ac_prev=\$ac_option
784 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
788 # Accept the important Cygnus configure options, so we can diagnose typos.
790 case $ac_dashdash$ac_option in
794 -bindir | --bindir | --bindi | --bind | --bin | --bi)
796 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
799 -build | --build | --buil | --bui | --bu)
800 ac_prev=build_alias ;;
801 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
802 build_alias=$ac_optarg ;;
804 -cache-file | --cache-file | --cache-fil | --cache-fi \
805 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
806 ac_prev=cache_file ;;
807 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
808 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
809 cache_file=$ac_optarg ;;
812 cache_file=config.cache ;;
814 -datadir | --datadir | --datadi | --datad)
816 -datadir=* | --datadir=* | --datadi=* | --datad=*)
817 datadir=$ac_optarg ;;
819 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
820 | --dataroo | --dataro | --datar)
821 ac_prev=datarootdir ;;
822 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
823 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
824 datarootdir=$ac_optarg ;;
826 -disable-* | --disable-*)
827 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
828 # Reject names that are not valid shell variable names.
829 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
830 as_fn_error "invalid feature name: $ac_useropt"
831 ac_useropt_orig=$ac_useropt
832 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
833 case $ac_user_opts in
837 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
838 ac_unrecognized_sep=', ';;
840 eval enable_$ac_useropt=no ;;
842 -docdir | --docdir | --docdi | --doc | --do)
844 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
847 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
849 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
852 -enable-* | --enable-*)
853 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
854 # Reject names that are not valid shell variable names.
855 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
856 as_fn_error "invalid feature name: $ac_useropt"
857 ac_useropt_orig=$ac_useropt
858 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
859 case $ac_user_opts in
863 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
864 ac_unrecognized_sep=', ';;
866 eval enable_$ac_useropt=\$ac_optarg ;;
868 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
869 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
870 | --exec | --exe | --ex)
871 ac_prev=exec_prefix ;;
872 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
873 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
874 | --exec=* | --exe=* | --ex=*)
875 exec_prefix=$ac_optarg ;;
877 -gas | --gas | --ga | --g)
878 # Obsolete; use --with-gas.
881 -help | --help | --hel | --he | -h)
883 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
884 ac_init_help=recursive ;;
885 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
886 ac_init_help=short ;;
888 -host | --host | --hos | --ho)
889 ac_prev=host_alias ;;
890 -host=* | --host=* | --hos=* | --ho=*)
891 host_alias=$ac_optarg ;;
893 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
895 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
897 htmldir=$ac_optarg ;;
899 -includedir | --includedir | --includedi | --included | --include \
900 | --includ | --inclu | --incl | --inc)
901 ac_prev=includedir ;;
902 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
903 | --includ=* | --inclu=* | --incl=* | --inc=*)
904 includedir=$ac_optarg ;;
906 -infodir | --infodir | --infodi | --infod | --info | --inf)
908 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
909 infodir=$ac_optarg ;;
911 -libdir | --libdir | --libdi | --libd)
913 -libdir=* | --libdir=* | --libdi=* | --libd=*)
916 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
917 | --libexe | --libex | --libe)
918 ac_prev=libexecdir ;;
919 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
920 | --libexe=* | --libex=* | --libe=*)
921 libexecdir=$ac_optarg ;;
923 -localedir | --localedir | --localedi | --localed | --locale)
925 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
926 localedir=$ac_optarg ;;
928 -localstatedir | --localstatedir | --localstatedi | --localstated \
929 | --localstate | --localstat | --localsta | --localst | --locals)
930 ac_prev=localstatedir ;;
931 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
932 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
933 localstatedir=$ac_optarg ;;
935 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
937 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
941 # Obsolete; use --without-fp.
944 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
945 | --no-cr | --no-c | -n)
948 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
949 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
952 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
953 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
954 | --oldin | --oldi | --old | --ol | --o)
955 ac_prev=oldincludedir ;;
956 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
957 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
958 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
959 oldincludedir=$ac_optarg ;;
961 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
963 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
966 -program-prefix | --program-prefix | --program-prefi | --program-pref \
967 | --program-pre | --program-pr | --program-p)
968 ac_prev=program_prefix ;;
969 -program-prefix=* | --program-prefix=* | --program-prefi=* \
970 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
971 program_prefix=$ac_optarg ;;
973 -program-suffix | --program-suffix | --program-suffi | --program-suff \
974 | --program-suf | --program-su | --program-s)
975 ac_prev=program_suffix ;;
976 -program-suffix=* | --program-suffix=* | --program-suffi=* \
977 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
978 program_suffix=$ac_optarg ;;
980 -program-transform-name | --program-transform-name \
981 | --program-transform-nam | --program-transform-na \
982 | --program-transform-n | --program-transform- \
983 | --program-transform | --program-transfor \
984 | --program-transfo | --program-transf \
985 | --program-trans | --program-tran \
986 | --progr-tra | --program-tr | --program-t)
987 ac_prev=program_transform_name ;;
988 -program-transform-name=* | --program-transform-name=* \
989 | --program-transform-nam=* | --program-transform-na=* \
990 | --program-transform-n=* | --program-transform-=* \
991 | --program-transform=* | --program-transfor=* \
992 | --program-transfo=* | --program-transf=* \
993 | --program-trans=* | --program-tran=* \
994 | --progr-tra=* | --program-tr=* | --program-t=*)
995 program_transform_name=$ac_optarg ;;
997 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
999 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1000 pdfdir=$ac_optarg ;;
1002 -psdir | --psdir | --psdi | --psd | --ps)
1004 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1007 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1008 | -silent | --silent | --silen | --sile | --sil)
1011 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1013 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1015 sbindir=$ac_optarg ;;
1017 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1018 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1019 | --sharedst | --shareds | --shared | --share | --shar \
1021 ac_prev=sharedstatedir ;;
1022 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1023 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1024 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1026 sharedstatedir=$ac_optarg ;;
1028 -site | --site | --sit)
1030 -site=* | --site=* | --sit=*)
1033 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1035 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1036 srcdir=$ac_optarg ;;
1038 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1039 | --syscon | --sysco | --sysc | --sys | --sy)
1040 ac_prev=sysconfdir ;;
1041 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1042 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1043 sysconfdir=$ac_optarg ;;
1045 -target | --target | --targe | --targ | --tar | --ta | --t)
1046 ac_prev=target_alias ;;
1047 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1048 target_alias=$ac_optarg ;;
1050 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1053 -version | --version | --versio | --versi | --vers | -V)
1054 ac_init_version=: ;;
1057 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1058 # Reject names that are not valid shell variable names.
1059 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1060 as_fn_error "invalid package name: $ac_useropt"
1061 ac_useropt_orig=$ac_useropt
1062 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1063 case $ac_user_opts in
1067 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1068 ac_unrecognized_sep=', ';;
1070 eval with_$ac_useropt=\$ac_optarg ;;
1072 -without-* | --without-*)
1073 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1074 # Reject names that are not valid shell variable names.
1075 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1076 as_fn_error "invalid package name: $ac_useropt"
1077 ac_useropt_orig=$ac_useropt
1078 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1079 case $ac_user_opts in
1083 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1084 ac_unrecognized_sep=', ';;
1086 eval with_$ac_useropt=no ;;
1089 # Obsolete; use --with-x.
1092 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1093 | --x-incl | --x-inc | --x-in | --x-i)
1094 ac_prev=x_includes ;;
1095 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1096 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1097 x_includes=$ac_optarg ;;
1099 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1100 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1101 ac_prev=x_libraries ;;
1102 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1103 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1104 x_libraries=$ac_optarg ;;
1106 -*) as_fn_error "unrecognized option: \`$ac_option'
1107 Try \`$0 --help' for more information."
1111 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1112 # Reject names that are not valid shell variable names.
1113 case $ac_envvar in #(
1114 '' | [0-9]* | *[!_$as_cr_alnum]* )
1115 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1117 eval $ac_envvar=\$ac_optarg
1118 export $ac_envvar ;;
1121 # FIXME: should be removed in autoconf 3.0.
1122 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1123 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1124 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1125 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1131 if test -n "$ac_prev"; then
1132 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1133 as_fn_error "missing argument to $ac_option"
1136 if test -n "$ac_unrecognized_opts"; then
1137 case $enable_option_checking in
1139 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1140 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1144 # Check all directory arguments for consistency.
1145 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1146 datadir sysconfdir sharedstatedir localstatedir includedir \
1147 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1148 libdir localedir mandir
1150 eval ac_val=\$$ac_var
1151 # Remove trailing slashes.
1154 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1155 eval $ac_var=\$ac_val;;
1157 # Be sure to have absolute directory names.
1159 [\\/$]* | ?:[\\/]* ) continue;;
1160 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1162 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1165 # There might be people who depend on the old broken behavior: `$host'
1166 # used to hold the argument of --host etc.
1167 # FIXME: To remove some day.
1170 target=$target_alias
1172 # FIXME: To remove some day.
1173 if test "x$host_alias" != x; then
1174 if test "x$build_alias" = x; then
1175 cross_compiling=maybe
1176 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1177 If a cross compiler is detected then cross compile mode will be used." >&2
1178 elif test "x$build_alias" != "x$host_alias"; then
1184 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1186 test "$silent" = yes && exec 6>/dev/null
1189 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1190 ac_ls_di=`ls -di .` &&
1191 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1192 as_fn_error "working directory cannot be determined"
1193 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1194 as_fn_error "pwd does not report name of working directory"
1197 # Find the source files, if location was not specified.
1198 if test -z "$srcdir"; then
1199 ac_srcdir_defaulted=yes
1200 # Try the directory containing this script, then the parent directory.
1201 ac_confdir=`$as_dirname -- "$as_myself" ||
1202 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1203 X"$as_myself" : 'X\(//\)[^/]' \| \
1204 X"$as_myself" : 'X\(//\)$' \| \
1205 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1206 $as_echo X"$as_myself" |
1207 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1225 if test ! -r "$srcdir/$ac_unique_file"; then
1229 ac_srcdir_defaulted=no
1231 if test ! -r "$srcdir/$ac_unique_file"; then
1232 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1233 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1235 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1237 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1239 # When building in place, set srcdir=.
1240 if test "$ac_abs_confdir" = "$ac_pwd"; then
1243 # Remove unnecessary trailing slashes from srcdir.
1244 # Double slashes in file names in object file debugging info
1245 # mess up M-x gdb in Emacs.
1247 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1249 for ac_var in $ac_precious_vars; do
1250 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1251 eval ac_env_${ac_var}_value=\$${ac_var}
1252 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1253 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1257 # Report the --help message.
1259 if test "$ac_init_help" = "long"; then
1260 # Omit some internal or obsolete options to make the list less imposing.
1261 # This message is too long to be a string in the A/UX 3.1 sh.
1263 \`configure' configures this package to adapt to many kinds of systems.
1265 Usage: $0 [OPTION]... [VAR=VALUE]...
1267 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1268 VAR=VALUE. See below for descriptions of some of the useful variables.
1270 Defaults for the options are specified in brackets.
1273 -h, --help display this help and exit
1274 --help=short display options specific to this package
1275 --help=recursive display the short help of all the included packages
1276 -V, --version display version information and exit
1277 -q, --quiet, --silent do not print \`checking...' messages
1278 --cache-file=FILE cache test results in FILE [disabled]
1279 -C, --config-cache alias for \`--cache-file=config.cache'
1280 -n, --no-create do not create output files
1281 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1283 Installation directories:
1284 --prefix=PREFIX install architecture-independent files in PREFIX
1285 [$ac_default_prefix]
1286 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1289 By default, \`make install' will install all the files in
1290 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1291 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1292 for instance \`--prefix=\$HOME'.
1294 For better control, use the options below.
1296 Fine tuning of the installation directories:
1297 --bindir=DIR user executables [EPREFIX/bin]
1298 --sbindir=DIR system admin executables [EPREFIX/sbin]
1299 --libexecdir=DIR program executables [EPREFIX/libexec]
1300 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1301 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1302 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1303 --libdir=DIR object code libraries [EPREFIX/lib]
1304 --includedir=DIR C header files [PREFIX/include]
1305 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1306 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1307 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1308 --infodir=DIR info documentation [DATAROOTDIR/info]
1309 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1310 --mandir=DIR man documentation [DATAROOTDIR/man]
1311 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1312 --htmldir=DIR html documentation [DOCDIR]
1313 --dvidir=DIR dvi documentation [DOCDIR]
1314 --pdfdir=DIR pdf documentation [DOCDIR]
1315 --psdir=DIR ps documentation [DOCDIR]
1321 --program-prefix=PREFIX prepend PREFIX to installed program names
1322 --program-suffix=SUFFIX append SUFFIX to installed program names
1323 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1326 --x-includes=DIR X include files are in DIR
1327 --x-libraries=DIR X library files are in DIR
1331 if test -n "$ac_init_help"; then
1336 --disable-option-checking ignore unrecognized --enable/--with options
1337 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1338 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1339 --disable-dependency-tracking speeds up one-time build
1340 --enable-dependency-tracking do not reject slow dependency extractors
1343 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1344 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1345 --with-x use the X Window System
1347 Some influential environment variables:
1348 CC C compiler command
1349 CFLAGS C compiler flags
1350 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1351 nonstandard directory <lib dir>
1352 LIBS libraries to pass to the linker, e.g. -l<library>
1353 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1354 you have headers in a nonstandard directory <include dir>
1355 CXX C++ compiler command
1356 CXXFLAGS C++ compiler flags
1358 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1359 the first program found out of: `bison -y', `byacc', `yacc'.
1360 YFLAGS The list of arguments that will be passed by default to $YACC.
1361 This script will default YFLAGS to the empty string to avoid a
1362 default value of `-d' given by some make applications.
1363 XMKMF Path to xmkmf, Makefile generator for X Window System
1365 Use these variables to override the choices made by `configure' or to help
1366 it to find libraries and programs with nonstandard names/locations.
1368 Report bugs to the package provider.
1373 if test "$ac_init_help" = "recursive"; then
1374 # If there are subdirs, report their specific --help.
1375 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1376 test -d "$ac_dir" ||
1377 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1382 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1384 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1385 # A ".." for each directory in $ac_dir_suffix.
1386 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1387 case $ac_top_builddir_sub in
1388 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1389 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1392 ac_abs_top_builddir=$ac_pwd
1393 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1394 # for backward compatibility:
1395 ac_top_builddir=$ac_top_build_prefix
1398 .) # We are building in place.
1400 ac_top_srcdir=$ac_top_builddir_sub
1401 ac_abs_top_srcdir=$ac_pwd ;;
1402 [\\/]* | ?:[\\/]* ) # Absolute name.
1403 ac_srcdir=$srcdir$ac_dir_suffix;
1404 ac_top_srcdir=$srcdir
1405 ac_abs_top_srcdir=$srcdir ;;
1407 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1408 ac_top_srcdir=$ac_top_build_prefix$srcdir
1409 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1411 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1413 cd "$ac_dir" || { ac_status=$?; continue; }
1414 # Check for guested configure.
1415 if test -f "$ac_srcdir/configure.gnu"; then
1417 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1418 elif test -f "$ac_srcdir/configure"; then
1420 $SHELL "$ac_srcdir/configure" --help=recursive
1422 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1424 cd "$ac_pwd" || { ac_status=$?; break; }
1428 test -n "$ac_init_help" && exit $ac_status
1429 if $ac_init_version; then
1432 generated by GNU Autoconf 2.65
1434 Copyright (C) 2009 Free Software Foundation, Inc.
1435 This configure script is free software; the Free Software Foundation
1436 gives unlimited permission to copy, distribute and modify it.
1441 ## ------------------------ ##
1442 ## Autoconf initialization. ##
1443 ## ------------------------ ##
1445 # ac_fn_c_try_compile LINENO
1446 # --------------------------
1447 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1448 ac_fn_c_try_compile ()
1450 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1451 rm -f conftest.$ac_objext
1452 if { { ac_try="$ac_compile"
1454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1455 *) ac_try_echo=$ac_try;;
1457 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1458 $as_echo "$ac_try_echo"; } >&5
1459 (eval "$ac_compile") 2>conftest.err
1461 if test -s conftest.err; then
1462 grep -v '^ *+' conftest.err >conftest.er1
1463 cat conftest.er1 >&5
1464 mv -f conftest.er1 conftest.err
1466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1467 test $ac_status = 0; } && {
1468 test -z "$ac_c_werror_flag" ||
1469 test ! -s conftest.err
1470 } && test -s conftest.$ac_objext; then :
1473 $as_echo "$as_me: failed program was:" >&5
1474 sed 's/^/| /' conftest.$ac_ext >&5
1478 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1479 as_fn_set_status $ac_retval
1481 } # ac_fn_c_try_compile
1483 # ac_fn_cxx_try_compile LINENO
1484 # ----------------------------
1485 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1486 ac_fn_cxx_try_compile ()
1488 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1489 rm -f conftest.$ac_objext
1490 if { { ac_try="$ac_compile"
1492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1493 *) ac_try_echo=$ac_try;;
1495 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1496 $as_echo "$ac_try_echo"; } >&5
1497 (eval "$ac_compile") 2>conftest.err
1499 if test -s conftest.err; then
1500 grep -v '^ *+' conftest.err >conftest.er1
1501 cat conftest.er1 >&5
1502 mv -f conftest.er1 conftest.err
1504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1505 test $ac_status = 0; } && {
1506 test -z "$ac_cxx_werror_flag" ||
1507 test ! -s conftest.err
1508 } && test -s conftest.$ac_objext; then :
1511 $as_echo "$as_me: failed program was:" >&5
1512 sed 's/^/| /' conftest.$ac_ext >&5
1516 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1517 as_fn_set_status $ac_retval
1519 } # ac_fn_cxx_try_compile
1521 # ac_fn_c_try_cpp LINENO
1522 # ----------------------
1523 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1526 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1527 if { { ac_try="$ac_cpp conftest.$ac_ext"
1529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1530 *) ac_try_echo=$ac_try;;
1532 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1533 $as_echo "$ac_try_echo"; } >&5
1534 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1536 if test -s conftest.err; then
1537 grep -v '^ *+' conftest.err >conftest.er1
1538 cat conftest.er1 >&5
1539 mv -f conftest.er1 conftest.err
1541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1542 test $ac_status = 0; } >/dev/null && {
1543 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1544 test ! -s conftest.err
1548 $as_echo "$as_me: failed program was:" >&5
1549 sed 's/^/| /' conftest.$ac_ext >&5
1553 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1554 as_fn_set_status $ac_retval
1558 # ac_fn_c_try_link LINENO
1559 # -----------------------
1560 # Try to link conftest.$ac_ext, and return whether this succeeded.
1563 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1564 rm -f conftest.$ac_objext conftest$ac_exeext
1565 if { { ac_try="$ac_link"
1567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1568 *) ac_try_echo=$ac_try;;
1570 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1571 $as_echo "$ac_try_echo"; } >&5
1572 (eval "$ac_link") 2>conftest.err
1574 if test -s conftest.err; then
1575 grep -v '^ *+' conftest.err >conftest.er1
1576 cat conftest.er1 >&5
1577 mv -f conftest.er1 conftest.err
1579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1580 test $ac_status = 0; } && {
1581 test -z "$ac_c_werror_flag" ||
1582 test ! -s conftest.err
1583 } && test -s conftest$ac_exeext && {
1584 test "$cross_compiling" = yes ||
1585 $as_test_x conftest$ac_exeext
1589 $as_echo "$as_me: failed program was:" >&5
1590 sed 's/^/| /' conftest.$ac_ext >&5
1594 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1595 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1596 # interfere with the next link command; also delete a directory that is
1597 # left behind by Apple's compiler. We do this before executing the actions.
1598 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1599 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1600 as_fn_set_status $ac_retval
1602 } # ac_fn_c_try_link
1604 # ac_fn_c_check_func LINENO FUNC VAR
1605 # ----------------------------------
1606 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1607 ac_fn_c_check_func ()
1609 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1611 $as_echo_n "checking for $2... " >&6; }
1612 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1613 $as_echo_n "(cached) " >&6
1615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1616 /* end confdefs.h. */
1617 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1618 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1619 #define $2 innocuous_$2
1621 /* System header to define __stub macros and hopefully few prototypes,
1622 which can conflict with char $2 (); below.
1623 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1624 <limits.h> exists even on freestanding compilers. */
1627 # include <limits.h>
1629 # include <assert.h>
1634 /* Override any GCC internal prototype to avoid an error.
1635 Use char because int might match the return type of a GCC
1636 builtin and then its argument prototype would still apply. */
1641 /* The GNU C library defines this for functions which it implements
1642 to always fail with ENOSYS. Some functions are actually named
1643 something starting with __ and the normal name is an alias. */
1644 #if defined __stub_$2 || defined __stub___$2
1656 if ac_fn_c_try_link "$LINENO"; then :
1661 rm -f core conftest.err conftest.$ac_objext \
1662 conftest$ac_exeext conftest.$ac_ext
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1666 $as_echo "$ac_res" >&6; }
1667 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1669 } # ac_fn_c_check_func
1671 # ac_fn_c_try_run LINENO
1672 # ----------------------
1673 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1674 # that executables *can* be run.
1677 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1678 if { { ac_try="$ac_link"
1680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1681 *) ac_try_echo=$ac_try;;
1683 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1684 $as_echo "$ac_try_echo"; } >&5
1685 (eval "$ac_link") 2>&5
1687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1688 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1689 { { case "(($ac_try" in
1690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1691 *) ac_try_echo=$ac_try;;
1693 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1694 $as_echo "$ac_try_echo"; } >&5
1695 (eval "$ac_try") 2>&5
1697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1698 test $ac_status = 0; }; }; then :
1701 $as_echo "$as_me: program exited with status $ac_status" >&5
1702 $as_echo "$as_me: failed program was:" >&5
1703 sed 's/^/| /' conftest.$ac_ext >&5
1705 ac_retval=$ac_status
1707 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1708 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1709 as_fn_set_status $ac_retval
1713 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1714 # -------------------------------------------------------
1715 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1716 # the include files in INCLUDES and setting the cache variable VAR
1718 ac_fn_c_check_header_mongrel ()
1720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1723 $as_echo_n "checking for $2... " >&6; }
1724 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1725 $as_echo_n "(cached) " >&6
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1729 $as_echo "$ac_res" >&6; }
1731 # Is the header compilable?
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1733 $as_echo_n "checking $2 usability... " >&6; }
1734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1735 /* end confdefs.h. */
1739 if ac_fn_c_try_compile "$LINENO"; then :
1740 ac_header_compiler=yes
1742 ac_header_compiler=no
1744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1746 $as_echo "$ac_header_compiler" >&6; }
1748 # Is the header present?
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1750 $as_echo_n "checking $2 presence... " >&6; }
1751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1752 /* end confdefs.h. */
1755 if ac_fn_c_try_cpp "$LINENO"; then :
1756 ac_header_preproc=yes
1758 ac_header_preproc=no
1760 rm -f conftest.err conftest.$ac_ext
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1762 $as_echo "$ac_header_preproc" >&6; }
1764 # So? What about this header?
1765 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1768 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1770 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1774 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1776 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1778 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1780 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1782 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1786 $as_echo_n "checking for $2... " >&6; }
1787 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1788 $as_echo_n "(cached) " >&6
1790 eval "$3=\$ac_header_compiler"
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1794 $as_echo "$ac_res" >&6; }
1796 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1798 } # ac_fn_c_check_header_mongrel
1800 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1801 # -------------------------------------------------------
1802 # Tests whether HEADER exists and can be compiled using the include files in
1803 # INCLUDES, setting the cache variable VAR accordingly.
1804 ac_fn_c_check_header_compile ()
1806 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1808 $as_echo_n "checking for $2... " >&6; }
1809 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1810 $as_echo_n "(cached) " >&6
1812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1813 /* end confdefs.h. */
1817 if ac_fn_c_try_compile "$LINENO"; then :
1822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1826 $as_echo "$ac_res" >&6; }
1827 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1829 } # ac_fn_c_check_header_compile
1830 cat >config.log <<_ACEOF
1831 This file contains any messages produced by compilers while
1832 running configure, to aid debugging if configure makes a mistake.
1834 It was created by $as_me, which was
1835 generated by GNU Autoconf 2.65. Invocation command line was
1847 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1848 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1849 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1850 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1851 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1853 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1854 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1856 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1857 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1858 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1859 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1860 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1861 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1862 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1870 test -z "$as_dir" && as_dir=.
1871 $as_echo "PATH: $as_dir"
1887 # Keep a trace of the command line.
1888 # Strip out --no-create and --no-recursion so they do not pile up.
1889 # Strip out --silent because we don't want to record it for future runs.
1890 # Also quote any args containing shell meta-characters.
1891 # Make two passes to allow for proper duplicate-argument suppression.
1895 ac_must_keep_next=false
1901 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1902 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1903 | -silent | --silent | --silen | --sile | --sil)
1906 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1909 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1911 as_fn_append ac_configure_args1 " '$ac_arg'"
1912 if test $ac_must_keep_next = true; then
1913 ac_must_keep_next=false # Got value, back to normal.
1916 *=* | --config-cache | -C | -disable-* | --disable-* \
1917 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1918 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1919 | -with-* | --with-* | -without-* | --without-* | --x)
1920 case "$ac_configure_args0 " in
1921 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1924 -* ) ac_must_keep_next=true ;;
1927 as_fn_append ac_configure_args " '$ac_arg'"
1932 { ac_configure_args0=; unset ac_configure_args0;}
1933 { ac_configure_args1=; unset ac_configure_args1;}
1935 # When interrupted or exit'd, cleanup temporary files, and complete
1936 # config.log. We remove comments because anyway the quotes in there
1937 # would cause problems or look ugly.
1938 # WARNING: Use '\'' to represent an apostrophe within the trap.
1939 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1940 trap 'exit_status=$?
1941 # Save into config.log some information that might help in debugging.
1946 ## ---------------- ##
1947 ## Cache variables. ##
1948 ## ---------------- ##
1951 # The following way of writing the cache mishandles newlines in values,
1953 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1954 eval ac_val=\$$ac_var
1958 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1959 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1962 _ | IFS | as_nl) ;; #(
1963 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1964 *) { eval $ac_var=; unset $ac_var;} ;;
1969 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1970 *${as_nl}ac_space=\ *)
1972 "s/'\''/'\''\\\\'\'''\''/g;
1973 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1976 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1984 ## ----------------- ##
1985 ## Output variables. ##
1986 ## ----------------- ##
1989 for ac_var in $ac_subst_vars
1991 eval ac_val=\$$ac_var
1993 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1995 $as_echo "$ac_var='\''$ac_val'\''"
1999 if test -n "$ac_subst_files"; then
2001 ## ------------------- ##
2002 ## File substitutions. ##
2003 ## ------------------- ##
2006 for ac_var in $ac_subst_files
2008 eval ac_val=\$$ac_var
2010 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2012 $as_echo "$ac_var='\''$ac_val'\''"
2017 if test -s confdefs.h; then
2027 test "$ac_signal" != 0 &&
2028 $as_echo "$as_me: caught signal $ac_signal"
2029 $as_echo "$as_me: exit $exit_status"
2031 rm -f core *.core core.conftest.* &&
2032 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2035 for ac_signal in 1 2 13 15; do
2036 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2040 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2041 rm -f -r conftest* confdefs.h
2043 $as_echo "/* confdefs.h */" > confdefs.h
2045 # Predefined preprocessor variables.
2047 cat >>confdefs.h <<_ACEOF
2048 #define PACKAGE_NAME "$PACKAGE_NAME"
2051 cat >>confdefs.h <<_ACEOF
2052 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2055 cat >>confdefs.h <<_ACEOF
2056 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2059 cat >>confdefs.h <<_ACEOF
2060 #define PACKAGE_STRING "$PACKAGE_STRING"
2063 cat >>confdefs.h <<_ACEOF
2064 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2067 cat >>confdefs.h <<_ACEOF
2068 #define PACKAGE_URL "$PACKAGE_URL"
2072 # Let the site file select an alternate cache file if it wants to.
2073 # Prefer an explicitly selected file to automatically selected ones.
2076 if test -n "$CONFIG_SITE"; then
2077 ac_site_file1=$CONFIG_SITE
2078 elif test "x$prefix" != xNONE; then
2079 ac_site_file1=$prefix/share/config.site
2080 ac_site_file2=$prefix/etc/config.site
2082 ac_site_file1=$ac_default_prefix/share/config.site
2083 ac_site_file2=$ac_default_prefix/etc/config.site
2085 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2087 test "x$ac_site_file" = xNONE && continue
2088 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2090 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2091 sed 's/^/| /' "$ac_site_file" >&5
2096 if test -r "$cache_file"; then
2097 # Some versions of bash will fail to source /dev/null (special files
2098 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2099 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2101 $as_echo "$as_me: loading cache $cache_file" >&6;}
2103 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2104 *) . "./$cache_file";;
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2109 $as_echo "$as_me: creating cache $cache_file" >&6;}
2113 # Check that the precious variables saved in the cache have kept the same
2115 ac_cache_corrupted=false
2116 for ac_var in $ac_precious_vars; do
2117 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2118 eval ac_new_set=\$ac_env_${ac_var}_set
2119 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2120 eval ac_new_val=\$ac_env_${ac_var}_value
2121 case $ac_old_set,$ac_new_set in
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2124 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2125 ac_cache_corrupted=: ;;
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2128 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2129 ac_cache_corrupted=: ;;
2132 if test "x$ac_old_val" != "x$ac_new_val"; then
2133 # differences in whitespace do not lead to failure.
2134 ac_old_val_w=`echo x $ac_old_val`
2135 ac_new_val_w=`echo x $ac_new_val`
2136 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2138 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2139 ac_cache_corrupted=:
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2142 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2143 eval $ac_var=\$ac_old_val
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2146 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2148 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2151 # Pass precious variables to config.status.
2152 if test "$ac_new_set" = set; then
2154 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2155 *) ac_arg=$ac_var=$ac_new_val ;;
2157 case " $ac_configure_args " in
2158 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2159 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2163 if $ac_cache_corrupted; then
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2165 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2167 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2168 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2170 ## -------------------- ##
2171 ## Main body of script. ##
2172 ## -------------------- ##
2175 ac_cpp='$CPP $CPPFLAGS'
2176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2181 am__api_version='1.11'
2184 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2185 for ac_t in install-sh install.sh shtool; do
2186 if test -f "$ac_dir/$ac_t"; then
2188 ac_install_sh="$ac_aux_dir/$ac_t -c"
2193 if test -z "$ac_aux_dir"; then
2194 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2197 # These three variables are undocumented and unsupported,
2198 # and are intended to be withdrawn in a future Autoconf release.
2199 # They can cause serious problems if a builder's source tree is in a directory
2200 # whose full name contains unusual characters.
2201 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2202 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2203 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2206 # Find a good install program. We prefer a C program (faster),
2207 # so one script is as good as another. But avoid the broken or
2208 # incompatible versions:
2209 # SysV /etc/install, /usr/sbin/install
2210 # SunOS /usr/etc/install
2211 # IRIX /sbin/install
2213 # AmigaOS /C/install, which installs bootblocks on floppy discs
2214 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2215 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2216 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2217 # OS/2's system install, which has a completely different semantic
2218 # ./install, which can be erroneously created by make from ./install.sh.
2219 # Reject install programs that cannot install multiple files.
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2221 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2222 if test -z "$INSTALL"; then
2223 if test "${ac_cv_path_install+set}" = set; then :
2224 $as_echo_n "(cached) " >&6
2226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2230 test -z "$as_dir" && as_dir=.
2231 # Account for people who put trailing slashes in PATH elements.
2232 case $as_dir/ in #((
2233 ./ | .// | /[cC]/* | \
2234 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2235 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2238 # OSF1 and SCO ODT 3.0 have their own names for install.
2239 # Don't use installbsd from OSF since it installs stuff as root
2241 for ac_prog in ginstall scoinst install; do
2242 for ac_exec_ext in '' $ac_executable_extensions; do
2243 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2244 if test $ac_prog = install &&
2245 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2246 # AIX install. It has an incompatible calling convention.
2248 elif test $ac_prog = install &&
2249 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2250 # program-specific install script used by HP pwplus--don't use.
2253 rm -rf conftest.one conftest.two conftest.dir
2254 echo one > conftest.one
2255 echo two > conftest.two
2257 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2258 test -s conftest.one && test -s conftest.two &&
2259 test -s conftest.dir/conftest.one &&
2260 test -s conftest.dir/conftest.two
2262 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2275 rm -rf conftest.one conftest.two conftest.dir
2278 if test "${ac_cv_path_install+set}" = set; then
2279 INSTALL=$ac_cv_path_install
2281 # As a last resort, use the slow shell script. Don't cache a
2282 # value for INSTALL within a source directory, because that will
2283 # break other packages using the cache if that directory is
2284 # removed, or if the value is a relative name.
2285 INSTALL=$ac_install_sh
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2289 $as_echo "$INSTALL" >&6; }
2291 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2292 # It thinks the first close brace ends the variable substitution.
2293 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2295 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2297 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2300 $as_echo_n "checking whether build environment is sane... " >&6; }
2303 echo timestamp > conftest.file
2304 # Reject unsafe characters in $srcdir or the absolute working directory
2305 # name. Accept space and tab only in the latter.
2309 *[\\\"\#\$\&\'\`$am_lf]*)
2310 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2313 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2314 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2317 # Do `set' in a subshell so we don't clobber the current shell's
2318 # arguments. Must try -L first in case configure is actually a
2319 # symlink; some systems play weird games with the mod time of symlinks
2320 # (eg FreeBSD returns the mod time of the symlink's containing
2323 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2324 if test "$*" = "X"; then
2326 set X `ls -t "$srcdir/configure" conftest.file`
2329 if test "$*" != "X $srcdir/configure conftest.file" \
2330 && test "$*" != "X conftest.file $srcdir/configure"; then
2332 # If neither matched, then we have a broken ls. This can happen
2333 # if, for instance, CONFIG_SHELL is bash and it inherits a
2334 # broken ls alias from the environment. This has actually
2335 # happened. Such a system could not be considered "sane".
2336 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2337 alias in your environment" "$LINENO" 5
2340 test "$2" = conftest.file
2346 as_fn_error "newly created file is older than distributed files!
2347 Check your system clock" "$LINENO" 5
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2350 $as_echo "yes" >&6; }
2351 test "$program_prefix" != NONE &&
2352 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2353 # Use a double $ so make ignores it.
2354 test "$program_suffix" != NONE &&
2355 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2356 # Double any \ or $.
2357 # By default was `s,x,x', remove it if useless.
2358 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2359 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2361 # expand $ac_aux_dir to an absolute path
2362 am_aux_dir=`cd $ac_aux_dir && pwd`
2364 if test x"${MISSING+set}" != xset; then
2367 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2369 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2372 # Use eval to expand $SHELL
2373 if eval "$MISSING --run true"; then
2374 am_missing_run="$MISSING --run "
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2378 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2381 if test x"${install_sh}" != xset; then
2384 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2386 install_sh="\${SHELL} $am_aux_dir/install-sh"
2390 # Installed binaries are usually stripped using `strip' when the user
2391 # run `make install-strip'. However `strip' might not be the right
2392 # tool to use in cross-compilation environments, therefore Automake
2393 # will honor the `STRIP' environment variable to overrule this program.
2394 if test "$cross_compiling" != no; then
2395 if test -n "$ac_tool_prefix"; then
2396 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2397 set dummy ${ac_tool_prefix}strip; ac_word=$2
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2399 $as_echo_n "checking for $ac_word... " >&6; }
2400 if test "${ac_cv_prog_STRIP+set}" = set; then :
2401 $as_echo_n "(cached) " >&6
2403 if test -n "$STRIP"; then
2404 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2410 test -z "$as_dir" && as_dir=.
2411 for ac_exec_ext in '' $ac_executable_extensions; do
2412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2413 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2423 STRIP=$ac_cv_prog_STRIP
2424 if test -n "$STRIP"; then
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2426 $as_echo "$STRIP" >&6; }
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2429 $as_echo "no" >&6; }
2434 if test -z "$ac_cv_prog_STRIP"; then
2436 # Extract the first word of "strip", so it can be a program name with args.
2437 set dummy strip; ac_word=$2
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2439 $as_echo_n "checking for $ac_word... " >&6; }
2440 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2441 $as_echo_n "(cached) " >&6
2443 if test -n "$ac_ct_STRIP"; then
2444 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2450 test -z "$as_dir" && as_dir=.
2451 for ac_exec_ext in '' $ac_executable_extensions; do
2452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2453 ac_cv_prog_ac_ct_STRIP="strip"
2454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2463 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2464 if test -n "$ac_ct_STRIP"; then
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2466 $as_echo "$ac_ct_STRIP" >&6; }
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2469 $as_echo "no" >&6; }
2472 if test "x$ac_ct_STRIP" = x; then
2475 case $cross_compiling:$ac_tool_warned in
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2478 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2479 ac_tool_warned=yes ;;
2484 STRIP="$ac_cv_prog_STRIP"
2488 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2491 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2492 if test -z "$MKDIR_P"; then
2493 if test "${ac_cv_path_mkdir+set}" = set; then :
2494 $as_echo_n "(cached) " >&6
2496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2497 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2500 test -z "$as_dir" && as_dir=.
2501 for ac_prog in mkdir gmkdir; do
2502 for ac_exec_ext in '' $ac_executable_extensions; do
2503 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2504 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2505 'mkdir (GNU coreutils) '* | \
2506 'mkdir (coreutils) '* | \
2507 'mkdir (fileutils) '4.1*)
2508 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2518 test -d ./--version && rmdir ./--version
2519 if test "${ac_cv_path_mkdir+set}" = set; then
2520 MKDIR_P="$ac_cv_path_mkdir -p"
2522 # As a last resort, use the slow shell script. Don't cache a
2523 # value for MKDIR_P within a source directory, because that will
2524 # break other packages using the cache if that directory is
2525 # removed, or if the value is a relative name.
2526 MKDIR_P="$ac_install_sh -d"
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2530 $as_echo "$MKDIR_P" >&6; }
2534 [\\/$]* | ?:[\\/]*) ;;
2535 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2538 for ac_prog in gawk mawk nawk awk
2540 # Extract the first word of "$ac_prog", so it can be a program name with args.
2541 set dummy $ac_prog; ac_word=$2
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2543 $as_echo_n "checking for $ac_word... " >&6; }
2544 if test "${ac_cv_prog_AWK+set}" = set; then :
2545 $as_echo_n "(cached) " >&6
2547 if test -n "$AWK"; then
2548 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2554 test -z "$as_dir" && as_dir=.
2555 for ac_exec_ext in '' $ac_executable_extensions; do
2556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2557 ac_cv_prog_AWK="$ac_prog"
2558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2568 if test -n "$AWK"; then
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2570 $as_echo "$AWK" >&6; }
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2573 $as_echo "no" >&6; }
2577 test -n "$AWK" && break
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2581 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2583 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2584 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2585 $as_echo_n "(cached) " >&6
2587 cat >conftest.make <<\_ACEOF
2590 @echo '@@@%%%=$(MAKE)=@@@%%%'
2592 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2593 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2595 eval ac_cv_prog_make_${ac_make}_set=yes;;
2597 eval ac_cv_prog_make_${ac_make}_set=no;;
2601 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2603 $as_echo "yes" >&6; }
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2607 $as_echo "no" >&6; }
2608 SET_MAKE="MAKE=${MAKE-make}"
2611 rm -rf .tst 2>/dev/null
2612 mkdir .tst 2>/dev/null
2613 if test -d .tst; then
2618 rmdir .tst 2>/dev/null
2620 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2621 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2622 # is not polluted with repeated "-I."
2623 am__isrc=' -I$(srcdir)'
2624 # test to see if srcdir already configured
2625 if test -f $srcdir/config.status; then
2626 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2630 # test whether we have cygpath
2631 if test -z "$CYGPATH_W"; then
2632 if (cygpath --version) >/dev/null 2>/dev/null; then
2633 CYGPATH_W='cygpath -w'
2640 # Define the identity of the package.
2645 cat >>confdefs.h <<_ACEOF
2646 #define PACKAGE "$PACKAGE"
2650 cat >>confdefs.h <<_ACEOF
2651 #define VERSION "$VERSION"
2654 # Some tools Automake needs.
2656 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2659 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2662 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2665 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2668 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2670 # We need awk for the "check" target. The system "awk" is bad on
2672 # Always define AMTAR for backward compatibility.
2674 AMTAR=${AMTAR-"${am_missing_run}tar"}
2676 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2685 ac_cpp='$CPP $CPPFLAGS'
2686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2689 if test -n "$ac_tool_prefix"; then
2690 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2691 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2693 $as_echo_n "checking for $ac_word... " >&6; }
2694 if test "${ac_cv_prog_CC+set}" = set; then :
2695 $as_echo_n "(cached) " >&6
2697 if test -n "$CC"; then
2698 ac_cv_prog_CC="$CC" # Let the user override the test.
2700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2704 test -z "$as_dir" && as_dir=.
2705 for ac_exec_ext in '' $ac_executable_extensions; do
2706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2707 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2718 if test -n "$CC"; then
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2720 $as_echo "$CC" >&6; }
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2723 $as_echo "no" >&6; }
2728 if test -z "$ac_cv_prog_CC"; then
2730 # Extract the first word of "gcc", so it can be a program name with args.
2731 set dummy gcc; ac_word=$2
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2733 $as_echo_n "checking for $ac_word... " >&6; }
2734 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2735 $as_echo_n "(cached) " >&6
2737 if test -n "$ac_ct_CC"; then
2738 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2744 test -z "$as_dir" && as_dir=.
2745 for ac_exec_ext in '' $ac_executable_extensions; do
2746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2747 ac_cv_prog_ac_ct_CC="gcc"
2748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2757 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2758 if test -n "$ac_ct_CC"; then
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2760 $as_echo "$ac_ct_CC" >&6; }
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2763 $as_echo "no" >&6; }
2766 if test "x$ac_ct_CC" = x; then
2769 case $cross_compiling:$ac_tool_warned in
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2772 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2773 ac_tool_warned=yes ;;
2781 if test -z "$CC"; then
2782 if test -n "$ac_tool_prefix"; then
2783 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2784 set dummy ${ac_tool_prefix}cc; ac_word=$2
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2786 $as_echo_n "checking for $ac_word... " >&6; }
2787 if test "${ac_cv_prog_CC+set}" = set; then :
2788 $as_echo_n "(cached) " >&6
2790 if test -n "$CC"; then
2791 ac_cv_prog_CC="$CC" # Let the user override the test.
2793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2797 test -z "$as_dir" && as_dir=.
2798 for ac_exec_ext in '' $ac_executable_extensions; do
2799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2800 ac_cv_prog_CC="${ac_tool_prefix}cc"
2801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2811 if test -n "$CC"; then
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2813 $as_echo "$CC" >&6; }
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2816 $as_echo "no" >&6; }
2822 if test -z "$CC"; then
2823 # Extract the first word of "cc", so it can be a program name with args.
2824 set dummy cc; ac_word=$2
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2826 $as_echo_n "checking for $ac_word... " >&6; }
2827 if test "${ac_cv_prog_CC+set}" = set; then :
2828 $as_echo_n "(cached) " >&6
2830 if test -n "$CC"; then
2831 ac_cv_prog_CC="$CC" # Let the user override the test.
2834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2838 test -z "$as_dir" && as_dir=.
2839 for ac_exec_ext in '' $ac_executable_extensions; do
2840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2841 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2842 ac_prog_rejected=yes
2846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2853 if test $ac_prog_rejected = yes; then
2854 # We found a bogon in the path, so make sure we never use it.
2855 set dummy $ac_cv_prog_CC
2857 if test $# != 0; then
2858 # We chose a different compiler from the bogus one.
2859 # However, it has the same basename, so the bogon will be chosen
2860 # first if we set CC to just the basename; use the full file name.
2862 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2868 if test -n "$CC"; then
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2870 $as_echo "$CC" >&6; }
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2873 $as_echo "no" >&6; }
2878 if test -z "$CC"; then
2879 if test -n "$ac_tool_prefix"; then
2880 for ac_prog in cl.exe
2882 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2883 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2885 $as_echo_n "checking for $ac_word... " >&6; }
2886 if test "${ac_cv_prog_CC+set}" = set; then :
2887 $as_echo_n "(cached) " >&6
2889 if test -n "$CC"; then
2890 ac_cv_prog_CC="$CC" # Let the user override the test.
2892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2896 test -z "$as_dir" && as_dir=.
2897 for ac_exec_ext in '' $ac_executable_extensions; do
2898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2899 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2910 if test -n "$CC"; then
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2912 $as_echo "$CC" >&6; }
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2915 $as_echo "no" >&6; }
2919 test -n "$CC" && break
2922 if test -z "$CC"; then
2924 for ac_prog in cl.exe
2926 # Extract the first word of "$ac_prog", so it can be a program name with args.
2927 set dummy $ac_prog; ac_word=$2
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2929 $as_echo_n "checking for $ac_word... " >&6; }
2930 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2931 $as_echo_n "(cached) " >&6
2933 if test -n "$ac_ct_CC"; then
2934 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2940 test -z "$as_dir" && as_dir=.
2941 for ac_exec_ext in '' $ac_executable_extensions; do
2942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2943 ac_cv_prog_ac_ct_CC="$ac_prog"
2944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2953 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2954 if test -n "$ac_ct_CC"; then
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2956 $as_echo "$ac_ct_CC" >&6; }
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2959 $as_echo "no" >&6; }
2963 test -n "$ac_ct_CC" && break
2966 if test "x$ac_ct_CC" = x; then
2969 case $cross_compiling:$ac_tool_warned in
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2972 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2973 ac_tool_warned=yes ;;
2982 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2983 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2984 as_fn_error "no acceptable C compiler found in \$PATH
2985 See \`config.log' for more details." "$LINENO" 5; }
2987 # Provide some information about the compiler.
2988 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2991 for ac_option in --version -v -V -qversion; do
2992 { { ac_try="$ac_compiler $ac_option >&5"
2994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2995 *) ac_try_echo=$ac_try;;
2997 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2998 $as_echo "$ac_try_echo"; } >&5
2999 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3001 if test -s conftest.err; then
3003 ... rest of stderr output deleted ...
3004 10q' conftest.err >conftest.er1
3005 cat conftest.er1 >&5
3007 rm -f conftest.er1 conftest.err
3008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3009 test $ac_status = 0; }
3012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3013 /* end confdefs.h. */
3023 ac_clean_files_save=$ac_clean_files
3024 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3025 # Try to create an executable without -o first, disregard a.out.
3026 # It will help us diagnose broken compilers, and finding out an intuition
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3029 $as_echo_n "checking whether the C compiler works... " >&6; }
3030 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3032 # The possible output files:
3033 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3036 for ac_file in $ac_files
3039 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3040 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3045 if { { ac_try="$ac_link_default"
3047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048 *) ac_try_echo=$ac_try;;
3050 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3051 $as_echo "$ac_try_echo"; } >&5
3052 (eval "$ac_link_default") 2>&5
3054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3055 test $ac_status = 0; }; then :
3056 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3057 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3058 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3059 # so that the user can short-circuit this test for compilers unknown to
3061 for ac_file in $ac_files ''
3063 test -f "$ac_file" || continue
3065 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3068 # We found the default executable, but exeext='' is most
3072 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3074 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3076 # We set ac_cv_exeext here because the later test for it is not
3077 # safe: cross compilers may not add the suffix if given an `-o'
3078 # argument, so we may need to know it at that point already.
3079 # Even if this section looks crufty: it has the advantage of
3086 test "$ac_cv_exeext" = no && ac_cv_exeext=
3091 if test -z "$ac_file"; then :
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3093 $as_echo "no" >&6; }
3094 $as_echo "$as_me: failed program was:" >&5
3095 sed 's/^/| /' conftest.$ac_ext >&5
3097 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3098 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3099 { as_fn_set_status 77
3100 as_fn_error "C compiler cannot create executables
3101 See \`config.log' for more details." "$LINENO" 5; }; }
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3104 $as_echo "yes" >&6; }
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3107 $as_echo_n "checking for C compiler default output file name... " >&6; }
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3109 $as_echo "$ac_file" >&6; }
3110 ac_exeext=$ac_cv_exeext
3112 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3113 ac_clean_files=$ac_clean_files_save
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3115 $as_echo_n "checking for suffix of executables... " >&6; }
3116 if { { ac_try="$ac_link"
3118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3119 *) ac_try_echo=$ac_try;;
3121 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3122 $as_echo "$ac_try_echo"; } >&5
3123 (eval "$ac_link") 2>&5
3125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3126 test $ac_status = 0; }; then :
3127 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3128 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3129 # work properly (i.e., refer to `conftest.exe'), while it won't with
3131 for ac_file in conftest.exe conftest conftest.*; do
3132 test -f "$ac_file" || continue
3134 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3135 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3141 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3142 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3143 as_fn_error "cannot compute suffix of executables: cannot compile and link
3144 See \`config.log' for more details." "$LINENO" 5; }
3146 rm -f conftest conftest$ac_cv_exeext
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3148 $as_echo "$ac_cv_exeext" >&6; }
3150 rm -f conftest.$ac_ext
3151 EXEEXT=$ac_cv_exeext
3153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3154 /* end confdefs.h. */
3159 FILE *f = fopen ("conftest.out", "w");
3160 return ferror (f) || fclose (f) != 0;
3166 ac_clean_files="$ac_clean_files conftest.out"
3167 # Check that the compiler produces executables we can run. If not, either
3168 # the compiler is broken, or we cross compile.
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3170 $as_echo_n "checking whether we are cross compiling... " >&6; }
3171 if test "$cross_compiling" != yes; then
3172 { { ac_try="$ac_link"
3174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3175 *) ac_try_echo=$ac_try;;
3177 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3178 $as_echo "$ac_try_echo"; } >&5
3179 (eval "$ac_link") 2>&5
3181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3182 test $ac_status = 0; }
3183 if { ac_try='./conftest$ac_cv_exeext'
3184 { { case "(($ac_try" in
3185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3186 *) ac_try_echo=$ac_try;;
3188 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3189 $as_echo "$ac_try_echo"; } >&5
3190 (eval "$ac_try") 2>&5
3192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3193 test $ac_status = 0; }; }; then
3196 if test "$cross_compiling" = maybe; then
3199 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3200 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3201 as_fn_error "cannot run C compiled programs.
3202 If you meant to cross compile, use \`--host'.
3203 See \`config.log' for more details." "$LINENO" 5; }
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3208 $as_echo "$cross_compiling" >&6; }
3210 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3211 ac_clean_files=$ac_clean_files_save
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3213 $as_echo_n "checking for suffix of object files... " >&6; }
3214 if test "${ac_cv_objext+set}" = set; then :
3215 $as_echo_n "(cached) " >&6
3217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3218 /* end confdefs.h. */
3228 rm -f conftest.o conftest.obj
3229 if { { ac_try="$ac_compile"
3231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232 *) ac_try_echo=$ac_try;;
3234 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3235 $as_echo "$ac_try_echo"; } >&5
3236 (eval "$ac_compile") 2>&5
3238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3239 test $ac_status = 0; }; then :
3240 for ac_file in conftest.o conftest.obj conftest.*; do
3241 test -f "$ac_file" || continue;
3243 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3244 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3249 $as_echo "$as_me: failed program was:" >&5
3250 sed 's/^/| /' conftest.$ac_ext >&5
3252 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3253 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3254 as_fn_error "cannot compute suffix of object files: cannot compile
3255 See \`config.log' for more details." "$LINENO" 5; }
3257 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3260 $as_echo "$ac_cv_objext" >&6; }
3261 OBJEXT=$ac_cv_objext
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3264 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3265 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3266 $as_echo_n "(cached) " >&6
3268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3269 /* end confdefs.h. */
3282 if ac_fn_c_try_compile "$LINENO"; then :
3287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3288 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3292 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3293 if test $ac_compiler_gnu = yes; then
3298 ac_test_CFLAGS=${CFLAGS+set}
3299 ac_save_CFLAGS=$CFLAGS
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3301 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3302 if test "${ac_cv_prog_cc_g+set}" = set; then :
3303 $as_echo_n "(cached) " >&6
3305 ac_save_c_werror_flag=$ac_c_werror_flag
3306 ac_c_werror_flag=yes
3309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3310 /* end confdefs.h. */
3320 if ac_fn_c_try_compile "$LINENO"; then :
3324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3325 /* end confdefs.h. */
3335 if ac_fn_c_try_compile "$LINENO"; then :
3338 ac_c_werror_flag=$ac_save_c_werror_flag
3340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3341 /* end confdefs.h. */
3351 if ac_fn_c_try_compile "$LINENO"; then :
3354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3359 ac_c_werror_flag=$ac_save_c_werror_flag
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3362 $as_echo "$ac_cv_prog_cc_g" >&6; }
3363 if test "$ac_test_CFLAGS" = set; then
3364 CFLAGS=$ac_save_CFLAGS
3365 elif test $ac_cv_prog_cc_g = yes; then
3366 if test "$GCC" = yes; then
3372 if test "$GCC" = yes; then
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3379 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3380 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3381 $as_echo_n "(cached) " >&6
3383 ac_cv_prog_cc_c89=no
3385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3386 /* end confdefs.h. */
3389 #include <sys/types.h>
3390 #include <sys/stat.h>
3391 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3392 struct buf { int x; };
3393 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3394 static char *e (p, i)
3400 static char *f (char * (*g) (char **, int), char **p, ...)
3405 s = g (p, va_arg (v,int));
3410 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3411 function prototypes and stuff, but not '\xHH' hex character constants.
3412 These don't provoke an error unfortunately, instead are silently treated
3413 as 'x'. The following induces an error, until -std is added to get
3414 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3415 array size at least. It's necessary to write '\x00'==0 to get something
3416 that's true only with -std. */
3417 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3419 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3420 inside strings and character constants. */
3422 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3424 int test (int i, double x);
3425 struct s1 {int (*f) (int a);};
3426 struct s2 {int (*f) (double a);};
3427 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3433 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3438 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3439 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3441 CC="$ac_save_CC $ac_arg"
3442 if ac_fn_c_try_compile "$LINENO"; then :
3443 ac_cv_prog_cc_c89=$ac_arg
3445 rm -f core conftest.err conftest.$ac_objext
3446 test "x$ac_cv_prog_cc_c89" != "xno" && break
3448 rm -f conftest.$ac_ext
3453 case "x$ac_cv_prog_cc_c89" in
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3456 $as_echo "none needed" >&6; } ;;
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3459 $as_echo "unsupported" >&6; } ;;
3461 CC="$CC $ac_cv_prog_cc_c89"
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3463 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3465 if test "x$ac_cv_prog_cc_c89" != xno; then :
3470 ac_cpp='$CPP $CPPFLAGS'
3471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3474 DEPDIR="${am__leading_dot}deps"
3476 ac_config_commands="$ac_config_commands depfiles"
3479 am_make=${MAKE-make}
3480 cat > confinc << 'END'
3482 @echo this is the am__doit target
3485 # If we don't find an include directive, just comment out the code.
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3487 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3491 # First try GNU make style include.
3492 echo "include confinc" > confmf
3493 # Ignore all kinds of additional output from `make'.
3494 case `$am_make -s -f confmf 2> /dev/null` in #(
3495 *the\ am__doit\ target*)
3501 # Now try BSD make style include.
3502 if test "$am__include" = "#"; then
3503 echo '.include "confinc"' > confmf
3504 case `$am_make -s -f confmf 2> /dev/null` in #(
3505 *the\ am__doit\ target*)
3506 am__include=.include
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3515 $as_echo "$_am_result" >&6; }
3516 rm -f confinc confmf
3518 # Check whether --enable-dependency-tracking was given.
3519 if test "${enable_dependency_tracking+set}" = set; then :
3520 enableval=$enable_dependency_tracking;
3523 if test "x$enable_dependency_tracking" != xno; then
3524 am_depcomp="$ac_aux_dir/depcomp"
3527 if test "x$enable_dependency_tracking" != xno; then
3537 depcc="$CC" am_compiler_list=
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3540 $as_echo_n "checking dependency style of $depcc... " >&6; }
3541 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3542 $as_echo_n "(cached) " >&6
3544 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3545 # We make a subdir and do the tests there. Otherwise we can end up
3546 # making bogus files that we don't know about and never remove. For
3547 # instance it was reported that on HP-UX the gcc test will end up
3548 # making a dummy file named `D' -- because `-MD' means `put the output
3551 # Copy depcomp to subdir because otherwise we won't find it if we're
3552 # using a relative directory.
3553 cp "$am_depcomp" conftest.dir
3555 # We will build objects and dependencies in a subdirectory because
3556 # it helps to detect inapplicable dependency modes. For instance
3557 # both Tru64's cc and ICC support -MD to output dependencies as a
3558 # side effect of compilation, but ICC will put the dependencies in
3559 # the current directory while Tru64 will put them in the object
3563 am_cv_CC_dependencies_compiler_type=none
3564 if test "$am_compiler_list" = ""; then
3565 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3568 case " $depcc " in #(
3569 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3572 for depmode in $am_compiler_list; do
3573 # Setup a source with many dependencies, because some compilers
3574 # like to wrap large dependency lists on column 80 (with \), and
3575 # we should not choose a depcomp mode which is confused by this.
3577 # We need to recreate these files for each test, as the compiler may
3578 # overwrite some of them when testing with obscure command lines.
3579 # This happens at least with the AIX C compiler.
3581 for i in 1 2 3 4 5 6; do
3582 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3583 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3584 # Solaris 8's {/usr,}/bin/sh.
3585 touch sub/conftst$i.h
3587 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3589 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3590 # mode. It turns out that the SunPro C++ compiler does not properly
3591 # handle `-M -o', and we need to detect this. Also, some Intel
3592 # versions had trouble with output in subdirs
3593 am__obj=sub/conftest.${OBJEXT-o}
3594 am__minus_obj="-o $am__obj"
3597 # This depmode causes a compiler race in universal mode.
3598 test "$am__universal" = false || continue
3601 # after this tag, mechanisms are not by side-effect, so they'll
3602 # only be used when explicitly requested
3603 if test "x$enable_dependency_tracking" = xyes; then
3609 msvisualcpp | msvcmsys)
3610 # This compiler won't grok `-c -o', but also, the minuso test has
3611 # not run yet. These depmodes are late enough in the game, and
3612 # so weak that their functioning should not be impacted.
3613 am__obj=conftest.${OBJEXT-o}
3618 if depmode=$depmode \
3619 source=sub/conftest.c object=$am__obj \
3620 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3621 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3622 >/dev/null 2>conftest.err &&
3623 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3624 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3625 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3626 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3627 # icc doesn't choke on unknown options, it will just issue warnings
3628 # or remarks (even with -Werror). So we grep stderr for any message
3629 # that says an option was ignored or not supported.
3630 # When given -MP, icc 7.0 and 7.1 complain thusly:
3631 # icc: Command line warning: ignoring option '-M'; no argument required
3632 # The diagnosis changed in icc 8.0:
3633 # icc: Command line remark: option '-MP' not supported
3634 if (grep 'ignoring option' conftest.err ||
3635 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3636 am_cv_CC_dependencies_compiler_type=$depmode
3645 am_cv_CC_dependencies_compiler_type=none
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3650 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3651 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3654 test "x$enable_dependency_tracking" != xno \
3655 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3657 am__fastdepCC_FALSE='#'
3659 am__fastdepCC_TRUE='#'
3660 am__fastdepCC_FALSE=
3665 ac_cpp='$CXXCPP $CPPFLAGS'
3666 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3667 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3668 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3669 if test -z "$CXX"; then
3670 if test -n "$CCC"; then
3673 if test -n "$ac_tool_prefix"; then
3674 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3676 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3677 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3679 $as_echo_n "checking for $ac_word... " >&6; }
3680 if test "${ac_cv_prog_CXX+set}" = set; then :
3681 $as_echo_n "(cached) " >&6
3683 if test -n "$CXX"; then
3684 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3690 test -z "$as_dir" && as_dir=.
3691 for ac_exec_ext in '' $ac_executable_extensions; do
3692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3693 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3704 if test -n "$CXX"; then
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3706 $as_echo "$CXX" >&6; }
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3709 $as_echo "no" >&6; }
3713 test -n "$CXX" && break
3716 if test -z "$CXX"; then
3718 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3720 # Extract the first word of "$ac_prog", so it can be a program name with args.
3721 set dummy $ac_prog; ac_word=$2
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3723 $as_echo_n "checking for $ac_word... " >&6; }
3724 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3725 $as_echo_n "(cached) " >&6
3727 if test -n "$ac_ct_CXX"; then
3728 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3734 test -z "$as_dir" && as_dir=.
3735 for ac_exec_ext in '' $ac_executable_extensions; do
3736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3737 ac_cv_prog_ac_ct_CXX="$ac_prog"
3738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3747 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3748 if test -n "$ac_ct_CXX"; then
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3750 $as_echo "$ac_ct_CXX" >&6; }
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3753 $as_echo "no" >&6; }
3757 test -n "$ac_ct_CXX" && break
3760 if test "x$ac_ct_CXX" = x; then
3763 case $cross_compiling:$ac_tool_warned in
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3766 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3767 ac_tool_warned=yes ;;
3775 # Provide some information about the compiler.
3776 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3779 for ac_option in --version -v -V -qversion; do
3780 { { ac_try="$ac_compiler $ac_option >&5"
3782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3783 *) ac_try_echo=$ac_try;;
3785 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3786 $as_echo "$ac_try_echo"; } >&5
3787 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3789 if test -s conftest.err; then
3791 ... rest of stderr output deleted ...
3792 10q' conftest.err >conftest.er1
3793 cat conftest.er1 >&5
3795 rm -f conftest.er1 conftest.err
3796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3797 test $ac_status = 0; }
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3801 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3802 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3803 $as_echo_n "(cached) " >&6
3805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3806 /* end confdefs.h. */
3819 if ac_fn_cxx_try_compile "$LINENO"; then :
3824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3825 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3829 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3830 if test $ac_compiler_gnu = yes; then
3835 ac_test_CXXFLAGS=${CXXFLAGS+set}
3836 ac_save_CXXFLAGS=$CXXFLAGS
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3838 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3839 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3840 $as_echo_n "(cached) " >&6
3842 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3843 ac_cxx_werror_flag=yes
3846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3847 /* end confdefs.h. */
3857 if ac_fn_cxx_try_compile "$LINENO"; then :
3858 ac_cv_prog_cxx_g=yes
3861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3862 /* end confdefs.h. */
3872 if ac_fn_cxx_try_compile "$LINENO"; then :
3875 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3878 /* end confdefs.h. */
3888 if ac_fn_cxx_try_compile "$LINENO"; then :
3889 ac_cv_prog_cxx_g=yes
3891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3896 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3899 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3900 if test "$ac_test_CXXFLAGS" = set; then
3901 CXXFLAGS=$ac_save_CXXFLAGS
3902 elif test $ac_cv_prog_cxx_g = yes; then
3903 if test "$GXX" = yes; then
3909 if test "$GXX" = yes; then
3916 ac_cpp='$CPP $CPPFLAGS'
3917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3921 depcc="$CXX" am_compiler_list=
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3924 $as_echo_n "checking dependency style of $depcc... " >&6; }
3925 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
3926 $as_echo_n "(cached) " >&6
3928 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3929 # We make a subdir and do the tests there. Otherwise we can end up
3930 # making bogus files that we don't know about and never remove. For
3931 # instance it was reported that on HP-UX the gcc test will end up
3932 # making a dummy file named `D' -- because `-MD' means `put the output
3935 # Copy depcomp to subdir because otherwise we won't find it if we're
3936 # using a relative directory.
3937 cp "$am_depcomp" conftest.dir
3939 # We will build objects and dependencies in a subdirectory because
3940 # it helps to detect inapplicable dependency modes. For instance
3941 # both Tru64's cc and ICC support -MD to output dependencies as a
3942 # side effect of compilation, but ICC will put the dependencies in
3943 # the current directory while Tru64 will put them in the object
3947 am_cv_CXX_dependencies_compiler_type=none
3948 if test "$am_compiler_list" = ""; then
3949 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3952 case " $depcc " in #(
3953 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3956 for depmode in $am_compiler_list; do
3957 # Setup a source with many dependencies, because some compilers
3958 # like to wrap large dependency lists on column 80 (with \), and
3959 # we should not choose a depcomp mode which is confused by this.
3961 # We need to recreate these files for each test, as the compiler may
3962 # overwrite some of them when testing with obscure command lines.
3963 # This happens at least with the AIX C compiler.
3965 for i in 1 2 3 4 5 6; do
3966 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3967 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3968 # Solaris 8's {/usr,}/bin/sh.
3969 touch sub/conftst$i.h
3971 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3973 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3974 # mode. It turns out that the SunPro C++ compiler does not properly
3975 # handle `-M -o', and we need to detect this. Also, some Intel
3976 # versions had trouble with output in subdirs
3977 am__obj=sub/conftest.${OBJEXT-o}
3978 am__minus_obj="-o $am__obj"
3981 # This depmode causes a compiler race in universal mode.
3982 test "$am__universal" = false || continue
3985 # after this tag, mechanisms are not by side-effect, so they'll
3986 # only be used when explicitly requested
3987 if test "x$enable_dependency_tracking" = xyes; then
3993 msvisualcpp | msvcmsys)
3994 # This compiler won't grok `-c -o', but also, the minuso test has
3995 # not run yet. These depmodes are late enough in the game, and
3996 # so weak that their functioning should not be impacted.
3997 am__obj=conftest.${OBJEXT-o}
4002 if depmode=$depmode \
4003 source=sub/conftest.c object=$am__obj \
4004 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4005 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4006 >/dev/null 2>conftest.err &&
4007 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4008 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4009 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4010 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4011 # icc doesn't choke on unknown options, it will just issue warnings
4012 # or remarks (even with -Werror). So we grep stderr for any message
4013 # that says an option was ignored or not supported.
4014 # When given -MP, icc 7.0 and 7.1 complain thusly:
4015 # icc: Command line warning: ignoring option '-M'; no argument required
4016 # The diagnosis changed in icc 8.0:
4017 # icc: Command line remark: option '-MP' not supported
4018 if (grep 'ignoring option' conftest.err ||
4019 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4020 am_cv_CXX_dependencies_compiler_type=$depmode
4029 am_cv_CXX_dependencies_compiler_type=none
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4034 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4035 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4038 test "x$enable_dependency_tracking" != xno \
4039 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4040 am__fastdepCXX_TRUE=
4041 am__fastdepCXX_FALSE='#'
4043 am__fastdepCXX_TRUE='#'
4044 am__fastdepCXX_FALSE=
4049 ac_cpp='$CPP $CPPFLAGS'
4050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4054 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4055 # On Suns, sometimes $CPP names a directory.
4056 if test -n "$CPP" && test -d "$CPP"; then
4059 if test -z "$CPP"; then
4060 if test "${ac_cv_prog_CPP+set}" = set; then :
4061 $as_echo_n "(cached) " >&6
4063 # Double quotes because CPP needs to be expanded
4064 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4067 for ac_c_preproc_warn_flag in '' yes
4069 # Use a header file that comes with gcc, so configuring glibc
4070 # with a fresh cross-compiler works.
4071 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4072 # <limits.h> exists even on freestanding compilers.
4073 # On the NeXT, cc -E runs the code through the compiler's parser,
4074 # not just through cpp. "Syntax error" is here to catch this case.
4075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4076 /* end confdefs.h. */
4078 # include <limits.h>
4080 # include <assert.h>
4084 if ac_fn_c_try_cpp "$LINENO"; then :
4087 # Broken: fails on valid input.
4090 rm -f conftest.err conftest.$ac_ext
4092 # OK, works on sane cases. Now check whether nonexistent headers
4093 # can be detected and how.
4094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4095 /* end confdefs.h. */
4096 #include <ac_nonexistent.h>
4098 if ac_fn_c_try_cpp "$LINENO"; then :
4099 # Broken: success on invalid input.
4102 # Passes both tests.
4106 rm -f conftest.err conftest.$ac_ext
4109 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4110 rm -f conftest.err conftest.$ac_ext
4111 if $ac_preproc_ok; then :
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4124 $as_echo "$CPP" >&6; }
4126 for ac_c_preproc_warn_flag in '' yes
4128 # Use a header file that comes with gcc, so configuring glibc
4129 # with a fresh cross-compiler works.
4130 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4131 # <limits.h> exists even on freestanding compilers.
4132 # On the NeXT, cc -E runs the code through the compiler's parser,
4133 # not just through cpp. "Syntax error" is here to catch this case.
4134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4135 /* end confdefs.h. */
4137 # include <limits.h>
4139 # include <assert.h>
4143 if ac_fn_c_try_cpp "$LINENO"; then :
4146 # Broken: fails on valid input.
4149 rm -f conftest.err conftest.$ac_ext
4151 # OK, works on sane cases. Now check whether nonexistent headers
4152 # can be detected and how.
4153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4154 /* end confdefs.h. */
4155 #include <ac_nonexistent.h>
4157 if ac_fn_c_try_cpp "$LINENO"; then :
4158 # Broken: success on invalid input.
4161 # Passes both tests.
4165 rm -f conftest.err conftest.$ac_ext
4168 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4169 rm -f conftest.err conftest.$ac_ext
4170 if $ac_preproc_ok; then :
4173 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4174 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4175 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4176 See \`config.log' for more details." "$LINENO" 5; }
4180 ac_cpp='$CPP $CPPFLAGS'
4181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4186 for ac_prog in flex lex
4188 # Extract the first word of "$ac_prog", so it can be a program name with args.
4189 set dummy $ac_prog; ac_word=$2
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4191 $as_echo_n "checking for $ac_word... " >&6; }
4192 if test "${ac_cv_prog_LEX+set}" = set; then :
4193 $as_echo_n "(cached) " >&6
4195 if test -n "$LEX"; then
4196 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4202 test -z "$as_dir" && as_dir=.
4203 for ac_exec_ext in '' $ac_executable_extensions; do
4204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4205 ac_cv_prog_LEX="$ac_prog"
4206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4216 if test -n "$LEX"; then
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
4218 $as_echo "$LEX" >&6; }
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4221 $as_echo "no" >&6; }
4225 test -n "$LEX" && break
4227 test -n "$LEX" || LEX=":"
4229 if test "x$LEX" != "x:"; then
4230 cat >conftest.l <<_ACEOF
4236 e { yyless (input () != 0); }
4237 f { unput (yytext[0]); }
4238 . { BEGIN INITIAL; }
4240 #ifdef YYTEXT_POINTER
4241 extern char *yytext;
4246 return ! yylex () + ! yywrap ();
4249 { { ac_try="$LEX conftest.l"
4251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4252 *) ac_try_echo=$ac_try;;
4254 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4255 $as_echo "$ac_try_echo"; } >&5
4256 (eval "$LEX conftest.l") 2>&5
4258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4259 test $ac_status = 0; }
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
4261 $as_echo_n "checking lex output file root... " >&6; }
4262 if test "${ac_cv_prog_lex_root+set}" = set; then :
4263 $as_echo_n "(cached) " >&6
4266 if test -f lex.yy.c; then
4267 ac_cv_prog_lex_root=lex.yy
4268 elif test -f lexyy.c; then
4269 ac_cv_prog_lex_root=lexyy
4271 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
4275 $as_echo "$ac_cv_prog_lex_root" >&6; }
4276 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4278 if test -z "${LEXLIB+set}"; then
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
4280 $as_echo_n "checking lex library... " >&6; }
4281 if test "${ac_cv_lib_lex+set}" = set; then :
4282 $as_echo_n "(cached) " >&6
4286 ac_cv_lib_lex='none needed'
4287 for ac_lib in '' -lfl -ll; do
4288 LIBS="$ac_lib $ac_save_LIBS"
4289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4290 /* end confdefs.h. */
4291 `cat $LEX_OUTPUT_ROOT.c`
4293 if ac_fn_c_try_link "$LINENO"; then :
4294 ac_cv_lib_lex=$ac_lib
4296 rm -f core conftest.err conftest.$ac_objext \
4297 conftest$ac_exeext conftest.$ac_ext
4298 test "$ac_cv_lib_lex" != 'none needed' && break
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
4304 $as_echo "$ac_cv_lib_lex" >&6; }
4305 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
4310 $as_echo_n "checking whether yytext is a pointer... " >&6; }
4311 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
4312 $as_echo_n "(cached) " >&6
4314 # POSIX says lex can declare yytext either as a pointer or an array; the
4315 # default is implementation-dependent. Figure out which it is, since
4316 # not all implementations provide the %pointer and %array declarations.
4317 ac_cv_prog_lex_yytext_pointer=no
4319 LIBS="$LEXLIB $ac_save_LIBS"
4320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4321 /* end confdefs.h. */
4322 #define YYTEXT_POINTER 1
4323 `cat $LEX_OUTPUT_ROOT.c`
4325 if ac_fn_c_try_link "$LINENO"; then :
4326 ac_cv_prog_lex_yytext_pointer=yes
4328 rm -f core conftest.err conftest.$ac_objext \
4329 conftest$ac_exeext conftest.$ac_ext
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
4334 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
4335 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4337 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
4340 rm -f conftest.l $LEX_OUTPUT_ROOT.c
4343 if test "$LEX" = :; then
4344 LEX=${am_missing_run}flex
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4348 $as_echo_n "checking whether ln -s works... " >&6; }
4350 if test "$LN_S" = "ln -s"; then
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4352 $as_echo "yes" >&6; }
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4355 $as_echo "no, using $LN_S" >&6; }
4358 if test -n "$ac_tool_prefix"; then
4359 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4360 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4362 $as_echo_n "checking for $ac_word... " >&6; }
4363 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4364 $as_echo_n "(cached) " >&6
4366 if test -n "$RANLIB"; then
4367 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4373 test -z "$as_dir" && as_dir=.
4374 for ac_exec_ext in '' $ac_executable_extensions; do
4375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4376 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4386 RANLIB=$ac_cv_prog_RANLIB
4387 if test -n "$RANLIB"; then
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4389 $as_echo "$RANLIB" >&6; }
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4392 $as_echo "no" >&6; }
4397 if test -z "$ac_cv_prog_RANLIB"; then
4398 ac_ct_RANLIB=$RANLIB
4399 # Extract the first word of "ranlib", so it can be a program name with args.
4400 set dummy ranlib; ac_word=$2
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4402 $as_echo_n "checking for $ac_word... " >&6; }
4403 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4404 $as_echo_n "(cached) " >&6
4406 if test -n "$ac_ct_RANLIB"; then
4407 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4413 test -z "$as_dir" && as_dir=.
4414 for ac_exec_ext in '' $ac_executable_extensions; do
4415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4416 ac_cv_prog_ac_ct_RANLIB="ranlib"
4417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4426 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4427 if test -n "$ac_ct_RANLIB"; then
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4429 $as_echo "$ac_ct_RANLIB" >&6; }
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4432 $as_echo "no" >&6; }
4435 if test "x$ac_ct_RANLIB" = x; then
4438 case $cross_compiling:$ac_tool_warned in
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4441 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4442 ac_tool_warned=yes ;;
4444 RANLIB=$ac_ct_RANLIB
4447 RANLIB="$ac_cv_prog_RANLIB"
4450 for ac_prog in 'bison -y' byacc
4452 # Extract the first word of "$ac_prog", so it can be a program name with args.
4453 set dummy $ac_prog; ac_word=$2
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4455 $as_echo_n "checking for $ac_word... " >&6; }
4456 if test "${ac_cv_prog_YACC+set}" = set; then :
4457 $as_echo_n "(cached) " >&6
4459 if test -n "$YACC"; then
4460 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4466 test -z "$as_dir" && as_dir=.
4467 for ac_exec_ext in '' $ac_executable_extensions; do
4468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4469 ac_cv_prog_YACC="$ac_prog"
4470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4479 YACC=$ac_cv_prog_YACC
4480 if test -n "$YACC"; then
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
4482 $as_echo "$YACC" >&6; }
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4485 $as_echo "no" >&6; }
4489 test -n "$YACC" && break
4491 test -n "$YACC" || YACC="yacc"
4493 for ac_prog in gawk mawk nawk awk
4495 # Extract the first word of "$ac_prog", so it can be a program name with args.
4496 set dummy $ac_prog; ac_word=$2
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4498 $as_echo_n "checking for $ac_word... " >&6; }
4499 if test "${ac_cv_prog_AWK+set}" = set; then :
4500 $as_echo_n "(cached) " >&6
4502 if test -n "$AWK"; then
4503 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4509 test -z "$as_dir" && as_dir=.
4510 for ac_exec_ext in '' $ac_executable_extensions; do
4511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4512 ac_cv_prog_AWK="$ac_prog"
4513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4523 if test -n "$AWK"; then
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4525 $as_echo "$AWK" >&6; }
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4528 $as_echo "no" >&6; }
4532 test -n "$AWK" && break
4536 # Extract the first word of "xml2-config", so it can be a program name with args.
4537 set dummy xml2-config; ac_word=$2
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4539 $as_echo_n "checking for $ac_word... " >&6; }
4540 if test "${ac_cv_path_XML_CONFIG+set}" = set; then :
4541 $as_echo_n "(cached) " >&6
4545 ac_cv_path_XML_CONFIG="$XML_CONFIG" # Let the user override the test with a path.
4548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4552 test -z "$as_dir" && as_dir=.
4553 for ac_exec_ext in '' $ac_executable_extensions; do
4554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4555 ac_cv_path_XML_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4563 test -z "$ac_cv_path_XML_CONFIG" && ac_cv_path_XML_CONFIG="no"
4567 XML_CONFIG=$ac_cv_path_XML_CONFIG
4568 if test -n "$XML_CONFIG"; then
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML_CONFIG" >&5
4570 $as_echo "$XML_CONFIG" >&6; }
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4573 $as_echo "no" >&6; }
4578 if test $XML_CONFIG = "no"
4580 echo "XML library not found (see http://xmlsoft.org/)."
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
4587 $as_echo_n "checking for X... " >&6; }
4590 # Check whether --with-x was given.
4591 if test "${with_x+set}" = set; then :
4595 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4596 if test "x$with_x" = xno; then
4597 # The user explicitly disabled X.
4600 case $x_includes,$x_libraries in #(
4601 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
4602 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
4603 $as_echo_n "(cached) " >&6
4605 # One or both of the vars are not set, and there is no cached value.
4606 ac_x_includes=no ac_x_libraries=no
4607 rm -f -r conftest.dir
4608 if mkdir conftest.dir; then
4610 cat >Imakefile <<'_ACEOF'
4612 @echo incroot='${INCROOT}'
4614 @echo usrlibdir='${USRLIBDIR}'
4616 @echo libdir='${LIBDIR}'
4618 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
4619 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4620 for ac_var in incroot usrlibdir libdir; do
4621 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
4623 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4624 for ac_extension in a so sl dylib la dll; do
4625 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
4626 test -f "$ac_im_libdir/libX11.$ac_extension"; then
4627 ac_im_usrlibdir=$ac_im_libdir; break
4630 # Screen out bogus values from the imake configuration. They are
4631 # bogus both because they are the default anyway, and because
4632 # using them would break gcc on systems where it needs fixed includes.
4633 case $ac_im_incroot in
4634 /usr/include) ac_x_includes= ;;
4635 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4637 case $ac_im_usrlibdir in
4638 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
4639 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4643 rm -f -r conftest.dir
4646 # Standard set of common directories for X headers.
4647 # Check X11 before X11Rn because it is often a symlink to the current release.
4661 /usr/local/X11/include
4662 /usr/local/X11R7/include
4663 /usr/local/X11R6/include
4664 /usr/local/X11R5/include
4665 /usr/local/X11R4/include
4667 /usr/local/include/X11
4668 /usr/local/include/X11R7
4669 /usr/local/include/X11R6
4670 /usr/local/include/X11R5
4671 /usr/local/include/X11R4
4675 /usr/XFree86/include/X11
4679 /usr/unsupported/include
4681 /usr/local/x11r5/include
4682 /usr/lpp/Xamples/include
4684 /usr/openwin/include
4685 /usr/openwin/share/include'
4687 if test "$ac_x_includes" = no; then
4688 # Guess where to find include files, by looking for Xlib.h.
4689 # First, try using that file with no special directory specified.
4690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4691 /* end confdefs.h. */
4692 #include <X11/Xlib.h>
4694 if ac_fn_c_try_cpp "$LINENO"; then :
4695 # We can compile using X headers with no special include directory.
4698 for ac_dir in $ac_x_header_dirs; do
4699 if test -r "$ac_dir/X11/Xlib.h"; then
4700 ac_x_includes=$ac_dir
4705 rm -f conftest.err conftest.$ac_ext
4706 fi # $ac_x_includes = no
4708 if test "$ac_x_libraries" = no; then
4709 # Check for the libraries.
4710 # See if we find them without any special options.
4711 # Don't add to $LIBS permanently.
4714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4715 /* end confdefs.h. */
4716 #include <X11/Xlib.h>
4725 if ac_fn_c_try_link "$LINENO"; then :
4727 # We can link X programs with no special library path.
4731 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4733 # Don't even attempt the hair of trying to link an X program!
4734 for ac_extension in a so sl dylib la dll; do
4735 if test -r "$ac_dir/libX11.$ac_extension"; then
4736 ac_x_libraries=$ac_dir
4742 rm -f core conftest.err conftest.$ac_objext \
4743 conftest$ac_exeext conftest.$ac_ext
4744 fi # $ac_x_libraries = no
4746 case $ac_x_includes,$ac_x_libraries in #(
4748 # Didn't find X, or a directory has "'" in its name.
4749 ac_cv_have_x="have_x=no";; #(
4751 # Record where we found X for the cache.
4752 ac_cv_have_x="have_x=yes\
4753 ac_x_includes='$ac_x_includes'\
4754 ac_x_libraries='$ac_x_libraries'"
4760 eval "$ac_cv_have_x"
4763 if test "$have_x" != yes; then
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
4765 $as_echo "$have_x" >&6; }
4768 # If each of the values was on the command line, it overrides each guess.
4769 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4770 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4771 # Update the cache value to reflect the command line values.
4772 ac_cv_have_x="have_x=yes\
4773 ac_x_includes='$x_includes'\
4774 ac_x_libraries='$x_libraries'"
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
4776 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
4779 if test "$no_x" = yes; then
4780 # Not all programs may use this symbol, but it does not hurt to define it.
4782 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
4784 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4786 if test -n "$x_includes"; then
4787 X_CFLAGS="$X_CFLAGS -I$x_includes"
4790 # It would also be nice to do this for all -L options, not just this one.
4791 if test -n "$x_libraries"; then
4792 X_LIBS="$X_LIBS -L$x_libraries"
4793 # For Solaris; some versions of Sun CC require a space after -R and
4794 # others require no space. Words are not sufficient . . . .
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
4796 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
4797 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4798 ac_xsave_c_werror_flag=$ac_c_werror_flag
4799 ac_c_werror_flag=yes
4800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4801 /* end confdefs.h. */
4811 if ac_fn_c_try_link "$LINENO"; then :
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4813 $as_echo "no" >&6; }
4814 X_LIBS="$X_LIBS -R$x_libraries"
4816 LIBS="$ac_xsave_LIBS -R $x_libraries"
4817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4818 /* end confdefs.h. */
4828 if ac_fn_c_try_link "$LINENO"; then :
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4830 $as_echo "yes" >&6; }
4831 X_LIBS="$X_LIBS -R $x_libraries"
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
4834 $as_echo "neither works" >&6; }
4836 rm -f core conftest.err conftest.$ac_objext \
4837 conftest$ac_exeext conftest.$ac_ext
4839 rm -f core conftest.err conftest.$ac_objext \
4840 conftest$ac_exeext conftest.$ac_ext
4841 ac_c_werror_flag=$ac_xsave_c_werror_flag
4845 # Check for system-dependent libraries X programs must link with.
4846 # Do this before checking for the system-independent R6 libraries
4847 # (-lICE), since we may need -lsocket or whatever for X linking.
4849 if test "$ISC" = yes; then
4850 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4852 # Martyn Johnson says this is needed for Ultrix, if the X
4853 # libraries were built with DECnet support. And Karl Berry says
4854 # the Alpha needs dnet_stub (dnet does not exist).
4855 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4857 /* end confdefs.h. */
4859 /* Override any GCC internal prototype to avoid an error.
4860 Use char because int might match the return type of a GCC
4861 builtin and then its argument prototype would still apply. */
4865 char XOpenDisplay ();
4869 return XOpenDisplay ();
4874 if ac_fn_c_try_link "$LINENO"; then :
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
4878 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
4879 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
4880 $as_echo_n "(cached) " >&6
4882 ac_check_lib_save_LIBS=$LIBS
4884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4885 /* end confdefs.h. */
4887 /* Override any GCC internal prototype to avoid an error.
4888 Use char because int might match the return type of a GCC
4889 builtin and then its argument prototype would still apply. */
4897 return dnet_ntoa ();
4902 if ac_fn_c_try_link "$LINENO"; then :
4903 ac_cv_lib_dnet_dnet_ntoa=yes
4905 ac_cv_lib_dnet_dnet_ntoa=no
4907 rm -f core conftest.err conftest.$ac_objext \
4908 conftest$ac_exeext conftest.$ac_ext
4909 LIBS=$ac_check_lib_save_LIBS
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4912 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
4913 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
4914 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4917 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
4919 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
4920 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
4921 $as_echo_n "(cached) " >&6
4923 ac_check_lib_save_LIBS=$LIBS
4924 LIBS="-ldnet_stub $LIBS"
4925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4926 /* end confdefs.h. */
4928 /* Override any GCC internal prototype to avoid an error.
4929 Use char because int might match the return type of a GCC
4930 builtin and then its argument prototype would still apply. */
4938 return dnet_ntoa ();
4943 if ac_fn_c_try_link "$LINENO"; then :
4944 ac_cv_lib_dnet_stub_dnet_ntoa=yes
4946 ac_cv_lib_dnet_stub_dnet_ntoa=no
4948 rm -f core conftest.err conftest.$ac_objext \
4949 conftest$ac_exeext conftest.$ac_ext
4950 LIBS=$ac_check_lib_save_LIBS
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4953 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
4954 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
4955 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4960 rm -f core conftest.err conftest.$ac_objext \
4961 conftest$ac_exeext conftest.$ac_ext
4962 LIBS="$ac_xsave_LIBS"
4964 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4965 # to get the SysV transport functions.
4966 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4968 # The nsl library prevents programs from opening the X display
4969 # on Irix 5.2, according to T.E. Dickey.
4970 # The functions gethostbyname, getservbyname, and inet_addr are
4971 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4972 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
4973 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
4977 if test $ac_cv_func_gethostbyname = no; then
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
4979 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
4980 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
4981 $as_echo_n "(cached) " >&6
4983 ac_check_lib_save_LIBS=$LIBS
4985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4986 /* end confdefs.h. */
4988 /* Override any GCC internal prototype to avoid an error.
4989 Use char because int might match the return type of a GCC
4990 builtin and then its argument prototype would still apply. */
4994 char gethostbyname ();
4998 return gethostbyname ();
5003 if ac_fn_c_try_link "$LINENO"; then :
5004 ac_cv_lib_nsl_gethostbyname=yes
5006 ac_cv_lib_nsl_gethostbyname=no
5008 rm -f core conftest.err conftest.$ac_objext \
5009 conftest$ac_exeext conftest.$ac_ext
5010 LIBS=$ac_check_lib_save_LIBS
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
5013 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
5014 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
5015 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5018 if test $ac_cv_lib_nsl_gethostbyname = no; then
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
5020 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
5021 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
5022 $as_echo_n "(cached) " >&6
5024 ac_check_lib_save_LIBS=$LIBS
5026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5027 /* end confdefs.h. */
5029 /* Override any GCC internal prototype to avoid an error.
5030 Use char because int might match the return type of a GCC
5031 builtin and then its argument prototype would still apply. */
5035 char gethostbyname ();
5039 return gethostbyname ();
5044 if ac_fn_c_try_link "$LINENO"; then :
5045 ac_cv_lib_bsd_gethostbyname=yes
5047 ac_cv_lib_bsd_gethostbyname=no
5049 rm -f core conftest.err conftest.$ac_objext \
5050 conftest$ac_exeext conftest.$ac_ext
5051 LIBS=$ac_check_lib_save_LIBS
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
5054 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
5055 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
5056 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5062 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5063 # socket/setsockopt and other routines are undefined under SCO ODT
5064 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5065 # on later versions), says Simon Leinen: it contains gethostby*
5066 # variants that don't use the name server (or something). -lsocket
5067 # must be given before -lnsl if both are needed. We assume that
5068 # if connect needs -lnsl, so does gethostbyname.
5069 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
5070 if test "x$ac_cv_func_connect" = x""yes; then :
5074 if test $ac_cv_func_connect = no; then
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
5076 $as_echo_n "checking for connect in -lsocket... " >&6; }
5077 if test "${ac_cv_lib_socket_connect+set}" = set; then :
5078 $as_echo_n "(cached) " >&6
5080 ac_check_lib_save_LIBS=$LIBS
5081 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5083 /* end confdefs.h. */
5085 /* Override any GCC internal prototype to avoid an error.
5086 Use char because int might match the return type of a GCC
5087 builtin and then its argument prototype would still apply. */
5100 if ac_fn_c_try_link "$LINENO"; then :
5101 ac_cv_lib_socket_connect=yes
5103 ac_cv_lib_socket_connect=no
5105 rm -f core conftest.err conftest.$ac_objext \
5106 conftest$ac_exeext conftest.$ac_ext
5107 LIBS=$ac_check_lib_save_LIBS
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
5110 $as_echo "$ac_cv_lib_socket_connect" >&6; }
5111 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
5112 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5117 # Guillermo Gomez says -lposix is necessary on A/UX.
5118 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
5119 if test "x$ac_cv_func_remove" = x""yes; then :
5123 if test $ac_cv_func_remove = no; then
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
5125 $as_echo_n "checking for remove in -lposix... " >&6; }
5126 if test "${ac_cv_lib_posix_remove+set}" = set; then :
5127 $as_echo_n "(cached) " >&6
5129 ac_check_lib_save_LIBS=$LIBS
5130 LIBS="-lposix $LIBS"
5131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5132 /* end confdefs.h. */
5134 /* Override any GCC internal prototype to avoid an error.
5135 Use char because int might match the return type of a GCC
5136 builtin and then its argument prototype would still apply. */
5149 if ac_fn_c_try_link "$LINENO"; then :
5150 ac_cv_lib_posix_remove=yes
5152 ac_cv_lib_posix_remove=no
5154 rm -f core conftest.err conftest.$ac_objext \
5155 conftest$ac_exeext conftest.$ac_ext
5156 LIBS=$ac_check_lib_save_LIBS
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
5159 $as_echo "$ac_cv_lib_posix_remove" >&6; }
5160 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
5161 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5166 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5167 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
5168 if test "x$ac_cv_func_shmat" = x""yes; then :
5172 if test $ac_cv_func_shmat = no; then
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
5174 $as_echo_n "checking for shmat in -lipc... " >&6; }
5175 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
5176 $as_echo_n "(cached) " >&6
5178 ac_check_lib_save_LIBS=$LIBS
5180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5181 /* end confdefs.h. */
5183 /* Override any GCC internal prototype to avoid an error.
5184 Use char because int might match the return type of a GCC
5185 builtin and then its argument prototype would still apply. */
5198 if ac_fn_c_try_link "$LINENO"; then :
5199 ac_cv_lib_ipc_shmat=yes
5201 ac_cv_lib_ipc_shmat=no
5203 rm -f core conftest.err conftest.$ac_objext \
5204 conftest$ac_exeext conftest.$ac_ext
5205 LIBS=$ac_check_lib_save_LIBS
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
5208 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
5209 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
5210 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5216 # Check for libraries that X11R6 Xt/Xaw programs need.
5217 ac_save_LDFLAGS=$LDFLAGS
5218 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5219 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5220 # check for ICE first), but we must link in the order -lSM -lICE or
5221 # we get undefined symbols. So assume we have SM if we have ICE.
5222 # These have to be linked with before -lX11, unlike the other
5223 # libraries we check for below, so use a different variable.
5224 # John Interrante, Karl Berry
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
5226 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
5227 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
5228 $as_echo_n "(cached) " >&6
5230 ac_check_lib_save_LIBS=$LIBS
5231 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5233 /* end confdefs.h. */
5235 /* Override any GCC internal prototype to avoid an error.
5236 Use char because int might match the return type of a GCC
5237 builtin and then its argument prototype would still apply. */
5241 char IceConnectionNumber ();
5245 return IceConnectionNumber ();
5250 if ac_fn_c_try_link "$LINENO"; then :
5251 ac_cv_lib_ICE_IceConnectionNumber=yes
5253 ac_cv_lib_ICE_IceConnectionNumber=no
5255 rm -f core conftest.err conftest.$ac_objext \
5256 conftest$ac_exeext conftest.$ac_ext
5257 LIBS=$ac_check_lib_save_LIBS
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5260 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
5261 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
5262 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5265 LDFLAGS=$ac_save_LDFLAGS
5270 XML_CFLAGS=`$XML_CONFIG --cflags`
5271 XML_LFLAGS=`$XML_CONFIG --libs`
5273 LIBS="$LIBS $X_LIBS $X_PRE_LIBS $X_EXTRA_LIBS"
5274 LIBS="$LIBS -L/usr/local/lib $XML_LFLAGS"
5275 CFLAGS="$CFLAGS $X_CFLAGS $XML_CFLAGS "
5276 CXXFLAGS="$CXXFLAGS -Wno-deprecated $X_CFLAGS $XML_CFLAGS"
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lAXE" >&5
5279 $as_echo_n "checking for main in -lAXE... " >&6; }
5280 if test "${ac_cv_lib_AXE_main+set}" = set; then :
5281 $as_echo_n "(cached) " >&6
5283 ac_check_lib_save_LIBS=$LIBS
5285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5286 /* end confdefs.h. */
5297 if ac_fn_c_try_link "$LINENO"; then :
5298 ac_cv_lib_AXE_main=yes
5300 ac_cv_lib_AXE_main=no
5302 rm -f core conftest.err conftest.$ac_objext \
5303 conftest$ac_exeext conftest.$ac_ext
5304 LIBS=$ac_check_lib_save_LIBS
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_AXE_main" >&5
5307 $as_echo "$ac_cv_lib_AXE_main" >&6; }
5308 if test "x$ac_cv_lib_AXE_main" = x""yes; then :
5309 cat >>confdefs.h <<_ACEOF
5310 #define HAVE_LIBAXE 1
5316 as_fn_error "AXE Library is not installed" "$LINENO" 5
5319 #AC_CHECK_LIB(X11, XOpenDisplay)
5320 #AC_CHECK_LIB(Xpm, XpmCreatePixmapFromData)
5321 #AC_CHECK_LIB(pthread, pthread_create)
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseFile in -lxml2" >&5
5323 $as_echo_n "checking for xmlParseFile in -lxml2... " >&6; }
5324 if test "${ac_cv_lib_xml2_xmlParseFile+set}" = set; then :
5325 $as_echo_n "(cached) " >&6
5327 ac_check_lib_save_LIBS=$LIBS
5329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5330 /* end confdefs.h. */
5332 /* Override any GCC internal prototype to avoid an error.
5333 Use char because int might match the return type of a GCC
5334 builtin and then its argument prototype would still apply. */
5338 char xmlParseFile ();
5342 return xmlParseFile ();
5347 if ac_fn_c_try_link "$LINENO"; then :
5348 ac_cv_lib_xml2_xmlParseFile=yes
5350 ac_cv_lib_xml2_xmlParseFile=no
5352 rm -f core conftest.err conftest.$ac_objext \
5353 conftest$ac_exeext conftest.$ac_ext
5354 LIBS=$ac_check_lib_save_LIBS
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseFile" >&5
5357 $as_echo "$ac_cv_lib_xml2_xmlParseFile" >&6; }
5358 if test "x$ac_cv_lib_xml2_xmlParseFile" = x""yes; then :
5359 cat >>confdefs.h <<_ACEOF
5360 #define HAVE_LIBXML2 1
5368 # PostgreSQL includes and libraries
5369 with_postgres_include="-I/usr/include/pqxx"
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: using PostgreSQL headers at $with_postgres_include" >&5
5371 $as_echo "$as_me: using PostgreSQL headers at $with_postgres_include" >&6;}
5372 with_postgres_lib="-lpqxx -lpq"
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: using PostgreSQL libraries at $with_postgres_lib" >&5
5374 $as_echo "$as_me: using PostgreSQL libraries at $with_postgres_lib" >&6;}
5378 POSTGRES_LIB="${with_postgres_lib}"
5380 POSTGRES_INCLUDE="${with_postgres_include}"
5384 # Checks for libraries.
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQexec in -lpq" >&5
5386 $as_echo_n "checking for PQexec in -lpq... " >&6; }
5387 if test "${ac_cv_lib_pq_PQexec+set}" = set; then :
5388 $as_echo_n "(cached) " >&6
5390 ac_check_lib_save_LIBS=$LIBS
5391 LIBS="-lpq -L${with_postgres_lib} $LIBS"
5392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5393 /* end confdefs.h. */
5395 /* Override any GCC internal prototype to avoid an error.
5396 Use char because int might match the return type of a GCC
5397 builtin and then its argument prototype would still apply. */
5410 if ac_fn_c_try_link "$LINENO"; then :
5411 ac_cv_lib_pq_PQexec=yes
5413 ac_cv_lib_pq_PQexec=no
5415 rm -f core conftest.err conftest.$ac_objext \
5416 conftest$ac_exeext conftest.$ac_ext
5417 LIBS=$ac_check_lib_save_LIBS
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQexec" >&5
5420 $as_echo "$ac_cv_lib_pq_PQexec" >&6; }
5421 if test "x$ac_cv_lib_pq_PQexec" = x""yes; then :
5422 cat >>confdefs.h <<_ACEOF
5423 #define HAVE_LIBPQ 1
5429 as_fn_error "Failed to find a suitable libpq.
5431 PostgreSQL's libpq needs to be installed.
5432 Perhaps you need to specify --with-postgres-lib?
5438 CXXFLAGS="$CXXFLAGS $POSTGRES_INCLUDE"
5439 LIBS="$LIBS $POSTGRES_LIB"
5442 # There is no convenient way to detect libpqxx, so we'll
5443 # use fixed paths for the time being.
5445 CXXFLAGS="$CXXFLAGS -I/usr/local/pqxx/include"
5446 LIBS="$LIBS -L/usr/local/pqxx/lib -lpqxx"
5449 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5450 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
5452 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
5453 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
5454 $as_echo_n "(cached) " >&6
5456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5457 /* end confdefs.h. */
5458 #include <sys/types.h>
5470 if ac_fn_c_try_compile "$LINENO"; then :
5471 eval "$as_ac_Header=yes"
5473 eval "$as_ac_Header=no"
5475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5477 eval ac_res=\$$as_ac_Header
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5479 $as_echo "$ac_res" >&6; }
5480 eval as_val=\$$as_ac_Header
5481 if test "x$as_val" = x""yes; then :
5482 cat >>confdefs.h <<_ACEOF
5483 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5486 ac_header_dirent=$ac_hdr; break
5490 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5491 if test $ac_header_dirent = dirent.h; then
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5493 $as_echo_n "checking for library containing opendir... " >&6; }
5494 if test "${ac_cv_search_opendir+set}" = set; then :
5495 $as_echo_n "(cached) " >&6
5497 ac_func_search_save_LIBS=$LIBS
5498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5499 /* end confdefs.h. */
5501 /* Override any GCC internal prototype to avoid an error.
5502 Use char because int might match the return type of a GCC
5503 builtin and then its argument prototype would still apply. */
5516 for ac_lib in '' dir; do
5517 if test -z "$ac_lib"; then
5518 ac_res="none required"
5521 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5523 if ac_fn_c_try_link "$LINENO"; then :
5524 ac_cv_search_opendir=$ac_res
5526 rm -f core conftest.err conftest.$ac_objext \
5528 if test "${ac_cv_search_opendir+set}" = set; then :
5532 if test "${ac_cv_search_opendir+set}" = set; then :
5535 ac_cv_search_opendir=no
5538 LIBS=$ac_func_search_save_LIBS
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5541 $as_echo "$ac_cv_search_opendir" >&6; }
5542 ac_res=$ac_cv_search_opendir
5543 if test "$ac_res" != no; then :
5544 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5550 $as_echo_n "checking for library containing opendir... " >&6; }
5551 if test "${ac_cv_search_opendir+set}" = set; then :
5552 $as_echo_n "(cached) " >&6
5554 ac_func_search_save_LIBS=$LIBS
5555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5556 /* end confdefs.h. */
5558 /* Override any GCC internal prototype to avoid an error.
5559 Use char because int might match the return type of a GCC
5560 builtin and then its argument prototype would still apply. */
5573 for ac_lib in '' x; do
5574 if test -z "$ac_lib"; then
5575 ac_res="none required"
5578 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5580 if ac_fn_c_try_link "$LINENO"; then :
5581 ac_cv_search_opendir=$ac_res
5583 rm -f core conftest.err conftest.$ac_objext \
5585 if test "${ac_cv_search_opendir+set}" = set; then :
5589 if test "${ac_cv_search_opendir+set}" = set; then :
5592 ac_cv_search_opendir=no
5595 LIBS=$ac_func_search_save_LIBS
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5598 $as_echo "$ac_cv_search_opendir" >&6; }
5599 ac_res=$ac_cv_search_opendir
5600 if test "$ac_res" != no; then :
5601 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5608 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5609 if test "${ac_cv_path_GREP+set}" = set; then :
5610 $as_echo_n "(cached) " >&6
5612 if test -z "$GREP"; then
5613 ac_path_GREP_found=false
5614 # Loop through the user's path and test for each of PROGNAME-LIST
5615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5616 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5619 test -z "$as_dir" && as_dir=.
5620 for ac_prog in grep ggrep; do
5621 for ac_exec_ext in '' $ac_executable_extensions; do
5622 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5623 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5624 # Check for GNU ac_path_GREP and select it if it is found.
5625 # Check for GNU $ac_path_GREP
5626 case `"$ac_path_GREP" --version 2>&1` in
5628 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5631 $as_echo_n 0123456789 >"conftest.in"
5634 cat "conftest.in" "conftest.in" >"conftest.tmp"
5635 mv "conftest.tmp" "conftest.in"
5636 cp "conftest.in" "conftest.nl"
5637 $as_echo 'GREP' >> "conftest.nl"
5638 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5639 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5640 as_fn_arith $ac_count + 1 && ac_count=$as_val
5641 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5642 # Best one so far, save it but keep looking for a better one
5643 ac_cv_path_GREP="$ac_path_GREP"
5644 ac_path_GREP_max=$ac_count
5646 # 10*(2^10) chars as input seems more than enough
5647 test $ac_count -gt 10 && break
5649 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5652 $ac_path_GREP_found && break 3
5657 if test -z "$ac_cv_path_GREP"; then
5658 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5661 ac_cv_path_GREP=$GREP
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5666 $as_echo "$ac_cv_path_GREP" >&6; }
5667 GREP="$ac_cv_path_GREP"
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5671 $as_echo_n "checking for egrep... " >&6; }
5672 if test "${ac_cv_path_EGREP+set}" = set; then :
5673 $as_echo_n "(cached) " >&6
5675 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5676 then ac_cv_path_EGREP="$GREP -E"
5678 if test -z "$EGREP"; then
5679 ac_path_EGREP_found=false
5680 # Loop through the user's path and test for each of PROGNAME-LIST
5681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5682 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5685 test -z "$as_dir" && as_dir=.
5686 for ac_prog in egrep; do
5687 for ac_exec_ext in '' $ac_executable_extensions; do
5688 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5689 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5690 # Check for GNU ac_path_EGREP and select it if it is found.
5691 # Check for GNU $ac_path_EGREP
5692 case `"$ac_path_EGREP" --version 2>&1` in
5694 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5697 $as_echo_n 0123456789 >"conftest.in"
5700 cat "conftest.in" "conftest.in" >"conftest.tmp"
5701 mv "conftest.tmp" "conftest.in"
5702 cp "conftest.in" "conftest.nl"
5703 $as_echo 'EGREP' >> "conftest.nl"
5704 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5705 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5706 as_fn_arith $ac_count + 1 && ac_count=$as_val
5707 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5708 # Best one so far, save it but keep looking for a better one
5709 ac_cv_path_EGREP="$ac_path_EGREP"
5710 ac_path_EGREP_max=$ac_count
5712 # 10*(2^10) chars as input seems more than enough
5713 test $ac_count -gt 10 && break
5715 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5718 $ac_path_EGREP_found && break 3
5723 if test -z "$ac_cv_path_EGREP"; then
5724 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5727 ac_cv_path_EGREP=$EGREP
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5733 $as_echo "$ac_cv_path_EGREP" >&6; }
5734 EGREP="$ac_cv_path_EGREP"
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5738 $as_echo_n "checking for ANSI C header files... " >&6; }
5739 if test "${ac_cv_header_stdc+set}" = set; then :
5740 $as_echo_n "(cached) " >&6
5742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5743 /* end confdefs.h. */
5757 if ac_fn_c_try_compile "$LINENO"; then :
5758 ac_cv_header_stdc=yes
5760 ac_cv_header_stdc=no
5762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5764 if test $ac_cv_header_stdc = yes; then
5765 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5767 /* end confdefs.h. */
5771 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5772 $EGREP "memchr" >/dev/null 2>&1; then :
5775 ac_cv_header_stdc=no
5781 if test $ac_cv_header_stdc = yes; then
5782 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5784 /* end confdefs.h. */
5788 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5789 $EGREP "free" >/dev/null 2>&1; then :
5792 ac_cv_header_stdc=no
5798 if test $ac_cv_header_stdc = yes; then
5799 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5800 if test "$cross_compiling" = yes; then :
5803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5804 /* end confdefs.h. */
5807 #if ((' ' & 0x0FF) == 0x020)
5808 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5809 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5811 # define ISLOWER(c) \
5812 (('a' <= (c) && (c) <= 'i') \
5813 || ('j' <= (c) && (c) <= 'r') \
5814 || ('s' <= (c) && (c) <= 'z'))
5815 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5818 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5823 for (i = 0; i < 256; i++)
5824 if (XOR (islower (i), ISLOWER (i))
5825 || toupper (i) != TOUPPER (i))
5830 if ac_fn_c_try_run "$LINENO"; then :
5833 ac_cv_header_stdc=no
5835 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5836 conftest.$ac_objext conftest.beam conftest.$ac_ext
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5842 $as_echo "$ac_cv_header_stdc" >&6; }
5843 if test $ac_cv_header_stdc = yes; then
5845 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5849 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5850 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5851 inttypes.h stdint.h unistd.h
5853 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5854 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5856 eval as_val=\$$as_ac_Header
5857 if test "x$as_val" = x""yes; then :
5858 cat >>confdefs.h <<_ACEOF
5859 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5867 for ac_header in unistd.h
5869 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
5870 if test "x$ac_cv_header_unistd_h" = x""yes; then :
5871 cat >>confdefs.h <<_ACEOF
5872 #define HAVE_UNISTD_H 1
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5881 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5882 if test "${ac_cv_c_const+set}" = set; then :
5883 $as_echo_n "(cached) " >&6
5885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5886 /* end confdefs.h. */
5891 /* FIXME: Include the comments suggested by Paul. */
5893 /* Ultrix mips cc rejects this. */
5894 typedef int charset[2];
5896 /* SunOS 4.1.1 cc rejects this. */
5897 char const *const *pcpcc;
5899 /* NEC SVR4.0.2 mips cc rejects this. */
5900 struct point {int x, y;};
5901 static struct point const zero = {0,0};
5902 /* AIX XL C 1.02.0.0 rejects this.
5903 It does not let you subtract one const X* pointer from another in
5904 an arm of an if-expression whose if-part is not a constant
5906 const char *g = "string";
5907 pcpcc = &g + (g ? g-g : 0);
5908 /* HPUX 7.0 cc rejects these. */
5910 ppc = (char**) pcpcc;
5911 pcpcc = (char const *const *) ppc;
5912 { /* SCO 3.2v4 cc rejects this. */
5914 char const *s = 0 ? (char *) 0 : (char const *) 0;
5919 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5921 const int *foo = &x[0];
5924 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5925 typedef const int *iptr;
5929 { /* AIX XL C 1.02.0.0 rejects this saying
5930 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5931 struct s { int j; const int *ap[3]; };
5932 struct s *b; b->j = 5;
5934 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5938 return !cs[0] && !zero.x;
5945 if ac_fn_c_try_compile "$LINENO"; then :
5950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5953 $as_echo "$ac_cv_c_const" >&6; }
5954 if test $ac_cv_c_const = no; then
5956 $as_echo "#define const /**/" >>confdefs.h
5961 for ac_func in strtod strtol strtoul
5963 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5964 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5965 eval as_val=\$$as_ac_var
5966 if test "x$as_val" = x""yes; then :
5967 cat >>confdefs.h <<_ACEOF
5968 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5976 DocumentRoot=/var/www/html
5978 #AC_OUTPUT(Makefile src/Makefile src/lib/Makefile src/gcm_input/Makefile src/web/Makefile)
5979 ac_config_files="$ac_config_files Makefile src/Makefile src/lib/Makefile src/gcm_input/Makefile test/Makefile"
5981 cat >confcache <<\_ACEOF
5982 # This file is a shell script that caches the results of configure
5983 # tests run on this system so they can be shared between configure
5984 # scripts and configure runs, see configure's option --config-cache.
5985 # It is not useful on other systems. If it contains results you don't
5986 # want to keep, you may remove or edit it.
5988 # config.status only pays attention to the cache file if you give it
5989 # the --recheck option to rerun configure.
5991 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5992 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5997 # The following way of writing the cache mishandles newlines in values,
5998 # but we know of no workaround that is simple, portable, and efficient.
5999 # So, we kill variables containing newlines.
6000 # Ultrix sh set writes to stderr and can't be redirected directly,
6001 # and sets the high bit in the cache file unless we assign to the vars.
6003 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6004 eval ac_val=\$$ac_var
6008 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6009 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6012 _ | IFS | as_nl) ;; #(
6013 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6014 *) { eval $ac_var=; unset $ac_var;} ;;
6020 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6021 *${as_nl}ac_space=\ *)
6022 # `set' does not quote correctly, so add quotes: double-quote
6023 # substitution turns \\\\ into \\, and sed turns \\ into \.
6026 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6029 # `set' quotes correctly as required by POSIX, so do not add quotes.
6030 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6039 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6041 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6043 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6044 if test -w "$cache_file"; then
6045 test "x$cache_file" != "x/dev/null" &&
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6047 $as_echo "$as_me: updating cache $cache_file" >&6;}
6048 cat confcache >$cache_file
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6051 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6056 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6057 # Let make expand exec_prefix.
6058 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6060 # Transform confdefs.h into DEFS.
6061 # Protect against shell expansion while executing Makefile rules.
6062 # Protect against Makefile macro expansion.
6064 # If the first sed substitution is executed (which looks for macros that
6065 # take arguments), then branch to the quote section. Otherwise,
6066 # look for a macro that doesn't take arguments.
6076 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
6078 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
6082 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
6095 DEFS=`sed -n "$ac_script" confdefs.h`
6100 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6101 # 1. Remove the extension, and $U if already installed.
6102 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6103 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6104 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6105 # will be set to the directory where LIBOBJS objects are built.
6106 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6107 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6111 LTLIBOBJS=$ac_ltlibobjs
6114 if test -n "$EXEEXT"; then
6116 am__EXEEXT_FALSE='#'
6122 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6123 as_fn_error "conditional \"AMDEP\" was never defined.
6124 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6126 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6127 as_fn_error "conditional \"am__fastdepCC\" was never defined.
6128 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6130 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
6131 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
6132 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6135 : ${CONFIG_STATUS=./config.status}
6137 ac_clean_files_save=$ac_clean_files
6138 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6140 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6142 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6144 # Generated by $as_me.
6145 # Run this file to recreate the current configuration.
6146 # Compiler output produced by configure, useful for debugging
6147 # configure, is in config.log if it exists.
6153 SHELL=\${CONFIG_SHELL-$SHELL}
6156 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6157 ## -------------------- ##
6158 ## M4sh Initialization. ##
6159 ## -------------------- ##
6161 # Be more Bourne compatible
6162 DUALCASE=1; export DUALCASE # for MKS sh
6163 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6166 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6167 # is contrary to our usage. Disable this feature.
6168 alias -g '${1+"$@"}'='"$@"'
6169 setopt NO_GLOB_SUBST
6171 case `(set -o) 2>/dev/null` in #(
6183 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6184 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6185 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6186 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6187 # Prefer a ksh shell builtin over an external printf program on Solaris,
6188 # but without wasting forks for bash or zsh.
6189 if test -z "$BASH_VERSION$ZSH_VERSION" \
6190 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6191 as_echo='print -r --'
6192 as_echo_n='print -rn --'
6193 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6194 as_echo='printf %s\n'
6195 as_echo_n='printf %s'
6197 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6198 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6199 as_echo_n='/usr/ucb/echo -n'
6201 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6202 as_echo_n_body='eval
6206 expr "X$arg" : "X\\(.*\\)$as_nl";
6207 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6209 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6211 export as_echo_n_body
6212 as_echo_n='sh -c $as_echo_n_body as_echo'
6215 as_echo='sh -c $as_echo_body as_echo'
6218 # The user is always right.
6219 if test "${PATH_SEPARATOR+set}" != set; then
6221 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6222 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6229 # We need space, tab and new line, in precisely that order. Quoting is
6230 # there to prevent editors from complaining about space-tab.
6231 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6232 # splitting by setting IFS to empty value.)
6235 # Find who we are. Look in the path if we contain no directory separator.
6237 *[\\/]* ) as_myself=$0 ;;
6238 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6242 test -z "$as_dir" && as_dir=.
6243 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6249 # We did not find ourselves, most probably we were run as `sh COMMAND'
6250 # in which case we are not to be found in the path.
6251 if test "x$as_myself" = x; then
6254 if test ! -f "$as_myself"; then
6255 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6259 # Unset variables that we do not need and which cause bugs (e.g. in
6260 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6261 # suppresses any "Segmentation fault" message there. '((' could
6262 # trigger a bug in pdksh 5.2.14.
6263 for as_var in BASH_ENV ENV MAIL MAILPATH
6264 do eval test x\${$as_var+set} = xset \
6265 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6278 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6281 # as_fn_error ERROR [LINENO LOG_FD]
6282 # ---------------------------------
6283 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6284 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6285 # script with status $?, using 1 if that was 0.
6288 as_status=$?; test $as_status -eq 0 && as_status=1
6290 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6291 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
6293 $as_echo "$as_me: error: $1" >&2
6294 as_fn_exit $as_status
6298 # as_fn_set_status STATUS
6299 # -----------------------
6300 # Set $? to STATUS, without forking.
6304 } # as_fn_set_status
6308 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6318 # Portably unset VAR.
6321 { eval $1=; unset $1;}
6323 as_unset=as_fn_unset
6324 # as_fn_append VAR VALUE
6325 # ----------------------
6326 # Append the text in VALUE to the end of the definition contained in VAR. Take
6327 # advantage of any shell optimizations that allow amortized linear growth over
6328 # repeated appends, instead of the typical quadratic growth present in naive
6330 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6331 eval 'as_fn_append ()
6342 # as_fn_arith ARG...
6343 # ------------------
6344 # Perform arithmetic evaluation on the ARGs, and store the result in the
6345 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6346 # must be portable across $(()) and expr.
6347 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6348 eval 'as_fn_arith ()
6355 as_val=`expr "$@" || test $? -eq 1`
6360 if expr a : '\(a\)' >/dev/null 2>&1 &&
6361 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6367 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6368 as_basename=basename
6373 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6379 as_me=`$as_basename -- "$0" ||
6380 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6381 X"$0" : 'X\(//\)$' \| \
6382 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6384 sed '/^.*\/\([^/][^/]*\)\/*$/{
6398 # Avoid depending upon Character Ranges.
6399 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6400 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6401 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6402 as_cr_digits='0123456789'
6403 as_cr_alnum=$as_cr_Letters$as_cr_digits
6405 ECHO_C= ECHO_N= ECHO_T=
6406 case `echo -n x` in #(((((
6408 case `echo 'xy\c'` in
6409 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6411 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6418 rm -f conf$$ conf$$.exe conf$$.file
6419 if test -d conf$$.dir; then
6420 rm -f conf$$.dir/conf$$.file
6423 mkdir conf$$.dir 2>/dev/null
6425 if (echo >conf$$.file) 2>/dev/null; then
6426 if ln -s conf$$.file conf$$ 2>/dev/null; then
6428 # ... but there are two gotchas:
6429 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6430 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6431 # In both cases, we have to default to `cp -p'.
6432 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6434 elif ln conf$$.file conf$$ 2>/dev/null; then
6442 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6443 rmdir conf$$.dir 2>/dev/null
6448 # Create "$as_dir" as a directory, including parents if necessary.
6453 -*) as_dir=./$as_dir;;
6455 test -d "$as_dir" || eval $as_mkdir_p || {
6459 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6460 *) as_qdir=$as_dir;;
6462 as_dirs="'$as_qdir' $as_dirs"
6463 as_dir=`$as_dirname -- "$as_dir" ||
6464 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6465 X"$as_dir" : 'X\(//\)[^/]' \| \
6466 X"$as_dir" : 'X\(//\)$' \| \
6467 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6468 $as_echo X"$as_dir" |
6469 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6486 test -d "$as_dir" && break
6488 test -z "$as_dirs" || eval "mkdir $as_dirs"
6489 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
6493 if mkdir -p . 2>/dev/null; then
6494 as_mkdir_p='mkdir -p "$as_dir"'
6496 test -d ./-p && rmdir ./-p
6500 if test -x / >/dev/null 2>&1; then
6503 if ls -dL / >/dev/null 2>&1; then
6510 if test -d "$1"; then
6516 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
6517 ???[sx]*):;;*)false;;esac;fi
6521 as_executable_p=$as_test_x
6523 # Sed expression to map a string onto a valid CPP name.
6524 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6526 # Sed expression to map a string onto a valid variable name.
6527 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6531 ## ----------------------------------- ##
6532 ## Main body of $CONFIG_STATUS script. ##
6533 ## ----------------------------------- ##
6535 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6537 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6538 # Save the log message, to keep $0 and so on meaningful, and to
6539 # report actual input values of CONFIG_FILES etc. instead of their
6540 # values after options handling.
6542 This file was extended by $as_me, which was
6543 generated by GNU Autoconf 2.65. Invocation command line was
6545 CONFIG_FILES = $CONFIG_FILES
6546 CONFIG_HEADERS = $CONFIG_HEADERS
6547 CONFIG_LINKS = $CONFIG_LINKS
6548 CONFIG_COMMANDS = $CONFIG_COMMANDS
6551 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6556 case $ac_config_files in *"
6557 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6562 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6563 # Files that config.status was made for.
6564 config_files="$ac_config_files"
6565 config_commands="$ac_config_commands"
6569 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6571 \`$as_me' instantiates files and other configuration actions
6572 from templates according to the current configuration. Unless the files
6573 and actions are specified as TAGs, all are instantiated by default.
6575 Usage: $0 [OPTION]... [TAG]...
6577 -h, --help print this help, then exit
6578 -V, --version print version number and configuration settings, then exit
6579 --config print configuration, then exit
6580 -q, --quiet, --silent
6581 do not print progress messages
6582 -d, --debug don't remove temporary files
6583 --recheck update $as_me by reconfiguring in the same conditions
6584 --file=FILE[:TEMPLATE]
6585 instantiate the configuration file FILE
6587 Configuration files:
6590 Configuration commands:
6593 Report bugs to the package provider."
6596 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6597 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6600 configured by $0, generated by GNU Autoconf 2.65,
6601 with options \\"\$ac_cs_config\\"
6603 Copyright (C) 2009 Free Software Foundation, Inc.
6604 This config.status script is free software; the Free Software Foundation
6605 gives unlimited permission to copy, distribute and modify it."
6612 test -n "\$AWK" || AWK=awk
6615 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6616 # The default lists apply if the user does not specify any file.
6622 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6623 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6634 # Handling of the options.
6635 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6637 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6638 $as_echo "$ac_cs_version"; exit ;;
6639 --config | --confi | --conf | --con | --co | --c )
6640 $as_echo "$ac_cs_config"; exit ;;
6641 --debug | --debu | --deb | --de | --d | -d )
6643 --file | --fil | --fi | --f )
6646 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6648 as_fn_append CONFIG_FILES " '$ac_optarg'"
6649 ac_need_defaults=false;;
6650 --he | --h | --help | --hel | -h )
6651 $as_echo "$ac_cs_usage"; exit ;;
6652 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6653 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6657 -*) as_fn_error "unrecognized option: \`$1'
6658 Try \`$0 --help' for more information." ;;
6660 *) as_fn_append ac_config_targets " $1"
6661 ac_need_defaults=false ;;
6667 ac_configure_extra_args=
6669 if $ac_cs_silent; then
6671 ac_configure_extra_args="$ac_configure_extra_args --silent"
6675 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6676 if \$ac_cs_recheck; then
6677 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6679 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6680 CONFIG_SHELL='$SHELL'
6686 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6690 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6691 ## Running $as_me. ##
6697 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6701 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6705 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6707 # Handling of arguments.
6708 for ac_config_target in $ac_config_targets
6710 case $ac_config_target in
6711 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6712 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6713 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
6714 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
6715 "src/gcm_input/Makefile") CONFIG_FILES="$CONFIG_FILES src/gcm_input/Makefile" ;;
6716 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
6718 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6723 # If the user did not use the arguments to specify the items to instantiate,
6724 # then the envvar interface is used. Set only those that are not.
6725 # We use the long form for the default assignment because of an extremely
6726 # bizarre bug on SunOS 4.1.3.
6727 if $ac_need_defaults; then
6728 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6729 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6732 # Have a temporary directory for convenience. Make it in the build tree
6733 # simply because there is no reason against having it here, and in addition,
6734 # creating and moving files from /tmp can sometimes cause problems.
6735 # Hook for its removal unless debugging.
6736 # Note that there is a small window in which the directory will not be cleaned:
6737 # after its creation but before its name has been assigned to `$tmp'.
6741 trap 'exit_status=$?
6742 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6744 trap 'as_fn_exit 1' 1 2 13 15
6746 # Create a (secure) tmp directory for tmp files.
6749 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6750 test -n "$tmp" && test -d "$tmp"
6753 tmp=./conf$$-$RANDOM
6754 (umask 077 && mkdir "$tmp")
6755 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
6757 # Set up the scripts for CONFIG_FILES section.
6758 # No need to generate them if there are no CONFIG_FILES.
6759 # This happens for instance with `./config.status config.h'.
6760 if test -n "$CONFIG_FILES"; then
6763 ac_cr=`echo X | tr X '\015'`
6764 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6765 # But we know of no other shell where ac_cr would be empty at this
6766 # point, so we can use a bashism as a fallback.
6767 if test "x$ac_cr" = x; then
6768 eval ac_cr=\$\'\\r\'
6770 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6771 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6777 echo 'BEGIN {' >"$tmp/subs1.awk" &&
6782 echo "cat >conf$$subs.awk <<_ACEOF" &&
6783 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6786 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6787 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
6789 for ac_last_try in false false false false false :; do
6790 . ./conf$$subs.sh ||
6791 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6793 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6794 if test $ac_delim_n = $ac_delim_num; then
6796 elif $ac_last_try; then
6797 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6799 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6804 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6805 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
6809 s/^/S["/; s/!.*/"]=/
6819 s/\(.\{148\}\)..*/\1/
6821 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6826 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6833 s/\(.\{148\}\)..*/\1/
6835 s/["\\]/\\&/g; s/^/"/; s/$/"/
6839 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6844 ' <conf$$subs.awk | sed '
6849 ' >>$CONFIG_STATUS || ac_write_fail=1
6850 rm -f conf$$subs.awk
6851 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6853 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
6854 for (key in S) S_is_set[key] = 1
6860 nfields = split(line, field, "@")
6862 len = length(field[1])
6863 for (i = 2; i < nfields; i++) {
6865 keylen = length(key)
6866 if (S_is_set[key]) {
6868 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6869 len += length(value) + length(field[++i])
6880 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6881 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6882 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6885 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
6886 || as_fn_error "could not setup config files machinery" "$LINENO" 5
6889 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6890 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6891 # trailing colons and then remove the whole line if VPATH becomes empty
6892 # (actually we leave an empty line to preserve line numbers).
6893 if test "x$srcdir" = x.; then
6894 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6898 s/^\([^=]*=[ ]*\):*/\1/
6904 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6905 fi # test -n "$CONFIG_FILES"
6908 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
6913 :[FHLC]) ac_mode=$ac_tag; continue;;
6915 case $ac_mode$ac_tag in
6917 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
6918 :[FH]-) ac_tag=-:-;;
6919 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6936 -) ac_f="$tmp/stdin";;
6937 *) # Look for the file first in the build tree, then in the source tree
6938 # (if the path is not absolute). The absolute path cannot be DOS-style,
6939 # because $ac_f cannot contain `:'.
6943 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6945 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6947 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6948 as_fn_append ac_file_inputs " '$ac_f'"
6951 # Let's still pretend it is `configure' which instantiates (i.e., don't
6952 # use $as_me), people would be surprised to read:
6953 # /* config.h. Generated by config.status. */
6954 configure_input='Generated from '`
6955 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6957 if test x"$ac_file" != x-; then
6958 configure_input="$ac_file. $configure_input"
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6960 $as_echo "$as_me: creating $ac_file" >&6;}
6962 # Neutralize special characters interpreted by sed in replacement strings.
6963 case $configure_input in #(
6964 *\&* | *\|* | *\\* )
6965 ac_sed_conf_input=`$as_echo "$configure_input" |
6966 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6967 *) ac_sed_conf_input=$configure_input;;
6971 *:-:* | *:-) cat >"$tmp/stdin" \
6972 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
6977 ac_dir=`$as_dirname -- "$ac_file" ||
6978 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6979 X"$ac_file" : 'X\(//\)[^/]' \| \
6980 X"$ac_file" : 'X\(//\)$' \| \
6981 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6982 $as_echo X"$ac_file" |
6983 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7000 as_dir="$ac_dir"; as_fn_mkdir_p
7004 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7006 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7007 # A ".." for each directory in $ac_dir_suffix.
7008 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7009 case $ac_top_builddir_sub in
7010 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7011 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7014 ac_abs_top_builddir=$ac_pwd
7015 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7016 # for backward compatibility:
7017 ac_top_builddir=$ac_top_build_prefix
7020 .) # We are building in place.
7022 ac_top_srcdir=$ac_top_builddir_sub
7023 ac_abs_top_srcdir=$ac_pwd ;;
7024 [\\/]* | ?:[\\/]* ) # Absolute name.
7025 ac_srcdir=$srcdir$ac_dir_suffix;
7026 ac_top_srcdir=$srcdir
7027 ac_abs_top_srcdir=$srcdir ;;
7029 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7030 ac_top_srcdir=$ac_top_build_prefix$srcdir
7031 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7033 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7043 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7044 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7048 [\\/$]* | ?:[\\/]* ) ;;
7049 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
7053 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7054 # If the template does not know about datarootdir, expand it.
7055 # FIXME: This hack should be removed a few years after 2.60.
7056 ac_datarootdir_hack=; ac_datarootdir_seen=
7067 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7068 *datarootdir*) ac_datarootdir_seen=yes;;
7069 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7071 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7073 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7074 ac_datarootdir_hack='
7075 s&@datadir@&$datadir&g
7076 s&@docdir@&$docdir&g
7077 s&@infodir@&$infodir&g
7078 s&@localedir@&$localedir&g
7079 s&@mandir@&$mandir&g
7080 s&\\\${datarootdir}&$datarootdir&g' ;;
7084 # Neutralize VPATH when `$srcdir' = `.'.
7085 # Shell code in configure.ac might set extrasub.
7086 # FIXME: do we really want to maintain this feature?
7087 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7088 ac_sed_extra="$ac_vpsub
7091 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7093 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7094 s|@configure_input@|$ac_sed_conf_input|;t t
7095 s&@top_builddir@&$ac_top_builddir_sub&;t t
7096 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7097 s&@srcdir@&$ac_srcdir&;t t
7098 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7099 s&@top_srcdir@&$ac_top_srcdir&;t t
7100 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7101 s&@builddir@&$ac_builddir&;t t
7102 s&@abs_builddir@&$ac_abs_builddir&;t t
7103 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7104 s&@INSTALL@&$ac_INSTALL&;t t
7105 s&@MKDIR_P@&$ac_MKDIR_P&;t t
7106 $ac_datarootdir_hack
7108 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
7109 || as_fn_error "could not create $ac_file" "$LINENO" 5
7111 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7112 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
7113 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7115 which seems to be undefined. Please make sure it is defined." >&5
7116 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7117 which seems to be undefined. Please make sure it is defined." >&2;}
7121 -) cat "$tmp/out" && rm -f "$tmp/out";;
7122 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
7124 || as_fn_error "could not create $ac_file" "$LINENO" 5
7128 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7129 $as_echo "$as_me: executing $ac_file commands" >&6;}
7134 case $ac_file$ac_mode in
7135 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
7136 # Autoconf 2.62 quotes --file arguments for eval, but not when files
7137 # are listed without --file. Let's play safe and only enable the eval
7138 # if we detect the quoting.
7139 case $CONFIG_FILES in
7140 *\'*) eval set x "$CONFIG_FILES" ;;
7141 *) set x $CONFIG_FILES ;;
7146 # Strip MF so we end up with the name of the file.
7147 mf=`echo "$mf" | sed -e 's/:.*$//'`
7148 # Check whether this is an Automake generated Makefile or not.
7149 # We used to match only the files named `Makefile.in', but
7150 # some people rename them; so instead we look at the file content.
7151 # Grep'ing the first line is not enough: some people post-process
7152 # each Makefile.in and add a new line on top of each file to say so.
7153 # Grep'ing the whole file is not good either: AIX grep has a line
7154 # limit of 2048, but all sed's we know have understand at least 4000.
7155 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
7156 dirpart=`$as_dirname -- "$mf" ||
7157 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7158 X"$mf" : 'X\(//\)[^/]' \| \
7159 X"$mf" : 'X\(//\)$' \| \
7160 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
7162 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7182 # Extract the definition of DEPDIR, am__include, and am__quote
7183 # from the Makefile without running `make'.
7184 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
7185 test -z "$DEPDIR" && continue
7186 am__include=`sed -n 's/^am__include = //p' < "$mf"`
7187 test -z "am__include" && continue
7188 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
7189 # When using ansi2knr, U may be empty or an underscore; expand it
7190 U=`sed -n 's/^U = //p' < "$mf"`
7191 # Find all dependency output files, they are included files with
7192 # $(DEPDIR) in their names. We invoke sed twice because it is the
7193 # simplest approach to changing $(DEPDIR) to its actual value in the
7195 for file in `sed -n "
7196 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
7197 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7198 # Make sure the directory exists.
7199 test -f "$dirpart/$file" && continue
7200 fdir=`$as_dirname -- "$file" ||
7201 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7202 X"$file" : 'X\(//\)[^/]' \| \
7203 X"$file" : 'X\(//\)$' \| \
7204 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
7206 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7223 as_dir=$dirpart/$fdir; as_fn_mkdir_p
7224 # echo "creating $dirpart/$file"
7225 echo '# dummy' > "$dirpart/$file"
7237 ac_clean_files=$ac_clean_files_save
7239 test $ac_write_fail = 0 ||
7240 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
7243 # configure is writing to config.log, and then calls config.status.
7244 # config.status does its own redirection, appending to config.log.
7245 # Unfortunately, on DOS this fails, as config.log is still kept open
7246 # by configure, so config.status won't be able to write to it; its
7247 # output is simply discarded. So we exec the FD to /dev/null,
7248 # effectively closing config.log, so it can be properly (re)opened and
7249 # appended to by config.status. When coming back to configure, we
7250 # need to make the FD available again.
7251 if test "$no_create" != yes; then
7253 ac_config_status_args=
7254 test "$silent" = yes &&
7255 ac_config_status_args="$ac_config_status_args --quiet"
7257 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7259 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7260 # would make configure fail if this is the last instruction.
7261 $ac_cs_success || as_fn_exit $?
7263 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7265 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}