more fix on Ec/Ev.
[gss-tcad.git] / configure
blob89342153fc716efdf8e39e12a35e50dd5d3d6272
1 #! /bin/sh
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
18 emulate sh
19 NULLCMD=:
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+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27 esac
34 # PATH needs CR
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
46 chmod +x conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48 PATH_SEPARATOR=';'
49 else
50 PATH_SEPARATOR=:
52 rm -f conf$$.sh
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57 as_unset=unset
58 else
59 as_unset=false
63 # IFS
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.)
68 as_nl='
70 IFS=" "" $as_nl"
72 # Find who we are. Look in the path if we contain no directory separator.
73 case $0 in
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
78 IFS=$as_save_IFS
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
85 esac
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
89 as_myself=$0
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93 { (exit 1); exit 1; }
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
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
104 # NLS nuisances.
105 for as_var in \
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 \
108 LC_TELEPHONE LC_TIME
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
112 else
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 done
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
120 as_expr=expr
121 else
122 as_expr=false
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 as_basename=basename
127 else
128 as_basename=false
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 ||
137 echo X/"$0" |
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
139 s//\1/
142 /^X\/\(\/\/\)$/{
143 s//\1/
146 /^X\/\(\/\).*/{
147 s//\1/
150 s/.*/./; q'`
152 # CDPATH.
153 $as_unset CDPATH
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
158 as_have_required=yes
159 else
160 as_have_required=no
163 if test $as_have_required = yes && (eval ":
164 (as_func_return () {
165 (exit \$1)
167 as_func_success () {
168 as_func_return 0
170 as_func_failure () {
171 as_func_return 1
173 as_func_ret_success () {
174 return 0
176 as_func_ret_failure () {
177 return 1
180 exitcode=0
181 if as_func_success; then
183 else
184 exitcode=1
185 echo as_func_success failed.
188 if as_func_failure; then
189 exitcode=1
190 echo as_func_failure succeeded.
193 if as_func_ret_success; then
195 else
196 exitcode=1
197 echo as_func_ret_success failed.
200 if as_func_ret_failure; then
201 exitcode=1
202 echo as_func_ret_failure succeeded.
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 else
208 exitcode=1
209 echo positional parameters were not saved.
212 test \$exitcode = 0) || { (exit 1); exit 1; }
215 as_lineno_1=\$LINENO
216 as_lineno_2=\$LINENO
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
221 else
222 as_candidate_shells=
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
226 IFS=$as_save_IFS
227 test -z "$as_dir" && as_dir=.
228 case $as_dir in
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 done;;
233 esac
234 done
235 IFS=$as_save_IFS
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
243 emulate sh
244 NULLCMD=:
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+"$@"}'='"$@"'
248 setopt NO_GLOB_SUBST
249 else
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
252 esac
258 _ASEOF
259 }; then
260 CONFIG_SHELL=$as_shell
261 as_have_required=yes
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 emulate sh
265 NULLCMD=:
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+"$@"}'='"$@"'
269 setopt NO_GLOB_SUBST
270 else
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
273 esac
279 (as_func_return () {
280 (exit $1)
282 as_func_success () {
283 as_func_return 0
285 as_func_failure () {
286 as_func_return 1
288 as_func_ret_success () {
289 return 0
291 as_func_ret_failure () {
292 return 1
295 exitcode=0
296 if as_func_success; then
298 else
299 exitcode=1
300 echo as_func_success failed.
303 if as_func_failure; then
304 exitcode=1
305 echo as_func_failure succeeded.
308 if as_func_ret_success; then
310 else
311 exitcode=1
312 echo as_func_ret_success failed.
315 if as_func_ret_failure; then
316 exitcode=1
317 echo as_func_ret_failure succeeded.
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 else
323 exitcode=1
324 echo positional parameters were not saved.
327 test $exitcode = 0) || { (exit 1); exit 1; }
330 as_lineno_1=$LINENO
331 as_lineno_2=$LINENO
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; }
335 _ASEOF
336 }; then
337 break
342 done
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
347 done
348 export CONFIG_SHELL
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 () {
369 (exit \$1)
371 as_func_success () {
372 as_func_return 0
374 as_func_failure () {
375 as_func_return 1
377 as_func_ret_success () {
378 return 0
380 as_func_ret_failure () {
381 return 1
384 exitcode=0
385 if as_func_success; then
387 else
388 exitcode=1
389 echo as_func_success failed.
392 if as_func_failure; then
393 exitcode=1
394 echo as_func_failure succeeded.
397 if as_func_ret_success; then
399 else
400 exitcode=1
401 echo as_func_ret_success failed.
404 if as_func_ret_failure; then
405 exitcode=1
406 echo as_func_ret_failure succeeded.
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 else
412 exitcode=1
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
420 echo message
425 as_lineno_1=$LINENO
426 as_lineno_2=$LINENO
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
436 # case at line end.
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. :-)
440 sed -n '
442 /[$]LINENO/=
443 ' <$as_myself |
444 sed '
445 s/[$]LINENO.*/&-/
446 t lineno
448 :lineno
450 :loop
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 t loop
453 s/-\n.*//
454 ' >$as_me.lineno &&
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).
462 . "./$as_me.lineno"
463 # Exit status is that of the last command.
464 exit
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_dirname=dirname
470 else
471 as_dirname=false
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477 case `echo 'x\c'` in
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 *) ECHO_C='\c';;
480 esac;;
482 ECHO_N='-n';;
483 esac
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
487 as_expr=expr
488 else
489 as_expr=false
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
495 else
496 rm -f conf$$.dir
497 mkdir conf$$.dir
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s='ln -s'
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 ||
507 as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509 as_ln_s=ln
510 else
511 as_ln_s='cp -p'
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
517 as_mkdir_p=:
518 else
519 test -d ./-p && rmdir ./-p
520 as_mkdir_p=false
523 if test -x / >/dev/null 2>&1; then
524 as_test_x='test -x'
525 else
526 if ls -dL / >/dev/null 2>&1; then
527 as_ls_L_option=L
528 else
529 as_ls_L_option=
531 as_test_x='
532 eval sh -c '\''
533 if test -d "$1"; then
534 test -d "$1/.";
535 else
536 case $1 in
537 -*)set "./$1";;
538 esac;
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
541 '\'' sh
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
556 # Name of the host.
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`
562 # Initializations.
564 ac_default_prefix=/usr/local
565 ac_clean_files=
566 ac_config_libobj_dir=.
567 LIBOBJS=
568 cross_compiling=no
569 subdirs=
570 MFLAGS=
571 MAKEFLAGS=
572 SHELL=${CONFIG_SHELL-/bin/sh}
574 # Identity of this package.
575 PACKAGE_NAME='GSS'
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="\
584 #include <stdio.h>
585 #ifdef HAVE_SYS_TYPES_H
586 # include <sys/types.h>
587 #endif
588 #ifdef HAVE_SYS_STAT_H
589 # include <sys/stat.h>
590 #endif
591 #ifdef STDC_HEADERS
592 # include <stdlib.h>
593 # include <stddef.h>
594 #else
595 # ifdef HAVE_STDLIB_H
596 # include <stdlib.h>
597 # endif
598 #endif
599 #ifdef HAVE_STRING_H
600 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
601 # include <memory.h>
602 # endif
603 # include <string.h>
604 #endif
605 #ifdef HAVE_STRINGS_H
606 # include <strings.h>
607 #endif
608 #ifdef HAVE_INTTYPES_H
609 # include <inttypes.h>
610 #endif
611 #ifdef HAVE_STDINT_H
612 # include <stdint.h>
613 #endif
614 #ifdef HAVE_UNISTD_H
615 # include <unistd.h>
616 #endif"
618 ac_subst_vars='SHELL
619 PATH_SEPARATOR
620 PACKAGE_NAME
621 PACKAGE_TARNAME
622 PACKAGE_VERSION
623 PACKAGE_STRING
624 PACKAGE_BUGREPORT
625 exec_prefix
626 prefix
627 program_transform_name
628 bindir
629 sbindir
630 libexecdir
631 datarootdir
632 datadir
633 sysconfdir
634 sharedstatedir
635 localstatedir
636 includedir
637 oldincludedir
638 docdir
639 infodir
640 htmldir
641 dvidir
642 pdfdir
643 psdir
644 libdir
645 localedir
646 mandir
647 DEFS
648 ECHO_C
649 ECHO_N
650 ECHO_T
651 LIBS
652 build_alias
653 host_alias
654 target_alias
655 build
656 build_cpu
657 build_vendor
658 build_os
659 host
660 host_cpu
661 host_vendor
662 host_os
664 CFLAGS
665 LDFLAGS
666 CPPFLAGS
667 ac_ct_CC
668 EXEEXT
669 OBJEXT
671 CXXFLAGS
672 ac_ct_CXX
674 LEX_OUTPUT_ROOT
675 LEXLIB
676 YACC
677 YFLAGS
678 SET_MAKE
680 GREP
681 EGREP
682 LIBOBJS
683 POW_LIB
684 XMKMF
685 X_CFLAGS
686 X_PRE_LIBS
687 X_LIBS
688 X_EXTRA_LIBS
689 GSS_DIR
690 CGNSDIR
691 X11INCS
692 X11LIBS
693 HAVE_X11
694 INSTLIST
695 BIN_INSTALL_DIR
696 LIB_INSTALL_DIR
697 LDFSHARED
698 LTLIBOBJS'
699 ac_subst_files=''
700 ac_precious_vars='build_alias
701 host_alias
702 target_alias
704 CFLAGS
705 LDFLAGS
706 LIBS
707 CPPFLAGS
709 CXXFLAGS
711 YACC
712 YFLAGS
714 XMKMF'
717 # Initialize some variables set by options.
718 ac_init_help=
719 ac_init_version=false
720 # The variables have the same names as the options, with
721 # dashes changed to underlines.
722 cache_file=/dev/null
723 exec_prefix=NONE
724 no_create=
725 no_recursion=
726 prefix=NONE
727 program_prefix=NONE
728 program_suffix=NONE
729 program_transform_name=s,x,x,
730 silent=
731 site=
732 srcdir=
733 verbose=
734 x_includes=NONE
735 x_libraries=NONE
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'
755 htmldir='${docdir}'
756 dvidir='${docdir}'
757 pdfdir='${docdir}'
758 psdir='${docdir}'
759 libdir='${exec_prefix}/lib'
760 localedir='${datarootdir}/locale'
761 mandir='${datarootdir}/man'
763 ac_prev=
764 ac_dashdash=
765 for ac_option
767 # If the previous option needs an argument, assign it.
768 if test -n "$ac_prev"; then
769 eval $ac_prev=\$ac_option
770 ac_prev=
771 continue
774 case $ac_option in
775 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
776 *) ac_optarg=yes ;;
777 esac
779 # Accept the important Cygnus configure options, so we can diagnose typos.
781 case $ac_dashdash$ac_option in
783 ac_dashdash=yes ;;
785 -bindir | --bindir | --bindi | --bind | --bin | --bi)
786 ac_prev=bindir ;;
787 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
788 bindir=$ac_optarg ;;
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 ;;
802 --config-cache | -C)
803 cache_file=config.cache ;;
805 -datadir | --datadir | --datadi | --datad)
806 ac_prev=datadir ;;
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)
827 ac_prev=docdir ;;
828 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
829 docdir=$ac_optarg ;;
831 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
832 ac_prev=dvidir ;;
833 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
834 dvidir=$ac_optarg ;;
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.
856 with_gas=yes ;;
858 -help | --help | --hel | --he | -h)
859 ac_init_help=long ;;
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)
871 ac_prev=htmldir ;;
872 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
873 | --ht=*)
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)
884 ac_prev=infodir ;;
885 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
886 infodir=$ac_optarg ;;
888 -libdir | --libdir | --libdi | --libd)
889 ac_prev=libdir ;;
890 -libdir=* | --libdir=* | --libdi=* | --libd=*)
891 libdir=$ac_optarg ;;
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)
901 ac_prev=localedir ;;
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)
913 ac_prev=mandir ;;
914 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
915 mandir=$ac_optarg ;;
917 -nfp | --nfp | --nf)
918 # Obsolete; use --without-fp.
919 with_fp=no ;;
921 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
922 | --no-cr | --no-c | -n)
923 no_create=yes ;;
925 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
926 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
927 no_recursion=yes ;;
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)
939 ac_prev=prefix ;;
940 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
941 prefix=$ac_optarg ;;
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)
975 ac_prev=pdfdir ;;
976 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
977 pdfdir=$ac_optarg ;;
979 -psdir | --psdir | --psdi | --psd | --ps)
980 ac_prev=psdir ;;
981 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
982 psdir=$ac_optarg ;;
984 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
985 | -silent | --silent | --silen | --sile | --sil)
986 silent=yes ;;
988 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
989 ac_prev=sbindir ;;
990 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
991 | --sbi=* | --sb=*)
992 sbindir=$ac_optarg ;;
994 -sharedstatedir | --sharedstatedir | --sharedstatedi \
995 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
996 | --sharedst | --shareds | --shared | --share | --shar \
997 | --sha | --sh)
998 ac_prev=sharedstatedir ;;
999 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1000 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1001 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1002 | --sha=* | --sh=*)
1003 sharedstatedir=$ac_optarg ;;
1005 -site | --site | --sit)
1006 ac_prev=site ;;
1007 -site=* | --site=* | --sit=*)
1008 site=$ac_optarg ;;
1010 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1011 ac_prev=srcdir ;;
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)
1028 verbose=yes ;;
1030 -version | --version | --versio | --versi | --vers | -V)
1031 ac_init_version=: ;;
1033 -with-* | --with-*)
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 ;;
1051 --x)
1052 # Obsolete; use --with-x.
1053 with_x=yes ;;
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; }; }
1074 *=*)
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}
1091 esac
1092 done
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
1107 case $ac_val in
1108 [\\/$]* | ?:[\\/]* ) continue;;
1109 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1110 esac
1111 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1112 { (exit 1); exit 1; }; }
1113 done
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.
1118 build=$build_alias
1119 host=$host_alias
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
1129 cross_compiling=yes
1133 ac_tool_prefix=
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 ||
1158 echo X"$0" |
1159 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1160 s//\1/
1163 /^X\(\/\/\)[^/].*/{
1164 s//\1/
1167 /^X\(\/\/\)$/{
1168 s//\1/
1171 /^X\(\/\).*/{
1172 s//\1/
1175 s/.*/./; q'`
1176 srcdir=$ac_confdir
1177 if test ! -r "$srcdir/$ac_unique_file"; then
1178 srcdir=..
1180 else
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"
1189 ac_abs_confdir=`(
1190 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1191 { (exit 1); exit 1; }; }
1192 pwd)`
1193 # When building in place, set srcdir=.
1194 if test "$ac_abs_confdir" = "$ac_pwd"; then
1195 srcdir=.
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.
1200 case $srcdir in
1201 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1202 esac
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}
1208 done
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.
1216 cat <<_ACEOF
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.
1226 Configuration:
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
1241 [PREFIX]
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]
1270 _ACEOF
1272 cat <<\_ACEOF
1274 X features:
1275 --x-includes=DIR X include files are in DIR
1276 --x-libraries=DIR X library files are in DIR
1278 System types:
1279 --build=BUILD configure for building on BUILD [guessed]
1280 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1281 _ACEOF
1284 if test -n "$ac_init_help"; then
1285 case $ac_init_help in
1286 short | recursive ) echo "Configuration of GSS 0.46:";;
1287 esac
1288 cat <<\_ACEOF
1290 Optional Features:
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
1296 Optional Packages:
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.
1320 CPP C preprocessor
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>.
1327 _ACEOF
1328 ac_status=$?
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
1335 ac_builddir=.
1337 case "$ac_dir" in
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/ ;;
1346 esac ;;
1347 esac
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
1353 case $srcdir in
1354 .) # We are building in place.
1355 ac_srcdir=.
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 ;;
1362 *) # Relative name.
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 ;;
1366 esac
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
1372 echo &&
1373 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1374 elif test -f "$ac_srcdir/configure"; then
1375 echo &&
1376 $SHELL "$ac_srcdir/configure" --help=recursive
1377 else
1378 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1379 fi || ac_status=$?
1380 cd "$ac_pwd" || { ac_status=$?; break; }
1381 done
1384 test -n "$ac_init_help" && exit $ac_status
1385 if $ac_init_version; then
1386 cat <<\_ACEOF
1387 GSS configure 0.46
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.
1394 _ACEOF
1395 exit
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
1404 $ $0 $@
1406 _ACEOF
1407 exec 5>>config.log
1409 cat <<_ASUNAME
1410 ## --------- ##
1411 ## Platform. ##
1412 ## --------- ##
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`
1431 _ASUNAME
1433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1434 for as_dir in $PATH
1436 IFS=$as_save_IFS
1437 test -z "$as_dir" && as_dir=.
1438 echo "PATH: $as_dir"
1439 done
1440 IFS=$as_save_IFS
1442 } >&5
1444 cat >&5 <<_ACEOF
1447 ## ----------- ##
1448 ## Core tests. ##
1449 ## ----------- ##
1451 _ACEOF
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.
1459 ac_configure_args=
1460 ac_configure_args0=
1461 ac_configure_args1=
1462 ac_must_keep_next=false
1463 for ac_pass in 1 2
1465 for ac_arg
1467 case $ac_arg in
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)
1471 continue ;;
1472 *\'*)
1473 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1474 esac
1475 case $ac_pass in
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.
1481 else
1482 case $ac_arg in
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 ;;
1489 esac
1491 -* ) ac_must_keep_next=true ;;
1492 esac
1494 ac_configure_args="$ac_configure_args '$ac_arg'"
1496 esac
1497 done
1498 done
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.
1510 echo
1512 cat <<\_ASBOX
1513 ## ---------------- ##
1514 ## Cache variables. ##
1515 ## ---------------- ##
1516 _ASBOX
1517 echo
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
1522 case $ac_val in #(
1523 *${as_nl}*)
1524 case $ac_var in #(
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;} ;;
1527 esac
1528 case $ac_var in #(
1529 _ | IFS | as_nl) ;; #(
1530 *) $as_unset $ac_var ;;
1531 esac ;;
1532 esac
1533 done
1534 (set) 2>&1 |
1535 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1536 *${as_nl}ac_space=\ *)
1537 sed -n \
1538 "s/'\''/'\''\\\\'\'''\''/g;
1539 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1540 ;; #(
1542 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1544 esac |
1545 sort
1547 echo
1549 cat <<\_ASBOX
1550 ## ----------------- ##
1551 ## Output variables. ##
1552 ## ----------------- ##
1553 _ASBOX
1554 echo
1555 for ac_var in $ac_subst_vars
1557 eval ac_val=\$$ac_var
1558 case $ac_val in
1559 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1560 esac
1561 echo "$ac_var='\''$ac_val'\''"
1562 done | sort
1563 echo
1565 if test -n "$ac_subst_files"; then
1566 cat <<\_ASBOX
1567 ## ------------------- ##
1568 ## File substitutions. ##
1569 ## ------------------- ##
1570 _ASBOX
1571 echo
1572 for ac_var in $ac_subst_files
1574 eval ac_val=\$$ac_var
1575 case $ac_val in
1576 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1577 esac
1578 echo "$ac_var='\''$ac_val'\''"
1579 done | sort
1580 echo
1583 if test -s confdefs.h; then
1584 cat <<\_ASBOX
1585 ## ----------- ##
1586 ## confdefs.h. ##
1587 ## ----------- ##
1588 _ASBOX
1589 echo
1590 cat confdefs.h
1591 echo
1593 test "$ac_signal" != 0 &&
1594 echo "$as_me: caught signal $ac_signal"
1595 echo "$as_me: exit $exit_status"
1596 } >&5
1597 rm -f core *.core core.conftest.* &&
1598 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1599 exit $exit_status
1601 for ac_signal in 1 2 13 15; do
1602 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1603 done
1604 ac_signal=0
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"
1613 _ACEOF
1616 cat >>confdefs.h <<_ACEOF
1617 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1618 _ACEOF
1621 cat >>confdefs.h <<_ACEOF
1622 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1623 _ACEOF
1626 cat >>confdefs.h <<_ACEOF
1627 #define PACKAGE_STRING "$PACKAGE_STRING"
1628 _ACEOF
1631 cat >>confdefs.h <<_ACEOF
1632 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1633 _ACEOF
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"
1642 else
1643 set x "$ac_default_prefix/share/config.site" \
1644 "$ac_default_prefix/etc/config.site"
1646 shift
1647 for ac_site_file
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
1653 . "$ac_site_file"
1655 done
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;}
1663 case $cache_file in
1664 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1665 *) . "./$cache_file";;
1666 esac
1668 else
1669 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1670 echo "$as_me: creating cache $cache_file" >&6;}
1671 >$cache_file
1674 # Check that the precious variables saved in the cache have kept the same
1675 # value.
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
1683 set,)
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=: ;;
1687 ,set)
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=: ;;
1691 ,);;
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=:
1701 fi;;
1702 esac
1703 # Pass precious variables to config.status.
1704 if test "$ac_new_set" = set; then
1705 case $ac_new_val in
1706 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1707 *) ac_arg=$ac_var=$ac_new_val ;;
1708 esac
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'" ;;
1712 esac
1714 done
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; }; }
1747 ac_ext=c
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"
1760 GSS_DIR=`(pwd)`
1762 ac_aux_dir=
1763 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1764 if test -f "$ac_dir/install-sh"; then
1765 ac_aux_dir=$ac_dir
1766 ac_install_sh="$ac_aux_dir/install-sh -c"
1767 break
1768 elif test -f "$ac_dir/install.sh"; then
1769 ac_aux_dir=$ac_dir
1770 ac_install_sh="$ac_aux_dir/install.sh -c"
1771 break
1772 elif test -f "$ac_dir/shtool"; then
1773 ac_aux_dir=$ac_dir
1774 ac_install_sh="$ac_aux_dir/shtool install -c"
1775 break
1777 done
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
1803 else
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
1820 *-*-*) ;;
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; }; };;
1824 esac
1825 build=$ac_cv_build
1826 ac_save_IFS=$IFS; IFS='-'
1827 set x $ac_cv_build
1828 shift
1829 build_cpu=$1
1830 build_vendor=$2
1831 shift; shift
1832 # Remember, the first character of IFS is used to create $*,
1833 # except with old shells:
1834 build_os=$*
1835 IFS=$ac_save_IFS
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
1843 else
1844 if test "x$host_alias" = x; then
1845 ac_cv_host=$ac_cv_build
1846 else
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; }
1856 case $ac_cv_host in
1857 *-*-*) ;;
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; }; };;
1861 esac
1862 host=$ac_cv_host
1863 ac_save_IFS=$IFS; IFS='-'
1864 set x $ac_cv_host
1865 shift
1866 host_cpu=$1
1867 host_vendor=$2
1868 shift; shift
1869 # Remember, the first character of IFS is used to create $*,
1870 # except with old shells:
1871 host_os=$*
1872 IFS=$ac_save_IFS
1873 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1877 #--------------------------------------------------------------------------
1878 # Checks for programs.
1879 #--------------------------------------------------------------------------
1880 ac_ext=c
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
1894 else
1895 if test -n "$CC"; then
1896 ac_cv_prog_CC="$CC" # Let the user override the test.
1897 else
1898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1899 for as_dir in $PATH
1901 IFS=$as_save_IFS
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
1907 break 2
1909 done
1910 done
1911 IFS=$as_save_IFS
1915 CC=$ac_cv_prog_CC
1916 if test -n "$CC"; then
1917 { echo "$as_me:$LINENO: result: $CC" >&5
1918 echo "${ECHO_T}$CC" >&6; }
1919 else
1920 { echo "$as_me:$LINENO: result: no" >&5
1921 echo "${ECHO_T}no" >&6; }
1925 test -n "$CC" && break
1926 done
1928 if test -z "$CC"; then
1929 ac_ct_CC=$CC
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
1938 else
1939 if test -n "$ac_ct_CC"; then
1940 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1941 else
1942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1943 for as_dir in $PATH
1945 IFS=$as_save_IFS
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
1951 break 2
1953 done
1954 done
1955 IFS=$as_save_IFS
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; }
1963 else
1964 { echo "$as_me:$LINENO: result: no" >&5
1965 echo "${ECHO_T}no" >&6; }
1969 test -n "$ac_ct_CC" && break
1970 done
1972 if test "x$ac_ct_CC" = x; then
1973 CC=""
1974 else
1975 case $cross_compiling:$ac_tool_warned in
1976 yes:)
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 ;;
1984 esac
1985 CC=$ac_ct_CC
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"
2000 case "(($ac_try" in
2001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2002 *) ac_try_echo=$ac_try;;
2003 esac
2004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2005 (eval "$ac_compiler --version >&5") 2>&5
2006 ac_status=$?
2007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2008 (exit $ac_status); }
2009 { (ac_try="$ac_compiler -v >&5"
2010 case "(($ac_try" in
2011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2012 *) ac_try_echo=$ac_try;;
2013 esac
2014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2015 (eval "$ac_compiler -v >&5") 2>&5
2016 ac_status=$?
2017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2018 (exit $ac_status); }
2019 { (ac_try="$ac_compiler -V >&5"
2020 case "(($ac_try" in
2021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2022 *) ac_try_echo=$ac_try;;
2023 esac
2024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2025 (eval "$ac_compiler -V >&5") 2>&5
2026 ac_status=$?
2027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2028 (exit $ac_status); }
2030 cat >conftest.$ac_ext <<_ACEOF
2031 /* confdefs.h. */
2032 _ACEOF
2033 cat confdefs.h >>conftest.$ac_ext
2034 cat >>conftest.$ac_ext <<_ACEOF
2035 /* end confdefs.h. */
2038 main ()
2042 return 0;
2044 _ACEOF
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
2049 # of exeext.
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.
2062 ac_rmfiles=
2063 for ac_file in $ac_files
2065 case $ac_file in
2066 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2067 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2068 esac
2069 done
2070 rm -f $ac_rmfiles
2072 if { (ac_try="$ac_link_default"
2073 case "(($ac_try" in
2074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2075 *) ac_try_echo=$ac_try;;
2076 esac
2077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2078 (eval "$ac_link_default") 2>&5
2079 ac_status=$?
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
2086 # Autoconf.
2087 for ac_file in $ac_files ''
2089 test -f "$ac_file" || continue
2090 case $ac_file in
2091 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2093 [ab].out )
2094 # We found the default executable, but exeext='' is most
2095 # certainly right.
2096 break;;
2097 *.* )
2098 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2099 then :; else
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
2106 # actually working.
2107 break;;
2109 break;;
2110 esac
2111 done
2112 test "$ac_cv_exeext" = no && ac_cv_exeext=
2114 else
2115 ac_file=''
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;;
2144 esac
2145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2146 (eval "$ac_try") 2>&5
2147 ac_status=$?
2148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2149 (exit $ac_status); }; }; then
2150 cross_compiling=no
2151 else
2152 if test "$cross_compiling" = maybe; then
2153 cross_compiling=yes
2154 else
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"
2180 case "(($ac_try" in
2181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2182 *) ac_try_echo=$ac_try;;
2183 esac
2184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2185 (eval "$ac_link") 2>&5
2186 ac_status=$?
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
2192 # `rm'.
2193 for ac_file in conftest.exe conftest conftest.*; do
2194 test -f "$ac_file" || continue
2195 case $ac_file in
2196 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2197 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2198 break;;
2199 * ) break;;
2200 esac
2201 done
2202 else
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
2216 ac_exeext=$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
2221 else
2222 cat >conftest.$ac_ext <<_ACEOF
2223 /* confdefs.h. */
2224 _ACEOF
2225 cat confdefs.h >>conftest.$ac_ext
2226 cat >>conftest.$ac_ext <<_ACEOF
2227 /* end confdefs.h. */
2230 main ()
2234 return 0;
2236 _ACEOF
2237 rm -f conftest.o conftest.obj
2238 if { (ac_try="$ac_compile"
2239 case "(($ac_try" in
2240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2241 *) ac_try_echo=$ac_try;;
2242 esac
2243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2244 (eval "$ac_compile") 2>&5
2245 ac_status=$?
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;
2250 case $ac_file in
2251 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2252 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2253 break;;
2254 esac
2255 done
2256 else
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
2272 ac_objext=$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
2277 else
2278 cat >conftest.$ac_ext <<_ACEOF
2279 /* confdefs.h. */
2280 _ACEOF
2281 cat confdefs.h >>conftest.$ac_ext
2282 cat >>conftest.$ac_ext <<_ACEOF
2283 /* end confdefs.h. */
2286 main ()
2288 #ifndef __GNUC__
2289 choke me
2290 #endif
2293 return 0;
2295 _ACEOF
2296 rm -f conftest.$ac_objext
2297 if { (ac_try="$ac_compile"
2298 case "(($ac_try" in
2299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2300 *) ac_try_echo=$ac_try;;
2301 esac
2302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2303 (eval "$ac_compile") 2>conftest.er1
2304 ac_status=$?
2305 grep -v '^ *+' conftest.er1 >conftest.err
2306 rm -f conftest.er1
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
2313 ac_compiler_gnu=yes
2314 else
2315 echo "$as_me: failed program was:" >&5
2316 sed 's/^/| /' conftest.$ac_ext >&5
2318 ac_compiler_gnu=no
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
2334 else
2335 ac_save_c_werror_flag=$ac_c_werror_flag
2336 ac_c_werror_flag=yes
2337 ac_cv_prog_cc_g=no
2338 CFLAGS="-g"
2339 cat >conftest.$ac_ext <<_ACEOF
2340 /* confdefs.h. */
2341 _ACEOF
2342 cat confdefs.h >>conftest.$ac_ext
2343 cat >>conftest.$ac_ext <<_ACEOF
2344 /* end confdefs.h. */
2347 main ()
2351 return 0;
2353 _ACEOF
2354 rm -f conftest.$ac_objext
2355 if { (ac_try="$ac_compile"
2356 case "(($ac_try" in
2357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2358 *) ac_try_echo=$ac_try;;
2359 esac
2360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2361 (eval "$ac_compile") 2>conftest.er1
2362 ac_status=$?
2363 grep -v '^ *+' conftest.er1 >conftest.err
2364 rm -f conftest.er1
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
2371 ac_cv_prog_cc_g=yes
2372 else
2373 echo "$as_me: failed program was:" >&5
2374 sed 's/^/| /' conftest.$ac_ext >&5
2376 CFLAGS=""
2377 cat >conftest.$ac_ext <<_ACEOF
2378 /* confdefs.h. */
2379 _ACEOF
2380 cat confdefs.h >>conftest.$ac_ext
2381 cat >>conftest.$ac_ext <<_ACEOF
2382 /* end confdefs.h. */
2385 main ()
2389 return 0;
2391 _ACEOF
2392 rm -f conftest.$ac_objext
2393 if { (ac_try="$ac_compile"
2394 case "(($ac_try" in
2395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2396 *) ac_try_echo=$ac_try;;
2397 esac
2398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2399 (eval "$ac_compile") 2>conftest.er1
2400 ac_status=$?
2401 grep -v '^ *+' conftest.er1 >conftest.err
2402 rm -f conftest.er1
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
2410 else
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
2415 CFLAGS="-g"
2416 cat >conftest.$ac_ext <<_ACEOF
2417 /* confdefs.h. */
2418 _ACEOF
2419 cat confdefs.h >>conftest.$ac_ext
2420 cat >>conftest.$ac_ext <<_ACEOF
2421 /* end confdefs.h. */
2424 main ()
2428 return 0;
2430 _ACEOF
2431 rm -f conftest.$ac_objext
2432 if { (ac_try="$ac_compile"
2433 case "(($ac_try" in
2434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2435 *) ac_try_echo=$ac_try;;
2436 esac
2437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2438 (eval "$ac_compile") 2>conftest.er1
2439 ac_status=$?
2440 grep -v '^ *+' conftest.er1 >conftest.err
2441 rm -f conftest.er1
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
2448 ac_cv_prog_cc_g=yes
2449 else
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
2471 CFLAGS="-g -O2"
2472 else
2473 CFLAGS="-g"
2475 else
2476 if test "$GCC" = yes; then
2477 CFLAGS="-O2"
2478 else
2479 CFLAGS=
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
2486 else
2487 ac_cv_prog_cc_c89=no
2488 ac_save_CC=$CC
2489 cat >conftest.$ac_ext <<_ACEOF
2490 /* confdefs.h. */
2491 _ACEOF
2492 cat confdefs.h >>conftest.$ac_ext
2493 cat >>conftest.$ac_ext <<_ACEOF
2494 /* end confdefs.h. */
2495 #include <stdarg.h>
2496 #include <stdio.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)
2503 char **p;
2504 int i;
2506 return p[i];
2508 static char *f (char * (*g) (char **, int), char **p, ...)
2510 char *s;
2511 va_list v;
2512 va_start (v,p);
2513 s = g (p, va_arg (v,int));
2514 va_end (v);
2515 return s;
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. */
2529 #define FOO(x) 'x'
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);
2536 int argc;
2537 char **argv;
2539 main ()
2541 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2543 return 0;
2545 _ACEOF
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"
2552 case "(($ac_try" in
2553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2554 *) ac_try_echo=$ac_try;;
2555 esac
2556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2557 (eval "$ac_compile") 2>conftest.er1
2558 ac_status=$?
2559 grep -v '^ *+' conftest.er1 >conftest.err
2560 rm -f conftest.er1
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
2568 else
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
2577 done
2578 rm -f conftest.$ac_ext
2579 CC=$ac_save_CC
2582 # AC_CACHE_VAL
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; } ;;
2587 xno)
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; } ;;
2594 esac
2597 ac_ext=c
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
2603 ac_ext=cpp
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
2610 CXX=$CCC
2611 else
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
2621 else
2622 if test -n "$CXX"; then
2623 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2624 else
2625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2626 for as_dir in $PATH
2628 IFS=$as_save_IFS
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
2634 break 2
2636 done
2637 done
2638 IFS=$as_save_IFS
2642 CXX=$ac_cv_prog_CXX
2643 if test -n "$CXX"; then
2644 { echo "$as_me:$LINENO: result: $CXX" >&5
2645 echo "${ECHO_T}$CXX" >&6; }
2646 else
2647 { echo "$as_me:$LINENO: result: no" >&5
2648 echo "${ECHO_T}no" >&6; }
2652 test -n "$CXX" && break
2653 done
2655 if test -z "$CXX"; then
2656 ac_ct_CXX=$CXX
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
2665 else
2666 if test -n "$ac_ct_CXX"; then
2667 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2668 else
2669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2670 for as_dir in $PATH
2672 IFS=$as_save_IFS
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
2678 break 2
2680 done
2681 done
2682 IFS=$as_save_IFS
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; }
2690 else
2691 { echo "$as_me:$LINENO: result: no" >&5
2692 echo "${ECHO_T}no" >&6; }
2696 test -n "$ac_ct_CXX" && break
2697 done
2699 if test "x$ac_ct_CXX" = x; then
2700 CXX="g++"
2701 else
2702 case $cross_compiling:$ac_tool_warned in
2703 yes:)
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 ;;
2711 esac
2712 CXX=$ac_ct_CXX
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"
2722 case "(($ac_try" in
2723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2724 *) ac_try_echo=$ac_try;;
2725 esac
2726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2727 (eval "$ac_compiler --version >&5") 2>&5
2728 ac_status=$?
2729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730 (exit $ac_status); }
2731 { (ac_try="$ac_compiler -v >&5"
2732 case "(($ac_try" in
2733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2734 *) ac_try_echo=$ac_try;;
2735 esac
2736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2737 (eval "$ac_compiler -v >&5") 2>&5
2738 ac_status=$?
2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740 (exit $ac_status); }
2741 { (ac_try="$ac_compiler -V >&5"
2742 case "(($ac_try" in
2743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2744 *) ac_try_echo=$ac_try;;
2745 esac
2746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2747 (eval "$ac_compiler -V >&5") 2>&5
2748 ac_status=$?
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
2756 else
2757 cat >conftest.$ac_ext <<_ACEOF
2758 /* confdefs.h. */
2759 _ACEOF
2760 cat confdefs.h >>conftest.$ac_ext
2761 cat >>conftest.$ac_ext <<_ACEOF
2762 /* end confdefs.h. */
2765 main ()
2767 #ifndef __GNUC__
2768 choke me
2769 #endif
2772 return 0;
2774 _ACEOF
2775 rm -f conftest.$ac_objext
2776 if { (ac_try="$ac_compile"
2777 case "(($ac_try" in
2778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2779 *) ac_try_echo=$ac_try;;
2780 esac
2781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2782 (eval "$ac_compile") 2>conftest.er1
2783 ac_status=$?
2784 grep -v '^ *+' conftest.er1 >conftest.err
2785 rm -f conftest.er1
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
2792 ac_compiler_gnu=yes
2793 else
2794 echo "$as_me: failed program was:" >&5
2795 sed 's/^/| /' conftest.$ac_ext >&5
2797 ac_compiler_gnu=no
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
2813 else
2814 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2815 ac_cxx_werror_flag=yes
2816 ac_cv_prog_cxx_g=no
2817 CXXFLAGS="-g"
2818 cat >conftest.$ac_ext <<_ACEOF
2819 /* confdefs.h. */
2820 _ACEOF
2821 cat confdefs.h >>conftest.$ac_ext
2822 cat >>conftest.$ac_ext <<_ACEOF
2823 /* end confdefs.h. */
2826 main ()
2830 return 0;
2832 _ACEOF
2833 rm -f conftest.$ac_objext
2834 if { (ac_try="$ac_compile"
2835 case "(($ac_try" in
2836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2837 *) ac_try_echo=$ac_try;;
2838 esac
2839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2840 (eval "$ac_compile") 2>conftest.er1
2841 ac_status=$?
2842 grep -v '^ *+' conftest.er1 >conftest.err
2843 rm -f conftest.er1
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
2851 else
2852 echo "$as_me: failed program was:" >&5
2853 sed 's/^/| /' conftest.$ac_ext >&5
2855 CXXFLAGS=""
2856 cat >conftest.$ac_ext <<_ACEOF
2857 /* confdefs.h. */
2858 _ACEOF
2859 cat confdefs.h >>conftest.$ac_ext
2860 cat >>conftest.$ac_ext <<_ACEOF
2861 /* end confdefs.h. */
2864 main ()
2868 return 0;
2870 _ACEOF
2871 rm -f conftest.$ac_objext
2872 if { (ac_try="$ac_compile"
2873 case "(($ac_try" in
2874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2875 *) ac_try_echo=$ac_try;;
2876 esac
2877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2878 (eval "$ac_compile") 2>conftest.er1
2879 ac_status=$?
2880 grep -v '^ *+' conftest.er1 >conftest.err
2881 rm -f conftest.er1
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
2889 else
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
2894 CXXFLAGS="-g"
2895 cat >conftest.$ac_ext <<_ACEOF
2896 /* confdefs.h. */
2897 _ACEOF
2898 cat confdefs.h >>conftest.$ac_ext
2899 cat >>conftest.$ac_ext <<_ACEOF
2900 /* end confdefs.h. */
2903 main ()
2907 return 0;
2909 _ACEOF
2910 rm -f conftest.$ac_objext
2911 if { (ac_try="$ac_compile"
2912 case "(($ac_try" in
2913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2914 *) ac_try_echo=$ac_try;;
2915 esac
2916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2917 (eval "$ac_compile") 2>conftest.er1
2918 ac_status=$?
2919 grep -v '^ *+' conftest.er1 >conftest.err
2920 rm -f conftest.er1
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
2928 else
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
2950 CXXFLAGS="-g -O2"
2951 else
2952 CXXFLAGS="-g"
2954 else
2955 if test "$GXX" = yes; then
2956 CXXFLAGS="-O2"
2957 else
2958 CXXFLAGS=
2961 ac_ext=c
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
2976 else
2977 if test -n "$LEX"; then
2978 ac_cv_prog_LEX="$LEX" # Let the user override the test.
2979 else
2980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2981 for as_dir in $PATH
2983 IFS=$as_save_IFS
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
2989 break 2
2991 done
2992 done
2993 IFS=$as_save_IFS
2997 LEX=$ac_cv_prog_LEX
2998 if test -n "$LEX"; then
2999 { echo "$as_me:$LINENO: result: $LEX" >&5
3000 echo "${ECHO_T}$LEX" >&6; }
3001 else
3002 { echo "$as_me:$LINENO: result: no" >&5
3003 echo "${ECHO_T}no" >&6; }
3007 test -n "$LEX" && break
3008 done
3009 test -n "$LEX" || LEX=":"
3011 if test "x$LEX" != "x:"; then
3012 cat >conftest.l <<_ACEOF
3014 a { ECHO; }
3015 b { REJECT; }
3016 c { yymore (); }
3017 d { yyless (1); }
3018 e { yyless (input () != 0); }
3019 f { unput (yytext[0]); }
3020 . { BEGIN INITIAL; }
3022 #ifdef YYTEXT_POINTER
3023 extern char *yytext;
3024 #endif
3026 main (void)
3028 return ! yylex () + ! yywrap ();
3030 _ACEOF
3031 { (ac_try="$LEX conftest.l"
3032 case "(($ac_try" in
3033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3034 *) ac_try_echo=$ac_try;;
3035 esac
3036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3037 (eval "$LEX conftest.l") 2>&5
3038 ac_status=$?
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
3045 else
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
3051 else
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
3066 else
3068 ac_save_LIBS=$LIBS
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`
3074 _ACEOF
3075 rm -f conftest.$ac_objext conftest$ac_exeext
3076 if { (ac_try="$ac_link"
3077 case "(($ac_try" in
3078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3079 *) ac_try_echo=$ac_try;;
3080 esac
3081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3082 (eval "$ac_link") 2>conftest.er1
3083 ac_status=$?
3084 grep -v '^ *+' conftest.er1 >conftest.err
3085 rm -f conftest.er1
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
3094 else
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
3104 done
3105 LIBS=$ac_save_LIBS
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
3118 else
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
3123 ac_save_LIBS=$LIBS
3124 LIBS="$LEXLIB $ac_save_LIBS"
3125 cat >conftest.$ac_ext <<_ACEOF
3126 #define YYTEXT_POINTER 1
3127 `cat $LEX_OUTPUT_ROOT.c`
3128 _ACEOF
3129 rm -f conftest.$ac_objext conftest$ac_exeext
3130 if { (ac_try="$ac_link"
3131 case "(($ac_try" in
3132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133 *) ac_try_echo=$ac_try;;
3134 esac
3135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3136 (eval "$ac_link") 2>conftest.er1
3137 ac_status=$?
3138 grep -v '^ *+' conftest.er1 >conftest.err
3139 rm -f conftest.er1
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
3148 else
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
3157 LIBS=$ac_save_LIBS
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
3166 _ACEOF
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
3185 else
3186 if test -n "$YACC"; then
3187 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3188 else
3189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3190 for as_dir in $PATH
3192 IFS=$as_save_IFS
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
3198 break 2
3200 done
3201 done
3202 IFS=$as_save_IFS
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; }
3210 else
3211 { echo "$as_me:$LINENO: result: no" >&5
3212 echo "${ECHO_T}no" >&6; }
3216 test -n "$YACC" && break
3217 done
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
3230 else
3231 cat >conftest.make <<\_ACEOF
3232 SHELL = /bin/sh
3233 all:
3234 @echo '@@@%%%=$(MAKE)=@@@%%%'
3235 _ACEOF
3236 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3237 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3238 *@@@%%%=?*=@@@%%%*)
3239 eval ac_cv_prog_make_${ac_make}_set=yes;;
3241 eval ac_cv_prog_make_${ac_make}_set=no;;
3242 esac
3243 rm -f conftest.make
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; }
3248 SET_MAKE=
3249 else
3250 { echo "$as_me:$LINENO: result: no" >&5
3251 echo "${ECHO_T}no" >&6; }
3252 SET_MAKE="MAKE=${MAKE-make}"
3257 CFLAGS=" -O1 "
3258 CXXFLAGS=" -O1 "
3259 #LDFLAGS=
3260 #CPPFLAGS=""
3261 #LIBS=""
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;
3272 else
3273 enableval=no
3276 if test "$enableval" = "no"; then
3277 debug=no
3278 else
3279 if test "$enableval" = "" || test "$enableval" = "yes"; then
3280 opt=-g
3281 else
3282 opt=$enableval
3284 CFLAGS="$opt"
3285 CXXFLAGS="$opt"
3286 debug=yes
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 #---------------------------------------------------------------------------
3301 for d in \
3302 "/usr" \
3303 "/usr/local" \
3304 "$HOME" \
3305 "$HOME/local" ; do
3306 if test -f "$d/include/cgnslib.h" && test -f "$d/lib/libcgns.a"; then
3307 CGNSDIR=`(cd $d; pwd)`
3308 break
3310 done
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 #---------------------------------------------------------------------------
3333 ac_ext=c
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
3342 CPP=
3344 if test -z "$CPP"; then
3345 if test "${ac_cv_prog_CPP+set}" = set; then
3346 echo $ECHO_N "(cached) $ECHO_C" >&6
3347 else
3348 # Double quotes because CPP needs to be expanded
3349 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3351 ac_preproc_ok=false
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
3361 /* confdefs.h. */
3362 _ACEOF
3363 cat confdefs.h >>conftest.$ac_ext
3364 cat >>conftest.$ac_ext <<_ACEOF
3365 /* end confdefs.h. */
3366 #ifdef __STDC__
3367 # include <limits.h>
3368 #else
3369 # include <assert.h>
3370 #endif
3371 Syntax error
3372 _ACEOF
3373 if { (ac_try="$ac_cpp conftest.$ac_ext"
3374 case "(($ac_try" in
3375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3376 *) ac_try_echo=$ac_try;;
3377 esac
3378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3379 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3380 ac_status=$?
3381 grep -v '^ *+' conftest.er1 >conftest.err
3382 rm -f conftest.er1
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
3388 }; then
3390 else
3391 echo "$as_me: failed program was:" >&5
3392 sed 's/^/| /' conftest.$ac_ext >&5
3394 # Broken: fails on valid input.
3395 continue
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
3403 /* confdefs.h. */
3404 _ACEOF
3405 cat confdefs.h >>conftest.$ac_ext
3406 cat >>conftest.$ac_ext <<_ACEOF
3407 /* end confdefs.h. */
3408 #include <ac_nonexistent.h>
3409 _ACEOF
3410 if { (ac_try="$ac_cpp conftest.$ac_ext"
3411 case "(($ac_try" in
3412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3413 *) ac_try_echo=$ac_try;;
3414 esac
3415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3416 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3417 ac_status=$?
3418 grep -v '^ *+' conftest.er1 >conftest.err
3419 rm -f conftest.er1
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
3425 }; then
3426 # Broken: success on invalid input.
3427 continue
3428 else
3429 echo "$as_me: failed program was:" >&5
3430 sed 's/^/| /' conftest.$ac_ext >&5
3432 # Passes both tests.
3433 ac_preproc_ok=:
3434 break
3437 rm -f conftest.err conftest.$ac_ext
3439 done
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
3443 break
3446 done
3447 ac_cv_prog_CPP=$CPP
3450 CPP=$ac_cv_prog_CPP
3451 else
3452 ac_cv_prog_CPP=$CPP
3454 { echo "$as_me:$LINENO: result: $CPP" >&5
3455 echo "${ECHO_T}$CPP" >&6; }
3456 ac_preproc_ok=false
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
3466 /* confdefs.h. */
3467 _ACEOF
3468 cat confdefs.h >>conftest.$ac_ext
3469 cat >>conftest.$ac_ext <<_ACEOF
3470 /* end confdefs.h. */
3471 #ifdef __STDC__
3472 # include <limits.h>
3473 #else
3474 # include <assert.h>
3475 #endif
3476 Syntax error
3477 _ACEOF
3478 if { (ac_try="$ac_cpp conftest.$ac_ext"
3479 case "(($ac_try" in
3480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3481 *) ac_try_echo=$ac_try;;
3482 esac
3483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3484 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3485 ac_status=$?
3486 grep -v '^ *+' conftest.er1 >conftest.err
3487 rm -f conftest.er1
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
3493 }; then
3495 else
3496 echo "$as_me: failed program was:" >&5
3497 sed 's/^/| /' conftest.$ac_ext >&5
3499 # Broken: fails on valid input.
3500 continue
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
3508 /* confdefs.h. */
3509 _ACEOF
3510 cat confdefs.h >>conftest.$ac_ext
3511 cat >>conftest.$ac_ext <<_ACEOF
3512 /* end confdefs.h. */
3513 #include <ac_nonexistent.h>
3514 _ACEOF
3515 if { (ac_try="$ac_cpp conftest.$ac_ext"
3516 case "(($ac_try" in
3517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3518 *) ac_try_echo=$ac_try;;
3519 esac
3520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3521 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3522 ac_status=$?
3523 grep -v '^ *+' conftest.er1 >conftest.err
3524 rm -f conftest.er1
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
3530 }; then
3531 # Broken: success on invalid input.
3532 continue
3533 else
3534 echo "$as_me: failed program was:" >&5
3535 sed 's/^/| /' conftest.$ac_ext >&5
3537 # Passes both tests.
3538 ac_preproc_ok=:
3539 break
3542 rm -f conftest.err conftest.$ac_ext
3544 done
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
3549 else
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; }; }
3557 ac_ext=c
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
3568 else
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
3574 else
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/xpg4/bin
3580 IFS=$as_save_IFS
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
3589 *GNU*)
3590 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3592 ac_count=0
3593 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3594 while :
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
3610 done
3611 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3612 esac
3615 $ac_path_GREP_found && break 3
3616 done
3617 done
3619 done
3620 IFS=$as_save_IFS
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; }; }
3632 else
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
3647 else
3648 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3649 then ac_cv_path_EGREP="$GREP -E"
3650 else
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
3656 else
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/xpg4/bin
3662 IFS=$as_save_IFS
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
3671 *GNU*)
3672 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3674 ac_count=0
3675 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3676 while :
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
3692 done
3693 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3694 esac
3697 $ac_path_EGREP_found && break 3
3698 done
3699 done
3701 done
3702 IFS=$as_save_IFS
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; }; }
3714 else
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
3730 else
3731 cat >conftest.$ac_ext <<_ACEOF
3732 /* confdefs.h. */
3733 _ACEOF
3734 cat confdefs.h >>conftest.$ac_ext
3735 cat >>conftest.$ac_ext <<_ACEOF
3736 /* end confdefs.h. */
3737 #include <stdlib.h>
3738 #include <stdarg.h>
3739 #include <string.h>
3740 #include <float.h>
3743 main ()
3747 return 0;
3749 _ACEOF
3750 rm -f conftest.$ac_objext
3751 if { (ac_try="$ac_compile"
3752 case "(($ac_try" in
3753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3754 *) ac_try_echo=$ac_try;;
3755 esac
3756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3757 (eval "$ac_compile") 2>conftest.er1
3758 ac_status=$?
3759 grep -v '^ *+' conftest.er1 >conftest.err
3760 rm -f conftest.er1
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
3768 else
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
3780 /* confdefs.h. */
3781 _ACEOF
3782 cat confdefs.h >>conftest.$ac_ext
3783 cat >>conftest.$ac_ext <<_ACEOF
3784 /* end confdefs.h. */
3785 #include <string.h>
3787 _ACEOF
3788 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3789 $EGREP "memchr" >/dev/null 2>&1; then
3791 else
3792 ac_cv_header_stdc=no
3794 rm -f conftest*
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
3801 /* confdefs.h. */
3802 _ACEOF
3803 cat confdefs.h >>conftest.$ac_ext
3804 cat >>conftest.$ac_ext <<_ACEOF
3805 /* end confdefs.h. */
3806 #include <stdlib.h>
3808 _ACEOF
3809 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3810 $EGREP "free" >/dev/null 2>&1; then
3812 else
3813 ac_cv_header_stdc=no
3815 rm -f conftest*
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
3823 else
3824 cat >conftest.$ac_ext <<_ACEOF
3825 /* confdefs.h. */
3826 _ACEOF
3827 cat confdefs.h >>conftest.$ac_ext
3828 cat >>conftest.$ac_ext <<_ACEOF
3829 /* end confdefs.h. */
3830 #include <ctype.h>
3831 #include <stdlib.h>
3832 #if ((' ' & 0x0FF) == 0x020)
3833 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3834 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3835 #else
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))
3841 #endif
3843 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3845 main ()
3847 int i;
3848 for (i = 0; i < 256; i++)
3849 if (XOR (islower (i), ISLOWER (i))
3850 || toupper (i) != TOUPPER (i))
3851 return 2;
3852 return 0;
3854 _ACEOF
3855 rm -f conftest$ac_exeext
3856 if { (ac_try="$ac_link"
3857 case "(($ac_try" in
3858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3859 *) ac_try_echo=$ac_try;;
3860 esac
3861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3862 (eval "$ac_link") 2>&5
3863 ac_status=$?
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;;
3869 esac
3870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3871 (eval "$ac_try") 2>&5
3872 ac_status=$?
3873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874 (exit $ac_status); }; }; then
3876 else
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
3881 ( exit $ac_status )
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
3896 _ACEOF
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
3918 else
3919 cat >conftest.$ac_ext <<_ACEOF
3920 /* confdefs.h. */
3921 _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>
3928 _ACEOF
3929 rm -f conftest.$ac_objext
3930 if { (ac_try="$ac_compile"
3931 case "(($ac_try" in
3932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3933 *) ac_try_echo=$ac_try;;
3934 esac
3935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3936 (eval "$ac_compile") 2>conftest.er1
3937 ac_status=$?
3938 grep -v '^ *+' conftest.er1 >conftest.err
3939 rm -f conftest.er1
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"
3947 else
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
3962 _ACEOF
3966 done
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; }
3982 else
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
3987 /* confdefs.h. */
3988 _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>
3994 _ACEOF
3995 rm -f conftest.$ac_objext
3996 if { (ac_try="$ac_compile"
3997 case "(($ac_try" in
3998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3999 *) ac_try_echo=$ac_try;;
4000 esac
4001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4002 (eval "$ac_compile") 2>conftest.er1
4003 ac_status=$?
4004 grep -v '^ *+' conftest.er1 >conftest.err
4005 rm -f conftest.er1
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
4013 else
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
4028 /* confdefs.h. */
4029 _ACEOF
4030 cat confdefs.h >>conftest.$ac_ext
4031 cat >>conftest.$ac_ext <<_ACEOF
4032 /* end confdefs.h. */
4033 #include <$ac_header>
4034 _ACEOF
4035 if { (ac_try="$ac_cpp conftest.$ac_ext"
4036 case "(($ac_try" in
4037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4038 *) ac_try_echo=$ac_try;;
4039 esac
4040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4041 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4042 ac_status=$?
4043 grep -v '^ *+' conftest.er1 >conftest.err
4044 rm -f conftest.er1
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
4050 }; then
4051 ac_header_preproc=yes
4052 else
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
4065 yes:no: )
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
4072 no: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;}
4085 ( cat <<\_ASBOX
4086 ## ----------------------------- ##
4087 ## Report this to gdiso@ustc.edu ##
4088 ## ----------------------------- ##
4089 _ASBOX
4090 ) | sed "s/^/$as_me: WARNING: /" >&2
4092 esac
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
4097 else
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
4108 _ACEOF
4110 cat >>confdefs.h <<\_ACEOF
4111 #define HAVE_TIFF
4112 _ACEOF
4116 done
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
4122 else
4123 ac_check_lib_save_LIBS=$LIBS
4124 LIBS="-ltiff $LIBS"
4125 cat >conftest.$ac_ext <<_ACEOF
4126 /* confdefs.h. */
4127 _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. */
4135 #ifdef __cplusplus
4136 extern "C"
4137 #endif
4138 char TIFFOpen ();
4140 main ()
4142 return TIFFOpen ();
4144 return 0;
4146 _ACEOF
4147 rm -f conftest.$ac_objext conftest$ac_exeext
4148 if { (ac_try="$ac_link"
4149 case "(($ac_try" in
4150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4151 *) ac_try_echo=$ac_try;;
4152 esac
4153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4154 (eval "$ac_link") 2>conftest.er1
4155 ac_status=$?
4156 grep -v '^ *+' conftest.er1 >conftest.err
4157 rm -f conftest.er1
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
4166 else
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
4180 LIBS="$LIBS -ltiff"
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;
4191 else
4192 enableval=no
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; }
4209 else
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
4214 /* confdefs.h. */
4215 _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>
4221 _ACEOF
4222 rm -f conftest.$ac_objext
4223 if { (ac_try="$ac_compile"
4224 case "(($ac_try" in
4225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4226 *) ac_try_echo=$ac_try;;
4227 esac
4228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4229 (eval "$ac_compile") 2>conftest.er1
4230 ac_status=$?
4231 grep -v '^ *+' conftest.er1 >conftest.err
4232 rm -f conftest.er1
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
4240 else
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
4255 /* confdefs.h. */
4256 _ACEOF
4257 cat confdefs.h >>conftest.$ac_ext
4258 cat >>conftest.$ac_ext <<_ACEOF
4259 /* end confdefs.h. */
4260 #include <$ac_header>
4261 _ACEOF
4262 if { (ac_try="$ac_cpp conftest.$ac_ext"
4263 case "(($ac_try" in
4264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4265 *) ac_try_echo=$ac_try;;
4266 esac
4267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4268 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4269 ac_status=$?
4270 grep -v '^ *+' conftest.er1 >conftest.err
4271 rm -f conftest.er1
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
4277 }; then
4278 ac_header_preproc=yes
4279 else
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
4292 yes:no: )
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
4299 no: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;}
4312 ( cat <<\_ASBOX
4313 ## ----------------------------- ##
4314 ## Report this to gdiso@ustc.edu ##
4315 ## ----------------------------- ##
4316 _ASBOX
4317 ) | sed "s/^/$as_me: WARNING: /" >&2
4319 esac
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
4324 else
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
4335 _ACEOF
4337 cat >>confdefs.h <<\_ACEOF
4338 #define HAVE_GSL
4339 _ACEOF
4343 done
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
4349 else
4350 ac_check_lib_save_LIBS=$LIBS
4351 LIBS="-lgsl -lgslcblas $LIBS"
4352 cat >conftest.$ac_ext <<_ACEOF
4353 /* confdefs.h. */
4354 _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. */
4362 #ifdef __cplusplus
4363 extern "C"
4364 #endif
4365 char gsl_sf_fermi_dirac_half ();
4367 main ()
4369 return gsl_sf_fermi_dirac_half ();
4371 return 0;
4373 _ACEOF
4374 rm -f conftest.$ac_objext conftest$ac_exeext
4375 if { (ac_try="$ac_link"
4376 case "(($ac_try" in
4377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4378 *) ac_try_echo=$ac_try;;
4379 esac
4380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4381 (eval "$ac_link") 2>conftest.er1
4382 ac_status=$?
4383 grep -v '^ *+' conftest.er1 >conftest.err
4384 rm -f conftest.er1
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
4393 else
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
4432 else
4433 ac_check_lib_save_LIBS=$LIBS
4434 LIBS="-ldl $LIBS"
4435 cat >conftest.$ac_ext <<_ACEOF
4436 /* confdefs.h. */
4437 _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. */
4445 #ifdef __cplusplus
4446 extern "C"
4447 #endif
4448 char dlopen ();
4450 main ()
4452 return dlopen ();
4454 return 0;
4456 _ACEOF
4457 rm -f conftest.$ac_objext conftest$ac_exeext
4458 if { (ac_try="$ac_link"
4459 case "(($ac_try" in
4460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4461 *) ac_try_echo=$ac_try;;
4462 esac
4463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4464 (eval "$ac_link") 2>conftest.er1
4465 ac_status=$?
4466 grep -v '^ *+' conftest.er1 >conftest.err
4467 rm -f conftest.er1
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
4476 else
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
4492 _ACEOF
4494 LIBS="-ldl $LIBS"
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
4502 else
4503 ac_check_lib_save_LIBS=$LIBS
4504 LIBS="-lm $LIBS"
4505 cat >conftest.$ac_ext <<_ACEOF
4506 /* confdefs.h. */
4507 _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. */
4515 #ifdef __cplusplus
4516 extern "C"
4517 #endif
4518 char sin ();
4520 main ()
4522 return sin ();
4524 return 0;
4526 _ACEOF
4527 rm -f conftest.$ac_objext conftest$ac_exeext
4528 if { (ac_try="$ac_link"
4529 case "(($ac_try" in
4530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4531 *) ac_try_echo=$ac_try;;
4532 esac
4533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4534 (eval "$ac_link") 2>conftest.er1
4535 ac_status=$?
4536 grep -v '^ *+' conftest.er1 >conftest.err
4537 rm -f conftest.er1
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
4545 ac_cv_lib_m_sin=yes
4546 else
4547 echo "$as_me: failed program was:" >&5
4548 sed 's/^/| /' conftest.$ac_ext >&5
4550 ac_cv_lib_m_sin=no
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
4560 LIBS="$LIBS -lm"
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
4569 else
4570 cat >conftest.$ac_ext <<_ACEOF
4571 /* confdefs.h. */
4572 _ACEOF
4573 cat confdefs.h >>conftest.$ac_ext
4574 cat >>conftest.$ac_ext <<_ACEOF
4575 /* end confdefs.h. */
4576 #include <stdlib.h>
4577 #include <stdarg.h>
4578 #include <string.h>
4579 #include <float.h>
4582 main ()
4586 return 0;
4588 _ACEOF
4589 rm -f conftest.$ac_objext
4590 if { (ac_try="$ac_compile"
4591 case "(($ac_try" in
4592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4593 *) ac_try_echo=$ac_try;;
4594 esac
4595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4596 (eval "$ac_compile") 2>conftest.er1
4597 ac_status=$?
4598 grep -v '^ *+' conftest.er1 >conftest.err
4599 rm -f conftest.er1
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
4607 else
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
4619 /* confdefs.h. */
4620 _ACEOF
4621 cat confdefs.h >>conftest.$ac_ext
4622 cat >>conftest.$ac_ext <<_ACEOF
4623 /* end confdefs.h. */
4624 #include <string.h>
4626 _ACEOF
4627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4628 $EGREP "memchr" >/dev/null 2>&1; then
4630 else
4631 ac_cv_header_stdc=no
4633 rm -f conftest*
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
4640 /* confdefs.h. */
4641 _ACEOF
4642 cat confdefs.h >>conftest.$ac_ext
4643 cat >>conftest.$ac_ext <<_ACEOF
4644 /* end confdefs.h. */
4645 #include <stdlib.h>
4647 _ACEOF
4648 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4649 $EGREP "free" >/dev/null 2>&1; then
4651 else
4652 ac_cv_header_stdc=no
4654 rm -f conftest*
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
4662 else
4663 cat >conftest.$ac_ext <<_ACEOF
4664 /* confdefs.h. */
4665 _ACEOF
4666 cat confdefs.h >>conftest.$ac_ext
4667 cat >>conftest.$ac_ext <<_ACEOF
4668 /* end confdefs.h. */
4669 #include <ctype.h>
4670 #include <stdlib.h>
4671 #if ((' ' & 0x0FF) == 0x020)
4672 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4673 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4674 #else
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))
4680 #endif
4682 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4684 main ()
4686 int i;
4687 for (i = 0; i < 256; i++)
4688 if (XOR (islower (i), ISLOWER (i))
4689 || toupper (i) != TOUPPER (i))
4690 return 2;
4691 return 0;
4693 _ACEOF
4694 rm -f conftest$ac_exeext
4695 if { (ac_try="$ac_link"
4696 case "(($ac_try" in
4697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4698 *) ac_try_echo=$ac_try;;
4699 esac
4700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4701 (eval "$ac_link") 2>&5
4702 ac_status=$?
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;;
4708 esac
4709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4710 (eval "$ac_try") 2>&5
4711 ac_status=$?
4712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); }; }; then
4715 else
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
4720 ( exit $ac_status )
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
4735 _ACEOF
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; }
4760 else
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
4765 /* confdefs.h. */
4766 _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>
4772 _ACEOF
4773 rm -f conftest.$ac_objext
4774 if { (ac_try="$ac_compile"
4775 case "(($ac_try" in
4776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4777 *) ac_try_echo=$ac_try;;
4778 esac
4779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4780 (eval "$ac_compile") 2>conftest.er1
4781 ac_status=$?
4782 grep -v '^ *+' conftest.er1 >conftest.err
4783 rm -f conftest.er1
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
4791 else
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
4806 /* confdefs.h. */
4807 _ACEOF
4808 cat confdefs.h >>conftest.$ac_ext
4809 cat >>conftest.$ac_ext <<_ACEOF
4810 /* end confdefs.h. */
4811 #include <$ac_header>
4812 _ACEOF
4813 if { (ac_try="$ac_cpp conftest.$ac_ext"
4814 case "(($ac_try" in
4815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4816 *) ac_try_echo=$ac_try;;
4817 esac
4818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4819 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4820 ac_status=$?
4821 grep -v '^ *+' conftest.er1 >conftest.err
4822 rm -f conftest.er1
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
4828 }; then
4829 ac_header_preproc=yes
4830 else
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
4843 yes:no: )
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
4850 no: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;}
4863 ( cat <<\_ASBOX
4864 ## ----------------------------- ##
4865 ## Report this to gdiso@ustc.edu ##
4866 ## ----------------------------- ##
4867 _ASBOX
4868 ) | sed "s/^/$as_me: WARNING: /" >&2
4870 esac
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
4875 else
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
4886 _ACEOF
4890 done
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
4898 else
4899 cat >conftest.$ac_ext <<_ACEOF
4900 /* confdefs.h. */
4901 _ACEOF
4902 cat confdefs.h >>conftest.$ac_ext
4903 cat >>conftest.$ac_ext <<_ACEOF
4904 /* end confdefs.h. */
4906 #include <stdbool.h>
4907 #ifndef bool
4908 "error: bool is not defined"
4909 #endif
4910 #ifndef false
4911 "error: false is not defined"
4912 #endif
4913 #if false
4914 "error: false is not 0"
4915 #endif
4916 #ifndef true
4917 "error: true is not defined"
4918 #endif
4919 #if true != 1
4920 "error: true is not 1"
4921 #endif
4922 #ifndef __bool_true_false_are_defined
4923 "error: __bool_true_false_are_defined is not defined"
4924 #endif
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];
4932 bool e = &s;
4933 char f[(_Bool) 0.0 == false ? 1 : -1];
4934 char g[true];
4935 char h[sizeof (_Bool)];
4936 char i[sizeof s.t];
4937 enum { j = false, k = true, l = false * true, m = true * 256 };
4938 _Bool n[m];
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
4956 future. */
4957 char digs[] = "0123456789";
4958 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
4959 # endif
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
4964 _Bool q = true;
4965 _Bool *pq = &q;
4968 main ()
4971 *pq |= q;
4972 *pq |= ! q;
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);
4978 return 0;
4980 _ACEOF
4981 rm -f conftest.$ac_objext
4982 if { (ac_try="$ac_compile"
4983 case "(($ac_try" in
4984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4985 *) ac_try_echo=$ac_try;;
4986 esac
4987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4988 (eval "$ac_compile") 2>conftest.er1
4989 ac_status=$?
4990 grep -v '^ *+' conftest.er1 >conftest.err
4991 rm -f conftest.er1
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
4999 else
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
5014 else
5015 cat >conftest.$ac_ext <<_ACEOF
5016 /* confdefs.h. */
5017 _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_;
5024 main ()
5026 if ((ac__type_new_ *) 0)
5027 return 0;
5028 if (sizeof (ac__type_new_))
5029 return 0;
5031 return 0;
5033 _ACEOF
5034 rm -f conftest.$ac_objext
5035 if { (ac_try="$ac_compile"
5036 case "(($ac_try" in
5037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5038 *) ac_try_echo=$ac_try;;
5039 esac
5040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5041 (eval "$ac_compile") 2>conftest.er1
5042 ac_status=$?
5043 grep -v '^ *+' conftest.er1 >conftest.err
5044 rm -f conftest.er1
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
5052 else
5053 echo "$as_me: failed program was:" >&5
5054 sed 's/^/| /' conftest.$ac_ext >&5
5056 ac_cv_type__Bool=no
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
5067 _ACEOF
5072 if test $ac_cv_header_stdbool_h = yes; then
5074 cat >>confdefs.h <<\_ACEOF
5075 #define HAVE_STDBOOL_H 1
5076 _ACEOF
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
5084 else
5085 cat >conftest.$ac_ext <<_ACEOF
5086 /* confdefs.h. */
5087 _ACEOF
5088 cat confdefs.h >>conftest.$ac_ext
5089 cat >>conftest.$ac_ext <<_ACEOF
5090 /* end confdefs.h. */
5093 main ()
5095 /* FIXME: Include the comments suggested by Paul. */
5096 #ifndef __cplusplus
5097 /* Ultrix mips cc rejects this. */
5098 typedef int charset[2];
5099 const charset cs;
5100 /* SunOS 4.1.1 cc rejects this. */
5101 char const *const *pcpcc;
5102 char **ppc;
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
5109 expression */
5110 const char *g = "string";
5111 pcpcc = &g + (g ? g-g : 0);
5112 /* HPUX 7.0 cc rejects these. */
5113 ++pcpcc;
5114 ppc = (char**) pcpcc;
5115 pcpcc = (char const *const *) ppc;
5116 { /* SCO 3.2v4 cc rejects this. */
5117 char *t;
5118 char const *s = 0 ? (char *) 0 : (char const *) 0;
5120 *t++ = 0;
5121 if (s) return 0;
5123 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5124 int x[] = {25, 17};
5125 const int *foo = &x[0];
5126 ++foo;
5128 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5129 typedef const int *iptr;
5130 iptr p = 0;
5131 ++p;
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 */
5139 const int foo = 10;
5140 if (!foo) return 0;
5142 return !cs[0] && !zero.x;
5143 #endif
5146 return 0;
5148 _ACEOF
5149 rm -f conftest.$ac_objext
5150 if { (ac_try="$ac_compile"
5151 case "(($ac_try" in
5152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5153 *) ac_try_echo=$ac_try;;
5154 esac
5155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5156 (eval "$ac_compile") 2>conftest.er1
5157 ac_status=$?
5158 grep -v '^ *+' conftest.er1 >conftest.err
5159 rm -f conftest.er1
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
5166 ac_cv_c_const=yes
5167 else
5168 echo "$as_me: failed program was:" >&5
5169 sed 's/^/| /' conftest.$ac_ext >&5
5171 ac_cv_c_const=no
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
5181 #define const
5182 _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
5190 else
5191 ac_cv_c_inline=no
5192 for ac_kw in inline __inline__ __inline; do
5193 cat >conftest.$ac_ext <<_ACEOF
5194 /* confdefs.h. */
5195 _ACEOF
5196 cat confdefs.h >>conftest.$ac_ext
5197 cat >>conftest.$ac_ext <<_ACEOF
5198 /* end confdefs.h. */
5199 #ifndef __cplusplus
5200 typedef int foo_t;
5201 static $ac_kw foo_t static_foo () {return 0; }
5202 $ac_kw foo_t foo () {return 0; }
5203 #endif
5205 _ACEOF
5206 rm -f conftest.$ac_objext
5207 if { (ac_try="$ac_compile"
5208 case "(($ac_try" in
5209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5210 *) ac_try_echo=$ac_try;;
5211 esac
5212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5213 (eval "$ac_compile") 2>conftest.er1
5214 ac_status=$?
5215 grep -v '^ *+' conftest.er1 >conftest.err
5216 rm -f conftest.er1
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
5224 else
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
5233 done
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
5241 inline | yes) ;;
5243 case $ac_cv_c_inline in
5244 no) ac_val=;;
5245 *) ac_val=$ac_cv_c_inline;;
5246 esac
5247 cat >>confdefs.h <<_ACEOF
5248 #ifndef __cplusplus
5249 #define inline $ac_val
5250 #endif
5251 _ACEOF
5253 esac
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
5259 else
5260 cat >conftest.$ac_ext <<_ACEOF
5261 /* confdefs.h. */
5262 _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_;
5269 main ()
5271 if ((ac__type_new_ *) 0)
5272 return 0;
5273 if (sizeof (ac__type_new_))
5274 return 0;
5276 return 0;
5278 _ACEOF
5279 rm -f conftest.$ac_objext
5280 if { (ac_try="$ac_compile"
5281 case "(($ac_try" in
5282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5283 *) ac_try_echo=$ac_try;;
5284 esac
5285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5286 (eval "$ac_compile") 2>conftest.er1
5287 ac_status=$?
5288 grep -v '^ *+' conftest.er1 >conftest.err
5289 rm -f conftest.er1
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
5297 else
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
5310 else
5312 cat >>confdefs.h <<_ACEOF
5313 #define size_t unsigned int
5314 _ACEOF
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
5322 else
5323 cat >conftest.$ac_ext <<_ACEOF
5324 /* confdefs.h. */
5325 _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>
5331 #include <time.h>
5334 main ()
5336 if ((struct tm *) 0)
5337 return 0;
5339 return 0;
5341 _ACEOF
5342 rm -f conftest.$ac_objext
5343 if { (ac_try="$ac_compile"
5344 case "(($ac_try" in
5345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5346 *) ac_try_echo=$ac_try;;
5347 esac
5348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5349 (eval "$ac_compile") 2>conftest.er1
5350 ac_status=$?
5351 grep -v '^ *+' conftest.er1 >conftest.err
5352 rm -f conftest.er1
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
5360 else
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
5375 _ACEOF
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; }
5394 else
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
5399 /* confdefs.h. */
5400 _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>
5406 _ACEOF
5407 rm -f conftest.$ac_objext
5408 if { (ac_try="$ac_compile"
5409 case "(($ac_try" in
5410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5411 *) ac_try_echo=$ac_try;;
5412 esac
5413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5414 (eval "$ac_compile") 2>conftest.er1
5415 ac_status=$?
5416 grep -v '^ *+' conftest.er1 >conftest.err
5417 rm -f conftest.er1
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
5425 else
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
5440 /* confdefs.h. */
5441 _ACEOF
5442 cat confdefs.h >>conftest.$ac_ext
5443 cat >>conftest.$ac_ext <<_ACEOF
5444 /* end confdefs.h. */
5445 #include <$ac_header>
5446 _ACEOF
5447 if { (ac_try="$ac_cpp conftest.$ac_ext"
5448 case "(($ac_try" in
5449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5450 *) ac_try_echo=$ac_try;;
5451 esac
5452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5453 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5454 ac_status=$?
5455 grep -v '^ *+' conftest.er1 >conftest.err
5456 rm -f conftest.er1
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
5462 }; then
5463 ac_header_preproc=yes
5464 else
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
5477 yes:no: )
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
5484 no: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;}
5497 ( cat <<\_ASBOX
5498 ## ----------------------------- ##
5499 ## Report this to gdiso@ustc.edu ##
5500 ## ----------------------------- ##
5501 _ASBOX
5502 ) | sed "s/^/$as_me: WARNING: /" >&2
5504 esac
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
5509 else
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
5520 _ACEOF
5524 done
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
5530 else
5531 if test "$cross_compiling" = yes; then
5532 ac_cv_func_malloc_0_nonnull=no
5533 else
5534 cat >conftest.$ac_ext <<_ACEOF
5535 /* confdefs.h. */
5536 _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>
5542 #else
5543 char *malloc ();
5544 #endif
5547 main ()
5549 return ! malloc (0);
5551 return 0;
5553 _ACEOF
5554 rm -f conftest$ac_exeext
5555 if { (ac_try="$ac_link"
5556 case "(($ac_try" in
5557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5558 *) ac_try_echo=$ac_try;;
5559 esac
5560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5561 (eval "$ac_link") 2>&5
5562 ac_status=$?
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;;
5568 esac
5569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5570 (eval "$ac_try") 2>&5
5571 ac_status=$?
5572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5573 (exit $ac_status); }; }; then
5574 ac_cv_func_malloc_0_nonnull=yes
5575 else
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
5580 ( exit $ac_status )
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
5594 _ACEOF
5596 else
5597 cat >>confdefs.h <<\_ACEOF
5598 #define HAVE_MALLOC 0
5599 _ACEOF
5601 case " $LIBOBJS " in
5602 *" malloc.$ac_objext "* ) ;;
5603 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
5605 esac
5608 cat >>confdefs.h <<\_ACEOF
5609 #define malloc rpl_malloc
5610 _ACEOF
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; }
5629 else
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
5634 /* confdefs.h. */
5635 _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>
5641 _ACEOF
5642 rm -f conftest.$ac_objext
5643 if { (ac_try="$ac_compile"
5644 case "(($ac_try" in
5645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5646 *) ac_try_echo=$ac_try;;
5647 esac
5648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5649 (eval "$ac_compile") 2>conftest.er1
5650 ac_status=$?
5651 grep -v '^ *+' conftest.er1 >conftest.err
5652 rm -f conftest.er1
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
5660 else
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
5675 /* confdefs.h. */
5676 _ACEOF
5677 cat confdefs.h >>conftest.$ac_ext
5678 cat >>conftest.$ac_ext <<_ACEOF
5679 /* end confdefs.h. */
5680 #include <$ac_header>
5681 _ACEOF
5682 if { (ac_try="$ac_cpp conftest.$ac_ext"
5683 case "(($ac_try" in
5684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5685 *) ac_try_echo=$ac_try;;
5686 esac
5687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5688 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5689 ac_status=$?
5690 grep -v '^ *+' conftest.er1 >conftest.err
5691 rm -f conftest.er1
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
5697 }; then
5698 ac_header_preproc=yes
5699 else
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
5712 yes:no: )
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
5719 no: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;}
5732 ( cat <<\_ASBOX
5733 ## ----------------------------- ##
5734 ## Report this to gdiso@ustc.edu ##
5735 ## ----------------------------- ##
5736 _ASBOX
5737 ) | sed "s/^/$as_me: WARNING: /" >&2
5739 esac
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
5744 else
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
5755 _ACEOF
5759 done
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
5765 else
5766 if test "$cross_compiling" = yes; then
5767 ac_cv_func_realloc_0_nonnull=no
5768 else
5769 cat >conftest.$ac_ext <<_ACEOF
5770 /* confdefs.h. */
5771 _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>
5777 #else
5778 char *realloc ();
5779 #endif
5782 main ()
5784 return ! realloc (0, 0);
5786 return 0;
5788 _ACEOF
5789 rm -f conftest$ac_exeext
5790 if { (ac_try="$ac_link"
5791 case "(($ac_try" in
5792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5793 *) ac_try_echo=$ac_try;;
5794 esac
5795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5796 (eval "$ac_link") 2>&5
5797 ac_status=$?
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;;
5803 esac
5804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5805 (eval "$ac_try") 2>&5
5806 ac_status=$?
5807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808 (exit $ac_status); }; }; then
5809 ac_cv_func_realloc_0_nonnull=yes
5810 else
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
5815 ( exit $ac_status )
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
5829 _ACEOF
5831 else
5832 cat >>confdefs.h <<\_ACEOF
5833 #define HAVE_REALLOC 0
5834 _ACEOF
5836 case " $LIBOBJS " in
5837 *" realloc.$ac_objext "* ) ;;
5838 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
5840 esac
5843 cat >>confdefs.h <<\_ACEOF
5844 #define realloc rpl_realloc
5845 _ACEOF
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
5855 else
5856 if test "$cross_compiling" = yes; then
5857 ac_cv_func_strtod=no
5858 else
5859 cat >conftest.$ac_ext <<_ACEOF
5860 /* confdefs.h. */
5861 _ACEOF
5862 cat confdefs.h >>conftest.$ac_ext
5863 cat >>conftest.$ac_ext <<_ACEOF
5864 /* end confdefs.h. */
5866 $ac_includes_default
5867 #ifndef strtod
5868 double strtod ();
5869 #endif
5871 main()
5874 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
5875 char *string = " +69";
5876 char *term;
5877 double value;
5878 value = strtod (string, &term);
5879 if (value != 69 || term != (string + 4))
5880 return 1;
5884 /* Under Solaris 2.4, strtod returns the wrong value for the
5885 terminating character under some conditions. */
5886 char *string = "NaN";
5887 char *term;
5888 strtod (string, &term);
5889 if (term != string && *(term - 1) == 0)
5890 return 1;
5892 return 0;
5895 _ACEOF
5896 rm -f conftest$ac_exeext
5897 if { (ac_try="$ac_link"
5898 case "(($ac_try" in
5899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5900 *) ac_try_echo=$ac_try;;
5901 esac
5902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5903 (eval "$ac_link") 2>&5
5904 ac_status=$?
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;;
5910 esac
5911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5912 (eval "$ac_try") 2>&5
5913 ac_status=$?
5914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915 (exit $ac_status); }; }; then
5916 ac_cv_func_strtod=yes
5917 else
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
5922 ( exit $ac_status )
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"
5937 esac
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
5943 else
5944 cat >conftest.$ac_ext <<_ACEOF
5945 /* confdefs.h. */
5946 _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. */
5959 #ifdef __STDC__
5960 # include <limits.h>
5961 #else
5962 # include <assert.h>
5963 #endif
5965 #undef pow
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. */
5970 #ifdef __cplusplus
5971 extern "C"
5972 #endif
5973 char pow ();
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
5978 choke me
5979 #endif
5982 main ()
5984 return pow ();
5986 return 0;
5988 _ACEOF
5989 rm -f conftest.$ac_objext conftest$ac_exeext
5990 if { (ac_try="$ac_link"
5991 case "(($ac_try" in
5992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5993 *) ac_try_echo=$ac_try;;
5994 esac
5995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5996 (eval "$ac_link") 2>conftest.er1
5997 ac_status=$?
5998 grep -v '^ *+' conftest.er1 >conftest.err
5999 rm -f conftest.er1
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
6007 ac_cv_func_pow=yes
6008 else
6009 echo "$as_me: failed program was:" >&5
6010 sed 's/^/| /' conftest.$ac_ext >&5
6012 ac_cv_func_pow=no
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
6026 else
6027 ac_check_lib_save_LIBS=$LIBS
6028 LIBS="-lm $LIBS"
6029 cat >conftest.$ac_ext <<_ACEOF
6030 /* confdefs.h. */
6031 _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. */
6039 #ifdef __cplusplus
6040 extern "C"
6041 #endif
6042 char pow ();
6044 main ()
6046 return pow ();
6048 return 0;
6050 _ACEOF
6051 rm -f conftest.$ac_objext conftest$ac_exeext
6052 if { (ac_try="$ac_link"
6053 case "(($ac_try" in
6054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6055 *) ac_try_echo=$ac_try;;
6056 esac
6057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6058 (eval "$ac_link") 2>conftest.er1
6059 ac_status=$?
6060 grep -v '^ *+' conftest.er1 >conftest.err
6061 rm -f conftest.er1
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
6069 ac_cv_lib_m_pow=yes
6070 else
6071 echo "$as_me: failed program was:" >&5
6072 sed 's/^/| /' conftest.$ac_ext >&5
6074 ac_cv_lib_m_pow=no
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
6084 POW_LIB=-lm
6085 else
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
6104 else
6105 cat >conftest.$ac_ext <<_ACEOF
6106 /* confdefs.h. */
6107 _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. */
6120 #ifdef __STDC__
6121 # include <limits.h>
6122 #else
6123 # include <assert.h>
6124 #endif
6126 #undef $ac_func
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. */
6131 #ifdef __cplusplus
6132 extern "C"
6133 #endif
6134 char $ac_func ();
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
6139 choke me
6140 #endif
6143 main ()
6145 return $ac_func ();
6147 return 0;
6149 _ACEOF
6150 rm -f conftest.$ac_objext conftest$ac_exeext
6151 if { (ac_try="$ac_link"
6152 case "(($ac_try" in
6153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6154 *) ac_try_echo=$ac_try;;
6155 esac
6156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6157 (eval "$ac_link") 2>conftest.er1
6158 ac_status=$?
6159 grep -v '^ *+' conftest.er1 >conftest.err
6160 rm -f conftest.er1
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"
6169 else
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
6185 _ACEOF
6188 done
6192 #---------------------------------------------------------------------------
6193 # Checks for system define
6194 #---------------------------------------------------------------------------
6195 case $host_os in
6196 *cygwin* )
6198 cat >>confdefs.h <<\_ACEOF
6199 #define CYGWIN
6200 _ACEOF
6202 *linux* )
6204 cat >>confdefs.h <<\_ACEOF
6205 #define LINUX
6206 _ACEOF
6208 *darwin* )
6210 cat >>confdefs.h <<\_ACEOF
6211 #define DARWIN
6212 _ACEOF
6214 esac
6218 # Check whether --with-Win32 was given.
6219 if test "${with_Win32+set}" = set; then
6220 withval=$with_Win32;
6221 cat >>confdefs.h <<\_ACEOF
6222 #define HAVE_WIN32
6223 _ACEOF
6225 Win32API=1
6226 else
6227 Win32API=0
6230 #echo $Win32API
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
6238 withval=$with_x;
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.
6244 have_x=disabled
6245 else
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
6252 else
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
6257 cd conftest.dir
6258 cat >Imakefile <<'_ACEOF'
6259 incroot:
6260 @echo incroot='${INCROOT}'
6261 usrlibdir:
6262 @echo usrlibdir='${USRLIBDIR}'
6263 libdir:
6264 @echo libdir='${LIBDIR}'
6265 _ACEOF
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'\`"
6270 done
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
6277 done
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;;
6284 esac
6285 case $ac_im_usrlibdir in
6286 /usr/lib | /lib) ;;
6287 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6288 esac
6290 cd ..
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.
6296 ac_x_header_dirs='
6297 /usr/X11/include
6298 /usr/X11R6/include
6299 /usr/X11R5/include
6300 /usr/X11R4/include
6302 /usr/include/X11
6303 /usr/include/X11R6
6304 /usr/include/X11R5
6305 /usr/include/X11R4
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
6317 /usr/X386/include
6318 /usr/x386/include
6319 /usr/XFree86/include/X11
6321 /usr/include
6322 /usr/local/include
6323 /usr/unsupported/include
6324 /usr/athena/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
6335 /* confdefs.h. */
6336 _ACEOF
6337 cat confdefs.h >>conftest.$ac_ext
6338 cat >>conftest.$ac_ext <<_ACEOF
6339 /* end confdefs.h. */
6340 #include <X11/Xlib.h>
6341 _ACEOF
6342 if { (ac_try="$ac_cpp conftest.$ac_ext"
6343 case "(($ac_try" in
6344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6345 *) ac_try_echo=$ac_try;;
6346 esac
6347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6348 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6349 ac_status=$?
6350 grep -v '^ *+' conftest.er1 >conftest.err
6351 rm -f conftest.er1
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
6357 }; then
6358 # We can compile using X headers with no special include directory.
6359 ac_x_includes=
6360 else
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
6367 break
6369 done
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.
6379 ac_save_LIBS=$LIBS
6380 LIBS="-lX11 $LIBS"
6381 cat >conftest.$ac_ext <<_ACEOF
6382 /* confdefs.h. */
6383 _ACEOF
6384 cat confdefs.h >>conftest.$ac_ext
6385 cat >>conftest.$ac_ext <<_ACEOF
6386 /* end confdefs.h. */
6387 #include <X11/Xlib.h>
6389 main ()
6391 XrmInitialize ()
6393 return 0;
6395 _ACEOF
6396 rm -f conftest.$ac_objext conftest$ac_exeext
6397 if { (ac_try="$ac_link"
6398 case "(($ac_try" in
6399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6400 *) ac_try_echo=$ac_try;;
6401 esac
6402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6403 (eval "$ac_link") 2>conftest.er1
6404 ac_status=$?
6405 grep -v '^ *+' conftest.er1 >conftest.err
6406 rm -f conftest.er1
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
6414 LIBS=$ac_save_LIBS
6415 # We can link X programs with no special library path.
6416 ac_x_libraries=
6417 else
6418 echo "$as_me: failed program was:" >&5
6419 sed 's/^/| /' conftest.$ac_ext >&5
6421 LIBS=$ac_save_LIBS
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
6428 break 2
6430 done
6431 done
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 #(
6439 no,* | *,no | *\'*)
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'"
6447 esac
6449 ;; #(
6450 *) have_x=yes;;
6451 esac
6452 eval "$ac_cv_have_x"
6453 fi # $with_x != no
6455 if test "$have_x" != yes; then
6456 { echo "$as_me:$LINENO: result: $have_x" >&5
6457 echo "${ECHO_T}$have_x" >&6; }
6458 no_x=yes
6459 else
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
6476 _ACEOF
6478 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6479 else
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
6495 /* confdefs.h. */
6496 _ACEOF
6497 cat confdefs.h >>conftest.$ac_ext
6498 cat >>conftest.$ac_ext <<_ACEOF
6499 /* end confdefs.h. */
6502 main ()
6506 return 0;
6508 _ACEOF
6509 rm -f conftest.$ac_objext conftest$ac_exeext
6510 if { (ac_try="$ac_link"
6511 case "(($ac_try" in
6512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6513 *) ac_try_echo=$ac_try;;
6514 esac
6515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6516 (eval "$ac_link") 2>conftest.er1
6517 ac_status=$?
6518 grep -v '^ *+' conftest.er1 >conftest.err
6519 rm -f conftest.er1
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"
6530 else
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
6536 /* confdefs.h. */
6537 _ACEOF
6538 cat confdefs.h >>conftest.$ac_ext
6539 cat >>conftest.$ac_ext <<_ACEOF
6540 /* end confdefs.h. */
6543 main ()
6547 return 0;
6549 _ACEOF
6550 rm -f conftest.$ac_objext conftest$ac_exeext
6551 if { (ac_try="$ac_link"
6552 case "(($ac_try" in
6553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6554 *) ac_try_echo=$ac_try;;
6555 esac
6556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6557 (eval "$ac_link") 2>conftest.er1
6558 ac_status=$?
6559 grep -v '^ *+' conftest.er1 >conftest.err
6560 rm -f conftest.er1
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"
6571 else
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
6586 LIBS=$ac_xsave_LIBS
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"
6595 else
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
6601 /* confdefs.h. */
6602 _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. */
6610 #ifdef __cplusplus
6611 extern "C"
6612 #endif
6613 char XOpenDisplay ();
6615 main ()
6617 return XOpenDisplay ();
6619 return 0;
6621 _ACEOF
6622 rm -f conftest.$ac_objext conftest$ac_exeext
6623 if { (ac_try="$ac_link"
6624 case "(($ac_try" in
6625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6626 *) ac_try_echo=$ac_try;;
6627 esac
6628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6629 (eval "$ac_link") 2>conftest.er1
6630 ac_status=$?
6631 grep -v '^ *+' conftest.er1 >conftest.err
6632 rm -f conftest.er1
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
6641 else
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
6649 else
6650 ac_check_lib_save_LIBS=$LIBS
6651 LIBS="-ldnet $LIBS"
6652 cat >conftest.$ac_ext <<_ACEOF
6653 /* confdefs.h. */
6654 _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. */
6662 #ifdef __cplusplus
6663 extern "C"
6664 #endif
6665 char dnet_ntoa ();
6667 main ()
6669 return dnet_ntoa ();
6671 return 0;
6673 _ACEOF
6674 rm -f conftest.$ac_objext conftest$ac_exeext
6675 if { (ac_try="$ac_link"
6676 case "(($ac_try" in
6677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6678 *) ac_try_echo=$ac_try;;
6679 esac
6680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6681 (eval "$ac_link") 2>conftest.er1
6682 ac_status=$?
6683 grep -v '^ *+' conftest.er1 >conftest.err
6684 rm -f conftest.er1
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
6693 else
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
6715 else
6716 ac_check_lib_save_LIBS=$LIBS
6717 LIBS="-ldnet_stub $LIBS"
6718 cat >conftest.$ac_ext <<_ACEOF
6719 /* confdefs.h. */
6720 _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. */
6728 #ifdef __cplusplus
6729 extern "C"
6730 #endif
6731 char dnet_ntoa ();
6733 main ()
6735 return dnet_ntoa ();
6737 return 0;
6739 _ACEOF
6740 rm -f conftest.$ac_objext conftest$ac_exeext
6741 if { (ac_try="$ac_link"
6742 case "(($ac_try" in
6743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6744 *) ac_try_echo=$ac_try;;
6745 esac
6746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6747 (eval "$ac_link") 2>conftest.er1
6748 ac_status=$?
6749 grep -v '^ *+' conftest.er1 >conftest.err
6750 rm -f conftest.er1
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
6759 else
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)
6786 # needs -lnsl.
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
6795 else
6796 cat >conftest.$ac_ext <<_ACEOF
6797 /* confdefs.h. */
6798 _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. */
6811 #ifdef __STDC__
6812 # include <limits.h>
6813 #else
6814 # include <assert.h>
6815 #endif
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. */
6822 #ifdef __cplusplus
6823 extern "C"
6824 #endif
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
6830 choke me
6831 #endif
6834 main ()
6836 return gethostbyname ();
6838 return 0;
6840 _ACEOF
6841 rm -f conftest.$ac_objext conftest$ac_exeext
6842 if { (ac_try="$ac_link"
6843 case "(($ac_try" in
6844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6845 *) ac_try_echo=$ac_try;;
6846 esac
6847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6848 (eval "$ac_link") 2>conftest.er1
6849 ac_status=$?
6850 grep -v '^ *+' conftest.er1 >conftest.err
6851 rm -f conftest.er1
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
6860 else
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
6878 else
6879 ac_check_lib_save_LIBS=$LIBS
6880 LIBS="-lnsl $LIBS"
6881 cat >conftest.$ac_ext <<_ACEOF
6882 /* confdefs.h. */
6883 _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. */
6891 #ifdef __cplusplus
6892 extern "C"
6893 #endif
6894 char gethostbyname ();
6896 main ()
6898 return gethostbyname ();
6900 return 0;
6902 _ACEOF
6903 rm -f conftest.$ac_objext conftest$ac_exeext
6904 if { (ac_try="$ac_link"
6905 case "(($ac_try" in
6906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6907 *) ac_try_echo=$ac_try;;
6908 esac
6909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6910 (eval "$ac_link") 2>conftest.er1
6911 ac_status=$?
6912 grep -v '^ *+' conftest.er1 >conftest.err
6913 rm -f conftest.er1
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
6922 else
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
6944 else
6945 ac_check_lib_save_LIBS=$LIBS
6946 LIBS="-lbsd $LIBS"
6947 cat >conftest.$ac_ext <<_ACEOF
6948 /* confdefs.h. */
6949 _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. */
6957 #ifdef __cplusplus
6958 extern "C"
6959 #endif
6960 char gethostbyname ();
6962 main ()
6964 return gethostbyname ();
6966 return 0;
6968 _ACEOF
6969 rm -f conftest.$ac_objext conftest$ac_exeext
6970 if { (ac_try="$ac_link"
6971 case "(($ac_try" in
6972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6973 *) ac_try_echo=$ac_try;;
6974 esac
6975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6976 (eval "$ac_link") 2>conftest.er1
6977 ac_status=$?
6978 grep -v '^ *+' conftest.er1 >conftest.err
6979 rm -f conftest.er1
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
6988 else
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
7019 else
7020 cat >conftest.$ac_ext <<_ACEOF
7021 /* confdefs.h. */
7022 _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. */
7035 #ifdef __STDC__
7036 # include <limits.h>
7037 #else
7038 # include <assert.h>
7039 #endif
7041 #undef connect
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. */
7046 #ifdef __cplusplus
7047 extern "C"
7048 #endif
7049 char connect ();
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
7054 choke me
7055 #endif
7058 main ()
7060 return connect ();
7062 return 0;
7064 _ACEOF
7065 rm -f conftest.$ac_objext conftest$ac_exeext
7066 if { (ac_try="$ac_link"
7067 case "(($ac_try" in
7068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7069 *) ac_try_echo=$ac_try;;
7070 esac
7071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7072 (eval "$ac_link") 2>conftest.er1
7073 ac_status=$?
7074 grep -v '^ *+' conftest.er1 >conftest.err
7075 rm -f conftest.er1
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
7084 else
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
7102 else
7103 ac_check_lib_save_LIBS=$LIBS
7104 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7105 cat >conftest.$ac_ext <<_ACEOF
7106 /* confdefs.h. */
7107 _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. */
7115 #ifdef __cplusplus
7116 extern "C"
7117 #endif
7118 char connect ();
7120 main ()
7122 return connect ();
7124 return 0;
7126 _ACEOF
7127 rm -f conftest.$ac_objext conftest$ac_exeext
7128 if { (ac_try="$ac_link"
7129 case "(($ac_try" in
7130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7131 *) ac_try_echo=$ac_try;;
7132 esac
7133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7134 (eval "$ac_link") 2>conftest.er1
7135 ac_status=$?
7136 grep -v '^ *+' conftest.er1 >conftest.err
7137 rm -f conftest.er1
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
7146 else
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
7170 else
7171 cat >conftest.$ac_ext <<_ACEOF
7172 /* confdefs.h. */
7173 _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. */
7186 #ifdef __STDC__
7187 # include <limits.h>
7188 #else
7189 # include <assert.h>
7190 #endif
7192 #undef remove
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. */
7197 #ifdef __cplusplus
7198 extern "C"
7199 #endif
7200 char remove ();
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
7205 choke me
7206 #endif
7209 main ()
7211 return remove ();
7213 return 0;
7215 _ACEOF
7216 rm -f conftest.$ac_objext conftest$ac_exeext
7217 if { (ac_try="$ac_link"
7218 case "(($ac_try" in
7219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7220 *) ac_try_echo=$ac_try;;
7221 esac
7222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7223 (eval "$ac_link") 2>conftest.er1
7224 ac_status=$?
7225 grep -v '^ *+' conftest.er1 >conftest.err
7226 rm -f conftest.er1
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
7235 else
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
7253 else
7254 ac_check_lib_save_LIBS=$LIBS
7255 LIBS="-lposix $LIBS"
7256 cat >conftest.$ac_ext <<_ACEOF
7257 /* confdefs.h. */
7258 _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. */
7266 #ifdef __cplusplus
7267 extern "C"
7268 #endif
7269 char remove ();
7271 main ()
7273 return remove ();
7275 return 0;
7277 _ACEOF
7278 rm -f conftest.$ac_objext conftest$ac_exeext
7279 if { (ac_try="$ac_link"
7280 case "(($ac_try" in
7281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7282 *) ac_try_echo=$ac_try;;
7283 esac
7284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7285 (eval "$ac_link") 2>conftest.er1
7286 ac_status=$?
7287 grep -v '^ *+' conftest.er1 >conftest.err
7288 rm -f conftest.er1
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
7297 else
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
7321 else
7322 cat >conftest.$ac_ext <<_ACEOF
7323 /* confdefs.h. */
7324 _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. */
7337 #ifdef __STDC__
7338 # include <limits.h>
7339 #else
7340 # include <assert.h>
7341 #endif
7343 #undef shmat
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. */
7348 #ifdef __cplusplus
7349 extern "C"
7350 #endif
7351 char shmat ();
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
7356 choke me
7357 #endif
7360 main ()
7362 return shmat ();
7364 return 0;
7366 _ACEOF
7367 rm -f conftest.$ac_objext conftest$ac_exeext
7368 if { (ac_try="$ac_link"
7369 case "(($ac_try" in
7370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7371 *) ac_try_echo=$ac_try;;
7372 esac
7373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7374 (eval "$ac_link") 2>conftest.er1
7375 ac_status=$?
7376 grep -v '^ *+' conftest.er1 >conftest.err
7377 rm -f conftest.er1
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
7386 else
7387 echo "$as_me: failed program was:" >&5
7388 sed 's/^/| /' conftest.$ac_ext >&5
7390 ac_cv_func_shmat=no
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
7404 else
7405 ac_check_lib_save_LIBS=$LIBS
7406 LIBS="-lipc $LIBS"
7407 cat >conftest.$ac_ext <<_ACEOF
7408 /* confdefs.h. */
7409 _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. */
7417 #ifdef __cplusplus
7418 extern "C"
7419 #endif
7420 char shmat ();
7422 main ()
7424 return shmat ();
7426 return 0;
7428 _ACEOF
7429 rm -f conftest.$ac_objext conftest$ac_exeext
7430 if { (ac_try="$ac_link"
7431 case "(($ac_try" in
7432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7433 *) ac_try_echo=$ac_try;;
7434 esac
7435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7436 (eval "$ac_link") 2>conftest.er1
7437 ac_status=$?
7438 grep -v '^ *+' conftest.er1 >conftest.err
7439 rm -f conftest.er1
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
7448 else
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
7481 else
7482 ac_check_lib_save_LIBS=$LIBS
7483 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7484 cat >conftest.$ac_ext <<_ACEOF
7485 /* confdefs.h. */
7486 _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. */
7494 #ifdef __cplusplus
7495 extern "C"
7496 #endif
7497 char IceConnectionNumber ();
7499 main ()
7501 return IceConnectionNumber ();
7503 return 0;
7505 _ACEOF
7506 rm -f conftest.$ac_objext conftest$ac_exeext
7507 if { (ac_try="$ac_link"
7508 case "(($ac_try" in
7509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7510 *) ac_try_echo=$ac_try;;
7511 esac
7512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7513 (eval "$ac_link") 2>conftest.er1
7514 ac_status=$?
7515 grep -v '^ *+' conftest.er1 >conftest.err
7516 rm -f conftest.er1
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
7525 else
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
7550 #define HAVE_X11
7551 _ACEOF
7553 else
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; }
7567 else
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
7572 /* confdefs.h. */
7573 _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>
7579 _ACEOF
7580 rm -f conftest.$ac_objext
7581 if { (ac_try="$ac_compile"
7582 case "(($ac_try" in
7583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7584 *) ac_try_echo=$ac_try;;
7585 esac
7586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7587 (eval "$ac_compile") 2>conftest.er1
7588 ac_status=$?
7589 grep -v '^ *+' conftest.er1 >conftest.err
7590 rm -f conftest.er1
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
7598 else
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
7613 /* confdefs.h. */
7614 _ACEOF
7615 cat confdefs.h >>conftest.$ac_ext
7616 cat >>conftest.$ac_ext <<_ACEOF
7617 /* end confdefs.h. */
7618 #include <$ac_header>
7619 _ACEOF
7620 if { (ac_try="$ac_cpp conftest.$ac_ext"
7621 case "(($ac_try" in
7622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7623 *) ac_try_echo=$ac_try;;
7624 esac
7625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7626 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7627 ac_status=$?
7628 grep -v '^ *+' conftest.er1 >conftest.err
7629 rm -f conftest.er1
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
7635 }; then
7636 ac_header_preproc=yes
7637 else
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
7650 yes:no: )
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
7657 no: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;}
7670 ( cat <<\_ASBOX
7671 ## ----------------------------- ##
7672 ## Report this to gdiso@ustc.edu ##
7673 ## ----------------------------- ##
7674 _ASBOX
7675 ) | sed "s/^/$as_me: WARNING: /" >&2
7677 esac
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
7682 else
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
7693 _ACEOF
7695 cat >>confdefs.h <<\_ACEOF
7696 #define HAVE_X11
7697 _ACEOF
7701 done
7704 if ! test "$x_libraries" = ""; then
7705 X11LIBS="-L$x_libraries -lX11"
7706 else
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
7711 else
7712 ac_check_lib_save_LIBS=$LIBS
7713 LIBS="-lX11 $LIBS"
7714 cat >conftest.$ac_ext <<_ACEOF
7715 /* confdefs.h. */
7716 _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. */
7724 #ifdef __cplusplus
7725 extern "C"
7726 #endif
7727 char XFlush ();
7729 main ()
7731 return XFlush ();
7733 return 0;
7735 _ACEOF
7736 rm -f conftest.$ac_objext conftest$ac_exeext
7737 if { (ac_try="$ac_link"
7738 case "(($ac_try" in
7739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7740 *) ac_try_echo=$ac_try;;
7741 esac
7742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7743 (eval "$ac_link") 2>conftest.er1
7744 ac_status=$?
7745 grep -v '^ *+' conftest.er1 >conftest.err
7746 rm -f conftest.er1
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
7755 else
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
7769 X11LIBS="-lX11"
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; }
7777 case $host_os in
7778 *darwin* )
7779 LDFSHARED=" -dynamiclib ";;
7781 LDFSHARED=" -shared";;
7782 esac
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
7789 else
7790 cat >conftest.make <<\_ACEOF
7791 SHELL = /bin/sh
7792 all:
7793 @echo '@@@%%%=$(MAKE)=@@@%%%'
7794 _ACEOF
7795 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7796 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7797 *@@@%%%=?*=@@@%%%*)
7798 eval ac_cv_prog_make_${ac_make}_set=yes;;
7800 eval ac_cv_prog_make_${ac_make}_set=no;;
7801 esac
7802 rm -f conftest.make
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; }
7807 SET_MAKE=
7808 else
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
7838 # following values.
7840 _ACEOF
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
7850 case $ac_val in #(
7851 *${as_nl}*)
7852 case $ac_var in #(
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;} ;;
7855 esac
7856 case $ac_var in #(
7857 _ | IFS | as_nl) ;; #(
7858 *) $as_unset $ac_var ;;
7859 esac ;;
7860 esac
7861 done
7863 (set) 2>&1 |
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 \).
7868 sed -n \
7869 "s/'/'\\\\''/g;
7870 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7871 ;; #(
7873 # `set' quotes correctly as required by POSIX, so do not add quotes.
7874 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7876 esac |
7877 sort
7879 sed '
7880 /^ac_cv_env_/b end
7881 t clear
7882 :clear
7883 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7884 t end
7885 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7886 :end' >>confcache
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
7893 else
7894 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
7895 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7898 rm -f confcache
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
7906 ac_libobjs=
7907 ac_ltlibobjs=
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'
7916 done
7917 LIBOBJS=$ac_libobjs
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
7929 #! $SHELL
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.
7935 debug=false
7936 ac_cs_recheck=false
7937 ac_cs_silent=false
7938 SHELL=\${CONFIG_SHELL-$SHELL}
7939 _ACEOF
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
7949 emulate sh
7950 NULLCMD=:
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
7955 else
7956 case `(set -o) 2>/dev/null` in
7957 *posix*) set -o posix ;;
7958 esac
7965 # PATH needs CR
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
7977 chmod +x conf$$.sh
7978 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7979 PATH_SEPARATOR=';'
7980 else
7981 PATH_SEPARATOR=:
7983 rm -f conf$$.sh
7986 # Support unset when possible.
7987 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7988 as_unset=unset
7989 else
7990 as_unset=false
7994 # IFS
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.)
7999 as_nl='
8001 IFS=" "" $as_nl"
8003 # Find who we are. Look in the path if we contain no directory separator.
8004 case $0 in
8005 *[\\/]* ) as_myself=$0 ;;
8006 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8007 for as_dir in $PATH
8009 IFS=$as_save_IFS
8010 test -z "$as_dir" && as_dir=.
8011 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8012 done
8013 IFS=$as_save_IFS
8016 esac
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
8020 as_myself=$0
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
8030 done
8031 PS1='$ '
8032 PS2='> '
8033 PS4='+ '
8035 # NLS nuisances.
8036 for as_var in \
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
8043 else
8044 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
8046 done
8048 # Required to use basename.
8049 if expr a : '\(a\)' >/dev/null 2>&1 &&
8050 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8051 as_expr=expr
8052 else
8053 as_expr=false
8056 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8057 as_basename=basename
8058 else
8059 as_basename=false
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 ||
8068 echo X/"$0" |
8069 sed '/^.*\/\([^/][^/]*\)\/*$/{
8070 s//\1/
8073 /^X\/\(\/\/\)$/{
8074 s//\1/
8077 /^X\/\(\/\).*/{
8078 s//\1/
8081 s/.*/./; q'`
8083 # CDPATH.
8084 $as_unset CDPATH
8088 as_lineno_1=$LINENO
8089 as_lineno_2=$LINENO
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
8099 # case at line end.
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. :-)
8103 sed -n '
8105 /[$]LINENO/=
8106 ' <$as_myself |
8107 sed '
8108 s/[$]LINENO.*/&-/
8109 t lineno
8111 :lineno
8113 :loop
8114 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
8115 t loop
8116 s/-\n.*//
8117 ' >$as_me.lineno &&
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).
8125 . "./$as_me.lineno"
8126 # Exit status is that of the last command.
8127 exit
8131 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8132 as_dirname=dirname
8133 else
8134 as_dirname=false
8137 ECHO_C= ECHO_N= ECHO_T=
8138 case `echo -n x` in
8139 -n*)
8140 case `echo 'x\c'` in
8141 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8142 *) ECHO_C='\c';;
8143 esac;;
8145 ECHO_N='-n';;
8146 esac
8148 if expr a : '\(a\)' >/dev/null 2>&1 &&
8149 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8150 as_expr=expr
8151 else
8152 as_expr=false
8155 rm -f conf$$ conf$$.exe conf$$.file
8156 if test -d conf$$.dir; then
8157 rm -f conf$$.dir/conf$$.file
8158 else
8159 rm -f conf$$.dir
8160 mkdir conf$$.dir
8162 echo >conf$$.file
8163 if ln -s conf$$.file conf$$ 2>/dev/null; then
8164 as_ln_s='ln -s'
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 ||
8170 as_ln_s='cp -p'
8171 elif ln conf$$.file conf$$ 2>/dev/null; then
8172 as_ln_s=ln
8173 else
8174 as_ln_s='cp -p'
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
8180 as_mkdir_p=:
8181 else
8182 test -d ./-p && rmdir ./-p
8183 as_mkdir_p=false
8186 if test -x / >/dev/null 2>&1; then
8187 as_test_x='test -x'
8188 else
8189 if ls -dL / >/dev/null 2>&1; then
8190 as_ls_L_option=L
8191 else
8192 as_ls_L_option=
8194 as_test_x='
8195 eval sh -c '\''
8196 if test -d "$1"; then
8197 test -d "$1/.";
8198 else
8199 case $1 in
8200 -*)set "./$1";;
8201 esac;
8202 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
8203 ???[sx]*):;;*)false;;esac;fi
8204 '\'' sh
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'"
8216 exec 6>&1
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.
8221 ac_log="
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
8229 $ $0 $@
8231 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8234 _ACEOF
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"
8241 _ACEOF
8243 cat >>$CONFIG_STATUS <<\_ACEOF
8244 ac_cs_usage="\
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:
8261 $config_files
8263 Configuration headers:
8264 $config_headers
8266 Report bugs to <bug-autoconf@gnu.org>."
8268 _ACEOF
8269 cat >>$CONFIG_STATUS <<_ACEOF
8270 ac_cs_version="\\
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."
8279 ac_pwd='$ac_pwd'
8280 srcdir='$srcdir'
8281 _ACEOF
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.
8286 ac_need_defaults=:
8287 while test $# != 0
8289 case $1 in
8290 --*=*)
8291 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8292 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8293 ac_shift=:
8296 ac_option=$1
8297 ac_optarg=$2
8298 ac_shift=shift
8300 esac
8302 case $ac_option in
8303 # Handling of the options.
8304 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8305 ac_cs_recheck=: ;;
8306 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8307 echo "$ac_cs_version"; exit ;;
8308 --debug | --debu | --deb | --de | --d | -d )
8309 debug=: ;;
8310 --file | --fil | --fi | --f )
8311 $ac_shift
8312 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8313 ac_need_defaults=false;;
8314 --header | --heade | --head | --hea )
8315 $ac_shift
8316 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8317 ac_need_defaults=false;;
8318 --he | --h)
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)
8327 ac_cs_silent=: ;;
8329 # This is an error.
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 ;;
8337 esac
8338 shift
8339 done
8341 ac_configure_extra_args=
8343 if $ac_cs_silent; then
8344 exec 6>/dev/null
8345 ac_configure_extra_args="$ac_configure_extra_args --silent"
8348 _ACEOF
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
8352 CONFIG_SHELL=$SHELL
8353 export CONFIG_SHELL
8354 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8357 _ACEOF
8358 cat >>$CONFIG_STATUS <<\_ACEOF
8359 exec 5>>config.log
8361 echo
8362 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8363 ## Running $as_me. ##
8364 _ASBOX
8365 echo "$ac_log"
8366 } >&5
8368 _ACEOF
8369 cat >>$CONFIG_STATUS <<_ACEOF
8370 _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; }; };;
8384 esac
8385 done
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'.
8403 $debug ||
8405 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"
8416 } ||
8418 tmp=./conf$$-$RANDOM
8419 (umask 077 && mkdir "$tmp")
8420 } ||
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
8434 _ACEOF
8438 ac_delim='%!_!# '
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
8470 DEFS!$DEFS$ac_delim
8471 ECHO_C!$ECHO_C$ac_delim
8472 ECHO_N!$ECHO_N$ac_delim
8473 ECHO_T!$ECHO_T$ac_delim
8474 LIBS!$LIBS$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
8482 host!$host$ac_delim
8483 host_cpu!$host_cpu$ac_delim
8484 host_vendor!$host_vendor$ac_delim
8485 host_os!$host_os$ac_delim
8486 CC!$CC$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
8493 CXX!$CXX$ac_delim
8494 CXXFLAGS!$CXXFLAGS$ac_delim
8495 ac_ct_CXX!$ac_ct_CXX$ac_delim
8496 LEX!$LEX$ac_delim
8497 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
8498 LEXLIB!$LEXLIB$ac_delim
8499 YACC!$YACC$ac_delim
8500 YFLAGS!$YFLAGS$ac_delim
8501 SET_MAKE!$SET_MAKE$ac_delim
8502 CPP!$CPP$ac_delim
8503 GREP!$GREP$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
8522 _ACEOF
8524 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 81; then
8525 break
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; }; }
8530 else
8531 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8533 done
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
8544 _ACEOF
8545 sed '
8546 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
8547 s/^/s,@/; s/!/@,|#_!!_#|/
8550 s/'"$ac_delim"'$/,g/; t
8551 s/$/\\/; p
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
8556 :end
8557 s/|#_!!_#|//g
8558 CEOF$ac_eof
8559 _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[ ]*=/{
8568 s/:*\$(srcdir):*/:/
8569 s/:*\${srcdir}:*/:/
8570 s/:*@srcdir@:*/:/
8571 s/^\([^=]*=[ ]*\):*/\1/
8572 s/:*$//
8573 s/^[^=]*=[ ]*$//
8577 cat >>$CONFIG_STATUS <<\_ACEOF
8578 fi # test -n "$CONFIG_FILES"
8581 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
8583 case $ac_tag in
8584 :[FHLC]) ac_mode=$ac_tag; continue;;
8585 esac
8586 case $ac_mode$ac_tag in
8587 :[FHL]*:*);;
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;;
8593 esac
8594 ac_save_IFS=$IFS
8595 IFS=:
8596 set x $ac_tag
8597 IFS=$ac_save_IFS
8598 shift
8599 ac_file=$1
8600 shift
8602 case $ac_mode in
8603 :L) ac_source=$1;;
8604 :[FH])
8605 ac_file_inputs=
8606 for ac_f
8608 case $ac_f 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 `:'.
8613 test -f "$ac_f" ||
8614 case $ac_f in
8615 [\\/$]*) false;;
8616 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8617 esac ||
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; }; };;
8621 esac
8622 ac_file_inputs="$ac_file_inputs $ac_f"
8623 done
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;}
8636 case $ac_tag in
8637 *:-:* | *:-) cat >"$tmp/stdin";;
8638 esac
8640 esac
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 ||
8647 echo X"$ac_file" |
8648 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8649 s//\1/
8652 /^X\(\/\/\)[^/].*/{
8653 s//\1/
8656 /^X\(\/\/\)$/{
8657 s//\1/
8660 /^X\(\/\).*/{
8661 s//\1/
8664 s/.*/./; q'`
8665 { as_dir="$ac_dir"
8666 case $as_dir in #(
8667 -*) as_dir=./$as_dir;;
8668 esac
8669 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
8670 as_dirs=
8671 while :; do
8672 case $as_dir in #(
8673 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
8674 *) as_qdir=$as_dir;;
8675 esac
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 ||
8682 echo X"$as_dir" |
8683 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8684 s//\1/
8687 /^X\(\/\/\)[^/].*/{
8688 s//\1/
8691 /^X\(\/\/\)$/{
8692 s//\1/
8695 /^X\(\/\).*/{
8696 s//\1/
8699 s/.*/./; q'`
8700 test -d "$as_dir" && break
8701 done
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; }; }; }
8706 ac_builddir=.
8708 case "$ac_dir" in
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/ ;;
8717 esac ;;
8718 esac
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
8724 case $srcdir in
8725 .) # We are building in place.
8726 ac_srcdir=.
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 ;;
8733 *) # Relative name.
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 ;;
8737 esac
8738 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8741 case $ac_mode in
8744 # CONFIG_FILE
8747 _ACEOF
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/ {
8758 /@datadir@/p
8759 /@docdir@/p
8760 /@infodir@/p
8761 /@localedir@/p
8762 /@mandir@/p
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;}
8768 _ACEOF
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' ;;
8777 esac
8778 _ACEOF
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
8784 sed "$ac_vpsub
8785 $extrasub
8786 _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;}
8810 rm -f "$tmp/stdin"
8811 case $ac_file in
8812 -) cat "$tmp/out"; rm -f "$tmp/out";;
8813 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
8814 esac
8818 # CONFIG_HEADER
8820 _ACEOF
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'
8839 ac_dC=' '
8840 ac_dD=' ,'
8842 uniq confdefs.h |
8843 sed -n '
8844 t rset
8845 :rset
8846 s/^[ ]*#[ ]*define[ ][ ]*//
8847 t ok
8850 s/[\\&,]/\\&/g
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.)
8860 echo 's/ $//
8861 s,^[ #]*u.*,/* & */,' >>conftest.defines
8863 # Break up conftest.defines:
8864 ac_max_sed_lines=50
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"
8869 # et cetera.
8870 ac_in='$ac_file_inputs'
8871 ac_out='"$tmp/out1"'
8872 ac_nxt='"$tmp/out2"'
8874 while :
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
8883 :def
8884 _ACEOF
8885 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
8886 echo 'CEOF
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
8893 done
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;}
8904 else
8905 rm -f $ac_file
8906 mv "$tmp/config.h" $ac_file
8908 else
8909 echo "/* $configure_input */"
8910 cat "$ac_result"
8912 rm -f "$tmp/out12"
8916 esac
8918 done # for ac_tag
8921 { (exit 0); exit 0; }
8922 _ACEOF
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
8936 ac_cs_success=:
8937 ac_config_status_args=
8938 test "$silent" = yes &&
8939 ac_config_status_args="$ac_config_status_args --quiet"
8940 exec 5>/dev/null
8941 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8942 exec 5>>config.log
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; }