3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --disable-dependency-tracking Speeds up one-time builds
16 --enable-dependency-tracking Do not reject slow dependency extractors"
17 ac_default_prefix=/usr/local/gromacs
19 --disable-float use double instead of single precision"
21 --enable-fortran use fortran (default on sgi,ibm,sun,axp)"
23 --enable-mpi compile for parallel runs using MPI"
25 --with-mpi-environment=VAR only start parallel runs when VAR is set"
27 --disable-x86-asm don't build assembly loops on x86"
29 --disable-cpu-optimization no detection or tuning flags for cpu version"
31 --enable-vector create inner loops for a vector machine"
33 --disable-waterloop-unrolling expand the loops instead (hack for sgi)"
35 --disable-waterwater-loops turn off double unrolled loops (hack for sgi)"
37 --enable-software-recip perform software 1/x"
39 --disable-software-sqrt no software 1/sqrt (disabled on sgi,rs6000)"
41 --enable-vectorized-recip vectorize LJ-only inner loops"
43 --enable-vectorized-sqrt=A,B vectorize selected inner loops (default none)
44 choices: normal,solvent,water,water-water"
46 --enable-prefetch-x=A,B prefetch coordinates in selected innerloops"
48 --enable-prefetch-f=A,B prefetch forces in selected innerloops"
50 --enable-hide-square-latency load coords to cache in advance"
52 --enable-hide-table-latency load table data to cache in advance"
54 --without-fftw if you turn this off you can't use PME/PPPM"
56 --enable-shared[=PKGS] build shared libraries [default=yes]"
58 --enable-static[=PKGS] build static libraries [default=yes]"
60 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
62 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
64 --disable-libtool-lock avoid locking (might break parallel builds)"
66 --with-pic try to use only PIC/non-PIC [default=both]"
68 --with-dmalloc use dmalloc, as in
69 http://www.dmalloc.com/dmalloc.tar.gz"
71 --with-x use the X Window System"
73 --with-motif-includes=DIR Motif include files are in DIR"
75 --with-motif-libraries=DIR Motif libraries are in DIR"
77 # Initialize some variables set by options.
78 # The variables have the same names as the options, with
79 # dashes changed to underlines.
81 cache_file=./config.cache
90 program_transform_name=s,x,x,
98 bindir='${exec_prefix}/bin'
99 sbindir='${exec_prefix}/sbin'
100 libexecdir='${exec_prefix}/libexec'
101 datadir='${prefix}/share'
102 sysconfdir='${prefix}/etc'
103 sharedstatedir='${prefix}/com'
104 localstatedir='${prefix}/var'
105 libdir='${exec_prefix}/lib'
106 includedir='${prefix}/include'
107 oldincludedir='/usr/include'
108 infodir='${prefix}/info'
109 mandir='${prefix}/man'
111 # Initialize some other variables.
114 SHELL=${CONFIG_SHELL-/bin/sh}
115 # Maximum number of lines to put in a shell here document.
122 # If the previous option needs an argument, assign it.
123 if test -n "$ac_prev"; then
124 eval "$ac_prev=\$ac_option"
130 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
134 # Accept the important Cygnus configure options, so we can diagnose typos.
138 -bindir | --bindir | --bindi | --bind | --bin | --bi)
140 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
141 bindir="$ac_optarg" ;;
143 -build | --build | --buil | --bui | --bu)
145 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
146 build="$ac_optarg" ;;
148 -cache-file | --cache-file | --cache-fil | --cache-fi \
149 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
150 ac_prev=cache_file ;;
151 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
152 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
153 cache_file="$ac_optarg" ;;
155 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
157 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
159 datadir="$ac_optarg" ;;
161 -disable-* | --disable-*)
162 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
163 # Reject names that are not valid shell variable names.
164 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
165 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
167 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
168 eval "enable_${ac_feature}=no" ;;
170 -enable-* | --enable-*)
171 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
172 # Reject names that are not valid shell variable names.
173 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
174 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
176 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
181 eval "enable_${ac_feature}='$ac_optarg'" ;;
183 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
184 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
185 | --exec | --exe | --ex)
186 ac_prev=exec_prefix ;;
187 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
188 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
189 | --exec=* | --exe=* | --ex=*)
190 exec_prefix="$ac_optarg" ;;
192 -gas | --gas | --ga | --g)
193 # Obsolete; use --with-gas.
196 -help | --help | --hel | --he)
197 # Omit some internal or obsolete options to make the list less imposing.
198 # This message is too long to be a string in the A/UX 3.1 sh.
200 Usage: configure [options] [host]
201 Options: [defaults in brackets after descriptions]
203 --cache-file=FILE cache test results in FILE
204 --help print this message
205 --no-create do not create output files
206 --quiet, --silent do not print \`checking...' messages
207 --version print the version of autoconf that created configure
208 Directory and file names:
209 --prefix=PREFIX install architecture-independent files in PREFIX
211 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
213 --bindir=DIR user executables in DIR [EPREFIX/bin]
214 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
215 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
216 --datadir=DIR read-only architecture-independent data in DIR
218 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
219 --sharedstatedir=DIR modifiable architecture-independent data in DIR
221 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
222 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
223 --includedir=DIR C header files in DIR [PREFIX/include]
224 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
225 --infodir=DIR info documentation in DIR [PREFIX/info]
226 --mandir=DIR man documentation in DIR [PREFIX/man]
227 --srcdir=DIR find the sources in DIR [configure dir or ..]
228 --program-prefix=PREFIX prepend PREFIX to installed program names
229 --program-suffix=SUFFIX append SUFFIX to installed program names
230 --program-transform-name=PROGRAM
231 run sed PROGRAM on installed program names
235 --build=BUILD configure for building on BUILD [BUILD=HOST]
236 --host=HOST configure for HOST [guessed]
237 --target=TARGET configure for TARGET [TARGET=HOST]
238 Features and packages:
239 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
240 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
241 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
242 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
243 --x-includes=DIR X include files are in DIR
244 --x-libraries=DIR X library files are in DIR
246 if test -n "$ac_help"; then
247 echo "--enable and --with options recognized:$ac_help"
251 -host | --host | --hos | --ho)
253 -host=* | --host=* | --hos=* | --ho=*)
256 -includedir | --includedir | --includedi | --included | --include \
257 | --includ | --inclu | --incl | --inc)
258 ac_prev=includedir ;;
259 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
260 | --includ=* | --inclu=* | --incl=* | --inc=*)
261 includedir="$ac_optarg" ;;
263 -infodir | --infodir | --infodi | --infod | --info | --inf)
265 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
266 infodir="$ac_optarg" ;;
268 -libdir | --libdir | --libdi | --libd)
270 -libdir=* | --libdir=* | --libdi=* | --libd=*)
271 libdir="$ac_optarg" ;;
273 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
274 | --libexe | --libex | --libe)
275 ac_prev=libexecdir ;;
276 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
277 | --libexe=* | --libex=* | --libe=*)
278 libexecdir="$ac_optarg" ;;
280 -localstatedir | --localstatedir | --localstatedi | --localstated \
281 | --localstate | --localstat | --localsta | --localst \
282 | --locals | --local | --loca | --loc | --lo)
283 ac_prev=localstatedir ;;
284 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
285 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
286 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
287 localstatedir="$ac_optarg" ;;
289 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
291 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
292 mandir="$ac_optarg" ;;
295 # Obsolete; use --without-fp.
298 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
302 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
303 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
306 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
307 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
308 | --oldin | --oldi | --old | --ol | --o)
309 ac_prev=oldincludedir ;;
310 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
311 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
312 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
313 oldincludedir="$ac_optarg" ;;
315 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
317 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
318 prefix="$ac_optarg" ;;
320 -program-prefix | --program-prefix | --program-prefi | --program-pref \
321 | --program-pre | --program-pr | --program-p)
322 ac_prev=program_prefix ;;
323 -program-prefix=* | --program-prefix=* | --program-prefi=* \
324 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
325 program_prefix="$ac_optarg" ;;
327 -program-suffix | --program-suffix | --program-suffi | --program-suff \
328 | --program-suf | --program-su | --program-s)
329 ac_prev=program_suffix ;;
330 -program-suffix=* | --program-suffix=* | --program-suffi=* \
331 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
332 program_suffix="$ac_optarg" ;;
334 -program-transform-name | --program-transform-name \
335 | --program-transform-nam | --program-transform-na \
336 | --program-transform-n | --program-transform- \
337 | --program-transform | --program-transfor \
338 | --program-transfo | --program-transf \
339 | --program-trans | --program-tran \
340 | --progr-tra | --program-tr | --program-t)
341 ac_prev=program_transform_name ;;
342 -program-transform-name=* | --program-transform-name=* \
343 | --program-transform-nam=* | --program-transform-na=* \
344 | --program-transform-n=* | --program-transform-=* \
345 | --program-transform=* | --program-transfor=* \
346 | --program-transfo=* | --program-transf=* \
347 | --program-trans=* | --program-tran=* \
348 | --progr-tra=* | --program-tr=* | --program-t=*)
349 program_transform_name="$ac_optarg" ;;
351 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
352 | -silent | --silent | --silen | --sile | --sil)
355 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
357 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
359 sbindir="$ac_optarg" ;;
361 -sharedstatedir | --sharedstatedir | --sharedstatedi \
362 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
363 | --sharedst | --shareds | --shared | --share | --shar \
365 ac_prev=sharedstatedir ;;
366 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
367 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
368 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
370 sharedstatedir="$ac_optarg" ;;
372 -site | --site | --sit)
374 -site=* | --site=* | --sit=*)
377 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
379 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
380 srcdir="$ac_optarg" ;;
382 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
383 | --syscon | --sysco | --sysc | --sys | --sy)
384 ac_prev=sysconfdir ;;
385 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
386 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
387 sysconfdir="$ac_optarg" ;;
389 -target | --target | --targe | --targ | --tar | --ta | --t)
391 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
392 target="$ac_optarg" ;;
394 -v | -verbose | --verbose | --verbos | --verbo | --verb)
397 -version | --version | --versio | --versi | --vers)
398 echo "configure generated by autoconf version 2.13"
402 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
403 # Reject names that are not valid shell variable names.
404 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
405 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
407 ac_package=`echo $ac_package| sed 's/-/_/g'`
412 eval "with_${ac_package}='$ac_optarg'" ;;
414 -without-* | --without-*)
415 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
416 # Reject names that are not valid shell variable names.
417 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
418 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
420 ac_package=`echo $ac_package| sed 's/-/_/g'`
421 eval "with_${ac_package}=no" ;;
424 # Obsolete; use --with-x.
427 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
428 | --x-incl | --x-inc | --x-in | --x-i)
429 ac_prev=x_includes ;;
430 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
431 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
432 x_includes="$ac_optarg" ;;
434 -x-libraries | --x-libraries | --x-librarie | --x-librari \
435 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
436 ac_prev=x_libraries ;;
437 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
438 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
439 x_libraries="$ac_optarg" ;;
441 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
445 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
446 echo "configure: warning: $ac_option: invalid host type" 1>&2
448 if test "x$nonopt" != xNONE; then
449 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
457 if test -n "$ac_prev"; then
458 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
461 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
463 # File descriptor usage:
466 # 2 errors and warnings
467 # 3 some systems may open it to /dev/tty
468 # 4 used on the Kubota Titan
469 # 6 checking for... messages and results
470 # 5 compiler messages saved in config.log
471 if test "$silent" = yes; then
479 This file contains any messages produced by compilers while
480 running configure, to aid debugging if configure makes a mistake.
483 # Strip out --no-create and --no-recursion so they do not pile up.
484 # Also quote any args containing shell metacharacters.
489 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
490 | --no-cr | --no-c) ;;
491 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
493 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
494 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
495 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
500 # Only set these to C if already set. These must not be set unconditionally
501 # because not all systems understand e.g. LANG=C (notably SCO).
502 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
503 # Non-C LC_CTYPE values break the ctype check.
504 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
505 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
506 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
507 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
509 # confdefs.h avoids OS command line length limits that DEFS can exceed.
510 rm -rf conftest* confdefs.h
511 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
514 # A filename unique to this package, relative to the directory that
515 # configure is in, which we can look for to find out if srcdir is correct.
516 ac_unique_file=src/gmxlib/3dview.c
518 # Find the source files, if location was not specified.
519 if test -z "$srcdir"; then
520 ac_srcdir_defaulted=yes
521 # Try the directory containing this script, then its parent.
523 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
524 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
526 if test ! -r $srcdir/$ac_unique_file; then
530 ac_srcdir_defaulted=no
532 if test ! -r $srcdir/$ac_unique_file; then
533 if test "$ac_srcdir_defaulted" = yes; then
534 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
536 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
539 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
541 # Prefer explicitly selected file to automatically selected ones.
542 if test -z "$CONFIG_SITE"; then
543 if test "x$prefix" != xNONE; then
544 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
546 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
549 for ac_site_file in $CONFIG_SITE; do
550 if test -r "$ac_site_file"; then
551 echo "loading site script $ac_site_file"
558 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
559 ac_cpp='$CPP $CPPFLAGS'
560 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
561 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
562 cross_compiling=$ac_cv_prog_cc_cross
566 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
567 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
568 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
575 ac_n= ac_c='\c' ac_t=
578 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
579 echo "configure:580: checking for Cygwin environment" >&5
580 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
581 echo $ac_n "(cached) $ac_c" 1>&6
583 cat > conftest.$ac_ext <<EOF
584 #line 585 "configure"
585 #include "confdefs.h"
590 #define __CYGWIN__ __CYGWIN32__
595 if { (eval echo configure:596: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
599 echo "configure: failed program was:" >&5
600 cat conftest.$ac_ext >&5
608 echo "$ac_t""$ac_cv_cygwin" 1>&6
610 test "$ac_cv_cygwin" = yes && CYGWIN=yes
611 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
612 echo "configure:613: checking for mingw32 environment" >&5
613 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
614 echo $ac_n "(cached) $ac_c" 1>&6
616 cat > conftest.$ac_ext <<EOF
617 #line 618 "configure"
618 #include "confdefs.h"
624 if { (eval echo configure:625: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
628 echo "configure: failed program was:" >&5
629 cat conftest.$ac_ext >&5
637 echo "$ac_t""$ac_cv_mingw32" 1>&6
639 test "$ac_cv_mingw32" = yes && MINGW32=yes
643 for ac_dir in config $srcdir/config; do
644 if test -f $ac_dir/install-sh; then
646 ac_install_sh="$ac_aux_dir/install-sh -c"
648 elif test -f $ac_dir/install.sh; then
650 ac_install_sh="$ac_aux_dir/install.sh -c"
654 if test -z "$ac_aux_dir"; then
655 { echo "configure: error: can not find install-sh or install.sh in config $srcdir/config" 1>&2; exit 1; }
657 ac_config_guess=$ac_aux_dir/config.guess
658 ac_config_sub=$ac_aux_dir/config.sub
659 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
662 # Make sure we can run config.sub.
663 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
664 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
667 echo $ac_n "checking host system type""... $ac_c" 1>&6
668 echo "configure:669: checking host system type" >&5
671 case "$host_alias" in
675 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
676 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
678 *) host_alias=$nonopt ;;
682 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
683 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
684 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
685 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
686 echo "$ac_t""$host" 1>&6
689 # Find a good install program. We prefer a C program (faster),
690 # so one script is as good as another. But avoid the broken or
691 # incompatible versions:
692 # SysV /etc/install, /usr/sbin/install
693 # SunOS /usr/etc/install
696 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
697 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
698 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
699 # ./install, which can be erroneously created by make from ./install.sh.
700 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
701 echo "configure:702: checking for a BSD compatible install" >&5
702 if test -z "$INSTALL"; then
703 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
704 echo $ac_n "(cached) $ac_c" 1>&6
706 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
707 for ac_dir in $PATH; do
708 # Account for people who put trailing slashes in PATH elements.
710 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
712 # OSF1 and SCO ODT 3.0 have their own names for install.
713 # Don't use installbsd from OSF since it installs stuff as root
715 for ac_prog in ginstall scoinst install; do
716 if test -f $ac_dir/$ac_prog; then
717 if test $ac_prog = install &&
718 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
719 # AIX install. It has an incompatible calling convention.
722 ac_cv_path_install="$ac_dir/$ac_prog -c"
733 if test "${ac_cv_path_install+set}" = set; then
734 INSTALL="$ac_cv_path_install"
736 # As a last resort, use the slow shell script. We don't cache a
737 # path for INSTALL within a source directory, because that will
738 # break other packages using the cache if that directory is
739 # removed, or if the path is relative.
740 INSTALL="$ac_install_sh"
743 echo "$ac_t""$INSTALL" 1>&6
745 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
746 # It thinks the first close brace ends the variable substitution.
747 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
749 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
751 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
753 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
754 echo "configure:755: checking whether build environment is sane" >&5
757 echo timestamp > conftest.file
758 # Do `set' in a subshell so we don't clobber the current shell's
759 # arguments. Must try -L first in case configure is actually a
760 # symlink; some systems play weird games with the mod time of symlinks
761 # (eg FreeBSD returns the mod time of the symlink's containing
764 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
765 if test "$*" = "X"; then
767 set X `ls -t $srcdir/configure conftest.file`
770 if test "$*" != "X $srcdir/configure conftest.file" \
771 && test "$*" != "X conftest.file $srcdir/configure"; then
773 # If neither matched, then we have a broken ls. This can happen
774 # if, for instance, CONFIG_SHELL is bash and it inherits a
775 # broken ls alias from the environment. This has actually
776 # happened. Such a system could not be considered "sane".
777 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
778 alias in your environment" 1>&2; exit 1; }
781 test "$2" = conftest.file
787 { echo "configure: error: newly created file is older than distributed files!
788 Check your system clock" 1>&2; exit 1; }
790 echo "$ac_t""yes" 1>&6
791 if test "$program_transform_name" = s,x,x,; then
792 program_transform_name=
794 # Double any \ or $. echo might interpret backslashes.
795 cat <<\EOF_SED > conftestsed
796 s,\\,\\\\,g; s,\$,$$,g
798 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
801 test "$program_prefix" != NONE &&
802 program_transform_name="s,^,${program_prefix},; $program_transform_name"
803 # Use a double $ so make ignores it.
804 test "$program_suffix" != NONE &&
805 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
807 # sed with no file args requires a program.
808 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
810 test x"${MISSING+set}" = xset ||
811 MISSING="\${SHELL} `CDPATH=:; cd $ac_aux_dir && pwd`/missing"
812 # Use eval to expand $SHELL
813 if eval "$MISSING --run true"; then
814 am_missing_run="$MISSING --run "
818 echo "configure: warning: ${am_backtick}missing' script is too old or missing" 1>&2
821 for ac_prog in mawk gawk nawk awk
823 # Extract the first word of "$ac_prog", so it can be a program name with args.
824 set dummy $ac_prog; ac_word=$2
825 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
826 echo "configure:827: checking for $ac_word" >&5
827 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
828 echo $ac_n "(cached) $ac_c" 1>&6
830 if test -n "$AWK"; then
831 ac_cv_prog_AWK="$AWK" # Let the user override the test.
833 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
835 for ac_dir in $ac_dummy; do
836 test -z "$ac_dir" && ac_dir=.
837 if test -f $ac_dir/$ac_word; then
838 ac_cv_prog_AWK="$ac_prog"
845 AWK="$ac_cv_prog_AWK"
846 if test -n "$AWK"; then
847 echo "$ac_t""$AWK" 1>&6
849 echo "$ac_t""no" 1>&6
852 test -n "$AWK" && break
855 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
856 echo "configure:857: checking whether ${MAKE-make} sets \${MAKE}" >&5
857 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
858 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
859 echo $ac_n "(cached) $ac_c" 1>&6
861 cat > conftestmake <<\EOF
863 @echo 'ac_maketemp="${MAKE}"'
865 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
866 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
867 if test -n "$ac_maketemp"; then
868 eval ac_cv_prog_make_${ac_make}_set=yes
870 eval ac_cv_prog_make_${ac_make}_set=no
874 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
875 echo "$ac_t""yes" 1>&6
878 echo "$ac_t""no" 1>&6
879 SET_MAKE="MAKE=${MAKE-make}"
882 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
883 if test "${enable_dependency_tracking+set}" = set; then
884 enableval="$enable_dependency_tracking"
888 if test "x$enable_dependency_tracking" != xno; then
889 am_depcomp="$ac_aux_dir/depcomp"
894 if test "x$enable_dependency_tracking" != xno; then
905 if test -d .deps || mkdir .deps 2> /dev/null || test -d .deps; then
907 # We redirect because .deps might already exist and be populated.
908 # In this situation we don't want to see an error.
909 rmdir .deps > /dev/null 2>&1
915 # test to see if srcdir already configured
916 if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" &&
917 test -f $srcdir/config.status; then
918 { echo "configure: error: source directory already configured; run \"make distclean\" there first" 1>&2; exit 1; }
921 # Define the identity of the package.
924 cat >> confdefs.h <<EOF
925 #define PACKAGE "$PACKAGE"
928 cat >> confdefs.h <<EOF
929 #define VERSION "$VERSION"
933 # Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
934 # the ones we care about.
936 # Some tools Automake needs.
938 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
941 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
944 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
947 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
950 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
953 AMTAR=${AMTAR-"${am_missing_run}tar"}
956 if test -z "$install_sh"; then
957 for install_sh in "$ac_aux_dir/install-sh" \
958 "$ac_aux_dir/install.sh" \
959 "${am_missing_run}${ac_auxdir}/install-sh";
961 test -f "$install_sh" && break
963 # FIXME: an evil hack: we remove the SHELL invocation from
964 # install_sh because automake adds it back in. Sigh.
965 install_sh=`echo $install_sh | sed -e 's/\${SHELL}//'`
968 _am_dirpart="`echo $install_sh | sed -e 's,//*[^/]*$,,'`"
969 INSTALL_STRIP_PROGRAM="\${SHELL} \`CDPATH=: && cd $_am_dirpart && pwd\`/install-sh -c -s"
971 # We need awk for the "check" target. The system "awk" is bad on
978 SHARED_VERSION_INFO="1:0:0"
990 #######################################################################
991 # Simple options and makefile variables
992 #######################################################################
996 # Check whether --enable-float or --disable-float was given.
997 if test "${enable_float+set}" = set; then
998 enableval="$enable_float"
1004 if test "$enable_float" = "no"; then
1005 cat >> confdefs.h <<\EOF
1012 # Check whether --enable-fortran or --disable-fortran was given.
1013 if test "${enable_fortran+set}" = set; then
1014 enableval="$enable_fortran"
1017 case "${host_cpu}-${host_os}" in
1018 sparc*-solaris* | alpha*-* | rs6000*-aix* | powerpc*-aix* | mips*-irix*) enable_fortran=yes ;;
1019 *) enable_fortran=no ;;
1023 if test "$enable_fortran" = "yes"; then
1024 cat >> confdefs.h <<\EOF
1028 GMXLIB_LIBOBJS="${GMXLIB_LIBOBJS} innerf.lo f77_wrappers.lo"
1029 if test "$enable_float" = "yes"; then
1030 MDLIB_LIBOBJS="${MDLIB_LIBOBJS} flincs.lo fsettle.lo fshake.lo"
1032 MDLIB_LIBOBJS="${MDLIB_LIBOBJS} flincsd.lo fsettled.lo fshaked.lo"
1035 GMXLIB_LIBOBJS="${GMXLIB_LIBOBJS} innerc.lo"
1036 MDLIB_LIBOBJS="${MDLIB_LIBOBJS} clincs.lo csettle.lo cshake.lo"
1041 # Check whether --enable-mpi or --disable-mpi was given.
1042 if test "${enable_mpi+set}" = set; then
1043 enableval="$enable_mpi"
1052 # Check whether --with-mpi-environment or --without-mpi-environment was given.
1053 if test "${with_mpi_environment+set}" = set; then
1054 withval="$with_mpi_environment"
1057 case "${host_cpu}" in
1058 mips*-irix*) with_mpi_environment="MPI_ENVIRONMENT" ;;
1059 *) with_mpi_environment=no ;;
1063 if test "$with_mpi_environment" != "no"; then
1064 cat >> confdefs.h <<EOF
1065 #define CHECK_MPI_ENV "$with_mpi_environment"
1071 ### X86 assembly code
1072 # Check whether --enable-x86_asm or --disable-x86_asm was given.
1073 if test "${enable_x86_asm+set}" = set; then
1074 enableval="$enable_x86_asm"
1080 case "${host_cpu}" in
1082 *) enable_x86_asm=no ;;
1086 ### Optimize for host cpu version
1087 # Check whether --enable-cpu-optimization or --disable-cpu-optimization was given.
1088 if test "${enable_cpu_optimization+set}" = set; then
1089 enableval="$enable_cpu_optimization"
1092 enable_cpu_optimization=yes
1097 ### Vector machine inner loops
1098 # Check whether --enable-vector or --disable-vector was given.
1099 if test "${enable_vector+set}" = set; then
1100 enableval="$enable_vector"
1106 if test "$enable_vector" = "yes"; then
1107 cat >> confdefs.h <<\EOF
1114 ### Simplewater hack for SGI - disabled unrolling is the same as simplewater=yes
1115 # Check whether --enable-waterloop-unrolling or --disable-waterloop-unrolling was given.
1116 if test "${enable_waterloop_unrolling+set}" = set; then
1117 enableval="$enable_waterloop_unrolling"
1120 case "${host_cpu}-${host_os}" in
1121 mips*-irix*) enable_waterloop_unrolling=yes ;;
1122 *) enable_waterloop_unrolling=no ;;
1126 if test "$enable_waterloops_unrolling" = "no"; then
1127 cat >> confdefs.h <<\EOF
1134 ### Turn off the special water-water loops on SGI...
1135 # Check whether --enable-waterwater-loops or --disable-waterwater-loops was given.
1136 if test "${enable_waterwater_loops+set}" = set; then
1137 enableval="$enable_waterwater_loops"
1140 case "${host_cpu}-${host_os}" in
1141 mips*-irix*) enable_waterwater_loops=yes ;;
1142 *) enable_waterwater_loops=no ;;
1146 if test "$enable_waterwater_loops" = "no"; then
1147 cat >> confdefs.h <<\EOF
1148 #define DISABLE_WATERWATER_LOOPS
1155 # Check whether --enable-software-recip or --disable-software-recip was given.
1156 if test "${enable_software_recip+set}" = set; then
1157 enableval="$enable_software_recip"
1160 enable_software_recip=no
1163 if test "$enable_software_recip" = "yes"; then
1164 cat >> confdefs.h <<\EOF
1165 #define SOFTWARE_RECIP
1171 ### Do software 1/sqrt(x)
1172 # Check whether --enable-software-sqrt or --disable-software-sqrt was given.
1173 if test "${enable_software_sqrt+set}" = set; then
1174 enableval="$enable_software_sqrt"
1177 case "${host_cpu}-${host_os}" in
1178 mips*-irix* | rs6000*-aix*) enable_software_sqrt=no ;;
1179 *) enable_software_sqrt=yes ;;
1183 if test "$enable_software_sqrt" = "yes"; then
1184 cat >> confdefs.h <<\EOF
1185 #define SOFTWARE_SQRT
1192 # Check whether --enable-vectorized-recip or --disable-vectorized-recip was given.
1193 if test "${enable_vectorized_recip+set}" = set; then
1194 enableval="$enable_vectorized_recip"
1197 enable_vectorized_recip=no
1200 if test "$enable_vectorized_recip" = "yes"; then
1201 cat >> confdefs.h <<\EOF
1202 #define VECTORIZE_RECIP
1206 if test "$enable_vectorized_recip" != "no"; then
1207 { echo "configure: error: Vectorized reciprocal is only meaningful for normal LJ-only loops" 1>&2; exit 1; }
1211 ### Vectorize 1/sqrt(x)
1212 # Check whether --enable-vectorized-sqrt or --disable-vectorized-sqrt was given.
1213 if test "${enable_vectorized_sqrt+set}" = set; then
1214 enableval="$enable_vectorized_sqrt"
1217 enable_vectorized_sqrt=not_selected
1220 # processing of vectorized_sqrt choices is done just before the final output stage!
1223 # The four options below used to improve code scheduling, but the newest CPUs can usually rearrange
1224 # instructions dynamically at runtime, so they might not make much difference now:
1226 ### Coordinate prefetching
1227 # Check whether --enable-prefetch-x or --disable-prefetch-x was given.
1228 if test "${enable_prefetch_x+set}" = set; then
1229 enableval="$enable_prefetch_x"
1232 enable_prefetch_x=no
1235 # processing of prefetch-x choices is done just before the final output stage!
1238 ### Force prefetching
1239 # Check whether --enable-prefetch-f or --disable-prefetch-f was given.
1240 if test "${enable_prefetch_f+set}" = set; then
1241 enableval="$enable_prefetch_f"
1244 enable_prefetch_f=no
1247 # processing of prefetch-f choices is done just before the final output stage!
1250 ### First load all coords in a water-water iteration, then square all pairs, then add the sums to get r2.
1251 # Check whether --enable-hide-square-latency or --disable-hide-square-latency was given.
1252 if test "${enable_hide_square_latency+set}" = set; then
1253 enableval="$enable_hide_square_latency"
1256 enable_hide_square_latency=no
1259 if test "$enable_hide_square_latency" = "yes"; then
1260 cat >> confdefs.h <<\EOF
1261 #define DECREASE_SQUARE_LATENCY
1267 ### Do the table lookups for all interactions between two water molecules before using the results
1268 # Check whether --enable-hide-table-latency or --disable-hide-table-latency was given.
1269 if test "${enable_hide_table_latency+set}" = set; then
1270 enableval="$enable_hide_table_latency"
1273 enable_hide_table_latency=no
1276 if test "$enable_hide_table_latency" = "yes"; then
1277 cat >> confdefs.h <<\EOF
1278 #define DECREASE_LOOKUP_LATENCY
1285 ### Compile without FFTW - disabling it means you can't use PME or PPPM!
1286 ### N.B.: This is only intended as a last resort, or for tests - don't use it!
1287 # Check whether --with-fftw or --without-fftw was given.
1288 if test "${with_fftw+set}" = set; then
1289 withval="$with_fftw"
1295 if test "$with_fftw" = "no"; then
1296 cat >> confdefs.h <<\EOF
1297 #define WITHOUT_FFTW
1309 ############################################################
1310 # Checks for programs
1311 ############################################################
1313 # normally we use the default compiler, but on alpha/linux we try the compaq ones first
1314 case "${host_cpu}-${host_os}" in
1316 cc_names="ccc cc gcc"
1317 f77_names="fort f77 g77"
1320 cc_names="cc xlc gcc"
1321 f77_names="f77 xlf xlf77 cf77 fl32 g77 fort77 f90 xlf90 pgf77 cf77 fort fort77 pgf90"
1325 if test "$enable_fortran" = "yes"; then
1326 for ac_prog in $f77_names
1328 # Extract the first word of "$ac_prog", so it can be a program name with args.
1329 set dummy $ac_prog; ac_word=$2
1330 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1331 echo "configure:1332: checking for $ac_word" >&5
1332 if eval "test \"`echo '$''{'ac_cv_prog_F77'+set}'`\" = set"; then
1333 echo $ac_n "(cached) $ac_c" 1>&6
1335 if test -n "$F77"; then
1336 ac_cv_prog_F77="$F77" # Let the user override the test.
1338 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1340 for ac_dir in $ac_dummy; do
1341 test -z "$ac_dir" && ac_dir=.
1342 if test -f $ac_dir/$ac_word; then
1343 ac_cv_prog_F77="$ac_prog"
1350 F77="$ac_cv_prog_F77"
1351 if test -n "$F77"; then
1352 echo "$ac_t""$F77" 1>&6
1354 echo "$ac_t""no" 1>&6
1357 test -n "$F77" && break
1360 if test -z "$F77"; then
1361 for ac_prog in g77 f77 f2c
1363 # Extract the first word of "$ac_prog", so it can be a program name with args.
1364 set dummy $ac_prog; ac_word=$2
1365 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1366 echo "configure:1367: checking for $ac_word" >&5
1367 if eval "test \"`echo '$''{'ac_cv_prog_F77'+set}'`\" = set"; then
1368 echo $ac_n "(cached) $ac_c" 1>&6
1370 if test -n "$F77"; then
1371 ac_cv_prog_F77="$F77" # Let the user override the test.
1373 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1375 for ac_dir in $ac_dummy; do
1376 test -z "$ac_dir" && ac_dir=.
1377 if test -f $ac_dir/$ac_word; then
1378 ac_cv_prog_F77="$ac_prog"
1385 F77="$ac_cv_prog_F77"
1386 if test -n "$F77"; then
1387 echo "$ac_t""$F77" 1>&6
1389 echo "$ac_t""no" 1>&6
1392 test -n "$F77" && break
1395 test -z "$F77" && { echo "configure: error: no acceptable Fortran 77 compiler found in \$PATH" 1>&2; exit 1; }
1398 echo $ac_n "checking whether the Fortran 77 compiler ($F77 $FFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1399 echo "configure:1400: checking whether the Fortran 77 compiler ($F77 $FFLAGS $LDFLAGS) works" >&5
1402 ac_compile='${F77-f77} -c $FFLAGS conftest.$ac_ext 1>&5'
1403 ac_link='${F77-f77} -o conftest${ac_exeext} $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1404 cross_compiling=$ac_cv_prog_f77_cross
1406 cat > conftest.$ac_ext << EOF
1412 if { (eval echo configure:1413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1413 ac_cv_prog_f77_works=yes
1414 # If we can't run a trivial program, we are probably using a cross compiler.
1415 if (./conftest; exit) 2>/dev/null; then
1416 ac_cv_prog_f77_cross=no
1418 ac_cv_prog_f77_cross=yes
1421 echo "configure: failed program was:" >&5
1422 cat conftest.$ac_ext >&5
1423 ac_cv_prog_f77_works=no
1427 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1428 ac_cpp='$CPP $CPPFLAGS'
1429 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1430 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1431 cross_compiling=$ac_cv_prog_cc_cross
1433 echo "$ac_t""$ac_cv_prog_f77_works" 1>&6
1434 if test $ac_cv_prog_f77_works = no; then
1435 { echo "configure: error: installation or configuration problem: Fortran 77 compiler cannot create executables." 1>&2; exit 1; }
1437 echo $ac_n "checking whether the Fortran 77 compiler ($F77 $FFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1438 echo "configure:1439: checking whether the Fortran 77 compiler ($F77 $FFLAGS $LDFLAGS) is a cross-compiler" >&5
1439 echo "$ac_t""$ac_cv_prog_f77_cross" 1>&6
1440 cross_compiling=$ac_cv_prog_f77_cross
1442 echo $ac_n "checking whether we are using GNU Fortran 77""... $ac_c" 1>&6
1443 echo "configure:1444: checking whether we are using GNU Fortran 77" >&5
1444 if eval "test \"`echo '$''{'ac_cv_prog_g77'+set}'`\" = set"; then
1445 echo $ac_n "(cached) $ac_c" 1>&6
1447 cat > conftest.fpp <<EOF
1452 if { ac_try='$F77 -E conftest.fpp'; { (eval echo configure:1453: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1459 echo "$ac_t""$ac_cv_prog_g77" 1>&6
1461 if test $ac_cv_prog_g77 = yes; then
1463 ac_test_FFLAGS="${FFLAGS+set}"
1464 ac_save_FFLAGS="$FFLAGS"
1466 echo $ac_n "checking whether $F77 accepts -g""... $ac_c" 1>&6
1467 echo "configure:1468: checking whether $F77 accepts -g" >&5
1468 if eval "test \"`echo '$''{'ac_cv_prog_f77_g'+set}'`\" = set"; then
1469 echo $ac_n "(cached) $ac_c" 1>&6
1471 cat > conftest.f << EOF
1475 if test -z "`$F77 -g -c conftest.f 2>&1`"; then
1476 ac_cv_prog_f77_g=yes
1484 echo "$ac_t""$ac_cv_prog_f77_g" 1>&6
1485 if test "$ac_test_FFLAGS" = set; then
1486 FFLAGS="$ac_save_FFLAGS"
1487 elif test $ac_cv_prog_f77_g = yes; then
1494 test "${FFLAGS+set}" = set || FFLAGS="-g"
1497 if test -z "$F77"; then
1498 { echo "configure: error: No fortran compiler found" 1>&2; exit 1; }
1502 # the (non-mpi) c compiler, which is also used for programs executed during build stage
1503 for ac_prog in $cc_names
1505 # Extract the first word of "$ac_prog", so it can be a program name with args.
1506 set dummy $ac_prog; ac_word=$2
1507 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1508 echo "configure:1509: checking for $ac_word" >&5
1509 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1510 echo $ac_n "(cached) $ac_c" 1>&6
1512 if test -n "$CC"; then
1513 ac_cv_prog_CC="$CC" # Let the user override the test.
1515 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1517 for ac_dir in $ac_dummy; do
1518 test -z "$ac_dir" && ac_dir=.
1519 if test -f $ac_dir/$ac_word; then
1520 ac_cv_prog_CC="$ac_prog"
1528 if test -n "$CC"; then
1529 echo "$ac_t""$CC" 1>&6
1531 echo "$ac_t""no" 1>&6
1534 test -n "$CC" && break
1537 # Extract the first word of "gcc", so it can be a program name with args.
1538 set dummy gcc; ac_word=$2
1539 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1540 echo "configure:1541: checking for $ac_word" >&5
1541 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1542 echo $ac_n "(cached) $ac_c" 1>&6
1544 if test -n "$CC"; then
1545 ac_cv_prog_CC="$CC" # Let the user override the test.
1547 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1549 for ac_dir in $ac_dummy; do
1550 test -z "$ac_dir" && ac_dir=.
1551 if test -f $ac_dir/$ac_word; then
1560 if test -n "$CC"; then
1561 echo "$ac_t""$CC" 1>&6
1563 echo "$ac_t""no" 1>&6
1566 if test -z "$CC"; then
1567 # Extract the first word of "cc", so it can be a program name with args.
1568 set dummy cc; ac_word=$2
1569 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1570 echo "configure:1571: checking for $ac_word" >&5
1571 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1572 echo $ac_n "(cached) $ac_c" 1>&6
1574 if test -n "$CC"; then
1575 ac_cv_prog_CC="$CC" # Let the user override the test.
1577 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1580 for ac_dir in $ac_dummy; do
1581 test -z "$ac_dir" && ac_dir=.
1582 if test -f $ac_dir/$ac_word; then
1583 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1584 ac_prog_rejected=yes
1592 if test $ac_prog_rejected = yes; then
1593 # We found a bogon in the path, so make sure we never use it.
1594 set dummy $ac_cv_prog_CC
1596 if test $# -gt 0; then
1597 # We chose a different compiler from the bogus one.
1598 # However, it has the same basename, so the bogon will be chosen
1599 # first if we set CC to just the basename; use the full file name.
1601 set dummy "$ac_dir/$ac_word" "$@"
1609 if test -n "$CC"; then
1610 echo "$ac_t""$CC" 1>&6
1612 echo "$ac_t""no" 1>&6
1615 if test -z "$CC"; then
1616 case "`uname -s`" in
1618 # Extract the first word of "cl", so it can be a program name with args.
1619 set dummy cl; ac_word=$2
1620 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1621 echo "configure:1622: checking for $ac_word" >&5
1622 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1623 echo $ac_n "(cached) $ac_c" 1>&6
1625 if test -n "$CC"; then
1626 ac_cv_prog_CC="$CC" # Let the user override the test.
1628 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1630 for ac_dir in $ac_dummy; do
1631 test -z "$ac_dir" && ac_dir=.
1632 if test -f $ac_dir/$ac_word; then
1641 if test -n "$CC"; then
1642 echo "$ac_t""$CC" 1>&6
1644 echo "$ac_t""no" 1>&6
1649 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1652 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1653 echo "configure:1654: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1656 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1657 ac_cpp='$CPP $CPPFLAGS'
1658 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1659 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1660 cross_compiling=$ac_cv_prog_cc_cross
1662 cat > conftest.$ac_ext << EOF
1664 #line 1665 "configure"
1665 #include "confdefs.h"
1669 if { (eval echo configure:1670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1670 ac_cv_prog_cc_works=yes
1671 # If we can't run a trivial program, we are probably using a cross compiler.
1672 if (./conftest; exit) 2>/dev/null; then
1673 ac_cv_prog_cc_cross=no
1675 ac_cv_prog_cc_cross=yes
1678 echo "configure: failed program was:" >&5
1679 cat conftest.$ac_ext >&5
1680 ac_cv_prog_cc_works=no
1684 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1685 ac_cpp='$CPP $CPPFLAGS'
1686 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1687 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1688 cross_compiling=$ac_cv_prog_cc_cross
1690 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1691 if test $ac_cv_prog_cc_works = no; then
1692 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1694 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1695 echo "configure:1696: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1696 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1697 cross_compiling=$ac_cv_prog_cc_cross
1699 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1700 echo "configure:1701: checking whether we are using GNU C" >&5
1701 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1702 echo $ac_n "(cached) $ac_c" 1>&6
1704 cat > conftest.c <<EOF
1709 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1710: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1716 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1718 if test $ac_cv_prog_gcc = yes; then
1724 ac_test_CFLAGS="${CFLAGS+set}"
1725 ac_save_CFLAGS="$CFLAGS"
1727 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1728 echo "configure:1729: checking whether ${CC-cc} accepts -g" >&5
1729 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1730 echo $ac_n "(cached) $ac_c" 1>&6
1732 echo 'void f(){}' > conftest.c
1733 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1742 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1743 if test "$ac_test_CFLAGS" = set; then
1744 CFLAGS="$ac_save_CFLAGS"
1745 elif test $ac_cv_prog_cc_g = yes; then
1746 if test "$GCC" = yes; then
1752 if test "$GCC" = yes; then
1760 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1761 echo "configure:1762: checking how to run the C preprocessor" >&5
1762 # On Suns, sometimes $CPP names a directory.
1763 if test -n "$CPP" && test -d "$CPP"; then
1766 if test -z "$CPP"; then
1767 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1768 echo $ac_n "(cached) $ac_c" 1>&6
1770 # This must be in double quotes, not single quotes, because CPP may get
1771 # substituted into the Makefile and "${CC-cc}" will confuse make.
1773 # On the NeXT, cc -E runs the code through the compiler's parser,
1774 # not just through cpp.
1775 cat > conftest.$ac_ext <<EOF
1776 #line 1777 "configure"
1777 #include "confdefs.h"
1781 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1782 { (eval echo configure:1783: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1783 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1784 if test -z "$ac_err"; then
1788 echo "configure: failed program was:" >&5
1789 cat conftest.$ac_ext >&5
1791 CPP="${CC-cc} -E -traditional-cpp"
1792 cat > conftest.$ac_ext <<EOF
1793 #line 1794 "configure"
1794 #include "confdefs.h"
1798 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1799 { (eval echo configure:1800: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1800 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1801 if test -z "$ac_err"; then
1805 echo "configure: failed program was:" >&5
1806 cat conftest.$ac_ext >&5
1808 CPP="${CC-cc} -nologo -E"
1809 cat > conftest.$ac_ext <<EOF
1810 #line 1811 "configure"
1811 #include "confdefs.h"
1815 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1816 { (eval echo configure:1817: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1817 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1818 if test -z "$ac_err"; then
1822 echo "configure: failed program was:" >&5
1823 cat conftest.$ac_ext >&5
1832 ac_cv_prog_CPP="$CPP"
1834 CPP="$ac_cv_prog_CPP"
1836 ac_cv_prog_CPP="$CPP"
1838 echo "$ac_t""$CPP" 1>&6
1840 am_make=${MAKE-make}
1841 cat > confinc << 'END'
1845 # If we don't find an include directive, just comment out the code.
1846 echo $ac_n "checking for style of include used by $am_make""... $ac_c" 1>&6
1847 echo "configure:1848: checking for style of include used by $am_make" >&5
1851 # First try GNU make style include.
1852 echo "include confinc" > confmf
1853 # We grep out `Entering directory' and `Leaving directory'
1854 # messages which can occur if `w' ends up in MAKEFLAGS.
1855 # In particular we don't look at `^make:' because GNU make might
1856 # be invoked under some other name (usually "gmake"), in which
1857 # case it prints its new name instead of `make'.
1858 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
1863 # Now try BSD make style include.
1864 if test "$_am_include" = "#"; then
1865 echo '.include "confinc"' > confmf
1866 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1867 _am_include=.include
1874 echo "$ac_t""$_am_result" 1>&6
1875 rm -f confinc confmf
1885 echo $ac_n "checking dependency style of $depcc""... $ac_c" 1>&6
1886 echo "configure:1887: checking dependency style of $depcc" >&5
1887 if eval "test \"`echo '$''{'am_cv_CC_dependencies_compiler_type'+set}'`\" = set"; then
1888 echo $ac_n "(cached) $ac_c" 1>&6
1890 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
1891 # We make a subdir and do the tests there. Otherwise we can end up
1892 # making bogus files that we don't know about and never remove. For
1893 # instance it was reported that on HP-UX the gcc test will end up
1894 # making a dummy file named `D' -- because `-MD' means `put the output
1897 # Copy depcomp to subdir because otherwise we won't find it if we're
1898 # using a relative directory.
1899 cp "$am_depcomp" confdir
1902 am_cv_CC_dependencies_compiler_type=none
1903 if test "$am_compiler_list" = ""; then
1904 am_compiler_list="`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`"
1906 for depmode in $am_compiler_list; do
1907 # We need to recreate these files for each test, as the compiler may
1908 # overwrite some of them when testing with obscure command lines.
1909 # This happens at least with the AIX C compiler.
1910 echo '#include "conftest.h"' > conftest.c
1911 echo 'int i;' > conftest.h
1915 # after this tag, mechanisms are not by side-effect, so they'll
1916 # only be used when explicitly requested
1917 if test "x$enable_dependency_tracking" = xyes; then
1925 # We check with `-c' and `-o' for the sake of the "dashmstdout"
1926 # mode. It turns out that the SunPro C++ compiler does not properly
1927 # handle `-M -o', and we need to detect this.
1928 if depmode="$depmode" \
1929 source=conftest.c object=conftest.o \
1930 depfile=conftest.Po tmpdepfile=conftest.TPo \
1931 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
1932 grep conftest.h conftest.Po > /dev/null 2>&1; then
1933 am_cv_CC_dependencies_compiler_type="$depmode"
1941 am_cv_CC_dependencies_compiler_type=none
1946 echo "$ac_t""$am_cv_CC_dependencies_compiler_type" 1>&6
1947 CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type"
1950 # Check for environment variable CC_FOR_BUILD before overwriting it
1951 if test -z "$CC_FOR_BUILD"; then
1956 # if we are using mpi, also get an MPICC. We cannot set that in the PROG_CC macro
1957 # above, since autoconf checks that the created file can be executed. This would
1958 # fail on platforms where MPI executables can only be run through a batchqueue.
1960 if test "$enable_mpi" = "yes"; then
1961 for ac_prog in mpicc mpcc mpxlf hcc
1963 # Extract the first word of "$ac_prog", so it can be a program name with args.
1964 set dummy $ac_prog; ac_word=$2
1965 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1966 echo "configure:1967: checking for $ac_word" >&5
1967 if eval "test \"`echo '$''{'ac_cv_prog_MPICC'+set}'`\" = set"; then
1968 echo $ac_n "(cached) $ac_c" 1>&6
1970 if test -n "$MPICC"; then
1971 ac_cv_prog_MPICC="$MPICC" # Let the user override the test.
1973 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1975 for ac_dir in $ac_dummy; do
1976 test -z "$ac_dir" && ac_dir=.
1977 if test -f $ac_dir/$ac_word; then
1978 ac_cv_prog_MPICC="$ac_prog"
1985 MPICC="$ac_cv_prog_MPICC"
1986 if test -n "$MPICC"; then
1987 echo "$ac_t""$MPICC" 1>&6
1989 echo "$ac_t""no" 1>&6
1992 test -n "$MPICC" && break
1994 test -n "$MPICC" || MPICC="$CC"
1996 # now change the normal cc to the MPI one - see the comment above.
1998 echo $ac_n "checking whether the MPI cc command works""... $ac_c" 1>&6
1999 echo "configure:2000: checking whether the MPI cc command works" >&5 # be paranoid
2000 cat > conftest.$ac_ext <<EOF
2001 #line 2002 "configure"
2002 #include "confdefs.h"
2005 int argc; char **argv; MPI_Init(&argc,&argv);
2008 if { (eval echo configure:2009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2010 echo "$ac_t""yes" 1>&6
2012 echo "configure: failed program was:" >&5
2013 cat conftest.$ac_ext >&5
2015 { echo "configure: error: Cannot compile and link MPI code with $CC" 1>&2; exit 1; }
2018 cat >> confdefs.h <<\EOF
2022 GMXLIB_LIBOBJS="${GMXLIB_LIBOBJS} mpiio.lo"
2024 GMXLIB_LIBOBJS="${GMXLIB_LIBOBJS} libnet.lo"
2027 if test "$enable_fortran" = "yes"; then
2028 echo $ac_n "checking for Fortran 77 libraries""... $ac_c" 1>&6
2029 echo "configure:2030: checking for Fortran 77 libraries" >&5
2032 if eval "test \"`echo '$''{'ac_cv_flibs'+set}'`\" = set"; then
2033 echo $ac_n "(cached) $ac_c" 1>&6
2035 echo " END" > conftest.f
2036 foutput=`${F77} -v -o conftest conftest.f 2>&1`
2037 xlf_p=`echo $foutput | grep xlfentry`
2038 if test -n "$xlf_p"; then
2039 foutput=`echo $foutput | sed 's/,/ /g'`
2041 ld_run_path=`echo $foutput | \
2042 sed -n -e 's/^.*LD_RUN_PATH *= *\([^ ]*\).*/\1/p'`
2043 case "$ld_run_path" in
2045 if test "$ac_cv_prog_gcc" = yes; then
2046 ld_run_path="-Xlinker -R -Xlinker $ld_run_path"
2048 ld_run_path="-R $ld_run_path"
2058 for arg in $foutput; do
2059 old_want_arg=$want_arg
2061 if test -n "$old_want_arg"; then
2068 case "$old_want_arg" in
2073 for f in $lflags; do
2074 if test x$arg = x$f; then
2081 lflags="$lflags $arg"
2086 for f in $lflags; do
2087 if test x$arg = x$f; then
2094 if test "$ac_cv_prog_gcc" = yes; then
2095 lflags="$lflags -Xlinker $arg"
2097 lflags="$lflags $arg"
2101 -lang* | -lcrt0.o | -lc | -lgcc)
2110 for f in $lflags; do
2111 if test x$arg = x$f; then
2120 case "$canonical_host_type" in
2125 lflags="$lflags $arg"
2132 lflags="$lflags $arg"
2151 arg="$old_want_arg $arg"
2157 arg=`echo $arg | sed -e 's%^P,%%'`
2168 if test -n "$arg"; then
2172 if test -n "$ld_run_path"; then
2173 flibs_result="$ld_run_path $flibs"
2175 flibs_result="$flibs"
2177 ac_cv_flibs="$flibs_result"
2180 FLIBS="$ac_cv_flibs"
2181 echo "$ac_t""$FLIBS" 1>&6
2187 echo $ac_n "checking fortran name mangling""... $ac_c" 1>&6
2188 echo "configure:2189: checking fortran name mangling" >&5
2189 cat > mangle-func.f <<EOF
2193 subroutine foo_bar()
2197 ac_try='$F77 -c $FFLAGS mangle-func.f 1>&5'
2198 if { (eval echo configure:2199: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; then
2201 echo "configure: failed program was:" >&5
2202 cat mangle-func.f >&5
2204 { echo "configure: error: failed to compile fortran test program" 1>&2; exit 1; }
2207 ac_f77_mangle_type=unknown
2210 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2211 ac_cpp='$CPP $CPPFLAGS'
2212 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2213 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2214 cross_compiling=$ac_cv_prog_cc_cross
2216 ac_save_LIBS="$LIBS"
2217 LIBS="mangle-func.o $FLIBS $LIBS"
2218 cat > conftest.$ac_ext <<EOF
2219 #line 2220 "configure"
2220 #include "confdefs.h"
2226 if { (eval echo configure:2227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2228 ac_f77_mangle_type=lowercase
2230 echo "configure: failed program was:" >&5
2231 cat conftest.$ac_ext >&5
2233 cat > conftest.$ac_ext <<EOF
2234 #line 2235 "configure"
2235 #include "confdefs.h"
2241 if { (eval echo configure:2242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2243 ac_f77_mangle_type=lowercase-underscore
2245 echo "configure: failed program was:" >&5
2246 cat conftest.$ac_ext >&5
2248 cat > conftest.$ac_ext <<EOF
2249 #line 2250 "configure"
2250 #include "confdefs.h"
2256 if { (eval echo configure:2257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2258 ac_f77_mangle_type=uppercase
2260 echo "configure: failed program was:" >&5
2261 cat conftest.$ac_ext >&5
2263 cat > conftest.$ac_ext <<EOF
2264 #line 2265 "configure"
2265 #include "confdefs.h"
2271 if { (eval echo configure:2272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2273 ac_f77_mangle_type=uppercase-underscore
2275 echo "configure: failed program was:" >&5
2276 cat conftest.$ac_ext >&5
2285 LIBS="$ac_save_LIBS"
2287 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2288 ac_cpp='$CPP $CPPFLAGS'
2289 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2290 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2291 cross_compiling=$ac_cv_prog_cc_cross
2293 echo "$ac_t""$ac_f77_mangle_type" 1>&6
2296 case $ac_f77_mangle_type in
2298 cat >> confdefs.h <<\EOF
2299 #define F77_NAME_LOWERCASE
2304 lowercase-underscore)
2305 cat >> confdefs.h <<\EOF
2306 #define F77_NAME_LOWERCASE_UNDERSCORE
2309 mangle_try=foo_bar__
2312 cat >> confdefs.h <<\EOF
2313 #define F77_NAME_UPPERCASE
2318 uppercase-underscore)
2319 cat >> confdefs.h <<\EOF
2320 #define F77_NAME_UPPERCASE_UNDERSCORE
2323 mangle_try=FOO_BAR__
2327 echo $ac_n "checking whether f77 functions with underscore get an extra underscore""... $ac_c" 1>&6
2328 echo "configure:2329: checking whether f77 functions with underscore get an extra underscore" >&5
2332 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2333 ac_cpp='$CPP $CPPFLAGS'
2334 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2335 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2336 cross_compiling=$ac_cv_prog_cc_cross
2338 ac_save_LIBS="$LIBS"
2339 LIBS="mangle-func.o $FLIBS $LIBS"
2340 cat > conftest.$ac_ext <<EOF
2341 #line 2342 "configure"
2342 #include "confdefs.h"
2348 if { (eval echo configure:2349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2350 ac_f77_mangle_underscore=yes;
2351 cat >> confdefs.h <<\EOF
2352 #define F77_NAME_EXTRA_UNDERSCORE
2356 echo "configure: failed program was:" >&5
2357 cat conftest.$ac_ext >&5
2359 ac_f77_mangle_underscore=no
2362 LIBS="$ac_save_LIBS"
2364 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2365 ac_cpp='$CPP $CPPFLAGS'
2366 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2367 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2368 cross_compiling=$ac_cv_prog_cc_cross
2371 echo "$ac_t""$ac_f77_mangle_underscore" 1>&6
2375 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2376 echo "configure:2377: checking how to run the C preprocessor" >&5
2377 # On Suns, sometimes $CPP names a directory.
2378 if test -n "$CPP" && test -d "$CPP"; then
2381 if test -z "$CPP"; then
2382 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2383 echo $ac_n "(cached) $ac_c" 1>&6
2385 # This must be in double quotes, not single quotes, because CPP may get
2386 # substituted into the Makefile and "${CC-cc}" will confuse make.
2388 # On the NeXT, cc -E runs the code through the compiler's parser,
2389 # not just through cpp.
2390 cat > conftest.$ac_ext <<EOF
2391 #line 2392 "configure"
2392 #include "confdefs.h"
2396 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2397 { (eval echo configure:2398: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2398 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2399 if test -z "$ac_err"; then
2403 echo "configure: failed program was:" >&5
2404 cat conftest.$ac_ext >&5
2406 CPP="${CC-cc} -E -traditional-cpp"
2407 cat > conftest.$ac_ext <<EOF
2408 #line 2409 "configure"
2409 #include "confdefs.h"
2413 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2414 { (eval echo configure:2415: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2415 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2416 if test -z "$ac_err"; then
2420 echo "configure: failed program was:" >&5
2421 cat conftest.$ac_ext >&5
2423 CPP="${CC-cc} -nologo -E"
2424 cat > conftest.$ac_ext <<EOF
2425 #line 2426 "configure"
2426 #include "confdefs.h"
2430 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2431 { (eval echo configure:2432: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2432 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2433 if test -z "$ac_err"; then
2437 echo "configure: failed program was:" >&5
2438 cat conftest.$ac_ext >&5
2447 ac_cv_prog_CPP="$CPP"
2449 CPP="$ac_cv_prog_CPP"
2451 ac_cv_prog_CPP="$CPP"
2453 echo "$ac_t""$CPP" 1>&6
2456 if test "$enable_cpu_optimization" = "yes"; then
2461 # Determine the exact cpu type on some common systems where it is
2462 # not visible from the host triplet.
2463 # (on e.g. intel and dec/tru64 the host type is enough)
2465 case "${host_cpu}-${host_os}" in
2468 # we need to fool the combination of m4, sh and awk - thus the seemingly unnecessary n
2469 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | head -1 | awk '{ n=1; print $n }'`
2470 if /usr/sbin/lsattr -EHl ${IBM_CPU_ID} | grep POWER4 >/dev/null 2>&1; then
2472 elif /usr/sbin/lsattr -EHl ${IBM_CPU_ID} | grep POWER3 >/dev/null 2>&1; then
2474 elif /usr/sbin/lsattr -EHl ${IBM_CPU_ID} | grep POWER2 >/dev/null 2>&1; then
2482 if /usr/sbin/lscfg -vp | grep PowerPC | grep 604 >/dev/null 2>&1; then
2484 elif /usr/sbin/lscfg -vp | grep PowerPC | grep 603 >/dev/null 2>&1; then
2486 elif /usr/sbin/lscfg -vp | grep PowerPC | grep rs64a >/dev/null 2>&1; then
2488 elif /usr/sbin/lscfg -vp | grep PowerPC | grep rs64b >/dev/null 2>&1; then
2490 elif /usr/sbin/lscfg -vp | grep PowerPC | grep rs64c >/dev/null 2>&1; then
2498 if /sbin/hinv | grep CPU | grep R12000 >/dev/null 2>&1; then
2500 elif /sbin/hinv | grep CPU | grep R10000 >/dev/null 2>&1; then
2502 elif /sbin/hinv | grep CPU | grep R8000 >/dev/null 2>&1; then
2504 elif /sbin/hinv | grep CPU | grep R5000 >/dev/null 2>&1; then
2512 if /usr/sbin/prtconf | grep UltraSPARC-III >/dev/null 2>&1; then
2514 elif /usr/sbin/prtconf | grep UltraSPARC-IIi >/dev/null 2>&1; then
2516 elif /usr/sbin/prtconf | grep UltraSPARC-II >/dev/null 2>&1; then
2518 elif /usr/sbin/prtconf | grep UltraSPARC >/dev/null 2>&1; then
2538 # Try to determine "good" native compiler flags if none specified on command
2539 # line. To avoid repeating the entire procedure for fortran flags, we first
2540 # determine our suggested choices for both C and fortran, and then possibly
2541 # override them with user choices.
2545 case "${host_cpu}-${host_os}" in
2550 xCFLAGS="-fast -xO5 -xtarget=ultra3 -fsimple=2 -fnonstd -dalign"
2554 xCFLAGS="-fast -xO5 -xtarget=ultra2i -fsimple=2 -fnonstd -dalign"
2558 xCFLAGS="-fast -xO5 -xtarget=ultra2 -fsimple=2 -fnonstd -dalign"
2562 xCFLAGS="-fast -xO5 -xtarget=ultra -fsimple=2 -fnonstd -dalign"
2566 xCFLAGS="-native -fast -xO5 -fsimple=2 -fnonstd -dalign"
2573 xCFLAGS="-Ae +O3 +Oall"
2575 # If you haven't noticed, we don't like hp very much...
2576 # but perhaps that will change if they make something nice out of ia64.
2580 # dont use inter-procedure analysis for the innerloops - they take
2581 # forever to compile with it, and it doesnt help at all.
2584 xCFLAGS="-O3 -qarch=pwr4 -qtune=pwr4 -qlanglvl=ansi -qmaxmem=16384"
2585 xFFLAGS="-O3 -Q -qarch=pwr4 -qtune=pwr4 -qmaxmem=16384 -qhot -qnoipa"
2588 xCFLAGS="-O3 -qarch=pwr3 -qtune=pwr3 -qlanglvl=ansi -qmaxmem=16384"
2589 xFFLAGS="-O3 -Q -qarch=pwr3 -qtune=pwr3 -qmaxmem=16384 -qhot -qnoipa"
2592 xCFLAGS="-O3 -qarch=pwr2 -qtune=pwr2 -qlanglvl=ansi -qmaxmem=16384"
2593 xFFLAGS="-O3 -Q -qarch=pwr2 -qtune=pwr2 -qmaxmem=16384 -qhot -qnoipa"
2596 xCFLAGS="-O3 -qarch=pwr -qtune=pwr -qlanglvl=ansi -qmaxmem=16384"
2597 xFFLAGS="-O3 -Q -qarch=pwr -qtune=pwr -qmaxmem=16384 -qhot -qnoipa"
2600 # I don't think people are using anything older than power2, so we tune for
2601 # pwr, but dont set the arch since it is nice to have common binaries
2602 # that run also on powerpc.
2603 xCFLAGS="-O3 -qlanglvl=ansi -qtune=pwr -qmaxmem=16384"
2604 xFFLAGS="-O3 -Q -qtune=pwr -qmaxmem=16384 -qhot"
2612 xCFLAGS="-O3 -qarch=604 -qtune=604 -qlanglvl=ansi -qmaxmem=16384"
2613 xFFLAGS="-O3 -Q -qarch=604 -qtune=604 -qmaxmem=16384 -qhot"
2616 xCFLAGS="-O3 -qarch=603 -qtune=603 -qlanglvl=ansi -qmaxmem=16384"
2617 xFFLAGS="-O3 -Q -qarch=603 -qtune=603 -qmaxmem=16384 -qhot"
2620 xCFLAGS="-O3 -qarch=rs64a -qtune=rs64a -qlanglvl=ansi -qmaxmem=16384"
2621 xFFLAGS="-O3 -Q -qarch=rs64a -qtune=rs64a -qmaxmem=16384 -qhot"
2624 xCFLAGS="-O3 -qarch=rs64b -qtune=rs64b -qlanglvl=ansi -qmaxmem=16384"
2625 xFFLAGS="-O3 -Q -qarch=rs64b -qtune=rs64b -qmaxmem=16384 -qhot"
2628 xCFLAGS="-O3 -qarch=rs64c -qtune=rs64c -qlanglvl=ansi -qmaxmem=16384"
2629 xFFLAGS="-O3 -Q -qarch=rs64c -qtune=rs64c -qmaxmem=16384 -qhot"
2632 xCFLAGS="-O3 -qlanglvl=ansi -qmaxmem=16384"
2633 xFFLAGS="-O3 -Q -qmaxmem=16384 -qhot"
2639 xCFLAGS="-O3 -OPT:IEEE_arithmetic=3 -OPT:rsqrt=ON -SWP:loop_overhead -INLINE:=ON -LNO:opt=1 -LNO:ou_further=3 -OPT:Olimit=0:roundoff=3:alias=typed -woff 1174 -D__INLINE_INTRINSICS"
2640 xFFLAGS="-O3 -OPT:IEEE_arithmetic=3 -OPT:rsqrt=ON -SWP:loop_overhead -INLINE:=ON -LNO:opt=1 -LNO:ou_further=3 -OPT:Olimit=0:roundoff=3:alias=typed -OPT:cray_ivdep=TRUE"
2642 if $CC -version | grep "Version 7.1" > /dev/null 2>&1; then
2643 xCFLAGS="$xCFLAGS -GCM:aggressive_speculation -GCM:array_speculation"
2644 xFFLAGS="$xFFLAGS -GCM:aggressive_speculation -GCM:array_speculation"
2647 if $CC -version | grep "Version 7.3" > /dev/null 2>&1; then
2648 xCFLAGS="$xCFLAGS -SWP:heur=fdms,nhms,fdnms"
2649 xFFLAGS="$xFFLAGS -SWP:heur=fdms,nhms,fdnms"
2651 LDFLAGS="$LDFLAGS -woff 84"
2655 xCFLAGS="-n32 -r12000 -mips4 $xCFLAGS"
2656 xFFLAGS="-n32 -r12000 -mips4 $xFFLAGS"
2657 xLDFLAGS="-n32 -r12000 -mips4"
2660 xCFLAGS="-n32 -r10000 -mips4 $xCFLAGS"
2661 xFFLAGS="-n32 -r10000 -mips4 $xFFLAGS"
2662 xLDFLAGS="-n32 -r10000 -mips4"
2665 xCFLAGS="-n32 -r8000 -mips4 $xCFLAGS"
2666 xFFLAGS="-n32 -r8000 -mips4 $xFFLAGS"
2667 xLDFLAGS="-n32 -r8000 -mips4"
2670 xCFLAGS="-n32 -r5000 -mips4 $xCFLAGS"
2671 xFFLAGS="-n32 -r5000 -mips4 $xFFLAGS"
2672 xLDFLAGS="-n32 -r5000 -mips4"
2675 xCFLAGS="-n32 $xCFLAGS"
2676 xFFLAGS="-n32 $xFFLAGS"
2683 # NB: -arch implies -tune according to the cc manual.
2684 # We dont use -ifo since it conflicts with dependency
2685 # generation on old versions of the compiler.
2686 case "${host_cpu}" in
2688 # extract the processor from cpu type (e.g. alphaev56 -> ev56)
2689 evtype=`echo ${host_cpu} | sed 's/alpha//'`
2690 xCFLAGS="-std1 -fast -O4 -no_ifo -arch $evtype -unroll 2 -fp_reorder"
2691 xFFLAGS="$xCFLAGS -assume noaccuracy_sensitive"
2695 xCFLAGS="-std1 -fast -O4 -no_ifo -arch host -unroll 2 -fp_reorder"
2696 xFFLAGS="$xCFLAGS -assume noaccuracy_sensitive"
2703 case "${host_cpu}" in
2705 # extract the processor from cpu type (e.g. alphaev56 -> ev56)
2706 evtype=`echo ${host_cpu} | sed 's/alpha//'`
2707 tmpCFLAGS="-std1 -fast -O4 -no_ifo -arch $evtype -unroll 2 -fp_reorder"
2708 tmpFFLAGS="$tmpCFLAGS -assume noaccuracy_sensitive"
2712 tmpCFLAGS="-std1 -fast -O4 -no_ifo -arch host -unroll 2 -fp_reorder"
2713 tmpFFLAGS="$tmpCFLAGS -assume noaccuracy_sensitive"
2717 if $CC -V 2> /dev/null | grep Compaq > /dev/null 2>&1; then
2718 xCFLAGS="$tmpCFLAGS"
2721 if test "$enable_fortran" = "yes"; then
2722 if $F77 -V 2> /dev/null | grep Compaq > /dev/null 2>&1; then
2723 xFFLAGS="$tmpFFLAGS"
2729 # most of these systems (e.g. linux, FreeBSD) use gcc which is treated
2730 # further down, but we can at least check if the Portland compilers are used:
2731 if $CC -V 2> /dev/null | grep Portland > /dev/null 2>&1; then
2732 case "${host_cpu}" in
2740 xCFLAGS="$pgiopt -fast -pc 32"
2742 if test "$enable_fortran" = "yes"; then
2743 if $F77 -V 2> /dev/null | grep Portland > /dev/null 2>&1; then
2749 # Phew, end of all those operating systems and processors!
2751 # use default flags for gcc/g77 on all systems
2752 if test $ac_cv_prog_gcc = yes; then
2753 xCFLAGS="-O6 -fomit-frame-pointer -finline-functions -funroll-all-loops -Wall -Wno-unused"
2754 # -malign-double for x86 systems
2757 echo $ac_n "checking whether $CC accepts -malign-double""... $ac_c" 1>&6
2758 echo "configure:2759: checking whether $CC accepts -malign-double" >&5
2759 if eval "test \"`echo '$''{'ac_align_double'+set}'`\" = set"; then
2760 echo $ac_n "(cached) $ac_c" 1>&6
2762 echo 'void f(){}' > conftest.c
2763 if test -z "`$CC -malign-double -c conftest.c 2>&1`"; then
2772 echo "$ac_t""$ac_align_double" 1>&6
2773 if test "$ac_align_double" = yes; then
2775 xCFLAGS="$xCFLAGS -malign-double"
2783 if test $enable_fortran = yes; then
2784 if test $ac_cv_prog_g77 = yes; then
2785 xFFLAGS="-O3 -ffast-math -fomit-frame-pointer -finline-functions -funroll-all-loops -Wall -Wno-unused"
2786 # -malign-double for f77 on x86 systems - haven't checked that this works yet.
2787 #ACX_CHECK_F77_FLAGS(-malign-double,align_double,xFFLAGS="$xFFLAGS -malign-double")
2793 if test "$GCC" = "yes"; then
2794 ASFLAGS="$ASFLAGS -x assembler-with-cpp"
2795 # try to guess correct CPU flags, at least for linux
2796 case "${host_cpu}" in
2797 # i586/i686 cpu flags don't improve speed, thus no need to use them.
2798 # don't check f77 separately - we assume f77 and gcc are similar
2801 cputype=`(grep cpu /proc/cpuinfo | head -1 | cut -d: -f2 | sed 's/ //g') 2> /dev/null`
2802 is60x=`echo $cputype | egrep "^600-9e?$"`
2803 if test -n "$is60x"; then
2806 echo $ac_n "checking whether $CC accepts -mcpu=$cputype""... $ac_c" 1>&6
2807 echo "configure:2808: checking whether $CC accepts -mcpu=$cputype" >&5
2808 if eval "test \"`echo '$''{'ac_m_cpu_60x'+set}'`\" = set"; then
2809 echo $ac_n "(cached) $ac_c" 1>&6
2811 echo 'void f(){}' > conftest.c
2812 if test -z "`$CC -mcpu=$cputype -c conftest.c 2>&1`"; then
2821 echo "$ac_t""$ac_m_cpu_60x" 1>&6
2822 if test "$ac_m_cpu_60x" = yes; then
2824 CPU_FLAGS=-mcpu=$cputype
2830 elif test "$cputype" = 750; then
2833 echo $ac_n "checking whether $CC accepts -mcpu=750""... $ac_c" 1>&6
2834 echo "configure:2835: checking whether $CC accepts -mcpu=750" >&5
2835 if eval "test \"`echo '$''{'ac_m_cpu_750'+set}'`\" = set"; then
2836 echo $ac_n "(cached) $ac_c" 1>&6
2838 echo 'void f(){}' > conftest.c
2839 if test -z "`$CC -mcpu=750 -c conftest.c 2>&1`"; then
2848 echo "$ac_t""$ac_m_cpu_750" 1>&6
2849 if test "$ac_m_cpu_750" = yes; then
2858 if test -z "$CPU_FLAGS"; then
2861 echo $ac_n "checking whether $CC accepts -mcpu=powerpc""... $ac_c" 1>&6
2862 echo "configure:2863: checking whether $CC accepts -mcpu=powerpc" >&5
2863 if eval "test \"`echo '$''{'ac_m_cpu_powerpc'+set}'`\" = set"; then
2864 echo $ac_n "(cached) $ac_c" 1>&6
2866 echo 'void f(){}' > conftest.c
2867 if test -z "`$CC -mcpu=powerpc -c conftest.c 2>&1`"; then
2868 ac_m_cpu_powerpc=yes
2876 echo "$ac_t""$ac_m_cpu_powerpc" 1>&6
2877 if test "$ac_m_cpu_powerpc" = yes; then
2879 CPU_FLAGS=-mcpu=powerpc
2886 if test -z "$CPU_FLAGS"; then
2889 echo $ac_n "checking whether $CC accepts -mpowerpc""... $ac_c" 1>&6
2890 echo "configure:2891: checking whether $CC accepts -mpowerpc" >&5
2891 if eval "test \"`echo '$''{'ac_m_powerpc'+set}'`\" = set"; then
2892 echo $ac_n "(cached) $ac_c" 1>&6
2894 echo 'void f(){}' > conftest.c
2895 if test -z "`$CC -mpowerpc -c conftest.c 2>&1`"; then
2904 echo "$ac_t""$ac_m_powerpc" 1>&6
2905 if test "$ac_m_powerpc" = yes; then
2927 if test -n "$CPU_FLAGS"; then
2928 xCFLAGS="$xCFLAGS $CPU_FLAGS"
2929 xFFLAGS="$xFFLAGS $CPU_FLAGS"
2932 # Now check if the user provided anything special for C or fortran...
2933 # Not nice to have checked everything then, but otherwise we would have
2934 # to use entirely separate checks for C and fortran flags, doubling the code.
2935 if test "$ac_test_CFLAGS" != "set"; then
2937 # Use the extra link optimization flags on e.g. irix only when
2938 # we are using our own C compiler flags
2939 LDFLAGS="$LDFLAGS $xLDFLAGS"
2941 if test -z "$CFLAGS"; then
2942 echo "*******************************************************************"
2943 echo "* WARNING: No special optimization settings found for the C *"
2944 echo "* compiler. Use make CFLAGS=..., or edit the top level Makefile. *"
2945 echo "* Reverting to the default setting CFLAGS=-O3. (mail us about it!)*"
2946 echo "*******************************************************************"
2951 echo $ac_n "checking whether $CC accepts ${CFLAGS}""... $ac_c" 1>&6
2952 echo "configure:2953: checking whether $CC accepts ${CFLAGS}" >&5
2953 if eval "test \"`echo '$''{'ac_guessed_cflags'+set}'`\" = set"; then
2954 echo $ac_n "(cached) $ac_c" 1>&6
2956 echo 'void f(){}' > conftest.c
2957 if test -z "`$CC ${CFLAGS} -c conftest.c 2>&1`"; then
2958 ac_guessed_cflags=yes
2960 ac_guessed_cflags=no
2966 echo "$ac_t""$ac_guessed_cflags" 1>&6
2967 if test "$ac_guessed_cflags" = yes; then
2973 echo "*******************************************************************"
2974 echo "* Sorry, these optimization settings don't seem to work for *"
2975 echo "* your C compiler. Use make CFLAGS=..., or edit the top Makefile. *"
2976 echo "*******************************************************************"
2982 echo "******************************************"
2983 echo "* Using CFLAGS from environment variable *"
2984 echo "******************************************"
2987 if test "$enable_fortran" = "yes"; then
2988 if test "$ac_test_FFLAGS" != "set"; then
2990 if test -z "$FFLAGS"; then
2991 echo "*******************************************************************"
2992 echo "* WARNING: No special optimization settings found for the fortran *"
2993 echo "* compiler. Use make FFLAGS=..., or edit the top level Makefile. *"
2994 echo "* Reverting to the default setting FFLAGS=-O3. (mail us about it!)*"
2995 echo "*******************************************************************"
3000 echo $ac_n "checking whether $F77 accepts ${FFLAGS}""... $ac_c" 1>&6
3001 echo "configure:3002: checking whether $F77 accepts ${FFLAGS}" >&5
3002 if eval "test \"`echo '$''{'ac_guessed_fflags'+set}'`\" = set"; then
3003 echo $ac_n "(cached) $ac_c" 1>&6
3005 cat > conftest.f << EOF
3010 if test -z "`$F77 ${FFLAGS} -c conftest.f `"; then
3011 ac_guessed_fflags=yes
3013 ac_guessed_fflags=no
3019 echo "$ac_t""$ac_guessed_fflags" 1>&6
3020 if test "$ac_guessed_fflags" = yes; then
3026 echo "*******************************************************************"
3027 echo "* Sorry, these optimization settings don't seem to work for *"
3028 echo "* your f77 compiler. Use make FFLAGS=.., or edit the top Makefile.*"
3029 echo "*******************************************************************"
3035 echo "******************************************"
3036 echo "* Using FFLAGS from environment variable *"
3037 echo "******************************************"
3043 # Check x86 asm prerequisites and the capabilities of as
3044 if test "$enable_x86_asm" = "yes"; then
3045 if test "$enable_float" = "no"; then
3046 echo "configure: warning: x86 assembly loops can only be used in single precision - disabling" 1>&2
3049 echo $ac_n "checking whether as fully supports intel syntax""... $ac_c" 1>&6
3050 echo "configure:3051: checking whether as fully supports intel syntax" >&5
3051 cat > conftest.s << EOF
3052 .intel_syntax noprefix
3056 movups xmm0,checkasm
3060 if { ac_try='$CC -c conftest.s'; { (eval echo configure:3061: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3061 echo "$ac_t""yes" 1>&6
3063 echo "$ac_t""no" 1>&6
3064 { echo "configure: error: Upgrade to a more recent binutils, download the as executable
3065 from www.gromacs.org, or disable assembly loops." 1>&2; exit 1; }
3067 GMXLIB_LIBOBJS="${GMXLIB_LIBOBJS} x86_cpuid.lo x86_sse.lo x86_3dnow.lo"
3071 # Extract the first word of "ident", so it can be a program name with args.
3072 set dummy ident; ac_word=$2
3073 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3074 echo "configure:3075: checking for $ac_word" >&5
3075 if eval "test \"`echo '$''{'ac_cv_path_IDENT'+set}'`\" = set"; then
3076 echo $ac_n "(cached) $ac_c" 1>&6
3080 ac_cv_path_IDENT="$IDENT" # Let the user override the test with a path.
3083 ac_cv_path_IDENT="$IDENT" # Let the user override the test with a dos path.
3086 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3088 for ac_dir in $ac_dummy; do
3089 test -z "$ac_dir" && ac_dir=.
3090 if test -f $ac_dir/$ac_word; then
3091 ac_cv_path_IDENT="$ac_dir/$ac_word"
3096 test -z "$ac_cv_path_IDENT" && ac_cv_path_IDENT="no"
3100 IDENT="$ac_cv_path_IDENT"
3101 if test -n "$IDENT"; then
3102 echo "$ac_t""$IDENT" 1>&6
3104 echo "$ac_t""no" 1>&6
3107 if test "$IDENT" != "no"; then
3108 # seems as if we have the ident program, but does the
3109 # compiler support it?
3110 echo $ac_n "checking whether the compiler supports ident""... $ac_c" 1>&6
3111 echo "configure:3112: checking whether the compiler supports ident" >&5
3112 cat > conftest.$ac_ext <<EOF
3113 #line 3114 "configure"
3114 #include "confdefs.h"
3115 #ident "@(#) file.h 1.1 12/16/92"
3117 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3118 { (eval echo configure:3119: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3119 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3120 if test -z "$ac_err"; then
3123 echo "$ac_t""yes" 1>&6
3124 cat >> confdefs.h <<\EOF
3130 echo "configure: failed program was:" >&5
3131 cat conftest.$ac_ext >&5
3133 echo "$ac_t""no" 1>&6
3138 # Check whether --enable-shared or --disable-shared was given.
3139 if test "${enable_shared+set}" = set; then
3140 enableval="$enable_shared"
3141 p=${PACKAGE-default}
3143 yes) enable_shared=yes ;;
3144 no) enable_shared=no ;;
3147 # Look at the argument we got. We use all the common list separators.
3148 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3149 for pkg in $enableval; do
3150 if test "X$pkg" = "X$p"; then
3161 # Check whether --enable-static or --disable-static was given.
3162 if test "${enable_static+set}" = set; then
3163 enableval="$enable_static"
3164 p=${PACKAGE-default}
3166 yes) enable_static=yes ;;
3167 no) enable_static=no ;;
3170 # Look at the argument we got. We use all the common list separators.
3171 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3172 for pkg in $enableval; do
3173 if test "X$pkg" = "X$p"; then
3184 # Check whether --enable-fast-install or --disable-fast-install was given.
3185 if test "${enable_fast_install+set}" = set; then
3186 enableval="$enable_fast_install"
3187 p=${PACKAGE-default}
3189 yes) enable_fast_install=yes ;;
3190 no) enable_fast_install=no ;;
3192 enable_fast_install=no
3193 # Look at the argument we got. We use all the common list separators.
3194 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3195 for pkg in $enableval; do
3196 if test "X$pkg" = "X$p"; then
3197 enable_fast_install=yes
3204 enable_fast_install=yes
3207 echo $ac_n "checking build system type""... $ac_c" 1>&6
3208 echo "configure:3209: checking build system type" >&5
3211 case "$build_alias" in
3214 NONE) build_alias=$host_alias ;;
3215 *) build_alias=$nonopt ;;
3219 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
3220 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3221 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3222 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3223 echo "$ac_t""$build" 1>&6
3225 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3226 if test "${with_gnu_ld+set}" = set; then
3227 withval="$with_gnu_ld"
3228 test "$withval" = no || with_gnu_ld=yes
3234 if test "$GCC" = yes; then
3235 # Check if gcc -print-prog-name=ld gives a path.
3236 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
3237 echo "configure:3238: checking for ld used by GCC" >&5
3240 # gcc leaves a trailing carriage return which upsets mingw
3241 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3243 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3246 # Accept absolute paths.
3247 [\\/]* | [A-Za-z]:[\\/]*)
3248 re_direlt='/[^/][^/]*/\.\./'
3249 # Canonicalize the path of ld
3250 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3251 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3252 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3254 test -z "$LD" && LD="$ac_prog"
3257 # If it fails, then pretend we aren't using GCC.
3261 # If it is relative, then search for the first ld in PATH.
3265 elif test "$with_gnu_ld" = yes; then
3266 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
3267 echo "configure:3268: checking for GNU ld" >&5
3269 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
3270 echo "configure:3271: checking for non-GNU ld" >&5
3272 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
3273 echo $ac_n "(cached) $ac_c" 1>&6
3275 if test -z "$LD"; then
3276 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3277 for ac_dir in $PATH; do
3278 test -z "$ac_dir" && ac_dir=.
3279 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3280 lt_cv_path_LD="$ac_dir/$ac_prog"
3281 # Check to see if the program is GNU ld. I'd rather use --version,
3282 # but apparently some GNU ld's only accept -v.
3283 # Break only if it was the GNU/non-GNU ld that we prefer.
3284 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3285 test "$with_gnu_ld" != no && break
3287 test "$with_gnu_ld" != yes && break
3293 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3298 if test -n "$LD"; then
3299 echo "$ac_t""$LD" 1>&6
3301 echo "$ac_t""no" 1>&6
3303 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
3304 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
3305 echo "configure:3306: checking if the linker ($LD) is GNU ld" >&5
3306 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
3307 echo $ac_n "(cached) $ac_c" 1>&6
3309 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3310 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3311 lt_cv_prog_gnu_ld=yes
3313 lt_cv_prog_gnu_ld=no
3317 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
3318 with_gnu_ld=$lt_cv_prog_gnu_ld
3321 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
3322 echo "configure:3323: checking for $LD option to reload object files" >&5
3323 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
3324 echo $ac_n "(cached) $ac_c" 1>&6
3326 lt_cv_ld_reload_flag='-r'
3329 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
3330 reload_flag=$lt_cv_ld_reload_flag
3331 test -n "$reload_flag" && reload_flag=" $reload_flag"
3333 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
3334 echo "configure:3335: checking for BSD-compatible nm" >&5
3335 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
3336 echo $ac_n "(cached) $ac_c" 1>&6
3338 if test -n "$NM"; then
3339 # Let the user override the test.
3342 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3343 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3344 test -z "$ac_dir" && ac_dir=.
3345 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3346 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3347 # Check to see if the nm accepts a BSD-compat flag.
3348 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3349 # nm: unknown option "B" ignored
3350 # Tru64's nm complains that /dev/null is an invalid object file
3351 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3352 lt_cv_path_NM="$tmp_nm -B"
3354 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3355 lt_cv_path_NM="$tmp_nm -p"
3358 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3359 continue # so that we can try to find one that supports BSD flags
3364 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3369 echo "$ac_t""$NM" 1>&6
3371 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3372 echo "configure:3373: checking whether ln -s works" >&5
3373 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
3374 echo $ac_n "(cached) $ac_c" 1>&6
3377 if ln -s X conftestdata 2>/dev/null
3380 ac_cv_prog_LN_S="ln -s"
3385 LN_S="$ac_cv_prog_LN_S"
3386 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3387 echo "$ac_t""yes" 1>&6
3389 echo "$ac_t""no" 1>&6
3392 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
3393 echo "configure:3394: checking how to recognise dependant libraries" >&5
3394 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
3395 echo $ac_n "(cached) $ac_c" 1>&6
3397 lt_cv_file_magic_cmd='$MAGIC_CMD'
3398 lt_cv_file_magic_test_file=
3399 lt_cv_deplibs_check_method='unknown'
3400 # Need to set the preceding variable on all platforms that support
3401 # interlibrary dependencies.
3402 # 'none' -- dependencies not supported.
3403 # `unknown' -- same as none, but documents that we really don't know.
3404 # 'pass_all' -- all dependencies passed with no checks.
3405 # 'test_compile' -- check by making test program.
3406 # 'file_magic [regex]' -- check by looking for files in library path
3407 # which responds to the $file_magic_cmd with a given egrep regex.
3408 # If you have `file' or equivalent on your system and you're not sure
3409 # whether `pass_all' will *always* work, you probably want this one.
3413 lt_cv_deplibs_check_method=pass_all
3417 lt_cv_deplibs_check_method=pass_all
3421 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3422 lt_cv_file_magic_cmd='/usr/bin/file -L'
3423 lt_cv_file_magic_test_file=/shlib/libc.so
3426 cygwin* | mingw* |pw32*)
3427 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3428 lt_cv_file_magic_cmd='$OBJDUMP -f'
3431 darwin* | rhapsody*)
3432 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3433 lt_cv_file_magic_cmd='/usr/bin/file -L'
3435 rhapsody* | darwin1.012)
3436 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3439 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3445 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3448 # Not sure whether the presence of OpenBSD here was a mistake.
3449 # Let's accept both of them until this is cleared up.
3450 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3451 lt_cv_file_magic_cmd=/usr/bin/file
3452 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3456 lt_cv_deplibs_check_method=pass_all
3461 lt_cv_deplibs_check_method=pass_all
3465 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3466 lt_cv_file_magic_cmd=/usr/bin/file
3467 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3473 # this will be overridden with pass_all, but let us keep it just in case
3474 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3478 *-32|*"-32 ") libmagic=32-bit;;
3479 *-n32|*"-n32 ") libmagic=N32;;
3480 *-64|*"-64 ") libmagic=64-bit;;
3481 *) libmagic=never-match;;
3483 # this will be overridden with pass_all, but let us keep it just in case
3484 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3487 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3488 lt_cv_deplibs_check_method=pass_all
3491 # This must be Linux ELF.
3494 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3495 lt_cv_deplibs_check_method=pass_all ;;
3497 # glibc up to 2.1.1 does not perform some relocations on ARM
3498 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3500 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3504 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3505 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3507 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3512 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3513 lt_cv_file_magic_cmd=/usr/bin/file
3514 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3517 osf3* | osf4* | osf5*)
3518 # this will be overridden with pass_all, but let us keep it just in case
3519 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3520 lt_cv_file_magic_test_file=/shlib/libc.so
3521 lt_cv_deplibs_check_method=pass_all
3525 lt_cv_deplibs_check_method=pass_all
3529 lt_cv_deplibs_check_method=pass_all
3530 lt_cv_file_magic_test_file=/lib/libc.so
3533 sysv5uw[78]* | sysv4*uw2*)
3534 lt_cv_deplibs_check_method=pass_all
3537 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3538 case $host_vendor in
3540 lt_cv_deplibs_check_method=pass_all
3543 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
3544 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3552 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
3553 file_magic_cmd=$lt_cv_file_magic_cmd
3554 deplibs_check_method=$lt_cv_deplibs_check_method
3556 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3557 echo "configure:3558: checking for object suffix" >&5
3558 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
3559 echo $ac_n "(cached) $ac_c" 1>&6
3562 echo 'int i = 1;' > conftest.$ac_ext
3563 if { (eval echo configure:3564: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3564 for ac_file in conftest.*; do
3567 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3571 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3576 echo "$ac_t""$ac_cv_objext" 1>&6
3577 OBJEXT=$ac_cv_objext
3578 ac_objext=$ac_cv_objext
3582 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3583 echo "configure:3584: checking for executable suffix" >&5
3584 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
3585 echo $ac_n "(cached) $ac_c" 1>&6
3587 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
3591 echo 'int main () { return 0; }' > conftest.$ac_ext
3593 if { (eval echo configure:3594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3594 for file in conftest.*; do
3596 *.c | *.o | *.obj) ;;
3597 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3601 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3604 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3609 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3610 echo "$ac_t""${ac_cv_exeext}" 1>&6
3613 if test $host != $build; then
3614 ac_tool_prefix=${host_alias}-
3619 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3621 # Only perform the check for file, if the check method requires it
3622 case $deplibs_check_method in
3624 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3625 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
3626 echo "configure:3627: checking for ${ac_tool_prefix}file" >&5
3627 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
3628 echo $ac_n "(cached) $ac_c" 1>&6
3632 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3635 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3638 ac_save_MAGIC_CMD="$MAGIC_CMD"
3639 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3640 ac_dummy="/usr/bin:$PATH"
3641 for ac_dir in $ac_dummy; do
3642 test -z "$ac_dir" && ac_dir=.
3643 if test -f $ac_dir/${ac_tool_prefix}file; then
3644 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3645 if test -n "$file_magic_test_file"; then
3646 case $deplibs_check_method in
3648 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3649 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3650 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3651 egrep "$file_magic_regex" > /dev/null; then
3656 *** Warning: the command libtool uses to detect shared libraries,
3657 *** $file_magic_cmd, produces output that libtool cannot recognize.
3658 *** The result is that libtool may fail to recognize shared libraries
3659 *** as such. This will affect the creation of libtool libraries that
3660 *** depend on shared libraries, but programs linked with such libtool
3661 *** libraries will work regardless of this problem. Nevertheless, you
3662 *** may want to report the problem to your system manager and/or to
3663 *** bug-libtool@gnu.org
3673 MAGIC_CMD="$ac_save_MAGIC_CMD"
3678 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3679 if test -n "$MAGIC_CMD"; then
3680 echo "$ac_t""$MAGIC_CMD" 1>&6
3682 echo "$ac_t""no" 1>&6
3685 if test -z "$lt_cv_path_MAGIC_CMD"; then
3686 if test -n "$ac_tool_prefix"; then
3687 echo $ac_n "checking for file""... $ac_c" 1>&6
3688 echo "configure:3689: checking for file" >&5
3689 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
3690 echo $ac_n "(cached) $ac_c" 1>&6
3694 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3697 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3700 ac_save_MAGIC_CMD="$MAGIC_CMD"
3701 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3702 ac_dummy="/usr/bin:$PATH"
3703 for ac_dir in $ac_dummy; do
3704 test -z "$ac_dir" && ac_dir=.
3705 if test -f $ac_dir/file; then
3706 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3707 if test -n "$file_magic_test_file"; then
3708 case $deplibs_check_method in
3710 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3711 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3712 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3713 egrep "$file_magic_regex" > /dev/null; then
3718 *** Warning: the command libtool uses to detect shared libraries,
3719 *** $file_magic_cmd, produces output that libtool cannot recognize.
3720 *** The result is that libtool may fail to recognize shared libraries
3721 *** as such. This will affect the creation of libtool libraries that
3722 *** depend on shared libraries, but programs linked with such libtool
3723 *** libraries will work regardless of this problem. Nevertheless, you
3724 *** may want to report the problem to your system manager and/or to
3725 *** bug-libtool@gnu.org
3735 MAGIC_CMD="$ac_save_MAGIC_CMD"
3740 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3741 if test -n "$MAGIC_CMD"; then
3742 echo "$ac_t""$MAGIC_CMD" 1>&6
3744 echo "$ac_t""no" 1>&6
3756 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3757 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3758 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3759 echo "configure:3760: checking for $ac_word" >&5
3760 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3761 echo $ac_n "(cached) $ac_c" 1>&6
3763 if test -n "$RANLIB"; then
3764 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3766 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3768 for ac_dir in $ac_dummy; do
3769 test -z "$ac_dir" && ac_dir=.
3770 if test -f $ac_dir/$ac_word; then
3771 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3778 RANLIB="$ac_cv_prog_RANLIB"
3779 if test -n "$RANLIB"; then
3780 echo "$ac_t""$RANLIB" 1>&6
3782 echo "$ac_t""no" 1>&6
3786 if test -z "$ac_cv_prog_RANLIB"; then
3787 if test -n "$ac_tool_prefix"; then
3788 # Extract the first word of "ranlib", so it can be a program name with args.
3789 set dummy ranlib; ac_word=$2
3790 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3791 echo "configure:3792: checking for $ac_word" >&5
3792 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3793 echo $ac_n "(cached) $ac_c" 1>&6
3795 if test -n "$RANLIB"; then
3796 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3798 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3800 for ac_dir in $ac_dummy; do
3801 test -z "$ac_dir" && ac_dir=.
3802 if test -f $ac_dir/$ac_word; then
3803 ac_cv_prog_RANLIB="ranlib"
3808 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3811 RANLIB="$ac_cv_prog_RANLIB"
3812 if test -n "$RANLIB"; then
3813 echo "$ac_t""$RANLIB" 1>&6
3815 echo "$ac_t""no" 1>&6
3823 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3824 set dummy ${ac_tool_prefix}strip; ac_word=$2
3825 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3826 echo "configure:3827: checking for $ac_word" >&5
3827 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
3828 echo $ac_n "(cached) $ac_c" 1>&6
3830 if test -n "$STRIP"; then
3831 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3833 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3835 for ac_dir in $ac_dummy; do
3836 test -z "$ac_dir" && ac_dir=.
3837 if test -f $ac_dir/$ac_word; then
3838 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3845 STRIP="$ac_cv_prog_STRIP"
3846 if test -n "$STRIP"; then
3847 echo "$ac_t""$STRIP" 1>&6
3849 echo "$ac_t""no" 1>&6
3853 if test -z "$ac_cv_prog_STRIP"; then
3854 if test -n "$ac_tool_prefix"; then
3855 # Extract the first word of "strip", so it can be a program name with args.
3856 set dummy strip; ac_word=$2
3857 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3858 echo "configure:3859: checking for $ac_word" >&5
3859 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
3860 echo $ac_n "(cached) $ac_c" 1>&6
3862 if test -n "$STRIP"; then
3863 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3865 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3867 for ac_dir in $ac_dummy; do
3868 test -z "$ac_dir" && ac_dir=.
3869 if test -f $ac_dir/$ac_word; then
3870 ac_cv_prog_STRIP="strip"
3875 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
3878 STRIP="$ac_cv_prog_STRIP"
3879 if test -n "$STRIP"; then
3880 echo "$ac_t""$STRIP" 1>&6
3882 echo "$ac_t""no" 1>&6
3891 # Check for any special flags to pass to ltconfig.
3892 libtool_flags="--cache-file=$cache_file"
3893 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3894 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3895 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3896 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3897 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3900 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3901 if test "${enable_libtool_lock+set}" = set; then
3902 enableval="$enable_libtool_lock"
3906 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3907 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3909 # Check whether --with-pic or --without-pic was given.
3910 if test "${with_pic+set}" = set; then
3917 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3918 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3920 # Some flags need to be propagated to the compiler or linker for good
3924 # Find out which ABI we are using.
3925 echo '#line 3926 "configure"' > conftest.$ac_ext
3926 if { (eval echo configure:3927: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3927 case `/usr/bin/file conftest.$ac_objext` in
3943 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3944 SAVE_CFLAGS="$CFLAGS"
3945 CFLAGS="$CFLAGS -belf"
3946 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
3947 echo "configure:3948: checking whether the C compiler needs -belf" >&5
3948 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
3949 echo $ac_n "(cached) $ac_c" 1>&6
3953 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3954 ac_cpp='$CPP $CPPFLAGS'
3955 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3956 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3957 cross_compiling=$ac_cv_prog_cc_cross
3959 cat > conftest.$ac_ext <<EOF
3960 #line 3961 "configure"
3961 #include "confdefs.h"
3967 if { (eval echo configure:3968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3969 lt_cv_cc_needs_belf=yes
3971 echo "configure: failed program was:" >&5
3972 cat conftest.$ac_ext >&5
3974 lt_cv_cc_needs_belf=no
3978 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3979 ac_cpp='$CPP $CPPFLAGS'
3980 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3981 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3982 cross_compiling=$ac_cv_prog_cc_cross
3986 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
3987 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3988 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3989 CFLAGS="$SAVE_CFLAGS"
3997 # Save cache, so that ltconfig can load it
4000 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4001 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4002 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4003 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4004 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4005 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4006 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4007 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4008 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4009 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
4011 # Reload cache, that may have been modified by ltconfig
4014 # This can be used to rebuild libtool when needed
4015 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4017 # Always use our own libtool.
4018 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4020 # Redirect the config.log output again, so that the ltconfig log is not
4021 # clobbered by the next message.
4022 exec 5>>./config.log
4025 if test "$ac_cv_prog_f77_works" = "yes"; then
4027 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-f77.sh"
4029 lt_save_CFLAGS="$CFLAGS"
4030 AR="$AR" LTCC="$CC" CC="$F77" F77="$F77" CFLAGS="$FFLAGS" CPPFLAGS="" \
4031 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4032 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4033 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4034 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4035 deplibs_check_method="$deplibs_check_method" \
4036 file_magic_cmd="$file_magic_cmd" \
4037 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
4038 --build="$build" --add-tag=F77 $ac_aux_dir/ltcf-f77.sh $host \
4039 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
4041 CFLAGS="$lt_save_CFLAGS"
4043 # Redirect the config.log output again, so that the ltconfig log is not
4044 # clobbered by the next message.
4045 exec 5>>./config.log
4054 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
4055 echo "configure:4056: checking whether ln -s works" >&5
4056 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
4057 echo $ac_n "(cached) $ac_c" 1>&6
4060 if ln -s X conftestdata 2>/dev/null
4063 ac_cv_prog_LN_S="ln -s"
4068 LN_S="$ac_cv_prog_LN_S"
4069 if test "$ac_cv_prog_LN_S" = "ln -s"; then
4070 echo "$ac_t""yes" 1>&6
4072 echo "$ac_t""no" 1>&6
4081 ############################################################################
4082 # Checks for libraries.
4083 ############################################################################
4084 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
4085 echo "configure:4086: checking for sqrt in -lm" >&5
4086 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
4087 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4088 echo $ac_n "(cached) $ac_c" 1>&6
4090 ac_save_LIBS="$LIBS"
4092 cat > conftest.$ac_ext <<EOF
4093 #line 4094 "configure"
4094 #include "confdefs.h"
4095 /* Override any gcc2 internal prototype to avoid an error. */
4096 /* We use char because int might match the return type of a gcc2
4097 builtin and then its argument prototype would still apply. */
4104 if { (eval echo configure:4105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4106 eval "ac_cv_lib_$ac_lib_var=yes"
4108 echo "configure: failed program was:" >&5
4109 cat conftest.$ac_ext >&5
4111 eval "ac_cv_lib_$ac_lib_var=no"
4114 LIBS="$ac_save_LIBS"
4117 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4118 echo "$ac_t""yes" 1>&6
4119 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4120 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4121 cat >> confdefs.h <<EOF
4122 #define $ac_tr_lib 1
4128 echo "$ac_t""no" 1>&6
4129 { echo "configure: error: No math library found" 1>&2; exit 1; }
4134 # IBM provides a MASS library with vectorized and optimized math stuff,
4135 # and an xlopt library which partly overlaps this. They must come before
4136 # libm in the link list, thus the test goes after that for libm!
4137 if test "${host_vendor}" = "ibm"; then
4138 echo $ac_n "checking for main in -lxlopt""... $ac_c" 1>&6
4139 echo "configure:4140: checking for main in -lxlopt" >&5
4140 ac_lib_var=`echo xlopt'_'main | sed 'y%./+-%__p_%'`
4141 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4142 echo $ac_n "(cached) $ac_c" 1>&6
4144 ac_save_LIBS="$LIBS"
4145 LIBS="-lxlopt $LIBS"
4146 cat > conftest.$ac_ext <<EOF
4147 #line 4148 "configure"
4148 #include "confdefs.h"
4154 if { (eval echo configure:4155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4156 eval "ac_cv_lib_$ac_lib_var=yes"
4158 echo "configure: failed program was:" >&5
4159 cat conftest.$ac_ext >&5
4161 eval "ac_cv_lib_$ac_lib_var=no"
4164 LIBS="$ac_save_LIBS"
4167 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4168 echo "$ac_t""yes" 1>&6
4169 ac_tr_lib=HAVE_LIB`echo xlopt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4170 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4171 cat >> confdefs.h <<EOF
4172 #define $ac_tr_lib 1
4175 LIBS="-lxlopt $LIBS"
4178 echo "$ac_t""no" 1>&6
4181 echo $ac_n "checking for main in -lmass""... $ac_c" 1>&6
4182 echo "configure:4183: checking for main in -lmass" >&5
4183 ac_lib_var=`echo mass'_'main | sed 'y%./+-%__p_%'`
4184 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4185 echo $ac_n "(cached) $ac_c" 1>&6
4187 ac_save_LIBS="$LIBS"
4189 cat > conftest.$ac_ext <<EOF
4190 #line 4191 "configure"
4191 #include "confdefs.h"
4197 if { (eval echo configure:4198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4199 eval "ac_cv_lib_$ac_lib_var=yes"
4201 echo "configure: failed program was:" >&5
4202 cat conftest.$ac_ext >&5
4204 eval "ac_cv_lib_$ac_lib_var=no"
4207 LIBS="$ac_save_LIBS"
4210 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4211 echo "$ac_t""yes" 1>&6
4212 ac_tr_lib=HAVE_LIB`echo mass | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4213 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4214 cat >> confdefs.h <<EOF
4215 #define $ac_tr_lib 1
4221 echo "$ac_t""no" 1>&6
4227 # first check for a power4 lib, then power3, power2.
4229 echo $ac_n "checking for library containing vsrsqrt""... $ac_c" 1>&6
4230 echo "configure:4231: checking for library containing vsrsqrt" >&5
4231 if eval "test \"`echo '$''{'ac_cv_search_vsrsqrt'+set}'`\" = set"; then
4232 echo $ac_n "(cached) $ac_c" 1>&6
4234 ac_func_search_save_LIBS="$LIBS"
4235 ac_cv_search_vsrsqrt="no"
4236 cat > conftest.$ac_ext <<EOF
4237 #line 4238 "configure"
4238 #include "confdefs.h"
4239 /* Override any gcc2 internal prototype to avoid an error. */
4240 /* We use char because int might match the return type of a gcc2
4241 builtin and then its argument prototype would still apply. */
4248 if { (eval echo configure:4249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4250 ac_cv_search_vsrsqrt="none required"
4252 echo "configure: failed program was:" >&5
4253 cat conftest.$ac_ext >&5
4256 test "$ac_cv_search_vsrsqrt" = "no" && for i in massvp4 massvp3 massvp2 massv; do
4257 LIBS="-l$i $ac_func_search_save_LIBS"
4258 cat > conftest.$ac_ext <<EOF
4259 #line 4260 "configure"
4260 #include "confdefs.h"
4261 /* Override any gcc2 internal prototype to avoid an error. */
4262 /* We use char because int might match the return type of a gcc2
4263 builtin and then its argument prototype would still apply. */
4270 if { (eval echo configure:4271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4272 ac_cv_search_vsrsqrt="-l$i"
4275 echo "configure: failed program was:" >&5
4276 cat conftest.$ac_ext >&5
4280 LIBS="$ac_func_search_save_LIBS"
4283 echo "$ac_t""$ac_cv_search_vsrsqrt" 1>&6
4284 if test "$ac_cv_search_vsrsqrt" != "no"; then
4285 test "$ac_cv_search_vsrsqrt" = "none required" || LIBS="$ac_cv_search_vsrsqrt $LIBS"
4292 echo $ac_n "checking for library containing vsrsqrt""... $ac_c" 1>&6
4293 echo "configure:4294: checking for library containing vsrsqrt" >&5
4294 if eval "test \"`echo '$''{'ac_cv_search_vsrsqrt'+set}'`\" = set"; then
4295 echo $ac_n "(cached) $ac_c" 1>&6
4297 ac_func_search_save_LIBS="$LIBS"
4298 ac_cv_search_vsrsqrt="no"
4299 cat > conftest.$ac_ext <<EOF
4300 #line 4301 "configure"
4301 #include "confdefs.h"
4302 /* Override any gcc2 internal prototype to avoid an error. */
4303 /* We use char because int might match the return type of a gcc2
4304 builtin and then its argument prototype would still apply. */
4311 if { (eval echo configure:4312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4313 ac_cv_search_vsrsqrt="none required"
4315 echo "configure: failed program was:" >&5
4316 cat conftest.$ac_ext >&5
4319 test "$ac_cv_search_vsrsqrt" = "no" && for i in massvp3 massvp2 massv; do
4320 LIBS="-l$i $ac_func_search_save_LIBS"
4321 cat > conftest.$ac_ext <<EOF
4322 #line 4323 "configure"
4323 #include "confdefs.h"
4324 /* Override any gcc2 internal prototype to avoid an error. */
4325 /* We use char because int might match the return type of a gcc2
4326 builtin and then its argument prototype would still apply. */
4333 if { (eval echo configure:4334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4335 ac_cv_search_vsrsqrt="-l$i"
4338 echo "configure: failed program was:" >&5
4339 cat conftest.$ac_ext >&5
4343 LIBS="$ac_func_search_save_LIBS"
4346 echo "$ac_t""$ac_cv_search_vsrsqrt" 1>&6
4347 if test "$ac_cv_search_vsrsqrt" != "no"; then
4348 test "$ac_cv_search_vsrsqrt" = "none required" || LIBS="$ac_cv_search_vsrsqrt $LIBS"
4355 echo $ac_n "checking for library containing vsrsqrt""... $ac_c" 1>&6
4356 echo "configure:4357: checking for library containing vsrsqrt" >&5
4357 if eval "test \"`echo '$''{'ac_cv_search_vsrsqrt'+set}'`\" = set"; then
4358 echo $ac_n "(cached) $ac_c" 1>&6
4360 ac_func_search_save_LIBS="$LIBS"
4361 ac_cv_search_vsrsqrt="no"
4362 cat > conftest.$ac_ext <<EOF
4363 #line 4364 "configure"
4364 #include "confdefs.h"
4365 /* Override any gcc2 internal prototype to avoid an error. */
4366 /* We use char because int might match the return type of a gcc2
4367 builtin and then its argument prototype would still apply. */
4374 if { (eval echo configure:4375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4376 ac_cv_search_vsrsqrt="none required"
4378 echo "configure: failed program was:" >&5
4379 cat conftest.$ac_ext >&5
4382 test "$ac_cv_search_vsrsqrt" = "no" && for i in massvp2 massv; do
4383 LIBS="-l$i $ac_func_search_save_LIBS"
4384 cat > conftest.$ac_ext <<EOF
4385 #line 4386 "configure"
4386 #include "confdefs.h"
4387 /* Override any gcc2 internal prototype to avoid an error. */
4388 /* We use char because int might match the return type of a gcc2
4389 builtin and then its argument prototype would still apply. */
4396 if { (eval echo configure:4397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4398 ac_cv_search_vsrsqrt="-l$i"
4401 echo "configure: failed program was:" >&5
4402 cat conftest.$ac_ext >&5
4406 LIBS="$ac_func_search_save_LIBS"
4409 echo "$ac_t""$ac_cv_search_vsrsqrt" 1>&6
4410 if test "$ac_cv_search_vsrsqrt" != "no"; then
4411 test "$ac_cv_search_vsrsqrt" = "none required" || LIBS="$ac_cv_search_vsrsqrt $LIBS"
4417 echo $ac_n "checking for vsrsqrt in -lmassv""... $ac_c" 1>&6
4418 echo "configure:4419: checking for vsrsqrt in -lmassv" >&5
4419 ac_lib_var=`echo massv'_'vsrsqrt | sed 'y%./+-%__p_%'`
4420 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4421 echo $ac_n "(cached) $ac_c" 1>&6
4423 ac_save_LIBS="$LIBS"
4424 LIBS="-lmassv $LIBS"
4425 cat > conftest.$ac_ext <<EOF
4426 #line 4427 "configure"
4427 #include "confdefs.h"
4428 /* Override any gcc2 internal prototype to avoid an error. */
4429 /* We use char because int might match the return type of a gcc2
4430 builtin and then its argument prototype would still apply. */
4437 if { (eval echo configure:4438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4439 eval "ac_cv_lib_$ac_lib_var=yes"
4441 echo "configure: failed program was:" >&5
4442 cat conftest.$ac_ext >&5
4444 eval "ac_cv_lib_$ac_lib_var=no"
4447 LIBS="$ac_save_LIBS"
4450 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4451 echo "$ac_t""yes" 1>&6
4452 vectmass=yes LIBS="$LIBS -lmassv"
4454 echo "$ac_t""no" 1>&6
4458 if test "$vectmass" = "yes"; then
4459 cat >> confdefs.h <<\EOF
4460 #define HAVE_LIBMASSV_ANY
4463 if test "$enable_vectorized_recip" = "not_selected"; then
4464 echo "Note: vector MASS lib present - vectorizing 1/x inner loops"
4465 enable_vectorized_recip="yes"
4467 if test "$enable_vectorized_sqrt" = "not_selected"; then
4468 echo "Note: vector MASS lib present - vectorizing 1/sqrt inner loops"
4469 enable_vectorized_sqrt="yes"
4472 echo "******************************************************************************"
4473 echo "*Didn't find the IBM MASS library. It's not necessary, but can provide 20% *"
4474 echo "*performance improvement by loop vectorization. Add the library search path *"
4475 echo "*with -L in the LDFLAGS variable. If you can't find MASS, download it from *"
4476 echo "*http://www.research.ibm.com/mass *"
4477 echo "******************************************************************************"
4481 if test "$with_fftw" = "yes"; then
4483 if test -z "$ac_fftw_firstname"; then
4485 if test "$enable_float" = "no"; then
4497 # check header doesn't work, since we must use mpicc to get includes, not just /lib/cpp
4498 echo $ac_n "checking for fftw.h""... $ac_c" 1>&6
4499 echo "configure:4500: checking for fftw.h" >&5
4500 cat > conftest.$ac_ext <<EOF
4501 #line 4502 "configure"
4502 #include "confdefs.h"
4508 if { (eval echo configure:4509: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4512 echo "$ac_t""yes" 1>&6
4515 echo "configure: failed program was:" >&5
4516 cat conftest.$ac_ext >&5
4518 echo "$ac_t""no" 1>&6
4523 if test -n "$fftwname"; then
4524 # we cannot run the code since an MPI program might not be allowed on a login node of a supercomputer
4525 cat > conftest.$ac_ext <<EOF
4526 #line 4527 "configure"
4527 #include "confdefs.h"
4528 #include <$fftwname.h>
4530 int _array_ [1 - 2 * !((sizeof(fftw_real)) == $realsize)];
4533 if { (eval echo configure:4534: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4537 echo "configure: failed program was:" >&5
4538 cat conftest.$ac_ext >&5
4547 if test "$ok" != "yes"; then
4548 xfftwname=${fftwcheckprefix}${fftwname}
4549 echo $ac_n "checking for $xfftwname.h""... $ac_c" 1>&6
4550 echo "configure:4551: checking for $xfftwname.h" >&5
4551 cat > conftest.$ac_ext <<EOF
4552 #line 4553 "configure"
4553 #include "confdefs.h"
4554 #include <$xfftwname.h>
4559 if { (eval echo configure:4560: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4561 echo "$ac_t""yes" 1>&6
4563 echo "configure: failed program was:" >&5
4564 cat conftest.$ac_ext >&5
4567 echo "$ac_t""no" 1>&6
4568 { echo "configure: error: Cannot find any $prec precision $fftwname.h or $xfftwname.h
4569 Do you have $prec precision FFTW installed? If you are using packages,
4570 note that you also need fftw-devel to compile GROMACS. You can find the
4571 software at www.fftw.org, and detailed instructions at www.gromacs.org.
4572 If you compiled FFTW yourself:
4573 Note that the default FFTW setup is double precision. Change the FFTW
4574 configuration to single with --enable-float. If you want MPI support,
4575 use --enable-mpi. It is a good idea to install both single & double.
4576 If your sysadm doesn't want to install it you can do it to a location
4577 in your home directory and provide the correct paths in the CPPFLAGS
4578 and LDFLAGS environment variables before running configure.
4579 That is also necessary to do if your compiler doesn't search
4580 /usr/local/include and /usr/local/lib by default.
4581 You can find information at www.gromacs.org, or in the INSTALL file." 1>&2; exit 1; }
4585 cat > conftest.$ac_ext <<EOF
4586 #line 4587 "configure"
4587 #include "confdefs.h"
4588 #include <$xfftwname.h>
4590 int _array_ [1 - 2 * !((sizeof(fftw_real)) == $realsize)];
4593 if { (eval echo configure:4594: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4597 usedprefix=$fftwcheckprefix
4600 echo "configure: failed program was:" >&5
4601 cat conftest.$ac_ext >&5
4604 { echo "configure: error: Cannot find any $prec precision $fftwname.h or $xfftwname.h
4605 Do you have $prec precision FFTW installed? If you are using packages,
4606 note that you also need fftw-devel to compile GROMACS. You can find the
4607 software at www.fftw.org, and detailed instructions at www.gromacs.org.
4608 If you compiled FFTW yourself:
4609 Note that the default FFTW setup is double precision. Change the FFTW
4610 configuration to single with --enable-float. If you want MPI support,
4611 use --enable-mpi. It is a good idea to install both single & double.
4612 If your sysadm doesn't want to install it you can do it to a location
4613 in your home directory and provide the correct paths in the CPPFLAGS
4614 and LDFLAGS environment variables before running configure.
4615 That is also necessary to do if your compiler doesn't search
4616 /usr/local/include and /usr/local/lib by default.
4617 You can find information at www.gromacs.org, or in the INSTALL file." 1>&2; exit 1; }
4622 echo $ac_n "checking for main in -l$fftwname""... $ac_c" 1>&6
4623 echo "configure:4624: checking for main in -l$fftwname" >&5
4624 ac_lib_var=`echo $fftwname'_'main | sed 'y%./+-%__p_%'`
4625 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4626 echo $ac_n "(cached) $ac_c" 1>&6
4628 ac_save_LIBS="$LIBS"
4629 LIBS="-l$fftwname $LIBS"
4630 cat > conftest.$ac_ext <<EOF
4631 #line 4632 "configure"
4632 #include "confdefs.h"
4638 if { (eval echo configure:4639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4640 eval "ac_cv_lib_$ac_lib_var=yes"
4642 echo "configure: failed program was:" >&5
4643 cat conftest.$ac_ext >&5
4645 eval "ac_cv_lib_$ac_lib_var=no"
4648 LIBS="$ac_save_LIBS"
4651 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4652 echo "$ac_t""yes" 1>&6
4653 ac_tr_lib=HAVE_LIB`echo $fftwname | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4654 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4655 cat >> confdefs.h <<EOF
4656 #define $ac_tr_lib 1
4659 LIBS="-l$fftwname $LIBS"
4662 echo "$ac_t""no" 1>&6
4663 { echo "configure: error: Can't find a library to match the $fftwname header" 1>&2; exit 1; }
4666 ac_fftw_savedprefix=$usedprefix
4667 ac_fftw_firstname=$fftwname
4671 fftwname=${ac_fftw_savedprefix}fftw
4672 echo $ac_n "checking for $fftwname.h""... $ac_c" 1>&6
4673 echo "configure:4674: checking for $fftwname.h" >&5
4674 cat > conftest.$ac_ext <<EOF
4675 #line 4676 "configure"
4676 #include "confdefs.h"
4677 #include <$fftwname.h>
4682 if { (eval echo configure:4683: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4684 echo "$ac_t""yes" 1>&6
4685 echo $ac_n "checking for main in -l$fftwname""... $ac_c" 1>&6
4686 echo "configure:4687: checking for main in -l$fftwname" >&5
4687 ac_lib_var=`echo $fftwname'_'main | sed 'y%./+-%__p_%'`
4688 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4689 echo $ac_n "(cached) $ac_c" 1>&6
4691 ac_save_LIBS="$LIBS"
4692 LIBS="-l$fftwname $LIBS"
4693 cat > conftest.$ac_ext <<EOF
4694 #line 4695 "configure"
4695 #include "confdefs.h"
4701 if { (eval echo configure:4702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4703 eval "ac_cv_lib_$ac_lib_var=yes"
4705 echo "configure: failed program was:" >&5
4706 cat conftest.$ac_ext >&5
4708 eval "ac_cv_lib_$ac_lib_var=no"
4711 LIBS="$ac_save_LIBS"
4714 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4715 echo "$ac_t""yes" 1>&6
4716 ac_tr_lib=HAVE_LIB`echo $fftwname | sed -e 's/^a-zA-Z0-9_/_/g' \
4717 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4718 cat >> confdefs.h <<EOF
4719 #define $ac_tr_lib 1
4722 LIBS="-l$fftwname $LIBS"
4725 echo "$ac_t""no" 1>&6
4726 { echo "configure: error: Can't find a library to match the $fftwname header" 1>&2; exit 1; }
4730 echo "configure: failed program was:" >&5
4731 cat conftest.$ac_ext >&5
4734 echo "$ac_t""no" 1>&6
4735 { echo "configure: error: Cant find $fftwname.h header. Make sure all your fftw prefixes match - we already use $ac_fftw_firstname.h" 1>&2; exit 1; }
4744 if test -z "$ac_fftw_firstname"; then
4746 if test "$enable_float" = "no"; then
4758 # check header doesn't work, since we must use mpicc to get includes, not just /lib/cpp
4759 echo $ac_n "checking for rfftw.h""... $ac_c" 1>&6
4760 echo "configure:4761: checking for rfftw.h" >&5
4761 cat > conftest.$ac_ext <<EOF
4762 #line 4763 "configure"
4763 #include "confdefs.h"
4769 if { (eval echo configure:4770: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4773 echo "$ac_t""yes" 1>&6
4776 echo "configure: failed program was:" >&5
4777 cat conftest.$ac_ext >&5
4779 echo "$ac_t""no" 1>&6
4784 if test -n "$fftwname"; then
4785 # we cannot run the code since an MPI program might not be allowed on a login node of a supercomputer
4786 cat > conftest.$ac_ext <<EOF
4787 #line 4788 "configure"
4788 #include "confdefs.h"
4789 #include <$fftwname.h>
4791 int _array_ [1 - 2 * !((sizeof(fftw_real)) == $realsize)];
4794 if { (eval echo configure:4795: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4798 echo "configure: failed program was:" >&5
4799 cat conftest.$ac_ext >&5
4808 if test "$ok" != "yes"; then
4809 xfftwname=${fftwcheckprefix}${fftwname}
4810 echo $ac_n "checking for $xfftwname.h""... $ac_c" 1>&6
4811 echo "configure:4812: checking for $xfftwname.h" >&5
4812 cat > conftest.$ac_ext <<EOF
4813 #line 4814 "configure"
4814 #include "confdefs.h"
4815 #include <$xfftwname.h>
4820 if { (eval echo configure:4821: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4822 echo "$ac_t""yes" 1>&6
4824 echo "configure: failed program was:" >&5
4825 cat conftest.$ac_ext >&5
4828 echo "$ac_t""no" 1>&6
4829 { echo "configure: error: Cannot find any $prec precision $fftwname.h or $xfftwname.h
4830 Do you have $prec precision FFTW installed? If you are using packages,
4831 note that you also need fftw-devel to compile GROMACS. You can find the
4832 software at www.fftw.org, and detailed instructions at www.gromacs.org.
4833 If you compiled FFTW yourself:
4834 Note that the default FFTW setup is double precision. Change the FFTW
4835 configuration to single with --enable-float. If you want MPI support,
4836 use --enable-mpi. It is a good idea to install both single & double.
4837 If your sysadm doesn't want to install it you can do it to a location
4838 in your home directory and provide the correct paths in the CPPFLAGS
4839 and LDFLAGS environment variables before running configure.
4840 That is also necessary to do if your compiler doesn't search
4841 /usr/local/include and /usr/local/lib by default.
4842 You can find information at www.gromacs.org, or in the INSTALL file." 1>&2; exit 1; }
4846 cat > conftest.$ac_ext <<EOF
4847 #line 4848 "configure"
4848 #include "confdefs.h"
4849 #include <$xfftwname.h>
4851 int _array_ [1 - 2 * !((sizeof(fftw_real)) == $realsize)];
4854 if { (eval echo configure:4855: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4858 usedprefix=$fftwcheckprefix
4861 echo "configure: failed program was:" >&5
4862 cat conftest.$ac_ext >&5
4865 { echo "configure: error: Cannot find any $prec precision $fftwname.h or $xfftwname.h
4866 Do you have $prec precision FFTW installed? If you are using packages,
4867 note that you also need fftw-devel to compile GROMACS. You can find the
4868 software at www.fftw.org, and detailed instructions at www.gromacs.org.
4869 If you compiled FFTW yourself:
4870 Note that the default FFTW setup is double precision. Change the FFTW
4871 configuration to single with --enable-float. If you want MPI support,
4872 use --enable-mpi. It is a good idea to install both single & double.
4873 If your sysadm doesn't want to install it you can do it to a location
4874 in your home directory and provide the correct paths in the CPPFLAGS
4875 and LDFLAGS environment variables before running configure.
4876 That is also necessary to do if your compiler doesn't search
4877 /usr/local/include and /usr/local/lib by default.
4878 You can find information at www.gromacs.org, or in the INSTALL file." 1>&2; exit 1; }
4883 echo $ac_n "checking for main in -l$fftwname""... $ac_c" 1>&6
4884 echo "configure:4885: checking for main in -l$fftwname" >&5
4885 ac_lib_var=`echo $fftwname'_'main | sed 'y%./+-%__p_%'`
4886 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4887 echo $ac_n "(cached) $ac_c" 1>&6
4889 ac_save_LIBS="$LIBS"
4890 LIBS="-l$fftwname $LIBS"
4891 cat > conftest.$ac_ext <<EOF
4892 #line 4893 "configure"
4893 #include "confdefs.h"
4899 if { (eval echo configure:4900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4901 eval "ac_cv_lib_$ac_lib_var=yes"
4903 echo "configure: failed program was:" >&5
4904 cat conftest.$ac_ext >&5
4906 eval "ac_cv_lib_$ac_lib_var=no"
4909 LIBS="$ac_save_LIBS"
4912 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4913 echo "$ac_t""yes" 1>&6
4914 ac_tr_lib=HAVE_LIB`echo $fftwname | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4915 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4916 cat >> confdefs.h <<EOF
4917 #define $ac_tr_lib 1
4920 LIBS="-l$fftwname $LIBS"
4923 echo "$ac_t""no" 1>&6
4924 { echo "configure: error: Can't find a library to match the $fftwname header" 1>&2; exit 1; }
4927 ac_fftw_savedprefix=$usedprefix
4928 ac_fftw_firstname=$fftwname
4932 fftwname=${ac_fftw_savedprefix}rfftw
4933 echo $ac_n "checking for $fftwname.h""... $ac_c" 1>&6
4934 echo "configure:4935: checking for $fftwname.h" >&5
4935 cat > conftest.$ac_ext <<EOF
4936 #line 4937 "configure"
4937 #include "confdefs.h"
4938 #include <$fftwname.h>
4943 if { (eval echo configure:4944: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4945 echo "$ac_t""yes" 1>&6
4946 echo $ac_n "checking for main in -l$fftwname""... $ac_c" 1>&6
4947 echo "configure:4948: checking for main in -l$fftwname" >&5
4948 ac_lib_var=`echo $fftwname'_'main | sed 'y%./+-%__p_%'`
4949 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4950 echo $ac_n "(cached) $ac_c" 1>&6
4952 ac_save_LIBS="$LIBS"
4953 LIBS="-l$fftwname $LIBS"
4954 cat > conftest.$ac_ext <<EOF
4955 #line 4956 "configure"
4956 #include "confdefs.h"
4962 if { (eval echo configure:4963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4964 eval "ac_cv_lib_$ac_lib_var=yes"
4966 echo "configure: failed program was:" >&5
4967 cat conftest.$ac_ext >&5
4969 eval "ac_cv_lib_$ac_lib_var=no"
4972 LIBS="$ac_save_LIBS"
4975 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4976 echo "$ac_t""yes" 1>&6
4977 ac_tr_lib=HAVE_LIB`echo $fftwname | sed -e 's/^a-zA-Z0-9_/_/g' \
4978 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4979 cat >> confdefs.h <<EOF
4980 #define $ac_tr_lib 1
4983 LIBS="-l$fftwname $LIBS"
4986 echo "$ac_t""no" 1>&6
4987 { echo "configure: error: Can't find a library to match the $fftwname header" 1>&2; exit 1; }
4991 echo "configure: failed program was:" >&5
4992 cat conftest.$ac_ext >&5
4995 echo "$ac_t""no" 1>&6
4996 { echo "configure: error: Cant find $fftwname.h header. Make sure all your fftw prefixes match - we already use $ac_fftw_firstname.h" 1>&2; exit 1; }
5005 if test "$enable_mpi" = "yes"; then
5007 if test -z "$ac_fftw_firstname"; then
5009 if test "$enable_float" = "no"; then
5021 # check header doesn't work, since we must use mpicc to get includes, not just /lib/cpp
5022 echo $ac_n "checking for fftw_mpi.h""... $ac_c" 1>&6
5023 echo "configure:5024: checking for fftw_mpi.h" >&5
5024 cat > conftest.$ac_ext <<EOF
5025 #line 5026 "configure"
5026 #include "confdefs.h"
5027 #include <fftw_mpi.h>
5032 if { (eval echo configure:5033: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5036 echo "$ac_t""yes" 1>&6
5039 echo "configure: failed program was:" >&5
5040 cat conftest.$ac_ext >&5
5042 echo "$ac_t""no" 1>&6
5047 if test -n "$fftwname"; then
5048 # we cannot run the code since an MPI program might not be allowed on a login node of a supercomputer
5049 cat > conftest.$ac_ext <<EOF
5050 #line 5051 "configure"
5051 #include "confdefs.h"
5052 #include <$fftwname.h>
5054 int _array_ [1 - 2 * !((sizeof(fftw_real)) == $realsize)];
5057 if { (eval echo configure:5058: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5061 echo "configure: failed program was:" >&5
5062 cat conftest.$ac_ext >&5
5071 if test "$ok" != "yes"; then
5072 xfftwname=${fftwcheckprefix}${fftwname}
5073 echo $ac_n "checking for $xfftwname.h""... $ac_c" 1>&6
5074 echo "configure:5075: checking for $xfftwname.h" >&5
5075 cat > conftest.$ac_ext <<EOF
5076 #line 5077 "configure"
5077 #include "confdefs.h"
5078 #include <$xfftwname.h>
5083 if { (eval echo configure:5084: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5085 echo "$ac_t""yes" 1>&6
5087 echo "configure: failed program was:" >&5
5088 cat conftest.$ac_ext >&5
5091 echo "$ac_t""no" 1>&6
5092 { echo "configure: error: Cannot find any $prec precision $fftwname.h or $xfftwname.h
5093 Do you have $prec precision FFTW installed? If you are using packages,
5094 note that you also need fftw-devel to compile GROMACS. You can find the
5095 software at www.fftw.org, and detailed instructions at www.gromacs.org.
5096 If you compiled FFTW yourself:
5097 Note that the default FFTW setup is double precision. Change the FFTW
5098 configuration to single with --enable-float. If you want MPI support,
5099 use --enable-mpi. It is a good idea to install both single & double.
5100 If your sysadm doesn't want to install it you can do it to a location
5101 in your home directory and provide the correct paths in the CPPFLAGS
5102 and LDFLAGS environment variables before running configure.
5103 That is also necessary to do if your compiler doesn't search
5104 /usr/local/include and /usr/local/lib by default.
5105 You can find information at www.gromacs.org, or in the INSTALL file." 1>&2; exit 1; }
5109 cat > conftest.$ac_ext <<EOF
5110 #line 5111 "configure"
5111 #include "confdefs.h"
5112 #include <$xfftwname.h>
5114 int _array_ [1 - 2 * !((sizeof(fftw_real)) == $realsize)];
5117 if { (eval echo configure:5118: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5121 usedprefix=$fftwcheckprefix
5124 echo "configure: failed program was:" >&5
5125 cat conftest.$ac_ext >&5
5128 { echo "configure: error: Cannot find any $prec precision $fftwname.h or $xfftwname.h
5129 Do you have $prec precision FFTW installed? If you are using packages,
5130 note that you also need fftw-devel to compile GROMACS. You can find the
5131 software at www.fftw.org, and detailed instructions at www.gromacs.org.
5132 If you compiled FFTW yourself:
5133 Note that the default FFTW setup is double precision. Change the FFTW
5134 configuration to single with --enable-float. If you want MPI support,
5135 use --enable-mpi. It is a good idea to install both single & double.
5136 If your sysadm doesn't want to install it you can do it to a location
5137 in your home directory and provide the correct paths in the CPPFLAGS
5138 and LDFLAGS environment variables before running configure.
5139 That is also necessary to do if your compiler doesn't search
5140 /usr/local/include and /usr/local/lib by default.
5141 You can find information at www.gromacs.org, or in the INSTALL file." 1>&2; exit 1; }
5146 echo $ac_n "checking for main in -l$fftwname""... $ac_c" 1>&6
5147 echo "configure:5148: checking for main in -l$fftwname" >&5
5148 ac_lib_var=`echo $fftwname'_'main | sed 'y%./+-%__p_%'`
5149 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5150 echo $ac_n "(cached) $ac_c" 1>&6
5152 ac_save_LIBS="$LIBS"
5153 LIBS="-l$fftwname $LIBS"
5154 cat > conftest.$ac_ext <<EOF
5155 #line 5156 "configure"
5156 #include "confdefs.h"
5162 if { (eval echo configure:5163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5164 eval "ac_cv_lib_$ac_lib_var=yes"
5166 echo "configure: failed program was:" >&5
5167 cat conftest.$ac_ext >&5
5169 eval "ac_cv_lib_$ac_lib_var=no"
5172 LIBS="$ac_save_LIBS"
5175 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5176 echo "$ac_t""yes" 1>&6
5177 ac_tr_lib=HAVE_LIB`echo $fftwname | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5178 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5179 cat >> confdefs.h <<EOF
5180 #define $ac_tr_lib 1
5183 LIBS="-l$fftwname $LIBS"
5186 echo "$ac_t""no" 1>&6
5187 { echo "configure: error: Can't find a library to match the $fftwname header" 1>&2; exit 1; }
5190 ac_fftw_savedprefix=$usedprefix
5191 ac_fftw_firstname=$fftwname
5195 fftwname=${ac_fftw_savedprefix}fftw_mpi
5196 echo $ac_n "checking for $fftwname.h""... $ac_c" 1>&6
5197 echo "configure:5198: checking for $fftwname.h" >&5
5198 cat > conftest.$ac_ext <<EOF
5199 #line 5200 "configure"
5200 #include "confdefs.h"
5201 #include <$fftwname.h>
5206 if { (eval echo configure:5207: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5208 echo "$ac_t""yes" 1>&6
5209 echo $ac_n "checking for main in -l$fftwname""... $ac_c" 1>&6
5210 echo "configure:5211: checking for main in -l$fftwname" >&5
5211 ac_lib_var=`echo $fftwname'_'main | sed 'y%./+-%__p_%'`
5212 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5213 echo $ac_n "(cached) $ac_c" 1>&6
5215 ac_save_LIBS="$LIBS"
5216 LIBS="-l$fftwname $LIBS"
5217 cat > conftest.$ac_ext <<EOF
5218 #line 5219 "configure"
5219 #include "confdefs.h"
5225 if { (eval echo configure:5226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5227 eval "ac_cv_lib_$ac_lib_var=yes"
5229 echo "configure: failed program was:" >&5
5230 cat conftest.$ac_ext >&5
5232 eval "ac_cv_lib_$ac_lib_var=no"
5235 LIBS="$ac_save_LIBS"
5238 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5239 echo "$ac_t""yes" 1>&6
5240 ac_tr_lib=HAVE_LIB`echo $fftwname | sed -e 's/^a-zA-Z0-9_/_/g' \
5241 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5242 cat >> confdefs.h <<EOF
5243 #define $ac_tr_lib 1
5246 LIBS="-l$fftwname $LIBS"
5249 echo "$ac_t""no" 1>&6
5250 { echo "configure: error: Can't find a library to match the $fftwname header" 1>&2; exit 1; }
5254 echo "configure: failed program was:" >&5
5255 cat conftest.$ac_ext >&5
5258 echo "$ac_t""no" 1>&6
5259 { echo "configure: error: Cant find $fftwname.h header. Make sure all your fftw prefixes match - we already use $ac_fftw_firstname.h" 1>&2; exit 1; }
5268 if test -z "$ac_fftw_firstname"; then
5270 if test "$enable_float" = "no"; then
5282 # check header doesn't work, since we must use mpicc to get includes, not just /lib/cpp
5283 echo $ac_n "checking for rfftw_mpi.h""... $ac_c" 1>&6
5284 echo "configure:5285: checking for rfftw_mpi.h" >&5
5285 cat > conftest.$ac_ext <<EOF
5286 #line 5287 "configure"
5287 #include "confdefs.h"
5288 #include <rfftw_mpi.h>
5293 if { (eval echo configure:5294: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5297 echo "$ac_t""yes" 1>&6
5300 echo "configure: failed program was:" >&5
5301 cat conftest.$ac_ext >&5
5303 echo "$ac_t""no" 1>&6
5308 if test -n "$fftwname"; then
5309 # we cannot run the code since an MPI program might not be allowed on a login node of a supercomputer
5310 cat > conftest.$ac_ext <<EOF
5311 #line 5312 "configure"
5312 #include "confdefs.h"
5313 #include <$fftwname.h>
5315 int _array_ [1 - 2 * !((sizeof(fftw_real)) == $realsize)];
5318 if { (eval echo configure:5319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5322 echo "configure: failed program was:" >&5
5323 cat conftest.$ac_ext >&5
5332 if test "$ok" != "yes"; then
5333 xfftwname=${fftwcheckprefix}${fftwname}
5334 echo $ac_n "checking for $xfftwname.h""... $ac_c" 1>&6
5335 echo "configure:5336: checking for $xfftwname.h" >&5
5336 cat > conftest.$ac_ext <<EOF
5337 #line 5338 "configure"
5338 #include "confdefs.h"
5339 #include <$xfftwname.h>
5344 if { (eval echo configure:5345: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5346 echo "$ac_t""yes" 1>&6
5348 echo "configure: failed program was:" >&5
5349 cat conftest.$ac_ext >&5
5352 echo "$ac_t""no" 1>&6
5353 { echo "configure: error: Cannot find any $prec precision $fftwname.h or $xfftwname.h
5354 Do you have $prec precision FFTW installed? If you are using packages,
5355 note that you also need fftw-devel to compile GROMACS. You can find the
5356 software at www.fftw.org, and detailed instructions at www.gromacs.org.
5357 If you compiled FFTW yourself:
5358 Note that the default FFTW setup is double precision. Change the FFTW
5359 configuration to single with --enable-float. If you want MPI support,
5360 use --enable-mpi. It is a good idea to install both single & double.
5361 If your sysadm doesn't want to install it you can do it to a location
5362 in your home directory and provide the correct paths in the CPPFLAGS
5363 and LDFLAGS environment variables before running configure.
5364 That is also necessary to do if your compiler doesn't search
5365 /usr/local/include and /usr/local/lib by default.
5366 You can find information at www.gromacs.org, or in the INSTALL file." 1>&2; exit 1; }
5370 cat > conftest.$ac_ext <<EOF
5371 #line 5372 "configure"
5372 #include "confdefs.h"
5373 #include <$xfftwname.h>
5375 int _array_ [1 - 2 * !((sizeof(fftw_real)) == $realsize)];
5378 if { (eval echo configure:5379: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5382 usedprefix=$fftwcheckprefix
5385 echo "configure: failed program was:" >&5
5386 cat conftest.$ac_ext >&5
5389 { echo "configure: error: Cannot find any $prec precision $fftwname.h or $xfftwname.h
5390 Do you have $prec precision FFTW installed? If you are using packages,
5391 note that you also need fftw-devel to compile GROMACS. You can find the
5392 software at www.fftw.org, and detailed instructions at www.gromacs.org.
5393 If you compiled FFTW yourself:
5394 Note that the default FFTW setup is double precision. Change the FFTW
5395 configuration to single with --enable-float. If you want MPI support,
5396 use --enable-mpi. It is a good idea to install both single & double.
5397 If your sysadm doesn't want to install it you can do it to a location
5398 in your home directory and provide the correct paths in the CPPFLAGS
5399 and LDFLAGS environment variables before running configure.
5400 That is also necessary to do if your compiler doesn't search
5401 /usr/local/include and /usr/local/lib by default.
5402 You can find information at www.gromacs.org, or in the INSTALL file." 1>&2; exit 1; }
5407 echo $ac_n "checking for main in -l$fftwname""... $ac_c" 1>&6
5408 echo "configure:5409: checking for main in -l$fftwname" >&5
5409 ac_lib_var=`echo $fftwname'_'main | sed 'y%./+-%__p_%'`
5410 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5411 echo $ac_n "(cached) $ac_c" 1>&6
5413 ac_save_LIBS="$LIBS"
5414 LIBS="-l$fftwname $LIBS"
5415 cat > conftest.$ac_ext <<EOF
5416 #line 5417 "configure"
5417 #include "confdefs.h"
5423 if { (eval echo configure:5424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5425 eval "ac_cv_lib_$ac_lib_var=yes"
5427 echo "configure: failed program was:" >&5
5428 cat conftest.$ac_ext >&5
5430 eval "ac_cv_lib_$ac_lib_var=no"
5433 LIBS="$ac_save_LIBS"
5436 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5437 echo "$ac_t""yes" 1>&6
5438 ac_tr_lib=HAVE_LIB`echo $fftwname | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5439 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5440 cat >> confdefs.h <<EOF
5441 #define $ac_tr_lib 1
5444 LIBS="-l$fftwname $LIBS"
5447 echo "$ac_t""no" 1>&6
5448 { echo "configure: error: Can't find a library to match the $fftwname header" 1>&2; exit 1; }
5451 ac_fftw_savedprefix=$usedprefix
5452 ac_fftw_firstname=$fftwname
5456 fftwname=${ac_fftw_savedprefix}rfftw_mpi
5457 echo $ac_n "checking for $fftwname.h""... $ac_c" 1>&6
5458 echo "configure:5459: checking for $fftwname.h" >&5
5459 cat > conftest.$ac_ext <<EOF
5460 #line 5461 "configure"
5461 #include "confdefs.h"
5462 #include <$fftwname.h>
5467 if { (eval echo configure:5468: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5469 echo "$ac_t""yes" 1>&6
5470 echo $ac_n "checking for main in -l$fftwname""... $ac_c" 1>&6
5471 echo "configure:5472: checking for main in -l$fftwname" >&5
5472 ac_lib_var=`echo $fftwname'_'main | sed 'y%./+-%__p_%'`
5473 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5474 echo $ac_n "(cached) $ac_c" 1>&6
5476 ac_save_LIBS="$LIBS"
5477 LIBS="-l$fftwname $LIBS"
5478 cat > conftest.$ac_ext <<EOF
5479 #line 5480 "configure"
5480 #include "confdefs.h"
5486 if { (eval echo configure:5487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5488 eval "ac_cv_lib_$ac_lib_var=yes"
5490 echo "configure: failed program was:" >&5
5491 cat conftest.$ac_ext >&5
5493 eval "ac_cv_lib_$ac_lib_var=no"
5496 LIBS="$ac_save_LIBS"
5499 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5500 echo "$ac_t""yes" 1>&6
5501 ac_tr_lib=HAVE_LIB`echo $fftwname | sed -e 's/^a-zA-Z0-9_/_/g' \
5502 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5503 cat >> confdefs.h <<EOF
5504 #define $ac_tr_lib 1
5507 LIBS="-l$fftwname $LIBS"
5510 echo "$ac_t""no" 1>&6
5511 { echo "configure: error: Can't find a library to match the $fftwname header" 1>&2; exit 1; }
5515 echo "configure: failed program was:" >&5
5516 cat conftest.$ac_ext >&5
5519 echo "$ac_t""no" 1>&6
5520 { echo "configure: error: Cant find $fftwname.h header. Make sure all your fftw prefixes match - we already use $ac_fftw_firstname.h" 1>&2; exit 1; }
5530 case ${ac_fftw_savedprefix} in
5531 d) cat >> confdefs.h <<\EOF
5532 #define FFTW_NAME_DFFTW
5535 s) cat >> confdefs.h <<\EOF
5536 #define FFTW_NAME_SFFTW
5539 *) cat >> confdefs.h <<\EOF
5540 #define FFTW_NAME_FFTW
5545 echo "*******************************************************************"
5546 echo "* WARNING! You have disabled FFTW support! *"
5547 echo "* You will not be able to use PME (Particle Mesh Ewald) summation *"
5548 echo "* in your simulations. Unless you are absolutely sure you won't *"
5549 echo "* ever need this we suggest you install FFTW instead of compiling *"
5550 echo "* a version of GROMACS that won't be fully functional. *"
5551 echo "*******************************************************************"
5552 fi # end of fftw check
5555 # check for xtc headers
5556 for ac_hdr in rpc/rpc.h rpc/xdr.h
5558 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5559 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5560 echo "configure:5561: checking for $ac_hdr" >&5
5561 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5562 echo $ac_n "(cached) $ac_c" 1>&6
5564 cat > conftest.$ac_ext <<EOF
5565 #line 5566 "configure"
5566 #include "confdefs.h"
5569 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5570 { (eval echo configure:5571: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5571 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5572 if test -z "$ac_err"; then
5574 eval "ac_cv_header_$ac_safe=yes"
5577 echo "configure: failed program was:" >&5
5578 cat conftest.$ac_ext >&5
5580 eval "ac_cv_header_$ac_safe=no"
5584 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5585 echo "$ac_t""yes" 1>&6
5586 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5587 cat >> confdefs.h <<EOF
5588 #define $ac_tr_hdr 1
5590 # check for xtc libs if we found headers - on solaris the xdr stuff is in libnsl
5591 echo $ac_n "checking for xdr_float in -lnsl""... $ac_c" 1>&6
5592 echo "configure:5593: checking for xdr_float in -lnsl" >&5
5593 ac_lib_var=`echo nsl'_'xdr_float | sed 'y%./+-%__p_%'`
5594 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5595 echo $ac_n "(cached) $ac_c" 1>&6
5597 ac_save_LIBS="$LIBS"
5599 cat > conftest.$ac_ext <<EOF
5600 #line 5601 "configure"
5601 #include "confdefs.h"
5602 /* Override any gcc2 internal prototype to avoid an error. */
5603 /* We use char because int might match the return type of a gcc2
5604 builtin and then its argument prototype would still apply. */
5611 if { (eval echo configure:5612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5613 eval "ac_cv_lib_$ac_lib_var=yes"
5615 echo "configure: failed program was:" >&5
5616 cat conftest.$ac_ext >&5
5618 eval "ac_cv_lib_$ac_lib_var=no"
5621 LIBS="$ac_save_LIBS"
5624 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5625 echo "$ac_t""yes" 1>&6
5626 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5627 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5628 cat >> confdefs.h <<EOF
5629 #define $ac_tr_lib 1
5635 echo "$ac_t""no" 1>&6
5638 cat > conftest.$ac_ext <<EOF
5639 #line 5640 "configure"
5640 #include "confdefs.h"
5644 XDR *xd; float f; xdr_float(xd,&f);
5647 if { (eval echo configure:5648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5651 echo "configure: failed program was:" >&5
5652 cat conftest.$ac_ext >&5
5654 echo "configure: warning: RPC/XDR libraries not found - disabling xtc" 1>&2
5659 echo "$ac_t""no" 1>&6
5660 echo "configure: warning: RPC/XDR include headers not found - disabling xtc" 1>&2
5665 if test "$have_xdr" = "yes"; then
5666 cat >> confdefs.h <<\EOF
5671 echo "*****************************************************************************"
5672 echo "*WARNING - XDR not found. This cripples GROMACS significantly - you can't *"
5673 echo "*read/write portable trajectories. No choice on windows, but locate the RPC *"
5674 echo "*header files and libraries if you run UNIX - they do exist! *"
5675 echo "*****************************************************************************"
5679 # Checks for additional and/or optional functions or libraries.
5681 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
5682 echo "configure:5683: checking for 8-bit clean memcmp" >&5
5683 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
5684 echo $ac_n "(cached) $ac_c" 1>&6
5686 if test "$cross_compiling" = yes; then
5687 ac_cv_func_memcmp_clean=no
5689 cat > conftest.$ac_ext <<EOF
5690 #line 5691 "configure"
5691 #include "confdefs.h"
5695 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
5696 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
5700 if { (eval echo configure:5701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5702 ac_cv_func_memcmp_clean=yes
5704 echo "configure: failed program was:" >&5
5705 cat conftest.$ac_ext >&5
5707 ac_cv_func_memcmp_clean=no
5714 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
5715 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
5717 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
5718 echo "configure:5719: checking return type of signal handlers" >&5
5719 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
5720 echo $ac_n "(cached) $ac_c" 1>&6
5722 cat > conftest.$ac_ext <<EOF
5723 #line 5724 "configure"
5724 #include "confdefs.h"
5725 #include <sys/types.h>
5731 extern "C" void (*signal (int, void (*)(int)))(int);
5733 void (*signal ()) ();
5740 if { (eval echo configure:5741: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5742 ac_cv_type_signal=void
5744 echo "configure: failed program was:" >&5
5745 cat conftest.$ac_ext >&5
5747 ac_cv_type_signal=int
5752 echo "$ac_t""$ac_cv_type_signal" 1>&6
5753 cat >> confdefs.h <<EOF
5754 #define RETSIGTYPE $ac_cv_type_signal
5758 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
5759 echo "configure:5760: checking for vprintf" >&5
5760 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
5761 echo $ac_n "(cached) $ac_c" 1>&6
5763 cat > conftest.$ac_ext <<EOF
5764 #line 5765 "configure"
5765 #include "confdefs.h"
5766 /* System header to define __stub macros and hopefully few prototypes,
5767 which can conflict with char vprintf(); below. */
5769 /* Override any gcc2 internal prototype to avoid an error. */
5770 /* We use char because int might match the return type of a gcc2
5771 builtin and then its argument prototype would still apply. */
5776 /* The GNU C library defines this for functions which it implements
5777 to always fail with ENOSYS. Some functions are actually named
5778 something starting with __ and the normal name is an alias. */
5779 #if defined (__stub_vprintf) || defined (__stub___vprintf)
5787 if { (eval echo configure:5788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5789 eval "ac_cv_func_vprintf=yes"
5791 echo "configure: failed program was:" >&5
5792 cat conftest.$ac_ext >&5
5794 eval "ac_cv_func_vprintf=no"
5799 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
5800 echo "$ac_t""yes" 1>&6
5801 cat >> confdefs.h <<\EOF
5802 #define HAVE_VPRINTF 1
5806 echo "$ac_t""no" 1>&6
5809 if test "$ac_cv_func_vprintf" != yes; then
5810 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
5811 echo "configure:5812: checking for _doprnt" >&5
5812 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
5813 echo $ac_n "(cached) $ac_c" 1>&6
5815 cat > conftest.$ac_ext <<EOF
5816 #line 5817 "configure"
5817 #include "confdefs.h"
5818 /* System header to define __stub macros and hopefully few prototypes,
5819 which can conflict with char _doprnt(); below. */
5821 /* Override any gcc2 internal prototype to avoid an error. */
5822 /* We use char because int might match the return type of a gcc2
5823 builtin and then its argument prototype would still apply. */
5828 /* The GNU C library defines this for functions which it implements
5829 to always fail with ENOSYS. Some functions are actually named
5830 something starting with __ and the normal name is an alias. */
5831 #if defined (__stub__doprnt) || defined (__stub____doprnt)
5839 if { (eval echo configure:5840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5841 eval "ac_cv_func__doprnt=yes"
5843 echo "configure: failed program was:" >&5
5844 cat conftest.$ac_ext >&5
5846 eval "ac_cv_func__doprnt=no"
5851 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
5852 echo "$ac_t""yes" 1>&6
5853 cat >> confdefs.h <<\EOF
5854 #define HAVE_DOPRNT 1
5858 echo "$ac_t""no" 1>&6
5863 echo $ac_n "checking if malloc debugging is wanted""... $ac_c" 1>&6
5864 echo "configure:5865: checking if malloc debugging is wanted" >&5
5865 # Check whether --with-dmalloc or --without-dmalloc was given.
5866 if test "${with_dmalloc+set}" = set; then
5867 withval="$with_dmalloc"
5868 if test "$withval" = yes; then
5869 echo "$ac_t""yes" 1>&6
5870 cat >> confdefs.h <<\EOF
5871 #define WITH_DMALLOC 1
5874 LIBS="$LIBS -ldmalloc"
5875 LDFLAGS="$LDFLAGS -g"
5877 echo "$ac_t""no" 1>&6
5880 echo "$ac_t""no" 1>&6
5884 for ac_func in strcasecmp
5886 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5887 echo "configure:5888: checking for $ac_func" >&5
5888 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5889 echo $ac_n "(cached) $ac_c" 1>&6
5891 cat > conftest.$ac_ext <<EOF
5892 #line 5893 "configure"
5893 #include "confdefs.h"
5894 /* System header to define __stub macros and hopefully few prototypes,
5895 which can conflict with char $ac_func(); below. */
5897 /* Override any gcc2 internal prototype to avoid an error. */
5898 /* We use char because int might match the return type of a gcc2
5899 builtin and then its argument prototype would still apply. */
5904 /* The GNU C library defines this for functions which it implements
5905 to always fail with ENOSYS. Some functions are actually named
5906 something starting with __ and the normal name is an alias. */
5907 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5915 if { (eval echo configure:5916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5917 eval "ac_cv_func_$ac_func=yes"
5919 echo "configure: failed program was:" >&5
5920 cat conftest.$ac_ext >&5
5922 eval "ac_cv_func_$ac_func=no"
5927 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5928 echo "$ac_t""yes" 1>&6
5929 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5930 cat >> confdefs.h <<EOF
5931 #define $ac_tr_func 1
5935 echo "$ac_t""no" 1>&6
5939 for ac_func in strdup
5941 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5942 echo "configure:5943: checking for $ac_func" >&5
5943 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5944 echo $ac_n "(cached) $ac_c" 1>&6
5946 cat > conftest.$ac_ext <<EOF
5947 #line 5948 "configure"
5948 #include "confdefs.h"
5949 /* System header to define __stub macros and hopefully few prototypes,
5950 which can conflict with char $ac_func(); below. */
5952 /* Override any gcc2 internal prototype to avoid an error. */
5953 /* We use char because int might match the return type of a gcc2
5954 builtin and then its argument prototype would still apply. */
5959 /* The GNU C library defines this for functions which it implements
5960 to always fail with ENOSYS. Some functions are actually named
5961 something starting with __ and the normal name is an alias. */
5962 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5970 if { (eval echo configure:5971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5972 eval "ac_cv_func_$ac_func=yes"
5974 echo "configure: failed program was:" >&5
5975 cat conftest.$ac_ext >&5
5977 eval "ac_cv_func_$ac_func=no"
5982 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5983 echo "$ac_t""yes" 1>&6
5984 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5985 cat >> confdefs.h <<EOF
5986 #define $ac_tr_func 1
5990 echo "$ac_t""no" 1>&6
5997 # If we find X, set shell vars x_includes and x_libraries to the
5998 # paths, otherwise set no_x=yes.
5999 # Uses ac_ vars as temps to allow command line to override cache and checks.
6000 # --without-x overrides everything else, but does not touch the cache.
6001 echo $ac_n "checking for X""... $ac_c" 1>&6
6002 echo "configure:6003: checking for X" >&5
6004 # Check whether --with-x or --without-x was given.
6005 if test "${with_x+set}" = set; then
6010 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6011 if test "x$with_x" = xno; then
6012 # The user explicitly disabled X.
6015 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
6016 # Both variables are already set.
6019 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
6020 echo $ac_n "(cached) $ac_c" 1>&6
6022 # One or both of the vars are not set, and there is no cached value.
6023 ac_x_includes=NO ac_x_libraries=NO
6025 if mkdir conftestdir; then
6027 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6028 cat > Imakefile <<'EOF'
6030 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6032 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6033 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6034 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6035 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6036 for ac_extension in a so sl; do
6037 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6038 test -f $ac_im_libdir/libX11.$ac_extension; then
6039 ac_im_usrlibdir=$ac_im_libdir; break
6042 # Screen out bogus values from the imake configuration. They are
6043 # bogus both because they are the default anyway, and because
6044 # using them would break gcc on systems where it needs fixed includes.
6045 case "$ac_im_incroot" in
6047 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
6049 case "$ac_im_usrlibdir" in
6051 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
6058 if test "$ac_x_includes" = NO; then
6059 # Guess where to find include files, by looking for this one X11 .h file.
6060 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
6062 # First, try using that file with no special directory specified.
6063 cat > conftest.$ac_ext <<EOF
6064 #line 6065 "configure"
6065 #include "confdefs.h"
6066 #include <$x_direct_test_include>
6068 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6069 { (eval echo configure:6070: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6070 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6071 if test -z "$ac_err"; then
6073 # We can compile using X headers with no special include directory.
6077 echo "configure: failed program was:" >&5
6078 cat conftest.$ac_ext >&5
6080 # Look for the header file in a standard set of common directories.
6081 # Check X11 before X11Rn because it is often a symlink to the current release.
6084 /usr/X11R6/include \
6085 /usr/X11R5/include \
6086 /usr/X11R4/include \
6089 /usr/include/X11R6 \
6090 /usr/include/X11R5 \
6091 /usr/include/X11R4 \
6093 /usr/local/X11/include \
6094 /usr/local/X11R6/include \
6095 /usr/local/X11R5/include \
6096 /usr/local/X11R4/include \
6098 /usr/local/include/X11 \
6099 /usr/local/include/X11R6 \
6100 /usr/local/include/X11R5 \
6101 /usr/local/include/X11R4 \
6105 /usr/XFree86/include/X11 \
6108 /usr/local/include \
6109 /usr/unsupported/include \
6110 /usr/athena/include \
6111 /usr/local/x11r5/include \
6112 /usr/lpp/Xamples/include \
6114 /usr/openwin/include \
6115 /usr/openwin/share/include \
6118 if test -r "$ac_dir/$x_direct_test_include"; then
6119 ac_x_includes=$ac_dir
6125 fi # $ac_x_includes = NO
6127 if test "$ac_x_libraries" = NO; then
6128 # Check for the libraries.
6130 test -z "$x_direct_test_library" && x_direct_test_library=Xt
6131 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
6133 # See if we find them without any special options.
6134 # Don't add to $LIBS permanently.
6135 ac_save_LIBS="$LIBS"
6136 LIBS="-l$x_direct_test_library $LIBS"
6137 cat > conftest.$ac_ext <<EOF
6138 #line 6139 "configure"
6139 #include "confdefs.h"
6142 ${x_direct_test_function}()
6145 if { (eval echo configure:6146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6147 LIBS="$ac_save_LIBS"
6148 # We can link X programs with no special library path.
6151 echo "configure: failed program was:" >&5
6152 cat conftest.$ac_ext >&5
6154 LIBS="$ac_save_LIBS"
6155 # First see if replacing the include by lib works.
6156 # Check X11 before X11Rn because it is often a symlink to the current release.
6157 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
6168 /usr/local/X11/lib \
6169 /usr/local/X11R6/lib \
6170 /usr/local/X11R5/lib \
6171 /usr/local/X11R4/lib \
6173 /usr/local/lib/X11 \
6174 /usr/local/lib/X11R6 \
6175 /usr/local/lib/X11R5 \
6176 /usr/local/lib/X11R4 \
6180 /usr/XFree86/lib/X11 \
6184 /usr/unsupported/lib \
6186 /usr/local/x11r5/lib \
6187 /usr/lpp/Xamples/lib \
6191 /usr/openwin/share/lib \
6194 for ac_extension in a so sl; do
6195 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
6196 ac_x_libraries=$ac_dir
6203 fi # $ac_x_libraries = NO
6205 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
6206 # Didn't find X anywhere. Cache the known absence of X.
6207 ac_cv_have_x="have_x=no"
6209 # Record where we found X for the cache.
6210 ac_cv_have_x="have_x=yes \
6211 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6215 eval "$ac_cv_have_x"
6218 if test "$have_x" != yes; then
6219 echo "$ac_t""$have_x" 1>&6
6222 # If each of the values was on the command line, it overrides each guess.
6223 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6224 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6225 # Update the cache value to reflect the command line values.
6226 ac_cv_have_x="have_x=yes \
6227 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6228 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
6231 if test "$no_x" = yes; then
6232 # Not all programs may use this symbol, but it does not hurt to define it.
6233 cat >> confdefs.h <<\EOF
6234 #define X_DISPLAY_MISSING 1
6237 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6239 if test -n "$x_includes"; then
6240 X_CFLAGS="$X_CFLAGS -I$x_includes"
6243 # It would also be nice to do this for all -L options, not just this one.
6244 if test -n "$x_libraries"; then
6245 X_LIBS="$X_LIBS -L$x_libraries"
6246 # For Solaris; some versions of Sun CC require a space after -R and
6247 # others require no space. Words are not sufficient . . . .
6248 case "`(uname -sr) 2>/dev/null`" in
6250 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
6251 echo "configure:6252: checking whether -R must be followed by a space" >&5
6252 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
6253 cat > conftest.$ac_ext <<EOF
6254 #line 6255 "configure"
6255 #include "confdefs.h"
6261 if { (eval echo configure:6262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6265 echo "configure: failed program was:" >&5
6266 cat conftest.$ac_ext >&5
6271 if test $ac_R_nospace = yes; then
6272 echo "$ac_t""no" 1>&6
6273 X_LIBS="$X_LIBS -R$x_libraries"
6275 LIBS="$ac_xsave_LIBS -R $x_libraries"
6276 cat > conftest.$ac_ext <<EOF
6277 #line 6278 "configure"
6278 #include "confdefs.h"
6284 if { (eval echo configure:6285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6288 echo "configure: failed program was:" >&5
6289 cat conftest.$ac_ext >&5
6294 if test $ac_R_space = yes; then
6295 echo "$ac_t""yes" 1>&6
6296 X_LIBS="$X_LIBS -R $x_libraries"
6298 echo "$ac_t""neither works" 1>&6
6301 LIBS="$ac_xsave_LIBS"
6305 # Check for system-dependent libraries X programs must link with.
6306 # Do this before checking for the system-independent R6 libraries
6307 # (-lICE), since we may need -lsocket or whatever for X linking.
6309 if test "$ISC" = yes; then
6310 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6312 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
6313 # libraries were built with DECnet support. And karl@cs.umb.edu says
6314 # the Alpha needs dnet_stub (dnet does not exist).
6315 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
6316 echo "configure:6317: checking for dnet_ntoa in -ldnet" >&5
6317 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
6318 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6319 echo $ac_n "(cached) $ac_c" 1>&6
6321 ac_save_LIBS="$LIBS"
6323 cat > conftest.$ac_ext <<EOF
6324 #line 6325 "configure"
6325 #include "confdefs.h"
6326 /* Override any gcc2 internal prototype to avoid an error. */
6327 /* We use char because int might match the return type of a gcc2
6328 builtin and then its argument prototype would still apply. */
6335 if { (eval echo configure:6336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6337 eval "ac_cv_lib_$ac_lib_var=yes"
6339 echo "configure: failed program was:" >&5
6340 cat conftest.$ac_ext >&5
6342 eval "ac_cv_lib_$ac_lib_var=no"
6345 LIBS="$ac_save_LIBS"
6348 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6349 echo "$ac_t""yes" 1>&6
6350 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6352 echo "$ac_t""no" 1>&6
6355 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6356 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
6357 echo "configure:6358: checking for dnet_ntoa in -ldnet_stub" >&5
6358 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
6359 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6360 echo $ac_n "(cached) $ac_c" 1>&6
6362 ac_save_LIBS="$LIBS"
6363 LIBS="-ldnet_stub $LIBS"
6364 cat > conftest.$ac_ext <<EOF
6365 #line 6366 "configure"
6366 #include "confdefs.h"
6367 /* Override any gcc2 internal prototype to avoid an error. */
6368 /* We use char because int might match the return type of a gcc2
6369 builtin and then its argument prototype would still apply. */
6376 if { (eval echo configure:6377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6378 eval "ac_cv_lib_$ac_lib_var=yes"
6380 echo "configure: failed program was:" >&5
6381 cat conftest.$ac_ext >&5
6383 eval "ac_cv_lib_$ac_lib_var=no"
6386 LIBS="$ac_save_LIBS"
6389 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6390 echo "$ac_t""yes" 1>&6
6391 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6393 echo "$ac_t""no" 1>&6
6398 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6399 # to get the SysV transport functions.
6400 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
6402 # The nsl library prevents programs from opening the X display
6403 # on Irix 5.2, according to dickey@clark.net.
6404 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
6405 echo "configure:6406: checking for gethostbyname" >&5
6406 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
6407 echo $ac_n "(cached) $ac_c" 1>&6
6409 cat > conftest.$ac_ext <<EOF
6410 #line 6411 "configure"
6411 #include "confdefs.h"
6412 /* System header to define __stub macros and hopefully few prototypes,
6413 which can conflict with char gethostbyname(); below. */
6415 /* Override any gcc2 internal prototype to avoid an error. */
6416 /* We use char because int might match the return type of a gcc2
6417 builtin and then its argument prototype would still apply. */
6418 char gethostbyname();
6422 /* The GNU C library defines this for functions which it implements
6423 to always fail with ENOSYS. Some functions are actually named
6424 something starting with __ and the normal name is an alias. */
6425 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
6433 if { (eval echo configure:6434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6435 eval "ac_cv_func_gethostbyname=yes"
6437 echo "configure: failed program was:" >&5
6438 cat conftest.$ac_ext >&5
6440 eval "ac_cv_func_gethostbyname=no"
6445 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
6446 echo "$ac_t""yes" 1>&6
6449 echo "$ac_t""no" 1>&6
6452 if test $ac_cv_func_gethostbyname = no; then
6453 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
6454 echo "configure:6455: checking for gethostbyname in -lnsl" >&5
6455 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
6456 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6457 echo $ac_n "(cached) $ac_c" 1>&6
6459 ac_save_LIBS="$LIBS"
6461 cat > conftest.$ac_ext <<EOF
6462 #line 6463 "configure"
6463 #include "confdefs.h"
6464 /* Override any gcc2 internal prototype to avoid an error. */
6465 /* We use char because int might match the return type of a gcc2
6466 builtin and then its argument prototype would still apply. */
6467 char gethostbyname();
6473 if { (eval echo configure:6474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6475 eval "ac_cv_lib_$ac_lib_var=yes"
6477 echo "configure: failed program was:" >&5
6478 cat conftest.$ac_ext >&5
6480 eval "ac_cv_lib_$ac_lib_var=no"
6483 LIBS="$ac_save_LIBS"
6486 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6487 echo "$ac_t""yes" 1>&6
6488 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6490 echo "$ac_t""no" 1>&6
6495 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6496 # socket/setsockopt and other routines are undefined under SCO ODT
6497 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6498 # on later versions), says simon@lia.di.epfl.ch: it contains
6499 # gethostby* variants that don't use the nameserver (or something).
6500 # -lsocket must be given before -lnsl if both are needed.
6501 # We assume that if connect needs -lnsl, so does gethostbyname.
6502 echo $ac_n "checking for connect""... $ac_c" 1>&6
6503 echo "configure:6504: checking for connect" >&5
6504 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
6505 echo $ac_n "(cached) $ac_c" 1>&6
6507 cat > conftest.$ac_ext <<EOF
6508 #line 6509 "configure"
6509 #include "confdefs.h"
6510 /* System header to define __stub macros and hopefully few prototypes,
6511 which can conflict with char connect(); below. */
6513 /* Override any gcc2 internal prototype to avoid an error. */
6514 /* We use char because int might match the return type of a gcc2
6515 builtin and then its argument prototype would still apply. */
6520 /* The GNU C library defines this for functions which it implements
6521 to always fail with ENOSYS. Some functions are actually named
6522 something starting with __ and the normal name is an alias. */
6523 #if defined (__stub_connect) || defined (__stub___connect)
6531 if { (eval echo configure:6532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6533 eval "ac_cv_func_connect=yes"
6535 echo "configure: failed program was:" >&5
6536 cat conftest.$ac_ext >&5
6538 eval "ac_cv_func_connect=no"
6543 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
6544 echo "$ac_t""yes" 1>&6
6547 echo "$ac_t""no" 1>&6
6550 if test $ac_cv_func_connect = no; then
6551 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
6552 echo "configure:6553: checking for connect in -lsocket" >&5
6553 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
6554 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6555 echo $ac_n "(cached) $ac_c" 1>&6
6557 ac_save_LIBS="$LIBS"
6558 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6559 cat > conftest.$ac_ext <<EOF
6560 #line 6561 "configure"
6561 #include "confdefs.h"
6562 /* Override any gcc2 internal prototype to avoid an error. */
6563 /* We use char because int might match the return type of a gcc2
6564 builtin and then its argument prototype would still apply. */
6571 if { (eval echo configure:6572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6573 eval "ac_cv_lib_$ac_lib_var=yes"
6575 echo "configure: failed program was:" >&5
6576 cat conftest.$ac_ext >&5
6578 eval "ac_cv_lib_$ac_lib_var=no"
6581 LIBS="$ac_save_LIBS"
6584 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6585 echo "$ac_t""yes" 1>&6
6586 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6588 echo "$ac_t""no" 1>&6
6593 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
6594 echo $ac_n "checking for remove""... $ac_c" 1>&6
6595 echo "configure:6596: checking for remove" >&5
6596 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
6597 echo $ac_n "(cached) $ac_c" 1>&6
6599 cat > conftest.$ac_ext <<EOF
6600 #line 6601 "configure"
6601 #include "confdefs.h"
6602 /* System header to define __stub macros and hopefully few prototypes,
6603 which can conflict with char remove(); below. */
6605 /* Override any gcc2 internal prototype to avoid an error. */
6606 /* We use char because int might match the return type of a gcc2
6607 builtin and then its argument prototype would still apply. */
6612 /* The GNU C library defines this for functions which it implements
6613 to always fail with ENOSYS. Some functions are actually named
6614 something starting with __ and the normal name is an alias. */
6615 #if defined (__stub_remove) || defined (__stub___remove)
6623 if { (eval echo configure:6624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6625 eval "ac_cv_func_remove=yes"
6627 echo "configure: failed program was:" >&5
6628 cat conftest.$ac_ext >&5
6630 eval "ac_cv_func_remove=no"
6635 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
6636 echo "$ac_t""yes" 1>&6
6639 echo "$ac_t""no" 1>&6
6642 if test $ac_cv_func_remove = no; then
6643 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
6644 echo "configure:6645: checking for remove in -lposix" >&5
6645 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
6646 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6647 echo $ac_n "(cached) $ac_c" 1>&6
6649 ac_save_LIBS="$LIBS"
6650 LIBS="-lposix $LIBS"
6651 cat > conftest.$ac_ext <<EOF
6652 #line 6653 "configure"
6653 #include "confdefs.h"
6654 /* Override any gcc2 internal prototype to avoid an error. */
6655 /* We use char because int might match the return type of a gcc2
6656 builtin and then its argument prototype would still apply. */
6663 if { (eval echo configure:6664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6665 eval "ac_cv_lib_$ac_lib_var=yes"
6667 echo "configure: failed program was:" >&5
6668 cat conftest.$ac_ext >&5
6670 eval "ac_cv_lib_$ac_lib_var=no"
6673 LIBS="$ac_save_LIBS"
6676 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6677 echo "$ac_t""yes" 1>&6
6678 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6680 echo "$ac_t""no" 1>&6
6685 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6686 echo $ac_n "checking for shmat""... $ac_c" 1>&6
6687 echo "configure:6688: checking for shmat" >&5
6688 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
6689 echo $ac_n "(cached) $ac_c" 1>&6
6691 cat > conftest.$ac_ext <<EOF
6692 #line 6693 "configure"
6693 #include "confdefs.h"
6694 /* System header to define __stub macros and hopefully few prototypes,
6695 which can conflict with char shmat(); below. */
6697 /* Override any gcc2 internal prototype to avoid an error. */
6698 /* We use char because int might match the return type of a gcc2
6699 builtin and then its argument prototype would still apply. */
6704 /* The GNU C library defines this for functions which it implements
6705 to always fail with ENOSYS. Some functions are actually named
6706 something starting with __ and the normal name is an alias. */
6707 #if defined (__stub_shmat) || defined (__stub___shmat)
6715 if { (eval echo configure:6716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6717 eval "ac_cv_func_shmat=yes"
6719 echo "configure: failed program was:" >&5
6720 cat conftest.$ac_ext >&5
6722 eval "ac_cv_func_shmat=no"
6727 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
6728 echo "$ac_t""yes" 1>&6
6731 echo "$ac_t""no" 1>&6
6734 if test $ac_cv_func_shmat = no; then
6735 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
6736 echo "configure:6737: checking for shmat in -lipc" >&5
6737 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
6738 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6739 echo $ac_n "(cached) $ac_c" 1>&6
6741 ac_save_LIBS="$LIBS"
6743 cat > conftest.$ac_ext <<EOF
6744 #line 6745 "configure"
6745 #include "confdefs.h"
6746 /* Override any gcc2 internal prototype to avoid an error. */
6747 /* We use char because int might match the return type of a gcc2
6748 builtin and then its argument prototype would still apply. */
6755 if { (eval echo configure:6756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6757 eval "ac_cv_lib_$ac_lib_var=yes"
6759 echo "configure: failed program was:" >&5
6760 cat conftest.$ac_ext >&5
6762 eval "ac_cv_lib_$ac_lib_var=no"
6765 LIBS="$ac_save_LIBS"
6768 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6769 echo "$ac_t""yes" 1>&6
6770 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6772 echo "$ac_t""no" 1>&6
6778 # Check for libraries that X11R6 Xt/Xaw programs need.
6779 ac_save_LDFLAGS="$LDFLAGS"
6780 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6781 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6782 # check for ICE first), but we must link in the order -lSM -lICE or
6783 # we get undefined symbols. So assume we have SM if we have ICE.
6784 # These have to be linked with before -lX11, unlike the other
6785 # libraries we check for below, so use a different variable.
6786 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
6787 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
6788 echo "configure:6789: checking for IceConnectionNumber in -lICE" >&5
6789 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
6790 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6791 echo $ac_n "(cached) $ac_c" 1>&6
6793 ac_save_LIBS="$LIBS"
6794 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6795 cat > conftest.$ac_ext <<EOF
6796 #line 6797 "configure"
6797 #include "confdefs.h"
6798 /* Override any gcc2 internal prototype to avoid an error. */
6799 /* We use char because int might match the return type of a gcc2
6800 builtin and then its argument prototype would still apply. */
6801 char IceConnectionNumber();
6804 IceConnectionNumber()
6807 if { (eval echo configure:6808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6809 eval "ac_cv_lib_$ac_lib_var=yes"
6811 echo "configure: failed program was:" >&5
6812 cat conftest.$ac_ext >&5
6814 eval "ac_cv_lib_$ac_lib_var=no"
6817 LIBS="$ac_save_LIBS"
6820 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6821 echo "$ac_t""yes" 1>&6
6822 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6824 echo "$ac_t""no" 1>&6
6827 LDFLAGS="$ac_save_LDFLAGS"
6831 # try to find motif headers and libraries
6839 if test "$no_x" = "yes"
6842 motif_libraries=none
6845 # Check whether --with-motif-includes or --without-motif-includes was given.
6846 if test "${with_motif_includes+set}" = set; then
6847 withval="$with_motif_includes"
6848 motif_includes="$withval"
6852 # Check whether --with-motif-libraries or --without-motif-libraries was given.
6853 if test "${with_motif_libraries+set}" = set; then
6854 withval="$with_motif_libraries"
6855 motif_libraries="$withval"
6859 echo $ac_n "checking for Motif""... $ac_c" 1>&6
6860 echo "configure:6861: checking for Motif" >&5
6865 # Search the include files.
6867 if test "$motif_includes" = ""; then
6868 if eval "test \"`echo '$''{'ac_cv_motif_includes'+set}'`\" = set"; then
6869 echo $ac_n "(cached) $ac_c" 1>&6
6872 ac_motif_save_LIBS="$LIBS"
6873 ac_motif_save_INCLUDES="$INCLUDES"
6874 ac_motif_save_CPPFLAGS="$CPPFLAGS"
6875 ac_motif_save_LDFLAGS="$LDFLAGS"
6877 LIBS="$X_PRE_LIBS -lXm -lXt -lX11 $X_EXTRA_LIBS $LIBS"
6878 INCLUDES="$X_CFLAGS $INCLUDES"
6879 CPPFLAGS="$X_CFLAGS $CPPFLAGS"
6880 LDFLAGS="$X_LIBS $LDFLAGS"
6882 ac_cv_motif_includes="none"
6883 cat > conftest.$ac_ext <<EOF
6884 #line 6885 "configure"
6885 #include "confdefs.h"
6891 if { (eval echo configure:6892: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6894 # Xm/Xm.h is in the standard search path.
6895 ac_cv_motif_includes=
6898 echo "configure: failed program was:" >&5
6899 cat conftest.$ac_ext >&5
6902 # Xm/Xm.h is not in the standard search path.
6903 # Locate it and put its directory in `motif_includes'
6905 # /usr/include/Motif* are used on HP-UX (Motif).
6906 # /usr/include/X11* are used on HP-UX (X and Athena).
6907 # /usr/dt is used on Solaris (Motif).
6908 # /usr/openwin is used on Solaris (X and Athena).
6909 # Other directories are just guesses.
6910 for dir in "$x_includes" "${prefix}/include" /usr/include /usr/local/include \
6911 /usr/include/Motif2.0 /usr/include/Motif1.2 /usr/include/Motif1.1 \
6912 /usr/include/X11R6 /usr/include/X11R5 /usr/include/X11R4 \
6913 /usr/dt/include /usr/openwin/include \
6914 /usr/dt/*/include /opt/*/include /usr/include/Motif* \
6915 "${prefix}"/*/include /usr/*/include /usr/local/*/include \
6916 "${prefix}"/include/* /usr/include/* /usr/local/include/*; do
6917 if test -f "$dir/Xm/Xm.h"; then
6918 ac_cv_motif_includes="$dir"
6926 LIBS="$ac_motif_save_LIBS"
6927 INCLUDES="$ac_motif_save_INCLUDES"
6928 CPPFLAGS="$ac_motif_save_CPPFLAGS"
6929 LDFLAGS="$ac_motif_save_LDFLAGS"
6933 motif_includes="$ac_cv_motif_includes"
6937 # Now for the libraries.
6939 if test "$motif_libraries" = ""; then
6940 if eval "test \"`echo '$''{'ac_cv_motif_libraries'+set}'`\" = set"; then
6941 echo $ac_n "(cached) $ac_c" 1>&6
6944 ac_motif_save_LIBS="$LIBS"
6945 ac_motif_save_INCLUDES="$INCLUDES"
6946 ac_motif_save_CPPFLAGS="$CPPFLAGS"
6947 ac_motif_save_LDFLAGS="$LDFLAGS"
6949 LIBS="$X_PRE_LIBS -lXm -lXt -lX11 $X_EXTRA_LIBS $LIBS"
6950 INCLUDES="$X_CFLAGS $INCLUDES"
6951 CPPFLAGS="$X_CFLAGS $CPPFLAGS"
6952 LDFLAGS="$X_LIBS $LDFLAGS"
6954 ac_cv_motif_libraries="none"
6955 cat > conftest.$ac_ext <<EOF
6956 #line 6957 "configure"
6957 #include "confdefs.h"
6960 XtToolkitInitialize();
6963 if { (eval echo configure:6964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6966 # libXm.a is in the standard search path.
6967 ac_cv_motif_libraries=
6970 echo "configure: failed program was:" >&5
6971 cat conftest.$ac_ext >&5
6974 # libXm.a is not in the standard search path.
6975 # Locate it and put its directory in `motif_libraries'
6977 # /usr/lib/Motif* are used on HP-UX (Motif).
6978 # /usr/lib/X11* are used on HP-UX (X and Athena).
6979 # /usr/dt is used on Solaris (Motif).
6980 # /usr/lesstif is used on Linux (Lesstif).
6981 # /usr/openwin is used on Solaris (X and Athena).
6982 # Other directories are just guesses.
6983 for dir in "$x_libraries" "${prefix}/lib" /usr/lib /usr/local/lib \
6984 /usr/lib/Motif2.0 /usr/lib/Motif1.2 /usr/lib/Motif1.1 \
6985 /usr/lib/X11R6 /usr/lib/X11R5 /usr/lib/X11R4 /usr/lib/X11 \
6986 /usr/dt/lib /usr/openwin/lib \
6987 /usr/dt/*/lib /opt/*/lib /usr/lib/Motif* \
6988 /usr/lesstif*/lib /usr/lib/Lesstif* \
6989 "${prefix}"/*/lib /usr/*/lib /usr/local/*/lib \
6990 "${prefix}"/lib/* /usr/lib/* /usr/local/lib/*; do
6991 if test -d "$dir" && test "`ls $dir/libXm.* 2> /dev/null`" != ""; then
6992 ac_cv_motif_libraries="$dir"
7000 LIBS="$ac_motif_save_LIBS"
7001 INCLUDES="$ac_motif_save_INCLUDES"
7002 CPPFLAGS="$ac_motif_save_CPPFLAGS"
7003 LDFLAGS="$ac_motif_save_LDFLAGS"
7008 motif_libraries="$ac_cv_motif_libraries"
7011 # Provide an easier way to link
7013 if test "$motif_includes" = "none" -o "$motif_libraries" = "none"; then
7019 if test "$with_motif" != "no"; then
7020 if test "$motif_libraries" = ""; then
7021 link_motif="-lXm -lXt"
7022 MOTIF_LIBS="-lXm -lXt"
7024 link_motif="-L$motif_libraries -lXm -lXt"
7025 MOTIF_LIBS="-L$motif_libraries -lXm -lXt"
7027 if test "$motif_includes" != ""; then
7028 include_motif="-I$motif_includes"
7029 MOTIF_INCLUDES="-I$motif_includes"
7031 LIBS="$LIBS $MOTIF_LIBS"
7032 INCLUDES="$INCLUDES $MOTIF_INCLUDES"
7033 cat >> confdefs.h <<\EOF
7044 motif_libraries_result="$motif_libraries"
7045 motif_includes_result="$motif_includes"
7046 test "$motif_libraries_result" = "" && motif_libraries_result="in default path"
7047 test "$motif_includes_result" = "" && motif_includes_result="in default path"
7048 test "$motif_libraries_result" = "none" && motif_libraries_result="(none)"
7049 test "$motif_includes_result" = "none" && motif_includes_result="(none)"
7050 echo "$ac_t""libraries $motif_libraries_result, headers $motif_includes_result" 1>&6
7053 if test "$motif_libraries" != "none"; then
7054 if test "$motif_includes" != "none"; then
7055 GMXLIB_LIBOBJS="${GMXLIB_LIBOBJS} mgmx.lo widget.lo"
7058 echo "configure: warning: Sorry, we need both Motif/Lesstif libraries and includes. Disabling." 1>&2
7062 if test "$no_x" != "yes"; then
7063 LIBS="$X_LIBS $LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
7064 INCLUDES="$INCLUDES $X_CFLAGS $MOTIF_CFLAGS"
7087 # And collect the f77 libs to the linker - on Solaris, f77 stuff must go first,
7088 # and we need -L/usr/ucblib to find libucb... (stupid OS)
7089 # On e.g. ibm the mass libraries must come before -lm...
7090 case "${host_cpu}-${host_os}" in
7093 LDFLAGS="$LDFLAGS -L/usr/ucblib"
7095 *) LIBS="$LIBS $FLIBS" ;;
7105 ########################################################################
7106 # Checks for header files and types
7107 ########################################################################
7109 for ac_hdr in limits.h malloc.h strings.h unistd.h
7111 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7112 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7113 echo "configure:7114: checking for $ac_hdr" >&5
7114 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7115 echo $ac_n "(cached) $ac_c" 1>&6
7117 cat > conftest.$ac_ext <<EOF
7118 #line 7119 "configure"
7119 #include "confdefs.h"
7122 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7123 { (eval echo configure:7124: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7124 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7125 if test -z "$ac_err"; then
7127 eval "ac_cv_header_$ac_safe=yes"
7130 echo "configure: failed program was:" >&5
7131 cat conftest.$ac_ext >&5
7133 eval "ac_cv_header_$ac_safe=no"
7137 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7138 echo "$ac_t""yes" 1>&6
7139 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7140 cat >> confdefs.h <<EOF
7141 #define $ac_tr_hdr 1
7145 echo "$ac_t""no" 1>&6
7146 { echo "configure: error: Include headers not found" 1>&2; exit 1; }
7150 for ac_hdr in unistd.h
7152 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7153 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7154 echo "configure:7155: checking for $ac_hdr" >&5
7155 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7156 echo $ac_n "(cached) $ac_c" 1>&6
7158 cat > conftest.$ac_ext <<EOF
7159 #line 7160 "configure"
7160 #include "confdefs.h"
7163 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7164 { (eval echo configure:7165: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7165 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7166 if test -z "$ac_err"; then
7168 eval "ac_cv_header_$ac_safe=yes"
7171 echo "configure: failed program was:" >&5
7172 cat conftest.$ac_ext >&5
7174 eval "ac_cv_header_$ac_safe=no"
7178 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7179 echo "$ac_t""yes" 1>&6
7180 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7181 cat >> confdefs.h <<EOF
7182 #define $ac_tr_hdr 1
7186 echo "$ac_t""no" 1>&6
7192 # Checks for typedefs, structures, and compiler characteristics.
7193 echo $ac_n "checking for working const""... $ac_c" 1>&6
7194 echo "configure:7195: checking for working const" >&5
7195 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
7196 echo $ac_n "(cached) $ac_c" 1>&6
7198 cat > conftest.$ac_ext <<EOF
7199 #line 7200 "configure"
7200 #include "confdefs.h"
7204 /* Ultrix mips cc rejects this. */
7205 typedef int charset[2]; const charset x;
7206 /* SunOS 4.1.1 cc rejects this. */
7207 char const *const *ccp;
7209 /* NEC SVR4.0.2 mips cc rejects this. */
7210 struct point {int x, y;};
7211 static struct point const zero = {0,0};
7212 /* AIX XL C 1.02.0.0 rejects this.
7213 It does not let you subtract one const X* pointer from another in an arm
7214 of an if-expression whose if-part is not a constant expression */
7215 const char *g = "string";
7216 ccp = &g + (g ? g-g : 0);
7217 /* HPUX 7.0 cc rejects these. */
7220 ccp = (char const *const *) p;
7221 { /* SCO 3.2v4 cc rejects this. */
7223 char const *s = 0 ? (char *) 0 : (char const *) 0;
7227 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7229 const int *foo = &x[0];
7232 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7233 typedef const int *iptr;
7237 { /* AIX XL C 1.02.0.0 rejects this saying
7238 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7239 struct s { int j; const int *ap[3]; };
7240 struct s *b; b->j = 5;
7242 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7248 if { (eval echo configure:7249: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7252 echo "configure: failed program was:" >&5
7253 cat conftest.$ac_ext >&5
7260 echo "$ac_t""$ac_cv_c_const" 1>&6
7261 if test $ac_cv_c_const = no; then
7262 cat >> confdefs.h <<\EOF
7268 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
7269 echo "configure:7270: checking for ANSI C header files" >&5
7270 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
7271 echo $ac_n "(cached) $ac_c" 1>&6
7273 cat > conftest.$ac_ext <<EOF
7274 #line 7275 "configure"
7275 #include "confdefs.h"
7281 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7282 { (eval echo configure:7283: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7283 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7284 if test -z "$ac_err"; then
7286 ac_cv_header_stdc=yes
7289 echo "configure: failed program was:" >&5
7290 cat conftest.$ac_ext >&5
7292 ac_cv_header_stdc=no
7296 if test $ac_cv_header_stdc = yes; then
7297 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7298 cat > conftest.$ac_ext <<EOF
7299 #line 7300 "configure"
7300 #include "confdefs.h"
7303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7304 egrep "memchr" >/dev/null 2>&1; then
7308 ac_cv_header_stdc=no
7314 if test $ac_cv_header_stdc = yes; then
7315 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7316 cat > conftest.$ac_ext <<EOF
7317 #line 7318 "configure"
7318 #include "confdefs.h"
7321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7322 egrep "free" >/dev/null 2>&1; then
7326 ac_cv_header_stdc=no
7332 if test $ac_cv_header_stdc = yes; then
7333 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7334 if test "$cross_compiling" = yes; then
7337 cat > conftest.$ac_ext <<EOF
7338 #line 7339 "configure"
7339 #include "confdefs.h"
7341 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7342 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7343 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7344 int main () { int i; for (i = 0; i < 256; i++)
7345 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
7349 if { (eval echo configure:7350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7353 echo "configure: failed program was:" >&5
7354 cat conftest.$ac_ext >&5
7356 ac_cv_header_stdc=no
7364 echo "$ac_t""$ac_cv_header_stdc" 1>&6
7365 if test $ac_cv_header_stdc = yes; then
7366 cat >> confdefs.h <<\EOF
7367 #define STDC_HEADERS 1
7372 echo $ac_n "checking for size_t""... $ac_c" 1>&6
7373 echo "configure:7374: checking for size_t" >&5
7374 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
7375 echo $ac_n "(cached) $ac_c" 1>&6
7377 cat > conftest.$ac_ext <<EOF
7378 #line 7379 "configure"
7379 #include "confdefs.h"
7380 #include <sys/types.h>
7386 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7387 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
7389 ac_cv_type_size_t=yes
7392 ac_cv_type_size_t=no
7397 echo "$ac_t""$ac_cv_type_size_t" 1>&6
7398 if test $ac_cv_type_size_t = no; then
7399 cat >> confdefs.h <<\EOF
7400 #define size_t unsigned
7405 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
7406 echo "configure:7407: checking whether struct tm is in sys/time.h or time.h" >&5
7407 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
7408 echo $ac_n "(cached) $ac_c" 1>&6
7410 cat > conftest.$ac_ext <<EOF
7411 #line 7412 "configure"
7412 #include "confdefs.h"
7413 #include <sys/types.h>
7416 struct tm *tp; tp->tm_sec;
7419 if { (eval echo configure:7420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7421 ac_cv_struct_tm=time.h
7423 echo "configure: failed program was:" >&5
7424 cat conftest.$ac_ext >&5
7426 ac_cv_struct_tm=sys/time.h
7431 echo "$ac_t""$ac_cv_struct_tm" 1>&6
7432 if test $ac_cv_struct_tm = sys/time.h; then
7433 cat >> confdefs.h <<\EOF
7434 #define TM_IN_SYS_TIME 1
7439 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
7440 echo "configure:7441: checking for uid_t in sys/types.h" >&5
7441 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
7442 echo $ac_n "(cached) $ac_c" 1>&6
7444 cat > conftest.$ac_ext <<EOF
7445 #line 7446 "configure"
7446 #include "confdefs.h"
7447 #include <sys/types.h>
7449 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7450 egrep "uid_t" >/dev/null 2>&1; then
7452 ac_cv_type_uid_t=yes
7461 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
7462 if test $ac_cv_type_uid_t = no; then
7463 cat >> confdefs.h <<\EOF
7467 cat >> confdefs.h <<\EOF
7473 echo $ac_n "checking for inline""... $ac_c" 1>&6
7474 echo "configure:7475: checking for inline" >&5
7475 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
7476 echo $ac_n "(cached) $ac_c" 1>&6
7479 for ac_kw in inline __inline__ __inline; do
7480 cat > conftest.$ac_ext <<EOF
7481 #line 7482 "configure"
7482 #include "confdefs.h"
7488 if { (eval echo configure:7489: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7490 ac_cv_c_inline=$ac_kw; break
7492 echo "configure: failed program was:" >&5
7493 cat conftest.$ac_ext >&5
7500 echo "$ac_t""$ac_cv_c_inline" 1>&6
7501 case "$ac_cv_c_inline" in
7503 no) cat >> confdefs.h <<\EOF
7507 *) cat >> confdefs.h <<EOF
7508 #define inline $ac_cv_c_inline
7525 ########################################################################
7526 # Process vectorization and prefetch options for inner loops
7527 ########################################################################
7528 # check which loops to vectorize
7529 list_of_vectorized_sqrt=""
7530 if test "$enable_vectorized_sqrt" != "no"; then
7531 if test "$enable_vectorized_sqrt" = "yes" -o "$enable_vectorized_sqrt" = "all" ; then
7532 enable_vectorized_sqrt="normal,solvent,water,water-water"
7534 if echo $enable_vectorized_sqrt | grep "normal" >/dev/null; then
7535 list_of_vectorized_sqrt="normal "
7536 cat >> confdefs.h <<\EOF
7537 #define VECTORIZE_INVSQRT
7541 if echo $enable_vectorized_sqrt | grep "solvent" >/dev/null; then
7542 list_of_vectorized_sqrt="${list_of_vectorized_sqrt}solvent "
7543 cat >> confdefs.h <<\EOF
7544 #define VECTORIZE_INVSQRT_S
7548 if echo $enable_vectorized_sqrt | sed 's/water-water//' | grep "water" >/dev/null; then
7549 list_of_vectorized_sqrt="${list_of_vectorized_sqrt}water "
7550 cat >> confdefs.h <<\EOF
7551 #define VECTORIZE_INVSQRT_W
7555 if echo $enable_vectorized_sqrt | grep "water-water" >/dev/null; then
7556 list_of_vectorized_sqrt="${list_of_vectorized_sqrt}water-water "
7557 cat >> confdefs.h <<\EOF
7558 #define VECTORIZE_INVSQRT_WW
7563 if test -z "$list_of_vectorized_sqrt"; then
7564 list_of_vectorized_sqrt="no"
7568 # check loops to prefetch coordinates in
7569 list_of_prefetch_x=""
7570 if test "$enable_prefetch_x" != "no"; then
7571 if test "$enable_prefetch_x" = "yes" -o "$enable_prefetch_x" = "all"; then
7572 enable_prefetch_x="normal,solvent,water,water-water"
7574 if echo $enable_prefetch_x | grep "normal" >/dev/null; then
7575 list_of_prefetch_x="normal "
7576 cat >> confdefs.h <<\EOF
7581 if echo $enable_prefetch_x | grep "solvent" >/dev/null; then
7582 list_of_prefetch_x="${list_of_prefetch_x}solvent "
7583 cat >> confdefs.h <<\EOF
7584 #define PREFETCH_X_S
7588 if echo $enable_prefetch_x | sed 's/water-water//' | grep "water" >/dev/null; then
7589 list_of_prefetch_x="${list_of_prefetch_x}water "
7590 cat >> confdefs.h <<\EOF
7591 #define PREFETCH_X_W
7595 if echo $enable_prefetch_x | grep "water-water" >/dev/null; then
7596 list_of_prefetch_x="${list_of_prefetch_x}water-water "
7597 cat >> confdefs.h <<\EOF
7598 #define PREFETCH_X_WW
7603 if test -z "$list_of_prefetch_x"; then
7604 list_of_prefetch_x="no"
7608 # check loops to prefetch forces in
7609 list_of_prefetch_f=""
7610 if test "$enable_prefetch_f" != "no"; then
7611 if test "$enable_prefetch_f" = "yes" -o "$enable_prefetch_f" = "all"; then
7612 enable_prefetch_f="normal,solvent,water,water-water"
7614 if echo $enable_prefetch_f | grep "normal" >/dev/null; then
7615 list_of_prefetch_f="normal "
7616 cat >> confdefs.h <<\EOF
7621 if echo $enable_prefetch_f | grep "solvent" >/dev/null; then
7622 list_of_prefetch_f="${list_of_prefetch_f}solvent "
7623 cat >> confdefs.h <<\EOF
7624 #define PREFETCH_F_S
7628 if echo $enable_prefetch_f | sed 's/water-water//' | grep "water"; then
7629 list_of_prefetch_f="${list_of_prefetch_f}water "
7630 cat >> confdefs.h <<\EOF
7631 #define PREFETCH_F_W
7635 if echo $enable_prefetch_f | grep "water-water" >/dev/null; then
7636 list_of_prefetch_f="${list_of_prefetch_f}water-water "
7637 cat >> confdefs.h <<\EOF
7638 #define PREFETCH_F_WW
7643 if test -z "$list_of_prefetch_f"; then
7644 list_of_prefetch_f="no"
7654 ########################################################################
7655 # Final output stage
7656 ########################################################################
7657 ASFLAGS="$ASFLAGS $CFLAGS"
7661 # should be automatic, but doesnt seem to be?
7665 # To tell libraries apart, we use four versions of the name. For instance, libgmx:
7666 # libgmx single prec, no mpi.
7667 # libgmx_d double prec, no mpi.
7668 # libgmx_mpi single prec, mpi.
7669 # libgmx_mpi_d double prec, mpi.
7670 # However, the non-suffixed names are linked to the _mpi and/or _d suffixed
7671 # ones upon installation if that is the only version available.
7673 if test "$enable_mpi" = "yes"; then
7676 if test "$enable_float" = "no"; then
7677 LIBSUFFIX="${LIBSUFFIX}_d"
7681 # Unless the user has explicitly requested a prefix/suffix/transform, we
7682 # use _d on double precision files. Don't add anything for mpi, but at the
7683 # end we tell the user it is possible and smart to do in some cases!
7684 if test "$program_transform_name" = "s,x,x,"; then
7685 name_transform_provided=no;
7686 if test "$enable_float" = "no"; then
7687 program_transform_name="s,\$\$,_d,"
7690 name_transform_provided=yes;
7693 # Set exec-prefix from the architecture and cpu.
7694 if test "$exec_prefix" = "NONE"; then
7695 arch_exec_prefix=yes;
7696 if test -n "$gmxcpu"; then
7697 exec_prefix="\${prefix}/${host}/${gmxcpu}"
7699 exec_prefix="\${prefix}/${host}"
7706 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7708 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7709 # Let make expand exec_prefix.
7710 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7712 # Any assignment to VPATH causes Sun make to only execute
7713 # the first set of double-colon rules, so remove it if not needed.
7714 # If there is a colon in the path, we need to keep it.
7715 if test "x$srcdir" = x.; then
7716 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
7719 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7721 DEFS=-DHAVE_CONFIG_H
7723 # Without the "./", some shells look in PATH for config.status.
7724 : ${CONFIG_STATUS=./config.status}
7726 echo creating $CONFIG_STATUS
7727 rm -f $CONFIG_STATUS
7728 cat > $CONFIG_STATUS <<EOF
7730 # Generated automatically by configure.
7731 # Run this file to recreate the current configuration.
7732 # This directory was configured as follows,
7733 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7735 # $0 $ac_configure_args
7737 # Compiler output produced by configure, useful for debugging
7738 # configure, is in ./config.log if it exists.
7740 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7743 case "\$ac_option" in
7744 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7745 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7746 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7747 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7748 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7750 -help | --help | --hel | --he | --h)
7751 echo "\$ac_cs_usage"; exit 0 ;;
7752 *) echo "\$ac_cs_usage"; exit 1 ;;
7756 ac_given_srcdir=$srcdir
7757 ac_given_INSTALL="$INSTALL"
7759 trap 'rm -fr `echo "Makefile include/Makefile include/types/Makefile src/Makefile
7760 src/gmxlib/Makefile src/mdlib/Makefile src/kernel/Makefile
7761 src/tools/Makefile src/ngmx/Makefile src/contrib/Makefile
7762 scripts/Makefile admin/Makefile share/Makefile share/tutor/Makefile
7763 share/tutor/gmxdemo/Makefile share/tutor/nmr1/Makefile
7764 share/tutor/nmr2/Makefile share/tutor/water/Makefile
7765 share/tutor/speptide/Makefile share/template/Makefile
7766 share/top/Makefile share/html/Makefile share/html/images/Makefile
7767 share/html/online/Makefile man/Makefile man/man1/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7769 cat >> $CONFIG_STATUS <<EOF
7771 # Protect against being on the right side of a sed subst in config.status.
7772 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7773 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7777 s%@CFLAGS@%$CFLAGS%g
7778 s%@CPPFLAGS@%$CPPFLAGS%g
7779 s%@CXXFLAGS@%$CXXFLAGS%g
7780 s%@FFLAGS@%$FFLAGS%g
7782 s%@LDFLAGS@%$LDFLAGS%g
7784 s%@exec_prefix@%$exec_prefix%g
7785 s%@prefix@%$prefix%g
7786 s%@program_transform_name@%$program_transform_name%g
7787 s%@bindir@%$bindir%g
7788 s%@sbindir@%$sbindir%g
7789 s%@libexecdir@%$libexecdir%g
7790 s%@datadir@%$datadir%g
7791 s%@sysconfdir@%$sysconfdir%g
7792 s%@sharedstatedir@%$sharedstatedir%g
7793 s%@localstatedir@%$localstatedir%g
7794 s%@libdir@%$libdir%g
7795 s%@includedir@%$includedir%g
7796 s%@oldincludedir@%$oldincludedir%g
7797 s%@infodir@%$infodir%g
7798 s%@mandir@%$mandir%g
7800 s%@host_alias@%$host_alias%g
7801 s%@host_cpu@%$host_cpu%g
7802 s%@host_vendor@%$host_vendor%g
7803 s%@host_os@%$host_os%g
7804 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7805 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7806 s%@INSTALL_DATA@%$INSTALL_DATA%g
7807 s%@PACKAGE@%$PACKAGE%g
7808 s%@VERSION@%$VERSION%g
7809 s%@ACLOCAL@%$ACLOCAL%g
7810 s%@AUTOCONF@%$AUTOCONF%g
7811 s%@AUTOMAKE@%$AUTOMAKE%g
7812 s%@AUTOHEADER@%$AUTOHEADER%g
7813 s%@MAKEINFO@%$MAKEINFO%g
7815 s%@install_sh@%$install_sh%g
7816 s%@INSTALL_STRIP_PROGRAM@%$INSTALL_STRIP_PROGRAM%g
7818 s%@SET_MAKE@%$SET_MAKE%g
7819 s%@AMDEP_TRUE@%$AMDEP_TRUE%g
7820 s%@AMDEP_FALSE@%$AMDEP_FALSE%g
7821 s%@AMDEPBACKSLASH@%$AMDEPBACKSLASH%g
7822 s%@DEPDIR@%$DEPDIR%g
7823 s%@SHARED_VERSION_INFO@%$SHARED_VERSION_INFO%g
7827 s%@_am_include@%$_am_include%g
7828 s%@_am_quote@%$_am_quote%g
7829 s%@CCDEPMODE@%$CCDEPMODE%g
7830 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
7833 s%@GNU_CC_TRUE@%$GNU_CC_TRUE%g
7834 s%@GNU_CC_FALSE@%$GNU_CC_FALSE%g
7837 s%@build_alias@%$build_alias%g
7838 s%@build_cpu@%$build_cpu%g
7839 s%@build_vendor@%$build_vendor%g
7840 s%@build_os@%$build_os%g
7842 s%@OBJEXT@%$OBJEXT%g
7843 s%@EXEEXT@%$EXEEXT%g
7844 s%@RANLIB@%$RANLIB%g
7846 s%@LIBTOOL@%$LIBTOOL%g
7847 s%@LIBOBJS@%$LIBOBJS%g
7848 s%@X_CFLAGS@%$X_CFLAGS%g
7849 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
7850 s%@X_LIBS@%$X_LIBS%g
7851 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
7852 s%@USE_X11_TRUE@%$USE_X11_TRUE%g
7853 s%@USE_X11_FALSE@%$USE_X11_FALSE%g
7854 s%@ASFLAGS@%$ASFLAGS%g
7856 s%@INCLUDES@%$INCLUDES%g
7857 s%@GMXLIB_LIBOBJS@%$GMXLIB_LIBOBJS%g
7858 s%@MDLIB_LIBOBJS@%$MDLIB_LIBOBJS%g
7859 s%@LIBSUFFIX@%$LIBSUFFIX%g
7864 cat >> $CONFIG_STATUS <<\EOF
7866 # Split the substitutions into bite-sized pieces for seds with
7867 # small command number limits, like on Digital OSF/1 and HP-UX.
7868 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7869 ac_file=1 # Number of current file.
7870 ac_beg=1 # First line for current file.
7871 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7874 while $ac_more_lines; do
7875 if test $ac_beg -gt 1; then
7876 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7878 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7880 if test ! -s conftest.s$ac_file; then
7882 rm -f conftest.s$ac_file
7884 if test -z "$ac_sed_cmds"; then
7885 ac_sed_cmds="sed -f conftest.s$ac_file"
7887 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7889 ac_file=`expr $ac_file + 1`
7891 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7894 if test -z "$ac_sed_cmds"; then
7899 cat >> $CONFIG_STATUS <<EOF
7901 CONFIG_FILES=\${CONFIG_FILES-"Makefile include/Makefile include/types/Makefile src/Makefile
7902 src/gmxlib/Makefile src/mdlib/Makefile src/kernel/Makefile
7903 src/tools/Makefile src/ngmx/Makefile src/contrib/Makefile
7904 scripts/Makefile admin/Makefile share/Makefile share/tutor/Makefile
7905 share/tutor/gmxdemo/Makefile share/tutor/nmr1/Makefile
7906 share/tutor/nmr2/Makefile share/tutor/water/Makefile
7907 share/tutor/speptide/Makefile share/template/Makefile
7908 share/top/Makefile share/html/Makefile share/html/images/Makefile
7909 share/html/online/Makefile man/Makefile man/man1/Makefile"}
7911 cat >> $CONFIG_STATUS <<\EOF
7912 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7913 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7915 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7916 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7917 *) ac_file_in="${ac_file}.in" ;;
7920 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7922 # Remove last slash and all that follows it. Not all systems have dirname.
7923 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7924 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7925 # The file is in a subdirectory.
7926 test ! -d "$ac_dir" && mkdir "$ac_dir"
7927 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7928 # A "../" for each directory in $ac_dir_suffix.
7929 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7931 ac_dir_suffix= ac_dots=
7934 case "$ac_given_srcdir" in
7936 if test -z "$ac_dots"; then top_srcdir=.
7937 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7938 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7940 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7941 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7944 case "$ac_given_INSTALL" in
7945 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7946 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7949 echo creating "$ac_file"
7951 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7953 *Makefile*) ac_comsub="1i\\
7954 # $configure_input" ;;
7958 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7960 s%@configure_input@%$configure_input%g
7961 s%@srcdir@%$srcdir%g
7962 s%@top_srcdir@%$top_srcdir%g
7963 s%@INSTALL@%$INSTALL%g
7964 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7968 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7969 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7971 # ac_d sets the value in "#define NAME VALUE" lines.
7972 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7973 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
7976 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7977 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7978 ac_uB='\([ ]\)%\1#\2define\3'
7981 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7982 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7983 ac_eB='$%\1#\2define\3'
7987 if test "${CONFIG_HEADERS+set}" != set; then
7989 cat >> $CONFIG_STATUS <<EOF
7990 CONFIG_HEADERS="include/config.h"
7992 cat >> $CONFIG_STATUS <<\EOF
7994 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
7995 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7997 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7998 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7999 *) ac_file_in="${ac_file}.in" ;;
8002 echo creating $ac_file
8004 rm -f conftest.frag conftest.in conftest.out
8005 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8006 cat $ac_file_inputs > conftest.in
8010 # Transform confdefs.h into a sed script conftest.vals that substitutes
8011 # the proper values into config.h.in to produce config.h. And first:
8012 # Protect against being on the right side of a sed subst in config.status.
8013 # Protect against being in an unquoted here document in config.status.
8015 cat > conftest.hdr <<\EOF
8018 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8022 sed -n -f conftest.hdr confdefs.h > conftest.vals
8025 # This sed command replaces #undef with comments. This is necessary, for
8026 # example, in the case of _POSIX_SOURCE, which is predefined and required
8027 # on some systems where configure will not decide to define it.
8028 cat >> conftest.vals <<\EOF
8029 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8032 # Break up conftest.vals because some shells have a limit on
8033 # the size of here documents, and old seds have small limits too.
8038 ac_lines=`grep -c . conftest.vals`
8039 # grep -c gives empty output for an empty file on some AIX systems.
8040 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
8041 # Write a limited-size here document to conftest.frag.
8042 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
8043 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
8045 sed -f conftest.frag conftest.in > conftest.out
8047 mv conftest.out conftest.in
8049 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
8051 mv conftest.tail conftest.vals
8055 cat >> $CONFIG_STATUS <<\EOF
8056 rm -f conftest.frag conftest.h
8057 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
8058 cat conftest.in >> conftest.h
8060 if cmp -s $ac_file conftest.h 2>/dev/null; then
8061 echo "$ac_file is unchanged"
8064 # Remove last slash and all that follows it. Not all systems have dirname.
8065 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8066 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8067 # The file is in a subdirectory.
8068 test ! -d "$ac_dir" && mkdir "$ac_dir"
8071 mv conftest.h $ac_file
8076 cat >> $CONFIG_STATUS <<EOF
8078 for am_file in include/config.h; do
8079 case " $CONFIG_HEADERS " in
8081 echo timestamp > `echo $am_file | sed 's%:.*%%;s%[^/]*$%%'`stamp-h$am_indx
8084 am_indx=\`expr \$am_indx + 1\`
8086 AMDEP_TRUE="$AMDEP_TRUE"
8087 ac_aux_dir="$ac_aux_dir"
8090 cat >> $CONFIG_STATUS <<\EOF
8091 test -z "$CONFIG_HEADERS" || echo timestamp > include/stamp-h
8093 test x"$AMDEP_TRUE" != x"" ||
8094 for mf in $CONFIG_FILES; do
8096 Makefile) dirpart=.;;
8097 */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;;
8100 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
8101 # Extract the definition of DEP_FILES from the Makefile without
8103 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
8104 test -z "$DEPDIR" && continue
8105 # When using ansi2knr, U may be empty or an underscore; expand it
8106 U=`sed -n -e '/^U = / s///p' < "$mf"`
8107 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
8108 # We invoke sed twice because it is the simplest approach to
8109 # changing $(DEPDIR) to its actual value in the expansion.
8110 for file in `sed -n -e '
8111 /^DEP_FILES = .*\\\\$/ {
8120 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
8121 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8122 # Make sure the directory exists.
8123 test -f "$dirpart/$file" && continue
8124 fdir=`echo "$file" | sed -e 's|/[^/]*$||'`
8125 $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1
8126 # echo "creating $dirpart/$file"
8127 echo '# dummy' > "$dirpart/$file"
8134 chmod +x $CONFIG_STATUS
8135 rm -fr confdefs* $ac_clean_files
8136 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
8146 #########################################################
8147 # Echo some important info, to avoid stupid mistakes
8151 echo "GROMACS is ready to compile."
8153 eval "show_path=`echo ${exec_prefix} | sed -e s,NONE,${ac_default_prefix},`"
8155 echo "* Binaries and libraries for this host will be installed under"
8156 echo " ${show_path}"
8157 echo " (You can change it with the --exec-prefix option.)"
8159 if test "$enable_float" = "no" -a "$name_transform_provided" = "no"; then
8161 echo "* You are compiling a double precision version of the package -"
8162 echo " program names will be suffixed with _d to avoid overwriting single"
8163 echo " precision files. You can override this with --program-suffix"
8166 if test "$name_transform_provided" = "no" -a "$enable_mpi" = "yes"; then
8168 echo "* Seems you are compiling with MPI support. You can install the MPI-"
8169 echo " enabled programs with suffixed names to have both MPI and non-MPI"
8170 echo " versions. This is useful when you need a charge queue to run"
8171 echo " MPI-linked programs (common on supercomputers)."
8172 echo " Set a suffix with e.g. --program-suffix=_mpi (or _mpi_d for double)."
8173 echo " You only need MPI for mdrun, so if you already have non-MPI stuff"
8174 echo " installed you can issue make mdrun; make mdrun-install."