2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for GSS 0.46.
5 # Report bugs to <gdiso@ustc.edu>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in
26 *posix
*) set -o posix
;;
35 # Avoid depending upon Character Ranges.
36 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits
='0123456789'
40 as_cr_alnum
=$as_cr_Letters$as_cr_digits
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
47 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
55 # Support unset when possible.
56 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
72 # Find who we are. Look in the path if we contain no directory separator.
74 *[\\/]* ) as_myself
=$0 ;;
75 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
79 test -z "$as_dir" && as_dir
=.
80 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x
; then
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var
in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
110 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C
; export $as_var
113 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
117 # Required to use basename.
118 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
125 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
132 # Name of the executable.
133 as_me
=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 if test "x$CONFIG_SHELL" = x
; then
157 if (eval ":") 2>/dev
/null
; then
163 if test $as_have_required = yes && (eval ":
173 as_func_ret_success () {
176 as_func_ret_failure () {
181 if as_func_success; then
185 echo as_func_success failed.
188 if as_func_failure; then
190 echo as_func_failure succeeded.
193 if as_func_ret_success; then
197 echo as_func_ret_success failed.
200 if as_func_ret_failure; then
202 echo as_func_ret_failure succeeded.
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
209 echo positional parameters were not saved.
212 test \$exitcode = 0) || { (exit 1); exit 1; }
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev
/null
; then
223 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
224 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
227 test -z "$as_dir" && as_dir
=.
230 for as_base
in sh bash ksh sh5
; do
231 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
238 for as_shell
in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
250 case `(set -o) 2>/dev/null` in
251 *posix
*) set -o posix
;;
260 CONFIG_SHELL
=$as_shell
262 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
271 case `(set -o) 2>/dev/null` in
272 *posix
*) set -o posix
;;
288 as_func_ret_success
() {
291 as_func_ret_failure
() {
296 if as_func_success
; then
300 echo as_func_success failed.
303 if as_func_failure
; then
305 echo as_func_failure succeeded.
308 if as_func_ret_success
; then
312 echo as_func_ret_success failed.
315 if as_func_ret_failure
; then
317 echo as_func_ret_failure succeeded.
320 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
324 echo positional parameters were not saved.
327 test $exitcode = 0) ||
{ (exit 1); exit 1; }
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
344 if test "x$CONFIG_SHELL" != x
; then
345 for as_var
in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
353 if test $as_have_required = no
; then
354 echo This
script requires a shell
more modern than all the
355 echo shells that I found on your system. Please
install a
356 echo modern shell
, or manually run the
script under such a
357 echo shell
if you
do have one.
358 { (exit 1); exit 1; }
368 (eval "as_func_return () {
377 as_func_ret_success () {
380 as_func_ret_failure () {
385 if as_func_success; then
389 echo as_func_success failed.
392 if as_func_failure; then
394 echo as_func_failure succeeded.
397 if as_func_ret_success; then
401 echo as_func_ret_success failed.
404 if as_func_ret_failure; then
406 echo as_func_ret_failure succeeded.
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
413 echo positional parameters were not saved.
416 test \$exitcode = 0") ||
{
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system
,
419 echo including any error possibly output before this
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
455 chmod +x
"$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
463 # Exit status is that of the last command.
468 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
474 ECHO_C
= ECHO_N
= ECHO_T
=
478 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
485 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
492 rm -f conf$$ conf$$.exe conf$$.
file
493 if test -d conf$$.dir
; then
494 rm -f conf$$.dir
/conf$$.
file
500 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
508 elif ln conf$$.
file conf$$
2>/dev
/null
; then
513 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
514 rmdir conf$$.dir
2>/dev
/null
516 if mkdir
-p .
2>/dev
/null
; then
519 test -d .
/-p && rmdir .
/-p
523 if test -x / >/dev
/null
2>&1; then
526 if ls -dL / >/dev
/null
2>&1; then
533 if test -d "$1"; then
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
544 as_executable_p
=$as_test_x
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
554 exec 7<&0 </dev
/null
6>&1
557 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
558 # so uname gets run too.
559 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
564 ac_default_prefix
=/usr
/local
566 ac_config_libobj_dir
=.
572 SHELL
=${CONFIG_SHELL-/bin/sh}
574 # Identity of this package.
576 PACKAGE_TARNAME
='gss'
577 PACKAGE_VERSION
='0.46'
578 PACKAGE_STRING
='GSS 0.46'
579 PACKAGE_BUGREPORT
='gdiso@ustc.edu'
581 ac_unique_file
="src/main.cc"
582 # Factoring default headers for most tests.
583 ac_includes_default
="\
585 #ifdef HAVE_SYS_TYPES_H
586 # include <sys/types.h>
588 #ifdef HAVE_SYS_STAT_H
589 # include <sys/stat.h>
595 # ifdef HAVE_STDLIB_H
600 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 #ifdef HAVE_STRINGS_H
606 # include <strings.h>
608 #ifdef HAVE_INTTYPES_H
609 # include <inttypes.h>
627 program_transform_name
700 ac_precious_vars
='build_alias
717 # Initialize some variables set by options.
719 ac_init_version
=false
720 # The variables have the same names as the options, with
721 # dashes changed to underlines.
729 program_transform_name
=s
,x
,x
,
737 # Installation directory options.
738 # These are left unexpanded so users can "make install exec_prefix=/foo"
739 # and all the variables that are supposed to be based on exec_prefix
740 # by default will actually change.
741 # Use braces instead of parens because sh, perl, etc. also accept them.
742 # (The list follows the same order as the GNU Coding Standards.)
743 bindir
='${exec_prefix}/bin'
744 sbindir
='${exec_prefix}/sbin'
745 libexecdir
='${exec_prefix}/libexec'
746 datarootdir
='${prefix}/share'
747 datadir
='${datarootdir}'
748 sysconfdir
='${prefix}/etc'
749 sharedstatedir
='${prefix}/com'
750 localstatedir
='${prefix}/var'
751 includedir
='${prefix}/include'
752 oldincludedir
='/usr/include'
753 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
754 infodir
='${datarootdir}/info'
759 libdir
='${exec_prefix}/lib'
760 localedir
='${datarootdir}/locale'
761 mandir
='${datarootdir}/man'
767 # If the previous option needs an argument, assign it.
768 if test -n "$ac_prev"; then
769 eval $ac_prev=\
$ac_option
775 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
779 # Accept the important Cygnus configure options, so we can diagnose typos.
781 case $ac_dashdash$ac_option in
785 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
787 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
790 -build |
--build |
--buil |
--bui |
--bu)
791 ac_prev
=build_alias
;;
792 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
793 build_alias
=$ac_optarg ;;
795 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
796 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
797 ac_prev
=cache_file
;;
798 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
799 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
800 cache_file
=$ac_optarg ;;
803 cache_file
=config.cache
;;
805 -datadir |
--datadir |
--datadi |
--datad)
807 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
808 datadir
=$ac_optarg ;;
810 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
811 |
--dataroo |
--dataro |
--datar)
812 ac_prev
=datarootdir
;;
813 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
814 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
815 datarootdir
=$ac_optarg ;;
817 -disable-* |
--disable-*)
818 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
819 # Reject names that are not valid shell variable names.
820 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
821 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
822 { (exit 1); exit 1; }; }
823 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
824 eval enable_
$ac_feature=no
;;
826 -docdir |
--docdir |
--docdi |
--doc |
--do)
828 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
831 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
833 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
836 -enable-* |
--enable-*)
837 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
838 # Reject names that are not valid shell variable names.
839 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
840 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
841 { (exit 1); exit 1; }; }
842 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
843 eval enable_
$ac_feature=\
$ac_optarg ;;
845 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
846 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
847 |
--exec |
--exe |
--ex)
848 ac_prev
=exec_prefix
;;
849 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
850 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
851 |
--exec=* |
--exe=* |
--ex=*)
852 exec_prefix
=$ac_optarg ;;
854 -gas |
--gas |
--ga |
--g)
855 # Obsolete; use --with-gas.
858 -help |
--help |
--hel |
--he |
-h)
860 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
861 ac_init_help
=recursive
;;
862 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
863 ac_init_help
=short
;;
865 -host |
--host |
--hos |
--ho)
866 ac_prev
=host_alias
;;
867 -host=* |
--host=* |
--hos=* |
--ho=*)
868 host_alias
=$ac_optarg ;;
870 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
872 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
874 htmldir
=$ac_optarg ;;
876 -includedir |
--includedir |
--includedi |
--included |
--include \
877 |
--includ |
--inclu |
--incl |
--inc)
878 ac_prev
=includedir
;;
879 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
880 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
881 includedir
=$ac_optarg ;;
883 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
885 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
886 infodir
=$ac_optarg ;;
888 -libdir |
--libdir |
--libdi |
--libd)
890 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
893 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
894 |
--libexe |
--libex |
--libe)
895 ac_prev
=libexecdir
;;
896 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
897 |
--libexe=* |
--libex=* |
--libe=*)
898 libexecdir
=$ac_optarg ;;
900 -localedir |
--localedir |
--localedi |
--localed |
--locale)
902 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
903 localedir
=$ac_optarg ;;
905 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
906 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
907 ac_prev
=localstatedir
;;
908 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
909 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
910 localstatedir
=$ac_optarg ;;
912 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
914 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
918 # Obsolete; use --without-fp.
921 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
922 |
--no-cr |
--no-c |
-n)
925 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
926 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
929 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
930 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
931 |
--oldin |
--oldi |
--old |
--ol |
--o)
932 ac_prev
=oldincludedir
;;
933 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
934 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
935 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
936 oldincludedir
=$ac_optarg ;;
938 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
940 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
943 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
944 |
--program-pre |
--program-pr |
--program-p)
945 ac_prev
=program_prefix
;;
946 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
947 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
948 program_prefix
=$ac_optarg ;;
950 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
951 |
--program-suf |
--program-su |
--program-s)
952 ac_prev
=program_suffix
;;
953 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
954 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
955 program_suffix
=$ac_optarg ;;
957 -program-transform-name |
--program-transform-name \
958 |
--program-transform-nam |
--program-transform-na \
959 |
--program-transform-n |
--program-transform- \
960 |
--program-transform |
--program-transfor \
961 |
--program-transfo |
--program-transf \
962 |
--program-trans |
--program-tran \
963 |
--progr-tra |
--program-tr |
--program-t)
964 ac_prev
=program_transform_name
;;
965 -program-transform-name=* |
--program-transform-name=* \
966 |
--program-transform-nam=* |
--program-transform-na=* \
967 |
--program-transform-n=* |
--program-transform-=* \
968 |
--program-transform=* |
--program-transfor=* \
969 |
--program-transfo=* |
--program-transf=* \
970 |
--program-trans=* |
--program-tran=* \
971 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
972 program_transform_name
=$ac_optarg ;;
974 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
976 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
979 -psdir |
--psdir |
--psdi |
--psd |
--ps)
981 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
984 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
985 |
-silent |
--silent |
--silen |
--sile |
--sil)
988 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
990 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
992 sbindir
=$ac_optarg ;;
994 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
995 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
996 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
998 ac_prev
=sharedstatedir
;;
999 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1000 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1001 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1003 sharedstatedir
=$ac_optarg ;;
1005 -site |
--site |
--sit)
1007 -site=* |
--site=* |
--sit=*)
1010 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1012 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1013 srcdir
=$ac_optarg ;;
1015 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1016 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1017 ac_prev
=sysconfdir
;;
1018 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1019 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1020 sysconfdir
=$ac_optarg ;;
1022 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1023 ac_prev
=target_alias
;;
1024 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1025 target_alias
=$ac_optarg ;;
1027 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1030 -version |
--version |
--versio |
--versi |
--vers |
-V)
1031 ac_init_version
=: ;;
1034 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1035 # Reject names that are not valid shell variable names.
1036 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1037 { echo "$as_me: error: invalid package name: $ac_package" >&2
1038 { (exit 1); exit 1; }; }
1039 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1040 eval with_
$ac_package=\
$ac_optarg ;;
1042 -without-* |
--without-*)
1043 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1044 # Reject names that are not valid shell variable names.
1045 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1046 { echo "$as_me: error: invalid package name: $ac_package" >&2
1047 { (exit 1); exit 1; }; }
1048 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1049 eval with_
$ac_package=no
;;
1052 # Obsolete; use --with-x.
1055 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1056 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1057 ac_prev
=x_includes
;;
1058 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1059 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1060 x_includes
=$ac_optarg ;;
1062 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1063 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1064 ac_prev
=x_libraries
;;
1065 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1066 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1067 x_libraries
=$ac_optarg ;;
1069 -*) { echo "$as_me: error: unrecognized option: $ac_option
1070 Try \`$0 --help' for more information." >&2
1071 { (exit 1); exit 1; }; }
1075 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1076 # Reject names that are not valid shell variable names.
1077 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1078 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1079 { (exit 1); exit 1; }; }
1080 eval $ac_envvar=\
$ac_optarg
1081 export $ac_envvar ;;
1084 # FIXME: should be removed in autoconf 3.0.
1085 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1086 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1087 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1088 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1094 if test -n "$ac_prev"; then
1095 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1096 { echo "$as_me: error: missing argument to $ac_option" >&2
1097 { (exit 1); exit 1; }; }
1100 # Be sure to have absolute directory names.
1101 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1102 datadir sysconfdir sharedstatedir localstatedir includedir \
1103 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1104 libdir localedir mandir
1106 eval ac_val
=\$
$ac_var
1108 [\\/$
]* | ?
:[\\/]* ) continue;;
1109 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1111 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1112 { (exit 1); exit 1; }; }
1115 # There might be people who depend on the old broken behavior: `$host'
1116 # used to hold the argument of --host etc.
1117 # FIXME: To remove some day.
1120 target
=$target_alias
1122 # FIXME: To remove some day.
1123 if test "x$host_alias" != x
; then
1124 if test "x$build_alias" = x
; then
1125 cross_compiling
=maybe
1126 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1127 If a cross compiler is detected then cross compile mode will be used." >&2
1128 elif test "x$build_alias" != "x$host_alias"; then
1134 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1136 test "$silent" = yes && exec 6>/dev
/null
1139 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1140 ac_ls_di
=`ls -di .` &&
1141 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1142 { echo "$as_me: error: Working directory cannot be determined" >&2
1143 { (exit 1); exit 1; }; }
1144 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1145 { echo "$as_me: error: pwd does not report name of working directory" >&2
1146 { (exit 1); exit 1; }; }
1149 # Find the source files, if location was not specified.
1150 if test -z "$srcdir"; then
1151 ac_srcdir_defaulted
=yes
1152 # Try the directory containing this script, then the parent directory.
1153 ac_confdir
=`$as_dirname -- "$0" ||
1154 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1155 X"$0" : 'X\(//\)[^/]' \| \
1156 X"$0" : 'X\(//\)$' \| \
1157 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1159 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1177 if test ! -r "$srcdir/$ac_unique_file"; then
1181 ac_srcdir_defaulted
=no
1183 if test ! -r "$srcdir/$ac_unique_file"; then
1184 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1185 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1186 { (exit 1); exit 1; }; }
1188 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1190 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1191 { (exit 1); exit 1; }; }
1193 # When building in place, set srcdir=.
1194 if test "$ac_abs_confdir" = "$ac_pwd"; then
1197 # Remove unnecessary trailing slashes from srcdir.
1198 # Double slashes in file names in object file debugging info
1199 # mess up M-x gdb in Emacs.
1201 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1203 for ac_var
in $ac_precious_vars; do
1204 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1205 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1206 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1207 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1211 # Report the --help message.
1213 if test "$ac_init_help" = "long"; then
1214 # Omit some internal or obsolete options to make the list less imposing.
1215 # This message is too long to be a string in the A/UX 3.1 sh.
1217 \`configure' configures GSS 0.46 to adapt to many kinds of systems.
1219 Usage: $0 [OPTION]... [VAR=VALUE]...
1221 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1222 VAR=VALUE. See below for descriptions of some of the useful variables.
1224 Defaults for the options are specified in brackets.
1227 -h, --help display this help and exit
1228 --help=short display options specific to this package
1229 --help=recursive display the short help of all the included packages
1230 -V, --version display version information and exit
1231 -q, --quiet, --silent do not print \`checking...' messages
1232 --cache-file=FILE cache test results in FILE [disabled]
1233 -C, --config-cache alias for \`--cache-file=config.cache'
1234 -n, --no-create do not create output files
1235 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1237 Installation directories:
1238 --prefix=PREFIX install architecture-independent files in PREFIX
1239 [$ac_default_prefix]
1240 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1243 By default, \`make install' will install all the files in
1244 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1245 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1246 for instance \`--prefix=\$HOME'.
1248 For better control, use the options below.
1250 Fine tuning of the installation directories:
1251 --bindir=DIR user executables [EPREFIX/bin]
1252 --sbindir=DIR system admin executables [EPREFIX/sbin]
1253 --libexecdir=DIR program executables [EPREFIX/libexec]
1254 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1255 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1256 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1257 --libdir=DIR object code libraries [EPREFIX/lib]
1258 --includedir=DIR C header files [PREFIX/include]
1259 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1260 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1261 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1262 --infodir=DIR info documentation [DATAROOTDIR/info]
1263 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1264 --mandir=DIR man documentation [DATAROOTDIR/man]
1265 --docdir=DIR documentation root [DATAROOTDIR/doc/gss]
1266 --htmldir=DIR html documentation [DOCDIR]
1267 --dvidir=DIR dvi documentation [DOCDIR]
1268 --pdfdir=DIR pdf documentation [DOCDIR]
1269 --psdir=DIR ps documentation [DOCDIR]
1275 --x-includes=DIR X include files are
in DIR
1276 --x-libraries=DIR X library files are
in DIR
1279 --build=BUILD configure
for building on BUILD
[guessed
]
1280 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1284 if test -n "$ac_init_help"; then
1285 case $ac_init_help in
1286 short | recursive
) echo "Configuration of GSS 0.46:";;
1291 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1292 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1293 --enable-debug=OPTS build
for debugging default
=no
1294 --enable-gsl=OPTS use gsl Fermi
function default
=no
1297 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1298 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1299 --with-cgns=CGNSdir directory containing CGNS distribution.
1300 $CGNSdir/include
for header
1301 $CGNSdir/lib
for library
1302 --with-Win32 use Win32 native graphic
function for plot
1303 --with-x use the X Window System
1305 Some influential environment variables
:
1306 CC C compiler
command
1307 CFLAGS C compiler flags
1308 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1309 nonstandard directory
<lib dir
>
1310 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1311 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1312 you have headers
in a nonstandard directory
<include dir
>
1313 CXX C
++ compiler
command
1314 CXXFLAGS C
++ compiler flags
1315 YACC The
`Yet Another C Compiler' implementation to use. Defaults to
1316 the first program found out of: `bison
-y', `byacc', `yacc'.
1317 YFLAGS The list of arguments that will be passed by default to $YACC.
1318 This script will default YFLAGS to the empty string to avoid a
1319 default value of `-d' given by some make applications.
1321 XMKMF Path to xmkmf, Makefile generator for X Window System
1323 Use these variables to override the choices made by `configure' or to
help
1324 it to
find libraries and programs with nonstandard names
/locations.
1326 Report bugs to
<gdiso@ustc.edu
>.
1331 if test "$ac_init_help" = "recursive"; then
1332 # If there are subdirs, report their specific --help.
1333 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1334 test -d "$ac_dir" ||
continue
1338 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1340 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1341 # A ".." for each directory in $ac_dir_suffix.
1342 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1343 case $ac_top_builddir_sub in
1344 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1345 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1348 ac_abs_top_builddir
=$ac_pwd
1349 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1350 # for backward compatibility:
1351 ac_top_builddir
=$ac_top_build_prefix
1354 .
) # We are building in place.
1356 ac_top_srcdir
=$ac_top_builddir_sub
1357 ac_abs_top_srcdir
=$ac_pwd ;;
1358 [\\/]* | ?
:[\\/]* ) # Absolute name.
1359 ac_srcdir
=$srcdir$ac_dir_suffix;
1360 ac_top_srcdir
=$srcdir
1361 ac_abs_top_srcdir
=$srcdir ;;
1363 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1364 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1365 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1367 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1369 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1370 # Check for guested configure.
1371 if test -f "$ac_srcdir/configure.gnu"; then
1373 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1374 elif test -f "$ac_srcdir/configure"; then
1376 $SHELL "$ac_srcdir/configure" --help=recursive
1378 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1380 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1384 test -n "$ac_init_help" && exit $ac_status
1385 if $ac_init_version; then
1388 generated by GNU Autoconf
2.61
1390 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1391 2002, 2003, 2004, 2005, 2006 Free Software Foundation
, Inc.
1392 This configure
script is free software
; the Free Software Foundation
1393 gives unlimited permission to copy
, distribute and modify it.
1397 cat >config.log
<<_ACEOF
1398 This file contains any messages produced by compilers while
1399 running configure, to aid debugging if configure makes a mistake.
1401 It was created by GSS $as_me 0.46, which was
1402 generated by GNU Autoconf 2.61. Invocation command line was
1414 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1415 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1416 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1417 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1418 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1420 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1421 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1423 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1424 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1425 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1426 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1427 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1428 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1429 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1433 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1437 test -z "$as_dir" && as_dir
=.
1438 echo "PATH: $as_dir"
1454 # Keep a trace of the command line.
1455 # Strip out --no-create and --no-recursion so they do not pile up.
1456 # Strip out --silent because we don't want to record it for future runs.
1457 # Also quote any args containing shell meta-characters.
1458 # Make two passes to allow for proper duplicate-argument suppression.
1462 ac_must_keep_next
=false
1468 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1469 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1470 |
-silent |
--silent |
--silen |
--sile |
--sil)
1473 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1476 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1478 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1479 if test $ac_must_keep_next = true
; then
1480 ac_must_keep_next
=false
# Got value, back to normal.
1483 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1484 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1485 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1486 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1487 case "$ac_configure_args0 " in
1488 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1491 -* ) ac_must_keep_next
=true
;;
1494 ac_configure_args
="$ac_configure_args '$ac_arg'"
1499 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1500 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1502 # When interrupted or exit'd, cleanup temporary files, and complete
1503 # config.log. We remove comments because anyway the quotes in there
1504 # would cause problems or look ugly.
1505 # WARNING: Use '\'' to represent an apostrophe within the trap.
1506 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1507 trap 'exit_status=$?
1508 # Save into config.log some information that might help in debugging.
1513 ## ---------------- ##
1514 ## Cache variables. ##
1515 ## ---------------- ##
1518 # The following way of writing the cache mishandles newlines in values,
1520 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1521 eval ac_val=\$$ac_var
1525 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1526 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1529 _ | IFS | as_nl) ;; #(
1530 *) $as_unset $ac_var ;;
1535 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1536 *${as_nl}ac_space=\ *)
1538 "s/'\''/'\''\\\\'\'''\''/g;
1539 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1542 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1550 ## ----------------- ##
1551 ## Output variables. ##
1552 ## ----------------- ##
1555 for ac_var in $ac_subst_vars
1557 eval ac_val=\$$ac_var
1559 *\'\''*) ac_val
=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1561 echo "$ac_var='\''$ac_val'\''"
1565 if test -n "$ac_subst_files"; then
1567 ## ------------------- ##
1568 ## File substitutions. ##
1569 ## ------------------- ##
1572 for ac_var
in $ac_subst_files
1574 eval ac_val
=\$
$ac_var
1576 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1578 echo "$ac_var='\''$ac_val'\''"
1583 if test -s confdefs.h; then
1593 test "$ac_signal" != 0 &&
1594 echo "$as_me: caught signal $ac_signal"
1595 echo "$as_me: exit $exit_status"
1597 rm -f core *.core core.conftest.* &&
1598 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1601 for ac_signal
in 1 2 13 15; do
1602 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1606 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1607 rm -f -r conftest
* confdefs.h
1609 # Predefined preprocessor variables.
1611 cat >>confdefs.h
<<_ACEOF
1612 #define PACKAGE_NAME "$PACKAGE_NAME"
1616 cat >>confdefs.h
<<_ACEOF
1617 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1621 cat >>confdefs.h
<<_ACEOF
1622 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1626 cat >>confdefs.h
<<_ACEOF
1627 #define PACKAGE_STRING "$PACKAGE_STRING"
1631 cat >>confdefs.h
<<_ACEOF
1632 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1636 # Let the site file select an alternate cache file if it wants to.
1637 # Prefer explicitly selected file to automatically selected ones.
1638 if test -n "$CONFIG_SITE"; then
1639 set x
"$CONFIG_SITE"
1640 elif test "x$prefix" != xNONE
; then
1641 set x
"$prefix/share/config.site" "$prefix/etc/config.site"
1643 set x
"$ac_default_prefix/share/config.site" \
1644 "$ac_default_prefix/etc/config.site"
1649 if test -r "$ac_site_file"; then
1650 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1651 echo "$as_me: loading site script $ac_site_file" >&6;}
1652 sed 's/^/| /' "$ac_site_file" >&5
1657 if test -r "$cache_file"; then
1658 # Some versions of bash will fail to source /dev/null (special
1659 # files actually), so we avoid doing that.
1660 if test -f "$cache_file"; then
1661 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1662 echo "$as_me: loading cache $cache_file" >&6;}
1664 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
1665 *) .
"./$cache_file";;
1669 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1670 echo "$as_me: creating cache $cache_file" >&6;}
1674 # Check that the precious variables saved in the cache have kept the same
1676 ac_cache_corrupted
=false
1677 for ac_var
in $ac_precious_vars; do
1678 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1679 eval ac_new_set
=\
$ac_env_${ac_var}_set
1680 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
1681 eval ac_new_val
=\
$ac_env_${ac_var}_value
1682 case $ac_old_set,$ac_new_set in
1684 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1685 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1686 ac_cache_corrupted
=: ;;
1688 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1689 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1690 ac_cache_corrupted
=: ;;
1693 if test "x$ac_old_val" != "x$ac_new_val"; then
1694 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1695 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1696 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1697 echo "$as_me: former value: $ac_old_val" >&2;}
1698 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1699 echo "$as_me: current value: $ac_new_val" >&2;}
1700 ac_cache_corrupted
=:
1703 # Pass precious variables to config.status.
1704 if test "$ac_new_set" = set; then
1706 *\'*) ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1707 *) ac_arg
=$ac_var=$ac_new_val ;;
1709 case " $ac_configure_args " in
1710 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1711 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1715 if $ac_cache_corrupted; then
1716 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1717 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1718 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1719 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1720 { (exit 1); exit 1; }; }
1748 ac_cpp
='$CPP $CPPFLAGS'
1749 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1750 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1751 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1756 # Create a configuration header
1757 ac_config_headers
="$ac_config_headers config.h"
1763 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1764 if test -f "$ac_dir/install-sh"; then
1766 ac_install_sh
="$ac_aux_dir/install-sh -c"
1768 elif test -f "$ac_dir/install.sh"; then
1770 ac_install_sh
="$ac_aux_dir/install.sh -c"
1772 elif test -f "$ac_dir/shtool"; then
1774 ac_install_sh
="$ac_aux_dir/shtool install -c"
1778 if test -z "$ac_aux_dir"; then
1779 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1780 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1781 { (exit 1); exit 1; }; }
1784 # These three variables are undocumented and unsupported,
1785 # and are intended to be withdrawn in a future Autoconf release.
1786 # They can cause serious problems if a builder's source tree is in a directory
1787 # whose full name contains unusual characters.
1788 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1789 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1790 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1793 # Make sure we can run config.sub.
1794 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
1795 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1796 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1797 { (exit 1); exit 1; }; }
1799 { echo "$as_me:$LINENO: checking build system type" >&5
1800 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1801 if test "${ac_cv_build+set}" = set; then
1802 echo $ECHO_N "(cached) $ECHO_C" >&6
1804 ac_build_alias
=$build_alias
1805 test "x$ac_build_alias" = x
&&
1806 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
1807 test "x$ac_build_alias" = x
&&
1808 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1809 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1810 { (exit 1); exit 1; }; }
1811 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1812 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1813 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1814 { (exit 1); exit 1; }; }
1817 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1818 echo "${ECHO_T}$ac_cv_build" >&6; }
1819 case $ac_cv_build in
1821 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1822 echo "$as_me: error: invalid value of canonical build" >&2;}
1823 { (exit 1); exit 1; }; };;
1826 ac_save_IFS
=$IFS; IFS
='-'
1832 # Remember, the first character of IFS is used to create $*,
1833 # except with old shells:
1836 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
1839 { echo "$as_me:$LINENO: checking host system type" >&5
1840 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1841 if test "${ac_cv_host+set}" = set; then
1842 echo $ECHO_N "(cached) $ECHO_C" >&6
1844 if test "x$host_alias" = x
; then
1845 ac_cv_host
=$ac_cv_build
1847 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1848 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1849 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1850 { (exit 1); exit 1; }; }
1854 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1855 echo "${ECHO_T}$ac_cv_host" >&6; }
1858 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1859 echo "$as_me: error: invalid value of canonical host" >&2;}
1860 { (exit 1); exit 1; }; };;
1863 ac_save_IFS
=$IFS; IFS
='-'
1869 # Remember, the first character of IFS is used to create $*,
1870 # except with old shells:
1873 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
1877 #--------------------------------------------------------------------------
1878 # Checks for programs.
1879 #--------------------------------------------------------------------------
1881 ac_cpp
='$CPP $CPPFLAGS'
1882 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1883 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1884 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1885 if test -n "$ac_tool_prefix"; then
1886 for ac_prog
in icc gcc cc
1888 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1889 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1890 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1892 if test "${ac_cv_prog_CC+set}" = set; then
1893 echo $ECHO_N "(cached) $ECHO_C" >&6
1895 if test -n "$CC"; then
1896 ac_cv_prog_CC
="$CC" # Let the user override the test.
1898 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1902 test -z "$as_dir" && as_dir
=.
1903 for ac_exec_ext
in '' $ac_executable_extensions; do
1904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1905 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
1906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1916 if test -n "$CC"; then
1917 { echo "$as_me:$LINENO: result: $CC" >&5
1918 echo "${ECHO_T}$CC" >&6; }
1920 { echo "$as_me:$LINENO: result: no" >&5
1921 echo "${ECHO_T}no" >&6; }
1925 test -n "$CC" && break
1928 if test -z "$CC"; then
1930 for ac_prog
in icc gcc cc
1932 # Extract the first word of "$ac_prog", so it can be a program name with args.
1933 set dummy
$ac_prog; ac_word
=$2
1934 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1936 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1937 echo $ECHO_N "(cached) $ECHO_C" >&6
1939 if test -n "$ac_ct_CC"; then
1940 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1942 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1946 test -z "$as_dir" && as_dir
=.
1947 for ac_exec_ext
in '' $ac_executable_extensions; do
1948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1949 ac_cv_prog_ac_ct_CC
="$ac_prog"
1950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1959 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1960 if test -n "$ac_ct_CC"; then
1961 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1962 echo "${ECHO_T}$ac_ct_CC" >&6; }
1964 { echo "$as_me:$LINENO: result: no" >&5
1965 echo "${ECHO_T}no" >&6; }
1969 test -n "$ac_ct_CC" && break
1972 if test "x$ac_ct_CC" = x
; then
1975 case $cross_compiling:$ac_tool_warned in
1977 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1978 whose name does not start with the host triplet. If you think this
1979 configuration is useful to you, please write to autoconf@gnu.org." >&5
1980 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1981 whose name does not start with the host triplet. If you think this
1982 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1983 ac_tool_warned
=yes ;;
1990 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1991 See \`config.log' for more details." >&5
1992 echo "$as_me: error: no acceptable C compiler found in \$PATH
1993 See \`config.log' for more details." >&2;}
1994 { (exit 1); exit 1; }; }
1996 # Provide some information about the compiler.
1997 echo "$as_me:$LINENO: checking for C compiler version" >&5
1998 ac_compiler
=`set X $ac_compile; echo $2`
1999 { (ac_try
="$ac_compiler --version >&5"
2001 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2002 *) ac_try_echo=$ac_try;;
2004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2005 (eval "$ac_compiler --version >&5") 2>&5
2007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2008 (exit $ac_status); }
2009 { (ac_try="$ac_compiler -v >&5"
2011 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2012 *) ac_try_echo
=$ac_try;;
2014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2015 (eval "$ac_compiler -v >&5") 2>&5
2017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2018 (exit $ac_status); }
2019 { (ac_try
="$ac_compiler -V >&5"
2021 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2022 *) ac_try_echo=$ac_try;;
2024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2025 (eval "$ac_compiler -V >&5") 2>&5
2027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2028 (exit $ac_status); }
2030 cat >conftest.$ac_ext <<_ACEOF
2033 cat confdefs.h >>conftest.$ac_ext
2034 cat >>conftest.$ac_ext <<_ACEOF
2035 /* end confdefs.h. */
2045 ac_clean_files_save=$ac_clean_files
2046 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2047 # Try to create an executable without -o first, disregard a.out.
2048 # It will help us diagnose broken compilers, and finding out an intuition
2050 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2051 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2052 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2054 # List of possible output files, starting from the most likely.
2055 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
2056 # only as a last resort. b.out is created by i960 compilers.
2057 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
2059 # The IRIX 6 linker writes into existing files which may not be
2060 # executable, retaining their permissions. Remove them first so a
2061 # subsequent execution test works.
2063 for ac_file in $ac_files
2066 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2067 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2072 if { (ac_try="$ac_link_default"
2074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2075 *) ac_try_echo=$ac_try;;
2077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2078 (eval "$ac_link_default") 2>&5
2080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2081 (exit $ac_status); }; then
2082 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2083 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2084 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2085 # so that the user can short-circuit this test for compilers unknown to
2087 for ac_file
in $ac_files ''
2089 test -f "$ac_file" ||
continue
2091 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
2094 # We found the default executable, but exeext='' is most
2098 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2100 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2102 # We set ac_cv_exeext here because the later test for it is not
2103 # safe: cross compilers may not add the suffix if given an `-o'
2104 # argument, so we may need to know it at that point already.
2105 # Even if this section looks crufty: it has the advantage of
2112 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2118 { echo "$as_me:$LINENO: result: $ac_file" >&5
2119 echo "${ECHO_T}$ac_file" >&6; }
2120 if test -z "$ac_file"; then
2121 echo "$as_me: failed program was:" >&5
2122 sed 's/^/| /' conftest.
$ac_ext >&5
2124 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2125 See \`config.log' for more details." >&5
2126 echo "$as_me: error: C compiler cannot create executables
2127 See \`config.log' for more details." >&2;}
2128 { (exit 77); exit 77; }; }
2131 ac_exeext
=$ac_cv_exeext
2133 # Check that the compiler produces executables we can run. If not, either
2134 # the compiler is broken, or we cross compile.
2135 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2136 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2137 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2138 # If not cross compiling, check that we can run a simple program.
2139 if test "$cross_compiling" != yes; then
2140 if { ac_try
='./$ac_file'
2141 { (case "(($ac_try" in
2142 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2143 *) ac_try_echo=$ac_try;;
2145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2146 (eval "$ac_try") 2>&5
2148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2149 (exit $ac_status); }; }; then
2152 if test "$cross_compiling" = maybe; then
2155 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2156 If you meant to cross compile, use \`--host'.
2157 See \`config.log' for more details.
" >&5
2158 echo "$as_me: error
: cannot run C compiled programs.
2159 If you meant to cross compile
, use \
`--host'.
2160 See \`config.log
' for more details." >&2;}
2161 { (exit 1); exit 1; }; }
2165 { echo "$as_me:$LINENO: result: yes" >&5
2166 echo "${ECHO_T}yes" >&6; }
2168 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2169 ac_clean_files=$ac_clean_files_save
2170 # Check that the compiler produces executables we can run. If not, either
2171 # the compiler is broken, or we cross compile.
2172 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2173 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2174 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2175 echo "${ECHO_T}$cross_compiling" >&6; }
2177 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2178 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2179 if { (ac_try="$ac_link"
2181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2182 *) ac_try_echo=$ac_try;;
2184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2185 (eval "$ac_link") 2>&5
2187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2188 (exit $ac_status); }; then
2189 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2190 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2191 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2193 for ac_file
in conftest.exe conftest conftest.
*; do
2194 test -f "$ac_file" ||
continue
2196 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
2197 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2203 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2204 See \`config.log' for more details." >&5
2205 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2206 See \`config.log' for more details." >&2;}
2207 { (exit 1); exit 1; }; }
2210 rm -f conftest
$ac_cv_exeext
2211 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2212 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2214 rm -f conftest.
$ac_ext
2215 EXEEXT
=$ac_cv_exeext
2217 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2218 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2219 if test "${ac_cv_objext+set}" = set; then
2220 echo $ECHO_N "(cached) $ECHO_C" >&6
2222 cat >conftest.
$ac_ext <<_ACEOF
2225 cat confdefs.h
>>conftest.
$ac_ext
2226 cat >>conftest.
$ac_ext <<_ACEOF
2227 /* end confdefs.h. */
2237 rm -f conftest.o conftest.obj
2238 if { (ac_try
="$ac_compile"
2240 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2241 *) ac_try_echo=$ac_try;;
2243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2244 (eval "$ac_compile") 2>&5
2246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247 (exit $ac_status); }; then
2248 for ac_file in conftest.o conftest.obj conftest.*; do
2249 test -f "$ac_file" || continue;
2251 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2252 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2257 echo "$as_me: failed program was:" >&5
2258 sed 's/^/| /' conftest.$ac_ext >&5
2260 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2261 See \`config.log
' for more details." >&5
2262 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2263 See \`config.log' for more details.
" >&2;}
2264 { (exit 1); exit 1; }; }
2267 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2269 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
2270 echo "${ECHO_T}$ac_cv_objext" >&6; }
2271 OBJEXT=$ac_cv_objext
2273 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
2274 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
2275 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2276 echo $ECHO_N "(cached
) $ECHO_C" >&6
2278 cat >conftest.$ac_ext <<_ACEOF
2281 cat confdefs.h >>conftest.$ac_ext
2282 cat >>conftest.$ac_ext <<_ACEOF
2283 /* end confdefs.h. */
2296 rm -f conftest.$ac_objext
2297 if { (ac_try="$ac_compile"
2299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2300 *) ac_try_echo=$ac_try;;
2302 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2303 (eval "$ac_compile") 2>conftest.er1
2305 grep -v '^ *+' conftest.er1 >conftest.err
2307 cat conftest.err >&5
2308 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2309 (exit $ac_status); } && {
2310 test -z "$ac_c_werror_flag" ||
2311 test ! -s conftest.err
2312 } && test -s conftest.$ac_objext; then
2315 echo "$as_me: failed program was
:" >&5
2316 sed 's/^/| /' conftest.$ac_ext >&5
2321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2322 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2325 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
2326 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2327 GCC=`test $ac_compiler_gnu = yes && echo yes`
2328 ac_test_CFLAGS=${CFLAGS+set}
2329 ac_save_CFLAGS=$CFLAGS
2330 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
2331 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
2332 if test "${ac_cv_prog_cc_g+set}" = set; then
2333 echo $ECHO_N "(cached
) $ECHO_C" >&6
2335 ac_save_c_werror_flag=$ac_c_werror_flag
2336 ac_c_werror_flag=yes
2339 cat >conftest.$ac_ext <<_ACEOF
2342 cat confdefs.h >>conftest.$ac_ext
2343 cat >>conftest.$ac_ext <<_ACEOF
2344 /* end confdefs.h. */
2354 rm -f conftest.$ac_objext
2355 if { (ac_try="$ac_compile"
2357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2358 *) ac_try_echo=$ac_try;;
2360 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2361 (eval "$ac_compile") 2>conftest.er1
2363 grep -v '^ *+' conftest.er1 >conftest.err
2365 cat conftest.err >&5
2366 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2367 (exit $ac_status); } && {
2368 test -z "$ac_c_werror_flag" ||
2369 test ! -s conftest.err
2370 } && test -s conftest.$ac_objext; then
2373 echo "$as_me: failed program was
:" >&5
2374 sed 's/^/| /' conftest.$ac_ext >&5
2377 cat >conftest.$ac_ext <<_ACEOF
2380 cat confdefs.h >>conftest.$ac_ext
2381 cat >>conftest.$ac_ext <<_ACEOF
2382 /* end confdefs.h. */
2392 rm -f conftest.$ac_objext
2393 if { (ac_try="$ac_compile"
2395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2396 *) ac_try_echo=$ac_try;;
2398 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2399 (eval "$ac_compile") 2>conftest.er1
2401 grep -v '^ *+' conftest.er1 >conftest.err
2403 cat conftest.err >&5
2404 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2405 (exit $ac_status); } && {
2406 test -z "$ac_c_werror_flag" ||
2407 test ! -s conftest.err
2408 } && test -s conftest.$ac_objext; then
2411 echo "$as_me: failed program was
:" >&5
2412 sed 's/^/| /' conftest.$ac_ext >&5
2414 ac_c_werror_flag=$ac_save_c_werror_flag
2416 cat >conftest.$ac_ext <<_ACEOF
2419 cat confdefs.h >>conftest.$ac_ext
2420 cat >>conftest.$ac_ext <<_ACEOF
2421 /* end confdefs.h. */
2431 rm -f conftest.$ac_objext
2432 if { (ac_try="$ac_compile"
2434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2435 *) ac_try_echo=$ac_try;;
2437 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2438 (eval "$ac_compile") 2>conftest.er1
2440 grep -v '^ *+' conftest.er1 >conftest.err
2442 cat conftest.err >&5
2443 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2444 (exit $ac_status); } && {
2445 test -z "$ac_c_werror_flag" ||
2446 test ! -s conftest.err
2447 } && test -s conftest.$ac_objext; then
2450 echo "$as_me: failed program was
:" >&5
2451 sed 's/^/| /' conftest.$ac_ext >&5
2456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2463 ac_c_werror_flag=$ac_save_c_werror_flag
2465 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
2466 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2467 if test "$ac_test_CFLAGS" = set; then
2468 CFLAGS=$ac_save_CFLAGS
2469 elif test $ac_cv_prog_cc_g = yes; then
2470 if test "$GCC" = yes; then
2476 if test "$GCC" = yes; then
2482 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
2483 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
2484 if test "${ac_cv_prog_cc_c89+set}" = set; then
2485 echo $ECHO_N "(cached
) $ECHO_C" >&6
2487 ac_cv_prog_cc_c89=no
2489 cat >conftest.$ac_ext <<_ACEOF
2492 cat confdefs.h >>conftest.$ac_ext
2493 cat >>conftest.$ac_ext <<_ACEOF
2494 /* end confdefs.h. */
2497 #include <sys/types.h>
2498 #include <sys/stat.h>
2499 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2500 struct buf { int x; };
2501 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2502 static char *e (p, i)
2508 static char *f (char * (*g) (char **, int), char **p, ...)
2513 s = g (p, va_arg (v,int));
2518 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2519 function prototypes and stuff, but not '\xHH' hex character constants.
2520 These don't provoke an error unfortunately, instead are silently treated
2521 as 'x'. The following induces an error, until -std is added to get
2522 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2523 array size at least. It's necessary to write '\x00'==0 to get something
2524 that's true only with -std. */
2525 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2527 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2528 inside strings and character constants. */
2530 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2532 int test (int i, double x);
2533 struct s1 {int (*f) (int a);};
2534 struct s2 {int (*f) (double a);};
2535 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2541 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2546 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2547 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2549 CC="$ac_save_CC $ac_arg"
2550 rm -f conftest.$ac_objext
2551 if { (ac_try="$ac_compile"
2553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2554 *) ac_try_echo=$ac_try;;
2556 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2557 (eval "$ac_compile") 2>conftest.er1
2559 grep -v '^ *+' conftest.er1 >conftest.err
2561 cat conftest.err >&5
2562 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2563 (exit $ac_status); } && {
2564 test -z "$ac_c_werror_flag" ||
2565 test ! -s conftest.err
2566 } && test -s conftest.$ac_objext; then
2567 ac_cv_prog_cc_c89=$ac_arg
2569 echo "$as_me: failed program was
:" >&5
2570 sed 's/^/| /' conftest.$ac_ext >&5
2575 rm -f core conftest.err conftest.$ac_objext
2576 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
2578 rm -f conftest.$ac_ext
2583 case "x
$ac_cv_prog_cc_c89" in
2585 { echo "$as_me:$LINENO: result
: none needed
" >&5
2586 echo "${ECHO_T}none needed
" >&6; } ;;
2588 { echo "$as_me:$LINENO: result
: unsupported
" >&5
2589 echo "${ECHO_T}unsupported
" >&6; } ;;
2591 CC="$CC $ac_cv_prog_cc_c89"
2592 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
2593 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2598 ac_cpp='$CPP $CPPFLAGS'
2599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2604 ac_cpp='$CXXCPP $CPPFLAGS'
2605 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2606 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2607 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2608 if test -z "$CXX"; then
2609 if test -n "$CCC"; then
2612 if test -n "$ac_tool_prefix"; then
2613 for ac_prog in icpc g++ CC
2615 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2616 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2617 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
2618 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
2619 if test "${ac_cv_prog_CXX+set}" = set; then
2620 echo $ECHO_N "(cached
) $ECHO_C" >&6
2622 if test -n "$CXX"; then
2623 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2629 test -z "$as_dir" && as_dir=.
2630 for ac_exec_ext in '' $ac_executable_extensions; do
2631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2632 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2633 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
2643 if test -n "$CXX"; then
2644 { echo "$as_me:$LINENO: result
: $CXX" >&5
2645 echo "${ECHO_T}$CXX" >&6; }
2647 { echo "$as_me:$LINENO: result
: no
" >&5
2648 echo "${ECHO_T}no
" >&6; }
2652 test -n "$CXX" && break
2655 if test -z "$CXX"; then
2657 for ac_prog in icpc g++ CC
2659 # Extract the first word of "$ac_prog", so it can be a program name with args.
2660 set dummy $ac_prog; ac_word=$2
2661 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
2662 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
2663 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2664 echo $ECHO_N "(cached
) $ECHO_C" >&6
2666 if test -n "$ac_ct_CXX"; then
2667 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2673 test -z "$as_dir" && as_dir=.
2674 for ac_exec_ext in '' $ac_executable_extensions; do
2675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2676 ac_cv_prog_ac_ct_CXX="$ac_prog"
2677 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
2686 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2687 if test -n "$ac_ct_CXX"; then
2688 { echo "$as_me:$LINENO: result
: $ac_ct_CXX" >&5
2689 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2691 { echo "$as_me:$LINENO: result
: no
" >&5
2692 echo "${ECHO_T}no
" >&6; }
2696 test -n "$ac_ct_CXX" && break
2699 if test "x
$ac_ct_CXX" = x; then
2702 case $cross_compiling:$ac_tool_warned in
2704 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
2705 whose name does not start with the
host triplet. If you think this
2706 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
2707 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
2708 whose name does not start with the
host triplet. If you think this
2709 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
2710 ac_tool_warned=yes ;;
2718 # Provide some information about the compiler.
2719 echo "$as_me:$LINENO: checking
for C
++ compiler version
" >&5
2720 ac_compiler=`set X $ac_compile; echo $2`
2721 { (ac_try="$ac_compiler --version >&5"
2723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2724 *) ac_try_echo=$ac_try;;
2726 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2727 (eval "$ac_compiler --version >&5") 2>&5
2729 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2730 (exit $ac_status); }
2731 { (ac_try="$ac_compiler -v >&5"
2733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2734 *) ac_try_echo=$ac_try;;
2736 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2737 (eval "$ac_compiler -v >&5") 2>&5
2739 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2740 (exit $ac_status); }
2741 { (ac_try="$ac_compiler -V >&5"
2743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2744 *) ac_try_echo=$ac_try;;
2746 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2747 (eval "$ac_compiler -V >&5") 2>&5
2749 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2750 (exit $ac_status); }
2752 { echo "$as_me:$LINENO: checking whether we are using the GNU C
++ compiler
" >&5
2753 echo $ECHO_N "checking whether we are using the GNU C
++ compiler...
$ECHO_C" >&6; }
2754 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2755 echo $ECHO_N "(cached
) $ECHO_C" >&6
2757 cat >conftest.$ac_ext <<_ACEOF
2760 cat confdefs.h >>conftest.$ac_ext
2761 cat >>conftest.$ac_ext <<_ACEOF
2762 /* end confdefs.h. */
2775 rm -f conftest.$ac_objext
2776 if { (ac_try="$ac_compile"
2778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2779 *) ac_try_echo=$ac_try;;
2781 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2782 (eval "$ac_compile") 2>conftest.er1
2784 grep -v '^ *+' conftest.er1 >conftest.err
2786 cat conftest.err >&5
2787 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2788 (exit $ac_status); } && {
2789 test -z "$ac_cxx_werror_flag" ||
2790 test ! -s conftest.err
2791 } && test -s conftest.$ac_objext; then
2794 echo "$as_me: failed program was
:" >&5
2795 sed 's/^/| /' conftest.$ac_ext >&5
2800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2801 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2804 { echo "$as_me:$LINENO: result
: $ac_cv_cxx_compiler_gnu" >&5
2805 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2806 GXX=`test $ac_compiler_gnu = yes && echo yes`
2807 ac_test_CXXFLAGS=${CXXFLAGS+set}
2808 ac_save_CXXFLAGS=$CXXFLAGS
2809 { echo "$as_me:$LINENO: checking whether
$CXX accepts
-g" >&5
2810 echo $ECHO_N "checking whether
$CXX accepts
-g...
$ECHO_C" >&6; }
2811 if test "${ac_cv_prog_cxx_g+set}" = set; then
2812 echo $ECHO_N "(cached
) $ECHO_C" >&6
2814 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2815 ac_cxx_werror_flag=yes
2818 cat >conftest.$ac_ext <<_ACEOF
2821 cat confdefs.h >>conftest.$ac_ext
2822 cat >>conftest.$ac_ext <<_ACEOF
2823 /* end confdefs.h. */
2833 rm -f conftest.$ac_objext
2834 if { (ac_try="$ac_compile"
2836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2837 *) ac_try_echo=$ac_try;;
2839 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2840 (eval "$ac_compile") 2>conftest.er1
2842 grep -v '^ *+' conftest.er1 >conftest.err
2844 cat conftest.err >&5
2845 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2846 (exit $ac_status); } && {
2847 test -z "$ac_cxx_werror_flag" ||
2848 test ! -s conftest.err
2849 } && test -s conftest.$ac_objext; then
2850 ac_cv_prog_cxx_g=yes
2852 echo "$as_me: failed program was
:" >&5
2853 sed 's/^/| /' conftest.$ac_ext >&5
2856 cat >conftest.$ac_ext <<_ACEOF
2859 cat confdefs.h >>conftest.$ac_ext
2860 cat >>conftest.$ac_ext <<_ACEOF
2861 /* end confdefs.h. */
2871 rm -f conftest.$ac_objext
2872 if { (ac_try="$ac_compile"
2874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2875 *) ac_try_echo=$ac_try;;
2877 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2878 (eval "$ac_compile") 2>conftest.er1
2880 grep -v '^ *+' conftest.er1 >conftest.err
2882 cat conftest.err >&5
2883 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2884 (exit $ac_status); } && {
2885 test -z "$ac_cxx_werror_flag" ||
2886 test ! -s conftest.err
2887 } && test -s conftest.$ac_objext; then
2890 echo "$as_me: failed program was
:" >&5
2891 sed 's/^/| /' conftest.$ac_ext >&5
2893 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2895 cat >conftest.$ac_ext <<_ACEOF
2898 cat confdefs.h >>conftest.$ac_ext
2899 cat >>conftest.$ac_ext <<_ACEOF
2900 /* end confdefs.h. */
2910 rm -f conftest.$ac_objext
2911 if { (ac_try="$ac_compile"
2913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2914 *) ac_try_echo=$ac_try;;
2916 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2917 (eval "$ac_compile") 2>conftest.er1
2919 grep -v '^ *+' conftest.er1 >conftest.err
2921 cat conftest.err >&5
2922 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2923 (exit $ac_status); } && {
2924 test -z "$ac_cxx_werror_flag" ||
2925 test ! -s conftest.err
2926 } && test -s conftest.$ac_objext; then
2927 ac_cv_prog_cxx_g=yes
2929 echo "$as_me: failed program was
:" >&5
2930 sed 's/^/| /' conftest.$ac_ext >&5
2935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2942 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2944 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cxx_g" >&5
2945 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
2946 if test "$ac_test_CXXFLAGS" = set; then
2947 CXXFLAGS=$ac_save_CXXFLAGS
2948 elif test $ac_cv_prog_cxx_g = yes; then
2949 if test "$GXX" = yes; then
2955 if test "$GXX" = yes; then
2962 ac_cpp='$CPP $CPPFLAGS'
2963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2968 for ac_prog in flex lex
2970 # Extract the first word of "$ac_prog", so it can be a program name with args.
2971 set dummy $ac_prog; ac_word=$2
2972 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
2973 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
2974 if test "${ac_cv_prog_LEX+set}" = set; then
2975 echo $ECHO_N "(cached
) $ECHO_C" >&6
2977 if test -n "$LEX"; then
2978 ac_cv_prog_LEX="$LEX" # Let the user override the test.
2980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2984 test -z "$as_dir" && as_dir=.
2985 for ac_exec_ext in '' $ac_executable_extensions; do
2986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2987 ac_cv_prog_LEX="$ac_prog"
2988 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
2998 if test -n "$LEX"; then
2999 { echo "$as_me:$LINENO: result
: $LEX" >&5
3000 echo "${ECHO_T}$LEX" >&6; }
3002 { echo "$as_me:$LINENO: result
: no
" >&5
3003 echo "${ECHO_T}no
" >&6; }
3007 test -n "$LEX" && break
3009 test -n "$LEX" || LEX=":"
3011 if test "x
$LEX" != "x
:"; then
3012 cat >conftest.l <<_ACEOF
3018 e { yyless (input () != 0); }
3019 f { unput (yytext[0]); }
3020 . { BEGIN INITIAL; }
3022 #ifdef YYTEXT_POINTER
3023 extern char *yytext;
3028 return ! yylex () + ! yywrap ();
3031 { (ac_try="$LEX conftest.l
"
3033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3034 *) ac_try_echo=$ac_try;;
3036 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3037 (eval "$LEX conftest.l
") 2>&5
3039 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3040 (exit $ac_status); }
3041 { echo "$as_me:$LINENO: checking
lex output
file root
" >&5
3042 echo $ECHO_N "checking
lex output
file root...
$ECHO_C" >&6; }
3043 if test "${ac_cv_prog_lex_root+set}" = set; then
3044 echo $ECHO_N "(cached
) $ECHO_C" >&6
3047 if test -f lex.yy.c; then
3048 ac_cv_prog_lex_root=lex.yy
3049 elif test -f lexyy.c; then
3050 ac_cv_prog_lex_root=lexyy
3052 { { echo "$as_me:$LINENO: error
: cannot
find output from
$LEX; giving up
" >&5
3053 echo "$as_me: error
: cannot
find output from
$LEX; giving up
" >&2;}
3054 { (exit 1); exit 1; }; }
3057 { echo "$as_me:$LINENO: result
: $ac_cv_prog_lex_root" >&5
3058 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
3059 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3061 if test -z "${LEXLIB+set}"; then
3062 { echo "$as_me:$LINENO: checking
lex library
" >&5
3063 echo $ECHO_N "checking
lex library...
$ECHO_C" >&6; }
3064 if test "${ac_cv_lib_lex+set}" = set; then
3065 echo $ECHO_N "(cached
) $ECHO_C" >&6
3069 ac_cv_lib_lex='none needed'
3070 for ac_lib in '' -lfl -ll; do
3071 LIBS="$ac_lib $ac_save_LIBS"
3072 cat >conftest.$ac_ext <<_ACEOF
3073 `cat $LEX_OUTPUT_ROOT.c`
3075 rm -f conftest.$ac_objext conftest$ac_exeext
3076 if { (ac_try="$ac_link"
3078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3079 *) ac_try_echo=$ac_try;;
3081 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3082 (eval "$ac_link") 2>conftest.er1
3084 grep -v '^ *+' conftest.er1 >conftest.err
3086 cat conftest.err >&5
3087 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3088 (exit $ac_status); } && {
3089 test -z "$ac_c_werror_flag" ||
3090 test ! -s conftest.err
3091 } && test -s conftest$ac_exeext &&
3092 $as_test_x conftest$ac_exeext; then
3093 ac_cv_lib_lex=$ac_lib
3095 echo "$as_me: failed program was
:" >&5
3096 sed 's/^/| /' conftest.$ac_ext >&5
3101 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3102 conftest$ac_exeext conftest.$ac_ext
3103 test "$ac_cv_lib_lex" != 'none needed' && break
3108 { echo "$as_me:$LINENO: result
: $ac_cv_lib_lex" >&5
3109 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
3110 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
3114 { echo "$as_me:$LINENO: checking whether yytext is a pointer
" >&5
3115 echo $ECHO_N "checking whether yytext is a pointer...
$ECHO_C" >&6; }
3116 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3117 echo $ECHO_N "(cached
) $ECHO_C" >&6
3119 # POSIX says lex can declare yytext either as a pointer or an array; the
3120 # default is implementation-dependent. Figure out which it is, since
3121 # not all implementations provide the %pointer and %array declarations.
3122 ac_cv_prog_lex_yytext_pointer=no
3124 LIBS="$LEXLIB $ac_save_LIBS"
3125 cat >conftest.$ac_ext <<_ACEOF
3126 #define YYTEXT_POINTER 1
3127 `cat $LEX_OUTPUT_ROOT.c`
3129 rm -f conftest.$ac_objext conftest$ac_exeext
3130 if { (ac_try="$ac_link"
3132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133 *) ac_try_echo=$ac_try;;
3135 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3136 (eval "$ac_link") 2>conftest.er1
3138 grep -v '^ *+' conftest.er1 >conftest.err
3140 cat conftest.err >&5
3141 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3142 (exit $ac_status); } && {
3143 test -z "$ac_c_werror_flag" ||
3144 test ! -s conftest.err
3145 } && test -s conftest$ac_exeext &&
3146 $as_test_x conftest$ac_exeext; then
3147 ac_cv_prog_lex_yytext_pointer=yes
3149 echo "$as_me: failed program was
:" >&5
3150 sed 's/^/| /' conftest.$ac_ext >&5
3155 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3156 conftest$ac_exeext conftest.$ac_ext
3160 { echo "$as_me:$LINENO: result
: $ac_cv_prog_lex_yytext_pointer" >&5
3161 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
3162 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3164 cat >>confdefs.h <<\_ACEOF
3165 #define YYTEXT_POINTER 1
3169 rm -f conftest.l $LEX_OUTPUT_ROOT.c
3172 if test "$LEX" != flex ; then
3173 { { echo "$as_me:$LINENO: error
: ERROR
: Can
't find flex!" >&5
3174 echo "$as_me: error: ERROR: Can't
find flex
!" >&2;}
3175 { (exit 1); exit 1; }; }
3177 for ac_prog in 'bison -y' byacc
3179 # Extract the first word of "$ac_prog", so it can be a program name with args.
3180 set dummy $ac_prog; ac_word=$2
3181 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
3182 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
3183 if test "${ac_cv_prog_YACC+set}" = set; then
3184 echo $ECHO_N "(cached
) $ECHO_C" >&6
3186 if test -n "$YACC"; then
3187 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3193 test -z "$as_dir" && as_dir=.
3194 for ac_exec_ext in '' $ac_executable_extensions; do
3195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3196 ac_cv_prog_YACC="$ac_prog"
3197 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
3206 YACC=$ac_cv_prog_YACC
3207 if test -n "$YACC"; then
3208 { echo "$as_me:$LINENO: result
: $YACC" >&5
3209 echo "${ECHO_T}$YACC" >&6; }
3211 { echo "$as_me:$LINENO: result
: no
" >&5
3212 echo "${ECHO_T}no
" >&6; }
3216 test -n "$YACC" && break
3218 test -n "$YACC" || YACC="yacc"
3220 if test "$YACC" != "bison
-y" ; then
3221 { { echo "$as_me:$LINENO: error
: ERROR
: Can
't find bison!" >&5
3222 echo "$as_me: error: ERROR: Can't
find bison
!" >&2;}
3223 { (exit 1); exit 1; }; }
3225 { echo "$as_me:$LINENO: checking whether
${MAKE-make} sets \$
(MAKE
)" >&5
3226 echo $ECHO_N "checking whether
${MAKE-make} sets \$
(MAKE
)...
$ECHO_C" >&6; }
3227 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3228 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3229 echo $ECHO_N "(cached
) $ECHO_C" >&6
3231 cat >conftest.make <<\_ACEOF
3234 @echo '@@@%%%=$(MAKE)=@@@%%%'
3236 # GNU make sometimes prints "make[1]: Entering...
", which would confuse us.
3237 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3239 eval ac_cv_prog_make_${ac_make}_set=yes;;
3241 eval ac_cv_prog_make_${ac_make}_set=no;;
3245 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3246 { echo "$as_me:$LINENO: result
: yes" >&5
3247 echo "${ECHO_T}yes" >&6; }
3250 { echo "$as_me:$LINENO: result
: no
" >&5
3251 echo "${ECHO_T}no
" >&6; }
3252 SET_MAKE="MAKE
=${MAKE-make}"
3264 #--------------------------------------------------------------------------
3265 # check if debug requested
3266 #--------------------------------------------------------------------------
3267 { echo "$as_me:$LINENO: checking
if debugging is enabled
" >&5
3268 echo $ECHO_N "checking
if debugging is enabled...
$ECHO_C" >&6; }
3269 # Check whether --enable-debug was given.
3270 if test "${enable_debug+set}" = set; then
3271 enableval=$enable_debug;
3276 if test "$enableval" = "no
"; then
3279 if test "$enableval" = "" || test "$enableval" = "yes"; then
3288 { echo "$as_me:$LINENO: result
: $debug" >&5
3289 echo "${ECHO_T}$debug" >&6; }
3292 #--------------------------------------------------------------------------
3293 # get executable extensions
3294 #--------------------------------------------------------------------------
3298 #---------------------------------------------------------------------------
3299 # get CGNS header path and library
3300 #---------------------------------------------------------------------------
3306 if test -f "$d/include
/cgnslib.h
" && test -f "$d/lib
/libcgns.a
"; then
3307 CGNSDIR=`(cd $d; pwd)`
3312 { echo "$as_me:$LINENO: checking
if CGNS directory was specified
" >&5
3313 echo $ECHO_N "checking
if CGNS directory was specified...
$ECHO_C" >&6; }
3315 # Check whether --with-cgns was given.
3316 if test "${with_cgns+set}" = set; then
3317 withval=$with_cgns; CGNSDIR=$withval
3320 if test ! -z "$CGNSDIR" || test ! "$CGNSDIR" = "no
"; then
3321 { echo "$as_me:$LINENO: result
: $CGNSDIR" >&5
3322 echo "${ECHO_T}$CGNSDIR" >&6; }
3323 if test ! -f "$CGNSDIR/include
/cgnslib.h
"; then
3324 { { echo "$as_me:$LINENO: error
: $CGNSDIR directory does not contain cgnslib.h
" >&5
3325 echo "$as_me: error
: $CGNSDIR directory does not contain cgnslib.h
" >&2;}
3326 { (exit 1); exit 1; }; }
3330 #---------------------------------------------------------------------------
3331 # get TIFF header path and library
3332 #---------------------------------------------------------------------------
3334 ac_cpp='$CPP $CPPFLAGS'
3335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3338 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
3339 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
3340 # On Suns, sometimes $CPP names a directory.
3341 if test -n "$CPP" && test -d "$CPP"; then
3344 if test -z "$CPP"; then
3345 if test "${ac_cv_prog_CPP+set}" = set; then
3346 echo $ECHO_N "(cached
) $ECHO_C" >&6
3348 # Double quotes because CPP needs to be expanded
3349 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3352 for ac_c_preproc_warn_flag in '' yes
3354 # Use a header file that comes with gcc, so configuring glibc
3355 # with a fresh cross-compiler works.
3356 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3357 # <limits.h> exists even on freestanding compilers.
3358 # On the NeXT, cc -E runs the code through the compiler's parser,
3359 # not just through cpp. "Syntax error
" is here to catch this case.
3360 cat >conftest.$ac_ext <<_ACEOF
3363 cat confdefs.h >>conftest.$ac_ext
3364 cat >>conftest.$ac_ext <<_ACEOF
3365 /* end confdefs.h. */
3367 # include <limits.h>
3369 # include <assert.h>
3373 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3376 *) ac_try_echo=$ac_try;;
3378 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3379 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3381 grep -v '^ *+' conftest.er1 >conftest.err
3383 cat conftest.err >&5
3384 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3385 (exit $ac_status); } >/dev/null && {
3386 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3387 test ! -s conftest.err
3391 echo "$as_me: failed program was
:" >&5
3392 sed 's/^/| /' conftest.$ac_ext >&5
3394 # Broken: fails on valid input.
3398 rm -f conftest.err conftest.$ac_ext
3400 # OK, works on sane cases. Now check whether nonexistent headers
3401 # can be detected and how.
3402 cat >conftest.$ac_ext <<_ACEOF
3405 cat confdefs.h >>conftest.$ac_ext
3406 cat >>conftest.$ac_ext <<_ACEOF
3407 /* end confdefs.h. */
3408 #include <ac_nonexistent.h>
3410 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3413 *) ac_try_echo=$ac_try;;
3415 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3416 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3418 grep -v '^ *+' conftest.er1 >conftest.err
3420 cat conftest.err >&5
3421 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3422 (exit $ac_status); } >/dev/null && {
3423 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3424 test ! -s conftest.err
3426 # Broken: success on invalid input.
3429 echo "$as_me: failed program was
:" >&5
3430 sed 's/^/| /' conftest.$ac_ext >&5
3432 # Passes both tests.
3437 rm -f conftest.err conftest.$ac_ext
3440 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3441 rm -f conftest.err conftest.$ac_ext
3442 if $ac_preproc_ok; then
3454 { echo "$as_me:$LINENO: result
: $CPP" >&5
3455 echo "${ECHO_T}$CPP" >&6; }
3457 for ac_c_preproc_warn_flag in '' yes
3459 # Use a header file that comes with gcc, so configuring glibc
3460 # with a fresh cross-compiler works.
3461 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3462 # <limits.h> exists even on freestanding compilers.
3463 # On the NeXT, cc -E runs the code through the compiler's parser,
3464 # not just through cpp. "Syntax error
" is here to catch this case.
3465 cat >conftest.$ac_ext <<_ACEOF
3468 cat confdefs.h >>conftest.$ac_ext
3469 cat >>conftest.$ac_ext <<_ACEOF
3470 /* end confdefs.h. */
3472 # include <limits.h>
3474 # include <assert.h>
3478 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3481 *) ac_try_echo=$ac_try;;
3483 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3484 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3486 grep -v '^ *+' conftest.er1 >conftest.err
3488 cat conftest.err >&5
3489 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3490 (exit $ac_status); } >/dev/null && {
3491 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3492 test ! -s conftest.err
3496 echo "$as_me: failed program was
:" >&5
3497 sed 's/^/| /' conftest.$ac_ext >&5
3499 # Broken: fails on valid input.
3503 rm -f conftest.err conftest.$ac_ext
3505 # OK, works on sane cases. Now check whether nonexistent headers
3506 # can be detected and how.
3507 cat >conftest.$ac_ext <<_ACEOF
3510 cat confdefs.h >>conftest.$ac_ext
3511 cat >>conftest.$ac_ext <<_ACEOF
3512 /* end confdefs.h. */
3513 #include <ac_nonexistent.h>
3515 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3518 *) ac_try_echo=$ac_try;;
3520 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3521 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3523 grep -v '^ *+' conftest.er1 >conftest.err
3525 cat conftest.err >&5
3526 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3527 (exit $ac_status); } >/dev/null && {
3528 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3529 test ! -s conftest.err
3531 # Broken: success on invalid input.
3534 echo "$as_me: failed program was
:" >&5
3535 sed 's/^/| /' conftest.$ac_ext >&5
3537 # Passes both tests.
3542 rm -f conftest.err conftest.$ac_ext
3545 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3546 rm -f conftest.err conftest.$ac_ext
3547 if $ac_preproc_ok; then
3550 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
3551 See \
`config.log' for more details." >&5
3552 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3553 See \`config.log
' for more details." >&2;}
3554 { (exit 1); exit 1; }; }
3558 ac_cpp='$CPP $CPPFLAGS'
3559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
3560 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
3561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3564 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3565 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3566 if test "${ac_cv_path_GREP+set}" = set; then
3567 echo $ECHO_N "(cached) $ECHO_C" >&6
3569 # Extract the first word of "grep ggrep" to use in msg output
3570 if test -z "$GREP"; then
3571 set dummy grep ggrep; ac_prog_name=$2
3572 if test "${ac_cv_path_GREP+set}" = set; then
3573 echo $ECHO_N "(cached) $ECHO_C" >&6
3575 ac_path_GREP_found=false
3576 # Loop through the user's path and
test for each of PROGNAME-LIST
3577 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3578 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3581 test -z "$as_dir" && as_dir
=.
3582 for ac_prog
in grep ggrep
; do
3583 for ac_exec_ext
in '' $ac_executable_extensions; do
3584 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3585 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3586 # Check for GNU ac_path_GREP and select it if it is found.
3587 # Check for GNU $ac_path_GREP
3588 case `"$ac_path_GREP" --version 2>&1` in
3590 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3593 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3596 cat "conftest.in" "conftest.in" >"conftest.tmp"
3597 mv "conftest.tmp" "conftest.in"
3598 cp "conftest.in" "conftest.nl"
3599 echo 'GREP' >> "conftest.nl"
3600 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3601 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3602 ac_count
=`expr $ac_count + 1`
3603 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3604 # Best one so far, save it but keep looking for a better one
3605 ac_cv_path_GREP
="$ac_path_GREP"
3606 ac_path_GREP_max
=$ac_count
3608 # 10*(2^10) chars as input seems more than enough
3609 test $ac_count -gt 10 && break
3611 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3615 $ac_path_GREP_found && break 3
3625 GREP
="$ac_cv_path_GREP"
3626 if test -z "$GREP"; then
3627 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3628 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3629 { (exit 1); exit 1; }; }
3633 ac_cv_path_GREP
=$GREP
3638 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3639 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3640 GREP
="$ac_cv_path_GREP"
3643 { echo "$as_me:$LINENO: checking for egrep" >&5
3644 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3645 if test "${ac_cv_path_EGREP+set}" = set; then
3646 echo $ECHO_N "(cached) $ECHO_C" >&6
3648 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3649 then ac_cv_path_EGREP
="$GREP -E"
3651 # Extract the first word of "egrep" to use in msg output
3652 if test -z "$EGREP"; then
3653 set dummy
egrep; ac_prog_name
=$2
3654 if test "${ac_cv_path_EGREP+set}" = set; then
3655 echo $ECHO_N "(cached) $ECHO_C" >&6
3657 ac_path_EGREP_found
=false
3658 # Loop through the user's path and test for each of PROGNAME-LIST
3659 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3660 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3663 test -z "$as_dir" && as_dir
=.
3664 for ac_prog
in egrep; do
3665 for ac_exec_ext
in '' $ac_executable_extensions; do
3666 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3667 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3668 # Check for GNU ac_path_EGREP and select it if it is found.
3669 # Check for GNU $ac_path_EGREP
3670 case `"$ac_path_EGREP" --version 2>&1` in
3672 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3675 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3678 cat "conftest.in" "conftest.in" >"conftest.tmp"
3679 mv "conftest.tmp" "conftest.in"
3680 cp "conftest.in" "conftest.nl"
3681 echo 'EGREP' >> "conftest.nl"
3682 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3683 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3684 ac_count
=`expr $ac_count + 1`
3685 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3686 # Best one so far, save it but keep looking for a better one
3687 ac_cv_path_EGREP
="$ac_path_EGREP"
3688 ac_path_EGREP_max
=$ac_count
3690 # 10*(2^10) chars as input seems more than enough
3691 test $ac_count -gt 10 && break
3693 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3697 $ac_path_EGREP_found && break 3
3707 EGREP
="$ac_cv_path_EGREP"
3708 if test -z "$EGREP"; then
3709 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3710 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3711 { (exit 1); exit 1; }; }
3715 ac_cv_path_EGREP
=$EGREP
3721 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3722 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3723 EGREP
="$ac_cv_path_EGREP"
3726 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3727 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3728 if test "${ac_cv_header_stdc+set}" = set; then
3729 echo $ECHO_N "(cached) $ECHO_C" >&6
3731 cat >conftest.
$ac_ext <<_ACEOF
3734 cat confdefs.h
>>conftest.
$ac_ext
3735 cat >>conftest.
$ac_ext <<_ACEOF
3736 /* end confdefs.h. */
3750 rm -f conftest.
$ac_objext
3751 if { (ac_try
="$ac_compile"
3753 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3754 *) ac_try_echo=$ac_try;;
3756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3757 (eval "$ac_compile") 2>conftest.er1
3759 grep -v '^ *+' conftest.er1 >conftest.err
3761 cat conftest.err >&5
3762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3763 (exit $ac_status); } && {
3764 test -z "$ac_c_werror_flag" ||
3765 test ! -s conftest.err
3766 } && test -s conftest.$ac_objext; then
3767 ac_cv_header_stdc=yes
3769 echo "$as_me: failed program was:" >&5
3770 sed 's/^/| /' conftest.$ac_ext >&5
3772 ac_cv_header_stdc=no
3775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3777 if test $ac_cv_header_stdc = yes; then
3778 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3779 cat >conftest.$ac_ext <<_ACEOF
3782 cat confdefs.h >>conftest.$ac_ext
3783 cat >>conftest.$ac_ext <<_ACEOF
3784 /* end confdefs.h. */
3788 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3789 $EGREP "memchr" >/dev/null 2>&1; then
3792 ac_cv_header_stdc=no
3798 if test $ac_cv_header_stdc = yes; then
3799 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3800 cat >conftest.$ac_ext <<_ACEOF
3803 cat confdefs.h >>conftest.$ac_ext
3804 cat >>conftest.$ac_ext <<_ACEOF
3805 /* end confdefs.h. */
3809 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3810 $EGREP "free" >/dev/null 2>&1; then
3813 ac_cv_header_stdc=no
3819 if test $ac_cv_header_stdc = yes; then
3820 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3821 if test "$cross_compiling" = yes; then
3824 cat >conftest.$ac_ext <<_ACEOF
3827 cat confdefs.h >>conftest.$ac_ext
3828 cat >>conftest.$ac_ext <<_ACEOF
3829 /* end confdefs.h. */
3832 #if ((' ' & 0x0FF) == 0x020)
3833 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3834 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3836 # define ISLOWER(c) \
3837 (('a' <= (c) && (c) <= 'i') \
3838 || ('j' <= (c) && (c) <= 'r') \
3839 || ('s' <= (c) && (c) <= 'z'))
3840 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3843 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3848 for (i = 0; i < 256; i++)
3849 if (XOR (islower (i), ISLOWER (i))
3850 || toupper (i) != TOUPPER (i))
3855 rm -f conftest$ac_exeext
3856 if { (ac_try="$ac_link"
3858 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3859 *) ac_try_echo
=$ac_try;;
3861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3862 (eval "$ac_link") 2>&5
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3866 { (case "(($ac_try" in
3867 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3868 *) ac_try_echo=$ac_try;;
3870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3871 (eval "$ac_try") 2>&5
3873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874 (exit $ac_status); }; }; then
3877 echo "$as_me: program exited with status $ac_status" >&5
3878 echo "$as_me: failed program was:" >&5
3879 sed 's/^/| /' conftest.$ac_ext >&5
3882 ac_cv_header_stdc=no
3884 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3890 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3891 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3892 if test $ac_cv_header_stdc = yes; then
3894 cat >>confdefs.h <<\_ACEOF
3895 #define STDC_HEADERS 1
3900 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3910 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3911 inttypes.h stdint.h unistd.h
3913 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
3914 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3916 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3917 echo $ECHO_N "(cached) $ECHO_C" >&6
3919 cat >conftest.$ac_ext <<_ACEOF
3922 cat confdefs.h >>conftest.$ac_ext
3923 cat >>conftest.$ac_ext <<_ACEOF
3924 /* end confdefs.h. */
3925 $ac_includes_default
3927 #include <$ac_header>
3929 rm -f conftest.$ac_objext
3930 if { (ac_try="$ac_compile"
3932 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3933 *) ac_try_echo
=$ac_try;;
3935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3936 (eval "$ac_compile") 2>conftest.er1
3938 grep -v '^ *+' conftest.er1
>conftest.err
3940 cat conftest.err
>&5
3941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942 (exit $ac_status); } && {
3943 test -z "$ac_c_werror_flag" ||
3944 test ! -s conftest.err
3945 } && test -s conftest.
$ac_objext; then
3946 eval "$as_ac_Header=yes"
3948 echo "$as_me: failed program was:" >&5
3949 sed 's/^/| /' conftest.
$ac_ext >&5
3951 eval "$as_ac_Header=no"
3954 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3956 ac_res
=`eval echo '${'$as_ac_Header'}'`
3957 { echo "$as_me:$LINENO: result: $ac_res" >&5
3958 echo "${ECHO_T}$ac_res" >&6; }
3959 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3960 cat >>confdefs.h
<<_ACEOF
3961 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3970 for ac_header
in tiffio.h
3972 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3973 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3974 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3975 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3976 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3977 echo $ECHO_N "(cached) $ECHO_C" >&6
3979 ac_res
=`eval echo '${'$as_ac_Header'}'`
3980 { echo "$as_me:$LINENO: result: $ac_res" >&5
3981 echo "${ECHO_T}$ac_res" >&6; }
3983 # Is the header compilable?
3984 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
3985 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
3986 cat >conftest.
$ac_ext <<_ACEOF
3989 cat confdefs.h
>>conftest.
$ac_ext
3990 cat >>conftest.
$ac_ext <<_ACEOF
3991 /* end confdefs.h. */
3992 $ac_includes_default
3993 #include <$ac_header>
3995 rm -f conftest.
$ac_objext
3996 if { (ac_try
="$ac_compile"
3998 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3999 *) ac_try_echo=$ac_try;;
4001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4002 (eval "$ac_compile") 2>conftest.er1
4004 grep -v '^ *+' conftest.er1 >conftest.err
4006 cat conftest.err >&5
4007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); } && {
4009 test -z "$ac_c_werror_flag" ||
4010 test ! -s conftest.err
4011 } && test -s conftest.$ac_objext; then
4012 ac_header_compiler=yes
4014 echo "$as_me: failed program was:" >&5
4015 sed 's/^/| /' conftest.$ac_ext >&5
4017 ac_header_compiler=no
4020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4021 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4022 echo "${ECHO_T}$ac_header_compiler" >&6; }
4024 # Is the header present?
4025 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4026 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4027 cat >conftest.$ac_ext <<_ACEOF
4030 cat confdefs.h >>conftest.$ac_ext
4031 cat >>conftest.$ac_ext <<_ACEOF
4032 /* end confdefs.h. */
4033 #include <$ac_header>
4035 if { (ac_try="$ac_cpp conftest.$ac_ext"
4037 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4038 *) ac_try_echo
=$ac_try;;
4040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4041 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4043 grep -v '^ *+' conftest.er1
>conftest.err
4045 cat conftest.err
>&5
4046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047 (exit $ac_status); } >/dev
/null
&& {
4048 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4049 test ! -s conftest.err
4051 ac_header_preproc
=yes
4053 echo "$as_me: failed program was:" >&5
4054 sed 's/^/| /' conftest.
$ac_ext >&5
4056 ac_header_preproc
=no
4059 rm -f conftest.err conftest.
$ac_ext
4060 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4061 echo "${ECHO_T}$ac_header_preproc" >&6; }
4063 # So? What about this header?
4064 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4066 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4067 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4068 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4069 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4070 ac_header_preproc
=yes
4073 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4074 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4075 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4076 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4077 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4078 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4079 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4080 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4081 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4082 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4083 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4084 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4086 ## ----------------------------- ##
4087 ## Report this to gdiso@ustc.edu ##
4088 ## ----------------------------- ##
4090 ) |
sed "s/^/$as_me: WARNING: /" >&2
4093 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4094 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4095 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4096 echo $ECHO_N "(cached) $ECHO_C" >&6
4098 eval "$as_ac_Header=\$ac_header_preproc"
4100 ac_res
=`eval echo '${'$as_ac_Header'}'`
4101 { echo "$as_me:$LINENO: result: $ac_res" >&5
4102 echo "${ECHO_T}$ac_res" >&6; }
4105 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4106 cat >>confdefs.h
<<_ACEOF
4107 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4110 cat >>confdefs.h
<<\_ACEOF
4118 { echo "$as_me:$LINENO: checking for TIFFOpen in -ltiff" >&5
4119 echo $ECHO_N "checking for TIFFOpen in -ltiff... $ECHO_C" >&6; }
4120 if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then
4121 echo $ECHO_N "(cached) $ECHO_C" >&6
4123 ac_check_lib_save_LIBS
=$LIBS
4125 cat >conftest.
$ac_ext <<_ACEOF
4128 cat confdefs.h
>>conftest.
$ac_ext
4129 cat >>conftest.
$ac_ext <<_ACEOF
4130 /* end confdefs.h. */
4132 /* Override any GCC internal prototype to avoid an error.
4133 Use char because int might match the return type of a GCC
4134 builtin and then its argument prototype would still apply. */
4147 rm -f conftest.
$ac_objext conftest
$ac_exeext
4148 if { (ac_try
="$ac_link"
4150 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4151 *) ac_try_echo=$ac_try;;
4153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4154 (eval "$ac_link") 2>conftest.er1
4156 grep -v '^ *+' conftest.er1 >conftest.err
4158 cat conftest.err >&5
4159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160 (exit $ac_status); } && {
4161 test -z "$ac_c_werror_flag" ||
4162 test ! -s conftest.err
4163 } && test -s conftest$ac_exeext &&
4164 $as_test_x conftest$ac_exeext; then
4165 ac_cv_lib_tiff_TIFFOpen=yes
4167 echo "$as_me: failed program was:" >&5
4168 sed 's/^/| /' conftest.$ac_ext >&5
4170 ac_cv_lib_tiff_TIFFOpen=no
4173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4174 conftest$ac_exeext conftest.$ac_ext
4175 LIBS=$ac_check_lib_save_LIBS
4177 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFOpen" >&5
4178 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFOpen" >&6; }
4179 if test $ac_cv_lib_tiff_TIFFOpen = yes; then
4185 #---------------------------------------------------------------------------
4186 # check if gsl library installed
4187 #---------------------------------------------------------------------------
4188 # Check whether --enable-gsl was given.
4189 if test "${enable_gsl+set}" = set; then
4190 enableval=$enable_gsl;
4195 if test "$enableval" = "yes"; then
4197 for ac_header in gsl/gsl_sf_fermi_dirac.h
4199 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4200 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4201 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4203 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4204 echo $ECHO_N "(cached) $ECHO_C" >&6
4206 ac_res=`eval echo '${'$as_ac_Header'}'`
4207 { echo "$as_me:$LINENO: result: $ac_res" >&5
4208 echo "${ECHO_T}$ac_res" >&6; }
4210 # Is the header compilable?
4211 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4212 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4213 cat >conftest.$ac_ext <<_ACEOF
4216 cat confdefs.h >>conftest.$ac_ext
4217 cat >>conftest.$ac_ext <<_ACEOF
4218 /* end confdefs.h. */
4219 $ac_includes_default
4220 #include <$ac_header>
4222 rm -f conftest.$ac_objext
4223 if { (ac_try="$ac_compile"
4225 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4226 *) ac_try_echo
=$ac_try;;
4228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4229 (eval "$ac_compile") 2>conftest.er1
4231 grep -v '^ *+' conftest.er1
>conftest.err
4233 cat conftest.err
>&5
4234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235 (exit $ac_status); } && {
4236 test -z "$ac_c_werror_flag" ||
4237 test ! -s conftest.err
4238 } && test -s conftest.
$ac_objext; then
4239 ac_header_compiler
=yes
4241 echo "$as_me: failed program was:" >&5
4242 sed 's/^/| /' conftest.
$ac_ext >&5
4244 ac_header_compiler
=no
4247 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4248 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4249 echo "${ECHO_T}$ac_header_compiler" >&6; }
4251 # Is the header present?
4252 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4253 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4254 cat >conftest.
$ac_ext <<_ACEOF
4257 cat confdefs.h
>>conftest.
$ac_ext
4258 cat >>conftest.
$ac_ext <<_ACEOF
4259 /* end confdefs.h. */
4260 #include <$ac_header>
4262 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4264 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4265 *) ac_try_echo=$ac_try;;
4267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4268 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4270 grep -v '^ *+' conftest.er1 >conftest.err
4272 cat conftest.err >&5
4273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274 (exit $ac_status); } >/dev/null && {
4275 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4276 test ! -s conftest.err
4278 ac_header_preproc=yes
4280 echo "$as_me: failed program was:" >&5
4281 sed 's/^/| /' conftest.$ac_ext >&5
4283 ac_header_preproc=no
4286 rm -f conftest.err conftest.$ac_ext
4287 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4288 echo "${ECHO_T}$ac_header_preproc" >&6; }
4290 # So? What about this header?
4291 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4293 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4294 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4295 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4296 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4297 ac_header_preproc=yes
4300 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4301 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4302 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4303 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4304 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4305 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4306 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4307 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4308 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4309 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4310 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4311 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4313 ## ----------------------------- ##
4314 ## Report this to gdiso@ustc.edu ##
4315 ## ----------------------------- ##
4317 ) | sed "s/^/$as_me: WARNING: /" >&2
4320 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4321 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4322 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4323 echo $ECHO_N "(cached) $ECHO_C" >&6
4325 eval "$as_ac_Header=\$ac_header_preproc"
4327 ac_res=`eval echo '${'$as_ac_Header'}'`
4328 { echo "$as_me:$LINENO: result: $ac_res" >&5
4329 echo "${ECHO_T}$ac_res" >&6; }
4332 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4333 cat >>confdefs.h <<_ACEOF
4334 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
4337 cat >>confdefs.h <<\_ACEOF
4345 { echo "$as_me:$LINENO: checking for gsl_sf_fermi_dirac_half in -lgsl -lgslcblas" >&5
4346 echo $ECHO_N "checking for gsl_sf_fermi_dirac_half in -lgsl -lgslcblas... $ECHO_C" >&6; }
4347 if test "${ac_cv_lib_gsl__lgslcblas_gsl_sf_fermi_dirac_half+set}" = set; then
4348 echo $ECHO_N "(cached) $ECHO_C" >&6
4350 ac_check_lib_save_LIBS=$LIBS
4351 LIBS="-lgsl -lgslcblas $LIBS"
4352 cat >conftest.$ac_ext <<_ACEOF
4355 cat confdefs.h >>conftest.$ac_ext
4356 cat >>conftest.$ac_ext <<_ACEOF
4357 /* end confdefs.h. */
4359 /* Override any GCC internal prototype to avoid an error.
4360 Use char because int might match the return type of a GCC
4361 builtin and then its argument prototype would still apply. */
4365 char gsl_sf_fermi_dirac_half ();
4369 return gsl_sf_fermi_dirac_half ();
4374 rm -f conftest.$ac_objext conftest$ac_exeext
4375 if { (ac_try="$ac_link"
4377 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4378 *) ac_try_echo
=$ac_try;;
4380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4381 (eval "$ac_link") 2>conftest.er1
4383 grep -v '^ *+' conftest.er1
>conftest.err
4385 cat conftest.err
>&5
4386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387 (exit $ac_status); } && {
4388 test -z "$ac_c_werror_flag" ||
4389 test ! -s conftest.err
4390 } && test -s conftest
$ac_exeext &&
4391 $as_test_x conftest
$ac_exeext; then
4392 ac_cv_lib_gsl__lgslcblas_gsl_sf_fermi_dirac_half
=yes
4394 echo "$as_me: failed program was:" >&5
4395 sed 's/^/| /' conftest.
$ac_ext >&5
4397 ac_cv_lib_gsl__lgslcblas_gsl_sf_fermi_dirac_half
=no
4400 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
4401 conftest
$ac_exeext conftest.
$ac_ext
4402 LIBS
=$ac_check_lib_save_LIBS
4404 { echo "$as_me:$LINENO: result: $ac_cv_lib_gsl__lgslcblas_gsl_sf_fermi_dirac_half" >&5
4405 echo "${ECHO_T}$ac_cv_lib_gsl__lgslcblas_gsl_sf_fermi_dirac_half" >&6; }
4406 if test $ac_cv_lib_gsl__lgslcblas_gsl_sf_fermi_dirac_half = yes; then
4407 LIBS
="$LIBS -lgsl -lgslcblas"
4413 #---------------------------------------------------------------------------
4414 # check if PETSC installed
4415 #---------------------------------------------------------------------------
4416 if test -z "$PETSC_DIR" ; then
4417 { { echo "$as_me:$LINENO: error: ERROR: Can't find PETSC dir! Please install PETSC first." >&5
4418 echo "$as_me: error: ERROR: Can't find PETSC dir! Please install PETSC first." >&2;}
4419 { (exit 1); exit 1; }; }
4424 #---------------------------------------------------------------------------
4425 # Checks for system libraries.
4426 #---------------------------------------------------------------------------
4428 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
4429 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
4430 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
4431 echo $ECHO_N "(cached) $ECHO_C" >&6
4433 ac_check_lib_save_LIBS
=$LIBS
4435 cat >conftest.
$ac_ext <<_ACEOF
4438 cat confdefs.h
>>conftest.
$ac_ext
4439 cat >>conftest.
$ac_ext <<_ACEOF
4440 /* end confdefs.h. */
4442 /* Override any GCC internal prototype to avoid an error.
4443 Use char because int might match the return type of a GCC
4444 builtin and then its argument prototype would still apply. */
4457 rm -f conftest.
$ac_objext conftest
$ac_exeext
4458 if { (ac_try
="$ac_link"
4460 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4461 *) ac_try_echo=$ac_try;;
4463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4464 (eval "$ac_link") 2>conftest.er1
4466 grep -v '^ *+' conftest.er1 >conftest.err
4468 cat conftest.err >&5
4469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470 (exit $ac_status); } && {
4471 test -z "$ac_c_werror_flag" ||
4472 test ! -s conftest.err
4473 } && test -s conftest$ac_exeext &&
4474 $as_test_x conftest$ac_exeext; then
4475 ac_cv_lib_dl_dlopen=yes
4477 echo "$as_me: failed program was:" >&5
4478 sed 's/^/| /' conftest.$ac_ext >&5
4480 ac_cv_lib_dl_dlopen=no
4483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4484 conftest$ac_exeext conftest.$ac_ext
4485 LIBS=$ac_check_lib_save_LIBS
4487 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
4488 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
4489 if test $ac_cv_lib_dl_dlopen = yes; then
4490 cat >>confdefs.h <<_ACEOF
4491 #define HAVE_LIBDL 1
4498 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
4499 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
4500 if test "${ac_cv_lib_m_sin+set}" = set; then
4501 echo $ECHO_N "(cached) $ECHO_C" >&6
4503 ac_check_lib_save_LIBS=$LIBS
4505 cat >conftest.$ac_ext <<_ACEOF
4508 cat confdefs.h >>conftest.$ac_ext
4509 cat >>conftest.$ac_ext <<_ACEOF
4510 /* end confdefs.h. */
4512 /* Override any GCC internal prototype to avoid an error.
4513 Use char because int might match the return type of a GCC
4514 builtin and then its argument prototype would still apply. */
4527 rm -f conftest.$ac_objext conftest$ac_exeext
4528 if { (ac_try="$ac_link"
4530 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4531 *) ac_try_echo
=$ac_try;;
4533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4534 (eval "$ac_link") 2>conftest.er1
4536 grep -v '^ *+' conftest.er1
>conftest.err
4538 cat conftest.err
>&5
4539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540 (exit $ac_status); } && {
4541 test -z "$ac_c_werror_flag" ||
4542 test ! -s conftest.err
4543 } && test -s conftest
$ac_exeext &&
4544 $as_test_x conftest
$ac_exeext; then
4547 echo "$as_me: failed program was:" >&5
4548 sed 's/^/| /' conftest.
$ac_ext >&5
4553 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
4554 conftest
$ac_exeext conftest.
$ac_ext
4555 LIBS
=$ac_check_lib_save_LIBS
4557 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
4558 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
4559 if test $ac_cv_lib_m_sin = yes; then
4564 # Checks for header files.
4565 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4566 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4567 if test "${ac_cv_header_stdc+set}" = set; then
4568 echo $ECHO_N "(cached) $ECHO_C" >&6
4570 cat >conftest.
$ac_ext <<_ACEOF
4573 cat confdefs.h
>>conftest.
$ac_ext
4574 cat >>conftest.
$ac_ext <<_ACEOF
4575 /* end confdefs.h. */
4589 rm -f conftest.
$ac_objext
4590 if { (ac_try
="$ac_compile"
4592 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4593 *) ac_try_echo=$ac_try;;
4595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4596 (eval "$ac_compile") 2>conftest.er1
4598 grep -v '^ *+' conftest.er1 >conftest.err
4600 cat conftest.err >&5
4601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602 (exit $ac_status); } && {
4603 test -z "$ac_c_werror_flag" ||
4604 test ! -s conftest.err
4605 } && test -s conftest.$ac_objext; then
4606 ac_cv_header_stdc=yes
4608 echo "$as_me: failed program was:" >&5
4609 sed 's/^/| /' conftest.$ac_ext >&5
4611 ac_cv_header_stdc=no
4614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4616 if test $ac_cv_header_stdc = yes; then
4617 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4618 cat >conftest.$ac_ext <<_ACEOF
4621 cat confdefs.h >>conftest.$ac_ext
4622 cat >>conftest.$ac_ext <<_ACEOF
4623 /* end confdefs.h. */
4627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4628 $EGREP "memchr" >/dev/null 2>&1; then
4631 ac_cv_header_stdc=no
4637 if test $ac_cv_header_stdc = yes; then
4638 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4639 cat >conftest.$ac_ext <<_ACEOF
4642 cat confdefs.h >>conftest.$ac_ext
4643 cat >>conftest.$ac_ext <<_ACEOF
4644 /* end confdefs.h. */
4648 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4649 $EGREP "free" >/dev/null 2>&1; then
4652 ac_cv_header_stdc=no
4658 if test $ac_cv_header_stdc = yes; then
4659 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4660 if test "$cross_compiling" = yes; then
4663 cat >conftest.$ac_ext <<_ACEOF
4666 cat confdefs.h >>conftest.$ac_ext
4667 cat >>conftest.$ac_ext <<_ACEOF
4668 /* end confdefs.h. */
4671 #if ((' ' & 0x0FF) == 0x020)
4672 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4673 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4675 # define ISLOWER(c) \
4676 (('a' <= (c) && (c) <= 'i') \
4677 || ('j' <= (c) && (c) <= 'r') \
4678 || ('s' <= (c) && (c) <= 'z'))
4679 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4682 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4687 for (i = 0; i < 256; i++)
4688 if (XOR (islower (i), ISLOWER (i))
4689 || toupper (i) != TOUPPER (i))
4694 rm -f conftest$ac_exeext
4695 if { (ac_try="$ac_link"
4697 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4698 *) ac_try_echo
=$ac_try;;
4700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4701 (eval "$ac_link") 2>&5
4703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4704 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4705 { (case "(($ac_try" in
4706 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4707 *) ac_try_echo=$ac_try;;
4709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4710 (eval "$ac_try") 2>&5
4712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); }; }; then
4716 echo "$as_me: program exited with status $ac_status" >&5
4717 echo "$as_me: failed program was:" >&5
4718 sed 's/^/| /' conftest.$ac_ext >&5
4721 ac_cv_header_stdc=no
4723 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4729 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4730 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4731 if test $ac_cv_header_stdc = yes; then
4733 cat >>confdefs.h <<\_ACEOF
4734 #define STDC_HEADERS 1
4748 for ac_header in fcntl.h float.h limits.h stddef.h stdlib.h string.h stdio.h assert.h sys/time.h
4750 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4751 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4752 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4753 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4754 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4755 echo $ECHO_N "(cached) $ECHO_C" >&6
4757 ac_res=`eval echo '${'$as_ac_Header'}'`
4758 { echo "$as_me:$LINENO: result: $ac_res" >&5
4759 echo "${ECHO_T}$ac_res" >&6; }
4761 # Is the header compilable?
4762 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4763 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4764 cat >conftest.$ac_ext <<_ACEOF
4767 cat confdefs.h >>conftest.$ac_ext
4768 cat >>conftest.$ac_ext <<_ACEOF
4769 /* end confdefs.h. */
4770 $ac_includes_default
4771 #include <$ac_header>
4773 rm -f conftest.$ac_objext
4774 if { (ac_try="$ac_compile"
4776 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4777 *) ac_try_echo
=$ac_try;;
4779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4780 (eval "$ac_compile") 2>conftest.er1
4782 grep -v '^ *+' conftest.er1
>conftest.err
4784 cat conftest.err
>&5
4785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786 (exit $ac_status); } && {
4787 test -z "$ac_c_werror_flag" ||
4788 test ! -s conftest.err
4789 } && test -s conftest.
$ac_objext; then
4790 ac_header_compiler
=yes
4792 echo "$as_me: failed program was:" >&5
4793 sed 's/^/| /' conftest.
$ac_ext >&5
4795 ac_header_compiler
=no
4798 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4799 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4800 echo "${ECHO_T}$ac_header_compiler" >&6; }
4802 # Is the header present?
4803 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4804 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4805 cat >conftest.
$ac_ext <<_ACEOF
4808 cat confdefs.h
>>conftest.
$ac_ext
4809 cat >>conftest.
$ac_ext <<_ACEOF
4810 /* end confdefs.h. */
4811 #include <$ac_header>
4813 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4815 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4816 *) ac_try_echo=$ac_try;;
4818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4819 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4821 grep -v '^ *+' conftest.er1 >conftest.err
4823 cat conftest.err >&5
4824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4825 (exit $ac_status); } >/dev/null && {
4826 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4827 test ! -s conftest.err
4829 ac_header_preproc=yes
4831 echo "$as_me: failed program was:" >&5
4832 sed 's/^/| /' conftest.$ac_ext >&5
4834 ac_header_preproc=no
4837 rm -f conftest.err conftest.$ac_ext
4838 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4839 echo "${ECHO_T}$ac_header_preproc" >&6; }
4841 # So? What about this header?
4842 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4844 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4845 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4846 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4847 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4848 ac_header_preproc=yes
4851 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4852 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4853 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4854 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4855 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4856 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4857 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4858 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4859 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4860 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4861 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4862 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4864 ## ----------------------------- ##
4865 ## Report this to gdiso@ustc.edu ##
4866 ## ----------------------------- ##
4868 ) | sed "s/^/$as_me: WARNING: /" >&2
4871 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4872 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4873 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4874 echo $ECHO_N "(cached) $ECHO_C" >&6
4876 eval "$as_ac_Header=\$ac_header_preproc"
4878 ac_res=`eval echo '${'$as_ac_Header'}'`
4879 { echo "$as_me:$LINENO: result: $ac_res" >&5
4880 echo "${ECHO_T}$ac_res" >&6; }
4883 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4884 cat >>confdefs.h <<_ACEOF
4885 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
4893 # Checks for typedefs, structures, and compiler characteristics.
4894 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
4895 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
4896 if test "${ac_cv_header_stdbool_h+set}" = set; then
4897 echo $ECHO_N "(cached) $ECHO_C" >&6
4899 cat >conftest.$ac_ext <<_ACEOF
4902 cat confdefs.h >>conftest.$ac_ext
4903 cat >>conftest.$ac_ext <<_ACEOF
4904 /* end confdefs.h. */
4906 #include <stdbool.h>
4908 "error: bool is not defined"
4911 "error: false is not defined"
4914 "error: false is not 0"
4917 "error: true is not defined"
4920 "error: true is not 1"
4922 #ifndef __bool_true_false_are_defined
4923 "error: __bool_true_false_are_defined is not defined"
4926 struct s { _Bool s: 1; _Bool t; } s;
4928 char a[true == 1 ? 1 : -1];
4929 char b[false == 0 ? 1 : -1];
4930 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
4931 char d[(bool) 0.5 == true ? 1 : -1];
4933 char f[(_Bool) 0.0 == false ? 1 : -1];
4935 char h[sizeof (_Bool)];
4937 enum { j = false, k = true, l = false * true, m = true * 256 };
4939 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
4940 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
4941 # if defined __xlc__ || defined __GNUC__
4942 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
4943 reported by James Lemley on 2005-10-05; see
4944 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
4945 This test is not quite right, since xlc is allowed to
4946 reject this program, as the initializer for xlcbug is
4947 not one of the forms that C requires support for.
4948 However, doing the test right would require a runtime
4949 test, and that would make cross-compilation harder.
4950 Let us hope that IBM fixes the xlc bug, and also adds
4951 support for this kind of constant expression. In the
4952 meantime, this test will reject xlc, which is OK, since
4953 our stdbool.h substitute should suffice. We also test
4954 this with GCC, where it should work, to detect more
4955 quickly whether someone messes up the test in the
4957 char digs[] = "0123456789";
4958 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
4960 /* Catch a bug in an HP-UX C compiler. See
4961 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
4962 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
4973 /* Refer to every declared value, to avoid compiler optimizations. */
4974 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
4975 + !m + !n + !o + !p + !q + !pq);
4981 rm -f conftest.$ac_objext
4982 if { (ac_try="$ac_compile"
4984 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4985 *) ac_try_echo
=$ac_try;;
4987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4988 (eval "$ac_compile") 2>conftest.er1
4990 grep -v '^ *+' conftest.er1
>conftest.err
4992 cat conftest.err
>&5
4993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994 (exit $ac_status); } && {
4995 test -z "$ac_c_werror_flag" ||
4996 test ! -s conftest.err
4997 } && test -s conftest.
$ac_objext; then
4998 ac_cv_header_stdbool_h
=yes
5000 echo "$as_me: failed program was:" >&5
5001 sed 's/^/| /' conftest.
$ac_ext >&5
5003 ac_cv_header_stdbool_h
=no
5006 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5008 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
5009 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
5010 { echo "$as_me:$LINENO: checking for _Bool" >&5
5011 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
5012 if test "${ac_cv_type__Bool+set}" = set; then
5013 echo $ECHO_N "(cached) $ECHO_C" >&6
5015 cat >conftest.
$ac_ext <<_ACEOF
5018 cat confdefs.h
>>conftest.
$ac_ext
5019 cat >>conftest.
$ac_ext <<_ACEOF
5020 /* end confdefs.h. */
5021 $ac_includes_default
5022 typedef _Bool ac__type_new_;
5026 if ((ac__type_new_ *) 0)
5028 if (sizeof (ac__type_new_))
5034 rm -f conftest.
$ac_objext
5035 if { (ac_try
="$ac_compile"
5037 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5038 *) ac_try_echo=$ac_try;;
5040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5041 (eval "$ac_compile") 2>conftest.er1
5043 grep -v '^ *+' conftest.er1 >conftest.err
5045 cat conftest.err >&5
5046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047 (exit $ac_status); } && {
5048 test -z "$ac_c_werror_flag" ||
5049 test ! -s conftest.err
5050 } && test -s conftest.$ac_objext; then
5051 ac_cv_type__Bool=yes
5053 echo "$as_me: failed program was:" >&5
5054 sed 's/^/| /' conftest.$ac_ext >&5
5059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5061 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
5062 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
5063 if test $ac_cv_type__Bool = yes; then
5065 cat >>confdefs.h <<_ACEOF
5066 #define HAVE__BOOL 1
5072 if test $ac_cv_header_stdbool_h = yes; then
5074 cat >>confdefs.h <<\_ACEOF
5075 #define HAVE_STDBOOL_H 1
5080 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5081 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
5082 if test "${ac_cv_c_const+set}" = set; then
5083 echo $ECHO_N "(cached) $ECHO_C" >&6
5085 cat >conftest.$ac_ext <<_ACEOF
5088 cat confdefs.h >>conftest.$ac_ext
5089 cat >>conftest.$ac_ext <<_ACEOF
5090 /* end confdefs.h. */
5095 /* FIXME: Include the comments suggested by Paul. */
5097 /* Ultrix mips cc rejects this. */
5098 typedef int charset[2];
5100 /* SunOS 4.1.1 cc rejects this. */
5101 char const *const *pcpcc;
5103 /* NEC SVR4.0.2 mips cc rejects this. */
5104 struct point {int x, y;};
5105 static struct point const zero = {0,0};
5106 /* AIX XL C 1.02.0.0 rejects this.
5107 It does not let you subtract one const X* pointer from another in
5108 an arm of an if-expression whose if-part is not a constant
5110 const char *g = "string";
5111 pcpcc = &g + (g ? g-g : 0);
5112 /* HPUX 7.0 cc rejects these. */
5114 ppc = (char**) pcpcc;
5115 pcpcc = (char const *const *) ppc;
5116 { /* SCO 3.2v4 cc rejects this. */
5118 char const *s = 0 ? (char *) 0 : (char const *) 0;
5123 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5125 const int *foo = &x[0];
5128 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5129 typedef const int *iptr;
5133 { /* AIX XL C 1.02.0.0 rejects this saying
5134 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5135 struct s { int j; const int *ap[3]; };
5136 struct s *b; b->j = 5;
5138 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5142 return !cs[0] && !zero.x;
5149 rm -f conftest.$ac_objext
5150 if { (ac_try="$ac_compile"
5152 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5153 *) ac_try_echo
=$ac_try;;
5155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5156 (eval "$ac_compile") 2>conftest.er1
5158 grep -v '^ *+' conftest.er1
>conftest.err
5160 cat conftest.err
>&5
5161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162 (exit $ac_status); } && {
5163 test -z "$ac_c_werror_flag" ||
5164 test ! -s conftest.err
5165 } && test -s conftest.
$ac_objext; then
5168 echo "$as_me: failed program was:" >&5
5169 sed 's/^/| /' conftest.
$ac_ext >&5
5174 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5176 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5177 echo "${ECHO_T}$ac_cv_c_const" >&6; }
5178 if test $ac_cv_c_const = no
; then
5180 cat >>confdefs.h
<<\_ACEOF
5186 { echo "$as_me:$LINENO: checking for inline" >&5
5187 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5188 if test "${ac_cv_c_inline+set}" = set; then
5189 echo $ECHO_N "(cached) $ECHO_C" >&6
5192 for ac_kw
in inline __inline__ __inline
; do
5193 cat >conftest.
$ac_ext <<_ACEOF
5196 cat confdefs.h
>>conftest.
$ac_ext
5197 cat >>conftest.
$ac_ext <<_ACEOF
5198 /* end confdefs.h. */
5201 static $ac_kw foo_t static_foo () {return 0; }
5202 $ac_kw foo_t foo () {return 0; }
5206 rm -f conftest.
$ac_objext
5207 if { (ac_try
="$ac_compile"
5209 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5210 *) ac_try_echo=$ac_try;;
5212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5213 (eval "$ac_compile") 2>conftest.er1
5215 grep -v '^ *+' conftest.er1 >conftest.err
5217 cat conftest.err >&5
5218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219 (exit $ac_status); } && {
5220 test -z "$ac_c_werror_flag" ||
5221 test ! -s conftest.err
5222 } && test -s conftest.$ac_objext; then
5223 ac_cv_c_inline=$ac_kw
5225 echo "$as_me: failed program was:" >&5
5226 sed 's/^/| /' conftest.$ac_ext >&5
5231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5232 test "$ac_cv_c_inline" != no && break
5236 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5237 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5240 case $ac_cv_c_inline in
5243 case $ac_cv_c_inline in
5245 *) ac_val=$ac_cv_c_inline;;
5247 cat >>confdefs.h <<_ACEOF
5249 #define inline $ac_val
5255 { echo "$as_me:$LINENO: checking for size_t" >&5
5256 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5257 if test "${ac_cv_type_size_t+set}" = set; then
5258 echo $ECHO_N "(cached) $ECHO_C" >&6
5260 cat >conftest.$ac_ext <<_ACEOF
5263 cat confdefs.h >>conftest.$ac_ext
5264 cat >>conftest.$ac_ext <<_ACEOF
5265 /* end confdefs.h. */
5266 $ac_includes_default
5267 typedef size_t ac__type_new_;
5271 if ((ac__type_new_ *) 0)
5273 if (sizeof (ac__type_new_))
5279 rm -f conftest.$ac_objext
5280 if { (ac_try="$ac_compile"
5282 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5283 *) ac_try_echo
=$ac_try;;
5285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5286 (eval "$ac_compile") 2>conftest.er1
5288 grep -v '^ *+' conftest.er1
>conftest.err
5290 cat conftest.err
>&5
5291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292 (exit $ac_status); } && {
5293 test -z "$ac_c_werror_flag" ||
5294 test ! -s conftest.err
5295 } && test -s conftest.
$ac_objext; then
5296 ac_cv_type_size_t
=yes
5298 echo "$as_me: failed program was:" >&5
5299 sed 's/^/| /' conftest.
$ac_ext >&5
5301 ac_cv_type_size_t
=no
5304 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5306 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5307 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5308 if test $ac_cv_type_size_t = yes; then
5312 cat >>confdefs.h
<<_ACEOF
5313 #define size_t unsigned int
5318 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5319 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
5320 if test "${ac_cv_header_time+set}" = set; then
5321 echo $ECHO_N "(cached) $ECHO_C" >&6
5323 cat >conftest.
$ac_ext <<_ACEOF
5326 cat confdefs.h
>>conftest.
$ac_ext
5327 cat >>conftest.
$ac_ext <<_ACEOF
5328 /* end confdefs.h. */
5329 #include <sys/types.h>
5330 #include <sys/time.h>
5336 if ((struct tm *) 0)
5342 rm -f conftest.
$ac_objext
5343 if { (ac_try
="$ac_compile"
5345 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5346 *) ac_try_echo=$ac_try;;
5348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5349 (eval "$ac_compile") 2>conftest.er1
5351 grep -v '^ *+' conftest.er1 >conftest.err
5353 cat conftest.err >&5
5354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355 (exit $ac_status); } && {
5356 test -z "$ac_c_werror_flag" ||
5357 test ! -s conftest.err
5358 } && test -s conftest.$ac_objext; then
5359 ac_cv_header_time=yes
5361 echo "$as_me: failed program was:" >&5
5362 sed 's/^/| /' conftest.$ac_ext >&5
5364 ac_cv_header_time=no
5367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5369 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5370 echo "${ECHO_T}$ac_cv_header_time" >&6; }
5371 if test $ac_cv_header_time = yes; then
5373 cat >>confdefs.h <<\_ACEOF
5374 #define TIME_WITH_SYS_TIME 1
5380 # Checks for library functions.
5382 for ac_header in stdlib.h
5384 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5385 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5386 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5387 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5388 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5389 echo $ECHO_N "(cached) $ECHO_C" >&6
5391 ac_res=`eval echo '${'$as_ac_Header'}'`
5392 { echo "$as_me:$LINENO: result: $ac_res" >&5
5393 echo "${ECHO_T}$ac_res" >&6; }
5395 # Is the header compilable?
5396 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5397 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5398 cat >conftest.$ac_ext <<_ACEOF
5401 cat confdefs.h >>conftest.$ac_ext
5402 cat >>conftest.$ac_ext <<_ACEOF
5403 /* end confdefs.h. */
5404 $ac_includes_default
5405 #include <$ac_header>
5407 rm -f conftest.$ac_objext
5408 if { (ac_try="$ac_compile"
5410 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5411 *) ac_try_echo
=$ac_try;;
5413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5414 (eval "$ac_compile") 2>conftest.er1
5416 grep -v '^ *+' conftest.er1
>conftest.err
5418 cat conftest.err
>&5
5419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420 (exit $ac_status); } && {
5421 test -z "$ac_c_werror_flag" ||
5422 test ! -s conftest.err
5423 } && test -s conftest.
$ac_objext; then
5424 ac_header_compiler
=yes
5426 echo "$as_me: failed program was:" >&5
5427 sed 's/^/| /' conftest.
$ac_ext >&5
5429 ac_header_compiler
=no
5432 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5433 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5434 echo "${ECHO_T}$ac_header_compiler" >&6; }
5436 # Is the header present?
5437 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5438 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5439 cat >conftest.
$ac_ext <<_ACEOF
5442 cat confdefs.h
>>conftest.
$ac_ext
5443 cat >>conftest.
$ac_ext <<_ACEOF
5444 /* end confdefs.h. */
5445 #include <$ac_header>
5447 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5449 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5450 *) ac_try_echo=$ac_try;;
5452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5453 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5455 grep -v '^ *+' conftest.er1 >conftest.err
5457 cat conftest.err >&5
5458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459 (exit $ac_status); } >/dev/null && {
5460 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5461 test ! -s conftest.err
5463 ac_header_preproc=yes
5465 echo "$as_me: failed program was:" >&5
5466 sed 's/^/| /' conftest.$ac_ext >&5
5468 ac_header_preproc=no
5471 rm -f conftest.err conftest.$ac_ext
5472 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5473 echo "${ECHO_T}$ac_header_preproc" >&6; }
5475 # So? What about this header?
5476 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5478 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5479 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5480 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5481 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5482 ac_header_preproc=yes
5485 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5486 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5487 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5488 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5489 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5490 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5491 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5492 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5493 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5494 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5495 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5496 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5498 ## ----------------------------- ##
5499 ## Report this to gdiso@ustc.edu ##
5500 ## ----------------------------- ##
5502 ) | sed "s/^/$as_me: WARNING: /" >&2
5505 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5506 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5507 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5508 echo $ECHO_N "(cached) $ECHO_C" >&6
5510 eval "$as_ac_Header=\$ac_header_preproc"
5512 ac_res=`eval echo '${'$as_ac_Header'}'`
5513 { echo "$as_me:$LINENO: result: $ac_res" >&5
5514 echo "${ECHO_T}$ac_res" >&6; }
5517 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5518 cat >>confdefs.h <<_ACEOF
5519 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5526 { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
5527 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
5528 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
5529 echo $ECHO_N "(cached) $ECHO_C" >&6
5531 if test "$cross_compiling" = yes; then
5532 ac_cv_func_malloc_0_nonnull=no
5534 cat >conftest.$ac_ext <<_ACEOF
5537 cat confdefs.h >>conftest.$ac_ext
5538 cat >>conftest.$ac_ext <<_ACEOF
5539 /* end confdefs.h. */
5540 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
5541 # include <stdlib.h>
5549 return ! malloc (0);
5554 rm -f conftest$ac_exeext
5555 if { (ac_try="$ac_link"
5557 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5558 *) ac_try_echo
=$ac_try;;
5560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5561 (eval "$ac_link") 2>&5
5563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5565 { (case "(($ac_try" in
5566 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5567 *) ac_try_echo=$ac_try;;
5569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5570 (eval "$ac_try") 2>&5
5572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5573 (exit $ac_status); }; }; then
5574 ac_cv_func_malloc_0_nonnull=yes
5576 echo "$as_me: program exited with status $ac_status" >&5
5577 echo "$as_me: failed program was:" >&5
5578 sed 's/^/| /' conftest.$ac_ext >&5
5581 ac_cv_func_malloc_0_nonnull=no
5583 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5588 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
5589 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
5590 if test $ac_cv_func_malloc_0_nonnull = yes; then
5592 cat >>confdefs.h <<\_ACEOF
5593 #define HAVE_MALLOC 1
5597 cat >>confdefs.h <<\_ACEOF
5598 #define HAVE_MALLOC 0
5601 case " $LIBOBJS " in
5602 *" malloc.$ac_objext "* ) ;;
5603 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
5608 cat >>confdefs.h <<\_ACEOF
5609 #define malloc rpl_malloc
5617 for ac_header in stdlib.h
5619 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5620 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5621 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5622 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5623 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5624 echo $ECHO_N "(cached) $ECHO_C" >&6
5626 ac_res=`eval echo '${'$as_ac_Header'}'`
5627 { echo "$as_me:$LINENO: result: $ac_res" >&5
5628 echo "${ECHO_T}$ac_res" >&6; }
5630 # Is the header compilable?
5631 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5632 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5633 cat >conftest.$ac_ext <<_ACEOF
5636 cat confdefs.h >>conftest.$ac_ext
5637 cat >>conftest.$ac_ext <<_ACEOF
5638 /* end confdefs.h. */
5639 $ac_includes_default
5640 #include <$ac_header>
5642 rm -f conftest.$ac_objext
5643 if { (ac_try="$ac_compile"
5645 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5646 *) ac_try_echo
=$ac_try;;
5648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5649 (eval "$ac_compile") 2>conftest.er1
5651 grep -v '^ *+' conftest.er1
>conftest.err
5653 cat conftest.err
>&5
5654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5655 (exit $ac_status); } && {
5656 test -z "$ac_c_werror_flag" ||
5657 test ! -s conftest.err
5658 } && test -s conftest.
$ac_objext; then
5659 ac_header_compiler
=yes
5661 echo "$as_me: failed program was:" >&5
5662 sed 's/^/| /' conftest.
$ac_ext >&5
5664 ac_header_compiler
=no
5667 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5668 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5669 echo "${ECHO_T}$ac_header_compiler" >&6; }
5671 # Is the header present?
5672 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5673 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5674 cat >conftest.
$ac_ext <<_ACEOF
5677 cat confdefs.h
>>conftest.
$ac_ext
5678 cat >>conftest.
$ac_ext <<_ACEOF
5679 /* end confdefs.h. */
5680 #include <$ac_header>
5682 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5684 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5685 *) ac_try_echo=$ac_try;;
5687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5688 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5690 grep -v '^ *+' conftest.er1 >conftest.err
5692 cat conftest.err >&5
5693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694 (exit $ac_status); } >/dev/null && {
5695 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5696 test ! -s conftest.err
5698 ac_header_preproc=yes
5700 echo "$as_me: failed program was:" >&5
5701 sed 's/^/| /' conftest.$ac_ext >&5
5703 ac_header_preproc=no
5706 rm -f conftest.err conftest.$ac_ext
5707 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5708 echo "${ECHO_T}$ac_header_preproc" >&6; }
5710 # So? What about this header?
5711 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5713 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5714 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5715 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5716 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5717 ac_header_preproc=yes
5720 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5721 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5722 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5723 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5724 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5725 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5726 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5727 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5728 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5729 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5730 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5731 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5733 ## ----------------------------- ##
5734 ## Report this to gdiso@ustc.edu ##
5735 ## ----------------------------- ##
5737 ) | sed "s/^/$as_me: WARNING: /" >&2
5740 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5742 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5743 echo $ECHO_N "(cached) $ECHO_C" >&6
5745 eval "$as_ac_Header=\$ac_header_preproc"
5747 ac_res=`eval echo '${'$as_ac_Header'}'`
5748 { echo "$as_me:$LINENO: result: $ac_res" >&5
5749 echo "${ECHO_T}$ac_res" >&6; }
5752 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5753 cat >>confdefs.h <<_ACEOF
5754 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5761 { echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
5762 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; }
5763 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
5764 echo $ECHO_N "(cached) $ECHO_C" >&6
5766 if test "$cross_compiling" = yes; then
5767 ac_cv_func_realloc_0_nonnull=no
5769 cat >conftest.$ac_ext <<_ACEOF
5772 cat confdefs.h >>conftest.$ac_ext
5773 cat >>conftest.$ac_ext <<_ACEOF
5774 /* end confdefs.h. */
5775 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
5776 # include <stdlib.h>
5784 return ! realloc (0, 0);
5789 rm -f conftest$ac_exeext
5790 if { (ac_try="$ac_link"
5792 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5793 *) ac_try_echo
=$ac_try;;
5795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5796 (eval "$ac_link") 2>&5
5798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5800 { (case "(($ac_try" in
5801 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5802 *) ac_try_echo=$ac_try;;
5804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5805 (eval "$ac_try") 2>&5
5807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808 (exit $ac_status); }; }; then
5809 ac_cv_func_realloc_0_nonnull=yes
5811 echo "$as_me: program exited with status $ac_status" >&5
5812 echo "$as_me: failed program was:" >&5
5813 sed 's/^/| /' conftest.$ac_ext >&5
5816 ac_cv_func_realloc_0_nonnull=no
5818 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5823 { echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
5824 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; }
5825 if test $ac_cv_func_realloc_0_nonnull = yes; then
5827 cat >>confdefs.h <<\_ACEOF
5828 #define HAVE_REALLOC 1
5832 cat >>confdefs.h <<\_ACEOF
5833 #define HAVE_REALLOC 0
5836 case " $LIBOBJS " in
5837 *" realloc.$ac_objext "* ) ;;
5838 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
5843 cat >>confdefs.h <<\_ACEOF
5844 #define realloc rpl_realloc
5851 { echo "$as_me:$LINENO: checking for working strtod" >&5
5852 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; }
5853 if test "${ac_cv_func_strtod+set}" = set; then
5854 echo $ECHO_N "(cached) $ECHO_C" >&6
5856 if test "$cross_compiling" = yes; then
5857 ac_cv_func_strtod=no
5859 cat >conftest.$ac_ext <<_ACEOF
5862 cat confdefs.h >>conftest.$ac_ext
5863 cat >>conftest.$ac_ext <<_ACEOF
5864 /* end confdefs.h. */
5866 $ac_includes_default
5874 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
5875 char *string = " +69";
5878 value = strtod (string, &term);
5879 if (value != 69 || term != (string + 4))
5884 /* Under Solaris 2.4, strtod returns the wrong value for the
5885 terminating character under some conditions. */
5886 char *string = "NaN";
5888 strtod (string, &term);
5889 if (term != string && *(term - 1) == 0)
5896 rm -f conftest$ac_exeext
5897 if { (ac_try="$ac_link"
5899 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5900 *) ac_try_echo
=$ac_try;;
5902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5903 (eval "$ac_link") 2>&5
5905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5906 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5907 { (case "(($ac_try" in
5908 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5909 *) ac_try_echo=$ac_try;;
5911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5912 (eval "$ac_try") 2>&5
5914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915 (exit $ac_status); }; }; then
5916 ac_cv_func_strtod=yes
5918 echo "$as_me: program exited with status $ac_status" >&5
5919 echo "$as_me: failed program was:" >&5
5920 sed 's/^/| /' conftest.$ac_ext >&5
5923 ac_cv_func_strtod=no
5925 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5930 { echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
5931 echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
5932 if test $ac_cv_func_strtod = no; then
5933 case " $LIBOBJS " in
5934 *" strtod.$ac_objext "* ) ;;
5935 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
5939 { echo "$as_me:$LINENO: checking for pow" >&5
5940 echo $ECHO_N "checking for pow... $ECHO_C" >&6; }
5941 if test "${ac_cv_func_pow+set}" = set; then
5942 echo $ECHO_N "(cached) $ECHO_C" >&6
5944 cat >conftest.$ac_ext <<_ACEOF
5947 cat confdefs.h >>conftest.$ac_ext
5948 cat >>conftest.$ac_ext <<_ACEOF
5949 /* end confdefs.h. */
5950 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
5951 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5952 #define pow innocuous_pow
5954 /* System header to define __stub macros and hopefully few prototypes,
5955 which can conflict with char pow (); below.
5956 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5957 <limits.h> exists even on freestanding compilers. */
5960 # include <limits.h>
5962 # include <assert.h>
5967 /* Override any GCC internal prototype to avoid an error.
5968 Use char because int might match the return type of a GCC
5969 builtin and then its argument prototype would still apply. */
5974 /* The GNU C library defines this for functions which it implements
5975 to always fail with ENOSYS. Some functions are actually named
5976 something starting with __ and the normal name is an alias. */
5977 #if defined __stub_pow || defined __stub___pow
5989 rm -f conftest.$ac_objext conftest$ac_exeext
5990 if { (ac_try="$ac_link"
5992 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5993 *) ac_try_echo
=$ac_try;;
5995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5996 (eval "$ac_link") 2>conftest.er1
5998 grep -v '^ *+' conftest.er1
>conftest.err
6000 cat conftest.err
>&5
6001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002 (exit $ac_status); } && {
6003 test -z "$ac_c_werror_flag" ||
6004 test ! -s conftest.err
6005 } && test -s conftest
$ac_exeext &&
6006 $as_test_x conftest
$ac_exeext; then
6009 echo "$as_me: failed program was:" >&5
6010 sed 's/^/| /' conftest.
$ac_ext >&5
6015 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6016 conftest
$ac_exeext conftest.
$ac_ext
6018 { echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
6019 echo "${ECHO_T}$ac_cv_func_pow" >&6; }
6021 if test $ac_cv_func_pow = no
; then
6022 { echo "$as_me:$LINENO: checking for pow in -lm" >&5
6023 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
6024 if test "${ac_cv_lib_m_pow+set}" = set; then
6025 echo $ECHO_N "(cached) $ECHO_C" >&6
6027 ac_check_lib_save_LIBS
=$LIBS
6029 cat >conftest.
$ac_ext <<_ACEOF
6032 cat confdefs.h
>>conftest.
$ac_ext
6033 cat >>conftest.
$ac_ext <<_ACEOF
6034 /* end confdefs.h. */
6036 /* Override any GCC internal prototype to avoid an error.
6037 Use char because int might match the return type of a GCC
6038 builtin and then its argument prototype would still apply. */
6051 rm -f conftest.
$ac_objext conftest
$ac_exeext
6052 if { (ac_try
="$ac_link"
6054 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6055 *) ac_try_echo=$ac_try;;
6057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6058 (eval "$ac_link") 2>conftest.er1
6060 grep -v '^ *+' conftest.er1 >conftest.err
6062 cat conftest.err >&5
6063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064 (exit $ac_status); } && {
6065 test -z "$ac_c_werror_flag" ||
6066 test ! -s conftest.err
6067 } && test -s conftest$ac_exeext &&
6068 $as_test_x conftest$ac_exeext; then
6071 echo "$as_me: failed program was:" >&5
6072 sed 's/^/| /' conftest.$ac_ext >&5
6077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6078 conftest$ac_exeext conftest.$ac_ext
6079 LIBS=$ac_check_lib_save_LIBS
6081 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
6082 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
6083 if test $ac_cv_lib_m_pow = yes; then
6086 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
6087 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
6097 for ac_func in memset pow sqrt
6099 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
6100 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6101 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6102 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6103 echo $ECHO_N "(cached) $ECHO_C" >&6
6105 cat >conftest.$ac_ext <<_ACEOF
6108 cat confdefs.h >>conftest.$ac_ext
6109 cat >>conftest.$ac_ext <<_ACEOF
6110 /* end confdefs.h. */
6111 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6112 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6113 #define $ac_func innocuous_$ac_func
6115 /* System header to define __stub macros and hopefully few prototypes,
6116 which can conflict with char $ac_func (); below.
6117 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6118 <limits.h> exists even on freestanding compilers. */
6121 # include <limits.h>
6123 # include <assert.h>
6128 /* Override any GCC internal prototype to avoid an error.
6129 Use char because int might match the return type of a GCC
6130 builtin and then its argument prototype would still apply. */
6135 /* The GNU C library defines this for functions which it implements
6136 to always fail with ENOSYS. Some functions are actually named
6137 something starting with __ and the normal name is an alias. */
6138 #if defined __stub_$ac_func || defined __stub___$ac_func
6150 rm -f conftest.$ac_objext conftest$ac_exeext
6151 if { (ac_try="$ac_link"
6153 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6154 *) ac_try_echo
=$ac_try;;
6156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6157 (eval "$ac_link") 2>conftest.er1
6159 grep -v '^ *+' conftest.er1
>conftest.err
6161 cat conftest.err
>&5
6162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 (exit $ac_status); } && {
6164 test -z "$ac_c_werror_flag" ||
6165 test ! -s conftest.err
6166 } && test -s conftest
$ac_exeext &&
6167 $as_test_x conftest
$ac_exeext; then
6168 eval "$as_ac_var=yes"
6170 echo "$as_me: failed program was:" >&5
6171 sed 's/^/| /' conftest.
$ac_ext >&5
6173 eval "$as_ac_var=no"
6176 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6177 conftest
$ac_exeext conftest.
$ac_ext
6179 ac_res
=`eval echo '${'$as_ac_var'}'`
6180 { echo "$as_me:$LINENO: result: $ac_res" >&5
6181 echo "${ECHO_T}$ac_res" >&6; }
6182 if test `eval echo '${'$as_ac_var'}'` = yes; then
6183 cat >>confdefs.h
<<_ACEOF
6184 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6192 #---------------------------------------------------------------------------
6193 # Checks for system define
6194 #---------------------------------------------------------------------------
6198 cat >>confdefs.h
<<\_ACEOF
6204 cat >>confdefs.h
<<\_ACEOF
6210 cat >>confdefs.h
<<\_ACEOF
6218 # Check whether --with-Win32 was given.
6219 if test "${with_Win32+set}" = set; then
6220 withval
=$with_Win32;
6221 cat >>confdefs.h
<<\_ACEOF
6231 if test "$Win32API" = 0 ; then
6232 { echo "$as_me:$LINENO: checking for X" >&5
6233 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
6236 # Check whether --with-x was given.
6237 if test "${with_x+set}" = set; then
6241 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6242 if test "x$with_x" = xno
; then
6243 # The user explicitly disabled X.
6246 case $x_includes,$x_libraries in #(
6247 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
6248 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
6249 { (exit 1); exit 1; }; };; #(
6250 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then
6251 echo $ECHO_N "(cached) $ECHO_C" >&6
6253 # One or both of the vars are not set, and there is no cached value.
6254 ac_x_includes
=no ac_x_libraries
=no
6255 rm -f -r conftest.dir
6256 if mkdir conftest.dir
; then
6258 cat >Imakefile
<<'_ACEOF'
6260 @echo incroot='${INCROOT}'
6262 @echo usrlibdir='${USRLIBDIR}'
6264 @echo libdir='${LIBDIR}'
6266 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
6267 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6268 for ac_var
in incroot usrlibdir libdir
; do
6269 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
6271 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6272 for ac_extension
in a so sl
; do
6273 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
6274 test -f "$ac_im_libdir/libX11.$ac_extension"; then
6275 ac_im_usrlibdir
=$ac_im_libdir; break
6278 # Screen out bogus values from the imake configuration. They are
6279 # bogus both because they are the default anyway, and because
6280 # using them would break gcc on systems where it needs fixed includes.
6281 case $ac_im_incroot in
6282 /usr
/include
) ac_x_includes
= ;;
6283 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
6285 case $ac_im_usrlibdir in
6287 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
6291 rm -f -r conftest.dir
6294 # Standard set of common directories for X headers.
6295 # Check X11 before X11Rn because it is often a symlink to the current release.
6307 /usr/local/X11/include
6308 /usr/local/X11R6/include
6309 /usr/local/X11R5/include
6310 /usr/local/X11R4/include
6312 /usr/local/include/X11
6313 /usr/local/include/X11R6
6314 /usr/local/include/X11R5
6315 /usr/local/include/X11R4
6319 /usr/XFree86/include/X11
6323 /usr/unsupported/include
6325 /usr/local/x11r5/include
6326 /usr/lpp/Xamples/include
6328 /usr/openwin/include
6329 /usr/openwin/share/include'
6331 if test "$ac_x_includes" = no
; then
6332 # Guess where to find include files, by looking for Xlib.h.
6333 # First, try using that file with no special directory specified.
6334 cat >conftest.
$ac_ext <<_ACEOF
6337 cat confdefs.h
>>conftest.
$ac_ext
6338 cat >>conftest.
$ac_ext <<_ACEOF
6339 /* end confdefs.h. */
6340 #include <X11/Xlib.h>
6342 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6344 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6345 *) ac_try_echo=$ac_try;;
6347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6348 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6350 grep -v '^ *+' conftest.er1 >conftest.err
6352 cat conftest.err >&5
6353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354 (exit $ac_status); } >/dev/null && {
6355 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6356 test ! -s conftest.err
6358 # We can compile using X headers with no special include directory.
6361 echo "$as_me: failed program was:" >&5
6362 sed 's/^/| /' conftest.$ac_ext >&5
6364 for ac_dir in $ac_x_header_dirs; do
6365 if test -r "$ac_dir/X11/Xlib.h"; then
6366 ac_x_includes=$ac_dir
6372 rm -f conftest.err conftest.$ac_ext
6373 fi # $ac_x_includes = no
6375 if test "$ac_x_libraries" = no; then
6376 # Check for the libraries.
6377 # See if we find them without any special options.
6378 # Don't add to $LIBS permanently.
6381 cat >conftest.$ac_ext <<_ACEOF
6384 cat confdefs.h >>conftest.$ac_ext
6385 cat >>conftest.$ac_ext <<_ACEOF
6386 /* end confdefs.h. */
6387 #include <X11/Xlib.h>
6396 rm -f conftest.$ac_objext conftest$ac_exeext
6397 if { (ac_try="$ac_link"
6399 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6400 *) ac_try_echo
=$ac_try;;
6402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6403 (eval "$ac_link") 2>conftest.er1
6405 grep -v '^ *+' conftest.er1
>conftest.err
6407 cat conftest.err
>&5
6408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409 (exit $ac_status); } && {
6410 test -z "$ac_c_werror_flag" ||
6411 test ! -s conftest.err
6412 } && test -s conftest
$ac_exeext &&
6413 $as_test_x conftest
$ac_exeext; then
6415 # We can link X programs with no special library path.
6418 echo "$as_me: failed program was:" >&5
6419 sed 's/^/| /' conftest.
$ac_ext >&5
6422 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6424 # Don't even attempt the hair of trying to link an X program!
6425 for ac_extension
in a so sl
; do
6426 if test -r "$ac_dir/libX11.$ac_extension"; then
6427 ac_x_libraries
=$ac_dir
6434 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6435 conftest
$ac_exeext conftest.
$ac_ext
6436 fi # $ac_x_libraries = no
6438 case $ac_x_includes,$ac_x_libraries in #(
6440 # Didn't find X, or a directory has "'" in its name.
6441 ac_cv_have_x
="have_x=no";; #(
6443 # Record where we found X for the cache.
6444 ac_cv_have_x
="have_x=yes\
6445 ac_x_includes='$ac_x_includes'\
6446 ac_x_libraries='$ac_x_libraries'"
6452 eval "$ac_cv_have_x"
6455 if test "$have_x" != yes; then
6456 { echo "$as_me:$LINENO: result: $have_x" >&5
6457 echo "${ECHO_T}$have_x" >&6; }
6460 # If each of the values was on the command line, it overrides each guess.
6461 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
6462 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
6463 # Update the cache value to reflect the command line values.
6464 ac_cv_have_x
="have_x=yes\
6465 ac_x_includes='$x_includes'\
6466 ac_x_libraries='$x_libraries'"
6467 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6468 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
6471 if test "$no_x" = yes; then
6472 # Not all programs may use this symbol, but it does not hurt to define it.
6474 cat >>confdefs.h
<<\_ACEOF
6475 #define X_DISPLAY_MISSING 1
6478 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
6480 if test -n "$x_includes"; then
6481 X_CFLAGS
="$X_CFLAGS -I$x_includes"
6484 # It would also be nice to do this for all -L options, not just this one.
6485 if test -n "$x_libraries"; then
6486 X_LIBS
="$X_LIBS -L$x_libraries"
6487 # For Solaris; some versions of Sun CC require a space after -R and
6488 # others require no space. Words are not sufficient . . . .
6489 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
6490 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
6491 ac_xsave_LIBS
=$LIBS; LIBS
="$LIBS -R$x_libraries"
6492 ac_xsave_c_werror_flag
=$ac_c_werror_flag
6493 ac_c_werror_flag
=yes
6494 cat >conftest.
$ac_ext <<_ACEOF
6497 cat confdefs.h
>>conftest.
$ac_ext
6498 cat >>conftest.
$ac_ext <<_ACEOF
6499 /* end confdefs.h. */
6509 rm -f conftest.
$ac_objext conftest
$ac_exeext
6510 if { (ac_try
="$ac_link"
6512 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6513 *) ac_try_echo=$ac_try;;
6515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6516 (eval "$ac_link") 2>conftest.er1
6518 grep -v '^ *+' conftest.er1 >conftest.err
6520 cat conftest.err >&5
6521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6522 (exit $ac_status); } && {
6523 test -z "$ac_c_werror_flag" ||
6524 test ! -s conftest.err
6525 } && test -s conftest$ac_exeext &&
6526 $as_test_x conftest$ac_exeext; then
6527 { echo "$as_me:$LINENO: result: no" >&5
6528 echo "${ECHO_T}no" >&6; }
6529 X_LIBS="$X_LIBS -R$x_libraries"
6531 echo "$as_me: failed program was:" >&5
6532 sed 's/^/| /' conftest.$ac_ext >&5
6534 LIBS="$ac_xsave_LIBS -R $x_libraries"
6535 cat >conftest.$ac_ext <<_ACEOF
6538 cat confdefs.h >>conftest.$ac_ext
6539 cat >>conftest.$ac_ext <<_ACEOF
6540 /* end confdefs.h. */
6550 rm -f conftest.$ac_objext conftest$ac_exeext
6551 if { (ac_try="$ac_link"
6553 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6554 *) ac_try_echo
=$ac_try;;
6556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6557 (eval "$ac_link") 2>conftest.er1
6559 grep -v '^ *+' conftest.er1
>conftest.err
6561 cat conftest.err
>&5
6562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563 (exit $ac_status); } && {
6564 test -z "$ac_c_werror_flag" ||
6565 test ! -s conftest.err
6566 } && test -s conftest
$ac_exeext &&
6567 $as_test_x conftest
$ac_exeext; then
6568 { echo "$as_me:$LINENO: result: yes" >&5
6569 echo "${ECHO_T}yes" >&6; }
6570 X_LIBS
="$X_LIBS -R $x_libraries"
6572 echo "$as_me: failed program was:" >&5
6573 sed 's/^/| /' conftest.
$ac_ext >&5
6575 { echo "$as_me:$LINENO: result: neither works" >&5
6576 echo "${ECHO_T}neither works" >&6; }
6579 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6580 conftest
$ac_exeext conftest.
$ac_ext
6583 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6584 conftest
$ac_exeext conftest.
$ac_ext
6585 ac_c_werror_flag
=$ac_xsave_c_werror_flag
6589 # Check for system-dependent libraries X programs must link with.
6590 # Do this before checking for the system-independent R6 libraries
6591 # (-lICE), since we may need -lsocket or whatever for X linking.
6593 if test "$ISC" = yes; then
6594 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
6596 # Martyn Johnson says this is needed for Ultrix, if the X
6597 # libraries were built with DECnet support. And Karl Berry says
6598 # the Alpha needs dnet_stub (dnet does not exist).
6599 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS $X_LIBS -lX11"
6600 cat >conftest.
$ac_ext <<_ACEOF
6603 cat confdefs.h
>>conftest.
$ac_ext
6604 cat >>conftest.
$ac_ext <<_ACEOF
6605 /* end confdefs.h. */
6607 /* Override any GCC internal prototype to avoid an error.
6608 Use char because int might match the return type of a GCC
6609 builtin and then its argument prototype would still apply. */
6613 char XOpenDisplay ();
6617 return XOpenDisplay ();
6622 rm -f conftest.
$ac_objext conftest
$ac_exeext
6623 if { (ac_try
="$ac_link"
6625 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6626 *) ac_try_echo=$ac_try;;
6628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6629 (eval "$ac_link") 2>conftest.er1
6631 grep -v '^ *+' conftest.er1 >conftest.err
6633 cat conftest.err >&5
6634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6635 (exit $ac_status); } && {
6636 test -z "$ac_c_werror_flag" ||
6637 test ! -s conftest.err
6638 } && test -s conftest$ac_exeext &&
6639 $as_test_x conftest$ac_exeext; then
6642 echo "$as_me: failed program was:" >&5
6643 sed 's/^/| /' conftest.$ac_ext >&5
6645 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6646 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
6647 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6648 echo $ECHO_N "(cached) $ECHO_C" >&6
6650 ac_check_lib_save_LIBS=$LIBS
6652 cat >conftest.$ac_ext <<_ACEOF
6655 cat confdefs.h >>conftest.$ac_ext
6656 cat >>conftest.$ac_ext <<_ACEOF
6657 /* end confdefs.h. */
6659 /* Override any GCC internal prototype to avoid an error.
6660 Use char because int might match the return type of a GCC
6661 builtin and then its argument prototype would still apply. */
6669 return dnet_ntoa ();
6674 rm -f conftest.$ac_objext conftest$ac_exeext
6675 if { (ac_try="$ac_link"
6677 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6678 *) ac_try_echo
=$ac_try;;
6680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6681 (eval "$ac_link") 2>conftest.er1
6683 grep -v '^ *+' conftest.er1
>conftest.err
6685 cat conftest.err
>&5
6686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687 (exit $ac_status); } && {
6688 test -z "$ac_c_werror_flag" ||
6689 test ! -s conftest.err
6690 } && test -s conftest
$ac_exeext &&
6691 $as_test_x conftest
$ac_exeext; then
6692 ac_cv_lib_dnet_dnet_ntoa
=yes
6694 echo "$as_me: failed program was:" >&5
6695 sed 's/^/| /' conftest.
$ac_ext >&5
6697 ac_cv_lib_dnet_dnet_ntoa
=no
6700 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6701 conftest
$ac_exeext conftest.
$ac_ext
6702 LIBS
=$ac_check_lib_save_LIBS
6704 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6705 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
6706 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6707 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
6710 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
6711 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
6712 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
6713 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
6714 echo $ECHO_N "(cached) $ECHO_C" >&6
6716 ac_check_lib_save_LIBS
=$LIBS
6717 LIBS
="-ldnet_stub $LIBS"
6718 cat >conftest.
$ac_ext <<_ACEOF
6721 cat confdefs.h
>>conftest.
$ac_ext
6722 cat >>conftest.
$ac_ext <<_ACEOF
6723 /* end confdefs.h. */
6725 /* Override any GCC internal prototype to avoid an error.
6726 Use char because int might match the return type of a GCC
6727 builtin and then its argument prototype would still apply. */
6735 return dnet_ntoa ();
6740 rm -f conftest.
$ac_objext conftest
$ac_exeext
6741 if { (ac_try
="$ac_link"
6743 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6744 *) ac_try_echo=$ac_try;;
6746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6747 (eval "$ac_link") 2>conftest.er1
6749 grep -v '^ *+' conftest.er1 >conftest.err
6751 cat conftest.err >&5
6752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6753 (exit $ac_status); } && {
6754 test -z "$ac_c_werror_flag" ||
6755 test ! -s conftest.err
6756 } && test -s conftest$ac_exeext &&
6757 $as_test_x conftest$ac_exeext; then
6758 ac_cv_lib_dnet_stub_dnet_ntoa=yes
6760 echo "$as_me: failed program was:" >&5
6761 sed 's/^/| /' conftest.$ac_ext >&5
6763 ac_cv_lib_dnet_stub_dnet_ntoa=no
6766 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6767 conftest$ac_exeext conftest.$ac_ext
6768 LIBS=$ac_check_lib_save_LIBS
6770 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
6771 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
6772 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
6773 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6780 conftest$ac_exeext conftest.$ac_ext
6781 LIBS="$ac_xsave_LIBS"
6783 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6784 # to get the SysV transport functions.
6785 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
6787 # The nsl library prevents programs from opening the X display
6788 # on Irix 5.2, according to T.E. Dickey.
6789 # The functions gethostbyname, getservbyname, and inet_addr are
6790 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
6791 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
6792 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
6793 if test "${ac_cv_func_gethostbyname+set}" = set; then
6794 echo $ECHO_N "(cached) $ECHO_C" >&6
6796 cat >conftest.$ac_ext <<_ACEOF
6799 cat confdefs.h >>conftest.$ac_ext
6800 cat >>conftest.$ac_ext <<_ACEOF
6801 /* end confdefs.h. */
6802 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
6803 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6804 #define gethostbyname innocuous_gethostbyname
6806 /* System header to define __stub macros and hopefully few prototypes,
6807 which can conflict with char gethostbyname (); below.
6808 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6809 <limits.h> exists even on freestanding compilers. */
6812 # include <limits.h>
6814 # include <assert.h>
6817 #undef gethostbyname
6819 /* Override any GCC internal prototype to avoid an error.
6820 Use char because int might match the return type of a GCC
6821 builtin and then its argument prototype would still apply. */
6825 char gethostbyname ();
6826 /* The GNU C library defines this for functions which it implements
6827 to always fail with ENOSYS. Some functions are actually named
6828 something starting with __ and the normal name is an alias. */
6829 #if defined __stub_gethostbyname || defined __stub___gethostbyname
6836 return gethostbyname ();
6841 rm -f conftest.$ac_objext conftest$ac_exeext
6842 if { (ac_try="$ac_link"
6844 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6845 *) ac_try_echo
=$ac_try;;
6847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6848 (eval "$ac_link") 2>conftest.er1
6850 grep -v '^ *+' conftest.er1
>conftest.err
6852 cat conftest.err
>&5
6853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6854 (exit $ac_status); } && {
6855 test -z "$ac_c_werror_flag" ||
6856 test ! -s conftest.err
6857 } && test -s conftest
$ac_exeext &&
6858 $as_test_x conftest
$ac_exeext; then
6859 ac_cv_func_gethostbyname
=yes
6861 echo "$as_me: failed program was:" >&5
6862 sed 's/^/| /' conftest.
$ac_ext >&5
6864 ac_cv_func_gethostbyname
=no
6867 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6868 conftest
$ac_exeext conftest.
$ac_ext
6870 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
6871 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
6873 if test $ac_cv_func_gethostbyname = no
; then
6874 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6875 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
6876 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6877 echo $ECHO_N "(cached) $ECHO_C" >&6
6879 ac_check_lib_save_LIBS
=$LIBS
6881 cat >conftest.
$ac_ext <<_ACEOF
6884 cat confdefs.h
>>conftest.
$ac_ext
6885 cat >>conftest.
$ac_ext <<_ACEOF
6886 /* end confdefs.h. */
6888 /* Override any GCC internal prototype to avoid an error.
6889 Use char because int might match the return type of a GCC
6890 builtin and then its argument prototype would still apply. */
6894 char gethostbyname ();
6898 return gethostbyname ();
6903 rm -f conftest.
$ac_objext conftest
$ac_exeext
6904 if { (ac_try
="$ac_link"
6906 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6907 *) ac_try_echo=$ac_try;;
6909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6910 (eval "$ac_link") 2>conftest.er1
6912 grep -v '^ *+' conftest.er1 >conftest.err
6914 cat conftest.err >&5
6915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6916 (exit $ac_status); } && {
6917 test -z "$ac_c_werror_flag" ||
6918 test ! -s conftest.err
6919 } && test -s conftest$ac_exeext &&
6920 $as_test_x conftest$ac_exeext; then
6921 ac_cv_lib_nsl_gethostbyname=yes
6923 echo "$as_me: failed program was:" >&5
6924 sed 's/^/| /' conftest.$ac_ext >&5
6926 ac_cv_lib_nsl_gethostbyname=no
6929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6930 conftest$ac_exeext conftest.$ac_ext
6931 LIBS=$ac_check_lib_save_LIBS
6933 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6934 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
6935 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6936 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6939 if test $ac_cv_lib_nsl_gethostbyname = no; then
6940 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
6941 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
6942 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
6943 echo $ECHO_N "(cached) $ECHO_C" >&6
6945 ac_check_lib_save_LIBS=$LIBS
6947 cat >conftest.$ac_ext <<_ACEOF
6950 cat confdefs.h >>conftest.$ac_ext
6951 cat >>conftest.$ac_ext <<_ACEOF
6952 /* end confdefs.h. */
6954 /* Override any GCC internal prototype to avoid an error.
6955 Use char because int might match the return type of a GCC
6956 builtin and then its argument prototype would still apply. */
6960 char gethostbyname ();
6964 return gethostbyname ();
6969 rm -f conftest.$ac_objext conftest$ac_exeext
6970 if { (ac_try="$ac_link"
6972 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6973 *) ac_try_echo
=$ac_try;;
6975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6976 (eval "$ac_link") 2>conftest.er1
6978 grep -v '^ *+' conftest.er1
>conftest.err
6980 cat conftest.err
>&5
6981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6982 (exit $ac_status); } && {
6983 test -z "$ac_c_werror_flag" ||
6984 test ! -s conftest.err
6985 } && test -s conftest
$ac_exeext &&
6986 $as_test_x conftest
$ac_exeext; then
6987 ac_cv_lib_bsd_gethostbyname
=yes
6989 echo "$as_me: failed program was:" >&5
6990 sed 's/^/| /' conftest.
$ac_ext >&5
6992 ac_cv_lib_bsd_gethostbyname
=no
6995 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6996 conftest
$ac_exeext conftest.
$ac_ext
6997 LIBS
=$ac_check_lib_save_LIBS
6999 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
7000 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
7001 if test $ac_cv_lib_bsd_gethostbyname = yes; then
7002 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lbsd"
7008 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7009 # socket/setsockopt and other routines are undefined under SCO ODT
7010 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7011 # on later versions), says Simon Leinen: it contains gethostby*
7012 # variants that don't use the name server (or something). -lsocket
7013 # must be given before -lnsl if both are needed. We assume that
7014 # if connect needs -lnsl, so does gethostbyname.
7015 { echo "$as_me:$LINENO: checking for connect" >&5
7016 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
7017 if test "${ac_cv_func_connect+set}" = set; then
7018 echo $ECHO_N "(cached) $ECHO_C" >&6
7020 cat >conftest.
$ac_ext <<_ACEOF
7023 cat confdefs.h
>>conftest.
$ac_ext
7024 cat >>conftest.
$ac_ext <<_ACEOF
7025 /* end confdefs.h. */
7026 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
7027 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7028 #define connect innocuous_connect
7030 /* System header to define __stub macros and hopefully few prototypes,
7031 which can conflict with char connect (); below.
7032 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7033 <limits.h> exists even on freestanding compilers. */
7036 # include <limits.h>
7038 # include <assert.h>
7043 /* Override any GCC internal prototype to avoid an error.
7044 Use char because int might match the return type of a GCC
7045 builtin and then its argument prototype would still apply. */
7050 /* The GNU C library defines this for functions which it implements
7051 to always fail with ENOSYS. Some functions are actually named
7052 something starting with __ and the normal name is an alias. */
7053 #if defined __stub_connect || defined __stub___connect
7065 rm -f conftest.
$ac_objext conftest
$ac_exeext
7066 if { (ac_try
="$ac_link"
7068 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7069 *) ac_try_echo=$ac_try;;
7071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7072 (eval "$ac_link") 2>conftest.er1
7074 grep -v '^ *+' conftest.er1 >conftest.err
7076 cat conftest.err >&5
7077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078 (exit $ac_status); } && {
7079 test -z "$ac_c_werror_flag" ||
7080 test ! -s conftest.err
7081 } && test -s conftest$ac_exeext &&
7082 $as_test_x conftest$ac_exeext; then
7083 ac_cv_func_connect=yes
7085 echo "$as_me: failed program was:" >&5
7086 sed 's/^/| /' conftest.$ac_ext >&5
7088 ac_cv_func_connect=no
7091 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7092 conftest$ac_exeext conftest.$ac_ext
7094 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
7095 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
7097 if test $ac_cv_func_connect = no; then
7098 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
7099 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
7100 if test "${ac_cv_lib_socket_connect+set}" = set; then
7101 echo $ECHO_N "(cached) $ECHO_C" >&6
7103 ac_check_lib_save_LIBS=$LIBS
7104 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7105 cat >conftest.$ac_ext <<_ACEOF
7108 cat confdefs.h >>conftest.$ac_ext
7109 cat >>conftest.$ac_ext <<_ACEOF
7110 /* end confdefs.h. */
7112 /* Override any GCC internal prototype to avoid an error.
7113 Use char because int might match the return type of a GCC
7114 builtin and then its argument prototype would still apply. */
7127 rm -f conftest.$ac_objext conftest$ac_exeext
7128 if { (ac_try="$ac_link"
7130 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7131 *) ac_try_echo
=$ac_try;;
7133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7134 (eval "$ac_link") 2>conftest.er1
7136 grep -v '^ *+' conftest.er1
>conftest.err
7138 cat conftest.err
>&5
7139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7140 (exit $ac_status); } && {
7141 test -z "$ac_c_werror_flag" ||
7142 test ! -s conftest.err
7143 } && test -s conftest
$ac_exeext &&
7144 $as_test_x conftest
$ac_exeext; then
7145 ac_cv_lib_socket_connect
=yes
7147 echo "$as_me: failed program was:" >&5
7148 sed 's/^/| /' conftest.
$ac_ext >&5
7150 ac_cv_lib_socket_connect
=no
7153 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7154 conftest
$ac_exeext conftest.
$ac_ext
7155 LIBS
=$ac_check_lib_save_LIBS
7157 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
7158 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
7159 if test $ac_cv_lib_socket_connect = yes; then
7160 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
7165 # Guillermo Gomez says -lposix is necessary on A/UX.
7166 { echo "$as_me:$LINENO: checking for remove" >&5
7167 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
7168 if test "${ac_cv_func_remove+set}" = set; then
7169 echo $ECHO_N "(cached) $ECHO_C" >&6
7171 cat >conftest.
$ac_ext <<_ACEOF
7174 cat confdefs.h
>>conftest.
$ac_ext
7175 cat >>conftest.
$ac_ext <<_ACEOF
7176 /* end confdefs.h. */
7177 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
7178 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7179 #define remove innocuous_remove
7181 /* System header to define __stub macros and hopefully few prototypes,
7182 which can conflict with char remove (); below.
7183 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7184 <limits.h> exists even on freestanding compilers. */
7187 # include <limits.h>
7189 # include <assert.h>
7194 /* Override any GCC internal prototype to avoid an error.
7195 Use char because int might match the return type of a GCC
7196 builtin and then its argument prototype would still apply. */
7201 /* The GNU C library defines this for functions which it implements
7202 to always fail with ENOSYS. Some functions are actually named
7203 something starting with __ and the normal name is an alias. */
7204 #if defined __stub_remove || defined __stub___remove
7216 rm -f conftest.
$ac_objext conftest
$ac_exeext
7217 if { (ac_try
="$ac_link"
7219 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7220 *) ac_try_echo=$ac_try;;
7222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7223 (eval "$ac_link") 2>conftest.er1
7225 grep -v '^ *+' conftest.er1 >conftest.err
7227 cat conftest.err >&5
7228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7229 (exit $ac_status); } && {
7230 test -z "$ac_c_werror_flag" ||
7231 test ! -s conftest.err
7232 } && test -s conftest$ac_exeext &&
7233 $as_test_x conftest$ac_exeext; then
7234 ac_cv_func_remove=yes
7236 echo "$as_me: failed program was:" >&5
7237 sed 's/^/| /' conftest.$ac_ext >&5
7239 ac_cv_func_remove=no
7242 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7243 conftest$ac_exeext conftest.$ac_ext
7245 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
7246 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
7248 if test $ac_cv_func_remove = no; then
7249 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
7250 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
7251 if test "${ac_cv_lib_posix_remove+set}" = set; then
7252 echo $ECHO_N "(cached) $ECHO_C" >&6
7254 ac_check_lib_save_LIBS=$LIBS
7255 LIBS="-lposix $LIBS"
7256 cat >conftest.$ac_ext <<_ACEOF
7259 cat confdefs.h >>conftest.$ac_ext
7260 cat >>conftest.$ac_ext <<_ACEOF
7261 /* end confdefs.h. */
7263 /* Override any GCC internal prototype to avoid an error.
7264 Use char because int might match the return type of a GCC
7265 builtin and then its argument prototype would still apply. */
7278 rm -f conftest.$ac_objext conftest$ac_exeext
7279 if { (ac_try="$ac_link"
7281 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7282 *) ac_try_echo
=$ac_try;;
7284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7285 (eval "$ac_link") 2>conftest.er1
7287 grep -v '^ *+' conftest.er1
>conftest.err
7289 cat conftest.err
>&5
7290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7291 (exit $ac_status); } && {
7292 test -z "$ac_c_werror_flag" ||
7293 test ! -s conftest.err
7294 } && test -s conftest
$ac_exeext &&
7295 $as_test_x conftest
$ac_exeext; then
7296 ac_cv_lib_posix_remove
=yes
7298 echo "$as_me: failed program was:" >&5
7299 sed 's/^/| /' conftest.
$ac_ext >&5
7301 ac_cv_lib_posix_remove
=no
7304 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7305 conftest
$ac_exeext conftest.
$ac_ext
7306 LIBS
=$ac_check_lib_save_LIBS
7308 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
7309 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
7310 if test $ac_cv_lib_posix_remove = yes; then
7311 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
7316 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7317 { echo "$as_me:$LINENO: checking for shmat" >&5
7318 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
7319 if test "${ac_cv_func_shmat+set}" = set; then
7320 echo $ECHO_N "(cached) $ECHO_C" >&6
7322 cat >conftest.
$ac_ext <<_ACEOF
7325 cat confdefs.h
>>conftest.
$ac_ext
7326 cat >>conftest.
$ac_ext <<_ACEOF
7327 /* end confdefs.h. */
7328 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
7329 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7330 #define shmat innocuous_shmat
7332 /* System header to define __stub macros and hopefully few prototypes,
7333 which can conflict with char shmat (); below.
7334 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7335 <limits.h> exists even on freestanding compilers. */
7338 # include <limits.h>
7340 # include <assert.h>
7345 /* Override any GCC internal prototype to avoid an error.
7346 Use char because int might match the return type of a GCC
7347 builtin and then its argument prototype would still apply. */
7352 /* The GNU C library defines this for functions which it implements
7353 to always fail with ENOSYS. Some functions are actually named
7354 something starting with __ and the normal name is an alias. */
7355 #if defined __stub_shmat || defined __stub___shmat
7367 rm -f conftest.
$ac_objext conftest
$ac_exeext
7368 if { (ac_try
="$ac_link"
7370 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7371 *) ac_try_echo=$ac_try;;
7373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7374 (eval "$ac_link") 2>conftest.er1
7376 grep -v '^ *+' conftest.er1 >conftest.err
7378 cat conftest.err >&5
7379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7380 (exit $ac_status); } && {
7381 test -z "$ac_c_werror_flag" ||
7382 test ! -s conftest.err
7383 } && test -s conftest$ac_exeext &&
7384 $as_test_x conftest$ac_exeext; then
7385 ac_cv_func_shmat=yes
7387 echo "$as_me: failed program was:" >&5
7388 sed 's/^/| /' conftest.$ac_ext >&5
7393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7394 conftest$ac_exeext conftest.$ac_ext
7396 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
7397 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
7399 if test $ac_cv_func_shmat = no; then
7400 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
7401 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
7402 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
7403 echo $ECHO_N "(cached) $ECHO_C" >&6
7405 ac_check_lib_save_LIBS=$LIBS
7407 cat >conftest.$ac_ext <<_ACEOF
7410 cat confdefs.h >>conftest.$ac_ext
7411 cat >>conftest.$ac_ext <<_ACEOF
7412 /* end confdefs.h. */
7414 /* Override any GCC internal prototype to avoid an error.
7415 Use char because int might match the return type of a GCC
7416 builtin and then its argument prototype would still apply. */
7429 rm -f conftest.$ac_objext conftest$ac_exeext
7430 if { (ac_try="$ac_link"
7432 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7433 *) ac_try_echo
=$ac_try;;
7435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7436 (eval "$ac_link") 2>conftest.er1
7438 grep -v '^ *+' conftest.er1
>conftest.err
7440 cat conftest.err
>&5
7441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7442 (exit $ac_status); } && {
7443 test -z "$ac_c_werror_flag" ||
7444 test ! -s conftest.err
7445 } && test -s conftest
$ac_exeext &&
7446 $as_test_x conftest
$ac_exeext; then
7447 ac_cv_lib_ipc_shmat
=yes
7449 echo "$as_me: failed program was:" >&5
7450 sed 's/^/| /' conftest.
$ac_ext >&5
7452 ac_cv_lib_ipc_shmat
=no
7455 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7456 conftest
$ac_exeext conftest.
$ac_ext
7457 LIBS
=$ac_check_lib_save_LIBS
7459 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
7460 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
7461 if test $ac_cv_lib_ipc_shmat = yes; then
7462 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
7468 # Check for libraries that X11R6 Xt/Xaw programs need.
7469 ac_save_LDFLAGS
=$LDFLAGS
7470 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
7471 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7472 # check for ICE first), but we must link in the order -lSM -lICE or
7473 # we get undefined symbols. So assume we have SM if we have ICE.
7474 # These have to be linked with before -lX11, unlike the other
7475 # libraries we check for below, so use a different variable.
7476 # John Interrante, Karl Berry
7477 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
7478 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
7479 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
7480 echo $ECHO_N "(cached) $ECHO_C" >&6
7482 ac_check_lib_save_LIBS
=$LIBS
7483 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
7484 cat >conftest.
$ac_ext <<_ACEOF
7487 cat confdefs.h
>>conftest.
$ac_ext
7488 cat >>conftest.
$ac_ext <<_ACEOF
7489 /* end confdefs.h. */
7491 /* Override any GCC internal prototype to avoid an error.
7492 Use char because int might match the return type of a GCC
7493 builtin and then its argument prototype would still apply. */
7497 char IceConnectionNumber ();
7501 return IceConnectionNumber ();
7506 rm -f conftest.
$ac_objext conftest
$ac_exeext
7507 if { (ac_try
="$ac_link"
7509 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7510 *) ac_try_echo=$ac_try;;
7512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7513 (eval "$ac_link") 2>conftest.er1
7515 grep -v '^ *+' conftest.er1 >conftest.err
7517 cat conftest.err >&5
7518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7519 (exit $ac_status); } && {
7520 test -z "$ac_c_werror_flag" ||
7521 test ! -s conftest.err
7522 } && test -s conftest$ac_exeext &&
7523 $as_test_x conftest$ac_exeext; then
7524 ac_cv_lib_ICE_IceConnectionNumber=yes
7526 echo "$as_me: failed program was:" >&5
7527 sed 's/^/| /' conftest.$ac_ext >&5
7529 ac_cv_lib_ICE_IceConnectionNumber=no
7532 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7533 conftest$ac_exeext conftest.$ac_ext
7534 LIBS=$ac_check_lib_save_LIBS
7536 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7537 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7538 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
7539 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7542 LDFLAGS=$ac_save_LDFLAGS
7546 if ! test "$x_includes" = ""; then
7547 X11INCS=-I$x_includes
7549 cat >>confdefs.h <<\_ACEOF
7555 for ac_header in X11/Xlib.h
7557 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
7558 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7559 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7560 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7561 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7562 echo $ECHO_N "(cached) $ECHO_C" >&6
7564 ac_res=`eval echo '${'$as_ac_Header'}'`
7565 { echo "$as_me:$LINENO: result: $ac_res" >&5
7566 echo "${ECHO_T}$ac_res" >&6; }
7568 # Is the header compilable?
7569 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7570 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7571 cat >conftest.$ac_ext <<_ACEOF
7574 cat confdefs.h >>conftest.$ac_ext
7575 cat >>conftest.$ac_ext <<_ACEOF
7576 /* end confdefs.h. */
7577 $ac_includes_default
7578 #include <$ac_header>
7580 rm -f conftest.$ac_objext
7581 if { (ac_try="$ac_compile"
7583 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7584 *) ac_try_echo
=$ac_try;;
7586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7587 (eval "$ac_compile") 2>conftest.er1
7589 grep -v '^ *+' conftest.er1
>conftest.err
7591 cat conftest.err
>&5
7592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7593 (exit $ac_status); } && {
7594 test -z "$ac_c_werror_flag" ||
7595 test ! -s conftest.err
7596 } && test -s conftest.
$ac_objext; then
7597 ac_header_compiler
=yes
7599 echo "$as_me: failed program was:" >&5
7600 sed 's/^/| /' conftest.
$ac_ext >&5
7602 ac_header_compiler
=no
7605 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7606 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7607 echo "${ECHO_T}$ac_header_compiler" >&6; }
7609 # Is the header present?
7610 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7611 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7612 cat >conftest.
$ac_ext <<_ACEOF
7615 cat confdefs.h
>>conftest.
$ac_ext
7616 cat >>conftest.
$ac_ext <<_ACEOF
7617 /* end confdefs.h. */
7618 #include <$ac_header>
7620 if { (ac_try
="$ac_cpp conftest.$ac_ext"
7622 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7623 *) ac_try_echo=$ac_try;;
7625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7626 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7628 grep -v '^ *+' conftest.er1 >conftest.err
7630 cat conftest.err >&5
7631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632 (exit $ac_status); } >/dev/null && {
7633 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7634 test ! -s conftest.err
7636 ac_header_preproc=yes
7638 echo "$as_me: failed program was:" >&5
7639 sed 's/^/| /' conftest.$ac_ext >&5
7641 ac_header_preproc=no
7644 rm -f conftest.err conftest.$ac_ext
7645 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7646 echo "${ECHO_T}$ac_header_preproc" >&6; }
7648 # So? What about this header?
7649 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7651 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7652 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7653 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7654 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7655 ac_header_preproc=yes
7658 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7659 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7660 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7661 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7662 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7663 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7664 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7665 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7666 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7667 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7668 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7669 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7671 ## ----------------------------- ##
7672 ## Report this to gdiso@ustc.edu ##
7673 ## ----------------------------- ##
7675 ) | sed "s/^/$as_me: WARNING: /" >&2
7678 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7679 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7680 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7681 echo $ECHO_N "(cached) $ECHO_C" >&6
7683 eval "$as_ac_Header=\$ac_header_preproc"
7685 ac_res=`eval echo '${'$as_ac_Header'}'`
7686 { echo "$as_me:$LINENO: result: $ac_res" >&5
7687 echo "${ECHO_T}$ac_res" >&6; }
7690 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7691 cat >>confdefs.h <<_ACEOF
7692 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7695 cat >>confdefs.h <<\_ACEOF
7704 if ! test "$x_libraries" = ""; then
7705 X11LIBS="-L$x_libraries -lX11"
7707 { echo "$as_me:$LINENO: checking for XFlush in -lX11" >&5
7708 echo $ECHO_N "checking for XFlush in -lX11... $ECHO_C" >&6; }
7709 if test "${ac_cv_lib_X11_XFlush+set}" = set; then
7710 echo $ECHO_N "(cached) $ECHO_C" >&6
7712 ac_check_lib_save_LIBS=$LIBS
7714 cat >conftest.$ac_ext <<_ACEOF
7717 cat confdefs.h >>conftest.$ac_ext
7718 cat >>conftest.$ac_ext <<_ACEOF
7719 /* end confdefs.h. */
7721 /* Override any GCC internal prototype to avoid an error.
7722 Use char because int might match the return type of a GCC
7723 builtin and then its argument prototype would still apply. */
7736 rm -f conftest.$ac_objext conftest$ac_exeext
7737 if { (ac_try="$ac_link"
7739 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7740 *) ac_try_echo
=$ac_try;;
7742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7743 (eval "$ac_link") 2>conftest.er1
7745 grep -v '^ *+' conftest.er1
>conftest.err
7747 cat conftest.err
>&5
7748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749 (exit $ac_status); } && {
7750 test -z "$ac_c_werror_flag" ||
7751 test ! -s conftest.err
7752 } && test -s conftest
$ac_exeext &&
7753 $as_test_x conftest
$ac_exeext; then
7754 ac_cv_lib_X11_XFlush
=yes
7756 echo "$as_me: failed program was:" >&5
7757 sed 's/^/| /' conftest.
$ac_ext >&5
7759 ac_cv_lib_X11_XFlush
=no
7762 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7763 conftest
$ac_exeext conftest.
$ac_ext
7764 LIBS
=$ac_check_lib_save_LIBS
7766 { echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XFlush" >&5
7767 echo "${ECHO_T}$ac_cv_lib_X11_XFlush" >&6; }
7768 if test $ac_cv_lib_X11_XFlush = yes; then
7775 { echo "$as_me:$LINENO: checking options for building dynamic library" >&5
7776 echo $ECHO_N "checking options for building dynamic library... $ECHO_C" >&6; }
7779 LDFSHARED
=" -dynamiclib ";;
7781 LDFSHARED
=" -shared";;
7784 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7785 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
7786 set x
${MAKE-make}; ac_make
=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7787 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
7788 echo $ECHO_N "(cached) $ECHO_C" >&6
7790 cat >conftest.
make <<\_ACEOF
7793 @
echo '@@@%%%=$(MAKE)=@@@%%%'
7795 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7796 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7798 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
7800 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
7804 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
7805 { echo "$as_me:$LINENO: result: yes" >&5
7806 echo "${ECHO_T}yes" >&6; }
7809 { echo "$as_me:$LINENO: result: no" >&5
7810 echo "${ECHO_T}no" >&6; }
7811 SET_MAKE
="MAKE=${MAKE-make}"
7824 ac_config_files
="$ac_config_files make.defs"
7826 cat >confcache
<<\_ACEOF
7827 # This file is a shell script that caches the results of configure
7828 # tests run on this system so they can be shared between configure
7829 # scripts and configure runs, see configure's option --config-cache.
7830 # It is not useful on other systems. If it contains results you don't
7831 # want to keep, you may remove or edit it.
7833 # config.status only pays attention to the cache file if you give it
7834 # the --recheck option to rerun configure.
7836 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7837 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7842 # The following way of writing the cache mishandles newlines in values,
7843 # but we know of no workaround that is simple, portable, and efficient.
7844 # So, we kill variables containing newlines.
7845 # Ultrix sh set writes to stderr and can't be redirected directly,
7846 # and sets the high bit in the cache file unless we assign to the vars.
7848 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7849 eval ac_val
=\$
$ac_var
7853 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
7854 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
7857 _ | IFS | as_nl
) ;; #(
7858 *) $as_unset $ac_var ;;
7864 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7865 *${as_nl}ac_space
=\
*)
7866 # `set' does not quote correctly, so add quotes (double-quote
7867 # substitution turns \\\\ into \\, and sed turns \\ into \).
7870 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7873 # `set' quotes correctly as required by POSIX, so do not add quotes.
7874 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7883 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7885 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7887 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
7888 if test -w "$cache_file"; then
7889 test "x$cache_file" != "x/dev/null" &&
7890 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
7891 echo "$as_me: updating cache $cache_file" >&6;}
7892 cat confcache
>$cache_file
7894 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
7895 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7900 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7901 # Let make expand exec_prefix.
7902 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7904 DEFS
=-DHAVE_CONFIG_H
7908 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
7909 # 1. Remove the extension, and $U if already installed.
7910 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
7911 ac_i
=`echo "$ac_i" | sed "$ac_script"`
7912 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7913 # will be set to the directory where LIBOBJS objects are built.
7914 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7915 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
7919 LTLIBOBJS
=$ac_ltlibobjs
7923 : ${CONFIG_STATUS=./config.status}
7924 ac_clean_files_save
=$ac_clean_files
7925 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
7926 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7927 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7928 cat >$CONFIG_STATUS <<_ACEOF
7930 # Generated by $as_me.
7931 # Run this file to recreate the current configuration.
7932 # Compiler output produced by configure, useful for debugging
7933 # configure, is in config.log if it exists.
7938 SHELL=\${CONFIG_SHELL-$SHELL}
7941 cat >>$CONFIG_STATUS <<\_ACEOF
7942 ## --------------------- ##
7943 ## M4sh Initialization. ##
7944 ## --------------------- ##
7946 # Be more Bourne compatible
7947 DUALCASE
=1; export DUALCASE
# for MKS sh
7948 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
7951 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7952 # is contrary to our usage. Disable this feature.
7953 alias -g '${1+"$@"}'='"$@"'
7954 setopt NO_GLOB_SUBST
7956 case `(set -o) 2>/dev/null` in
7957 *posix
*) set -o posix
;;
7966 # Avoid depending upon Character Ranges.
7967 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
7968 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7969 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
7970 as_cr_digits
='0123456789'
7971 as_cr_alnum
=$as_cr_Letters$as_cr_digits
7973 # The user is always right.
7974 if test "${PATH_SEPARATOR+set}" != set; then
7975 echo "#! /bin/sh" >conf$$.sh
7976 echo "exit 0" >>conf$$.sh
7978 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7986 # Support unset when possible.
7987 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
7995 # We need space, tab and new line, in precisely that order. Quoting is
7996 # there to prevent editors from complaining about space-tab.
7997 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7998 # splitting by setting IFS to empty value.)
8003 # Find who we are. Look in the path if we contain no directory separator.
8005 *[\\/]* ) as_myself
=$0 ;;
8006 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8010 test -z "$as_dir" && as_dir
=.
8011 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
8017 # We did not find ourselves, most probably we were run as `sh COMMAND'
8018 # in which case we are not to be found in the path.
8019 if test "x$as_myself" = x
; then
8022 if test ! -f "$as_myself"; then
8023 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8024 { (exit 1); exit 1; }
8027 # Work around bugs in pre-3.0 UWIN ksh.
8028 for as_var
in ENV MAIL MAILPATH
8029 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
8037 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8038 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8039 LC_TELEPHONE LC_TIME
8041 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8042 eval $as_var=C
; export $as_var
8044 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
8048 # Required to use basename.
8049 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
8050 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
8056 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8057 as_basename
=basename
8063 # Name of the executable.
8064 as_me
=`$as_basename -- "$0" ||
8065 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8066 X"$0" : 'X\(//\)$' \| \
8067 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8069 sed '/^.*\/\([^/][^/]*\)\/*$/{
8090 test "x$as_lineno_1" != "x$as_lineno_2" &&
8091 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
8093 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8094 # uniformly replaced by the line number. The first 'sed' inserts a
8095 # line-number line after each line using $LINENO; the second 'sed'
8096 # does the real work. The second script uses 'N' to pair each
8097 # line-number line with the line containing $LINENO, and appends
8098 # trailing '-' during substitution so that $LINENO is not a special
8100 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8101 # scripts with optimization help from Paolo Bonzini. Blame Lee
8102 # E. McMahon (1931-1989) for sed's syntax. :-)
8114 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
8118 chmod +x
"$as_me.lineno" ||
8119 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
8120 { (exit 1); exit 1; }; }
8122 # Don't try to exec as it changes $[0], causing all sort of problems
8123 # (the dirname of $[0] is not the place where we might find the
8124 # original and so on. Autoconf is especially sensitive to this).
8126 # Exit status is that of the last command.
8131 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
8137 ECHO_C
= ECHO_N
= ECHO_T
=
8140 case `echo 'x\c'` in
8141 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
8148 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
8149 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
8155 rm -f conf$$ conf$$.exe conf$$.
file
8156 if test -d conf$$.dir
; then
8157 rm -f conf$$.dir
/conf$$.
file
8163 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
8165 # ... but there are two gotchas:
8166 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8167 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8168 # In both cases, we have to default to `cp -p'.
8169 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
8171 elif ln conf$$.
file conf$$
2>/dev
/null
; then
8176 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
8177 rmdir conf$$.dir
2>/dev
/null
8179 if mkdir
-p .
2>/dev
/null
; then
8182 test -d .
/-p && rmdir .
/-p
8186 if test -x / >/dev
/null
2>&1; then
8189 if ls -dL / >/dev
/null
2>&1; then
8196 if test -d "$1"; then
8202 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
8203 ???[sx]*):;;*)false;;esac;fi
8207 as_executable_p
=$as_test_x
8209 # Sed expression to map a string onto a valid CPP name.
8210 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8212 # Sed expression to map a string onto a valid variable name.
8213 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8218 # Save the log message, to keep $[0] and so on meaningful, and to
8219 # report actual input values of CONFIG_FILES etc. instead of their
8220 # values after options handling.
8222 This file was extended by GSS $as_me 0.46, which was
8223 generated by GNU Autoconf 2.61. Invocation command line was
8225 CONFIG_FILES = $CONFIG_FILES
8226 CONFIG_HEADERS = $CONFIG_HEADERS
8227 CONFIG_LINKS = $CONFIG_LINKS
8228 CONFIG_COMMANDS = $CONFIG_COMMANDS
8231 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8236 cat >>$CONFIG_STATUS <<_ACEOF
8237 # Files that config.status was made for.
8238 config_files="$ac_config_files"
8239 config_headers="$ac_config_headers"
8243 cat >>$CONFIG_STATUS <<\_ACEOF
8245 \`$as_me' instantiates files from templates according to the
8246 current configuration.
8248 Usage: $0 [OPTIONS] [FILE]...
8250 -h, --help print this help, then exit
8251 -V, --version print version number and configuration settings, then exit
8252 -q, --quiet do not print progress messages
8253 -d, --debug don't remove temporary files
8254 --recheck update $as_me by reconfiguring in the same conditions
8255 --file=FILE[:TEMPLATE]
8256 instantiate the configuration file FILE
8257 --header=FILE[:TEMPLATE]
8258 instantiate the configuration header FILE
8260 Configuration files:
8263 Configuration headers:
8266 Report bugs to <bug-autoconf@gnu.org>."
8269 cat >>$CONFIG_STATUS <<_ACEOF
8271 GSS config.status 0.46
8272 configured by $0, generated by GNU Autoconf 2.61,
8273 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
8275 Copyright (C) 2006 Free Software Foundation, Inc.
8276 This config.status script is free software; the Free Software Foundation
8277 gives unlimited permission to copy, distribute and modify it."
8283 cat >>$CONFIG_STATUS <<\_ACEOF
8284 # If no file are specified by the user, then we need to provide default
8285 # value. By we need to know if files were specified by the user.
8291 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
8292 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
8303 # Handling of the options.
8304 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
8306 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
8307 echo "$ac_cs_version"; exit ;;
8308 --debug |
--debu |
--deb |
--de |
--d |
-d )
8310 --file |
--fil |
--fi |
--f )
8312 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
8313 ac_need_defaults
=false
;;
8314 --header |
--heade |
--head |
--hea )
8316 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
8317 ac_need_defaults
=false
;;
8319 # Conflict between --help and --header
8320 { echo "$as_me: error: ambiguous option: $1
8321 Try \`$0 --help' for more information." >&2
8322 { (exit 1); exit 1; }; };;
8323 --help |
--hel |
-h )
8324 echo "$ac_cs_usage"; exit ;;
8325 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
8326 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
8330 -*) { echo "$as_me: error: unrecognized option: $1
8331 Try \`$0 --help' for more information." >&2
8332 { (exit 1); exit 1; }; } ;;
8334 *) ac_config_targets
="$ac_config_targets $1"
8335 ac_need_defaults
=false
;;
8341 ac_configure_extra_args
=
8343 if $ac_cs_silent; then
8345 ac_configure_extra_args
="$ac_configure_extra_args --silent"
8349 cat >>$CONFIG_STATUS <<_ACEOF
8350 if \$ac_cs_recheck; then
8351 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8354 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8358 cat >>$CONFIG_STATUS <<\_ACEOF
8362 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8363 ## Running $as_me. ##
8369 cat >>$CONFIG_STATUS <<_ACEOF
8372 cat >>$CONFIG_STATUS <<\_ACEOF
8374 # Handling of arguments.
8375 for ac_config_target
in $ac_config_targets
8377 case $ac_config_target in
8378 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
8379 "make.defs") CONFIG_FILES
="$CONFIG_FILES make.defs" ;;
8381 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8382 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8383 { (exit 1); exit 1; }; };;
8388 # If the user did not use the arguments to specify the items to instantiate,
8389 # then the envvar interface is used. Set only those that are not.
8390 # We use the long form for the default assignment because of an extremely
8391 # bizarre bug on SunOS 4.1.3.
8392 if $ac_need_defaults; then
8393 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
8394 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
8397 # Have a temporary directory for convenience. Make it in the build tree
8398 # simply because there is no reason against having it here, and in addition,
8399 # creating and moving files from /tmp can sometimes cause problems.
8400 # Hook for its removal unless debugging.
8401 # Note that there is a small window in which the directory will not be cleaned:
8402 # after its creation but before its name has been assigned to `$tmp'.
8406 trap 'exit_status=$?
8407 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8409 trap '{ (exit 1); exit 1; }' 1 2 13 15
8411 # Create a (secure) tmp directory for tmp files.
8414 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8415 test -n "$tmp" && test -d "$tmp"
8418 tmp
=.
/conf$$
-$RANDOM
8419 (umask 077 && mkdir
"$tmp")
8422 echo "$me: cannot create a temporary directory in ." >&2
8423 { (exit 1); exit 1; }
8427 # Set up the sed scripts for CONFIG_FILES section.
8430 # No need to generate the scripts if there are no CONFIG_FILES.
8431 # This happens for instance when ./config.status config.h
8432 if test -n "$CONFIG_FILES"; then
8439 for ac_last_try
in false false false false false
:; do
8440 cat >conf$
$subs.
sed <<_ACEOF
8441 SHELL!$SHELL$ac_delim
8442 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
8443 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
8444 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
8445 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
8446 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
8447 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
8448 exec_prefix!$exec_prefix$ac_delim
8449 prefix!$prefix$ac_delim
8450 program_transform_name!$program_transform_name$ac_delim
8451 bindir!$bindir$ac_delim
8452 sbindir!$sbindir$ac_delim
8453 libexecdir!$libexecdir$ac_delim
8454 datarootdir!$datarootdir$ac_delim
8455 datadir!$datadir$ac_delim
8456 sysconfdir!$sysconfdir$ac_delim
8457 sharedstatedir!$sharedstatedir$ac_delim
8458 localstatedir!$localstatedir$ac_delim
8459 includedir!$includedir$ac_delim
8460 oldincludedir!$oldincludedir$ac_delim
8461 docdir!$docdir$ac_delim
8462 infodir!$infodir$ac_delim
8463 htmldir!$htmldir$ac_delim
8464 dvidir!$dvidir$ac_delim
8465 pdfdir!$pdfdir$ac_delim
8466 psdir!$psdir$ac_delim
8467 libdir!$libdir$ac_delim
8468 localedir!$localedir$ac_delim
8469 mandir!$mandir$ac_delim
8471 ECHO_C!$ECHO_C$ac_delim
8472 ECHO_N!$ECHO_N$ac_delim
8473 ECHO_T!$ECHO_T$ac_delim
8475 build_alias!$build_alias$ac_delim
8476 host_alias!$host_alias$ac_delim
8477 target_alias!$target_alias$ac_delim
8478 build!$build$ac_delim
8479 build_cpu!$build_cpu$ac_delim
8480 build_vendor!$build_vendor$ac_delim
8481 build_os!$build_os$ac_delim
8483 host_cpu!$host_cpu$ac_delim
8484 host_vendor!$host_vendor$ac_delim
8485 host_os!$host_os$ac_delim
8487 CFLAGS!$CFLAGS$ac_delim
8488 LDFLAGS!$LDFLAGS$ac_delim
8489 CPPFLAGS!$CPPFLAGS$ac_delim
8490 ac_ct_CC!$ac_ct_CC$ac_delim
8491 EXEEXT!$EXEEXT$ac_delim
8492 OBJEXT!$OBJEXT$ac_delim
8494 CXXFLAGS!$CXXFLAGS$ac_delim
8495 ac_ct_CXX!$ac_ct_CXX$ac_delim
8497 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
8498 LEXLIB!$LEXLIB$ac_delim
8500 YFLAGS!$YFLAGS$ac_delim
8501 SET_MAKE!$SET_MAKE$ac_delim
8504 EGREP!$EGREP$ac_delim
8505 LIBOBJS!$LIBOBJS$ac_delim
8506 POW_LIB!$POW_LIB$ac_delim
8507 XMKMF!$XMKMF$ac_delim
8508 X_CFLAGS!$X_CFLAGS$ac_delim
8509 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
8510 X_LIBS!$X_LIBS$ac_delim
8511 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
8512 GSS_DIR!$GSS_DIR$ac_delim
8513 CGNSDIR!$CGNSDIR$ac_delim
8514 X11INCS!$X11INCS$ac_delim
8515 X11LIBS!$X11LIBS$ac_delim
8516 HAVE_X11!$HAVE_X11$ac_delim
8517 INSTLIST!$INSTLIST$ac_delim
8518 BIN_INSTALL_DIR!$BIN_INSTALL_DIR$ac_delim
8519 LIB_INSTALL_DIR!$LIB_INSTALL_DIR$ac_delim
8520 LDFSHARED!$LDFSHARED$ac_delim
8521 LTLIBOBJS!$LTLIBOBJS$ac_delim
8524 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 81; then
8526 elif $ac_last_try; then
8527 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
8528 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
8529 { (exit 1); exit 1; }; }
8531 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
8535 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
8536 if test -n "$ac_eof"; then
8537 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
8538 ac_eof
=`expr $ac_eof + 1`
8541 cat >>$CONFIG_STATUS <<_ACEOF
8542 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
8543 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
8546 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
8547 s/^/s,@/; s/!/@,|#_!!_#|/
8550 s/'"$ac_delim"'$/,g/; t
8552 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
8553 ' >>$CONFIG_STATUS <conf$
$subs.
sed
8554 rm -f conf$
$subs.
sed
8555 cat >>$CONFIG_STATUS <<_ACEOF
8562 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8563 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8564 # trailing colons and then remove the whole line if VPATH becomes empty
8565 # (actually we leave an empty line to preserve line numbers).
8566 if test "x$srcdir" = x.
; then
8567 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
8571 s/^\([^=]*=[ ]*\):*/\1/
8577 cat >>$CONFIG_STATUS <<\_ACEOF
8578 fi # test -n "$CONFIG_FILES"
8581 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS
8584 :[FHLC
]) ac_mode
=$ac_tag; continue;;
8586 case $ac_mode$ac_tag in
8588 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
8589 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
8590 { (exit 1); exit 1; }; };;
8591 :[FH
]-) ac_tag
=-:-;;
8592 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
8609 -) ac_f
="$tmp/stdin";;
8610 *) # Look for the file first in the build tree, then in the source tree
8611 # (if the path is not absolute). The absolute path cannot be DOS-style,
8612 # because $ac_f cannot contain `:'.
8616 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
8618 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
8619 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
8620 { (exit 1); exit 1; }; };;
8622 ac_file_inputs
="$ac_file_inputs $ac_f"
8625 # Let's still pretend it is `configure' which instantiates (i.e., don't
8626 # use $as_me), people would be surprised to read:
8627 # /* config.h. Generated by config.status. */
8628 configure_input
="Generated from "`IFS=:
8629 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
8630 if test x
"$ac_file" != x-
; then
8631 configure_input
="$ac_file. $configure_input"
8632 { echo "$as_me:$LINENO: creating $ac_file" >&5
8633 echo "$as_me: creating $ac_file" >&6;}
8637 *:-:* |
*:-) cat >"$tmp/stdin";;
8642 ac_dir
=`$as_dirname -- "$ac_file" ||
8643 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8644 X"$ac_file" : 'X\(//\)[^/]' \| \
8645 X"$ac_file" : 'X\(//\)$' \| \
8646 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8648 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8667 -*) as_dir
=.
/$as_dir;;
8669 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
8673 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
8674 *) as_qdir
=$as_dir;;
8676 as_dirs
="'$as_qdir' $as_dirs"
8677 as_dir
=`$as_dirname -- "$as_dir" ||
8678 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8679 X"$as_dir" : 'X\(//\)[^/]' \| \
8680 X"$as_dir" : 'X\(//\)$' \| \
8681 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8683 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8700 test -d "$as_dir" && break
8702 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
8703 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
8704 echo "$as_me: error: cannot create directory $as_dir" >&2;}
8705 { (exit 1); exit 1; }; }; }
8709 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
8711 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8712 # A ".." for each directory in $ac_dir_suffix.
8713 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
8714 case $ac_top_builddir_sub in
8715 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
8716 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
8719 ac_abs_top_builddir
=$ac_pwd
8720 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
8721 # for backward compatibility:
8722 ac_top_builddir
=$ac_top_build_prefix
8725 .
) # We are building in place.
8727 ac_top_srcdir
=$ac_top_builddir_sub
8728 ac_abs_top_srcdir
=$ac_pwd ;;
8729 [\\/]* | ?
:[\\/]* ) # Absolute name.
8730 ac_srcdir
=$srcdir$ac_dir_suffix;
8731 ac_top_srcdir
=$srcdir
8732 ac_abs_top_srcdir
=$srcdir ;;
8734 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
8735 ac_top_srcdir
=$ac_top_build_prefix$srcdir
8736 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
8738 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
8749 cat >>$CONFIG_STATUS <<\_ACEOF
8750 # If the template does not know about datarootdir, expand it.
8751 # FIXME: This hack should be removed a few years after 2.60.
8752 ac_datarootdir_hack
=; ac_datarootdir_seen
=
8754 case `sed -n '/datarootdir/ {
8763 ' $ac_file_inputs` in
8764 *datarootdir
*) ac_datarootdir_seen
=yes;;
8765 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
8766 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8767 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8769 cat >>$CONFIG_STATUS <<_ACEOF
8770 ac_datarootdir_hack='
8771 s&@datadir@&$datadir&g
8772 s&@docdir@&$docdir&g
8773 s&@infodir@&$infodir&g
8774 s&@localedir@&$localedir&g
8775 s&@mandir@&$mandir&g
8776 s&\\\${datarootdir}&$datarootdir&g' ;;
8780 # Neutralize VPATH when `$srcdir' = `.'.
8781 # Shell code in configure.ac might set extrasub.
8782 # FIXME: do we really want to maintain this feature?
8783 cat >>$CONFIG_STATUS <<_ACEOF
8787 cat >>$CONFIG_STATUS <<\_ACEOF
8789 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
8790 s
&@configure_input@
&$configure_input&;t t
8791 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
8792 s
&@srcdir@
&$ac_srcdir&;t t
8793 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
8794 s
&@top_srcdir@
&$ac_top_srcdir&;t t
8795 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
8796 s
&@builddir@
&$ac_builddir&;t t
8797 s
&@abs_builddir@
&$ac_abs_builddir&;t t
8798 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
8799 $ac_datarootdir_hack
8800 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" >$tmp/out
8802 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8803 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
8804 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
8805 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
8806 which seems to be undefined. Please make sure it is defined." >&5
8807 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
8808 which seems to be undefined. Please make sure it is defined." >&2;}
8812 -) cat "$tmp/out"; rm -f "$tmp/out";;
8813 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
8822 # Transform confdefs.h into a sed script `conftest.defines', that
8823 # substitutes the proper values into config.h.in to produce config.h.
8824 rm -f conftest.defines conftest.
tail
8825 # First, append a space to every undef/define line, to ease matching.
8826 echo 's/$/ /' >conftest.defines
8827 # Then, protect against being on the right side of a sed subst, or in
8828 # an unquoted here document, in config.status. If some macros were
8829 # called several times there might be several #defines for the same
8830 # symbol, which is useless. But do not sort them, since the last
8831 # AC_DEFINE must be honored.
8832 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
8833 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
8834 # NAME is the cpp macro being defined, VALUE is the value it is being given.
8835 # PARAMS is the parameter list in the macro definition--in most cases, it's
8836 # just an empty string.
8837 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
8838 ac_dB
='\\)[ (].*,\\1define\\2'
8846 s/^[ ]*#[ ]*define[ ][ ]*//
8851 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
8852 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
8853 ' >>conftest.defines
8855 # Remove the space that was appended to ease matching.
8856 # Then replace #undef with comments. This is necessary, for
8857 # example, in the case of _POSIX_SOURCE, which is predefined and required
8858 # on some systems where configure will not decide to define it.
8859 # (The regexp can be short, since the line contains either #define or #undef.)
8861 s,^[ #]*u.*,/* & */,' >>conftest.defines
8863 # Break up conftest.defines:
8866 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
8867 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
8868 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
8870 ac_in
='$ac_file_inputs'
8871 ac_out
='"$tmp/out1"'
8872 ac_nxt
='"$tmp/out2"'
8876 # Write a here document:
8877 cat >>$CONFIG_STATUS <<_ACEOF
8878 # First, check the format of the line:
8879 cat >"\$tmp/defines.sed" <<\\CEOF
8880 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
8881 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
8885 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
8887 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
8888 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
8889 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
8890 grep . conftest.
tail >/dev
/null ||
break
8891 rm -f conftest.defines
8892 mv conftest.
tail conftest.defines
8894 rm -f conftest.defines conftest.
tail
8896 echo "ac_result=$ac_in" >>$CONFIG_STATUS
8897 cat >>$CONFIG_STATUS <<\_ACEOF
8898 if test x
"$ac_file" != x-
; then
8899 echo "/* $configure_input */" >"$tmp/config.h"
8900 cat "$ac_result" >>"$tmp/config.h"
8901 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
8902 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8903 echo "$as_me: $ac_file is unchanged" >&6;}
8906 mv "$tmp/config.h" $ac_file
8909 echo "/* $configure_input */"
8921 { (exit 0); exit 0; }
8923 chmod +x
$CONFIG_STATUS
8924 ac_clean_files
=$ac_clean_files_save
8927 # configure is writing to config.log, and then calls config.status.
8928 # config.status does its own redirection, appending to config.log.
8929 # Unfortunately, on DOS this fails, as config.log is still kept open
8930 # by configure, so config.status won't be able to write to it; its
8931 # output is simply discarded. So we exec the FD to /dev/null,
8932 # effectively closing config.log, so it can be properly (re)opened and
8933 # appended to by config.status. When coming back to configure, we
8934 # need to make the FD available again.
8935 if test "$no_create" != yes; then
8937 ac_config_status_args
=
8938 test "$silent" = yes &&
8939 ac_config_status_args
="$ac_config_status_args --quiet"
8941 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
8943 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8944 # would make configure fail if this is the last instruction.
8945 $ac_cs_success ||
{ (exit 1); exit 1; }