1 |
|
#! /bin/sh |
2 |
|
# Guess values for system-dependent variables and create Makefiles. |
3 |
< |
# Generated by GNU Autoconf 2.57 for OOPSE 1.0. |
3 |
> |
# Generated by GNU Autoconf 2.59 for OOPSE 1.0. |
4 |
|
# |
5 |
|
# Report bugs to <gezelter@nd.edu>. |
6 |
|
# |
7 |
< |
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
8 |
< |
# Free Software Foundation, Inc. |
7 |
> |
# Copyright (C) 2003 Free Software Foundation, Inc. |
8 |
|
# This configure script is free software; the Free Software Foundation |
9 |
|
# gives unlimited permission to copy, distribute and modify it. |
10 |
|
## --------------------- ## |
21 |
|
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
22 |
|
set -o posix |
23 |
|
fi |
24 |
+ |
DUALCASE=1; export DUALCASE # for MKS sh |
25 |
|
|
26 |
|
# Support unset when possible. |
27 |
< |
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
27 |
> |
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
28 |
|
as_unset=unset |
29 |
|
else |
30 |
|
as_unset=false |
43 |
|
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
44 |
|
LC_TELEPHONE LC_TIME |
45 |
|
do |
46 |
< |
if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then |
46 |
> |
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
47 |
|
eval $as_var=C; export $as_var |
48 |
|
else |
49 |
|
$as_unset $as_var |
220 |
|
if mkdir -p . 2>/dev/null; then |
221 |
|
as_mkdir_p=: |
222 |
|
else |
223 |
+ |
test -d ./-p && rmdir ./-p |
224 |
|
as_mkdir_p=false |
225 |
|
fi |
226 |
|
|
227 |
|
as_executable_p="test -f" |
228 |
|
|
229 |
|
# Sed expression to map a string onto a valid CPP name. |
230 |
< |
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
230 |
> |
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
231 |
|
|
232 |
|
# Sed expression to map a string onto a valid variable name. |
233 |
< |
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
233 |
> |
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
234 |
|
|
235 |
|
|
236 |
|
# IFS |
312 |
|
# include <unistd.h> |
313 |
|
#endif" |
314 |
|
|
315 |
< |
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS PROGNAME debug build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX OOPSE_TEMPLATE_FLAGS EXTRA_CC_FLAG F90 F90FLAGS ac_ct_F90 PREPFLAG PREPDEFFLAG F90LIBS F90_FUNC F90_FUNC_ MOD F90_WORK_FILES_ARG MODDIRFLAG F90MODINCSPEC INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB YACC LEX LEXLIB LEX_OUTPUT_ROOT AR mpi_dir MPI_LIBDIR MPI_INC MPI_LIB MPIF77 MPIF90 MPILIBS MPI_F90_MODS MPIMODLIBNAME EGREP CPP SPRNG_LIBDIR SPRNG_LIB SPRNG_INC HAVE_SPRNG MKL_LIBDIR MKL_LIB MKL_INC HAVE_MKL BATEXT MKINSTALLDIRS OOPSE OOPSE_HOME SUBDIRS FFLAGS LIBOBJS LTLIBOBJS' |
315 |
> |
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS PROGNAME debug build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX OOPSE_TEMPLATE_FLAGS EXTRA_CC_FLAG F90 F90FLAGS ac_ct_F90 PREPFLAG PREPDEFFLAG F90LIBS F90_FUNC F90_FUNC_ MOD F90_WORK_FILES_ARG MODDIRFLAG F90MODINCSPEC INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB YACC LEX LEXLIB LEX_OUTPUT_ROOT AR mpi MPI_LIBDIR MPI_INC MPI_F90INC MPI_LIB MPI_F90LIB CPP EGREP SPRNG_LIBDIR SPRNG_LIB SPRNG_INC HAVE_SPRNG MKL_LIBDIR MKL_LIB MKL_INC HAVE_MKL BATEXT MKINSTALLDIRS OOPSE OOPSE_HOME SUBDIRS FFLAGS LIBOBJS LTLIBOBJS' |
316 |
|
ac_subst_files='' |
317 |
|
|
318 |
|
# Initialize some variables set by options. |
671 |
|
|
672 |
|
# Be sure to have absolute paths. |
673 |
|
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
674 |
< |
localstatedir libdir includedir oldincludedir infodir mandir |
674 |
> |
localstatedir libdir includedir oldincludedir infodir mandir |
675 |
|
do |
676 |
|
eval ac_val=$`echo $ac_var` |
677 |
|
case $ac_val in |
711 |
|
# Try the directory containing this script, then its parent. |
712 |
|
ac_confdir=`(dirname "$0") 2>/dev/null || |
713 |
|
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
714 |
< |
X"$0" : 'X\(//\)[^/]' \| \ |
715 |
< |
X"$0" : 'X\(//\)$' \| \ |
716 |
< |
X"$0" : 'X\(/\)' \| \ |
717 |
< |
. : '\(.\)' 2>/dev/null || |
714 |
> |
X"$0" : 'X\(//\)[^/]' \| \ |
715 |
> |
X"$0" : 'X\(//\)$' \| \ |
716 |
> |
X"$0" : 'X\(/\)' \| \ |
717 |
> |
. : '\(.\)' 2>/dev/null || |
718 |
|
echo X"$0" | |
719 |
|
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
720 |
|
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
785 |
|
ac_env_F90FLAGS_value=$F90FLAGS |
786 |
|
ac_cv_env_F90FLAGS_set=${F90FLAGS+set} |
787 |
|
ac_cv_env_F90FLAGS_value=$F90FLAGS |
787 |
– |
ac_env_MPIF77_set=${MPIF77+set} |
788 |
– |
ac_env_MPIF77_value=$MPIF77 |
789 |
– |
ac_cv_env_MPIF77_set=${MPIF77+set} |
790 |
– |
ac_cv_env_MPIF77_value=$MPIF77 |
788 |
|
ac_env_CPP_set=${CPP+set} |
789 |
|
ac_env_CPP_value=$CPP |
790 |
|
ac_cv_env_CPP_set=${CPP+set} |
822 |
|
cat <<_ACEOF |
823 |
|
Installation directories: |
824 |
|
--prefix=PREFIX install architecture-independent files in PREFIX |
825 |
< |
[$ac_default_prefix] |
825 |
> |
[$ac_default_prefix] |
826 |
|
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
827 |
< |
[PREFIX] |
827 |
> |
[PREFIX] |
828 |
|
|
829 |
|
By default, \`make install' will install all the files in |
830 |
|
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
871 |
|
Optional Packages: |
872 |
|
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
873 |
|
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
874 |
< |
--with-mpi_dir=MPIDIR give the path for MPI /usr/local |
874 |
> |
--with-mpi=MPIDIR give the path for MPI /usr/local |
875 |
|
--with-mpi-libdir=dir give the path for MPI-libraries MPI_DIR/lib |
876 |
< |
--with-mpi_inc=dir give the path for MPI-include-files MPI_DIR/include |
880 |
< |
--with-mpi_f90_mods=<dir> |
881 |
< |
Location where MPI f90 modules are installed |
876 |
> |
--with-mpi-inc=dir give the path for MPI-include-files MPI_DIR/include |
877 |
|
--with-sprng_prefix=PREFIX |
878 |
|
Prefix where SPRNG is installed |
879 |
|
--with-sprng-libdir=PREFIX SPRNG library directory |
880 |
|
--with-sprng-include=PREFIX |
881 |
|
SPRNG include directory |
882 |
< |
--with-mkl Do we want MKL will check /usr/local/intel/mkl60 /opt/intel/mkl60 |
882 |
> |
--with-mkl Do we want MKL will check /usr/local/intel/mkl61 /opt/intel/mkl61 |
883 |
|
|
884 |
|
Some influential environment variables: |
885 |
|
CC C compiler command |
892 |
|
CXXFLAGS C++ compiler flags |
893 |
|
F90 Fortran 90 compiler command |
894 |
|
F90FLAGS Fortran 90 compiler flags |
900 |
– |
MPIF77 MPI Fortran compiler command |
895 |
|
CPP C preprocessor |
896 |
|
|
897 |
|
Use these variables to override the choices made by `configure' or to help |
931 |
|
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
932 |
|
ac_top_srcdir=$ac_top_builddir$srcdir ;; |
933 |
|
esac |
940 |
– |
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
941 |
– |
# absolute. |
942 |
– |
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
943 |
– |
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
944 |
– |
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
945 |
– |
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
934 |
|
|
935 |
+ |
# Do not use `cd foo && pwd` to compute absolute paths, because |
936 |
+ |
# the directories may not exist. |
937 |
+ |
case `pwd` in |
938 |
+ |
.) ac_abs_builddir="$ac_dir";; |
939 |
+ |
*) |
940 |
+ |
case "$ac_dir" in |
941 |
+ |
.) ac_abs_builddir=`pwd`;; |
942 |
+ |
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
943 |
+ |
*) ac_abs_builddir=`pwd`/"$ac_dir";; |
944 |
+ |
esac;; |
945 |
+ |
esac |
946 |
+ |
case $ac_abs_builddir in |
947 |
+ |
.) ac_abs_top_builddir=${ac_top_builddir}.;; |
948 |
+ |
*) |
949 |
+ |
case ${ac_top_builddir}. in |
950 |
+ |
.) ac_abs_top_builddir=$ac_abs_builddir;; |
951 |
+ |
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
952 |
+ |
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
953 |
+ |
esac;; |
954 |
+ |
esac |
955 |
+ |
case $ac_abs_builddir in |
956 |
+ |
.) ac_abs_srcdir=$ac_srcdir;; |
957 |
+ |
*) |
958 |
+ |
case $ac_srcdir in |
959 |
+ |
.) ac_abs_srcdir=$ac_abs_builddir;; |
960 |
+ |
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
961 |
+ |
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
962 |
+ |
esac;; |
963 |
+ |
esac |
964 |
+ |
case $ac_abs_builddir in |
965 |
+ |
.) ac_abs_top_srcdir=$ac_top_srcdir;; |
966 |
+ |
*) |
967 |
+ |
case $ac_top_srcdir in |
968 |
+ |
.) ac_abs_top_srcdir=$ac_abs_builddir;; |
969 |
+ |
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
970 |
+ |
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
971 |
+ |
esac;; |
972 |
+ |
esac |
973 |
+ |
|
974 |
|
cd $ac_dir |
975 |
|
# Check for guested configure; otherwise get Cygnus style configure. |
976 |
|
if test -f $ac_srcdir/configure.gnu; then |
980 |
|
echo |
981 |
|
$SHELL $ac_srcdir/configure --help=recursive |
982 |
|
elif test -f $ac_srcdir/configure.ac || |
983 |
< |
test -f $ac_srcdir/configure.in; then |
983 |
> |
test -f $ac_srcdir/configure.in; then |
984 |
|
echo |
985 |
|
$ac_configure --help |
986 |
|
else |
994 |
|
if $ac_init_version; then |
995 |
|
cat <<\_ACEOF |
996 |
|
OOPSE configure 1.0 |
997 |
< |
generated by GNU Autoconf 2.57 |
997 |
> |
generated by GNU Autoconf 2.59 |
998 |
|
|
999 |
< |
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
973 |
< |
Free Software Foundation, Inc. |
999 |
> |
Copyright (C) 2003 Free Software Foundation, Inc. |
1000 |
|
This configure script is free software; the Free Software Foundation |
1001 |
|
gives unlimited permission to copy, distribute and modify it. |
1002 |
|
_ACEOF |
1008 |
|
running configure, to aid debugging if configure makes a mistake. |
1009 |
|
|
1010 |
|
It was created by OOPSE $as_me 1.0, which was |
1011 |
< |
generated by GNU Autoconf 2.57. Invocation command line was |
1011 |
> |
generated by GNU Autoconf 2.59. Invocation command line was |
1012 |
|
|
1013 |
|
$ $0 $@ |
1014 |
|
|
1085 |
|
2) |
1086 |
|
ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
1087 |
|
if test $ac_must_keep_next = true; then |
1088 |
< |
ac_must_keep_next=false # Got value, back to normal. |
1088 |
> |
ac_must_keep_next=false # Got value, back to normal. |
1089 |
|
else |
1090 |
< |
case $ac_arg in |
1091 |
< |
*=* | --config-cache | -C | -disable-* | --disable-* \ |
1092 |
< |
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
1093 |
< |
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
1094 |
< |
| -with-* | --with-* | -without-* | --without-* | --x) |
1095 |
< |
case "$ac_configure_args0 " in |
1096 |
< |
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
1097 |
< |
esac |
1098 |
< |
;; |
1099 |
< |
-* ) ac_must_keep_next=true ;; |
1100 |
< |
esac |
1090 |
> |
case $ac_arg in |
1091 |
> |
*=* | --config-cache | -C | -disable-* | --disable-* \ |
1092 |
> |
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
1093 |
> |
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
1094 |
> |
| -with-* | --with-* | -without-* | --without-* | --x) |
1095 |
> |
case "$ac_configure_args0 " in |
1096 |
> |
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
1097 |
> |
esac |
1098 |
> |
;; |
1099 |
> |
-* ) ac_must_keep_next=true ;; |
1100 |
> |
esac |
1101 |
|
fi |
1102 |
|
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
1103 |
|
# Get rid of the leading space. |
1131 |
|
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
1132 |
|
*ac_space=\ *) |
1133 |
|
sed -n \ |
1134 |
< |
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1135 |
< |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
1134 |
> |
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1135 |
> |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
1136 |
|
;; |
1137 |
|
*) |
1138 |
|
sed -n \ |
1139 |
< |
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
1139 |
> |
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
1140 |
|
;; |
1141 |
|
esac; |
1142 |
|
} |
1165 |
|
for ac_var in $ac_subst_files |
1166 |
|
do |
1167 |
|
eval ac_val=$`echo $ac_var` |
1168 |
< |
echo "$ac_var='"'"'$ac_val'"'"'" |
1168 |
> |
echo "$ac_var='"'"'$ac_val'"'"'" |
1169 |
|
done | sort |
1170 |
|
echo |
1171 |
|
fi |
1184 |
|
echo "$as_me: caught signal $ac_signal" |
1185 |
|
echo "$as_me: exit $exit_status" |
1186 |
|
} >&5 |
1187 |
< |
rm -f core core.* *.core && |
1187 |
> |
rm -f core *.core && |
1188 |
|
rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
1189 |
|
exit $exit_status |
1190 |
|
' 0 |
1264 |
|
# value. |
1265 |
|
ac_cache_corrupted=false |
1266 |
|
for ac_var in `(set) 2>&1 | |
1267 |
< |
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
1267 |
> |
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
1268 |
|
eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1269 |
|
eval ac_new_set=\$ac_env_${ac_var}_set |
1270 |
|
eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
1281 |
|
,);; |
1282 |
|
*) |
1283 |
|
if test "x$ac_old_val" != "x$ac_new_val"; then |
1284 |
< |
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
1284 |
> |
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
1285 |
|
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
1286 |
< |
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
1286 |
> |
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
1287 |
|
echo "$as_me: former value: $ac_old_val" >&2;} |
1288 |
< |
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
1288 |
> |
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
1289 |
|
echo "$as_me: current value: $ac_new_val" >&2;} |
1290 |
< |
ac_cache_corrupted=: |
1290 |
> |
ac_cache_corrupted=: |
1291 |
|
fi;; |
1292 |
|
esac |
1293 |
|
# Pass precious variables to config.status. |
1818 |
|
# $SHELLVAR to the Fortran 95 mangled name. If the SHELLVAR |
1819 |
|
# argument is not supplied, it defaults to NAME. |
1820 |
|
# AC_F95_FUNC |
1821 |
+ |
|
1822 |
+ |
|
1823 |
+ |
|
1824 |
+ |
|
1825 |
|
|
1826 |
|
|
1827 |
|
|
1866 |
|
|
1867 |
|
|
1868 |
|
|
1869 |
+ |
|
1870 |
+ |
|
1871 |
+ |
|
1872 |
+ |
|
1873 |
|
# set program name |
1874 |
|
PROGNAME="oopse" |
1875 |
|
|
2068 |
|
(exit $ac_status); } |
2069 |
|
|
2070 |
|
cat >conftest.$ac_ext <<_ACEOF |
2037 |
– |
#line $LINENO "configure" |
2071 |
|
/* confdefs.h. */ |
2072 |
|
_ACEOF |
2073 |
|
cat confdefs.h >>conftest.$ac_ext |
2087 |
|
# Try to create an executable without -o first, disregard a.out. |
2088 |
|
# It will help us diagnose broken compilers, and finding out an intuition |
2089 |
|
# of exeext. |
2090 |
< |
echo "$as_me:$LINENO: checking for C compiler default output" >&5 |
2091 |
< |
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 |
2090 |
> |
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2091 |
> |
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 |
2092 |
|
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
2093 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
2094 |
|
(eval $ac_link_default) 2>&5 |
2108 |
|
test -f "$ac_file" || continue |
2109 |
|
case $ac_file in |
2110 |
|
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
2111 |
< |
;; |
2111 |
> |
;; |
2112 |
|
conftest.$ac_ext ) |
2113 |
< |
# This is the source file. |
2114 |
< |
;; |
2113 |
> |
# This is the source file. |
2114 |
> |
;; |
2115 |
|
[ab].out ) |
2116 |
< |
# We found the default executable, but exeext='' is most |
2117 |
< |
# certainly right. |
2118 |
< |
break;; |
2116 |
> |
# We found the default executable, but exeext='' is most |
2117 |
> |
# certainly right. |
2118 |
> |
break;; |
2119 |
|
*.* ) |
2120 |
< |
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2121 |
< |
# FIXME: I believe we export ac_cv_exeext for Libtool, |
2122 |
< |
# but it would be cool to find out if it's true. Does anybody |
2123 |
< |
# maintain Libtool? --akim. |
2124 |
< |
export ac_cv_exeext |
2125 |
< |
break;; |
2120 |
> |
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2121 |
> |
# FIXME: I believe we export ac_cv_exeext for Libtool, |
2122 |
> |
# but it would be cool to find out if it's true. Does anybody |
2123 |
> |
# maintain Libtool? --akim. |
2124 |
> |
export ac_cv_exeext |
2125 |
> |
break;; |
2126 |
|
* ) |
2127 |
< |
break;; |
2127 |
> |
break;; |
2128 |
|
esac |
2129 |
|
done |
2130 |
|
else |
2198 |
|
case $ac_file in |
2199 |
|
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
2200 |
|
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2201 |
< |
export ac_cv_exeext |
2202 |
< |
break;; |
2201 |
> |
export ac_cv_exeext |
2202 |
> |
break;; |
2203 |
|
* ) break;; |
2204 |
|
esac |
2205 |
|
done |
2224 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2225 |
|
else |
2226 |
|
cat >conftest.$ac_ext <<_ACEOF |
2194 |
– |
#line $LINENO "configure" |
2227 |
|
/* confdefs.h. */ |
2228 |
|
_ACEOF |
2229 |
|
cat confdefs.h >>conftest.$ac_ext |
2274 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2275 |
|
else |
2276 |
|
cat >conftest.$ac_ext <<_ACEOF |
2245 |
– |
#line $LINENO "configure" |
2277 |
|
/* confdefs.h. */ |
2278 |
|
_ACEOF |
2279 |
|
cat confdefs.h >>conftest.$ac_ext |
2293 |
|
_ACEOF |
2294 |
|
rm -f conftest.$ac_objext |
2295 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2296 |
< |
(eval $ac_compile) 2>&5 |
2296 |
> |
(eval $ac_compile) 2>conftest.er1 |
2297 |
|
ac_status=$? |
2298 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
2299 |
+ |
rm -f conftest.er1 |
2300 |
+ |
cat conftest.err >&5 |
2301 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2302 |
|
(exit $ac_status); } && |
2303 |
< |
{ ac_try='test -s conftest.$ac_objext' |
2303 |
> |
{ ac_try='test -z "$ac_c_werror_flag" |
2304 |
> |
|| test ! -s conftest.err' |
2305 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2306 |
|
(eval $ac_try) 2>&5 |
2307 |
|
ac_status=$? |
2308 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2309 |
+ |
(exit $ac_status); }; } && |
2310 |
+ |
{ ac_try='test -s conftest.$ac_objext' |
2311 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2312 |
+ |
(eval $ac_try) 2>&5 |
2313 |
+ |
ac_status=$? |
2314 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2315 |
|
(exit $ac_status); }; }; then |
2316 |
|
ac_compiler_gnu=yes |
2317 |
|
else |
2320 |
|
|
2321 |
|
ac_compiler_gnu=no |
2322 |
|
fi |
2323 |
< |
rm -f conftest.$ac_objext conftest.$ac_ext |
2323 |
> |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2324 |
|
ac_cv_c_compiler_gnu=$ac_compiler_gnu |
2325 |
|
|
2326 |
|
fi |
2336 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2337 |
|
else |
2338 |
|
cat >conftest.$ac_ext <<_ACEOF |
2298 |
– |
#line $LINENO "configure" |
2339 |
|
/* confdefs.h. */ |
2340 |
|
_ACEOF |
2341 |
|
cat confdefs.h >>conftest.$ac_ext |
2352 |
|
_ACEOF |
2353 |
|
rm -f conftest.$ac_objext |
2354 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2355 |
< |
(eval $ac_compile) 2>&5 |
2355 |
> |
(eval $ac_compile) 2>conftest.er1 |
2356 |
|
ac_status=$? |
2357 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
2358 |
+ |
rm -f conftest.er1 |
2359 |
+ |
cat conftest.err >&5 |
2360 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2361 |
|
(exit $ac_status); } && |
2362 |
< |
{ ac_try='test -s conftest.$ac_objext' |
2362 |
> |
{ ac_try='test -z "$ac_c_werror_flag" |
2363 |
> |
|| test ! -s conftest.err' |
2364 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2365 |
> |
(eval $ac_try) 2>&5 |
2366 |
> |
ac_status=$? |
2367 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2368 |
> |
(exit $ac_status); }; } && |
2369 |
> |
{ ac_try='test -s conftest.$ac_objext' |
2370 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2371 |
|
(eval $ac_try) 2>&5 |
2372 |
|
ac_status=$? |
2379 |
|
|
2380 |
|
ac_cv_prog_cc_g=no |
2381 |
|
fi |
2382 |
< |
rm -f conftest.$ac_objext conftest.$ac_ext |
2382 |
> |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2383 |
|
fi |
2384 |
|
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
2385 |
|
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
2406 |
|
ac_cv_prog_cc_stdc=no |
2407 |
|
ac_save_CC=$CC |
2408 |
|
cat >conftest.$ac_ext <<_ACEOF |
2359 |
– |
#line $LINENO "configure" |
2409 |
|
/* confdefs.h. */ |
2410 |
|
_ACEOF |
2411 |
|
cat confdefs.h >>conftest.$ac_ext |
2433 |
|
va_end (v); |
2434 |
|
return s; |
2435 |
|
} |
2436 |
+ |
|
2437 |
+ |
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
2438 |
+ |
function prototypes and stuff, but not '\xHH' hex character constants. |
2439 |
+ |
These don't provoke an error unfortunately, instead are silently treated |
2440 |
+ |
as 'x'. The following induces an error, until -std1 is added to get |
2441 |
+ |
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
2442 |
+ |
array size at least. It's necessary to write '\x00'==0 to get something |
2443 |
+ |
that's true only with -std1. */ |
2444 |
+ |
int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
2445 |
+ |
|
2446 |
|
int test (int i, double x); |
2447 |
|
struct s1 {int (*f) (int a);}; |
2448 |
|
struct s2 {int (*f) (double a);}; |
2469 |
|
CC="$ac_save_CC $ac_arg" |
2470 |
|
rm -f conftest.$ac_objext |
2471 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2472 |
< |
(eval $ac_compile) 2>&5 |
2472 |
> |
(eval $ac_compile) 2>conftest.er1 |
2473 |
|
ac_status=$? |
2474 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
2475 |
+ |
rm -f conftest.er1 |
2476 |
+ |
cat conftest.err >&5 |
2477 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2478 |
|
(exit $ac_status); } && |
2479 |
< |
{ ac_try='test -s conftest.$ac_objext' |
2479 |
> |
{ ac_try='test -z "$ac_c_werror_flag" |
2480 |
> |
|| test ! -s conftest.err' |
2481 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2482 |
|
(eval $ac_try) 2>&5 |
2483 |
|
ac_status=$? |
2484 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2485 |
+ |
(exit $ac_status); }; } && |
2486 |
+ |
{ ac_try='test -s conftest.$ac_objext' |
2487 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2488 |
+ |
(eval $ac_try) 2>&5 |
2489 |
+ |
ac_status=$? |
2490 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2491 |
|
(exit $ac_status); }; }; then |
2492 |
|
ac_cv_prog_cc_stdc=$ac_arg |
2493 |
|
break |
2496 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
2497 |
|
|
2498 |
|
fi |
2499 |
< |
rm -f conftest.$ac_objext |
2499 |
> |
rm -f conftest.err conftest.$ac_objext |
2500 |
|
done |
2501 |
|
rm -f conftest.$ac_ext conftest.$ac_objext |
2502 |
|
CC=$ac_save_CC |
2524 |
|
_ACEOF |
2525 |
|
rm -f conftest.$ac_objext |
2526 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2527 |
< |
(eval $ac_compile) 2>&5 |
2527 |
> |
(eval $ac_compile) 2>conftest.er1 |
2528 |
|
ac_status=$? |
2529 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
2530 |
+ |
rm -f conftest.er1 |
2531 |
+ |
cat conftest.err >&5 |
2532 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2533 |
|
(exit $ac_status); } && |
2534 |
< |
{ ac_try='test -s conftest.$ac_objext' |
2534 |
> |
{ ac_try='test -z "$ac_c_werror_flag" |
2535 |
> |
|| test ! -s conftest.err' |
2536 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2537 |
|
(eval $ac_try) 2>&5 |
2538 |
|
ac_status=$? |
2539 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2540 |
+ |
(exit $ac_status); }; } && |
2541 |
+ |
{ ac_try='test -s conftest.$ac_objext' |
2542 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2543 |
+ |
(eval $ac_try) 2>&5 |
2544 |
+ |
ac_status=$? |
2545 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2546 |
|
(exit $ac_status); }; }; then |
2547 |
|
for ac_declaration in \ |
2548 |
< |
''\ |
2470 |
< |
'#include <stdlib.h>' \ |
2548 |
> |
'' \ |
2549 |
|
'extern "C" void std::exit (int) throw (); using std::exit;' \ |
2550 |
|
'extern "C" void std::exit (int); using std::exit;' \ |
2551 |
|
'extern "C" void exit (int) throw ();' \ |
2553 |
|
'void exit (int);' |
2554 |
|
do |
2555 |
|
cat >conftest.$ac_ext <<_ACEOF |
2478 |
– |
#line $LINENO "configure" |
2556 |
|
/* confdefs.h. */ |
2557 |
|
_ACEOF |
2558 |
|
cat confdefs.h >>conftest.$ac_ext |
2559 |
|
cat >>conftest.$ac_ext <<_ACEOF |
2560 |
|
/* end confdefs.h. */ |
2484 |
– |
#include <stdlib.h> |
2561 |
|
$ac_declaration |
2562 |
+ |
#include <stdlib.h> |
2563 |
|
int |
2564 |
|
main () |
2565 |
|
{ |
2570 |
|
_ACEOF |
2571 |
|
rm -f conftest.$ac_objext |
2572 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2573 |
< |
(eval $ac_compile) 2>&5 |
2573 |
> |
(eval $ac_compile) 2>conftest.er1 |
2574 |
|
ac_status=$? |
2575 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
2576 |
+ |
rm -f conftest.er1 |
2577 |
+ |
cat conftest.err >&5 |
2578 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2579 |
|
(exit $ac_status); } && |
2580 |
< |
{ ac_try='test -s conftest.$ac_objext' |
2580 |
> |
{ ac_try='test -z "$ac_c_werror_flag" |
2581 |
> |
|| test ! -s conftest.err' |
2582 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2583 |
|
(eval $ac_try) 2>&5 |
2584 |
|
ac_status=$? |
2585 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2586 |
+ |
(exit $ac_status); }; } && |
2587 |
+ |
{ ac_try='test -s conftest.$ac_objext' |
2588 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2589 |
+ |
(eval $ac_try) 2>&5 |
2590 |
+ |
ac_status=$? |
2591 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2592 |
|
(exit $ac_status); }; }; then |
2593 |
|
: |
2594 |
|
else |
2597 |
|
|
2598 |
|
continue |
2599 |
|
fi |
2600 |
< |
rm -f conftest.$ac_objext conftest.$ac_ext |
2600 |
> |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2601 |
|
cat >conftest.$ac_ext <<_ACEOF |
2515 |
– |
#line $LINENO "configure" |
2602 |
|
/* confdefs.h. */ |
2603 |
|
_ACEOF |
2604 |
|
cat confdefs.h >>conftest.$ac_ext |
2615 |
|
_ACEOF |
2616 |
|
rm -f conftest.$ac_objext |
2617 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2618 |
< |
(eval $ac_compile) 2>&5 |
2618 |
> |
(eval $ac_compile) 2>conftest.er1 |
2619 |
|
ac_status=$? |
2620 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
2621 |
+ |
rm -f conftest.er1 |
2622 |
+ |
cat conftest.err >&5 |
2623 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2624 |
|
(exit $ac_status); } && |
2625 |
< |
{ ac_try='test -s conftest.$ac_objext' |
2625 |
> |
{ ac_try='test -z "$ac_c_werror_flag" |
2626 |
> |
|| test ! -s conftest.err' |
2627 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2628 |
|
(eval $ac_try) 2>&5 |
2629 |
|
ac_status=$? |
2630 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2631 |
+ |
(exit $ac_status); }; } && |
2632 |
+ |
{ ac_try='test -s conftest.$ac_objext' |
2633 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2634 |
+ |
(eval $ac_try) 2>&5 |
2635 |
+ |
ac_status=$? |
2636 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2637 |
|
(exit $ac_status); }; }; then |
2638 |
|
break |
2639 |
|
else |
2641 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
2642 |
|
|
2643 |
|
fi |
2644 |
< |
rm -f conftest.$ac_objext conftest.$ac_ext |
2644 |
> |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2645 |
|
done |
2646 |
|
rm -f conftest* |
2647 |
|
if test -n "$ac_declaration"; then |
2655 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
2656 |
|
|
2657 |
|
fi |
2658 |
< |
rm -f conftest.$ac_objext conftest.$ac_ext |
2658 |
> |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2659 |
|
ac_ext=c |
2660 |
|
ac_cpp='$CPP $CPPFLAGS' |
2661 |
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2782 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2783 |
|
else |
2784 |
|
cat >conftest.$ac_ext <<_ACEOF |
2689 |
– |
#line $LINENO "configure" |
2785 |
|
/* confdefs.h. */ |
2786 |
|
_ACEOF |
2787 |
|
cat confdefs.h >>conftest.$ac_ext |
2801 |
|
_ACEOF |
2802 |
|
rm -f conftest.$ac_objext |
2803 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2804 |
< |
(eval $ac_compile) 2>&5 |
2804 |
> |
(eval $ac_compile) 2>conftest.er1 |
2805 |
|
ac_status=$? |
2806 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
2807 |
+ |
rm -f conftest.er1 |
2808 |
+ |
cat conftest.err >&5 |
2809 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2810 |
|
(exit $ac_status); } && |
2811 |
< |
{ ac_try='test -s conftest.$ac_objext' |
2811 |
> |
{ ac_try='test -z "$ac_cxx_werror_flag" |
2812 |
> |
|| test ! -s conftest.err' |
2813 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2814 |
|
(eval $ac_try) 2>&5 |
2815 |
|
ac_status=$? |
2816 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2817 |
+ |
(exit $ac_status); }; } && |
2818 |
+ |
{ ac_try='test -s conftest.$ac_objext' |
2819 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2820 |
+ |
(eval $ac_try) 2>&5 |
2821 |
+ |
ac_status=$? |
2822 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2823 |
|
(exit $ac_status); }; }; then |
2824 |
|
ac_compiler_gnu=yes |
2825 |
|
else |
2828 |
|
|
2829 |
|
ac_compiler_gnu=no |
2830 |
|
fi |
2831 |
< |
rm -f conftest.$ac_objext conftest.$ac_ext |
2831 |
> |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2832 |
|
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
2833 |
|
|
2834 |
|
fi |
2844 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2845 |
|
else |
2846 |
|
cat >conftest.$ac_ext <<_ACEOF |
2742 |
– |
#line $LINENO "configure" |
2847 |
|
/* confdefs.h. */ |
2848 |
|
_ACEOF |
2849 |
|
cat confdefs.h >>conftest.$ac_ext |
2860 |
|
_ACEOF |
2861 |
|
rm -f conftest.$ac_objext |
2862 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2863 |
< |
(eval $ac_compile) 2>&5 |
2863 |
> |
(eval $ac_compile) 2>conftest.er1 |
2864 |
|
ac_status=$? |
2865 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
2866 |
+ |
rm -f conftest.er1 |
2867 |
+ |
cat conftest.err >&5 |
2868 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2869 |
|
(exit $ac_status); } && |
2870 |
< |
{ ac_try='test -s conftest.$ac_objext' |
2870 |
> |
{ ac_try='test -z "$ac_cxx_werror_flag" |
2871 |
> |
|| test ! -s conftest.err' |
2872 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2873 |
|
(eval $ac_try) 2>&5 |
2874 |
|
ac_status=$? |
2875 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2876 |
+ |
(exit $ac_status); }; } && |
2877 |
+ |
{ ac_try='test -s conftest.$ac_objext' |
2878 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2879 |
+ |
(eval $ac_try) 2>&5 |
2880 |
+ |
ac_status=$? |
2881 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2882 |
|
(exit $ac_status); }; }; then |
2883 |
|
ac_cv_prog_cxx_g=yes |
2884 |
|
else |
2887 |
|
|
2888 |
|
ac_cv_prog_cxx_g=no |
2889 |
|
fi |
2890 |
< |
rm -f conftest.$ac_objext conftest.$ac_ext |
2890 |
> |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2891 |
|
fi |
2892 |
|
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
2893 |
|
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
2907 |
|
fi |
2908 |
|
fi |
2909 |
|
for ac_declaration in \ |
2910 |
< |
''\ |
2797 |
< |
'#include <stdlib.h>' \ |
2910 |
> |
'' \ |
2911 |
|
'extern "C" void std::exit (int) throw (); using std::exit;' \ |
2912 |
|
'extern "C" void std::exit (int); using std::exit;' \ |
2913 |
|
'extern "C" void exit (int) throw ();' \ |
2915 |
|
'void exit (int);' |
2916 |
|
do |
2917 |
|
cat >conftest.$ac_ext <<_ACEOF |
2805 |
– |
#line $LINENO "configure" |
2918 |
|
/* confdefs.h. */ |
2919 |
|
_ACEOF |
2920 |
|
cat confdefs.h >>conftest.$ac_ext |
2921 |
|
cat >>conftest.$ac_ext <<_ACEOF |
2922 |
|
/* end confdefs.h. */ |
2811 |
– |
#include <stdlib.h> |
2923 |
|
$ac_declaration |
2924 |
+ |
#include <stdlib.h> |
2925 |
|
int |
2926 |
|
main () |
2927 |
|
{ |
2932 |
|
_ACEOF |
2933 |
|
rm -f conftest.$ac_objext |
2934 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2935 |
< |
(eval $ac_compile) 2>&5 |
2935 |
> |
(eval $ac_compile) 2>conftest.er1 |
2936 |
|
ac_status=$? |
2937 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
2938 |
+ |
rm -f conftest.er1 |
2939 |
+ |
cat conftest.err >&5 |
2940 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2941 |
|
(exit $ac_status); } && |
2942 |
< |
{ ac_try='test -s conftest.$ac_objext' |
2942 |
> |
{ ac_try='test -z "$ac_cxx_werror_flag" |
2943 |
> |
|| test ! -s conftest.err' |
2944 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2945 |
|
(eval $ac_try) 2>&5 |
2946 |
|
ac_status=$? |
2947 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2948 |
+ |
(exit $ac_status); }; } && |
2949 |
+ |
{ ac_try='test -s conftest.$ac_objext' |
2950 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2951 |
+ |
(eval $ac_try) 2>&5 |
2952 |
+ |
ac_status=$? |
2953 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2954 |
|
(exit $ac_status); }; }; then |
2955 |
|
: |
2956 |
|
else |
2959 |
|
|
2960 |
|
continue |
2961 |
|
fi |
2962 |
< |
rm -f conftest.$ac_objext conftest.$ac_ext |
2962 |
> |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2963 |
|
cat >conftest.$ac_ext <<_ACEOF |
2842 |
– |
#line $LINENO "configure" |
2964 |
|
/* confdefs.h. */ |
2965 |
|
_ACEOF |
2966 |
|
cat confdefs.h >>conftest.$ac_ext |
2977 |
|
_ACEOF |
2978 |
|
rm -f conftest.$ac_objext |
2979 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2980 |
< |
(eval $ac_compile) 2>&5 |
2980 |
> |
(eval $ac_compile) 2>conftest.er1 |
2981 |
|
ac_status=$? |
2982 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
2983 |
+ |
rm -f conftest.er1 |
2984 |
+ |
cat conftest.err >&5 |
2985 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2986 |
|
(exit $ac_status); } && |
2987 |
< |
{ ac_try='test -s conftest.$ac_objext' |
2987 |
> |
{ ac_try='test -z "$ac_cxx_werror_flag" |
2988 |
> |
|| test ! -s conftest.err' |
2989 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2990 |
|
(eval $ac_try) 2>&5 |
2991 |
|
ac_status=$? |
2992 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2993 |
+ |
(exit $ac_status); }; } && |
2994 |
+ |
{ ac_try='test -s conftest.$ac_objext' |
2995 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2996 |
+ |
(eval $ac_try) 2>&5 |
2997 |
+ |
ac_status=$? |
2998 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2999 |
|
(exit $ac_status); }; }; then |
3000 |
|
break |
3001 |
|
else |
3003 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
3004 |
|
|
3005 |
|
fi |
3006 |
< |
rm -f conftest.$ac_objext conftest.$ac_ext |
3006 |
> |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3007 |
|
done |
3008 |
|
rm -f conftest* |
3009 |
|
if test -n "$ac_declaration"; then |
3018 |
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3019 |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3020 |
|
|
3021 |
+ |
|
3022 |
|
OOPSE_TEMPLATE_FLAGS="" |
3023 |
|
if test $ac_cv_cxx_compiler_gnu = no; then |
3024 |
|
echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -ptused -no_prelink" >&5 |
3063 |
|
if test -z "`${CXX} -LANG:std -c conftest.cc 2>&1`"; then |
3064 |
|
echo "$as_me:$LINENO: result: yes" >&5 |
3065 |
|
echo "${ECHO_T}yes" >&6 |
3066 |
+ |
|
3067 |
+ |
|
3068 |
|
EXTRA_CC_FLAG=${EXTRA_CC_FLAG}" -LANG:std" |
3069 |
|
else |
3070 |
|
echo "$as_me:$LINENO: result: no" >&5 |
3080 |
|
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3081 |
|
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
3082 |
|
if test -n "$ac_tool_prefix"; then |
3083 |
< |
for ac_prog in ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95 |
3083 |
> |
for ac_prog in ifort ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95 |
3084 |
|
do |
3085 |
|
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
3086 |
|
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
3122 |
|
fi |
3123 |
|
if test -z "$F90"; then |
3124 |
|
ac_ct_F90=$F90 |
3125 |
< |
for ac_prog in ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95 |
3125 |
> |
for ac_prog in ifort ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95 |
3126 |
|
do |
3127 |
|
# Extract the first word of "$ac_prog", so it can be a program name with args. |
3128 |
|
set dummy $ac_prog; ac_word=$2 |
3188 |
|
_ACEOF |
3189 |
|
rm -f conftest.$ac_objext |
3190 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3191 |
< |
(eval $ac_compile) 2>&5 |
3191 |
> |
(eval $ac_compile) 2>conftest.er1 |
3192 |
|
ac_status=$? |
3193 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
3194 |
+ |
rm -f conftest.er1 |
3195 |
+ |
cat conftest.err >&5 |
3196 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3197 |
|
(exit $ac_status); } && |
3198 |
< |
{ ac_try='test -s conftest.$ac_objext' |
3198 |
> |
{ ac_try='test -z "$ac_f90_werror_flag" |
3199 |
> |
|| test ! -s conftest.err' |
3200 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3201 |
|
(eval $ac_try) 2>&5 |
3202 |
|
ac_status=$? |
3203 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3204 |
+ |
(exit $ac_status); }; } && |
3205 |
+ |
{ ac_try='test -s conftest.$ac_objext' |
3206 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3207 |
+ |
(eval $ac_try) 2>&5 |
3208 |
+ |
ac_status=$? |
3209 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3210 |
|
(exit $ac_status); }; }; then |
3211 |
|
ac_compiler_gnu=yes |
3212 |
|
else |
3215 |
|
|
3216 |
|
ac_compiler_gnu=no |
3217 |
|
fi |
3218 |
< |
rm -f conftest.$ac_objext conftest.$ac_ext |
3218 |
> |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3219 |
|
ac_cv_f90_compiler_gnu=$ac_compiler_gnu |
3220 |
|
|
3221 |
|
fi |
3240 |
|
PREPFLAG="" |
3241 |
|
case "${host_cpu}-${host_os}" in |
3242 |
|
|
3243 |
< |
*linux*) if test "$F90" = ifc; then |
3243 |
> |
*linux*) if test "$F90" = ifc -o "$F90" = ifort; then |
3244 |
|
PREPFLAG="-fpp1 " |
3245 |
|
fi;; |
3246 |
|
*aix*) if test "$F90" = xlf90 -o "$F90" = f90; then |
3289 |
|
_ACEOF |
3290 |
|
rm -f conftest.$ac_objext |
3291 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3292 |
< |
(eval $ac_compile) 2>&5 |
3292 |
> |
(eval $ac_compile) 2>conftest.er1 |
3293 |
|
ac_status=$? |
3294 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
3295 |
+ |
rm -f conftest.er1 |
3296 |
+ |
cat conftest.err >&5 |
3297 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3298 |
|
(exit $ac_status); } && |
3299 |
< |
{ ac_try='test -s conftest.$ac_objext' |
3299 |
> |
{ ac_try='test -z "$ac_f90_werror_flag" |
3300 |
> |
|| test ! -s conftest.err' |
3301 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3302 |
|
(eval $ac_try) 2>&5 |
3303 |
|
ac_status=$? |
3304 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3305 |
+ |
(exit $ac_status); }; } && |
3306 |
+ |
{ ac_try='test -s conftest.$ac_objext' |
3307 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3308 |
+ |
(eval $ac_try) 2>&5 |
3309 |
+ |
ac_status=$? |
3310 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3311 |
|
(exit $ac_status); }; }; then |
3312 |
|
prepflagworks=1 |
3313 |
|
else |
3316 |
|
|
3317 |
|
prepflagworks=0 |
3318 |
|
fi |
3319 |
< |
rm -f conftest.$ac_objext conftest.$ac_ext |
3319 |
> |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3320 |
|
|
3321 |
|
F90FLAGS=$ac_save_F90FLAGS |
3322 |
|
ac_ext=$ac_save_ext |
3327 |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3328 |
|
|
3329 |
|
|
3176 |
– |
|
3330 |
|
if test "$prepflagworks" = 1; then |
3331 |
|
echo "$as_me:$LINENO: result: yes" >&5 |
3332 |
|
echo "${ECHO_T}yes" >&6 |
3351 |
|
PREPDEFFLAG="" |
3352 |
|
case "${host_cpu}-${host_os}" in |
3353 |
|
|
3354 |
< |
*linux*) if test "$F90" = ifc; then |
3354 |
> |
*linux*) if test "$F90" = ifc -o "$F90" = ifort; then |
3355 |
|
PREPDEFFLAG=" " |
3356 |
|
fi;; |
3357 |
|
*aix*) if test "$F90" = xlf90 -o "$F90" = f90; then |
3404 |
|
_ACEOF |
3405 |
|
rm -f conftest.$ac_objext |
3406 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3407 |
< |
(eval $ac_compile) 2>&5 |
3407 |
> |
(eval $ac_compile) 2>conftest.er1 |
3408 |
|
ac_status=$? |
3409 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
3410 |
+ |
rm -f conftest.er1 |
3411 |
+ |
cat conftest.err >&5 |
3412 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3413 |
|
(exit $ac_status); } && |
3414 |
< |
{ ac_try='test -s conftest.$ac_objext' |
3414 |
> |
{ ac_try='test -z "$ac_f90_werror_flag" |
3415 |
> |
|| test ! -s conftest.err' |
3416 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3417 |
|
(eval $ac_try) 2>&5 |
3418 |
|
ac_status=$? |
3419 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3420 |
+ |
(exit $ac_status); }; } && |
3421 |
+ |
{ ac_try='test -s conftest.$ac_objext' |
3422 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3423 |
+ |
(eval $ac_try) 2>&5 |
3424 |
+ |
ac_status=$? |
3425 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3426 |
|
(exit $ac_status); }; }; then |
3427 |
|
prepdefflagworks=1 |
3428 |
|
else |
3431 |
|
|
3432 |
|
prepdefflagworks=0 |
3433 |
|
fi |
3434 |
< |
rm -f conftest.$ac_objext conftest.$ac_ext |
3434 |
> |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3435 |
|
|
3436 |
|
F90FLAGS=$ac_save_F90FLAGS |
3437 |
|
ac_ext=$ac_save_ext |
3483 |
|
_ACEOF |
3484 |
|
rm -f conftest.$ac_objext |
3485 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3486 |
< |
(eval $ac_compile) 2>&5 |
3486 |
> |
(eval $ac_compile) 2>conftest.er1 |
3487 |
|
ac_status=$? |
3488 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
3489 |
+ |
rm -f conftest.er1 |
3490 |
+ |
cat conftest.err >&5 |
3491 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3492 |
|
(exit $ac_status); } && |
3493 |
< |
{ ac_try='test -s conftest.$ac_objext' |
3493 |
> |
{ ac_try='test -z "$ac_f90_werror_flag" |
3494 |
> |
|| test ! -s conftest.err' |
3495 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3496 |
|
(eval $ac_try) 2>&5 |
3497 |
|
ac_status=$? |
3498 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3499 |
+ |
(exit $ac_status); }; } && |
3500 |
+ |
{ ac_try='test -s conftest.$ac_objext' |
3501 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3502 |
+ |
(eval $ac_try) 2>&5 |
3503 |
+ |
ac_status=$? |
3504 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3505 |
|
(exit $ac_status); }; }; then |
3506 |
|
ac_cv_prog_f90_v= |
3507 |
|
# Try some options frequently used verbose output |
3527 |
|
ac_save_F90FLAGS=$F90FLAGS |
3528 |
|
F90FLAGS="$F90FLAGS $ac_verb" |
3529 |
|
|
3530 |
< |
(eval echo $as_me:3357: \"$ac_link\") >&5 |
3530 |
> |
(eval echo $as_me:3530: \"$ac_link\") >&5 |
3531 |
|
ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'` |
3532 |
|
echo "$ac_f90_v_output" >&5 |
3533 |
|
F90FLAGS=$ac_save_F90FLAGS |
3569 |
|
{ echo "$as_me:$LINENO: WARNING: compilation failed" >&5 |
3570 |
|
echo "$as_me: WARNING: compilation failed" >&2;} |
3571 |
|
fi |
3572 |
< |
rm -f conftest.$ac_objext conftest.$ac_ext |
3572 |
> |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3573 |
|
|
3574 |
|
fi |
3575 |
|
echo "$as_me:$LINENO: result: $ac_cv_prog_f90_v" >&5 |
3604 |
|
ac_save_F90FLAGS=$F90FLAGS |
3605 |
|
F90FLAGS="$F90FLAGS $ac_cv_prog_f90_v" |
3606 |
|
|
3607 |
< |
(eval echo $as_me:3434: \"$ac_link\") >&5 |
3607 |
> |
(eval echo $as_me:3607: \"$ac_link\") >&5 |
3608 |
|
ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'` |
3609 |
|
echo "$ac_f90_v_output" >&5 |
3610 |
|
F90FLAGS=$ac_save_F90FLAGS |
3786 |
|
_ACEOF |
3787 |
|
rm -f conftest.$ac_objext |
3788 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3789 |
< |
(eval $ac_compile) 2>&5 |
3789 |
> |
(eval $ac_compile) 2>conftest.er1 |
3790 |
|
ac_status=$? |
3791 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
3792 |
+ |
rm -f conftest.er1 |
3793 |
+ |
cat conftest.err >&5 |
3794 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3795 |
|
(exit $ac_status); } && |
3796 |
< |
{ ac_try='test -s conftest.$ac_objext' |
3796 |
> |
{ ac_try='test -z "$ac_f90_werror_flag" |
3797 |
> |
|| test ! -s conftest.err' |
3798 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3799 |
|
(eval $ac_try) 2>&5 |
3800 |
|
ac_status=$? |
3801 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3802 |
+ |
(exit $ac_status); }; } && |
3803 |
+ |
{ ac_try='test -s conftest.$ac_objext' |
3804 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3805 |
+ |
(eval $ac_try) 2>&5 |
3806 |
+ |
ac_status=$? |
3807 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3808 |
|
(exit $ac_status); }; }; then |
3809 |
|
mv conftest.$ac_objext cf90_test.$ac_objext |
3810 |
|
|
3822 |
|
for ac_underscore in "" "_"; do |
3823 |
|
ac_func="$ac_foobar$ac_underscore" |
3824 |
|
cat >conftest.$ac_ext <<_ACEOF |
3642 |
– |
#line $LINENO "configure" |
3825 |
|
/* confdefs.h. */ |
3826 |
|
_ACEOF |
3827 |
|
cat confdefs.h >>conftest.$ac_ext |
3845 |
|
_ACEOF |
3846 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
3847 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
3848 |
< |
(eval $ac_link) 2>&5 |
3848 |
> |
(eval $ac_link) 2>conftest.er1 |
3849 |
|
ac_status=$? |
3850 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
3851 |
+ |
rm -f conftest.er1 |
3852 |
+ |
cat conftest.err >&5 |
3853 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3854 |
|
(exit $ac_status); } && |
3855 |
< |
{ ac_try='test -s conftest$ac_exeext' |
3855 |
> |
{ ac_try='test -z "$ac_c_werror_flag" |
3856 |
> |
|| test ! -s conftest.err' |
3857 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3858 |
|
(eval $ac_try) 2>&5 |
3859 |
|
ac_status=$? |
3860 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3861 |
+ |
(exit $ac_status); }; } && |
3862 |
+ |
{ ac_try='test -s conftest$ac_exeext' |
3863 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3864 |
+ |
(eval $ac_try) 2>&5 |
3865 |
+ |
ac_status=$? |
3866 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3867 |
|
(exit $ac_status); }; }; then |
3868 |
|
ac_success=yes; break 2 |
3869 |
|
else |
3871 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
3872 |
|
|
3873 |
|
fi |
3874 |
< |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
3874 |
> |
rm -f conftest.err conftest.$ac_objext \ |
3875 |
> |
conftest$ac_exeext conftest.$ac_ext |
3876 |
|
done |
3877 |
|
done |
3878 |
|
|
3893 |
|
ac_func="$ac_foo_bar$ac_underscore$ac_extra" |
3894 |
|
|
3895 |
|
cat >conftest.$ac_ext <<_ACEOF |
3703 |
– |
#line $LINENO "configure" |
3896 |
|
/* confdefs.h. */ |
3897 |
|
_ACEOF |
3898 |
|
cat confdefs.h >>conftest.$ac_ext |
3916 |
|
_ACEOF |
3917 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
3918 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
3919 |
< |
(eval $ac_link) 2>&5 |
3919 |
> |
(eval $ac_link) 2>conftest.er1 |
3920 |
|
ac_status=$? |
3921 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
3922 |
+ |
rm -f conftest.er1 |
3923 |
+ |
cat conftest.err >&5 |
3924 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3925 |
|
(exit $ac_status); } && |
3926 |
< |
{ ac_try='test -s conftest$ac_exeext' |
3926 |
> |
{ ac_try='test -z "$ac_c_werror_flag" |
3927 |
> |
|| test ! -s conftest.err' |
3928 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3929 |
|
(eval $ac_try) 2>&5 |
3930 |
|
ac_status=$? |
3931 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3932 |
+ |
(exit $ac_status); }; } && |
3933 |
+ |
{ ac_try='test -s conftest$ac_exeext' |
3934 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3935 |
+ |
(eval $ac_try) 2>&5 |
3936 |
+ |
ac_status=$? |
3937 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3938 |
|
(exit $ac_status); }; }; then |
3939 |
|
ac_success_extra=yes; break |
3940 |
|
else |
3942 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
3943 |
|
|
3944 |
|
fi |
3945 |
< |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
3945 |
> |
rm -f conftest.err conftest.$ac_objext \ |
3946 |
> |
conftest$ac_exeext conftest.$ac_ext |
3947 |
|
done |
3948 |
|
|
3949 |
|
if test "$ac_success_extra" = "yes"; then |
3978 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
3979 |
|
|
3980 |
|
fi |
3981 |
< |
rm -f conftest.$ac_objext conftest.$ac_ext |
3981 |
> |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3982 |
|
ac_ext=f90 |
3983 |
|
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
3984 |
|
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4212 |
|
|
4213 |
|
|
4214 |
|
|
4215 |
+ |
|
4216 |
+ |
|
4217 |
+ |
echo "$as_me:$LINENO: checking whether we are *really* using GNU cc" >&5 |
4218 |
+ |
echo $ECHO_N "checking whether we are *really* using GNU cc... $ECHO_C" >&6 |
4219 |
+ |
if test "${ac_cv_prog_really_gcc+set}" = set; then |
4220 |
+ |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4221 |
+ |
else |
4222 |
+ |
|
4223 |
+ |
cat > conftest.c <<EOF |
4224 |
+ |
#ifdef __GNUC__ |
4225 |
+ |
#ifndef __INTEL_COMPILER |
4226 |
+ |
yes; |
4227 |
+ |
#endif |
4228 |
+ |
#endif |
4229 |
+ |
EOF |
4230 |
+ |
if { ac_try='${CC-cc} -E conftest.c' |
4231 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4232 |
+ |
(eval $ac_try) 2>&5 |
4233 |
+ |
ac_status=$? |
4234 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4235 |
+ |
(exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then |
4236 |
+ |
ac_cv_prog_really_gcc=yes |
4237 |
+ |
else |
4238 |
+ |
ac_cv_prog_really_gcc=no |
4239 |
+ |
fi |
4240 |
+ |
|
4241 |
+ |
fi |
4242 |
+ |
echo "$as_me:$LINENO: result: $ac_cv_prog_really_gcc" >&5 |
4243 |
+ |
echo "${ECHO_T}$ac_cv_prog_really_gcc" >&6 |
4244 |
+ |
if test "$ac_cv_prog_really_gcc" = yes; then |
4245 |
+ |
: |
4246 |
+ |
|
4247 |
+ |
else |
4248 |
+ |
: |
4249 |
+ |
|
4250 |
+ |
fi |
4251 |
+ |
|
4252 |
+ |
|
4253 |
|
# Try to determine "good" native compiler flags if none specified on command |
4254 |
|
# line |
4255 |
|
if test "$ac_test_CFLAGS" != "set"; then |
4289 |
|
fi;; |
4290 |
|
*darwin*) |
4291 |
|
if test "$CC" = xlc -o "$CC" = cc; then |
4292 |
< |
CFLAGS="-O3 -qtune=auto -w" |
4052 |
< |
echo "*******************************************************" |
4053 |
< |
echo "* You have Darwin on an unknown powerpc system. *" |
4054 |
< |
echo "* It is recommended that you use *" |
4055 |
< |
echo "* *" |
4056 |
< |
echo "* CFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w *" |
4057 |
< |
echo "* ^^^ *" |
4058 |
< |
echo "* where xxx is 601, 603, 604, or whatever kind of *" |
4059 |
< |
echo "* PowerPC CPU you have. For more info, man cc. *" |
4060 |
< |
echo "*******************************************************" |
4292 |
> |
CFLAGS="-qthreaded -O5 -Q=20 -qtune=auto -qarch=auto -qunroll=auto -qaltivec" |
4293 |
|
fi;; |
4294 |
|
esac |
4295 |
|
|
4296 |
|
# use default flags for gcc on all systems |
4297 |
< |
if test $ac_cv_c_compiler_gnu = yes; then |
4297 |
> |
if test $ac_cv_prog_really_gcc = yes; then |
4298 |
|
CFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic" |
4299 |
|
fi |
4300 |
|
|
4301 |
|
# test for gcc-specific flags: |
4302 |
< |
if test $ac_cv_c_compiler_gnu = yes; then |
4302 |
> |
if test $ac_cv_prog_really_gcc = yes; then |
4303 |
|
# -malign-double for x86 systems |
4304 |
|
|
4305 |
|
|
4357 |
|
fi |
4358 |
|
|
4359 |
|
CPU_FLAGS="" |
4360 |
< |
if test "$GCC" = "yes"; then |
4360 |
> |
if test $ac_cv_prog_really_gcc = yes; then |
4361 |
|
case "${host_cpu}" in |
4362 |
|
i586*) |
4363 |
|
|
4503 |
|
else |
4504 |
|
|
4505 |
|
cat > conftest.c <<EOF |
4506 |
< |
#ifdef __GNUC__ |
4506 |
> |
#ifdef __GNUC__ && !defined (__INTEL_COMPILER) |
4507 |
|
# if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95) |
4508 |
|
yes; |
4509 |
|
# endif |
4672 |
|
|
4673 |
|
|
4674 |
|
|
4675 |
+ |
|
4676 |
+ |
|
4677 |
+ |
|
4678 |
+ |
echo "$as_me:$LINENO: checking whether we are *really* using GNU c++" >&5 |
4679 |
+ |
echo $ECHO_N "checking whether we are *really* using GNU c++... $ECHO_C" >&6 |
4680 |
+ |
if test "${ac_cv_prog_really_gxx+set}" = set; then |
4681 |
+ |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4682 |
+ |
else |
4683 |
|
|
4684 |
+ |
cat > conftest.cpp <<EOF |
4685 |
+ |
#ifdef __GNUC__ |
4686 |
+ |
#ifndef __INTEL_COMPILER |
4687 |
+ |
yes; |
4688 |
+ |
#endif |
4689 |
+ |
#endif |
4690 |
+ |
EOF |
4691 |
+ |
if { ac_try='${CXX-c++} -E conftest.cpp' |
4692 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4693 |
+ |
(eval $ac_try) 2>&5 |
4694 |
+ |
ac_status=$? |
4695 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4696 |
+ |
(exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then |
4697 |
+ |
ac_cv_prog_really_gxx=yes |
4698 |
+ |
else |
4699 |
+ |
ac_cv_prog_really_gxx=no |
4700 |
+ |
fi |
4701 |
+ |
|
4702 |
+ |
fi |
4703 |
+ |
echo "$as_me:$LINENO: result: $ac_cv_prog_really_gxx" >&5 |
4704 |
+ |
echo "${ECHO_T}$ac_cv_prog_really_gxx" >&6 |
4705 |
+ |
if test "$ac_cv_prog_really_gxx" = yes; then |
4706 |
+ |
: |
4707 |
+ |
|
4708 |
+ |
else |
4709 |
+ |
: |
4710 |
+ |
|
4711 |
+ |
fi |
4712 |
+ |
|
4713 |
+ |
|
4714 |
|
# Try to determine "good" native compiler flags if none specified on command |
4715 |
|
# line |
4716 |
|
if test "$ac_test_CXXFLAGS" != "set"; then |
4741 |
|
fi;; |
4742 |
|
*darwin*) |
4743 |
|
if test "$CXX" = xlC; then |
4744 |
< |
CXXFLAGS="-O3 -qtune=auto -qansialias -w" |
4475 |
< |
echo "*******************************************************" |
4476 |
< |
echo "* You have AIX on an unknown powerpc system. It is *" |
4477 |
< |
echo "* recommended that you use *" |
4478 |
< |
echo "* *" |
4479 |
< |
echo "* CXXFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w *" |
4480 |
< |
echo "* ^^^ *" |
4481 |
< |
echo "* where xxx is 601, 603, 604, or whatever kind of *" |
4482 |
< |
echo "* PowerPC CPU you have. For more info, man cc. *" |
4483 |
< |
echo "*******************************************************" |
4744 |
> |
CXXFLAGS="-qthreaded -O5 -Q=20 -qtune=auto -qarch=auto -qunroll=auto -qaltivec" |
4745 |
|
fi;; |
4746 |
|
esac |
4747 |
|
|
4748 |
|
# use default flags for gcc on all systems |
4749 |
< |
if test $ac_cv_c_compiler_gnu = yes; then |
4749 |
> |
if test $ac_cv_prog_really_gxx = yes; then |
4750 |
|
CXXFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic" |
4751 |
|
fi |
4752 |
|
|
4753 |
|
# test for gcc-specific flags: |
4754 |
< |
if test $ac_cv_c_compiler_gnu = yes; then |
4754 |
> |
if test $ac_cv_prog_really_gxx = yes; then |
4755 |
|
# -malign-double for x86 systems |
4756 |
|
|
4757 |
|
|
4809 |
|
fi |
4810 |
|
|
4811 |
|
CPU_FLAGS="" |
4812 |
< |
if test "$GCC" = "yes"; then |
4812 |
> |
if test $ac_cv_prog_really_gxx = yes; then |
4813 |
|
case "${host_cpu}" in |
4814 |
|
i586*) |
4815 |
|
|
4816 |
< |
echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=pentium" >&5 |
4817 |
< |
echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentium... $ECHO_C" >&6 |
4816 |
> |
echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=pentium" >&5 |
4817 |
> |
echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=pentium... $ECHO_C" >&6 |
4818 |
|
if test "${ac_cpu_pentium+set}" = set; then |
4819 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4820 |
|
else |
4821 |
< |
echo 'void f(){}' > conftest.c |
4822 |
< |
if test -z "`${CC-cc} -mcpu=pentium -c conftest.c 2>&1`"; then |
4821 |
> |
echo 'void f(){}' > conftest.cpp |
4822 |
> |
if test -z "`${CXX-c++} -mcpu=pentium -c conftest.cpp 2>&1`"; then |
4823 |
|
ac_cpu_pentium=yes |
4824 |
|
else |
4825 |
|
ac_cpu_pentium=no |
4948 |
|
elif test "$cputype" = 750; then |
4949 |
|
|
4950 |
|
|
4951 |
< |
echo "$as_me:$LINENO: checking whether we are using gcc 2.95 or later" >&5 |
4952 |
< |
echo $ECHO_N "checking whether we are using gcc 2.95 or later... $ECHO_C" >&6 |
4953 |
< |
if test "${ac_cv_prog_gcc_2_95+set}" = set; then |
4951 |
> |
echo "$as_me:$LINENO: checking whether we are using g++ 2.95 or later" >&5 |
4952 |
> |
echo $ECHO_N "checking whether we are using g++ 2.95 or later... $ECHO_C" >&6 |
4953 |
> |
if test "${ac_cv_prog_gxx_2_95+set}" = set; then |
4954 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4955 |
|
else |
4956 |
|
|
4957 |
< |
cat > conftest.c <<EOF |
4958 |
< |
#ifdef __GNUC__ |
4957 |
> |
cat > conftest.cpp <<EOF |
4958 |
> |
#ifdef __GNUC__ && !defined (__INTEL_COMPILER) |
4959 |
|
# if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95) |
4960 |
|
yes; |
4961 |
|
# endif |
4962 |
|
#endif |
4963 |
|
EOF |
4964 |
< |
if { ac_try='${CC-cc} -E conftest.c' |
4964 |
> |
if { ac_try='${CXX-c++} -E conftest.cpp' |
4965 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4966 |
|
(eval $ac_try) 2>&5 |
4967 |
|
ac_status=$? |
4968 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4969 |
|
(exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then |
4970 |
< |
ac_cv_prog_gcc_2_95=yes |
4970 |
> |
ac_cv_prog_gxx_2_95=yes |
4971 |
|
else |
4972 |
< |
ac_cv_prog_gcc_2_95=no |
4972 |
> |
ac_cv_prog_gxx_2_95=no |
4973 |
|
fi |
4974 |
|
|
4975 |
|
fi |
4976 |
< |
echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_2_95" >&5 |
4977 |
< |
echo "${ECHO_T}$ac_cv_prog_gcc_2_95" >&6 |
4978 |
< |
if test "$ac_cv_prog_gcc_2_95" = yes; then |
4976 |
> |
echo "$as_me:$LINENO: result: $ac_cv_prog_gxx_2_95" >&5 |
4977 |
> |
echo "${ECHO_T}$ac_cv_prog_gxx_2_95" >&6 |
4978 |
> |
if test "$ac_cv_prog_gxx_2_95" = yes; then |
4979 |
|
: |
4980 |
|
|
4981 |
|
|
5132 |
|
F90FLAGS="" |
5133 |
|
case "${host_cpu}-${host_os}" in |
5134 |
|
|
5135 |
< |
*linux*) if test "$F90" = ifc; then |
5135 |
> |
*linux*) if test "$F90" = ifc -o "$F90" = ifort; then |
5136 |
|
F90FLAGS="-O" |
5137 |
|
fi;; |
5138 |
|
rs6000*-aix*) if test "$F90" = xlf90 -o "$F90" = f90; then |
5153 |
|
fi;; |
5154 |
|
*darwin*) |
5155 |
|
if test "$F90" = f90 -o "$F90" = xlf90; then |
5156 |
< |
F90FLAGS="-O3 -qtune=auto -w" |
4896 |
< |
echo "*********************************************************" |
4897 |
< |
echo "* You have Darwin on an unknown powerpc system. It is *" |
4898 |
< |
echo "* recommended that you use *" |
4899 |
< |
echo "* *" |
4900 |
< |
echo "* CXXFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w *" |
4901 |
< |
echo "* ^^^ *" |
4902 |
< |
echo "* where xxx is 601, 603, 604, or whatever kind of *" |
4903 |
< |
echo "* PowerPC CPU you have. For more info, man xlf. *" |
4904 |
< |
echo "*********************************************************" |
5156 |
> |
F90FLAGS="-qthreaded -O5 -qtune=auto -qarch=auto -qunroll=auto" |
5157 |
|
fi;; |
5158 |
|
esac |
5159 |
|
|
5242 |
|
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
5243 |
|
# AFS /usr/afsws/bin/install, which mishandles nonexistent args |
5244 |
|
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
5245 |
+ |
# OS/2's system install, which has a completely different semantic |
5246 |
|
# ./install, which can be erroneously created by make from ./install.sh. |
5247 |
|
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
5248 |
|
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
5259 |
|
case $as_dir/ in |
5260 |
|
./ | .// | /cC/* | \ |
5261 |
|
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
5262 |
+ |
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
5263 |
|
/usr/ucb/* ) ;; |
5264 |
|
*) |
5265 |
|
# OSF1 and SCO ODT 3.0 have their own names for install. |
5267 |
|
# by default. |
5268 |
|
for ac_prog in ginstall scoinst install; do |
5269 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
5270 |
< |
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
5271 |
< |
if test $ac_prog = install && |
5272 |
< |
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
5273 |
< |
# AIX install. It has an incompatible calling convention. |
5274 |
< |
: |
5275 |
< |
elif test $ac_prog = install && |
5276 |
< |
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
5277 |
< |
# program-specific install script used by HP pwplus--don't use. |
5278 |
< |
: |
5279 |
< |
else |
5280 |
< |
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
5281 |
< |
break 3 |
5282 |
< |
fi |
5283 |
< |
fi |
5270 |
> |
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
5271 |
> |
if test $ac_prog = install && |
5272 |
> |
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
5273 |
> |
# AIX install. It has an incompatible calling convention. |
5274 |
> |
: |
5275 |
> |
elif test $ac_prog = install && |
5276 |
> |
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
5277 |
> |
# program-specific install script used by HP pwplus--don't use. |
5278 |
> |
: |
5279 |
> |
else |
5280 |
> |
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
5281 |
> |
break 3 |
5282 |
> |
fi |
5283 |
> |
fi |
5284 |
|
done |
5285 |
|
done |
5286 |
|
;; |
5323 |
|
|
5324 |
|
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
5325 |
|
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
5326 |
< |
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` |
5326 |
> |
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
5327 |
|
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
5328 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5329 |
|
else |
5531 |
|
_ACEOF |
5532 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
5533 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5534 |
< |
(eval $ac_link) 2>&5 |
5534 |
> |
(eval $ac_link) 2>conftest.er1 |
5535 |
|
ac_status=$? |
5536 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
5537 |
+ |
rm -f conftest.er1 |
5538 |
+ |
cat conftest.err >&5 |
5539 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5540 |
|
(exit $ac_status); } && |
5541 |
< |
{ ac_try='test -s conftest$ac_exeext' |
5541 |
> |
{ ac_try='test -z "$ac_f90_werror_flag" |
5542 |
> |
|| test ! -s conftest.err' |
5543 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5544 |
|
(eval $ac_try) 2>&5 |
5545 |
|
ac_status=$? |
5546 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5547 |
+ |
(exit $ac_status); }; } && |
5548 |
+ |
{ ac_try='test -s conftest$ac_exeext' |
5549 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5550 |
+ |
(eval $ac_try) 2>&5 |
5551 |
+ |
ac_status=$? |
5552 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5553 |
|
(exit $ac_status); }; }; then |
5554 |
|
ac_cv_lib_fl_yywrap=yes |
5555 |
|
else |
5558 |
|
|
5559 |
|
ac_cv_lib_fl_yywrap=no |
5560 |
|
fi |
5561 |
< |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
5561 |
> |
rm -f conftest.err conftest.$ac_objext \ |
5562 |
> |
conftest$ac_exeext conftest.$ac_ext |
5563 |
|
LIBS=$ac_check_lib_save_LIBS |
5564 |
|
fi |
5565 |
|
echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5 |
5584 |
|
_ACEOF |
5585 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
5586 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5587 |
< |
(eval $ac_link) 2>&5 |
5587 |
> |
(eval $ac_link) 2>conftest.er1 |
5588 |
|
ac_status=$? |
5589 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
5590 |
+ |
rm -f conftest.er1 |
5591 |
+ |
cat conftest.err >&5 |
5592 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5593 |
|
(exit $ac_status); } && |
5594 |
< |
{ ac_try='test -s conftest$ac_exeext' |
5594 |
> |
{ ac_try='test -z "$ac_f90_werror_flag" |
5595 |
> |
|| test ! -s conftest.err' |
5596 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5597 |
|
(eval $ac_try) 2>&5 |
5598 |
|
ac_status=$? |
5599 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5600 |
+ |
(exit $ac_status); }; } && |
5601 |
+ |
{ ac_try='test -s conftest$ac_exeext' |
5602 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5603 |
+ |
(eval $ac_try) 2>&5 |
5604 |
+ |
ac_status=$? |
5605 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5606 |
|
(exit $ac_status); }; }; then |
5607 |
|
ac_cv_lib_l_yywrap=yes |
5608 |
|
else |
5611 |
|
|
5612 |
|
ac_cv_lib_l_yywrap=no |
5613 |
|
fi |
5614 |
< |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
5614 |
> |
rm -f conftest.err conftest.$ac_objext \ |
5615 |
> |
conftest$ac_exeext conftest.$ac_ext |
5616 |
|
LIBS=$ac_check_lib_save_LIBS |
5617 |
|
fi |
5618 |
|
echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5 |
5674 |
|
_ACEOF |
5675 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
5676 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5677 |
< |
(eval $ac_link) 2>&5 |
5677 |
> |
(eval $ac_link) 2>conftest.er1 |
5678 |
|
ac_status=$? |
5679 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
5680 |
+ |
rm -f conftest.er1 |
5681 |
+ |
cat conftest.err >&5 |
5682 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5683 |
|
(exit $ac_status); } && |
5684 |
< |
{ ac_try='test -s conftest$ac_exeext' |
5684 |
> |
{ ac_try='test -z "$ac_f90_werror_flag" |
5685 |
> |
|| test ! -s conftest.err' |
5686 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5687 |
|
(eval $ac_try) 2>&5 |
5688 |
|
ac_status=$? |
5689 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5690 |
+ |
(exit $ac_status); }; } && |
5691 |
+ |
{ ac_try='test -s conftest$ac_exeext' |
5692 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5693 |
+ |
(eval $ac_try) 2>&5 |
5694 |
+ |
ac_status=$? |
5695 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5696 |
|
(exit $ac_status); }; }; then |
5697 |
|
ac_cv_prog_lex_yytext_pointer=yes |
5698 |
|
else |
5700 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
5701 |
|
|
5702 |
|
fi |
5703 |
< |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
5703 |
> |
rm -f conftest.err conftest.$ac_objext \ |
5704 |
> |
conftest$ac_exeext conftest.$ac_ext |
5705 |
|
LIBS=$ac_save_LIBS |
5706 |
|
rm -f "${LEX_OUTPUT_ROOT}.c" |
5707 |
|
|
5785 |
|
# `set' does not quote correctly, so add quotes (double-quote |
5786 |
|
# substitution turns \\\\ into \\, and sed turns \\ into \). |
5787 |
|
sed -n \ |
5788 |
< |
"s/'/'\\\\''/g; |
5789 |
< |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
5788 |
> |
"s/'/'\\\\''/g; |
5789 |
> |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
5790 |
|
;; |
5791 |
|
*) |
5792 |
|
# `set' quotes correctly as required by POSIX, so do not add quotes. |
5793 |
|
sed -n \ |
5794 |
< |
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
5794 |
> |
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
5795 |
|
;; |
5796 |
|
esac; |
5797 |
|
} | |
5817 |
|
echo "$as_me:$LINENO: checking for mpi-directory" >&5 |
5818 |
|
echo $ECHO_N "checking for mpi-directory... $ECHO_C" >&6 |
5819 |
|
|
5820 |
< |
# Check whether --with-mpi_dir or --without-mpi_dir was given. |
5821 |
< |
if test "${with_mpi_dir+set}" = set; then |
5822 |
< |
withval="$with_mpi_dir" |
5820 |
> |
# Check whether --with-mpi or --without-mpi was given. |
5821 |
> |
if test "${with_mpi+set}" = set; then |
5822 |
> |
withval="$with_mpi" |
5823 |
|
MPI_DIR="$withval" |
5824 |
|
else |
5825 |
|
MPI_DIR="/usr/local" |
5845 |
|
echo "$as_me:$LINENO: checking for mpi-inc-directory" >&5 |
5846 |
|
echo $ECHO_N "checking for mpi-inc-directory... $ECHO_C" >&6 |
5847 |
|
|
5848 |
< |
# Check whether --with-mpi_inc or --without-mpi_inc was given. |
5848 |
> |
# Check whether --with-mpi-inc or --without-mpi-inc was given. |
5849 |
|
if test "${with_mpi_inc+set}" = set; then |
5850 |
|
withval="$with_mpi_inc" |
5851 |
|
MPI_INC="$withval" |
5856 |
|
echo "${ECHO_T}$MPI_INC" >&6 |
5857 |
|
|
5858 |
|
|
5859 |
< |
|
5860 |
< |
echo "$as_me:$LINENO: checking for MPI library" >&5 |
5861 |
< |
echo $ECHO_N "checking for MPI library... $ECHO_C" >&6 |
5862 |
< |
MPI_LIB="" |
5863 |
< |
case "$host" in |
5864 |
< |
*-ibm-aix*) |
5865 |
< |
echo "$as_me:$LINENO: checking whether to use signal-based MPI library" >&5 |
5866 |
< |
echo $ECHO_N "checking whether to use signal-based MPI library... $ECHO_C" >&6 |
5580 |
< |
echo "$as_me:$LINENO: result: $PACX_SIGNAL" >&5 |
5581 |
< |
echo "${ECHO_T}$PACX_SIGNAL" >&6 |
5582 |
< |
if test "x$PACX_SIGNAL" = "xyes" ; then |
5583 |
< |
if test -f "$MPI_LIBDIR/libmpi.a" ; then |
5584 |
< |
MPI_LIB="-lmpi" |
5585 |
< |
elif test -f "$MPI_LIBDIR/libmpi.so" ; then |
5586 |
< |
MPI_LIB="-lmpi" |
5587 |
< |
elif test -f "$MPI_LIBDIR/libmpich.a" ; then |
5588 |
< |
MPI_LIB="-lmpich" |
5589 |
< |
else |
5590 |
< |
{ { echo "$as_me:$LINENO: error: neither libmpi nor libmpich found; check path for MPI package first..." >&5 |
5591 |
< |
echo "$as_me: error: neither libmpi nor libmpich found; check path for MPI package first..." >&2;} |
5592 |
< |
{ (exit 1); exit 1; }; } |
5593 |
< |
fi |
5594 |
< |
else |
5595 |
< |
if test -f "$MPI_LIBDIR/libmpi_r.a" ; then |
5596 |
< |
MPI_LIB="-lmpi_r" |
5597 |
< |
else |
5598 |
< |
{ { echo "$as_me:$LINENO: error: libmpi_r not found; check path for MPI package..." >&5 |
5599 |
< |
echo "$as_me: error: libmpi_r not found; check path for MPI package..." >&2;} |
5600 |
< |
{ (exit 1); exit 1; }; } |
5601 |
< |
fi |
5602 |
< |
fi |
5603 |
< |
echo "$as_me:$LINENO: result: found $MPI_LIB" >&5 |
5604 |
< |
echo "${ECHO_T}found $MPI_LIB" >&6 |
5605 |
< |
;; |
5606 |
< |
*) if test -f "$MPI_LIBDIR/libmpich.a" ; then |
5607 |
< |
MPI_LIB="-lmpich" |
5608 |
< |
elif test -f "$MPI_LIBDIR/libmpi.so" ; then |
5609 |
< |
MPI_LIB="-lmpi" |
5610 |
< |
elif test -f "$MPI_LIBDIR/libmpi.a" ; then |
5611 |
< |
MPI_LIB="-lmpi" |
5612 |
< |
else |
5613 |
< |
{ { echo "$as_me:$LINENO: error: neither libmpi nor libmpich found; check path for MPI package first..." >&5 |
5614 |
< |
echo "$as_me: error: neither libmpi nor libmpich found; check path for MPI package first..." >&2;} |
5615 |
< |
{ (exit 1); exit 1; }; } |
5616 |
< |
fi |
5617 |
< |
echo "$as_me:$LINENO: result: found $MPI_LIB" >&5 |
5618 |
< |
echo "${ECHO_T}found $MPI_LIB" >&6 |
5619 |
< |
;; |
5620 |
< |
esac |
5621 |
< |
|
5622 |
< |
|
5623 |
< |
|
5624 |
< |
|
5625 |
< |
|
5626 |
< |
|
5627 |
< |
|
5628 |
< |
for ac_prog in mpif90 hf90 mpxlf90 mpf90 mpxlf95 mpxlf_r |
5629 |
< |
do |
5630 |
< |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
5631 |
< |
set dummy $ac_prog; ac_word=$2 |
5632 |
< |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5633 |
< |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
5634 |
< |
if test "${ac_cv_prog_MPIF90+set}" = set; then |
5635 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5859 |
> |
echo "$as_me:$LINENO: checking for mpi.h" >&5 |
5860 |
> |
echo $ECHO_N "checking for mpi.h... $ECHO_C" >&6 |
5861 |
> |
HAVE_MPIDOTH_C="no" |
5862 |
> |
echo '#include <mpi.h>' > conftest.cc |
5863 |
> |
if test -z "`${CXX} -I${MPI_INC} -c conftest.cc 2>&1`"; then |
5864 |
> |
echo "$as_me:$LINENO: result: yes" >&5 |
5865 |
> |
echo "${ECHO_T}yes" >&6 |
5866 |
> |
HAVE_MPIDOTH_C="yes" |
5867 |
|
else |
5868 |
< |
if test -n "$MPIF90"; then |
5869 |
< |
ac_cv_prog_MPIF90="$MPIF90" # Let the user override the test. |
5639 |
< |
else |
5640 |
< |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5641 |
< |
for as_dir in $PATH |
5642 |
< |
do |
5643 |
< |
IFS=$as_save_IFS |
5644 |
< |
test -z "$as_dir" && as_dir=. |
5645 |
< |
for ac_exec_ext in '' $ac_executable_extensions; do |
5646 |
< |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5647 |
< |
ac_cv_prog_MPIF90="$ac_prog" |
5648 |
< |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5649 |
< |
break 2 |
5650 |
< |
fi |
5651 |
< |
done |
5652 |
< |
done |
5653 |
< |
|
5868 |
> |
echo "$as_me:$LINENO: result: no! Check MPI include paths" >&5 |
5869 |
> |
echo "${ECHO_T}no! Check MPI include paths" >&6 |
5870 |
|
fi |
5871 |
< |
fi |
5872 |
< |
MPIF90=$ac_cv_prog_MPIF90 |
5873 |
< |
if test -n "$MPIF90"; then |
5874 |
< |
echo "$as_me:$LINENO: result: $MPIF90" >&5 |
5875 |
< |
echo "${ECHO_T}$MPIF90" >&6 |
5871 |
> |
rm -f conftest* |
5872 |
> |
|
5873 |
> |
echo "$as_me:$LINENO: checking whether mpif.h is usable" >&5 |
5874 |
> |
echo $ECHO_N "checking whether mpif.h is usable... $ECHO_C" >&6 |
5875 |
> |
HAVE_MPIFDOTH_F90="no" |
5876 |
> |
rm -f conftest* |
5877 |
> |
cat >conftest.f90 <<EOF |
5878 |
> |
program main |
5879 |
> |
include 'mpif.h' |
5880 |
> |
end |
5881 |
> |
EOF |
5882 |
> |
if $F90 -I$MPI_INC -c conftest.f90 > conftest.out 2>&1 ; then |
5883 |
> |
echo "$as_me:$LINENO: result: yes" >&5 |
5884 |
> |
echo "${ECHO_T}yes" >&6 |
5885 |
> |
MPI_F90INC="$MPI_INC" |
5886 |
> |
HAVE_MPIFDOTH_F90="yes" |
5887 |
|
else |
5888 |
< |
echo "$as_me:$LINENO: result: no" >&5 |
5889 |
< |
echo "${ECHO_T}no" >&6 |
5888 |
> |
if test -s conftest.out ; then cat conftest.out >> config.log ; fi |
5889 |
> |
echo "$as_me:$LINENO: result: no! Check MPI include paths" >&5 |
5890 |
> |
echo "${ECHO_T}no! Check MPI include paths" >&6 |
5891 |
|
fi |
5892 |
+ |
rm -f conftest* |
5893 |
|
|
5665 |
– |
test -n "$MPIF90" && break |
5666 |
– |
done |
5667 |
– |
test -n "$MPIF90" || MPIF90="$F90" |
5894 |
|
|
5895 |
< |
acx_mpi_save_F90="$F90" |
5896 |
< |
F90="$MPIF90" |
5895 |
> |
ac_ext=c |
5896 |
> |
ac_cpp='$CPP $CPPFLAGS' |
5897 |
> |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5898 |
> |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5899 |
> |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
5900 |
|
|
5901 |
+ |
ac_save_LDFLAGS=$LDFLAGS |
5902 |
+ |
LDFLAGS="${LDFLAGS} -L${MPI_LIBDIR} " |
5903 |
|
|
5904 |
< |
|
5905 |
< |
if test x = x"$MPILIBS"; then |
5675 |
< |
echo "$as_me:$LINENO: checking for MPI_Init" >&5 |
5676 |
< |
echo $ECHO_N "checking for MPI_Init... $ECHO_C" >&6 |
5677 |
< |
cat >conftest.$ac_ext <<_ACEOF |
5678 |
< |
|
5679 |
< |
program main |
5680 |
< |
|
5681 |
< |
call MPI_Init |
5682 |
< |
end program main |
5683 |
< |
|
5684 |
< |
_ACEOF |
5685 |
< |
rm -f conftest.$ac_objext conftest$ac_exeext |
5686 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5687 |
< |
(eval $ac_link) 2>&5 |
5688 |
< |
ac_status=$? |
5689 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5690 |
< |
(exit $ac_status); } && |
5691 |
< |
{ ac_try='test -s conftest$ac_exeext' |
5692 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5693 |
< |
(eval $ac_try) 2>&5 |
5694 |
< |
ac_status=$? |
5695 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5696 |
< |
(exit $ac_status); }; }; then |
5697 |
< |
MPILIBS=" " |
5698 |
< |
echo "$as_me:$LINENO: result: yes" >&5 |
5699 |
< |
echo "${ECHO_T}yes" >&6 |
5700 |
< |
else |
5701 |
< |
echo "$as_me: failed program was:" >&5 |
5702 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
5703 |
< |
|
5704 |
< |
echo "$as_me:$LINENO: result: no" >&5 |
5705 |
< |
echo "${ECHO_T}no" >&6 |
5706 |
< |
fi |
5707 |
< |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
5708 |
< |
fi |
5709 |
< |
if test x = x"$MPILIBS"; then |
5710 |
< |
echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5 |
5904 |
> |
if test x = x"$MPI_LIB"; then |
5905 |
> |
echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5 |
5906 |
|
echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6 |
5907 |
|
if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then |
5908 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5910 |
|
ac_check_lib_save_LIBS=$LIBS |
5911 |
|
LIBS="-lmpi $LIBS" |
5912 |
|
cat >conftest.$ac_ext <<_ACEOF |
5913 |
+ |
/* confdefs.h. */ |
5914 |
+ |
_ACEOF |
5915 |
+ |
cat confdefs.h >>conftest.$ac_ext |
5916 |
+ |
cat >>conftest.$ac_ext <<_ACEOF |
5917 |
+ |
/* end confdefs.h. */ |
5918 |
|
|
5919 |
< |
program main |
5920 |
< |
|
5921 |
< |
call MPI_Init |
5922 |
< |
end program main |
5923 |
< |
|
5919 |
> |
/* Override any gcc2 internal prototype to avoid an error. */ |
5920 |
> |
#ifdef __cplusplus |
5921 |
> |
extern "C" |
5922 |
> |
#endif |
5923 |
> |
/* We use char because int might match the return type of a gcc2 |
5924 |
> |
builtin and then its argument prototype would still apply. */ |
5925 |
> |
char MPI_Init (); |
5926 |
> |
int |
5927 |
> |
main () |
5928 |
> |
{ |
5929 |
> |
MPI_Init (); |
5930 |
> |
; |
5931 |
> |
return 0; |
5932 |
> |
} |
5933 |
|
_ACEOF |
5934 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
5935 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5936 |
< |
(eval $ac_link) 2>&5 |
5936 |
> |
(eval $ac_link) 2>conftest.er1 |
5937 |
|
ac_status=$? |
5938 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
5939 |
+ |
rm -f conftest.er1 |
5940 |
+ |
cat conftest.err >&5 |
5941 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5942 |
|
(exit $ac_status); } && |
5943 |
< |
{ ac_try='test -s conftest$ac_exeext' |
5943 |
> |
{ ac_try='test -z "$ac_c_werror_flag" |
5944 |
> |
|| test ! -s conftest.err' |
5945 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5946 |
|
(eval $ac_try) 2>&5 |
5947 |
|
ac_status=$? |
5948 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5949 |
+ |
(exit $ac_status); }; } && |
5950 |
+ |
{ ac_try='test -s conftest$ac_exeext' |
5951 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5952 |
+ |
(eval $ac_try) 2>&5 |
5953 |
+ |
ac_status=$? |
5954 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5955 |
|
(exit $ac_status); }; }; then |
5956 |
|
ac_cv_lib_mpi_MPI_Init=yes |
5957 |
|
else |
5960 |
|
|
5961 |
|
ac_cv_lib_mpi_MPI_Init=no |
5962 |
|
fi |
5963 |
< |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
5963 |
> |
rm -f conftest.err conftest.$ac_objext \ |
5964 |
> |
conftest$ac_exeext conftest.$ac_ext |
5965 |
|
LIBS=$ac_check_lib_save_LIBS |
5966 |
|
fi |
5967 |
|
echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5 |
5968 |
|
echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6 |
5969 |
|
if test $ac_cv_lib_mpi_MPI_Init = yes; then |
5970 |
< |
MPILIBS="-lmpi" |
5970 |
> |
MPI_LIB="-lmpi" |
5971 |
|
fi |
5972 |
|
|
5973 |
|
fi |
5974 |
< |
if test x = x"$MPILIBS"; then |
5975 |
< |
echo "$as_me:$LINENO: checking for MPI_Init in -lmpich" >&5 |
5974 |
> |
if test x = x"$MPI_LIB"; then |
5975 |
> |
echo "$as_me:$LINENO: checking for MPI_Init in -lmpich" >&5 |
5976 |
|
echo $ECHO_N "checking for MPI_Init in -lmpich... $ECHO_C" >&6 |
5977 |
|
if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then |
5978 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5980 |
|
ac_check_lib_save_LIBS=$LIBS |
5981 |
|
LIBS="-lmpich $LIBS" |
5982 |
|
cat >conftest.$ac_ext <<_ACEOF |
5983 |
+ |
/* confdefs.h. */ |
5984 |
+ |
_ACEOF |
5985 |
+ |
cat confdefs.h >>conftest.$ac_ext |
5986 |
+ |
cat >>conftest.$ac_ext <<_ACEOF |
5987 |
+ |
/* end confdefs.h. */ |
5988 |
|
|
5989 |
< |
program main |
5990 |
< |
|
5991 |
< |
call MPI_Init |
5992 |
< |
end program main |
5993 |
< |
|
5989 |
> |
/* Override any gcc2 internal prototype to avoid an error. */ |
5990 |
> |
#ifdef __cplusplus |
5991 |
> |
extern "C" |
5992 |
> |
#endif |
5993 |
> |
/* We use char because int might match the return type of a gcc2 |
5994 |
> |
builtin and then its argument prototype would still apply. */ |
5995 |
> |
char MPI_Init (); |
5996 |
> |
int |
5997 |
> |
main () |
5998 |
> |
{ |
5999 |
> |
MPI_Init (); |
6000 |
> |
; |
6001 |
> |
return 0; |
6002 |
> |
} |
6003 |
|
_ACEOF |
6004 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
6005 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
6006 |
< |
(eval $ac_link) 2>&5 |
6006 |
> |
(eval $ac_link) 2>conftest.er1 |
6007 |
|
ac_status=$? |
6008 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
6009 |
+ |
rm -f conftest.er1 |
6010 |
+ |
cat conftest.err >&5 |
6011 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6012 |
|
(exit $ac_status); } && |
6013 |
< |
{ ac_try='test -s conftest$ac_exeext' |
6013 |
> |
{ ac_try='test -z "$ac_c_werror_flag" |
6014 |
> |
|| test ! -s conftest.err' |
6015 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6016 |
|
(eval $ac_try) 2>&5 |
6017 |
|
ac_status=$? |
6018 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6019 |
+ |
(exit $ac_status); }; } && |
6020 |
+ |
{ ac_try='test -s conftest$ac_exeext' |
6021 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6022 |
+ |
(eval $ac_try) 2>&5 |
6023 |
+ |
ac_status=$? |
6024 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6025 |
|
(exit $ac_status); }; }; then |
6026 |
|
ac_cv_lib_mpich_MPI_Init=yes |
6027 |
|
else |
6030 |
|
|
6031 |
|
ac_cv_lib_mpich_MPI_Init=no |
6032 |
|
fi |
6033 |
< |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
6033 |
> |
rm -f conftest.err conftest.$ac_objext \ |
6034 |
> |
conftest$ac_exeext conftest.$ac_ext |
6035 |
|
LIBS=$ac_check_lib_save_LIBS |
6036 |
|
fi |
6037 |
|
echo "$as_me:$LINENO: result: $ac_cv_lib_mpich_MPI_Init" >&5 |
6038 |
|
echo "${ECHO_T}$ac_cv_lib_mpich_MPI_Init" >&6 |
6039 |
|
if test $ac_cv_lib_mpich_MPI_Init = yes; then |
6040 |
< |
MPILIBS="-lmpich" |
6040 |
> |
MPI_LIB="-lmpich" |
6041 |
|
fi |
6042 |
|
|
6043 |
|
fi |
6044 |
< |
|
6045 |
< |
|
6046 |
< |
|
6047 |
< |
F90="$acx_mpi_save_F90" |
6048 |
< |
|
6049 |
< |
|
5805 |
< |
|
5806 |
< |
# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: |
5807 |
< |
if test x = x"$MPILIBS"; then |
5808 |
< |
|
5809 |
< |
: |
6044 |
> |
$as_unset ac_cv_lib_mpi_MPI_Init |
6045 |
> |
if test x = x"$MPI_LIB"; then |
6046 |
> |
echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5 |
6047 |
> |
echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6 |
6048 |
> |
if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then |
6049 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6050 |
|
else |
6051 |
< |
|
6052 |
< |
cat >>confdefs.h <<\_ACEOF |
6053 |
< |
#define HAVE_MPI 1 |
6051 |
> |
ac_check_lib_save_LIBS=$LIBS |
6052 |
> |
LIBS="-lmpi "-llam" $LIBS" |
6053 |
> |
cat >conftest.$ac_ext <<_ACEOF |
6054 |
> |
/* confdefs.h. */ |
6055 |
|
_ACEOF |
6056 |
+ |
cat confdefs.h >>conftest.$ac_ext |
6057 |
+ |
cat >>conftest.$ac_ext <<_ACEOF |
6058 |
+ |
/* end confdefs.h. */ |
6059 |
|
|
6060 |
< |
: |
6061 |
< |
fi |
6062 |
< |
|
6063 |
< |
|
6064 |
< |
|
6065 |
< |
|
6066 |
< |
|
6067 |
< |
# Check whether --with-mpi_f90_mods or --without-mpi_f90_mods was given. |
6068 |
< |
if test "${with_mpi_f90_mods+set}" = set; then |
6069 |
< |
withval="$with_mpi_f90_mods" |
6070 |
< |
mpi_f90_mods="$withval" |
6071 |
< |
else |
6072 |
< |
mpi_f90_mods="/usr/local/include/f90choice" |
6073 |
< |
fi; |
5830 |
< |
|
5831 |
< |
echo "$as_me:$LINENO: checking for MPI F90 modules" >&5 |
5832 |
< |
echo $ECHO_N "checking for MPI F90 modules... $ECHO_C" >&6 |
5833 |
< |
|
5834 |
< |
|
5835 |
< |
ac_ext=f90 |
5836 |
< |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
5837 |
< |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5838 |
< |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
5839 |
< |
|
5840 |
< |
ac_save_F90FLAGS=$F90FLAGS |
5841 |
< |
|
5842 |
< |
if test "$mpi_f90_mods"; then |
5843 |
< |
F90FLAGS="${F90FLAGS} ${MODDIRFLAG}${mpi_f90_mods}" |
5844 |
< |
fi |
5845 |
< |
|
5846 |
< |
cat >conftest.$ac_ext <<_ACEOF |
5847 |
< |
|
5848 |
< |
|
5849 |
< |
program main |
5850 |
< |
|
5851 |
< |
use mpi |
5852 |
< |
integer :: ierr |
5853 |
< |
call MPI_Init(ierr) |
5854 |
< |
|
5855 |
< |
|
5856 |
< |
end program main |
5857 |
< |
|
6060 |
> |
/* Override any gcc2 internal prototype to avoid an error. */ |
6061 |
> |
#ifdef __cplusplus |
6062 |
> |
extern "C" |
6063 |
> |
#endif |
6064 |
> |
/* We use char because int might match the return type of a gcc2 |
6065 |
> |
builtin and then its argument prototype would still apply. */ |
6066 |
> |
char MPI_Init (); |
6067 |
> |
int |
6068 |
> |
main () |
6069 |
> |
{ |
6070 |
> |
MPI_Init (); |
6071 |
> |
; |
6072 |
> |
return 0; |
6073 |
> |
} |
6074 |
|
_ACEOF |
6075 |
< |
rm -f conftest.$ac_objext |
6076 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
6077 |
< |
(eval $ac_compile) 2>&5 |
6075 |
> |
rm -f conftest.$ac_objext conftest$ac_exeext |
6076 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
6077 |
> |
(eval $ac_link) 2>conftest.er1 |
6078 |
|
ac_status=$? |
6079 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
6080 |
+ |
rm -f conftest.er1 |
6081 |
+ |
cat conftest.err >&5 |
6082 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6083 |
|
(exit $ac_status); } && |
6084 |
< |
{ ac_try='test -s conftest.$ac_objext' |
6084 |
> |
{ ac_try='test -z "$ac_c_werror_flag" |
6085 |
> |
|| test ! -s conftest.err' |
6086 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6087 |
|
(eval $ac_try) 2>&5 |
6088 |
|
ac_status=$? |
6089 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6090 |
< |
(exit $ac_status); }; }; then |
6091 |
< |
HAVE_MPI_MOD=1 |
5872 |
< |
else |
5873 |
< |
echo "$as_me: failed program was:" >&5 |
5874 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
5875 |
< |
|
5876 |
< |
HAVE_MPI_MOD=0 |
5877 |
< |
fi |
5878 |
< |
rm -f conftest.$ac_objext conftest.$ac_ext |
5879 |
< |
|
5880 |
< |
F90FLAGS=$ac_save_F90FLAGS |
5881 |
< |
ac_ext=f90 |
5882 |
< |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
5883 |
< |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5884 |
< |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
5885 |
< |
|
5886 |
< |
|
5887 |
< |
if test "$HAVE_MPI_MOD" = 1; then |
5888 |
< |
echo "$as_me:$LINENO: result: yes" >&5 |
5889 |
< |
echo "${ECHO_T}yes" >&6 |
5890 |
< |
|
5891 |
< |
cat >>confdefs.h <<\_ACEOF |
5892 |
< |
#define MPI_MOD 1 |
5893 |
< |
_ACEOF |
5894 |
< |
|
5895 |
< |
MPI_F90_MODS="${mpi_f90_mods}" |
5896 |
< |
|
5897 |
< |
# The library name: |
5898 |
< |
if test -z "$MPI_LIB" ; then |
5899 |
< |
MPI_LIBNAME=-lmpich |
5900 |
< |
else |
5901 |
< |
MPI_LIBNAME="$MPI_LIB" |
5902 |
< |
fi |
5903 |
< |
if test -z "$MPIMODLIBNAME" ; then |
5904 |
< |
MPIMODLIBNAME="${MPI_LIBNAME}f90" |
5905 |
< |
fi |
5906 |
< |
|
5907 |
< |
else |
5908 |
< |
echo "$as_me:$LINENO: result: no" >&5 |
5909 |
< |
echo "${ECHO_T}no" >&6 |
5910 |
< |
{ echo "$as_me:$LINENO: WARNING: Couldn't locate MPI F90 Modules" >&5 |
5911 |
< |
echo "$as_me: WARNING: Couldn't locate MPI F90 Modules" >&2;} |
5912 |
< |
fi |
5913 |
< |
|
5914 |
< |
|
5915 |
< |
|
5916 |
< |
if test "$HAVE_MPI_MOD" = 1; then |
5917 |
< |
|
5918 |
< |
cat >>confdefs.h <<\_ACEOF |
5919 |
< |
#define MPI_MOD 1 |
5920 |
< |
_ACEOF |
5921 |
< |
|
5922 |
< |
else |
5923 |
< |
ac_ext=f90 |
5924 |
< |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
5925 |
< |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5926 |
< |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
5927 |
< |
|
5928 |
< |
echo "$as_me:$LINENO: checking for egrep" >&5 |
5929 |
< |
echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
5930 |
< |
if test "${ac_cv_prog_egrep+set}" = set; then |
5931 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5932 |
< |
else |
5933 |
< |
if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
5934 |
< |
then ac_cv_prog_egrep='grep -E' |
5935 |
< |
else ac_cv_prog_egrep='egrep' |
5936 |
< |
fi |
5937 |
< |
fi |
5938 |
< |
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
5939 |
< |
echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
5940 |
< |
EGREP=$ac_cv_prog_egrep |
5941 |
< |
|
5942 |
< |
|
5943 |
< |
echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
5944 |
< |
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
5945 |
< |
if test "${ac_cv_header_stdc+set}" = set; then |
5946 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5947 |
< |
else |
5948 |
< |
cat >conftest.$ac_ext <<_ACEOF |
5949 |
< |
|
5950 |
< |
program main |
5951 |
< |
#include <stdlib.h> |
5952 |
< |
#include <stdarg.h> |
5953 |
< |
#include <string.h> |
5954 |
< |
#include <float.h> |
5955 |
< |
|
5956 |
< |
|
5957 |
< |
end program main |
5958 |
< |
|
5959 |
< |
_ACEOF |
5960 |
< |
rm -f conftest.$ac_objext |
5961 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5962 |
< |
(eval $ac_compile) 2>&5 |
5963 |
< |
ac_status=$? |
5964 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5965 |
< |
(exit $ac_status); } && |
5966 |
< |
{ ac_try='test -s conftest.$ac_objext' |
6090 |
> |
(exit $ac_status); }; } && |
6091 |
> |
{ ac_try='test -s conftest$ac_exeext' |
6092 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6093 |
|
(eval $ac_try) 2>&5 |
6094 |
|
ac_status=$? |
6095 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6096 |
|
(exit $ac_status); }; }; then |
6097 |
< |
ac_cv_header_stdc=yes |
6097 |
> |
ac_cv_lib_mpi_MPI_Init=yes |
6098 |
|
else |
6099 |
|
echo "$as_me: failed program was:" >&5 |
6100 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
6101 |
|
|
6102 |
< |
ac_cv_header_stdc=no |
6102 |
> |
ac_cv_lib_mpi_MPI_Init=no |
6103 |
|
fi |
6104 |
< |
rm -f conftest.$ac_objext conftest.$ac_ext |
6105 |
< |
|
6106 |
< |
if test $ac_cv_header_stdc = yes; then |
5982 |
< |
# SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
5983 |
< |
cat >conftest.$ac_ext <<_ACEOF |
5984 |
< |
#include <string.h> |
5985 |
< |
|
5986 |
< |
_ACEOF |
5987 |
< |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5988 |
< |
$EGREP "memchr" >/dev/null 2>&1; then |
5989 |
< |
: |
5990 |
< |
else |
5991 |
< |
ac_cv_header_stdc=no |
6104 |
> |
rm -f conftest.err conftest.$ac_objext \ |
6105 |
> |
conftest$ac_exeext conftest.$ac_ext |
6106 |
> |
LIBS=$ac_check_lib_save_LIBS |
6107 |
|
fi |
6108 |
< |
rm -f conftest* |
6109 |
< |
|
6108 |
> |
echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5 |
6109 |
> |
echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6 |
6110 |
> |
if test $ac_cv_lib_mpi_MPI_Init = yes; then |
6111 |
> |
MPI_LIB="-lmpi -llam" |
6112 |
|
fi |
6113 |
|
|
5997 |
– |
if test $ac_cv_header_stdc = yes; then |
5998 |
– |
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
5999 |
– |
cat >conftest.$ac_ext <<_ACEOF |
6000 |
– |
#include <stdlib.h> |
6001 |
– |
|
6002 |
– |
_ACEOF |
6003 |
– |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
6004 |
– |
$EGREP "free" >/dev/null 2>&1; then |
6005 |
– |
: |
6006 |
– |
else |
6007 |
– |
ac_cv_header_stdc=no |
6114 |
|
fi |
6009 |
– |
rm -f conftest* |
6115 |
|
|
6116 |
< |
fi |
6117 |
< |
|
6118 |
< |
if test $ac_cv_header_stdc = yes; then |
6119 |
< |
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
6120 |
< |
if test "$cross_compiling" = yes; then |
6121 |
< |
: |
6116 |
> |
$as_unset ac_cv_lib_mpi_MPI_Init |
6117 |
> |
if test x = x"$MPI_LIB"; then |
6118 |
> |
echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5 |
6119 |
> |
echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6 |
6120 |
> |
if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then |
6121 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6122 |
|
else |
6123 |
< |
cat >conftest.$ac_ext <<_ACEOF |
6124 |
< |
#include <ctype.h> |
6125 |
< |
#if ((' ' & 0x0FF) == 0x020) |
6126 |
< |
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
6127 |
< |
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
6128 |
< |
#else |
6129 |
< |
# define ISLOWER(c) \ |
6130 |
< |
(('a' <= (c) && (c) <= 'i') \ |
6026 |
< |
|| ('j' <= (c) && (c) <= 'r') \ |
6027 |
< |
|| ('s' <= (c) && (c) <= 'z')) |
6028 |
< |
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
6029 |
< |
#endif |
6123 |
> |
ac_check_lib_save_LIBS=$LIBS |
6124 |
> |
LIBS="-lmpi -llam -lpthread $LIBS" |
6125 |
> |
cat >conftest.$ac_ext <<_ACEOF |
6126 |
> |
/* confdefs.h. */ |
6127 |
> |
_ACEOF |
6128 |
> |
cat confdefs.h >>conftest.$ac_ext |
6129 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
6130 |
> |
/* end confdefs.h. */ |
6131 |
|
|
6132 |
< |
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
6132 |
> |
/* Override any gcc2 internal prototype to avoid an error. */ |
6133 |
> |
#ifdef __cplusplus |
6134 |
> |
extern "C" |
6135 |
> |
#endif |
6136 |
> |
/* We use char because int might match the return type of a gcc2 |
6137 |
> |
builtin and then its argument prototype would still apply. */ |
6138 |
> |
char MPI_Init (); |
6139 |
|
int |
6140 |
|
main () |
6141 |
|
{ |
6142 |
< |
int i; |
6143 |
< |
for (i = 0; i < 256; i++) |
6144 |
< |
if (XOR (islower (i), ISLOWER (i)) |
6038 |
< |
|| toupper (i) != TOUPPER (i)) |
6039 |
< |
exit(2); |
6040 |
< |
exit (0); |
6142 |
> |
MPI_Init (); |
6143 |
> |
; |
6144 |
> |
return 0; |
6145 |
|
} |
6146 |
|
_ACEOF |
6147 |
< |
rm -f conftest$ac_exeext |
6147 |
> |
rm -f conftest.$ac_objext conftest$ac_exeext |
6148 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
6149 |
< |
(eval $ac_link) 2>&5 |
6149 |
> |
(eval $ac_link) 2>conftest.er1 |
6150 |
|
ac_status=$? |
6151 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
6152 |
+ |
rm -f conftest.er1 |
6153 |
+ |
cat conftest.err >&5 |
6154 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6155 |
< |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
6155 |
> |
(exit $ac_status); } && |
6156 |
> |
{ ac_try='test -z "$ac_c_werror_flag" |
6157 |
> |
|| test ! -s conftest.err' |
6158 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6159 |
|
(eval $ac_try) 2>&5 |
6160 |
|
ac_status=$? |
6161 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6162 |
< |
(exit $ac_status); }; }; then |
6163 |
< |
: |
6055 |
< |
else |
6056 |
< |
echo "$as_me: program exited with status $ac_status" >&5 |
6057 |
< |
echo "$as_me: failed program was:" >&5 |
6058 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
6059 |
< |
|
6060 |
< |
( exit $ac_status ) |
6061 |
< |
ac_cv_header_stdc=no |
6062 |
< |
fi |
6063 |
< |
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
6064 |
< |
fi |
6065 |
< |
fi |
6066 |
< |
fi |
6067 |
< |
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
6068 |
< |
echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
6069 |
< |
if test $ac_cv_header_stdc = yes; then |
6070 |
< |
|
6071 |
< |
cat >>confdefs.h <<\_ACEOF |
6072 |
< |
#define STDC_HEADERS 1 |
6073 |
< |
_ACEOF |
6074 |
< |
|
6075 |
< |
fi |
6076 |
< |
|
6077 |
< |
# On IRIX 5.3, sys/types and inttypes.h are conflicting. |
6078 |
< |
|
6079 |
< |
|
6080 |
< |
|
6081 |
< |
|
6082 |
< |
|
6083 |
< |
|
6084 |
< |
|
6085 |
< |
|
6086 |
< |
|
6087 |
< |
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
6088 |
< |
inttypes.h stdint.h unistd.h |
6089 |
< |
do |
6090 |
< |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
6091 |
< |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6092 |
< |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
6093 |
< |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
6094 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6095 |
< |
else |
6096 |
< |
cat >conftest.$ac_ext <<_ACEOF |
6097 |
< |
$ac_includes_default |
6098 |
< |
|
6099 |
< |
#include <$ac_header> |
6100 |
< |
_ACEOF |
6101 |
< |
rm -f conftest.$ac_objext |
6102 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
6103 |
< |
(eval $ac_compile) 2>&5 |
6104 |
< |
ac_status=$? |
6105 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6106 |
< |
(exit $ac_status); } && |
6107 |
< |
{ ac_try='test -s conftest.$ac_objext' |
6162 |
> |
(exit $ac_status); }; } && |
6163 |
> |
{ ac_try='test -s conftest$ac_exeext' |
6164 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6165 |
|
(eval $ac_try) 2>&5 |
6166 |
|
ac_status=$? |
6167 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6168 |
|
(exit $ac_status); }; }; then |
6169 |
< |
eval "$as_ac_Header=yes" |
6169 |
> |
ac_cv_lib_mpi_MPI_Init=yes |
6170 |
|
else |
6171 |
|
echo "$as_me: failed program was:" >&5 |
6172 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
6173 |
|
|
6174 |
< |
eval "$as_ac_Header=no" |
6174 |
> |
ac_cv_lib_mpi_MPI_Init=no |
6175 |
|
fi |
6176 |
< |
rm -f conftest.$ac_objext conftest.$ac_ext |
6176 |
> |
rm -f conftest.err conftest.$ac_objext \ |
6177 |
> |
conftest$ac_exeext conftest.$ac_ext |
6178 |
> |
LIBS=$ac_check_lib_save_LIBS |
6179 |
|
fi |
6180 |
< |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
6181 |
< |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
6182 |
< |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
6183 |
< |
cat >>confdefs.h <<_ACEOF |
6126 |
< |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
6127 |
< |
_ACEOF |
6128 |
< |
|
6129 |
< |
fi |
6130 |
< |
|
6131 |
< |
done |
6132 |
< |
|
6133 |
< |
|
6134 |
< |
|
6135 |
< |
for ac_header in mpif.h |
6136 |
< |
do |
6137 |
< |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
6138 |
< |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
6139 |
< |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6140 |
< |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
6141 |
< |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
6142 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6143 |
< |
fi |
6144 |
< |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
6145 |
< |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
6180 |
> |
echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5 |
6181 |
> |
echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6 |
6182 |
> |
if test $ac_cv_lib_mpi_MPI_Init = yes; then |
6183 |
> |
MPI_LIB="-lmpi -llam -lpthread" |
6184 |
|
else |
6185 |
< |
# Is the header compilable? |
6186 |
< |
echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
6187 |
< |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
6150 |
< |
cat >conftest.$ac_ext <<_ACEOF |
6151 |
< |
$ac_includes_default |
6152 |
< |
#include <$ac_header> |
6153 |
< |
_ACEOF |
6154 |
< |
rm -f conftest.$ac_objext |
6155 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
6156 |
< |
(eval $ac_compile) 2>&5 |
6157 |
< |
ac_status=$? |
6158 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6159 |
< |
(exit $ac_status); } && |
6160 |
< |
{ ac_try='test -s conftest.$ac_objext' |
6161 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6162 |
< |
(eval $ac_try) 2>&5 |
6163 |
< |
ac_status=$? |
6164 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6165 |
< |
(exit $ac_status); }; }; then |
6166 |
< |
ac_header_compiler=yes |
6167 |
< |
else |
6168 |
< |
echo "$as_me: failed program was:" >&5 |
6169 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
6170 |
< |
|
6171 |
< |
ac_header_compiler=no |
6185 |
> |
{ { echo "$as_me:$LINENO: error: Didn't find liblam, libmpi, or libmpich; check path for MPI package first..." >&5 |
6186 |
> |
echo "$as_me: error: Didn't find liblam, libmpi, or libmpich; check path for MPI package first..." >&2;} |
6187 |
> |
{ (exit 1); exit 1; }; } |
6188 |
|
fi |
6173 |
– |
rm -f conftest.$ac_objext conftest.$ac_ext |
6174 |
– |
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
6175 |
– |
echo "${ECHO_T}$ac_header_compiler" >&6 |
6189 |
|
|
6177 |
– |
# Is the header present? |
6178 |
– |
echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
6179 |
– |
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
6180 |
– |
cat >conftest.$ac_ext <<_ACEOF |
6181 |
– |
#include <$ac_header> |
6182 |
– |
_ACEOF |
6183 |
– |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
6184 |
– |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
6185 |
– |
ac_status=$? |
6186 |
– |
grep -v '^ *+' conftest.er1 >conftest.err |
6187 |
– |
rm -f conftest.er1 |
6188 |
– |
cat conftest.err >&5 |
6189 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6190 |
– |
(exit $ac_status); } >/dev/null; then |
6191 |
– |
if test -s conftest.err; then |
6192 |
– |
ac_cpp_err=$ac_f90_preproc_warn_flag |
6193 |
– |
else |
6194 |
– |
ac_cpp_err= |
6195 |
– |
fi |
6196 |
– |
else |
6197 |
– |
ac_cpp_err=yes |
6190 |
|
fi |
6199 |
– |
if test -z "$ac_cpp_err"; then |
6200 |
– |
ac_header_preproc=yes |
6201 |
– |
else |
6202 |
– |
echo "$as_me: failed program was:" >&5 |
6203 |
– |
sed 's/^/| /' conftest.$ac_ext >&5 |
6191 |
|
|
6192 |
< |
ac_header_preproc=no |
6193 |
< |
fi |
6207 |
< |
rm -f conftest.err conftest.$ac_ext |
6208 |
< |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
6209 |
< |
echo "${ECHO_T}$ac_header_preproc" >&6 |
6210 |
< |
|
6211 |
< |
# So? What about this header? |
6212 |
< |
case $ac_header_compiler:$ac_header_preproc in |
6213 |
< |
yes:no ) |
6214 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
6215 |
< |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
6216 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
6217 |
< |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
6218 |
< |
( |
6219 |
< |
cat <<\_ASBOX |
6220 |
< |
## ------------------------------------ ## |
6221 |
< |
## Report this to bug-autoconf@gnu.org. ## |
6222 |
< |
## ------------------------------------ ## |
6223 |
< |
_ASBOX |
6224 |
< |
) | |
6225 |
< |
sed "s/^/$as_me: WARNING: /" >&2 |
6226 |
< |
;; |
6227 |
< |
no:yes ) |
6228 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
6229 |
< |
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
6230 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
6231 |
< |
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
6232 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
6233 |
< |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
6234 |
< |
( |
6235 |
< |
cat <<\_ASBOX |
6236 |
< |
## ------------------------------------ ## |
6237 |
< |
## Report this to bug-autoconf@gnu.org. ## |
6238 |
< |
## ------------------------------------ ## |
6239 |
< |
_ASBOX |
6240 |
< |
) | |
6241 |
< |
sed "s/^/$as_me: WARNING: /" >&2 |
6242 |
< |
;; |
6243 |
< |
esac |
6244 |
< |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6245 |
< |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
6246 |
< |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
6247 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6248 |
< |
else |
6249 |
< |
eval "$as_ac_Header=$ac_header_preproc" |
6250 |
< |
fi |
6251 |
< |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
6252 |
< |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
6192 |
> |
echo "$as_me:$LINENO: result: found $MPI_LIB" >&5 |
6193 |
> |
echo "${ECHO_T}found $MPI_LIB" >&6 |
6194 |
|
|
6254 |
– |
fi |
6255 |
– |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
6256 |
– |
cat >>confdefs.h <<_ACEOF |
6257 |
– |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
6258 |
– |
_ACEOF |
6195 |
|
|
6196 |
+ |
echo "$as_me:$LINENO: checking for MPI Fortran library" >&5 |
6197 |
+ |
echo $ECHO_N "checking for MPI Fortran library... $ECHO_C" >&6 |
6198 |
+ |
MPI_F90LIB="" |
6199 |
+ |
if test -f "$MPI_LIBDIR/libfmpich.a" ; then |
6200 |
+ |
MPI_F90LIB="-lfmpich" |
6201 |
+ |
elif test -f "$MPI_LIBDIR/liblamf77mpi.a" ; then |
6202 |
+ |
MPI_F90LIB="-llamf77mpi" |
6203 |
+ |
else |
6204 |
+ |
# nothing special found, we'll assume that the C library is all we need |
6205 |
+ |
MPI_F90LIB=" " |
6206 |
|
fi |
6207 |
+ |
echo "$as_me:$LINENO: result: found $MPI_F90LIB" >&5 |
6208 |
+ |
echo "${ECHO_T}found $MPI_F90LIB" >&6 |
6209 |
|
|
6262 |
– |
done |
6210 |
|
|
6264 |
– |
ac_ext=c |
6265 |
– |
ac_cpp='$CPP $CPPFLAGS' |
6266 |
– |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
6267 |
– |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6268 |
– |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
6211 |
|
|
6212 |
|
|
6271 |
– |
cat >>confdefs.h <<\_ACEOF |
6272 |
– |
#define MPI_H 1 |
6273 |
– |
_ACEOF |
6274 |
– |
|
6275 |
– |
fi |
6276 |
– |
|
6213 |
|
ac_ext=c |
6214 |
|
ac_cpp='$CPP $CPPFLAGS' |
6215 |
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
6238 |
|
# On the NeXT, cc -E runs the code through the compiler's parser, |
6239 |
|
# not just through cpp. "Syntax error" is here to catch this case. |
6240 |
|
cat >conftest.$ac_ext <<_ACEOF |
6305 |
– |
#line $LINENO "configure" |
6241 |
|
/* confdefs.h. */ |
6242 |
|
_ACEOF |
6243 |
|
cat confdefs.h >>conftest.$ac_ext |
6248 |
|
#else |
6249 |
|
# include <assert.h> |
6250 |
|
#endif |
6251 |
< |
Syntax error |
6251 |
> |
Syntax error |
6252 |
|
_ACEOF |
6253 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
6254 |
|
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
6260 |
|
(exit $ac_status); } >/dev/null; then |
6261 |
|
if test -s conftest.err; then |
6262 |
|
ac_cpp_err=$ac_c_preproc_warn_flag |
6263 |
+ |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
6264 |
|
else |
6265 |
|
ac_cpp_err= |
6266 |
|
fi |
6281 |
|
# OK, works on sane cases. Now check whether non-existent headers |
6282 |
|
# can be detected and how. |
6283 |
|
cat >conftest.$ac_ext <<_ACEOF |
6348 |
– |
#line $LINENO "configure" |
6284 |
|
/* confdefs.h. */ |
6285 |
|
_ACEOF |
6286 |
|
cat confdefs.h >>conftest.$ac_ext |
6298 |
|
(exit $ac_status); } >/dev/null; then |
6299 |
|
if test -s conftest.err; then |
6300 |
|
ac_cpp_err=$ac_c_preproc_warn_flag |
6301 |
+ |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
6302 |
|
else |
6303 |
|
ac_cpp_err= |
6304 |
|
fi |
6345 |
|
# On the NeXT, cc -E runs the code through the compiler's parser, |
6346 |
|
# not just through cpp. "Syntax error" is here to catch this case. |
6347 |
|
cat >conftest.$ac_ext <<_ACEOF |
6412 |
– |
#line $LINENO "configure" |
6348 |
|
/* confdefs.h. */ |
6349 |
|
_ACEOF |
6350 |
|
cat confdefs.h >>conftest.$ac_ext |
6355 |
|
#else |
6356 |
|
# include <assert.h> |
6357 |
|
#endif |
6358 |
< |
Syntax error |
6358 |
> |
Syntax error |
6359 |
|
_ACEOF |
6360 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
6361 |
|
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
6367 |
|
(exit $ac_status); } >/dev/null; then |
6368 |
|
if test -s conftest.err; then |
6369 |
|
ac_cpp_err=$ac_c_preproc_warn_flag |
6370 |
+ |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
6371 |
|
else |
6372 |
|
ac_cpp_err= |
6373 |
|
fi |
6388 |
|
# OK, works on sane cases. Now check whether non-existent headers |
6389 |
|
# can be detected and how. |
6390 |
|
cat >conftest.$ac_ext <<_ACEOF |
6455 |
– |
#line $LINENO "configure" |
6391 |
|
/* confdefs.h. */ |
6392 |
|
_ACEOF |
6393 |
|
cat confdefs.h >>conftest.$ac_ext |
6405 |
|
(exit $ac_status); } >/dev/null; then |
6406 |
|
if test -s conftest.err; then |
6407 |
|
ac_cpp_err=$ac_c_preproc_warn_flag |
6408 |
+ |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
6409 |
|
else |
6410 |
|
ac_cpp_err= |
6411 |
|
fi |
6443 |
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
6444 |
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6445 |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
6446 |
+ |
|
6447 |
+ |
|
6448 |
+ |
echo "$as_me:$LINENO: checking for egrep" >&5 |
6449 |
+ |
echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
6450 |
+ |
if test "${ac_cv_prog_egrep+set}" = set; then |
6451 |
+ |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6452 |
+ |
else |
6453 |
+ |
if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
6454 |
+ |
then ac_cv_prog_egrep='grep -E' |
6455 |
+ |
else ac_cv_prog_egrep='egrep' |
6456 |
+ |
fi |
6457 |
+ |
fi |
6458 |
+ |
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
6459 |
+ |
echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
6460 |
+ |
EGREP=$ac_cv_prog_egrep |
6461 |
+ |
|
6462 |
+ |
|
6463 |
+ |
echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
6464 |
+ |
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
6465 |
+ |
if test "${ac_cv_header_stdc+set}" = set; then |
6466 |
+ |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6467 |
+ |
else |
6468 |
+ |
cat >conftest.$ac_ext <<_ACEOF |
6469 |
+ |
/* confdefs.h. */ |
6470 |
+ |
_ACEOF |
6471 |
+ |
cat confdefs.h >>conftest.$ac_ext |
6472 |
+ |
cat >>conftest.$ac_ext <<_ACEOF |
6473 |
+ |
/* end confdefs.h. */ |
6474 |
+ |
#include <stdlib.h> |
6475 |
+ |
#include <stdarg.h> |
6476 |
+ |
#include <string.h> |
6477 |
+ |
#include <float.h> |
6478 |
+ |
|
6479 |
+ |
int |
6480 |
+ |
main () |
6481 |
+ |
{ |
6482 |
+ |
|
6483 |
+ |
; |
6484 |
+ |
return 0; |
6485 |
+ |
} |
6486 |
+ |
_ACEOF |
6487 |
+ |
rm -f conftest.$ac_objext |
6488 |
+ |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
6489 |
+ |
(eval $ac_compile) 2>conftest.er1 |
6490 |
+ |
ac_status=$? |
6491 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
6492 |
+ |
rm -f conftest.er1 |
6493 |
+ |
cat conftest.err >&5 |
6494 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6495 |
+ |
(exit $ac_status); } && |
6496 |
+ |
{ ac_try='test -z "$ac_c_werror_flag" |
6497 |
+ |
|| test ! -s conftest.err' |
6498 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6499 |
+ |
(eval $ac_try) 2>&5 |
6500 |
+ |
ac_status=$? |
6501 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6502 |
+ |
(exit $ac_status); }; } && |
6503 |
+ |
{ ac_try='test -s conftest.$ac_objext' |
6504 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6505 |
+ |
(eval $ac_try) 2>&5 |
6506 |
+ |
ac_status=$? |
6507 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6508 |
+ |
(exit $ac_status); }; }; then |
6509 |
+ |
ac_cv_header_stdc=yes |
6510 |
+ |
else |
6511 |
+ |
echo "$as_me: failed program was:" >&5 |
6512 |
+ |
sed 's/^/| /' conftest.$ac_ext >&5 |
6513 |
+ |
|
6514 |
+ |
ac_cv_header_stdc=no |
6515 |
+ |
fi |
6516 |
+ |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6517 |
+ |
|
6518 |
+ |
if test $ac_cv_header_stdc = yes; then |
6519 |
+ |
# SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
6520 |
+ |
cat >conftest.$ac_ext <<_ACEOF |
6521 |
+ |
/* confdefs.h. */ |
6522 |
+ |
_ACEOF |
6523 |
+ |
cat confdefs.h >>conftest.$ac_ext |
6524 |
+ |
cat >>conftest.$ac_ext <<_ACEOF |
6525 |
+ |
/* end confdefs.h. */ |
6526 |
+ |
#include <string.h> |
6527 |
+ |
|
6528 |
+ |
_ACEOF |
6529 |
+ |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
6530 |
+ |
$EGREP "memchr" >/dev/null 2>&1; then |
6531 |
+ |
: |
6532 |
+ |
else |
6533 |
+ |
ac_cv_header_stdc=no |
6534 |
+ |
fi |
6535 |
+ |
rm -f conftest* |
6536 |
+ |
|
6537 |
+ |
fi |
6538 |
+ |
|
6539 |
+ |
if test $ac_cv_header_stdc = yes; then |
6540 |
+ |
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
6541 |
+ |
cat >conftest.$ac_ext <<_ACEOF |
6542 |
+ |
/* confdefs.h. */ |
6543 |
+ |
_ACEOF |
6544 |
+ |
cat confdefs.h >>conftest.$ac_ext |
6545 |
+ |
cat >>conftest.$ac_ext <<_ACEOF |
6546 |
+ |
/* end confdefs.h. */ |
6547 |
+ |
#include <stdlib.h> |
6548 |
+ |
|
6549 |
+ |
_ACEOF |
6550 |
+ |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
6551 |
+ |
$EGREP "free" >/dev/null 2>&1; then |
6552 |
+ |
: |
6553 |
+ |
else |
6554 |
+ |
ac_cv_header_stdc=no |
6555 |
+ |
fi |
6556 |
+ |
rm -f conftest* |
6557 |
+ |
|
6558 |
+ |
fi |
6559 |
+ |
|
6560 |
+ |
if test $ac_cv_header_stdc = yes; then |
6561 |
+ |
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
6562 |
+ |
if test "$cross_compiling" = yes; then |
6563 |
+ |
: |
6564 |
+ |
else |
6565 |
+ |
cat >conftest.$ac_ext <<_ACEOF |
6566 |
+ |
/* confdefs.h. */ |
6567 |
+ |
_ACEOF |
6568 |
+ |
cat confdefs.h >>conftest.$ac_ext |
6569 |
+ |
cat >>conftest.$ac_ext <<_ACEOF |
6570 |
+ |
/* end confdefs.h. */ |
6571 |
+ |
#include <ctype.h> |
6572 |
+ |
#if ((' ' & 0x0FF) == 0x020) |
6573 |
+ |
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
6574 |
+ |
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
6575 |
+ |
#else |
6576 |
+ |
# define ISLOWER(c) \ |
6577 |
+ |
(('a' <= (c) && (c) <= 'i') \ |
6578 |
+ |
|| ('j' <= (c) && (c) <= 'r') \ |
6579 |
+ |
|| ('s' <= (c) && (c) <= 'z')) |
6580 |
+ |
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
6581 |
+ |
#endif |
6582 |
+ |
|
6583 |
+ |
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
6584 |
+ |
int |
6585 |
+ |
main () |
6586 |
+ |
{ |
6587 |
+ |
int i; |
6588 |
+ |
for (i = 0; i < 256; i++) |
6589 |
+ |
if (XOR (islower (i), ISLOWER (i)) |
6590 |
+ |
|| toupper (i) != TOUPPER (i)) |
6591 |
+ |
exit(2); |
6592 |
+ |
exit (0); |
6593 |
+ |
} |
6594 |
+ |
_ACEOF |
6595 |
+ |
rm -f conftest$ac_exeext |
6596 |
+ |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
6597 |
+ |
(eval $ac_link) 2>&5 |
6598 |
+ |
ac_status=$? |
6599 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6600 |
+ |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
6601 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6602 |
+ |
(eval $ac_try) 2>&5 |
6603 |
+ |
ac_status=$? |
6604 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6605 |
+ |
(exit $ac_status); }; }; then |
6606 |
+ |
: |
6607 |
+ |
else |
6608 |
+ |
echo "$as_me: program exited with status $ac_status" >&5 |
6609 |
+ |
echo "$as_me: failed program was:" >&5 |
6610 |
+ |
sed 's/^/| /' conftest.$ac_ext >&5 |
6611 |
+ |
|
6612 |
+ |
( exit $ac_status ) |
6613 |
+ |
ac_cv_header_stdc=no |
6614 |
+ |
fi |
6615 |
+ |
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
6616 |
+ |
fi |
6617 |
+ |
fi |
6618 |
+ |
fi |
6619 |
+ |
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
6620 |
+ |
echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
6621 |
+ |
if test $ac_cv_header_stdc = yes; then |
6622 |
+ |
|
6623 |
+ |
cat >>confdefs.h <<\_ACEOF |
6624 |
+ |
#define STDC_HEADERS 1 |
6625 |
+ |
_ACEOF |
6626 |
+ |
|
6627 |
+ |
fi |
6628 |
+ |
|
6629 |
+ |
# On IRIX 5.3, sys/types and inttypes.h are conflicting. |
6630 |
+ |
|
6631 |
+ |
|
6632 |
+ |
|
6633 |
+ |
|
6634 |
+ |
|
6635 |
+ |
|
6636 |
+ |
|
6637 |
+ |
|
6638 |
+ |
|
6639 |
+ |
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
6640 |
+ |
inttypes.h stdint.h unistd.h |
6641 |
+ |
do |
6642 |
+ |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
6643 |
+ |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6644 |
+ |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
6645 |
+ |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
6646 |
+ |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6647 |
+ |
else |
6648 |
+ |
cat >conftest.$ac_ext <<_ACEOF |
6649 |
+ |
/* confdefs.h. */ |
6650 |
+ |
_ACEOF |
6651 |
+ |
cat confdefs.h >>conftest.$ac_ext |
6652 |
+ |
cat >>conftest.$ac_ext <<_ACEOF |
6653 |
+ |
/* end confdefs.h. */ |
6654 |
+ |
$ac_includes_default |
6655 |
+ |
|
6656 |
+ |
#include <$ac_header> |
6657 |
+ |
_ACEOF |
6658 |
+ |
rm -f conftest.$ac_objext |
6659 |
+ |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
6660 |
+ |
(eval $ac_compile) 2>conftest.er1 |
6661 |
+ |
ac_status=$? |
6662 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
6663 |
+ |
rm -f conftest.er1 |
6664 |
+ |
cat conftest.err >&5 |
6665 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6666 |
+ |
(exit $ac_status); } && |
6667 |
+ |
{ ac_try='test -z "$ac_c_werror_flag" |
6668 |
+ |
|| test ! -s conftest.err' |
6669 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6670 |
+ |
(eval $ac_try) 2>&5 |
6671 |
+ |
ac_status=$? |
6672 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6673 |
+ |
(exit $ac_status); }; } && |
6674 |
+ |
{ ac_try='test -s conftest.$ac_objext' |
6675 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6676 |
+ |
(eval $ac_try) 2>&5 |
6677 |
+ |
ac_status=$? |
6678 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6679 |
+ |
(exit $ac_status); }; }; then |
6680 |
+ |
eval "$as_ac_Header=yes" |
6681 |
+ |
else |
6682 |
+ |
echo "$as_me: failed program was:" >&5 |
6683 |
+ |
sed 's/^/| /' conftest.$ac_ext >&5 |
6684 |
|
|
6685 |
+ |
eval "$as_ac_Header=no" |
6686 |
+ |
fi |
6687 |
+ |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6688 |
+ |
fi |
6689 |
+ |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
6690 |
+ |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
6691 |
+ |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
6692 |
+ |
cat >>confdefs.h <<_ACEOF |
6693 |
+ |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
6694 |
+ |
_ACEOF |
6695 |
|
|
6696 |
+ |
fi |
6697 |
|
|
6698 |
+ |
done |
6699 |
|
|
6700 |
|
|
6701 |
+ |
|
6702 |
+ |
|
6703 |
+ |
|
6704 |
|
# Check whether --with-sprng_prefix or --without-sprng_prefix was given. |
6705 |
|
if test "${with_sprng_prefix+set}" = set; then |
6706 |
|
withval="$with_sprng_prefix" |
6788 |
|
echo "$as_me:$LINENO: checking sprng.h usability" >&5 |
6789 |
|
echo $ECHO_N "checking sprng.h usability... $ECHO_C" >&6 |
6790 |
|
cat >conftest.$ac_ext <<_ACEOF |
6602 |
– |
#line $LINENO "configure" |
6791 |
|
/* confdefs.h. */ |
6792 |
|
_ACEOF |
6793 |
|
cat confdefs.h >>conftest.$ac_ext |
6798 |
|
_ACEOF |
6799 |
|
rm -f conftest.$ac_objext |
6800 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
6801 |
< |
(eval $ac_compile) 2>&5 |
6801 |
> |
(eval $ac_compile) 2>conftest.er1 |
6802 |
|
ac_status=$? |
6803 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
6804 |
+ |
rm -f conftest.er1 |
6805 |
+ |
cat conftest.err >&5 |
6806 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6807 |
|
(exit $ac_status); } && |
6808 |
< |
{ ac_try='test -s conftest.$ac_objext' |
6808 |
> |
{ ac_try='test -z "$ac_c_werror_flag" |
6809 |
> |
|| test ! -s conftest.err' |
6810 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6811 |
|
(eval $ac_try) 2>&5 |
6812 |
|
ac_status=$? |
6813 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6814 |
+ |
(exit $ac_status); }; } && |
6815 |
+ |
{ ac_try='test -s conftest.$ac_objext' |
6816 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6817 |
+ |
(eval $ac_try) 2>&5 |
6818 |
+ |
ac_status=$? |
6819 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6820 |
|
(exit $ac_status); }; }; then |
6821 |
|
ac_header_compiler=yes |
6822 |
|
else |
6825 |
|
|
6826 |
|
ac_header_compiler=no |
6827 |
|
fi |
6828 |
< |
rm -f conftest.$ac_objext conftest.$ac_ext |
6828 |
> |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6829 |
|
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
6830 |
|
echo "${ECHO_T}$ac_header_compiler" >&6 |
6831 |
|
|
6833 |
|
echo "$as_me:$LINENO: checking sprng.h presence" >&5 |
6834 |
|
echo $ECHO_N "checking sprng.h presence... $ECHO_C" >&6 |
6835 |
|
cat >conftest.$ac_ext <<_ACEOF |
6638 |
– |
#line $LINENO "configure" |
6836 |
|
/* confdefs.h. */ |
6837 |
|
_ACEOF |
6838 |
|
cat confdefs.h >>conftest.$ac_ext |
6850 |
|
(exit $ac_status); } >/dev/null; then |
6851 |
|
if test -s conftest.err; then |
6852 |
|
ac_cpp_err=$ac_c_preproc_warn_flag |
6853 |
+ |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
6854 |
|
else |
6855 |
|
ac_cpp_err= |
6856 |
|
fi |
6870 |
|
echo "${ECHO_T}$ac_header_preproc" >&6 |
6871 |
|
|
6872 |
|
# So? What about this header? |
6873 |
< |
case $ac_header_compiler:$ac_header_preproc in |
6874 |
< |
yes:no ) |
6873 |
> |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
6874 |
> |
yes:no: ) |
6875 |
|
{ echo "$as_me:$LINENO: WARNING: sprng.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
6876 |
|
echo "$as_me: WARNING: sprng.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
6877 |
< |
{ echo "$as_me:$LINENO: WARNING: sprng.h: proceeding with the preprocessor's result" >&5 |
6878 |
< |
echo "$as_me: WARNING: sprng.h: proceeding with the preprocessor's result" >&2;} |
6879 |
< |
( |
6682 |
< |
cat <<\_ASBOX |
6683 |
< |
## ------------------------------------ ## |
6684 |
< |
## Report this to bug-autoconf@gnu.org. ## |
6685 |
< |
## ------------------------------------ ## |
6686 |
< |
_ASBOX |
6687 |
< |
) | |
6688 |
< |
sed "s/^/$as_me: WARNING: /" >&2 |
6877 |
> |
{ echo "$as_me:$LINENO: WARNING: sprng.h: proceeding with the compiler's result" >&5 |
6878 |
> |
echo "$as_me: WARNING: sprng.h: proceeding with the compiler's result" >&2;} |
6879 |
> |
ac_header_preproc=yes |
6880 |
|
;; |
6881 |
< |
no:yes ) |
6881 |
> |
no:yes:* ) |
6882 |
|
{ echo "$as_me:$LINENO: WARNING: sprng.h: present but cannot be compiled" >&5 |
6883 |
|
echo "$as_me: WARNING: sprng.h: present but cannot be compiled" >&2;} |
6884 |
< |
{ echo "$as_me:$LINENO: WARNING: sprng.h: check for missing prerequisite headers?" >&5 |
6885 |
< |
echo "$as_me: WARNING: sprng.h: check for missing prerequisite headers?" >&2;} |
6884 |
> |
{ echo "$as_me:$LINENO: WARNING: sprng.h: check for missing prerequisite headers?" >&5 |
6885 |
> |
echo "$as_me: WARNING: sprng.h: check for missing prerequisite headers?" >&2;} |
6886 |
> |
{ echo "$as_me:$LINENO: WARNING: sprng.h: see the Autoconf documentation" >&5 |
6887 |
> |
echo "$as_me: WARNING: sprng.h: see the Autoconf documentation" >&2;} |
6888 |
> |
{ echo "$as_me:$LINENO: WARNING: sprng.h: section \"Present But Cannot Be Compiled\"" >&5 |
6889 |
> |
echo "$as_me: WARNING: sprng.h: section \"Present But Cannot Be Compiled\"" >&2;} |
6890 |
|
{ echo "$as_me:$LINENO: WARNING: sprng.h: proceeding with the preprocessor's result" >&5 |
6891 |
|
echo "$as_me: WARNING: sprng.h: proceeding with the preprocessor's result" >&2;} |
6892 |
+ |
{ echo "$as_me:$LINENO: WARNING: sprng.h: in the future, the compiler will take precedence" >&5 |
6893 |
+ |
echo "$as_me: WARNING: sprng.h: in the future, the compiler will take precedence" >&2;} |
6894 |
|
( |
6895 |
|
cat <<\_ASBOX |
6896 |
< |
## ------------------------------------ ## |
6897 |
< |
## Report this to bug-autoconf@gnu.org. ## |
6898 |
< |
## ------------------------------------ ## |
6896 |
> |
## ------------------------------ ## |
6897 |
> |
## Report this to gezelter@nd.edu ## |
6898 |
> |
## ------------------------------ ## |
6899 |
|
_ASBOX |
6900 |
|
) | |
6901 |
|
sed "s/^/$as_me: WARNING: /" >&2 |
6922 |
|
ac_check_lib_save_LIBS=$LIBS |
6923 |
|
LIBS="-lsprng $LIBS" |
6924 |
|
cat >conftest.$ac_ext <<_ACEOF |
6728 |
– |
#line $LINENO "configure" |
6925 |
|
/* confdefs.h. */ |
6926 |
|
_ACEOF |
6927 |
|
cat confdefs.h >>conftest.$ac_ext |
6945 |
|
_ACEOF |
6946 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
6947 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
6948 |
< |
(eval $ac_link) 2>&5 |
6948 |
> |
(eval $ac_link) 2>conftest.er1 |
6949 |
|
ac_status=$? |
6950 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
6951 |
+ |
rm -f conftest.er1 |
6952 |
+ |
cat conftest.err >&5 |
6953 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6954 |
|
(exit $ac_status); } && |
6955 |
< |
{ ac_try='test -s conftest$ac_exeext' |
6955 |
> |
{ ac_try='test -z "$ac_c_werror_flag" |
6956 |
> |
|| test ! -s conftest.err' |
6957 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6958 |
|
(eval $ac_try) 2>&5 |
6959 |
|
ac_status=$? |
6960 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6961 |
+ |
(exit $ac_status); }; } && |
6962 |
+ |
{ ac_try='test -s conftest$ac_exeext' |
6963 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6964 |
+ |
(eval $ac_try) 2>&5 |
6965 |
+ |
ac_status=$? |
6966 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6967 |
|
(exit $ac_status); }; }; then |
6968 |
|
ac_cv_lib_sprng_init_rng=yes |
6969 |
|
else |
6972 |
|
|
6973 |
|
ac_cv_lib_sprng_init_rng=no |
6974 |
|
fi |
6975 |
< |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
6975 |
> |
rm -f conftest.err conftest.$ac_objext \ |
6976 |
> |
conftest$ac_exeext conftest.$ac_ext |
6977 |
|
LIBS=$ac_check_lib_save_LIBS |
6978 |
|
fi |
6979 |
|
echo "$as_me:$LINENO: result: $ac_cv_lib_sprng_init_rng" >&5 |
7014 |
|
withval="$with_mkl" |
7015 |
|
echo "$as_me:$LINENO: result: yes" >&5 |
7016 |
|
echo "${ECHO_T}yes" >&6 |
7017 |
< |
for dir in $withval /usr/local/intel/mkl60 /opt/intel/mkl60; do |
7017 |
> |
for dir in $withval /usr/local/intel/mkl61 /opt/intel/mkl61; do |
7018 |
|
mkldir="$dir" |
7019 |
|
if test -f "$dir/include/mkl.h"; then |
7020 |
|
found_mkl="yes"; |
7054 |
|
echo "$as_me:$LINENO: checking mkl.h usability" >&5 |
7055 |
|
echo $ECHO_N "checking mkl.h usability... $ECHO_C" >&6 |
7056 |
|
cat >conftest.$ac_ext <<_ACEOF |
6850 |
– |
#line $LINENO "configure" |
7057 |
|
/* confdefs.h. */ |
7058 |
|
_ACEOF |
7059 |
|
cat confdefs.h >>conftest.$ac_ext |
7064 |
|
_ACEOF |
7065 |
|
rm -f conftest.$ac_objext |
7066 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
7067 |
< |
(eval $ac_compile) 2>&5 |
7067 |
> |
(eval $ac_compile) 2>conftest.er1 |
7068 |
|
ac_status=$? |
7069 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
7070 |
+ |
rm -f conftest.er1 |
7071 |
+ |
cat conftest.err >&5 |
7072 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7073 |
|
(exit $ac_status); } && |
7074 |
< |
{ ac_try='test -s conftest.$ac_objext' |
7074 |
> |
{ ac_try='test -z "$ac_c_werror_flag" |
7075 |
> |
|| test ! -s conftest.err' |
7076 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7077 |
|
(eval $ac_try) 2>&5 |
7078 |
|
ac_status=$? |
7079 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7080 |
+ |
(exit $ac_status); }; } && |
7081 |
+ |
{ ac_try='test -s conftest.$ac_objext' |
7082 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7083 |
+ |
(eval $ac_try) 2>&5 |
7084 |
+ |
ac_status=$? |
7085 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7086 |
|
(exit $ac_status); }; }; then |
7087 |
|
ac_header_compiler=yes |
7088 |
|
else |
7091 |
|
|
7092 |
|
ac_header_compiler=no |
7093 |
|
fi |
7094 |
< |
rm -f conftest.$ac_objext conftest.$ac_ext |
7094 |
> |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7095 |
|
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7096 |
|
echo "${ECHO_T}$ac_header_compiler" >&6 |
7097 |
|
|
7099 |
|
echo "$as_me:$LINENO: checking mkl.h presence" >&5 |
7100 |
|
echo $ECHO_N "checking mkl.h presence... $ECHO_C" >&6 |
7101 |
|
cat >conftest.$ac_ext <<_ACEOF |
6886 |
– |
#line $LINENO "configure" |
7102 |
|
/* confdefs.h. */ |
7103 |
|
_ACEOF |
7104 |
|
cat confdefs.h >>conftest.$ac_ext |
7116 |
|
(exit $ac_status); } >/dev/null; then |
7117 |
|
if test -s conftest.err; then |
7118 |
|
ac_cpp_err=$ac_c_preproc_warn_flag |
7119 |
+ |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
7120 |
|
else |
7121 |
|
ac_cpp_err= |
7122 |
|
fi |
7136 |
|
echo "${ECHO_T}$ac_header_preproc" >&6 |
7137 |
|
|
7138 |
|
# So? What about this header? |
7139 |
< |
case $ac_header_compiler:$ac_header_preproc in |
7140 |
< |
yes:no ) |
7139 |
> |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
7140 |
> |
yes:no: ) |
7141 |
|
{ echo "$as_me:$LINENO: WARNING: mkl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
7142 |
|
echo "$as_me: WARNING: mkl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
7143 |
< |
{ echo "$as_me:$LINENO: WARNING: mkl.h: proceeding with the preprocessor's result" >&5 |
7144 |
< |
echo "$as_me: WARNING: mkl.h: proceeding with the preprocessor's result" >&2;} |
7145 |
< |
( |
6930 |
< |
cat <<\_ASBOX |
6931 |
< |
## ------------------------------------ ## |
6932 |
< |
## Report this to bug-autoconf@gnu.org. ## |
6933 |
< |
## ------------------------------------ ## |
6934 |
< |
_ASBOX |
6935 |
< |
) | |
6936 |
< |
sed "s/^/$as_me: WARNING: /" >&2 |
7143 |
> |
{ echo "$as_me:$LINENO: WARNING: mkl.h: proceeding with the compiler's result" >&5 |
7144 |
> |
echo "$as_me: WARNING: mkl.h: proceeding with the compiler's result" >&2;} |
7145 |
> |
ac_header_preproc=yes |
7146 |
|
;; |
7147 |
< |
no:yes ) |
7147 |
> |
no:yes:* ) |
7148 |
|
{ echo "$as_me:$LINENO: WARNING: mkl.h: present but cannot be compiled" >&5 |
7149 |
|
echo "$as_me: WARNING: mkl.h: present but cannot be compiled" >&2;} |
7150 |
< |
{ echo "$as_me:$LINENO: WARNING: mkl.h: check for missing prerequisite headers?" >&5 |
7151 |
< |
echo "$as_me: WARNING: mkl.h: check for missing prerequisite headers?" >&2;} |
7150 |
> |
{ echo "$as_me:$LINENO: WARNING: mkl.h: check for missing prerequisite headers?" >&5 |
7151 |
> |
echo "$as_me: WARNING: mkl.h: check for missing prerequisite headers?" >&2;} |
7152 |
> |
{ echo "$as_me:$LINENO: WARNING: mkl.h: see the Autoconf documentation" >&5 |
7153 |
> |
echo "$as_me: WARNING: mkl.h: see the Autoconf documentation" >&2;} |
7154 |
> |
{ echo "$as_me:$LINENO: WARNING: mkl.h: section \"Present But Cannot Be Compiled\"" >&5 |
7155 |
> |
echo "$as_me: WARNING: mkl.h: section \"Present But Cannot Be Compiled\"" >&2;} |
7156 |
|
{ echo "$as_me:$LINENO: WARNING: mkl.h: proceeding with the preprocessor's result" >&5 |
7157 |
|
echo "$as_me: WARNING: mkl.h: proceeding with the preprocessor's result" >&2;} |
7158 |
+ |
{ echo "$as_me:$LINENO: WARNING: mkl.h: in the future, the compiler will take precedence" >&5 |
7159 |
+ |
echo "$as_me: WARNING: mkl.h: in the future, the compiler will take precedence" >&2;} |
7160 |
|
( |
7161 |
|
cat <<\_ASBOX |
7162 |
< |
## ------------------------------------ ## |
7163 |
< |
## Report this to bug-autoconf@gnu.org. ## |
7164 |
< |
## ------------------------------------ ## |
7162 |
> |
## ------------------------------ ## |
7163 |
> |
## Report this to gezelter@nd.edu ## |
7164 |
> |
## ------------------------------ ## |
7165 |
|
_ASBOX |
7166 |
|
) | |
7167 |
|
sed "s/^/$as_me: WARNING: /" >&2 |
7188 |
|
ac_check_lib_save_LIBS=$LIBS |
7189 |
|
LIBS="-lmkl $LIBS" |
7190 |
|
cat >conftest.$ac_ext <<_ACEOF |
6976 |
– |
#line $LINENO "configure" |
7191 |
|
/* confdefs.h. */ |
7192 |
|
_ACEOF |
7193 |
|
cat confdefs.h >>conftest.$ac_ext |
7211 |
|
_ACEOF |
7212 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
7213 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
7214 |
< |
(eval $ac_link) 2>&5 |
7214 |
> |
(eval $ac_link) 2>conftest.er1 |
7215 |
|
ac_status=$? |
7216 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
7217 |
+ |
rm -f conftest.er1 |
7218 |
+ |
cat conftest.err >&5 |
7219 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7220 |
|
(exit $ac_status); } && |
7221 |
< |
{ ac_try='test -s conftest$ac_exeext' |
7221 |
> |
{ ac_try='test -z "$ac_c_werror_flag" |
7222 |
> |
|| test ! -s conftest.err' |
7223 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7224 |
|
(eval $ac_try) 2>&5 |
7225 |
|
ac_status=$? |
7226 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7227 |
+ |
(exit $ac_status); }; } && |
7228 |
+ |
{ ac_try='test -s conftest$ac_exeext' |
7229 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7230 |
+ |
(eval $ac_try) 2>&5 |
7231 |
+ |
ac_status=$? |
7232 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7233 |
|
(exit $ac_status); }; }; then |
7234 |
|
ac_cv_lib_mkl_vslNewStream=yes |
7235 |
|
else |
7238 |
|
|
7239 |
|
ac_cv_lib_mkl_vslNewStream=no |
7240 |
|
fi |
7241 |
< |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
7241 |
> |
rm -f conftest.err conftest.$ac_objext \ |
7242 |
> |
conftest$ac_exeext conftest.$ac_ext |
7243 |
|
LIBS=$ac_check_lib_save_LIBS |
7244 |
|
fi |
7245 |
|
echo "$as_me:$LINENO: result: $ac_cv_lib_mkl_vslNewStream" >&5 |
7309 |
|
|
7310 |
|
MKINSTALLDIRS=`pwd`/ac-tools/"shtool mkdir -p -f" |
7311 |
|
|
7312 |
< |
SUBDIRS="libBASS libmdtools src forceFields samples utils utils/sysbuilder staticProps" |
7312 |
> |
SUBDIRS="libBASS libmdtools src forceFields samples utils utils/sysbuilder staticProps third-party shapes" |
7313 |
|
|
7314 |
|
CFLAGS=${CFLAGS-""} |
7315 |
|
CXXFLAGS=${CXXFLAGS-""} |
7346 |
|
|
7347 |
|
ac_config_headers="$ac_config_headers libmdtools/config.h" |
7348 |
|
|
7349 |
< |
ac_config_files="$ac_config_files Makefile libBASS/Makefile libmdtools/Makefile src/Makefile utils/Makefile utils/sysbuilder/Makefile forceFields/Makefile samples/Makefile staticProps/Makefile samples/alkane/Makefile samples/argon/Makefile samples/beadLipid/Makefile samples/lipid/Makefile samples/metals/Makefile samples/water/Makefile" |
7349 |
> |
ac_config_files="$ac_config_files Makefile libBASS/Makefile libmdtools/Makefile src/Makefile utils/Makefile utils/sysbuilder/Makefile forceFields/Makefile samples/Makefile staticProps/Makefile third-party/Makefile samples/alkane/Makefile samples/argon/Makefile samples/beadLipid/Makefile samples/lipid/Makefile samples/metals/Makefile samples/water/Makefile shapes/Makefile" |
7350 |
|
|
7351 |
|
|
7352 |
|
cat >confcache <<\_ACEOF |
7377 |
|
# `set' does not quote correctly, so add quotes (double-quote |
7378 |
|
# substitution turns \\\\ into \\, and sed turns \\ into \). |
7379 |
|
sed -n \ |
7380 |
< |
"s/'/'\\\\''/g; |
7381 |
< |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
7380 |
> |
"s/'/'\\\\''/g; |
7381 |
> |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
7382 |
|
;; |
7383 |
|
*) |
7384 |
|
# `set' quotes correctly as required by POSIX, so do not add quotes. |
7385 |
|
sed -n \ |
7386 |
< |
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
7386 |
> |
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
7387 |
|
;; |
7388 |
|
esac; |
7389 |
|
} | |
7413 |
|
# trailing colons and then remove the whole line if VPATH becomes empty |
7414 |
|
# (actually we leave an empty line to preserve line numbers). |
7415 |
|
if test "x$srcdir" = x.; then |
7416 |
< |
ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
7416 |
> |
ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
7417 |
|
s/:*\$(srcdir):*/:/; |
7418 |
|
s/:*\${srcdir}:*/:/; |
7419 |
|
s/:*@srcdir@:*/:/; |
7420 |
< |
s/^\([^=]*=[ ]*\):*/\1/; |
7420 |
> |
s/^\([^=]*=[ ]*\):*/\1/; |
7421 |
|
s/:*$//; |
7422 |
< |
s/^[^=]*=[ ]*$//; |
7422 |
> |
s/^[^=]*=[ ]*$//; |
7423 |
|
}' |
7424 |
|
fi |
7425 |
|
|
7430 |
|
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
7431 |
|
# 1. Remove the extension, and $U if already installed. |
7432 |
|
ac_i=`echo "$ac_i" | |
7433 |
< |
sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
7433 |
> |
sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
7434 |
|
# 2. Add them. |
7435 |
|
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
7436 |
|
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
7474 |
|
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
7475 |
|
set -o posix |
7476 |
|
fi |
7477 |
+ |
DUALCASE=1; export DUALCASE # for MKS sh |
7478 |
|
|
7479 |
|
# Support unset when possible. |
7480 |
< |
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
7480 |
> |
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
7481 |
|
as_unset=unset |
7482 |
|
else |
7483 |
|
as_unset=false |
7496 |
|
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
7497 |
|
LC_TELEPHONE LC_TIME |
7498 |
|
do |
7499 |
< |
if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then |
7499 |
> |
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
7500 |
|
eval $as_var=C; export $as_var |
7501 |
|
else |
7502 |
|
$as_unset $as_var |
7675 |
|
if mkdir -p . 2>/dev/null; then |
7676 |
|
as_mkdir_p=: |
7677 |
|
else |
7678 |
+ |
test -d ./-p && rmdir ./-p |
7679 |
|
as_mkdir_p=false |
7680 |
|
fi |
7681 |
|
|
7682 |
|
as_executable_p="test -f" |
7683 |
|
|
7684 |
|
# Sed expression to map a string onto a valid CPP name. |
7685 |
< |
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
7685 |
> |
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
7686 |
|
|
7687 |
|
# Sed expression to map a string onto a valid variable name. |
7688 |
< |
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
7688 |
> |
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
7689 |
|
|
7690 |
|
|
7691 |
|
# IFS |
7712 |
|
cat >&5 <<_CSEOF |
7713 |
|
|
7714 |
|
This file was extended by OOPSE $as_me 1.0, which was |
7715 |
< |
generated by GNU Autoconf 2.57. Invocation command line was |
7715 |
> |
generated by GNU Autoconf 2.59. Invocation command line was |
7716 |
|
|
7717 |
|
CONFIG_FILES = $CONFIG_FILES |
7718 |
|
CONFIG_HEADERS = $CONFIG_HEADERS |
7756 |
|
-d, --debug don't remove temporary files |
7757 |
|
--recheck update $as_me by reconfiguring in the same conditions |
7758 |
|
--file=FILE[:TEMPLATE] |
7759 |
< |
instantiate the configuration file FILE |
7759 |
> |
instantiate the configuration file FILE |
7760 |
|
--header=FILE[:TEMPLATE] |
7761 |
< |
instantiate the configuration header FILE |
7761 |
> |
instantiate the configuration header FILE |
7762 |
|
|
7763 |
|
Configuration files: |
7764 |
|
$config_files |
7772 |
|
cat >>$CONFIG_STATUS <<_ACEOF |
7773 |
|
ac_cs_version="\\ |
7774 |
|
OOPSE config.status 1.0 |
7775 |
< |
configured by $0, generated by GNU Autoconf 2.57, |
7775 |
> |
configured by $0, generated by GNU Autoconf 2.59, |
7776 |
|
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
7777 |
|
|
7778 |
< |
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
7552 |
< |
Free Software Foundation, Inc. |
7778 |
> |
Copyright (C) 2003 Free Software Foundation, Inc. |
7779 |
|
This config.status script is free software; the Free Software Foundation |
7780 |
|
gives unlimited permission to copy, distribute and modify it." |
7781 |
|
srcdir=$srcdir |
7883 |
|
"forceFields/Makefile" ) CONFIG_FILES="$CONFIG_FILES forceFields/Makefile" ;; |
7884 |
|
"samples/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/Makefile" ;; |
7885 |
|
"staticProps/Makefile" ) CONFIG_FILES="$CONFIG_FILES staticProps/Makefile" ;; |
7886 |
+ |
"third-party/Makefile" ) CONFIG_FILES="$CONFIG_FILES third-party/Makefile" ;; |
7887 |
|
"samples/alkane/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/alkane/Makefile" ;; |
7888 |
|
"samples/argon/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/argon/Makefile" ;; |
7889 |
|
"samples/beadLipid/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/beadLipid/Makefile" ;; |
7890 |
|
"samples/lipid/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/lipid/Makefile" ;; |
7891 |
|
"samples/metals/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/metals/Makefile" ;; |
7892 |
|
"samples/water/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/water/Makefile" ;; |
7893 |
+ |
"shapes/Makefile" ) CONFIG_FILES="$CONFIG_FILES shapes/Makefile" ;; |
7894 |
|
"libmdtools/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS libmdtools/config.h" ;; |
7895 |
|
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
7896 |
|
echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
8022 |
|
s,@LEXLIB@,$LEXLIB,;t t |
8023 |
|
s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t |
8024 |
|
s,@AR@,$AR,;t t |
8025 |
< |
s,@mpi_dir@,$mpi_dir,;t t |
8025 |
> |
s,@mpi@,$mpi,;t t |
8026 |
|
s,@MPI_LIBDIR@,$MPI_LIBDIR,;t t |
8027 |
|
s,@MPI_INC@,$MPI_INC,;t t |
8028 |
+ |
s,@MPI_F90INC@,$MPI_F90INC,;t t |
8029 |
|
s,@MPI_LIB@,$MPI_LIB,;t t |
8030 |
< |
s,@MPIF77@,$MPIF77,;t t |
7802 |
< |
s,@MPIF90@,$MPIF90,;t t |
7803 |
< |
s,@MPILIBS@,$MPILIBS,;t t |
7804 |
< |
s,@MPI_F90_MODS@,$MPI_F90_MODS,;t t |
7805 |
< |
s,@MPIMODLIBNAME@,$MPIMODLIBNAME,;t t |
7806 |
< |
s,@EGREP@,$EGREP,;t t |
8030 |
> |
s,@MPI_F90LIB@,$MPI_F90LIB,;t t |
8031 |
|
s,@CPP@,$CPP,;t t |
8032 |
+ |
s,@EGREP@,$EGREP,;t t |
8033 |
|
s,@SPRNG_LIBDIR@,$SPRNG_LIBDIR,;t t |
8034 |
|
s,@SPRNG_LIB@,$SPRNG_LIB,;t t |
8035 |
|
s,@SPRNG_INC@,$SPRNG_INC,;t t |
8075 |
|
(echo ':t |
8076 |
|
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
8077 |
|
if test -z "$ac_sed_cmds"; then |
8078 |
< |
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
8078 |
> |
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
8079 |
|
else |
8080 |
< |
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
8080 |
> |
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
8081 |
|
fi |
8082 |
|
ac_sed_frag=`expr $ac_sed_frag + 1` |
8083 |
|
ac_beg=$ac_end |
8095 |
|
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
8096 |
|
case $ac_file in |
8097 |
|
- | *:- | *:-:* ) # input from stdin |
8098 |
< |
cat >$tmp/stdin |
8099 |
< |
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
8100 |
< |
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
8098 |
> |
cat >$tmp/stdin |
8099 |
> |
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
8100 |
> |
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
8101 |
|
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
8102 |
< |
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
8102 |
> |
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
8103 |
|
* ) ac_file_in=$ac_file.in ;; |
8104 |
|
esac |
8105 |
|
|
8106 |
|
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
8107 |
|
ac_dir=`(dirname "$ac_file") 2>/dev/null || |
8108 |
|
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8109 |
< |
X"$ac_file" : 'X\(//\)[^/]' \| \ |
8110 |
< |
X"$ac_file" : 'X\(//\)$' \| \ |
8111 |
< |
X"$ac_file" : 'X\(/\)' \| \ |
8112 |
< |
. : '\(.\)' 2>/dev/null || |
8109 |
> |
X"$ac_file" : 'X\(//\)[^/]' \| \ |
8110 |
> |
X"$ac_file" : 'X\(//\)$' \| \ |
8111 |
> |
X"$ac_file" : 'X\(/\)' \| \ |
8112 |
> |
. : '\(.\)' 2>/dev/null || |
8113 |
|
echo X"$ac_file" | |
8114 |
|
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
8115 |
|
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
8125 |
|
as_dirs="$as_dir $as_dirs" |
8126 |
|
as_dir=`(dirname "$as_dir") 2>/dev/null || |
8127 |
|
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8128 |
< |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
8129 |
< |
X"$as_dir" : 'X\(//\)$' \| \ |
8130 |
< |
X"$as_dir" : 'X\(/\)' \| \ |
8131 |
< |
. : '\(.\)' 2>/dev/null || |
8128 |
> |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
8129 |
> |
X"$as_dir" : 'X\(//\)$' \| \ |
8130 |
> |
X"$as_dir" : 'X\(/\)' \| \ |
8131 |
> |
. : '\(.\)' 2>/dev/null || |
8132 |
|
echo X"$as_dir" | |
8133 |
|
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
8134 |
|
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
8166 |
|
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
8167 |
|
ac_top_srcdir=$ac_top_builddir$srcdir ;; |
8168 |
|
esac |
7944 |
– |
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
7945 |
– |
# absolute. |
7946 |
– |
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
7947 |
– |
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
7948 |
– |
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
7949 |
– |
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
8169 |
|
|
8170 |
+ |
# Do not use `cd foo && pwd` to compute absolute paths, because |
8171 |
+ |
# the directories may not exist. |
8172 |
+ |
case `pwd` in |
8173 |
+ |
.) ac_abs_builddir="$ac_dir";; |
8174 |
+ |
*) |
8175 |
+ |
case "$ac_dir" in |
8176 |
+ |
.) ac_abs_builddir=`pwd`;; |
8177 |
+ |
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
8178 |
+ |
*) ac_abs_builddir=`pwd`/"$ac_dir";; |
8179 |
+ |
esac;; |
8180 |
+ |
esac |
8181 |
+ |
case $ac_abs_builddir in |
8182 |
+ |
.) ac_abs_top_builddir=${ac_top_builddir}.;; |
8183 |
+ |
*) |
8184 |
+ |
case ${ac_top_builddir}. in |
8185 |
+ |
.) ac_abs_top_builddir=$ac_abs_builddir;; |
8186 |
+ |
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
8187 |
+ |
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
8188 |
+ |
esac;; |
8189 |
+ |
esac |
8190 |
+ |
case $ac_abs_builddir in |
8191 |
+ |
.) ac_abs_srcdir=$ac_srcdir;; |
8192 |
+ |
*) |
8193 |
+ |
case $ac_srcdir in |
8194 |
+ |
.) ac_abs_srcdir=$ac_abs_builddir;; |
8195 |
+ |
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
8196 |
+ |
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
8197 |
+ |
esac;; |
8198 |
+ |
esac |
8199 |
+ |
case $ac_abs_builddir in |
8200 |
+ |
.) ac_abs_top_srcdir=$ac_top_srcdir;; |
8201 |
+ |
*) |
8202 |
+ |
case $ac_top_srcdir in |
8203 |
+ |
.) ac_abs_top_srcdir=$ac_abs_builddir;; |
8204 |
+ |
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
8205 |
+ |
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
8206 |
+ |
esac;; |
8207 |
+ |
esac |
8208 |
|
|
8209 |
+ |
|
8210 |
|
case $INSTALL in |
8211 |
|
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
8212 |
|
*) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
8226 |
|
configure_input="$ac_file. " |
8227 |
|
fi |
8228 |
|
configure_input=$configure_input"Generated from `echo $ac_file_in | |
8229 |
< |
sed 's,.*/,,'` by configure." |
8229 |
> |
sed 's,.*/,,'` by configure." |
8230 |
|
|
8231 |
|
# First look for the input files in the build tree, otherwise in the |
8232 |
|
# src tree. |
8235 |
|
case $f in |
8236 |
|
-) echo $tmp/stdin ;; |
8237 |
|
[\\/$]*) |
8238 |
< |
# Absolute (can't be DOS-style, as IFS=:) |
8239 |
< |
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
8238 |
> |
# Absolute (can't be DOS-style, as IFS=:) |
8239 |
> |
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
8240 |
|
echo "$as_me: error: cannot find input file: $f" >&2;} |
8241 |
|
{ (exit 1); exit 1; }; } |
8242 |
< |
echo $f;; |
8242 |
> |
echo "$f";; |
8243 |
|
*) # Relative |
8244 |
< |
if test -f "$f"; then |
8245 |
< |
# Build tree |
8246 |
< |
echo $f |
8247 |
< |
elif test -f "$srcdir/$f"; then |
8248 |
< |
# Source tree |
8249 |
< |
echo $srcdir/$f |
8250 |
< |
else |
8251 |
< |
# /dev/null tree |
8252 |
< |
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
8244 |
> |
if test -f "$f"; then |
8245 |
> |
# Build tree |
8246 |
> |
echo "$f" |
8247 |
> |
elif test -f "$srcdir/$f"; then |
8248 |
> |
# Source tree |
8249 |
> |
echo "$srcdir/$f" |
8250 |
> |
else |
8251 |
> |
# /dev/null tree |
8252 |
> |
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
8253 |
|
echo "$as_me: error: cannot find input file: $f" >&2;} |
8254 |
|
{ (exit 1); exit 1; }; } |
8255 |
< |
fi;; |
8255 |
> |
fi;; |
8256 |
|
esac |
8257 |
|
done` || { (exit 1); exit 1; } |
8258 |
|
_ACEOF |
8294 |
|
# NAME is the cpp macro being defined and VALUE is the value it is being given. |
8295 |
|
# |
8296 |
|
# ac_d sets the value in "#define NAME VALUE" lines. |
8297 |
< |
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
8298 |
< |
ac_dB='[ ].*$,\1#\2' |
8297 |
> |
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
8298 |
> |
ac_dB='[ ].*$,\1#\2' |
8299 |
|
ac_dC=' ' |
8300 |
|
ac_dD=',;t' |
8301 |
|
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
8302 |
< |
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
8302 |
> |
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
8303 |
|
ac_uB='$,\1#\2define\3' |
8304 |
|
ac_uC=' ' |
8305 |
|
ac_uD=',;t' |
8308 |
|
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
8309 |
|
case $ac_file in |
8310 |
|
- | *:- | *:-:* ) # input from stdin |
8311 |
< |
cat >$tmp/stdin |
8312 |
< |
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
8313 |
< |
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
8311 |
> |
cat >$tmp/stdin |
8312 |
> |
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
8313 |
> |
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
8314 |
|
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
8315 |
< |
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
8315 |
> |
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
8316 |
|
* ) ac_file_in=$ac_file.in ;; |
8317 |
|
esac |
8318 |
|
|
8326 |
|
case $f in |
8327 |
|
-) echo $tmp/stdin ;; |
8328 |
|
[\\/$]*) |
8329 |
< |
# Absolute (can't be DOS-style, as IFS=:) |
8330 |
< |
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
8329 |
> |
# Absolute (can't be DOS-style, as IFS=:) |
8330 |
> |
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
8331 |
|
echo "$as_me: error: cannot find input file: $f" >&2;} |
8332 |
|
{ (exit 1); exit 1; }; } |
8333 |
< |
echo $f;; |
8333 |
> |
# Do quote $f, to prevent DOS paths from being IFS'd. |
8334 |
> |
echo "$f";; |
8335 |
|
*) # Relative |
8336 |
< |
if test -f "$f"; then |
8337 |
< |
# Build tree |
8338 |
< |
echo $f |
8339 |
< |
elif test -f "$srcdir/$f"; then |
8340 |
< |
# Source tree |
8341 |
< |
echo $srcdir/$f |
8342 |
< |
else |
8343 |
< |
# /dev/null tree |
8344 |
< |
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
8336 |
> |
if test -f "$f"; then |
8337 |
> |
# Build tree |
8338 |
> |
echo "$f" |
8339 |
> |
elif test -f "$srcdir/$f"; then |
8340 |
> |
# Source tree |
8341 |
> |
echo "$srcdir/$f" |
8342 |
> |
else |
8343 |
> |
# /dev/null tree |
8344 |
> |
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
8345 |
|
echo "$as_me: error: cannot find input file: $f" >&2;} |
8346 |
|
{ (exit 1); exit 1; }; } |
8347 |
< |
fi;; |
8347 |
> |
fi;; |
8348 |
|
esac |
8349 |
|
done` || { (exit 1); exit 1; } |
8350 |
|
# Remove the trailing spaces. |
8351 |
< |
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
8351 |
> |
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
8352 |
|
|
8353 |
|
_ACEOF |
8354 |
|
|
8371 |
|
s,[\\$`],\\&,g |
8372 |
|
t clear |
8373 |
|
: clear |
8374 |
< |
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
8374 |
> |
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
8375 |
|
t end |
8376 |
< |
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
8376 |
> |
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
8377 |
|
: end |
8378 |
|
_ACEOF |
8379 |
|
# If some macros were called several times there might be several times |
8387 |
|
# example, in the case of _POSIX_SOURCE, which is predefined and required |
8388 |
|
# on some systems where configure will not decide to define it. |
8389 |
|
cat >>conftest.undefs <<\_ACEOF |
8390 |
< |
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
8390 |
> |
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
8391 |
|
_ACEOF |
8392 |
|
|
8393 |
|
# Break up conftest.defines because some shells have a limit on the size |
8394 |
|
# of here documents, and old seds have small limits too (100 cmds). |
8395 |
|
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
8396 |
< |
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
8396 |
> |
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
8397 |
|
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
8398 |
|
echo ' :' >>$CONFIG_STATUS |
8399 |
|
rm -f conftest.tail |
8402 |
|
# Write a limited-size here document to $tmp/defines.sed. |
8403 |
|
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
8404 |
|
# Speed up: don't consider the non `#define' lines. |
8405 |
< |
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
8405 |
> |
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
8406 |
|
# Work around the forget-to-reset-the-flag bug. |
8407 |
|
echo 't clr' >>$CONFIG_STATUS |
8408 |
|
echo ': clr' >>$CONFIG_STATUS |
8429 |
|
# Write a limited-size here document to $tmp/undefs.sed. |
8430 |
|
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
8431 |
|
# Speed up: don't consider the non `#undef' |
8432 |
< |
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
8432 |
> |
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
8433 |
|
# Work around the forget-to-reset-the-flag bug. |
8434 |
|
echo 't clr' >>$CONFIG_STATUS |
8435 |
|
echo ': clr' >>$CONFIG_STATUS |
8463 |
|
else |
8464 |
|
ac_dir=`(dirname "$ac_file") 2>/dev/null || |
8465 |
|
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8466 |
< |
X"$ac_file" : 'X\(//\)[^/]' \| \ |
8467 |
< |
X"$ac_file" : 'X\(//\)$' \| \ |
8468 |
< |
X"$ac_file" : 'X\(/\)' \| \ |
8469 |
< |
. : '\(.\)' 2>/dev/null || |
8466 |
> |
X"$ac_file" : 'X\(//\)[^/]' \| \ |
8467 |
> |
X"$ac_file" : 'X\(//\)$' \| \ |
8468 |
> |
X"$ac_file" : 'X\(/\)' \| \ |
8469 |
> |
. : '\(.\)' 2>/dev/null || |
8470 |
|
echo X"$ac_file" | |
8471 |
|
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
8472 |
|
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
8482 |
|
as_dirs="$as_dir $as_dirs" |
8483 |
|
as_dir=`(dirname "$as_dir") 2>/dev/null || |
8484 |
|
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8485 |
< |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
8486 |
< |
X"$as_dir" : 'X\(//\)$' \| \ |
8487 |
< |
X"$as_dir" : 'X\(/\)' \| \ |
8488 |
< |
. : '\(.\)' 2>/dev/null || |
8485 |
> |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
8486 |
> |
X"$as_dir" : 'X\(//\)$' \| \ |
8487 |
> |
X"$as_dir" : 'X\(/\)' \| \ |
8488 |
> |
. : '\(.\)' 2>/dev/null || |
8489 |
|
echo X"$as_dir" | |
8490 |
|
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
8491 |
|
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |