1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for ChemShell 3.0.
4 #
5 # Report bugs to <p.sherwood@dl.ac.uk>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 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 # Pre-4.2 versions of Zsh do 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
29 fi
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 as_nl='
43 '
44 export as_nl
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85 as_unset=unset
86 else
87 as_unset=false
88 fi
91 # IFS
92 # We need space, tab and new line, in precisely that order. Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
96 IFS=" "" $as_nl"
98 # Find who we are. Look in the path if we contain no directory separator.
99 case $0 in
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102 for as_dir in $PATH
103 do
104 IFS=$as_save_IFS
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 done
108 IFS=$as_save_IFS
110 ;;
111 esac
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x; then
115 as_myself=$0
116 fi
117 if test ! -f "$as_myself"; then
118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 { (exit 1); exit 1; }
120 fi
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
136 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
139 as_expr=expr
140 else
141 as_expr=false
142 fi
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145 as_basename=basename
146 else
147 as_basename=false
148 fi
151 # Name of the executable.
152 as_me=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156 $as_echo X/"$0" |
157 sed '/^.*\/\([^/][^/]*\)\/*$/{
158 s//\1/
159 q
160 }
161 /^X\/\(\/\/\)$/{
162 s//\1/
163 q
164 }
165 /^X\/\(\/\).*/{
166 s//\1/
167 q
168 }
169 s/.*/./; q'`
171 # CDPATH.
172 $as_unset CDPATH
175 if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then
177 as_have_required=yes
178 else
179 as_have_required=no
180 fi
182 if test $as_have_required = yes && (eval ":
183 (as_func_return () {
184 (exit \$1)
185 }
186 as_func_success () {
187 as_func_return 0
188 }
189 as_func_failure () {
190 as_func_return 1
191 }
192 as_func_ret_success () {
193 return 0
194 }
195 as_func_ret_failure () {
196 return 1
197 }
199 exitcode=0
200 if as_func_success; then
201 :
202 else
203 exitcode=1
204 echo as_func_success failed.
205 fi
207 if as_func_failure; then
208 exitcode=1
209 echo as_func_failure succeeded.
210 fi
212 if as_func_ret_success; then
213 :
214 else
215 exitcode=1
216 echo as_func_ret_success failed.
217 fi
219 if as_func_ret_failure; then
220 exitcode=1
221 echo as_func_ret_failure succeeded.
222 fi
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225 :
226 else
227 exitcode=1
228 echo positional parameters were not saved.
229 fi
231 test \$exitcode = 0) || { (exit 1); exit 1; }
233 (
234 as_lineno_1=\$LINENO
235 as_lineno_2=\$LINENO
236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238 ") 2> /dev/null; then
239 :
240 else
241 as_candidate_shells=
242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 do
245 IFS=$as_save_IFS
246 test -z "$as_dir" && as_dir=.
247 case $as_dir in
248 /*)
249 for as_base in sh bash ksh sh5; do
250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251 done;;
252 esac
253 done
254 IFS=$as_save_IFS
257 for as_shell in $as_candidate_shells $SHELL; do
258 # Try only shells that exist, to save several forks.
259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260 { ("$as_shell") 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
273 fi
276 :
277 _ASEOF
278 }; then
279 CONFIG_SHELL=$as_shell
280 as_have_required=yes
281 if { "$as_shell" 2> /dev/null <<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 emulate sh
284 NULLCMD=:
285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
288 setopt NO_GLOB_SUBST
289 else
290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;;
292 esac
294 fi
297 :
298 (as_func_return () {
299 (exit $1)
300 }
301 as_func_success () {
302 as_func_return 0
303 }
304 as_func_failure () {
305 as_func_return 1
306 }
307 as_func_ret_success () {
308 return 0
309 }
310 as_func_ret_failure () {
311 return 1
312 }
314 exitcode=0
315 if as_func_success; then
316 :
317 else
318 exitcode=1
319 echo as_func_success failed.
320 fi
322 if as_func_failure; then
323 exitcode=1
324 echo as_func_failure succeeded.
325 fi
327 if as_func_ret_success; then
328 :
329 else
330 exitcode=1
331 echo as_func_ret_success failed.
332 fi
334 if as_func_ret_failure; then
335 exitcode=1
336 echo as_func_ret_failure succeeded.
337 fi
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
340 :
341 else
342 exitcode=1
343 echo positional parameters were not saved.
344 fi
346 test $exitcode = 0) || { (exit 1); exit 1; }
348 (
349 as_lineno_1=$LINENO
350 as_lineno_2=$LINENO
351 test "x$as_lineno_1" != "x$as_lineno_2" &&
352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
354 _ASEOF
355 }; then
356 break
357 fi
359 fi
361 done
363 if test "x$CONFIG_SHELL" != x; then
364 for as_var in BASH_ENV ENV
365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 done
367 export CONFIG_SHELL
368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369 fi
372 if test $as_have_required = no; then
373 echo This script requires a shell more modern than all the
374 echo shells that I found on your system. Please install a
375 echo modern shell, or manually run the script under such a
376 echo shell if you do have one.
377 { (exit 1); exit 1; }
378 fi
381 fi
383 fi
387 (eval "as_func_return () {
388 (exit \$1)
389 }
390 as_func_success () {
391 as_func_return 0
392 }
393 as_func_failure () {
394 as_func_return 1
395 }
396 as_func_ret_success () {
397 return 0
398 }
399 as_func_ret_failure () {
400 return 1
401 }
403 exitcode=0
404 if as_func_success; then
405 :
406 else
407 exitcode=1
408 echo as_func_success failed.
409 fi
411 if as_func_failure; then
412 exitcode=1
413 echo as_func_failure succeeded.
414 fi
416 if as_func_ret_success; then
417 :
418 else
419 exitcode=1
420 echo as_func_ret_success failed.
421 fi
423 if as_func_ret_failure; then
424 exitcode=1
425 echo as_func_ret_failure succeeded.
426 fi
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429 :
430 else
431 exitcode=1
432 echo positional parameters were not saved.
433 fi
435 test \$exitcode = 0") || {
436 echo No shell found that supports shell functions.
437 echo Please tell bug-autoconf@gnu.org about your system,
438 echo including any error possibly output before this message.
439 echo This can help us improve future autoconf versions.
440 echo Configuration will now proceed without shell functions.
441 }
445 as_lineno_1=$LINENO
446 as_lineno_2=$LINENO
447 test "x$as_lineno_1" != "x$as_lineno_2" &&
448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451 # uniformly replaced by the line number. The first 'sed' inserts a
452 # line-number line after each line using $LINENO; the second 'sed'
453 # does the real work. The second script uses 'N' to pair each
454 # line-number line with the line containing $LINENO, and appends
455 # trailing '-' during substitution so that $LINENO is not a special
456 # case at line end.
457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458 # scripts with optimization help from Paolo Bonzini. Blame Lee
459 # E. McMahon (1931-1989) for sed's syntax. :-)
460 sed -n '
461 p
462 /[$]LINENO/=
463 ' <$as_myself |
464 sed '
465 s/[$]LINENO.*/&-/
466 t lineno
467 b
468 :lineno
469 N
470 :loop
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472 t loop
473 s/-\n.*//
474 ' >$as_me.lineno &&
475 chmod +x "$as_me.lineno" ||
476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477 { (exit 1); exit 1; }; }
479 # Don't try to exec as it changes $[0], causing all sort of problems
480 # (the dirname of $[0] is not the place where we might find the
481 # original and so on. Autoconf is especially sensitive to this).
482 . "./$as_me.lineno"
483 # Exit status is that of the last command.
484 exit
485 }
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489 as_dirname=dirname
490 else
491 as_dirname=false
492 fi
494 ECHO_C= ECHO_N= ECHO_T=
495 case `echo -n x` in
496 -n*)
497 case `echo 'x\c'` in
498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
499 *) ECHO_C='\c';;
500 esac;;
501 *)
502 ECHO_N='-n';;
503 esac
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
506 as_expr=expr
507 else
508 as_expr=false
509 fi
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
514 else
515 rm -f conf$$.dir
516 mkdir conf$$.dir 2>/dev/null
517 fi
518 if (echo >conf$$.file) 2>/dev/null; then
519 if ln -s conf$$.file conf$$ 2>/dev/null; then
520 as_ln_s='ln -s'
521 # ... but there are two gotchas:
522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524 # In both cases, we have to default to `cp -p'.
525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526 as_ln_s='cp -p'
527 elif ln conf$$.file conf$$ 2>/dev/null; then
528 as_ln_s=ln
529 else
530 as_ln_s='cp -p'
531 fi
532 else
533 as_ln_s='cp -p'
534 fi
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536 rmdir conf$$.dir 2>/dev/null
538 if mkdir -p . 2>/dev/null; then
539 as_mkdir_p=:
540 else
541 test -d ./-p && rmdir ./-p
542 as_mkdir_p=false
543 fi
545 if test -x / >/dev/null 2>&1; then
546 as_test_x='test -x'
547 else
548 if ls -dL / >/dev/null 2>&1; then
549 as_ls_L_option=L
550 else
551 as_ls_L_option=
552 fi
553 as_test_x='
554 eval sh -c '\''
555 if test -d "$1"; then
556 test -d "$1/.";
557 else
558 case $1 in
559 -*)set "./$1";;
560 esac;
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
563 '\'' sh
564 '
565 fi
566 as_executable_p=$as_test_x
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
576 exec 7<&0 </dev/null 6>&1
578 # Name of the host.
579 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
580 # so uname gets run too.
581 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
583 #
584 # Initializations.
585 #
586 ac_default_prefix=/usr/local
587 ac_clean_files=
588 ac_config_libobj_dir=.
589 LIBOBJS=
590 cross_compiling=no
591 subdirs=
592 MFLAGS=
593 MAKEFLAGS=
594 SHELL=${CONFIG_SHELL-/bin/sh}
596 # Identity of this package.
597 PACKAGE_NAME='ChemShell'
598 PACKAGE_TARNAME='chemshell'
599 PACKAGE_VERSION='3.0'
600 PACKAGE_STRING='ChemShell 3.0'
601 PACKAGE_BUGREPORT='p.sherwood@dl.ac.uk'
603 ac_unique_file="../chemsh/chem.c"
604 ac_subst_vars='LTLIBOBJS
605 LIBOBJS
606 MPIINC
607 MAKEPROG
608 MAKESHELL
609 SP2SCRIPT
610 GA_F77_DEFS
611 GA_F77_INC
612 APPLIBS
613 SCRIPT_FLAGS
614 ARCH
615 PROG_DIRS
616 NUM_DIRS
617 OPT_DIRS
618 CORE_DIRS
619 MODULE_LIBS
620 PROGNAME
621 NUMERIC
622 EXTRAS
623 DLPOLY_CFLAGS
624 DLPOLY_CPPFLAGS
625 GULP_PARALLEL_FLAG
626 OPT_LDFLAGS
627 OPT_FFLAGS
628 GROMOS_FFLAGS
629 GROMOS_FC
630 LIBS_F90
631 MOPAC5_LDFLAGS
632 MOPAC5_CFLAGS
633 MOPAC5_EXTRAS
634 MOPAC5_FFLAGS
635 LD
636 TCLROOT
637 LIBTCL
638 TCL_INCLUDE
639 ARCHIVE
640 CPPTRAD
641 CPP
642 LDCFLAGS
643 MACHINE_CFLAGS
644 target_os
645 target_vendor
646 target_cpu
647 target
648 host_os
649 host_vendor
650 host_cpu
651 host
652 build_os
653 build_vendor
654 build_cpu
655 build
656 RANLIB
657 LN_S
658 ac_ct_F90
659 F90FLAGS
660 F90
661 ac_ct_F77
662 FFLAGS
663 F77
664 OBJEXT
665 EXEEXT
666 ac_ct_CC
667 CPPFLAGS
668 LDFLAGS
669 CFLAGS
670 CC
671 target_alias
672 host_alias
673 build_alias
674 LIBS
675 ECHO_T
676 ECHO_N
677 ECHO_C
678 DEFS
679 mandir
680 localedir
681 libdir
682 psdir
683 pdfdir
684 dvidir
685 htmldir
686 infodir
687 docdir
688 oldincludedir
689 includedir
690 localstatedir
691 sharedstatedir
692 sysconfdir
693 datadir
694 datarootdir
695 libexecdir
696 sbindir
697 bindir
698 program_transform_name
699 prefix
700 exec_prefix
701 PACKAGE_BUGREPORT
702 PACKAGE_STRING
703 PACKAGE_VERSION
704 PACKAGE_TARNAME
705 PACKAGE_NAME
706 PATH_SEPARATOR
707 SHELL'
708 ac_subst_files=''
709 ac_user_opts='
710 enable_option_checking
711 with_gamess_uk
712 with_gulp
713 with_ga
714 with_peigs
715 with_tcgmsg
716 with_mpi
717 with_integer8
718 '
719 ac_precious_vars='build_alias
720 host_alias
721 target_alias
722 CC
723 CFLAGS
724 LDFLAGS
725 LIBS
726 CPPFLAGS
727 F77
728 FFLAGS
729 F90
730 F90FLAGS'
733 # Initialize some variables set by options.
734 ac_init_help=
735 ac_init_version=false
736 ac_unrecognized_opts=
737 ac_unrecognized_sep=
738 # The variables have the same names as the options, with
739 # dashes changed to underlines.
740 cache_file=/dev/null
741 exec_prefix=NONE
742 no_create=
743 no_recursion=
744 prefix=NONE
745 program_prefix=NONE
746 program_suffix=NONE
747 program_transform_name=s,x,x,
748 silent=
749 site=
750 srcdir=
751 verbose=
752 x_includes=NONE
753 x_libraries=NONE
755 # Installation directory options.
756 # These are left unexpanded so users can "make install exec_prefix=/foo"
757 # and all the variables that are supposed to be based on exec_prefix
758 # by default will actually change.
759 # Use braces instead of parens because sh, perl, etc. also accept them.
760 # (The list follows the same order as the GNU Coding Standards.)
761 bindir='${exec_prefix}/bin'
762 sbindir='${exec_prefix}/sbin'
763 libexecdir='${exec_prefix}/libexec'
764 datarootdir='${prefix}/share'
765 datadir='${datarootdir}'
766 sysconfdir='${prefix}/etc'
767 sharedstatedir='${prefix}/com'
768 localstatedir='${prefix}/var'
769 includedir='${prefix}/include'
770 oldincludedir='/usr/include'
771 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
772 infodir='${datarootdir}/info'
773 htmldir='${docdir}'
774 dvidir='${docdir}'
775 pdfdir='${docdir}'
776 psdir='${docdir}'
777 libdir='${exec_prefix}/lib'
778 localedir='${datarootdir}/locale'
779 mandir='${datarootdir}/man'
781 ac_prev=
782 ac_dashdash=
783 for ac_option
784 do
785 # If the previous option needs an argument, assign it.
786 if test -n "$ac_prev"; then
787 eval $ac_prev=\$ac_option
788 ac_prev=
789 continue
790 fi
792 case $ac_option in
793 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
794 *) ac_optarg=yes ;;
795 esac
797 # Accept the important Cygnus configure options, so we can diagnose typos.
799 case $ac_dashdash$ac_option in
800 --)
801 ac_dashdash=yes ;;
803 -bindir | --bindir | --bindi | --bind | --bin | --bi)
804 ac_prev=bindir ;;
805 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
806 bindir=$ac_optarg ;;
808 -build | --build | --buil | --bui | --bu)
809 ac_prev=build_alias ;;
810 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
811 build_alias=$ac_optarg ;;
813 -cache-file | --cache-file | --cache-fil | --cache-fi \
814 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
815 ac_prev=cache_file ;;
816 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
817 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
818 cache_file=$ac_optarg ;;
820 --config-cache | -C)
821 cache_file=config.cache ;;
823 -datadir | --datadir | --datadi | --datad)
824 ac_prev=datadir ;;
825 -datadir=* | --datadir=* | --datadi=* | --datad=*)
826 datadir=$ac_optarg ;;
828 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
829 | --dataroo | --dataro | --datar)
830 ac_prev=datarootdir ;;
831 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
832 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
833 datarootdir=$ac_optarg ;;
835 -disable-* | --disable-*)
836 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
837 # Reject names that are not valid shell variable names.
838 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
839 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
840 { (exit 1); exit 1; }; }
841 ac_useropt_orig=$ac_useropt
842 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
843 case $ac_user_opts in
844 *"
845 "enable_$ac_useropt"
846 "*) ;;
847 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
848 ac_unrecognized_sep=', ';;
849 esac
850 eval enable_$ac_useropt=no ;;
852 -docdir | --docdir | --docdi | --doc | --do)
853 ac_prev=docdir ;;
854 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
855 docdir=$ac_optarg ;;
857 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
858 ac_prev=dvidir ;;
859 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
860 dvidir=$ac_optarg ;;
862 -enable-* | --enable-*)
863 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
864 # Reject names that are not valid shell variable names.
865 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
866 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
867 { (exit 1); exit 1; }; }
868 ac_useropt_orig=$ac_useropt
869 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
870 case $ac_user_opts in
871 *"
872 "enable_$ac_useropt"
873 "*) ;;
874 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
875 ac_unrecognized_sep=', ';;
876 esac
877 eval enable_$ac_useropt=\$ac_optarg ;;
879 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
880 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
881 | --exec | --exe | --ex)
882 ac_prev=exec_prefix ;;
883 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
884 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
885 | --exec=* | --exe=* | --ex=*)
886 exec_prefix=$ac_optarg ;;
888 -gas | --gas | --ga | --g)
889 # Obsolete; use --with-gas.
890 with_gas=yes ;;
892 -help | --help | --hel | --he | -h)
893 ac_init_help=long ;;
894 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
895 ac_init_help=recursive ;;
896 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
897 ac_init_help=short ;;
899 -host | --host | --hos | --ho)
900 ac_prev=host_alias ;;
901 -host=* | --host=* | --hos=* | --ho=*)
902 host_alias=$ac_optarg ;;
904 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
905 ac_prev=htmldir ;;
906 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
907 | --ht=*)
908 htmldir=$ac_optarg ;;
910 -includedir | --includedir | --includedi | --included | --include \
911 | --includ | --inclu | --incl | --inc)
912 ac_prev=includedir ;;
913 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
914 | --includ=* | --inclu=* | --incl=* | --inc=*)
915 includedir=$ac_optarg ;;
917 -infodir | --infodir | --infodi | --infod | --info | --inf)
918 ac_prev=infodir ;;
919 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
920 infodir=$ac_optarg ;;
922 -libdir | --libdir | --libdi | --libd)
923 ac_prev=libdir ;;
924 -libdir=* | --libdir=* | --libdi=* | --libd=*)
925 libdir=$ac_optarg ;;
927 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
928 | --libexe | --libex | --libe)
929 ac_prev=libexecdir ;;
930 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
931 | --libexe=* | --libex=* | --libe=*)
932 libexecdir=$ac_optarg ;;
934 -localedir | --localedir | --localedi | --localed | --locale)
935 ac_prev=localedir ;;
936 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
937 localedir=$ac_optarg ;;
939 -localstatedir | --localstatedir | --localstatedi | --localstated \
940 | --localstate | --localstat | --localsta | --localst | --locals)
941 ac_prev=localstatedir ;;
942 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
943 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
944 localstatedir=$ac_optarg ;;
946 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
947 ac_prev=mandir ;;
948 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
949 mandir=$ac_optarg ;;
951 -nfp | --nfp | --nf)
952 # Obsolete; use --without-fp.
953 with_fp=no ;;
955 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
956 | --no-cr | --no-c | -n)
957 no_create=yes ;;
959 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
960 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
961 no_recursion=yes ;;
963 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
964 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
965 | --oldin | --oldi | --old | --ol | --o)
966 ac_prev=oldincludedir ;;
967 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
968 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
969 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
970 oldincludedir=$ac_optarg ;;
972 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
973 ac_prev=prefix ;;
974 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
975 prefix=$ac_optarg ;;
977 -program-prefix | --program-prefix | --program-prefi | --program-pref \
978 | --program-pre | --program-pr | --program-p)
979 ac_prev=program_prefix ;;
980 -program-prefix=* | --program-prefix=* | --program-prefi=* \
981 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
982 program_prefix=$ac_optarg ;;
984 -program-suffix | --program-suffix | --program-suffi | --program-suff \
985 | --program-suf | --program-su | --program-s)
986 ac_prev=program_suffix ;;
987 -program-suffix=* | --program-suffix=* | --program-suffi=* \
988 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
989 program_suffix=$ac_optarg ;;
991 -program-transform-name | --program-transform-name \
992 | --program-transform-nam | --program-transform-na \
993 | --program-transform-n | --program-transform- \
994 | --program-transform | --program-transfor \
995 | --program-transfo | --program-transf \
996 | --program-trans | --program-tran \
997 | --progr-tra | --program-tr | --program-t)
998 ac_prev=program_transform_name ;;
999 -program-transform-name=* | --program-transform-name=* \
1000 | --program-transform-nam=* | --program-transform-na=* \
1001 | --program-transform-n=* | --program-transform-=* \
1002 | --program-transform=* | --program-transfor=* \
1003 | --program-transfo=* | --program-transf=* \
1004 | --program-trans=* | --program-tran=* \
1005 | --progr-tra=* | --program-tr=* | --program-t=*)
1006 program_transform_name=$ac_optarg ;;
1008 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1009 ac_prev=pdfdir ;;
1010 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1011 pdfdir=$ac_optarg ;;
1013 -psdir | --psdir | --psdi | --psd | --ps)
1014 ac_prev=psdir ;;
1015 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1016 psdir=$ac_optarg ;;
1018 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1019 | -silent | --silent | --silen | --sile | --sil)
1020 silent=yes ;;
1022 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1023 ac_prev=sbindir ;;
1024 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1025 | --sbi=* | --sb=*)
1026 sbindir=$ac_optarg ;;
1028 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1029 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1030 | --sharedst | --shareds | --shared | --share | --shar \
1031 | --sha | --sh)
1032 ac_prev=sharedstatedir ;;
1033 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1034 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1035 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1036 | --sha=* | --sh=*)
1037 sharedstatedir=$ac_optarg ;;
1039 -site | --site | --sit)
1040 ac_prev=site ;;
1041 -site=* | --site=* | --sit=*)
1042 site=$ac_optarg ;;
1044 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1045 ac_prev=srcdir ;;
1046 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1047 srcdir=$ac_optarg ;;
1049 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1050 | --syscon | --sysco | --sysc | --sys | --sy)
1051 ac_prev=sysconfdir ;;
1052 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1053 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1054 sysconfdir=$ac_optarg ;;
1056 -target | --target | --targe | --targ | --tar | --ta | --t)
1057 ac_prev=target_alias ;;
1058 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1059 target_alias=$ac_optarg ;;
1061 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1062 verbose=yes ;;
1064 -version | --version | --versio | --versi | --vers | -V)
1065 ac_init_version=: ;;
1067 -with-* | --with-*)
1068 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1069 # Reject names that are not valid shell variable names.
1070 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1071 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1072 { (exit 1); exit 1; }; }
1073 ac_useropt_orig=$ac_useropt
1074 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1075 case $ac_user_opts in
1076 *"
1077 "with_$ac_useropt"
1078 "*) ;;
1079 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1080 ac_unrecognized_sep=', ';;
1081 esac
1082 eval with_$ac_useropt=\$ac_optarg ;;
1084 -without-* | --without-*)
1085 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1086 # Reject names that are not valid shell variable names.
1087 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1088 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1089 { (exit 1); exit 1; }; }
1090 ac_useropt_orig=$ac_useropt
1091 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1092 case $ac_user_opts in
1093 *"
1094 "with_$ac_useropt"
1095 "*) ;;
1096 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1097 ac_unrecognized_sep=', ';;
1098 esac
1099 eval with_$ac_useropt=no ;;
1101 --x)
1102 # Obsolete; use --with-x.
1103 with_x=yes ;;
1105 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1106 | --x-incl | --x-inc | --x-in | --x-i)
1107 ac_prev=x_includes ;;
1108 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1109 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1110 x_includes=$ac_optarg ;;
1112 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1113 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1114 ac_prev=x_libraries ;;
1115 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1116 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1117 x_libraries=$ac_optarg ;;
1119 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1120 Try \`$0 --help' for more information." >&2
1121 { (exit 1); exit 1; }; }
1122 ;;
1124 *=*)
1125 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1126 # Reject names that are not valid shell variable names.
1127 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1128 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1129 { (exit 1); exit 1; }; }
1130 eval $ac_envvar=\$ac_optarg
1131 export $ac_envvar ;;
1133 *)
1134 # FIXME: should be removed in autoconf 3.0.
1135 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1136 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1137 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1138 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1139 ;;
1141 esac
1142 done
1144 if test -n "$ac_prev"; then
1145 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1146 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1147 { (exit 1); exit 1; }; }
1148 fi
1150 if test -n "$ac_unrecognized_opts"; then
1151 case $enable_option_checking in
1152 no) ;;
1153 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1154 { (exit 1); exit 1; }; } ;;
1155 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1156 esac
1157 fi
1159 # Check all directory arguments for consistency.
1160 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1161 datadir sysconfdir sharedstatedir localstatedir includedir \
1162 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1163 libdir localedir mandir
1164 do
1165 eval ac_val=\$$ac_var
1166 # Remove trailing slashes.
1167 case $ac_val in
1168 */ )
1169 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1170 eval $ac_var=\$ac_val;;
1171 esac
1172 # Be sure to have absolute directory names.
1173 case $ac_val in
1174 [\\/$]* | ?:[\\/]* ) continue;;
1175 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1176 esac
1177 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1178 { (exit 1); exit 1; }; }
1179 done
1181 # There might be people who depend on the old broken behavior: `$host'
1182 # used to hold the argument of --host etc.
1183 # FIXME: To remove some day.
1184 build=$build_alias
1185 host=$host_alias
1186 target=$target_alias
1188 # FIXME: To remove some day.
1189 if test "x$host_alias" != x; then
1190 if test "x$build_alias" = x; then
1191 cross_compiling=maybe
1192 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1193 If a cross compiler is detected then cross compile mode will be used." >&2
1194 elif test "x$build_alias" != "x$host_alias"; then
1195 cross_compiling=yes
1196 fi
1197 fi
1199 ac_tool_prefix=
1200 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1202 test "$silent" = yes && exec 6>/dev/null
1205 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1206 ac_ls_di=`ls -di .` &&
1207 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1208 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1209 { (exit 1); exit 1; }; }
1210 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1211 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1212 { (exit 1); exit 1; }; }
1215 # Find the source files, if location was not specified.
1216 if test -z "$srcdir"; then
1217 ac_srcdir_defaulted=yes
1218 # Try the directory containing this script, then the parent directory.
1219 ac_confdir=`$as_dirname -- "$as_myself" ||
1220 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1221 X"$as_myself" : 'X\(//\)[^/]' \| \
1222 X"$as_myself" : 'X\(//\)$' \| \
1223 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1224 $as_echo X"$as_myself" |
1225 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1226 s//\1/
1227 q
1228 }
1229 /^X\(\/\/\)[^/].*/{
1230 s//\1/
1231 q
1232 }
1233 /^X\(\/\/\)$/{
1234 s//\1/
1235 q
1236 }
1237 /^X\(\/\).*/{
1238 s//\1/
1239 q
1240 }
1241 s/.*/./; q'`
1242 srcdir=$ac_confdir
1243 if test ! -r "$srcdir/$ac_unique_file"; then
1244 srcdir=..
1245 fi
1246 else
1247 ac_srcdir_defaulted=no
1248 fi
1249 if test ! -r "$srcdir/$ac_unique_file"; then
1250 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1251 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1252 { (exit 1); exit 1; }; }
1253 fi
1254 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1255 ac_abs_confdir=`(
1256 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1257 { (exit 1); exit 1; }; }
1258 pwd)`
1259 # When building in place, set srcdir=.
1260 if test "$ac_abs_confdir" = "$ac_pwd"; then
1261 srcdir=.
1262 fi
1263 # Remove unnecessary trailing slashes from srcdir.
1264 # Double slashes in file names in object file debugging info
1265 # mess up M-x gdb in Emacs.
1266 case $srcdir in
1267 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1268 esac
1269 for ac_var in $ac_precious_vars; do
1270 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1271 eval ac_env_${ac_var}_value=\$${ac_var}
1272 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1273 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1274 done
1276 #
1277 # Report the --help message.
1278 #
1279 if test "$ac_init_help" = "long"; then
1280 # Omit some internal or obsolete options to make the list less imposing.
1281 # This message is too long to be a string in the A/UX 3.1 sh.
1282 cat <<_ACEOF
1283 \`configure' configures ChemShell 3.0 to adapt to many kinds of systems.
1285 Usage: $0 [OPTION]... [VAR=VALUE]...
1287 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1288 VAR=VALUE. See below for descriptions of some of the useful variables.
1290 Defaults for the options are specified in brackets.
1292 Configuration:
1293 -h, --help display this help and exit
1294 --help=short display options specific to this package
1295 --help=recursive display the short help of all the included packages
1296 -V, --version display version information and exit
1297 -q, --quiet, --silent do not print \`checking...' messages
1298 --cache-file=FILE cache test results in FILE [disabled]
1299 -C, --config-cache alias for \`--cache-file=config.cache'
1300 -n, --no-create do not create output files
1301 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1303 Installation directories:
1304 --prefix=PREFIX install architecture-independent files in PREFIX
1305 [$ac_default_prefix]
1306 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1307 [PREFIX]
1309 By default, \`make install' will install all the files in
1310 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1311 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1312 for instance \`--prefix=\$HOME'.
1314 For better control, use the options below.
1316 Fine tuning of the installation directories:
1317 --bindir=DIR user executables [EPREFIX/bin]
1318 --sbindir=DIR system admin executables [EPREFIX/sbin]
1319 --libexecdir=DIR program executables [EPREFIX/libexec]
1320 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1321 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1322 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1323 --libdir=DIR object code libraries [EPREFIX/lib]
1324 --includedir=DIR C header files [PREFIX/include]
1325 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1326 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1327 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1328 --infodir=DIR info documentation [DATAROOTDIR/info]
1329 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1330 --mandir=DIR man documentation [DATAROOTDIR/man]
1331 --docdir=DIR documentation root [DATAROOTDIR/doc/chemshell]
1332 --htmldir=DIR html documentation [DOCDIR]
1333 --dvidir=DIR dvi documentation [DOCDIR]
1334 --pdfdir=DIR pdf documentation [DOCDIR]
1335 --psdir=DIR ps documentation [DOCDIR]
1336 _ACEOF
1338 cat <<\_ACEOF
1340 System types:
1341 --build=BUILD configure for building on BUILD [guessed]
1342 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1343 --target=TARGET configure for building compilers for TARGET [HOST]
1344 _ACEOF
1345 fi
1347 if test -n "$ac_init_help"; then
1348 case $ac_init_help in
1349 short | recursive ) echo "Configuration of ChemShell 3.0:";;
1350 esac
1351 cat <<\_ACEOF
1353 Optional Packages:
1354 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1355 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1356 --with-gamess-uk use GAMESS-UK distribution specified
1357 --with-gulp use GULP distribution specified
1358 --with-ga use the Global Array tools (and optionally specify
1359 the location)
1360 --with-peigs use PEIGS distribution specified
1361 --with-tcgmsg use TCGMSG component of GA
1362 --with-mpi use MPI libraries as specified
1363 --with-integer8 use long (64bit) integers
1365 Some influential environment variables:
1366 CC C compiler command
1367 CFLAGS C compiler flags
1368 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1369 nonstandard directory <lib dir>
1370 LIBS libraries to pass to the linker, e.g. -l<library>
1371 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1372 you have headers in a nonstandard directory <include dir>
1373 F77 Fortran 77 compiler command
1374 FFLAGS Fortran 77 compiler flags
1375 F90 Fortran 90 compiler command
1376 F90FLAGS Fortran 90 compiler flags
1378 Use these variables to override the choices made by `configure' or to help
1379 it to find libraries and programs with nonstandard names/locations.
1381 Report bugs to <p.sherwood@dl.ac.uk>.
1382 _ACEOF
1383 ac_status=$?
1384 fi
1386 if test "$ac_init_help" = "recursive"; then
1387 # If there are subdirs, report their specific --help.
1388 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1389 test -d "$ac_dir" ||
1390 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1391 continue
1392 ac_builddir=.
1394 case "$ac_dir" in
1395 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1396 *)
1397 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1398 # A ".." for each directory in $ac_dir_suffix.
1399 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1400 case $ac_top_builddir_sub in
1401 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1402 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1403 esac ;;
1404 esac
1405 ac_abs_top_builddir=$ac_pwd
1406 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1407 # for backward compatibility:
1408 ac_top_builddir=$ac_top_build_prefix
1410 case $srcdir in
1411 .) # We are building in place.
1412 ac_srcdir=.
1413 ac_top_srcdir=$ac_top_builddir_sub
1414 ac_abs_top_srcdir=$ac_pwd ;;
1415 [\\/]* | ?:[\\/]* ) # Absolute name.
1416 ac_srcdir=$srcdir$ac_dir_suffix;
1417 ac_top_srcdir=$srcdir
1418 ac_abs_top_srcdir=$srcdir ;;
1419 *) # Relative name.
1420 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1421 ac_top_srcdir=$ac_top_build_prefix$srcdir
1422 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1423 esac
1424 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1426 cd "$ac_dir" || { ac_status=$?; continue; }
1427 # Check for guested configure.
1428 if test -f "$ac_srcdir/configure.gnu"; then
1429 echo &&
1430 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1431 elif test -f "$ac_srcdir/configure"; then
1432 echo &&
1433 $SHELL "$ac_srcdir/configure" --help=recursive
1434 else
1435 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1436 fi || ac_status=$?
1437 cd "$ac_pwd" || { ac_status=$?; break; }
1438 done
1439 fi
1441 test -n "$ac_init_help" && exit $ac_status
1442 if $ac_init_version; then
1443 cat <<\_ACEOF
1444 ChemShell configure 3.0
1445 generated by GNU Autoconf 2.63
1447 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1448 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1449 This configure script is free software; the Free Software Foundation
1450 gives unlimited permission to copy, distribute and modify it.
1451 _ACEOF
1452 exit
1453 fi
1454 cat >config.log <<_ACEOF
1455 This file contains any messages produced by compilers while
1456 running configure, to aid debugging if configure makes a mistake.
1458 It was created by ChemShell $as_me 3.0, which was
1459 generated by GNU Autoconf 2.63. Invocation command line was
1461 $ $0 $@
1463 _ACEOF
1464 exec 5>>config.log
1465 {
1466 cat <<_ASUNAME
1467 ## --------- ##
1468 ## Platform. ##
1469 ## --------- ##
1471 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1472 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1473 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1474 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1475 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1477 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1478 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1480 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1481 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1482 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1483 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1484 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1485 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1486 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1488 _ASUNAME
1490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1491 for as_dir in $PATH
1492 do
1493 IFS=$as_save_IFS
1494 test -z "$as_dir" && as_dir=.
1495 $as_echo "PATH: $as_dir"
1496 done
1497 IFS=$as_save_IFS
1499 } >&5
1501 cat >&5 <<_ACEOF
1504 ## ----------- ##
1505 ## Core tests. ##
1506 ## ----------- ##
1508 _ACEOF
1511 # Keep a trace of the command line.
1512 # Strip out --no-create and --no-recursion so they do not pile up.
1513 # Strip out --silent because we don't want to record it for future runs.
1514 # Also quote any args containing shell meta-characters.
1515 # Make two passes to allow for proper duplicate-argument suppression.
1516 ac_configure_args=
1517 ac_configure_args0=
1518 ac_configure_args1=
1519 ac_must_keep_next=false
1520 for ac_pass in 1 2
1521 do
1522 for ac_arg
1523 do
1524 case $ac_arg in
1525 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1526 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1527 | -silent | --silent | --silen | --sile | --sil)
1528 continue ;;
1529 *\'*)
1530 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1531 esac
1532 case $ac_pass in
1533 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1534 2)
1535 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1536 if test $ac_must_keep_next = true; then
1537 ac_must_keep_next=false # Got value, back to normal.
1538 else
1539 case $ac_arg in
1540 *=* | --config-cache | -C | -disable-* | --disable-* \
1541 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1542 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1543 | -with-* | --with-* | -without-* | --without-* | --x)
1544 case "$ac_configure_args0 " in
1545 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1546 esac
1547 ;;
1548 -* ) ac_must_keep_next=true ;;
1549 esac
1550 fi
1551 ac_configure_args="$ac_configure_args '$ac_arg'"
1552 ;;
1553 esac
1554 done
1555 done
1556 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1557 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1559 # When interrupted or exit'd, cleanup temporary files, and complete
1560 # config.log. We remove comments because anyway the quotes in there
1561 # would cause problems or look ugly.
1562 # WARNING: Use '\'' to represent an apostrophe within the trap.
1563 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1564 trap 'exit_status=$?
1565 # Save into config.log some information that might help in debugging.
1566 {
1567 echo
1569 cat <<\_ASBOX
1570 ## ---------------- ##
1571 ## Cache variables. ##
1572 ## ---------------- ##
1573 _ASBOX
1574 echo
1575 # The following way of writing the cache mishandles newlines in values,
1576 (
1577 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1578 eval ac_val=\$$ac_var
1579 case $ac_val in #(
1580 *${as_nl}*)
1581 case $ac_var in #(
1582 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1583 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1584 esac
1585 case $ac_var in #(
1586 _ | IFS | as_nl) ;; #(
1587 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1588 *) $as_unset $ac_var ;;
1589 esac ;;
1590 esac
1591 done
1592 (set) 2>&1 |
1593 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1594 *${as_nl}ac_space=\ *)
1595 sed -n \
1596 "s/'\''/'\''\\\\'\'''\''/g;
1597 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1598 ;; #(
1599 *)
1600 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1601 ;;
1602 esac |
1603 sort
1604 )
1605 echo
1607 cat <<\_ASBOX
1608 ## ----------------- ##
1609 ## Output variables. ##
1610 ## ----------------- ##
1611 _ASBOX
1612 echo
1613 for ac_var in $ac_subst_vars
1614 do
1615 eval ac_val=\$$ac_var
1616 case $ac_val in
1617 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1618 esac
1619 $as_echo "$ac_var='\''$ac_val'\''"
1620 done | sort
1621 echo
1623 if test -n "$ac_subst_files"; then
1624 cat <<\_ASBOX
1625 ## ------------------- ##
1626 ## File substitutions. ##
1627 ## ------------------- ##
1628 _ASBOX
1629 echo
1630 for ac_var in $ac_subst_files
1631 do
1632 eval ac_val=\$$ac_var
1633 case $ac_val in
1634 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1635 esac
1636 $as_echo "$ac_var='\''$ac_val'\''"
1637 done | sort
1638 echo
1639 fi
1641 if test -s confdefs.h; then
1642 cat <<\_ASBOX
1643 ## ----------- ##
1644 ## confdefs.h. ##
1645 ## ----------- ##
1646 _ASBOX
1647 echo
1648 cat confdefs.h
1649 echo
1650 fi
1651 test "$ac_signal" != 0 &&
1652 $as_echo "$as_me: caught signal $ac_signal"
1653 $as_echo "$as_me: exit $exit_status"
1654 } >&5
1655 rm -f core *.core core.conftest.* &&
1656 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1657 exit $exit_status
1658 ' 0
1659 for ac_signal in 1 2 13 15; do
1660 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1661 done
1662 ac_signal=0
1664 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1665 rm -f -r conftest* confdefs.h
1667 # Predefined preprocessor variables.
1669 cat >>confdefs.h <<_ACEOF
1670 #define PACKAGE_NAME "$PACKAGE_NAME"
1671 _ACEOF
1674 cat >>confdefs.h <<_ACEOF
1675 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1676 _ACEOF
1679 cat >>confdefs.h <<_ACEOF
1680 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1681 _ACEOF
1684 cat >>confdefs.h <<_ACEOF
1685 #define PACKAGE_STRING "$PACKAGE_STRING"
1686 _ACEOF
1689 cat >>confdefs.h <<_ACEOF
1690 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1691 _ACEOF
1694 # Let the site file select an alternate cache file if it wants to.
1695 # Prefer an explicitly selected file to automatically selected ones.
1696 ac_site_file1=NONE
1697 ac_site_file2=NONE
1698 if test -n "$CONFIG_SITE"; then
1699 ac_site_file1=$CONFIG_SITE
1700 elif test "x$prefix" != xNONE; then
1701 ac_site_file1=$prefix/share/config.site
1702 ac_site_file2=$prefix/etc/config.site
1703 else
1704 ac_site_file1=$ac_default_prefix/share/config.site
1705 ac_site_file2=$ac_default_prefix/etc/config.site
1706 fi
1707 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1708 do
1709 test "x$ac_site_file" = xNONE && continue
1710 if test -r "$ac_site_file"; then
1711 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1712 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1713 sed 's/^/| /' "$ac_site_file" >&5
1714 . "$ac_site_file"
1715 fi
1716 done
1718 if test -r "$cache_file"; then
1719 # Some versions of bash will fail to source /dev/null (special
1720 # files actually), so we avoid doing that.
1721 if test -f "$cache_file"; then
1722 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1723 $as_echo "$as_me: loading cache $cache_file" >&6;}
1724 case $cache_file in
1725 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1726 *) . "./$cache_file";;
1727 esac
1728 fi
1729 else
1730 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1731 $as_echo "$as_me: creating cache $cache_file" >&6;}
1732 >$cache_file
1733 fi
1735 # Check that the precious variables saved in the cache have kept the same
1736 # value.
1737 ac_cache_corrupted=false
1738 for ac_var in $ac_precious_vars; do
1739 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1740 eval ac_new_set=\$ac_env_${ac_var}_set
1741 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1742 eval ac_new_val=\$ac_env_${ac_var}_value
1743 case $ac_old_set,$ac_new_set in
1744 set,)
1745 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1746 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1747 ac_cache_corrupted=: ;;
1748 ,set)
1749 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1750 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1751 ac_cache_corrupted=: ;;
1752 ,);;
1753 *)
1754 if test "x$ac_old_val" != "x$ac_new_val"; then
1755 # differences in whitespace do not lead to failure.
1756 ac_old_val_w=`echo x $ac_old_val`
1757 ac_new_val_w=`echo x $ac_new_val`
1758 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1759 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1760 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1761 ac_cache_corrupted=:
1762 else
1763 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1764 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1765 eval $ac_var=\$ac_old_val
1766 fi
1767 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1768 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1769 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1770 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1771 fi;;
1772 esac
1773 # Pass precious variables to config.status.
1774 if test "$ac_new_set" = set; then
1775 case $ac_new_val in
1776 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1777 *) ac_arg=$ac_var=$ac_new_val ;;
1778 esac
1779 case " $ac_configure_args " in
1780 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1781 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1782 esac
1783 fi
1784 done
1785 if $ac_cache_corrupted; then
1786 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1787 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1788 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1789 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1790 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1791 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1792 { (exit 1); exit 1; }; }
1793 fi
1819 ac_ext=c
1820 ac_cpp='$CPP $CPPFLAGS'
1821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1827 ac_config_headers="$ac_config_headers config.h"
1830 MAKESHELL='/bin/sh -e'
1831 MAKEPROG='make'
1833 PARALLEL=0
1834 #
1835 # Enable arguments
1836 #
1837 { $as_echo "$as_me:$LINENO: checking if direct linking with GAMESS-UK wanted" >&5
1838 $as_echo_n "checking if direct linking with GAMESS-UK wanted... " >&6; }
1839 LINK_GAMESS=0
1841 # Check whether --with-gamess-uk was given.
1842 if test "${with_gamess_uk+set}" = set; then
1843 withval=$with_gamess_uk; if test "$withval" = yes; then
1844 { { $as_echo "$as_me:$LINENO: error: \"Provide the root directory of GAMESS-UK\"" >&5
1845 $as_echo "$as_me: error: \"Provide the root directory of GAMESS-UK\"" >&2;}
1846 { (exit 1); exit 1; }; }
1847 elif test "$withval" = no; then
1848 LINK_GAMESS=0
1849 { $as_echo "$as_me:$LINENO: result: NO" >&5
1850 $as_echo "NO" >&6; }
1851 else
1852 LINK_GAMESS=1
1853 gamessukdir=$withval
1854 cat >>confdefs.h <<\_ACEOF
1855 #define GAMESS 1
1856 _ACEOF
1858 { $as_echo "$as_me:$LINENO: result: $withval" >&5
1859 $as_echo "$withval" >&6; }
1860 fi
1861 else
1862 { $as_echo "$as_me:$LINENO: result: no" >&5
1863 $as_echo "no" >&6; }
1864 fi
1866 export LINK_GAMESS
1869 { $as_echo "$as_me:$LINENO: checking if direct linking with GULP wanted" >&5
1870 $as_echo_n "checking if direct linking with GULP wanted... " >&6; }
1871 LINK_GULP=0
1873 # Check whether --with-gulp was given.
1874 if test "${with_gulp+set}" = set; then
1875 withval=$with_gulp; if test "$withval" = yes; then
1876 { { $as_echo "$as_me:$LINENO: error: \"Provide the root directory of GULP\"" >&5
1877 $as_echo "$as_me: error: \"Provide the root directory of GULP\"" >&2;}
1878 { (exit 1); exit 1; }; }
1879 elif test "$withval" = no; then
1880 LINK_GULP=0
1881 { $as_echo "$as_me:$LINENO: result: NO" >&5
1882 $as_echo "NO" >&6; }
1883 else
1884 LINK_GULP=1
1885 gulpdir=$withval
1886 cat >>confdefs.h <<\_ACEOF
1887 #define GULP 1
1888 _ACEOF
1890 { $as_echo "$as_me:$LINENO: result: $withval" >&5
1891 $as_echo "$withval" >&6; }
1892 fi
1893 else
1894 { $as_echo "$as_me:$LINENO: result: no" >&5
1895 $as_echo "no" >&6; }
1896 fi
1898 export LINK_GULP
1900 { $as_echo "$as_me:$LINENO: checking if GA-based parallelism is needed" >&5
1901 $as_echo_n "checking if GA-based parallelism is needed... " >&6; }
1902 LINK_GA=0
1904 # Check whether --with-ga was given.
1905 if test "${with_ga+set}" = set; then
1906 withval=$with_ga; if test "$withval" = yes; then
1907 LINK_GA=1
1908 PARALLEL=1
1909 gadir=../../g
1910 if test $LINK_GAMESS -eq 1
1911 then
1912 gadir=$gamessukdir/g
1913 fi
1914 { $as_echo "$as_me:$LINENO: result: YES" >&5
1915 $as_echo "YES" >&6; }
1916 elif test "$withval" = no; then
1917 LINK_GA=0
1918 { $as_echo "$as_me:$LINENO: result: NO" >&5
1919 $as_echo "NO" >&6; }
1920 else
1921 LINK_GA=1
1922 PARALLEL=1
1923 gadir=$withval
1924 cat >>confdefs.h <<\_ACEOF
1925 #define GA 1
1926 _ACEOF
1928 { $as_echo "$as_me:$LINENO: result: $withval" >&5
1929 $as_echo "$withval" >&6; }
1930 fi
1931 else
1932 { $as_echo "$as_me:$LINENO: result: no" >&5
1933 $as_echo "no" >&6; }
1934 fi
1936 export LINK_GA
1938 #
1939 { $as_echo "$as_me:$LINENO: checking if Peigs librariy" >&5
1940 $as_echo_n "checking if Peigs librariy... " >&6; }
1941 LINK_PEIGS=0
1943 # Check whether --with-peigs was given.
1944 if test "${with_peigs+set}" = set; then
1945 withval=$with_peigs; if test "$withval" = yes; then
1946 LINK_PEIGS=1
1947 if test $LINK_GAMESS -eq 0
1948 then
1949 echo Peigs not available unless GAMESS-UK is part of the build
1950 exit -1
1951 fi
1952 peigsdir=$gamessukdir/peigs
1953 { $as_echo "$as_me:$LINENO: result: YES" >&5
1954 $as_echo "YES" >&6; }
1955 elif test "$withval" = no; then
1956 LINK_PEIGS=0
1957 { $as_echo "$as_me:$LINENO: result: NO" >&5
1958 $as_echo "NO" >&6; }
1959 else
1960 LINK_PEIGS=1
1961 peigsdir=$withval
1962 cat >>confdefs.h <<\_ACEOF
1963 #define PEIGS 1
1964 _ACEOF
1966 { $as_echo "$as_me:$LINENO: result: $withval" >&5
1967 $as_echo "$withval" >&6; }
1968 fi
1969 else
1970 { $as_echo "$as_me:$LINENO: result: no" >&5
1971 $as_echo "no" >&6; }
1972 fi
1974 export LINK_PEIGS
1978 #
1979 { $as_echo "$as_me:$LINENO: checking if TCGMSG requested build" >&5
1980 $as_echo_n "checking if TCGMSG requested build... " >&6; }
1981 SKIP_TCGMSG=0
1983 # Check whether --with-tcgmsg was given.
1984 if test "${with_tcgmsg+set}" = set; then
1985 withval=$with_tcgmsg; if test "$withval" = yes; then
1986 if test $LINK_GA -eq 0
1987 then
1988 echo TCGMSG not available unless GA build
1989 exit -1
1990 fi
1991 { $as_echo "$as_me:$LINENO: result: YES" >&5
1992 $as_echo "YES" >&6; }
1993 elif test "$withval" = no; then
1994 SKIP_TCGMSG=1
1995 { $as_echo "$as_me:$LINENO: result: NO" >&5
1996 $as_echo "NO" >&6; }
1997 else
1998 SKIP_TCGMSG=0
1999 echo invalid setting --with-tcgmsg= $withval
2000 { $as_echo "$as_me:$LINENO: result: $withval" >&5
2001 $as_echo "$withval" >&6; }
2002 fi
2003 else
2004 { $as_echo "$as_me:$LINENO: result: no" >&5
2005 $as_echo "no" >&6; }
2006 fi
2008 export SKIP_TCGMSG
2011 # Check for MPI
2012 { $as_echo "$as_me:$LINENO: checking if linking to MPI is needed" >&5
2013 $as_echo_n "checking if linking to MPI is needed... " >&6; }
2014 LINK_MPI=0
2016 # Check whether --with-mpi was given.
2017 if test "${with_mpi+set}" = set; then
2018 withval=$with_mpi; if test "$withval" = "yes"; then
2019 LINK_MPI=1
2020 PARALLEL=1
2021 #
2022 # need mpi defaults here (? take from environment)
2023 #
2024 #
2025 { $as_echo "$as_me:$LINENO: result: YES" >&5
2026 $as_echo "YES" >&6; }
2027 elif test "$withval" = "no"; then
2028 LINK_MPI=0
2029 { $as_echo "$as_me:$LINENO: result: NO" >&5
2030 $as_echo "NO" >&6; }
2031 else
2032 LINK_MPI=1
2033 LIBMPI="-lmpi"
2034 PARALLEL=1
2035 MPI_INCLUDE="-I $withval/include"
2036 MPI_LIB="-I $withval/lib"
2037 cat >>confdefs.h <<\_ACEOF
2038 #define MPI 1
2039 _ACEOF
2041 { $as_echo "$as_me:$LINENO: result: $withval" >&5
2042 $as_echo "$withval" >&6; }
2043 fi
2044 else
2045 { $as_echo "$as_me:$LINENO: result: no" >&5
2046 $as_echo "no" >&6; }
2047 fi
2049 export LINK_MPI
2052 # Check for integer8
2053 { $as_echo "$as_me:$LINENO: checking if integer*8 requested" >&5
2054 $as_echo_n "checking if integer*8 requested... " >&6; }
2055 INTEGER8=0
2057 # Check whether --with-integer8 was given.
2058 if test "${with_integer8+set}" = set; then
2059 withval=$with_integer8; if test "$withval" = yes; then
2060 INTEGER8=1
2061 #
2062 { $as_echo "$as_me:$LINENO: result: YES" >&5
2063 $as_echo "YES" >&6; }
2064 elif test "$withval" = no; then
2065 INTEGER8=0
2066 { $as_echo "$as_me:$LINENO: result: NO" >&5
2067 $as_echo "NO" >&6; }
2068 else
2069 INTEGER8=1
2070 { $as_echo "$as_me:$LINENO: result: YES" >&5
2071 $as_echo "YES" >&6; }
2072 fi
2073 else
2074 { $as_echo "$as_me:$LINENO: result: no" >&5
2075 $as_echo "no" >&6; }
2076 fi
2078 export INTEGER8
2080 # Save User-specified flags
2081 # and may need additional (gromos, mopac.. here?)
2082 user_CFLAGS=${CFLAGS:-unset}
2083 user_FFLAGS=${FFLAGS:-unset}
2084 user_F90FLAGS=${F90FLAGS:-unset}
2085 user_F90=${F90:-unset}
2086 user_F77=${F77:-unset}
2087 user_LD=${LD:-unset}
2088 user_LDFLAGS=${LDFLAGS:-unset}
2089 user_LDCFLAGS=${LDCFLAGS:-unset}
2091 if test $user_F90 != 'unset'
2092 then
2093 if test $user_F77 == 'unset'
2094 then
2095 user_F77=$user_F90
2096 F77=$F90
2097 fi
2098 fi
2100 #
2101 # Check arguments for validity to catch any mis-spellings
2102 #
2103 crash=0
2104 for x in $*
2105 do
2106 ok=0
2107 t1=`echo $x | awk -F= '{print $1}'`
2108 t2=`echo $x | awk -F= '{print $2}'`
2109 if test $t1 = '--with-gamess-uk';then ok=1; fi
2110 if test $t1 = '--with-gulp';then ok=1; fi
2111 if test $t1 = '--with-mpi';
2112 then
2113 ok=1;
2114 if test "$t2" != ""; then echo '--with-mpi doesnt accept an mpi location';crash=1;fi
2115 fi
2116 if test $t1 = '--with-peigs';then ok=1; fi
2117 if test $t1 = '--with-ga';then ok=1; fi
2118 if test $t1 = '--with-integer8';then ok=1; fi
2119 if test $t1 = '--with-tcgmsg';then ok=1; fi
2120 if test $ok -eq 0; then echo 'Invalid argument ' $t1; crash=1; fi
2121 done
2122 if test $crash -eq 1; then exit; fi
2124 #
2125 echo "User-supplied flags:"
2126 echo "F90: $user_F90"
2127 echo "F77: $user_F77"
2128 echo "CFLAGS: $user_CFLAGS"
2129 echo "FFLAGS: $user_FFLAGS"
2130 echo "F90FLAGS: $user_F90FLAGS"
2131 echo "LDFLAGS: $user_LDFLAGS"
2132 echo "LDCFLAGS: $user_LDCFLAGS"
2134 # Switches for graphical capabilities (pretty much obsolete)
2135 USE_TK=0
2136 export USE_TK
2137 USE_OPENGL=0
2138 export USE_OPENGL
2139 USE_MESA=0
2140 export USE_MESA
2142 # Checks for programs.
2143 # one of the commented out ones sets LD (may be needed later)
2144 ac_ext=c
2145 ac_cpp='$CPP $CPPFLAGS'
2146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2149 if test -n "$ac_tool_prefix"; then
2150 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2151 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2152 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2153 $as_echo_n "checking for $ac_word... " >&6; }
2154 if test "${ac_cv_prog_CC+set}" = set; then
2155 $as_echo_n "(cached) " >&6
2156 else
2157 if test -n "$CC"; then
2158 ac_cv_prog_CC="$CC" # Let the user override the test.
2159 else
2160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2161 for as_dir in $PATH
2162 do
2163 IFS=$as_save_IFS
2164 test -z "$as_dir" && as_dir=.
2165 for ac_exec_ext in '' $ac_executable_extensions; do
2166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2167 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2168 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2169 break 2
2170 fi
2171 done
2172 done
2173 IFS=$as_save_IFS
2175 fi
2176 fi
2177 CC=$ac_cv_prog_CC
2178 if test -n "$CC"; then
2179 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2180 $as_echo "$CC" >&6; }
2181 else
2182 { $as_echo "$as_me:$LINENO: result: no" >&5
2183 $as_echo "no" >&6; }
2184 fi
2187 fi
2188 if test -z "$ac_cv_prog_CC"; then
2189 ac_ct_CC=$CC
2190 # Extract the first word of "gcc", so it can be a program name with args.
2191 set dummy gcc; ac_word=$2
2192 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2193 $as_echo_n "checking for $ac_word... " >&6; }
2194 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2195 $as_echo_n "(cached) " >&6
2196 else
2197 if test -n "$ac_ct_CC"; then
2198 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2199 else
2200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2201 for as_dir in $PATH
2202 do
2203 IFS=$as_save_IFS
2204 test -z "$as_dir" && as_dir=.
2205 for ac_exec_ext in '' $ac_executable_extensions; do
2206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2207 ac_cv_prog_ac_ct_CC="gcc"
2208 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2209 break 2
2210 fi
2211 done
2212 done
2213 IFS=$as_save_IFS
2215 fi
2216 fi
2217 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2218 if test -n "$ac_ct_CC"; then
2219 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2220 $as_echo "$ac_ct_CC" >&6; }
2221 else
2222 { $as_echo "$as_me:$LINENO: result: no" >&5
2223 $as_echo "no" >&6; }
2224 fi
2226 if test "x$ac_ct_CC" = x; then
2227 CC=""
2228 else
2229 case $cross_compiling:$ac_tool_warned in
2230 yes:)
2231 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2232 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2233 ac_tool_warned=yes ;;
2234 esac
2235 CC=$ac_ct_CC
2236 fi
2237 else
2238 CC="$ac_cv_prog_CC"
2239 fi
2241 if test -z "$CC"; then
2242 if test -n "$ac_tool_prefix"; then
2243 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2244 set dummy ${ac_tool_prefix}cc; ac_word=$2
2245 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2246 $as_echo_n "checking for $ac_word... " >&6; }
2247 if test "${ac_cv_prog_CC+set}" = set; then
2248 $as_echo_n "(cached) " >&6
2249 else
2250 if test -n "$CC"; then
2251 ac_cv_prog_CC="$CC" # Let the user override the test.
2252 else
2253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2254 for as_dir in $PATH
2255 do
2256 IFS=$as_save_IFS
2257 test -z "$as_dir" && as_dir=.
2258 for ac_exec_ext in '' $ac_executable_extensions; do
2259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2260 ac_cv_prog_CC="${ac_tool_prefix}cc"
2261 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2262 break 2
2263 fi
2264 done
2265 done
2266 IFS=$as_save_IFS
2268 fi
2269 fi
2270 CC=$ac_cv_prog_CC
2271 if test -n "$CC"; then
2272 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2273 $as_echo "$CC" >&6; }
2274 else
2275 { $as_echo "$as_me:$LINENO: result: no" >&5
2276 $as_echo "no" >&6; }
2277 fi
2280 fi
2281 fi
2282 if test -z "$CC"; then
2283 # Extract the first word of "cc", so it can be a program name with args.
2284 set dummy cc; ac_word=$2
2285 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2286 $as_echo_n "checking for $ac_word... " >&6; }
2287 if test "${ac_cv_prog_CC+set}" = set; then
2288 $as_echo_n "(cached) " >&6
2289 else
2290 if test -n "$CC"; then
2291 ac_cv_prog_CC="$CC" # Let the user override the test.
2292 else
2293 ac_prog_rejected=no
2294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2295 for as_dir in $PATH
2296 do
2297 IFS=$as_save_IFS
2298 test -z "$as_dir" && as_dir=.
2299 for ac_exec_ext in '' $ac_executable_extensions; do
2300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2301 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2302 ac_prog_rejected=yes
2303 continue
2304 fi
2305 ac_cv_prog_CC="cc"
2306 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2307 break 2
2308 fi
2309 done
2310 done
2311 IFS=$as_save_IFS
2313 if test $ac_prog_rejected = yes; then
2314 # We found a bogon in the path, so make sure we never use it.
2315 set dummy $ac_cv_prog_CC
2316 shift
2317 if test $# != 0; then
2318 # We chose a different compiler from the bogus one.
2319 # However, it has the same basename, so the bogon will be chosen
2320 # first if we set CC to just the basename; use the full file name.
2321 shift
2322 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2323 fi
2324 fi
2325 fi
2326 fi
2327 CC=$ac_cv_prog_CC
2328 if test -n "$CC"; then
2329 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2330 $as_echo "$CC" >&6; }
2331 else
2332 { $as_echo "$as_me:$LINENO: result: no" >&5
2333 $as_echo "no" >&6; }
2334 fi
2337 fi
2338 if test -z "$CC"; then
2339 if test -n "$ac_tool_prefix"; then
2340 for ac_prog in cl.exe
2341 do
2342 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2343 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2344 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2345 $as_echo_n "checking for $ac_word... " >&6; }
2346 if test "${ac_cv_prog_CC+set}" = set; then
2347 $as_echo_n "(cached) " >&6
2348 else
2349 if test -n "$CC"; then
2350 ac_cv_prog_CC="$CC" # Let the user override the test.
2351 else
2352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2353 for as_dir in $PATH
2354 do
2355 IFS=$as_save_IFS
2356 test -z "$as_dir" && as_dir=.
2357 for ac_exec_ext in '' $ac_executable_extensions; do
2358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2359 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2360 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2361 break 2
2362 fi
2363 done
2364 done
2365 IFS=$as_save_IFS
2367 fi
2368 fi
2369 CC=$ac_cv_prog_CC
2370 if test -n "$CC"; then
2371 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2372 $as_echo "$CC" >&6; }
2373 else
2374 { $as_echo "$as_me:$LINENO: result: no" >&5
2375 $as_echo "no" >&6; }
2376 fi
2379 test -n "$CC" && break
2380 done
2381 fi
2382 if test -z "$CC"; then
2383 ac_ct_CC=$CC
2384 for ac_prog in cl.exe
2385 do
2386 # Extract the first word of "$ac_prog", so it can be a program name with args.
2387 set dummy $ac_prog; ac_word=$2
2388 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2389 $as_echo_n "checking for $ac_word... " >&6; }
2390 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2391 $as_echo_n "(cached) " >&6
2392 else
2393 if test -n "$ac_ct_CC"; then
2394 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2395 else
2396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2397 for as_dir in $PATH
2398 do
2399 IFS=$as_save_IFS
2400 test -z "$as_dir" && as_dir=.
2401 for ac_exec_ext in '' $ac_executable_extensions; do
2402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2403 ac_cv_prog_ac_ct_CC="$ac_prog"
2404 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2405 break 2
2406 fi
2407 done
2408 done
2409 IFS=$as_save_IFS
2411 fi
2412 fi
2413 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2414 if test -n "$ac_ct_CC"; then
2415 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2416 $as_echo "$ac_ct_CC" >&6; }
2417 else
2418 { $as_echo "$as_me:$LINENO: result: no" >&5
2419 $as_echo "no" >&6; }
2420 fi
2423 test -n "$ac_ct_CC" && break
2424 done
2426 if test "x$ac_ct_CC" = x; then
2427 CC=""
2428 else
2429 case $cross_compiling:$ac_tool_warned in
2430 yes:)
2431 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2432 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2433 ac_tool_warned=yes ;;
2434 esac
2435 CC=$ac_ct_CC
2436 fi
2437 fi
2439 fi
2442 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2443 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2444 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2445 See \`config.log' for more details." >&5
2446 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2447 See \`config.log' for more details." >&2;}
2448 { (exit 1); exit 1; }; }; }
2450 # Provide some information about the compiler.
2451 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2452 set X $ac_compile
2453 ac_compiler=$2
2454 { (ac_try="$ac_compiler --version >&5"
2455 case "(($ac_try" in
2456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2457 *) ac_try_echo=$ac_try;;
2458 esac
2459 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2460 $as_echo "$ac_try_echo") >&5
2461 (eval "$ac_compiler --version >&5") 2>&5
2462 ac_status=$?
2463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464 (exit $ac_status); }
2465 { (ac_try="$ac_compiler -v >&5"
2466 case "(($ac_try" in
2467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2468 *) ac_try_echo=$ac_try;;
2469 esac
2470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2471 $as_echo "$ac_try_echo") >&5
2472 (eval "$ac_compiler -v >&5") 2>&5
2473 ac_status=$?
2474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475 (exit $ac_status); }
2476 { (ac_try="$ac_compiler -V >&5"
2477 case "(($ac_try" in
2478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2479 *) ac_try_echo=$ac_try;;
2480 esac
2481 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2482 $as_echo "$ac_try_echo") >&5
2483 (eval "$ac_compiler -V >&5") 2>&5
2484 ac_status=$?
2485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486 (exit $ac_status); }
2488 cat >conftest.$ac_ext <<_ACEOF
2489 /* confdefs.h. */
2490 _ACEOF
2491 cat confdefs.h >>conftest.$ac_ext
2492 cat >>conftest.$ac_ext <<_ACEOF
2493 /* end confdefs.h. */
2495 int
2496 main ()
2497 {
2499 ;
2500 return 0;
2501 }
2502 _ACEOF
2503 ac_clean_files_save=$ac_clean_files
2504 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2505 # Try to create an executable without -o first, disregard a.out.
2506 # It will help us diagnose broken compilers, and finding out an intuition
2507 # of exeext.
2508 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2509 $as_echo_n "checking for C compiler default output file name... " >&6; }
2510 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2512 # The possible output files:
2513 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2515 ac_rmfiles=
2516 for ac_file in $ac_files
2517 do
2518 case $ac_file in
2519 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2520 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2521 esac
2522 done
2523 rm -f $ac_rmfiles
2525 if { (ac_try="$ac_link_default"
2526 case "(($ac_try" in
2527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2528 *) ac_try_echo=$ac_try;;
2529 esac
2530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2531 $as_echo "$ac_try_echo") >&5
2532 (eval "$ac_link_default") 2>&5
2533 ac_status=$?
2534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); }; then
2536 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2537 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2538 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2539 # so that the user can short-circuit this test for compilers unknown to
2540 # Autoconf.
2541 for ac_file in $ac_files ''
2542 do
2543 test -f "$ac_file" || continue
2544 case $ac_file in
2545 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2546 ;;
2547 [ab].out )
2548 # We found the default executable, but exeext='' is most
2549 # certainly right.
2550 break;;
2551 *.* )
2552 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2553 then :; else
2554 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2555 fi
2556 # We set ac_cv_exeext here because the later test for it is not
2557 # safe: cross compilers may not add the suffix if given an `-o'
2558 # argument, so we may need to know it at that point already.
2559 # Even if this section looks crufty: it has the advantage of
2560 # actually working.
2561 break;;
2562 * )
2563 break;;
2564 esac
2565 done
2566 test "$ac_cv_exeext" = no && ac_cv_exeext=
2568 else
2569 ac_file=''
2570 fi
2572 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2573 $as_echo "$ac_file" >&6; }
2574 if test -z "$ac_file"; then
2575 $as_echo "$as_me: failed program was:" >&5
2576 sed 's/^/| /' conftest.$ac_ext >&5
2578 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2579 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2580 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2581 See \`config.log' for more details." >&5
2582 $as_echo "$as_me: error: C compiler cannot create executables
2583 See \`config.log' for more details." >&2;}
2584 { (exit 77); exit 77; }; }; }
2585 fi
2587 ac_exeext=$ac_cv_exeext
2589 # Check that the compiler produces executables we can run. If not, either
2590 # the compiler is broken, or we cross compile.
2591 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2592 $as_echo_n "checking whether the C compiler works... " >&6; }
2593 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2594 # If not cross compiling, check that we can run a simple program.
2595 if test "$cross_compiling" != yes; then
2596 if { ac_try='./$ac_file'
2597 { (case "(($ac_try" in
2598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2599 *) ac_try_echo=$ac_try;;
2600 esac
2601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2602 $as_echo "$ac_try_echo") >&5
2603 (eval "$ac_try") 2>&5
2604 ac_status=$?
2605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606 (exit $ac_status); }; }; then
2607 cross_compiling=no
2608 else
2609 if test "$cross_compiling" = maybe; then
2610 cross_compiling=yes
2611 else
2612 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2613 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2614 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2615 If you meant to cross compile, use \`--host'.
2616 See \`config.log' for more details." >&5
2617 $as_echo "$as_me: error: cannot run C compiled programs.
2618 If you meant to cross compile, use \`--host'.
2619 See \`config.log' for more details." >&2;}
2620 { (exit 1); exit 1; }; }; }
2621 fi
2622 fi
2623 fi
2624 { $as_echo "$as_me:$LINENO: result: yes" >&5
2625 $as_echo "yes" >&6; }
2627 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2628 ac_clean_files=$ac_clean_files_save
2629 # Check that the compiler produces executables we can run. If not, either
2630 # the compiler is broken, or we cross compile.
2631 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2632 $as_echo_n "checking whether we are cross compiling... " >&6; }
2633 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2634 $as_echo "$cross_compiling" >&6; }
2636 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2637 $as_echo_n "checking for suffix of executables... " >&6; }
2638 if { (ac_try="$ac_link"
2639 case "(($ac_try" in
2640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2641 *) ac_try_echo=$ac_try;;
2642 esac
2643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2644 $as_echo "$ac_try_echo") >&5
2645 (eval "$ac_link") 2>&5
2646 ac_status=$?
2647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648 (exit $ac_status); }; then
2649 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2650 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2651 # work properly (i.e., refer to `conftest.exe'), while it won't with
2652 # `rm'.
2653 for ac_file in conftest.exe conftest conftest.*; do
2654 test -f "$ac_file" || continue
2655 case $ac_file in
2656 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2657 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2658 break;;
2659 * ) break;;
2660 esac
2661 done
2662 else
2663 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2664 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2665 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2666 See \`config.log' for more details." >&5
2667 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2668 See \`config.log' for more details." >&2;}
2669 { (exit 1); exit 1; }; }; }
2670 fi
2672 rm -f conftest$ac_cv_exeext
2673 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2674 $as_echo "$ac_cv_exeext" >&6; }
2676 rm -f conftest.$ac_ext
2677 EXEEXT=$ac_cv_exeext
2678 ac_exeext=$EXEEXT
2679 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2680 $as_echo_n "checking for suffix of object files... " >&6; }
2681 if test "${ac_cv_objext+set}" = set; then
2682 $as_echo_n "(cached) " >&6
2683 else
2684 cat >conftest.$ac_ext <<_ACEOF
2685 /* confdefs.h. */
2686 _ACEOF
2687 cat confdefs.h >>conftest.$ac_ext
2688 cat >>conftest.$ac_ext <<_ACEOF
2689 /* end confdefs.h. */
2691 int
2692 main ()
2693 {
2695 ;
2696 return 0;
2697 }
2698 _ACEOF
2699 rm -f conftest.o conftest.obj
2700 if { (ac_try="$ac_compile"
2701 case "(($ac_try" in
2702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2703 *) ac_try_echo=$ac_try;;
2704 esac
2705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2706 $as_echo "$ac_try_echo") >&5
2707 (eval "$ac_compile") 2>&5
2708 ac_status=$?
2709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710 (exit $ac_status); }; then
2711 for ac_file in conftest.o conftest.obj conftest.*; do
2712 test -f "$ac_file" || continue;
2713 case $ac_file in
2714 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2715 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2716 break;;
2717 esac
2718 done
2719 else
2720 $as_echo "$as_me: failed program was:" >&5
2721 sed 's/^/| /' conftest.$ac_ext >&5
2723 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2724 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2725 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2726 See \`config.log' for more details." >&5
2727 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2728 See \`config.log' for more details." >&2;}
2729 { (exit 1); exit 1; }; }; }
2730 fi
2732 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2733 fi
2734 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2735 $as_echo "$ac_cv_objext" >&6; }
2736 OBJEXT=$ac_cv_objext
2737 ac_objext=$OBJEXT
2738 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2739 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2740 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2741 $as_echo_n "(cached) " >&6
2742 else
2743 cat >conftest.$ac_ext <<_ACEOF
2744 /* confdefs.h. */
2745 _ACEOF
2746 cat confdefs.h >>conftest.$ac_ext
2747 cat >>conftest.$ac_ext <<_ACEOF
2748 /* end confdefs.h. */
2750 int
2751 main ()
2752 {
2753 #ifndef __GNUC__
2754 choke me
2755 #endif
2757 ;
2758 return 0;
2759 }
2760 _ACEOF
2761 rm -f conftest.$ac_objext
2762 if { (ac_try="$ac_compile"
2763 case "(($ac_try" in
2764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2765 *) ac_try_echo=$ac_try;;
2766 esac
2767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2768 $as_echo "$ac_try_echo") >&5
2769 (eval "$ac_compile") 2>conftest.er1
2770 ac_status=$?
2771 grep -v '^ *+' conftest.er1 >conftest.err
2772 rm -f conftest.er1
2773 cat conftest.err >&5
2774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2775 (exit $ac_status); } && {
2776 test -z "$ac_c_werror_flag" ||
2777 test ! -s conftest.err
2778 } && test -s conftest.$ac_objext; then
2779 ac_compiler_gnu=yes
2780 else
2781 $as_echo "$as_me: failed program was:" >&5
2782 sed 's/^/| /' conftest.$ac_ext >&5
2784 ac_compiler_gnu=no
2785 fi
2787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2788 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2790 fi
2791 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2792 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2793 if test $ac_compiler_gnu = yes; then
2794 GCC=yes
2795 else
2796 GCC=
2797 fi
2798 ac_test_CFLAGS=${CFLAGS+set}
2799 ac_save_CFLAGS=$CFLAGS
2800 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2801 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2802 if test "${ac_cv_prog_cc_g+set}" = set; then
2803 $as_echo_n "(cached) " >&6
2804 else
2805 ac_save_c_werror_flag=$ac_c_werror_flag
2806 ac_c_werror_flag=yes
2807 ac_cv_prog_cc_g=no
2808 CFLAGS="-g"
2809 cat >conftest.$ac_ext <<_ACEOF
2810 /* confdefs.h. */
2811 _ACEOF
2812 cat confdefs.h >>conftest.$ac_ext
2813 cat >>conftest.$ac_ext <<_ACEOF
2814 /* end confdefs.h. */
2816 int
2817 main ()
2818 {
2820 ;
2821 return 0;
2822 }
2823 _ACEOF
2824 rm -f conftest.$ac_objext
2825 if { (ac_try="$ac_compile"
2826 case "(($ac_try" in
2827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2828 *) ac_try_echo=$ac_try;;
2829 esac
2830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2831 $as_echo "$ac_try_echo") >&5
2832 (eval "$ac_compile") 2>conftest.er1
2833 ac_status=$?
2834 grep -v '^ *+' conftest.er1 >conftest.err
2835 rm -f conftest.er1
2836 cat conftest.err >&5
2837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838 (exit $ac_status); } && {
2839 test -z "$ac_c_werror_flag" ||
2840 test ! -s conftest.err
2841 } && test -s conftest.$ac_objext; then
2842 ac_cv_prog_cc_g=yes
2843 else
2844 $as_echo "$as_me: failed program was:" >&5
2845 sed 's/^/| /' conftest.$ac_ext >&5
2847 CFLAGS=""
2848 cat >conftest.$ac_ext <<_ACEOF
2849 /* confdefs.h. */
2850 _ACEOF
2851 cat confdefs.h >>conftest.$ac_ext
2852 cat >>conftest.$ac_ext <<_ACEOF
2853 /* end confdefs.h. */
2855 int
2856 main ()
2857 {
2859 ;
2860 return 0;
2861 }
2862 _ACEOF
2863 rm -f conftest.$ac_objext
2864 if { (ac_try="$ac_compile"
2865 case "(($ac_try" in
2866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2867 *) ac_try_echo=$ac_try;;
2868 esac
2869 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2870 $as_echo "$ac_try_echo") >&5
2871 (eval "$ac_compile") 2>conftest.er1
2872 ac_status=$?
2873 grep -v '^ *+' conftest.er1 >conftest.err
2874 rm -f conftest.er1
2875 cat conftest.err >&5
2876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877 (exit $ac_status); } && {
2878 test -z "$ac_c_werror_flag" ||
2879 test ! -s conftest.err
2880 } && test -s conftest.$ac_objext; then
2881 :
2882 else
2883 $as_echo "$as_me: failed program was:" >&5
2884 sed 's/^/| /' conftest.$ac_ext >&5
2886 ac_c_werror_flag=$ac_save_c_werror_flag
2887 CFLAGS="-g"
2888 cat >conftest.$ac_ext <<_ACEOF
2889 /* confdefs.h. */
2890 _ACEOF
2891 cat confdefs.h >>conftest.$ac_ext
2892 cat >>conftest.$ac_ext <<_ACEOF
2893 /* end confdefs.h. */
2895 int
2896 main ()
2897 {
2899 ;
2900 return 0;
2901 }
2902 _ACEOF
2903 rm -f conftest.$ac_objext
2904 if { (ac_try="$ac_compile"
2905 case "(($ac_try" in
2906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2907 *) ac_try_echo=$ac_try;;
2908 esac
2909 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2910 $as_echo "$ac_try_echo") >&5
2911 (eval "$ac_compile") 2>conftest.er1
2912 ac_status=$?
2913 grep -v '^ *+' conftest.er1 >conftest.err
2914 rm -f conftest.er1
2915 cat conftest.err >&5
2916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917 (exit $ac_status); } && {
2918 test -z "$ac_c_werror_flag" ||
2919 test ! -s conftest.err
2920 } && test -s conftest.$ac_objext; then
2921 ac_cv_prog_cc_g=yes
2922 else
2923 $as_echo "$as_me: failed program was:" >&5
2924 sed 's/^/| /' conftest.$ac_ext >&5
2927 fi
2929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2930 fi
2932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2933 fi
2935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2936 ac_c_werror_flag=$ac_save_c_werror_flag
2937 fi
2938 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2939 $as_echo "$ac_cv_prog_cc_g" >&6; }
2940 if test "$ac_test_CFLAGS" = set; then
2941 CFLAGS=$ac_save_CFLAGS
2942 elif test $ac_cv_prog_cc_g = yes; then
2943 if test "$GCC" = yes; then
2944 CFLAGS="-g -O2"
2945 else
2946 CFLAGS="-g"
2947 fi
2948 else
2949 if test "$GCC" = yes; then
2950 CFLAGS="-O2"
2951 else
2952 CFLAGS=
2953 fi
2954 fi
2955 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2956 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2957 if test "${ac_cv_prog_cc_c89+set}" = set; then
2958 $as_echo_n "(cached) " >&6
2959 else
2960 ac_cv_prog_cc_c89=no
2961 ac_save_CC=$CC
2962 cat >conftest.$ac_ext <<_ACEOF
2963 /* confdefs.h. */
2964 _ACEOF
2965 cat confdefs.h >>conftest.$ac_ext
2966 cat >>conftest.$ac_ext <<_ACEOF
2967 /* end confdefs.h. */
2968 #include <stdarg.h>
2969 #include <stdio.h>
2970 #include <sys/types.h>
2971 #include <sys/stat.h>
2972 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2973 struct buf { int x; };
2974 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2975 static char *e (p, i)
2976 char **p;
2977 int i;
2978 {
2979 return p[i];
2980 }
2981 static char *f (char * (*g) (char **, int), char **p, ...)
2982 {
2983 char *s;
2984 va_list v;
2985 va_start (v,p);
2986 s = g (p, va_arg (v,int));
2987 va_end (v);
2988 return s;
2989 }
2991 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2992 function prototypes and stuff, but not '\xHH' hex character constants.
2993 These don't provoke an error unfortunately, instead are silently treated
2994 as 'x'. The following induces an error, until -std is added to get
2995 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2996 array size at least. It's necessary to write '\x00'==0 to get something
2997 that's true only with -std. */
2998 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3000 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3001 inside strings and character constants. */
3002 #define FOO(x) 'x'
3003 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3005 int test (int i, double x);
3006 struct s1 {int (*f) (int a);};
3007 struct s2 {int (*f) (double a);};
3008 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3009 int argc;
3010 char **argv;
3011 int
3012 main ()
3013 {
3014 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3015 ;
3016 return 0;
3017 }
3018 _ACEOF
3019 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3020 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3021 do
3022 CC="$ac_save_CC $ac_arg"
3023 rm -f conftest.$ac_objext
3024 if { (ac_try="$ac_compile"
3025 case "(($ac_try" in
3026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3027 *) ac_try_echo=$ac_try;;
3028 esac
3029 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3030 $as_echo "$ac_try_echo") >&5
3031 (eval "$ac_compile") 2>conftest.er1
3032 ac_status=$?
3033 grep -v '^ *+' conftest.er1 >conftest.err
3034 rm -f conftest.er1
3035 cat conftest.err >&5
3036 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); } && {
3038 test -z "$ac_c_werror_flag" ||
3039 test ! -s conftest.err
3040 } && test -s conftest.$ac_objext; then
3041 ac_cv_prog_cc_c89=$ac_arg
3042 else
3043 $as_echo "$as_me: failed program was:" >&5
3044 sed 's/^/| /' conftest.$ac_ext >&5
3047 fi
3049 rm -f core conftest.err conftest.$ac_objext
3050 test "x$ac_cv_prog_cc_c89" != "xno" && break
3051 done
3052 rm -f conftest.$ac_ext
3053 CC=$ac_save_CC
3055 fi
3056 # AC_CACHE_VAL
3057 case "x$ac_cv_prog_cc_c89" in
3058 x)
3059 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3060 $as_echo "none needed" >&6; } ;;
3061 xno)
3062 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3063 $as_echo "unsupported" >&6; } ;;
3064 *)
3065 CC="$CC $ac_cv_prog_cc_c89"
3066 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3067 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3068 esac
3071 ac_ext=c
3072 ac_cpp='$CPP $CPPFLAGS'
3073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3077 ac_ext=f
3078 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3079 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3080 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3081 if test -n "$ac_tool_prefix"; then
3082 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
3083 do
3084 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3085 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3086 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3087 $as_echo_n "checking for $ac_word... " >&6; }
3088 if test "${ac_cv_prog_F77+set}" = set; then
3089 $as_echo_n "(cached) " >&6
3090 else
3091 if test -n "$F77"; then
3092 ac_cv_prog_F77="$F77" # Let the user override the test.
3093 else
3094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3095 for as_dir in $PATH
3096 do
3097 IFS=$as_save_IFS
3098 test -z "$as_dir" && as_dir=.
3099 for ac_exec_ext in '' $ac_executable_extensions; do
3100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3101 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3102 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3103 break 2
3104 fi
3105 done
3106 done
3107 IFS=$as_save_IFS
3109 fi
3110 fi
3111 F77=$ac_cv_prog_F77
3112 if test -n "$F77"; then
3113 { $as_echo "$as_me:$LINENO: result: $F77" >&5
3114 $as_echo "$F77" >&6; }
3115 else
3116 { $as_echo "$as_me:$LINENO: result: no" >&5
3117 $as_echo "no" >&6; }
3118 fi
3121 test -n "$F77" && break
3122 done
3123 fi
3124 if test -z "$F77"; then
3125 ac_ct_F77=$F77
3126 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
3127 do
3128 # Extract the first word of "$ac_prog", so it can be a program name with args.
3129 set dummy $ac_prog; ac_word=$2
3130 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3131 $as_echo_n "checking for $ac_word... " >&6; }
3132 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3133 $as_echo_n "(cached) " >&6
3134 else
3135 if test -n "$ac_ct_F77"; then
3136 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3137 else
3138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3139 for as_dir in $PATH
3140 do
3141 IFS=$as_save_IFS
3142 test -z "$as_dir" && as_dir=.
3143 for ac_exec_ext in '' $ac_executable_extensions; do
3144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3145 ac_cv_prog_ac_ct_F77="$ac_prog"
3146 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3147 break 2
3148 fi
3149 done
3150 done
3151 IFS=$as_save_IFS
3153 fi
3154 fi
3155 ac_ct_F77=$ac_cv_prog_ac_ct_F77
3156 if test -n "$ac_ct_F77"; then
3157 { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3158 $as_echo "$ac_ct_F77" >&6; }
3159 else
3160 { $as_echo "$as_me:$LINENO: result: no" >&5
3161 $as_echo "no" >&6; }
3162 fi
3165 test -n "$ac_ct_F77" && break
3166 done
3168 if test "x$ac_ct_F77" = x; then
3169 F77=""
3170 else
3171 case $cross_compiling:$ac_tool_warned in
3172 yes:)
3173 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3174 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3175 ac_tool_warned=yes ;;
3176 esac
3177 F77=$ac_ct_F77
3178 fi
3179 fi
3182 # Provide some information about the compiler.
3183 $as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
3184 set X $ac_compile
3185 ac_compiler=$2
3186 { (ac_try="$ac_compiler --version >&5"
3187 case "(($ac_try" in
3188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189 *) ac_try_echo=$ac_try;;
3190 esac
3191 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3192 $as_echo "$ac_try_echo") >&5
3193 (eval "$ac_compiler --version >&5") 2>&5
3194 ac_status=$?
3195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); }
3197 { (ac_try="$ac_compiler -v >&5"
3198 case "(($ac_try" in
3199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3200 *) ac_try_echo=$ac_try;;
3201 esac
3202 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3203 $as_echo "$ac_try_echo") >&5
3204 (eval "$ac_compiler -v >&5") 2>&5
3205 ac_status=$?
3206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207 (exit $ac_status); }
3208 { (ac_try="$ac_compiler -V >&5"
3209 case "(($ac_try" in
3210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3211 *) ac_try_echo=$ac_try;;
3212 esac
3213 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3214 $as_echo "$ac_try_echo") >&5
3215 (eval "$ac_compiler -V >&5") 2>&5
3216 ac_status=$?
3217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218 (exit $ac_status); }
3219 rm -f a.out
3221 # If we don't use `.F' as extension, the preprocessor is not run on the
3222 # input file. (Note that this only needs to work for GNU compilers.)
3223 ac_save_ext=$ac_ext
3224 ac_ext=F
3225 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
3226 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
3227 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
3228 $as_echo_n "(cached) " >&6
3229 else
3230 cat >conftest.$ac_ext <<_ACEOF
3231 program main
3232 #ifndef __GNUC__
3233 choke me
3234 #endif
3236 end
3237 _ACEOF
3238 rm -f conftest.$ac_objext
3239 if { (ac_try="$ac_compile"
3240 case "(($ac_try" in
3241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3242 *) ac_try_echo=$ac_try;;
3243 esac
3244 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3245 $as_echo "$ac_try_echo") >&5
3246 (eval "$ac_compile") 2>conftest.er1
3247 ac_status=$?
3248 grep -v '^ *+' conftest.er1 >conftest.err
3249 rm -f conftest.er1
3250 cat conftest.err >&5
3251 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); } && {
3253 test -z "$ac_f77_werror_flag" ||
3254 test ! -s conftest.err
3255 } && test -s conftest.$ac_objext; then
3256 ac_compiler_gnu=yes
3257 else
3258 $as_echo "$as_me: failed program was:" >&5
3259 sed 's/^/| /' conftest.$ac_ext >&5
3261 ac_compiler_gnu=no
3262 fi
3264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3265 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
3267 fi
3268 { $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
3269 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
3270 ac_ext=$ac_save_ext
3271 ac_test_FFLAGS=${FFLAGS+set}
3272 ac_save_FFLAGS=$FFLAGS
3273 FFLAGS=
3274 { $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
3275 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
3276 if test "${ac_cv_prog_f77_g+set}" = set; then
3277 $as_echo_n "(cached) " >&6
3278 else
3279 FFLAGS=-g
3280 cat >conftest.$ac_ext <<_ACEOF
3281 program main
3283 end
3284 _ACEOF
3285 rm -f conftest.$ac_objext
3286 if { (ac_try="$ac_compile"
3287 case "(($ac_try" in
3288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3289 *) ac_try_echo=$ac_try;;
3290 esac
3291 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3292 $as_echo "$ac_try_echo") >&5
3293 (eval "$ac_compile") 2>conftest.er1
3294 ac_status=$?
3295 grep -v '^ *+' conftest.er1 >conftest.err
3296 rm -f conftest.er1
3297 cat conftest.err >&5
3298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299 (exit $ac_status); } && {
3300 test -z "$ac_f77_werror_flag" ||
3301 test ! -s conftest.err
3302 } && test -s conftest.$ac_objext; then
3303 ac_cv_prog_f77_g=yes
3304 else
3305 $as_echo "$as_me: failed program was:" >&5
3306 sed 's/^/| /' conftest.$ac_ext >&5
3308 ac_cv_prog_f77_g=no
3309 fi
3311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3313 fi
3314 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
3315 $as_echo "$ac_cv_prog_f77_g" >&6; }
3316 if test "$ac_test_FFLAGS" = set; then
3317 FFLAGS=$ac_save_FFLAGS
3318 elif test $ac_cv_prog_f77_g = yes; then
3319 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3320 FFLAGS="-g -O2"
3321 else
3322 FFLAGS="-g"
3323 fi
3324 else
3325 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3326 FFLAGS="-O2"
3327 else
3328 FFLAGS=
3329 fi
3330 fi
3332 if test $ac_compiler_gnu = yes; then
3333 G77=yes
3334 else
3335 G77=
3336 fi
3337 ac_ext=c
3338 ac_cpp='$CPP $CPPFLAGS'
3339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3343 ac_ext=f90
3344 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3345 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3346 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3347 if test -n "$ac_tool_prefix"; then
3348 for ac_prog in f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95
3349 do
3350 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3351 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3352 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3353 $as_echo_n "checking for $ac_word... " >&6; }
3354 if test "${ac_cv_prog_F90+set}" = set; then
3355 $as_echo_n "(cached) " >&6
3356 else
3357 if test -n "$F90"; then
3358 ac_cv_prog_F90="$F90" # Let the user override the test.
3359 else
3360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3361 for as_dir in $PATH
3362 do
3363 IFS=$as_save_IFS
3364 test -z "$as_dir" && as_dir=.
3365 for ac_exec_ext in '' $ac_executable_extensions; do
3366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3367 ac_cv_prog_F90="$ac_tool_prefix$ac_prog"
3368 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3369 break 2
3370 fi
3371 done
3372 done
3373 IFS=$as_save_IFS
3375 fi
3376 fi
3377 F90=$ac_cv_prog_F90
3378 if test -n "$F90"; then
3379 { $as_echo "$as_me:$LINENO: result: $F90" >&5
3380 $as_echo "$F90" >&6; }
3381 else
3382 { $as_echo "$as_me:$LINENO: result: no" >&5
3383 $as_echo "no" >&6; }
3384 fi
3387 test -n "$F90" && break
3388 done
3389 fi
3390 if test -z "$F90"; then
3391 ac_ct_F90=$F90
3392 for ac_prog in f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95
3393 do
3394 # Extract the first word of "$ac_prog", so it can be a program name with args.
3395 set dummy $ac_prog; ac_word=$2
3396 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3397 $as_echo_n "checking for $ac_word... " >&6; }
3398 if test "${ac_cv_prog_ac_ct_F90+set}" = set; then
3399 $as_echo_n "(cached) " >&6
3400 else
3401 if test -n "$ac_ct_F90"; then
3402 ac_cv_prog_ac_ct_F90="$ac_ct_F90" # Let the user override the test.
3403 else
3404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3405 for as_dir in $PATH
3406 do
3407 IFS=$as_save_IFS
3408 test -z "$as_dir" && as_dir=.
3409 for ac_exec_ext in '' $ac_executable_extensions; do
3410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3411 ac_cv_prog_ac_ct_F90="$ac_prog"
3412 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3413 break 2
3414 fi
3415 done
3416 done
3417 IFS=$as_save_IFS
3419 fi
3420 fi
3421 ac_ct_F90=$ac_cv_prog_ac_ct_F90
3422 if test -n "$ac_ct_F90"; then
3423 { $as_echo "$as_me:$LINENO: result: $ac_ct_F90" >&5
3424 $as_echo "$ac_ct_F90" >&6; }
3425 else
3426 { $as_echo "$as_me:$LINENO: result: no" >&5
3427 $as_echo "no" >&6; }
3428 fi
3431 test -n "$ac_ct_F90" && break
3432 done
3434 if test "x$ac_ct_F90" = x; then
3435 F90=""
3436 else
3437 case $cross_compiling:$ac_tool_warned in
3438 yes:)
3439 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3440 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3441 ac_tool_warned=yes ;;
3442 esac
3443 F90=$ac_ct_F90
3444 fi
3445 fi
3448 # If we don't use `.F90' as extension, the preprocessor is not run on the
3449 # input file.
3450 ac_save_ext=$ac_ext
3451 ac_ext=F90
3452 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 90 compiler" >&5
3453 $as_echo_n "checking whether we are using the GNU Fortran 90 compiler... " >&6; }
3454 if test "${ac_cv_f90_compiler_gnu+set}" = set; then
3455 $as_echo_n "(cached) " >&6
3456 else
3457 cat >conftest.$ac_ext <<_ACEOF
3459 program main
3461 #ifndef __GNUC__
3462 choke me
3463 #endif
3465 end program main
3467 _ACEOF
3468 rm -f conftest.$ac_objext
3469 if { (ac_try="$ac_compile"
3470 case "(($ac_try" in
3471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3472 *) ac_try_echo=$ac_try;;
3473 esac
3474 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3475 $as_echo "$ac_try_echo") >&5
3476 (eval "$ac_compile") 2>conftest.er1
3477 ac_status=$?
3478 grep -v '^ *+' conftest.er1 >conftest.err
3479 rm -f conftest.er1
3480 cat conftest.err >&5
3481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482 (exit $ac_status); } && {
3483 test -z "$ac_f90_werror_flag" ||
3484 test ! -s conftest.err
3485 } && test -s conftest.$ac_objext; then
3486 ac_compiler_gnu=yes
3487 else
3488 $as_echo "$as_me: failed program was:" >&5
3489 sed 's/^/| /' conftest.$ac_ext >&5
3491 ac_compiler_gnu=no
3492 fi
3494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3495 ac_cv_f90_compiler_gnu=$ac_compiler_gnu
3497 fi
3498 { $as_echo "$as_me:$LINENO: result: $ac_cv_f90_compiler_gnu" >&5
3499 $as_echo "$ac_cv_f90_compiler_gnu" >&6; }
3500 ac_ext=$ac_save_ext
3501 G95=`test $ac_compiler_gnu = yes && echo yes`
3502 ac_ext=c
3503 ac_cpp='$CPP $CPPFLAGS'
3504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3508 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3509 $as_echo_n "checking whether ln -s works... " >&6; }
3510 LN_S=$as_ln_s
3511 if test "$LN_S" = "ln -s"; then
3512 { $as_echo "$as_me:$LINENO: result: yes" >&5
3513 $as_echo "yes" >&6; }
3514 else
3515 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3516 $as_echo "no, using $LN_S" >&6; }
3517 fi
3519 if test -n "$ac_tool_prefix"; then
3520 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3521 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3522 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3523 $as_echo_n "checking for $ac_word... " >&6; }
3524 if test "${ac_cv_prog_RANLIB+set}" = set; then
3525 $as_echo_n "(cached) " >&6
3526 else
3527 if test -n "$RANLIB"; then
3528 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3529 else
3530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3531 for as_dir in $PATH
3532 do
3533 IFS=$as_save_IFS
3534 test -z "$as_dir" && as_dir=.
3535 for ac_exec_ext in '' $ac_executable_extensions; do
3536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3537 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3538 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3539 break 2
3540 fi
3541 done
3542 done
3543 IFS=$as_save_IFS
3545 fi
3546 fi
3547 RANLIB=$ac_cv_prog_RANLIB
3548 if test -n "$RANLIB"; then
3549 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3550 $as_echo "$RANLIB" >&6; }
3551 else
3552 { $as_echo "$as_me:$LINENO: result: no" >&5
3553 $as_echo "no" >&6; }
3554 fi
3557 fi
3558 if test -z "$ac_cv_prog_RANLIB"; then
3559 ac_ct_RANLIB=$RANLIB
3560 # Extract the first word of "ranlib", so it can be a program name with args.
3561 set dummy ranlib; ac_word=$2
3562 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3563 $as_echo_n "checking for $ac_word... " >&6; }
3564 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3565 $as_echo_n "(cached) " >&6
3566 else
3567 if test -n "$ac_ct_RANLIB"; then
3568 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3569 else
3570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3571 for as_dir in $PATH
3572 do
3573 IFS=$as_save_IFS
3574 test -z "$as_dir" && as_dir=.
3575 for ac_exec_ext in '' $ac_executable_extensions; do
3576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3577 ac_cv_prog_ac_ct_RANLIB="ranlib"
3578 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3579 break 2
3580 fi
3581 done
3582 done
3583 IFS=$as_save_IFS
3585 fi
3586 fi
3587 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3588 if test -n "$ac_ct_RANLIB"; then
3589 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3590 $as_echo "$ac_ct_RANLIB" >&6; }
3591 else
3592 { $as_echo "$as_me:$LINENO: result: no" >&5
3593 $as_echo "no" >&6; }
3594 fi
3596 if test "x$ac_ct_RANLIB" = x; then
3597 RANLIB=":"
3598 else
3599 case $cross_compiling:$ac_tool_warned in
3600 yes:)
3601 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3602 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3603 ac_tool_warned=yes ;;
3604 esac
3605 RANLIB=$ac_ct_RANLIB
3606 fi
3607 else
3608 RANLIB="$ac_cv_prog_RANLIB"
3609 fi
3612 # Reset flags set by AC_PROG macros
3613 if test "$user_CFLAGS" != "unset" ; then
3614 CFLAGS="$user_CFLAGS"
3615 else
3616 CFLAGS=""
3617 fi
3619 if test "$user_FFLAGS" != "unset" ; then
3620 FFLAGS="$user_FFLAGS"
3621 else
3622 FFLAGS=""
3623 fi
3625 if test "$user_F90FLAGS" != "unset" ; then
3626 F90FLAGS="$user_F90FLAGS"
3627 else
3628 F90FLAGS=""
3629 fi
3631 if test "$user_LDFLAGS" != "unset" ; then
3632 LDFLAGS="$user_LDFLAGS"
3633 else
3634 LDFLAGS=""
3635 fi
3637 CPP=/lib/cpp
3638 ARCHIVE="ar rcv"
3640 Write() {
3641 if test "`echo -n`" = "-n" ; then
3642 echo "$@\c"
3643 else
3644 echo -n "$@"
3645 fi
3646 }
3648 GetYesNo() {
3649 _ANSWER=
3650 while test "1" -eq "1" ; do
3651 if test "`echo -n`" = "-n" ; then
3652 echo "$@\c"
3653 else
3654 echo -n "$@"
3655 fi
3656 read _ANSWER
3657 case "$_ANSWER" in
3658 y | Y | yes | YES | Yes) return 0 ;;
3659 n | N | no | NO | No ) return 1 ;;
3660 * ) echo "Please enter y or n." ;;
3661 esac
3662 done
3663 }
3668 #!/bin/sh
3669 Write 'checking Tcl location ... '
3670 tclroot=${TCLROOT:=undef}
3672 if echo "$tclroot" | grep "undef" >/dev/null; then
3673 echo
3674 echo 'Please specify TCLROOT'
3675 echo 'This should reference'
3676 echo ' $TCLROOT/include/tcl.h'
3677 echo ' $TCLROOT/lib/libtcl8.4.so'
3678 echo 'etc'
3679 Write 'Enter TCLROOT : '
3680 read ans
3681 TCLROOT=$ans
3682 else
3683 echo "TCLROOT set to $tclroot"
3684 fi
3687 # obvious dangers of incompatibilities here
3688 TCL_INCLUDE=$TCLROOT/include
3689 TCL_LIB_DIR=$TCLROOT/lib
3690 TCL_LIB_FLAG=-ltcl8.4
3692 TTT=${LIBTCL:=undef}
3693 if echo "$TTT" | grep "undef" >/dev/null; then
3694 LIBTCL="-L$TCLROOT/lib -R$TCLROOT/lib $TCL_LIB_FLAG"
3695 else
3696 echo "LIBTCL set to $LIBTCL"
3697 fi
3699 #
3700 # Checks for libraries.
3701 # Checks for libraries.
3702 # a number of these can be stripped out
3703 #
3705 # FIXME: Replace `main' with a function in `-ladebug':
3708 #
3709 # Searches for Tcl in system places are suppressed
3710 # for the moment for safety, we need to be able to i
3711 # include the nominated directory in the search
3712 #
3714 # FIXME: Replace `main' with a function in `-lc':
3717 { $as_echo "$as_me:$LINENO: checking for main in -lc" >&5
3718 $as_echo_n "checking for main in -lc... " >&6; }
3719 if test "${ac_cv_lib_c_main+set}" = set; then
3720 $as_echo_n "(cached) " >&6
3721 else
3722 ac_check_lib_save_LIBS=$LIBS
3723 LIBS="-lc $LIBS"
3724 cat >conftest.$ac_ext <<_ACEOF
3725 /* confdefs.h. */
3726 _ACEOF
3727 cat confdefs.h >>conftest.$ac_ext
3728 cat >>conftest.$ac_ext <<_ACEOF
3729 /* end confdefs.h. */
3732 int
3733 main ()
3734 {
3735 return main ();
3736 ;
3737 return 0;
3738 }
3739 _ACEOF
3740 rm -f conftest.$ac_objext conftest$ac_exeext
3741 if { (ac_try="$ac_link"
3742 case "(($ac_try" in
3743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3744 *) ac_try_echo=$ac_try;;
3745 esac
3746 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3747 $as_echo "$ac_try_echo") >&5
3748 (eval "$ac_link") 2>conftest.er1
3749 ac_status=$?
3750 grep -v '^ *+' conftest.er1 >conftest.err
3751 rm -f conftest.er1
3752 cat conftest.err >&5
3753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3754 (exit $ac_status); } && {
3755 test -z "$ac_c_werror_flag" ||
3756 test ! -s conftest.err
3757 } && test -s conftest$ac_exeext && {
3758 test "$cross_compiling" = yes ||
3759 $as_test_x conftest$ac_exeext
3760 }; then
3761 ac_cv_lib_c_main=yes
3762 else
3763 $as_echo "$as_me: failed program was:" >&5
3764 sed 's/^/| /' conftest.$ac_ext >&5
3766 ac_cv_lib_c_main=no
3767 fi
3769 rm -rf conftest.dSYM
3770 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3771 conftest$ac_exeext conftest.$ac_ext
3772 LIBS=$ac_check_lib_save_LIBS
3773 fi
3774 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_main" >&5
3775 $as_echo "$ac_cv_lib_c_main" >&6; }
3776 if test "x$ac_cv_lib_c_main" = x""yes; then
3777 cat >>confdefs.h <<_ACEOF
3778 #define HAVE_LIBC 1
3779 _ACEOF
3781 LIBS="-lc $LIBS"
3783 fi
3786 HAVE_BLAS_LIB=0
3787 HAVE_LAPACK_LIB=0
3788 HAVE_LINPACK_LIB=0
3789 HAVE_EISPACK_LIB=0
3791 #hms Disabled checking for libblas: For some compilers (e.g.,
3792 #hms PGI's) libblas is in the standard search path, but
3793 #hms is an unoptimized version of BLAS one does not really
3794 #hms want to use.
3795 #AC_CHECK_LIB([blas], [daxpy])
3796 #if test $ac_cv_lib_blas_daxpy = yes; then
3797 # HAVE_BLAS_LIB=1
3798 #fi
3799 #AC_CHECK_LIB([blas], [daxpy_])
3800 #if test $ac_cv_lib_blas_daxpy_ = yes; then
3801 # HAVE_BLAS_LIB=1
3802 #fi
3804 #hms DXML is really outdated by now; skip it
3805 #AC_CHECK_LIB([dxml], [daxpy])
3806 #if test $ac_cv_lib_dxml_daxpy = yes; then
3807 # HAVE_BLAS_LIB=1
3808 #fi
3809 #AC_CHECK_LIB([dxml], [daxpy_])
3810 #if test $ac_cv_lib_dxml_daxpy_ = yes; then
3811 # HAVE_BLAS_LIB=1
3812 #fi
3815 { $as_echo "$as_me:$LINENO: checking for daxpy_ in -lcxml" >&5
3816 $as_echo_n "checking for daxpy_ in -lcxml... " >&6; }
3817 if test "${ac_cv_lib_cxml_daxpy_+set}" = set; then
3818 $as_echo_n "(cached) " >&6
3819 else
3820 ac_check_lib_save_LIBS=$LIBS
3821 LIBS="-lcxml $LIBS"
3822 cat >conftest.$ac_ext <<_ACEOF
3823 /* confdefs.h. */
3824 _ACEOF
3825 cat confdefs.h >>conftest.$ac_ext
3826 cat >>conftest.$ac_ext <<_ACEOF
3827 /* end confdefs.h. */
3829 /* Override any GCC internal prototype to avoid an error.
3830 Use char because int might match the return type of a GCC
3831 builtin and then its argument prototype would still apply. */
3832 #ifdef __cplusplus
3833 extern "C"
3834 #endif
3835 char daxpy_ ();
3836 int
3837 main ()
3838 {
3839 return daxpy_ ();
3840 ;
3841 return 0;
3842 }
3843 _ACEOF
3844 rm -f conftest.$ac_objext conftest$ac_exeext
3845 if { (ac_try="$ac_link"
3846 case "(($ac_try" in
3847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3848 *) ac_try_echo=$ac_try;;
3849 esac
3850 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3851 $as_echo "$ac_try_echo") >&5
3852 (eval "$ac_link") 2>conftest.er1
3853 ac_status=$?
3854 grep -v '^ *+' conftest.er1 >conftest.err
3855 rm -f conftest.er1
3856 cat conftest.err >&5
3857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858 (exit $ac_status); } && {
3859 test -z "$ac_c_werror_flag" ||
3860 test ! -s conftest.err
3861 } && test -s conftest$ac_exeext && {
3862 test "$cross_compiling" = yes ||
3863 $as_test_x conftest$ac_exeext
3864 }; then
3865 ac_cv_lib_cxml_daxpy_=yes
3866 else
3867 $as_echo "$as_me: failed program was:" >&5
3868 sed 's/^/| /' conftest.$ac_ext >&5
3870 ac_cv_lib_cxml_daxpy_=no
3871 fi
3873 rm -rf conftest.dSYM
3874 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3875 conftest$ac_exeext conftest.$ac_ext
3876 LIBS=$ac_check_lib_save_LIBS
3877 fi
3878 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cxml_daxpy_" >&5
3879 $as_echo "$ac_cv_lib_cxml_daxpy_" >&6; }
3880 if test "x$ac_cv_lib_cxml_daxpy_" = x""yes; then
3881 cat >>confdefs.h <<_ACEOF
3882 #define HAVE_LIBCXML 1
3883 _ACEOF
3885 LIBS="-lcxml $LIBS"
3887 fi
3889 if test $ac_cv_lib_cxml_daxpy_ = yes; then
3890 HAVE_BLAS_LIB=1
3891 fi
3893 { $as_echo "$as_me:$LINENO: checking for dgetrf_ in -lcxml" >&5
3894 $as_echo_n "checking for dgetrf_ in -lcxml... " >&6; }
3895 if test "${ac_cv_lib_cxml_dgetrf_+set}" = set; then
3896 $as_echo_n "(cached) " >&6
3897 else
3898 ac_check_lib_save_LIBS=$LIBS
3899 LIBS="-lcxml $LIBS"
3900 cat >conftest.$ac_ext <<_ACEOF
3901 /* confdefs.h. */
3902 _ACEOF
3903 cat confdefs.h >>conftest.$ac_ext
3904 cat >>conftest.$ac_ext <<_ACEOF
3905 /* end confdefs.h. */
3907 /* Override any GCC internal prototype to avoid an error.
3908 Use char because int might match the return type of a GCC
3909 builtin and then its argument prototype would still apply. */
3910 #ifdef __cplusplus
3911 extern "C"
3912 #endif
3913 char dgetrf_ ();
3914 int
3915 main ()
3916 {
3917 return dgetrf_ ();
3918 ;
3919 return 0;
3920 }
3921 _ACEOF
3922 rm -f conftest.$ac_objext conftest$ac_exeext
3923 if { (ac_try="$ac_link"
3924 case "(($ac_try" in
3925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3926 *) ac_try_echo=$ac_try;;
3927 esac
3928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3929 $as_echo "$ac_try_echo") >&5
3930 (eval "$ac_link") 2>conftest.er1
3931 ac_status=$?
3932 grep -v '^ *+' conftest.er1 >conftest.err
3933 rm -f conftest.er1
3934 cat conftest.err >&5
3935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936 (exit $ac_status); } && {
3937 test -z "$ac_c_werror_flag" ||
3938 test ! -s conftest.err
3939 } && test -s conftest$ac_exeext && {
3940 test "$cross_compiling" = yes ||
3941 $as_test_x conftest$ac_exeext
3942 }; then
3943 ac_cv_lib_cxml_dgetrf_=yes
3944 else
3945 $as_echo "$as_me: failed program was:" >&5
3946 sed 's/^/| /' conftest.$ac_ext >&5
3948 ac_cv_lib_cxml_dgetrf_=no
3949 fi
3951 rm -rf conftest.dSYM
3952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3953 conftest$ac_exeext conftest.$ac_ext
3954 LIBS=$ac_check_lib_save_LIBS
3955 fi
3956 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cxml_dgetrf_" >&5
3957 $as_echo "$ac_cv_lib_cxml_dgetrf_" >&6; }
3958 if test "x$ac_cv_lib_cxml_dgetrf_" = x""yes; then
3959 cat >>confdefs.h <<_ACEOF
3960 #define HAVE_LIBCXML 1
3961 _ACEOF
3963 LIBS="-lcxml $LIBS"
3965 fi
3967 if test $ac_cv_lib_cxml_dgetrf_ = yes; then
3968 HAVE_LAPACK_LIB=1
3969 fi

