1 |
|
#! /bin/sh |
2 |
|
# Guess values for system-dependent variables and create Makefiles. |
3 |
< |
# Generated by GNU Autoconf 2.61 for OOPSE 3.0. |
3 |
> |
# Generated by GNU Autoconf 2.61 for OOPSE 4.0. |
4 |
|
# |
5 |
|
# Report bugs to <gezelter@nd.edu>. |
6 |
|
# |
49 |
|
else |
50 |
|
PATH_SEPARATOR=: |
51 |
|
fi |
52 |
< |
rm -rf conf$$.sh |
52 |
> |
rm -f conf$$.sh |
53 |
|
fi |
54 |
|
|
55 |
|
# Support unset when possible. |
489 |
|
as_expr=false |
490 |
|
fi |
491 |
|
|
492 |
< |
rm -rf conf$$ conf$$.exe conf$$.file |
492 |
> |
rm -f conf$$ conf$$.exe conf$$.file |
493 |
|
if test -d conf$$.dir; then |
494 |
< |
rm -rf conf$$.dir/conf$$.file |
494 |
> |
rm -f conf$$.dir/conf$$.file |
495 |
|
else |
496 |
< |
rm -rf conf$$.dir |
496 |
> |
rm -f conf$$.dir |
497 |
|
mkdir conf$$.dir |
498 |
|
fi |
499 |
|
echo >conf$$.file |
510 |
|
else |
511 |
|
as_ln_s='cp -p' |
512 |
|
fi |
513 |
< |
rm -rf conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
513 |
> |
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
514 |
|
rmdir conf$$.dir 2>/dev/null |
515 |
|
|
516 |
|
if mkdir -p . 2>/dev/null; then |
574 |
|
# Identity of this package. |
575 |
|
PACKAGE_NAME='OOPSE' |
576 |
|
PACKAGE_TARNAME='oopse' |
577 |
< |
PACKAGE_VERSION='3.0' |
578 |
< |
PACKAGE_STRING='OOPSE 3.0' |
577 |
> |
PACKAGE_VERSION='4.0' |
578 |
> |
PACKAGE_STRING='OOPSE 4.0' |
579 |
|
PACKAGE_BUGREPORT='gezelter@nd.edu' |
580 |
|
|
581 |
|
ac_unique_file="src/applications/oopse/oopse.cpp" |
664 |
|
PROGNAME |
665 |
|
debug |
666 |
|
USE_SINGLE_PRECISION |
667 |
+ |
ac_cc_set |
668 |
+ |
ac_cc_path |
669 |
+ |
ac_cxx_set |
670 |
+ |
ac_cxx_path |
671 |
+ |
ac_fc_set |
672 |
+ |
ac_fc_path |
673 |
+ |
acx_mpi_mpicc |
674 |
+ |
acx_mpi_mpicc_path |
675 |
+ |
acx_mpi_mpif90 |
676 |
+ |
acx_mpi_mpif90_path |
677 |
+ |
acx_mpi_mpicxx |
678 |
+ |
acx_mpi_mpicxx_path |
679 |
+ |
MPI_CPPFLAGS |
680 |
+ |
MPI_LIBS |
681 |
+ |
MPI90_LIBS |
682 |
+ |
USE_MPI |
683 |
|
CXX |
684 |
|
CXXFLAGS |
685 |
|
LDFLAGS |
723 |
|
FFTW_INC_DIR |
724 |
|
FFTW_LIB_DIR |
725 |
|
FFTW_LIBS |
726 |
+ |
QHULL_INC_DIR |
727 |
+ |
QHULL_LIB_DIR |
728 |
+ |
QHULL |
729 |
+ |
USE_QHULL |
730 |
+ |
CXXCPP |
731 |
+ |
OPENBABEL_INC_DIR |
732 |
+ |
OPENBABEL_LIB_DIR |
733 |
+ |
OPENBABEL_LIB |
734 |
+ |
USE_OPENBABEL |
735 |
|
LIBOBJS |
736 |
|
POW_LIB |
737 |
< |
CXXCPP |
738 |
< |
__func__ |
739 |
< |
MPI_LIB_DIR |
740 |
< |
MPI_INC_DIR |
741 |
< |
MPI_F90_INC |
742 |
< |
MPI_LIB |
718 |
< |
MPI_F90_LIB |
719 |
< |
USE_MPI |
737 |
> |
CGAL_MAKEFILE |
738 |
> |
CGAL_CXXFLAGS |
739 |
> |
CGAL_CPPFLAGS |
740 |
> |
CGAL_LDFLAGS |
741 |
> |
CGAL_LIBS |
742 |
> |
USE_CGAL |
743 |
|
DOXYGEN |
744 |
|
DOT |
745 |
|
DOC |
1270 |
|
# Omit some internal or obsolete options to make the list less imposing. |
1271 |
|
# This message is too long to be a string in the A/UX 3.1 sh. |
1272 |
|
cat <<_ACEOF |
1273 |
< |
\`configure' configures OOPSE 3.0 to adapt to many kinds of systems. |
1273 |
> |
\`configure' configures OOPSE 4.0 to adapt to many kinds of systems. |
1274 |
|
|
1275 |
|
Usage: $0 [OPTION]... [VAR=VALUE]... |
1276 |
|
|
1335 |
|
|
1336 |
|
if test -n "$ac_init_help"; then |
1337 |
|
case $ac_init_help in |
1338 |
< |
short | recursive ) echo "Configuration of OOPSE 3.0:";; |
1338 |
> |
short | recursive ) echo "Configuration of OOPSE 4.0:";; |
1339 |
|
esac |
1340 |
|
cat <<\_ACEOF |
1341 |
|
|
1354 |
|
Optional Packages: |
1355 |
|
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1356 |
|
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1357 |
+ |
--with-mpi=auto|mpich|lam|openmpi|no |
1358 |
+ |
Indicates which kind of MPI implementation to use |
1359 |
+ |
[default=auto] |
1360 |
|
--with-perl-shebang override what perl thinks is the way for the kernel |
1361 |
|
to start it (seldom needed) |
1362 |
|
--with-zlib=DIR root directory path of zlib installation (defaults |
1363 |
|
to /usr/local or /usr if not found in /usr/local) |
1364 |
|
--with-fftw=DIR root directory path of fftw installation (defaults |
1365 |
|
to /usr/local or /usr if not found in /usr/local) |
1366 |
< |
--with-mpi=<prefix> compile with MPI installed in <prefix> [default=no] |
1366 |
> |
--with-qhull=DIR root directory path of qhull installation (defaults |
1367 |
> |
to /usr/local or /usr if not found in /usr/local) |
1368 |
> |
--with-openbabel=DIR root directory path of openbabel-2.x installation |
1369 |
> |
(defaults to /usr/local or /usr if not found in |
1370 |
> |
/usr/local) |
1371 |
> |
--with-cgalmakefile=makefile |
1372 |
> |
Use the following CGAL makefile |
1373 |
|
|
1374 |
|
Some influential environment variables: |
1375 |
|
CXX C++ compiler command |
1450 |
|
test -n "$ac_init_help" && exit $ac_status |
1451 |
|
if $ac_init_version; then |
1452 |
|
cat <<\_ACEOF |
1453 |
< |
OOPSE configure 3.0 |
1453 |
> |
OOPSE configure 4.0 |
1454 |
|
generated by GNU Autoconf 2.61 |
1455 |
|
|
1456 |
|
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
1464 |
|
This file contains any messages produced by compilers while |
1465 |
|
running configure, to aid debugging if configure makes a mistake. |
1466 |
|
|
1467 |
< |
It was created by OOPSE $as_me 3.0, which was |
1467 |
> |
It was created by OOPSE $as_me 4.0, which was |
1468 |
|
generated by GNU Autoconf 2.61. Invocation command line was |
1469 |
|
|
1470 |
|
$ $0 $@ |
1660 |
|
echo "$as_me: caught signal $ac_signal" |
1661 |
|
echo "$as_me: exit $exit_status" |
1662 |
|
} >&5 |
1663 |
< |
rm -rf core *.core core.conftest.* && |
1663 |
> |
rm -f core *.core core.conftest.* && |
1664 |
|
rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
1665 |
|
exit $exit_status |
1666 |
|
' 0 |
1903 |
|
|
1904 |
|
|
1905 |
|
|
1906 |
+ |
|
1907 |
+ |
|
1908 |
+ |
|
1909 |
+ |
|
1910 |
|
# AC_F90_MODULE_NAMES |
1911 |
|
# ------------------- |
1912 |
|
# |
1913 |
|
# Figure out how the Fortran 90 compiler constructs module file names |
1914 |
|
# |
1915 |
|
# AC_F90_MODULE_NAMES |
1916 |
+ |
|
1917 |
+ |
|
1918 |
+ |
|
1919 |
+ |
|
1920 |
+ |
|
1921 |
+ |
|
1922 |
+ |
|
1923 |
+ |
|
1924 |
+ |
|
1925 |
+ |
|
1926 |
+ |
|
1927 |
+ |
|
1928 |
+ |
|
1929 |
+ |
|
1930 |
+ |
|
1931 |
+ |
|
1932 |
+ |
|
1933 |
+ |
|
1934 |
+ |
|
1935 |
+ |
|
1936 |
+ |
|
1937 |
+ |
|
1938 |
+ |
|
1939 |
+ |
|
1940 |
+ |
|
1941 |
+ |
|
1942 |
+ |
|
1943 |
+ |
|
1944 |
+ |
|
1945 |
|
|
1946 |
|
|
1947 |
|
|
2000 |
|
|
2001 |
|
|
2002 |
|
|
2003 |
+ |
# ACX_MPI_GET_PROG |
2004 |
|
|
2005 |
+ |
# ACX_DETECT_MPI_IMPLEMENTATION |
2006 |
|
|
2007 |
|
|
2008 |
|
|
2009 |
|
|
2010 |
|
|
2011 |
+ |
# ACX_MPI |
2012 |
|
|
2013 |
|
|
2014 |
|
|
2028 |
|
|
2029 |
|
|
2030 |
|
|
2031 |
+ |
|
2032 |
+ |
|
2033 |
+ |
|
2034 |
+ |
|
2035 |
+ |
|
2036 |
+ |
|
2037 |
+ |
|
2038 |
+ |
|
2039 |
+ |
# This is taken from http://autoqt.sourceforge.net/ |
2040 |
+ |
# Copyright (c) 2002, Geoffrey Wossum |
2041 |
+ |
# All rights reserved. |
2042 |
+ |
|
2043 |
+ |
# Redistribution and use in source and binary forms, with or without |
2044 |
+ |
# modification, are permitted provided that the following conditions are |
2045 |
+ |
# met: |
2046 |
+ |
|
2047 |
+ |
# - Redistributions of source code must retain the above copyright notice, |
2048 |
+ |
# this list of conditions and the following disclaimer. |
2049 |
+ |
|
2050 |
+ |
# - Redistributions in binary form must reproduce the above copyright |
2051 |
+ |
# notice, this list of conditions and the following disclaimer in the |
2052 |
+ |
# documentation and/or other materials provided with the distribution. |
2053 |
+ |
|
2054 |
+ |
# - Neither the name of Geoffrey Wossum nor the names of its |
2055 |
+ |
# contributors may be used to endorse or promote products derived from |
2056 |
+ |
# this software without specific prior written permission. |
2057 |
+ |
|
2058 |
+ |
|
2059 |
+ |
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
2060 |
+ |
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED |
2061 |
+ |
# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
2062 |
+ |
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR |
2063 |
+ |
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, |
2064 |
+ |
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, |
2065 |
+ |
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; |
2066 |
+ |
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, |
2067 |
+ |
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR |
2068 |
+ |
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF |
2069 |
+ |
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
2070 |
|
|
2071 |
|
|
2072 |
+ |
# Check for Qt compiler flags, linker flags, and binary packages |
2073 |
|
|
2074 |
|
|
2075 |
|
|
2223 |
|
|
2224 |
|
fi |
2225 |
|
|
2226 |
< |
# Checks for programs. |
2227 |
< |
ac_ext=cpp |
2228 |
< |
ac_cpp='$CXXCPP $CPPFLAGS' |
2229 |
< |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2230 |
< |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2123 |
< |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
2124 |
< |
if test -z "$CXX"; then |
2125 |
< |
if test -n "$CCC"; then |
2126 |
< |
CXX=$CCC |
2127 |
< |
else |
2128 |
< |
if test -n "$ac_tool_prefix"; then |
2129 |
< |
for ac_prog in mpicxx icpc pathCC pgCC c++ xlc++ xlC g++ CC |
2130 |
< |
do |
2131 |
< |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
2132 |
< |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
2226 |
> |
if test x"$CC" != x; then |
2227 |
> |
for ac_prog in $CC |
2228 |
> |
do |
2229 |
> |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
2230 |
> |
set dummy $ac_prog; ac_word=$2 |
2231 |
|
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2232 |
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
2233 |
< |
if test "${ac_cv_prog_CXX+set}" = set; then |
2233 |
> |
if test "${ac_cv_prog_ac_cc_set+set}" = set; then |
2234 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2235 |
|
else |
2236 |
< |
if test -n "$CXX"; then |
2237 |
< |
ac_cv_prog_CXX="$CXX" # Let the user override the test. |
2236 |
> |
if test -n "$ac_cc_set"; then |
2237 |
> |
ac_cv_prog_ac_cc_set="$ac_cc_set" # Let the user override the test. |
2238 |
|
else |
2239 |
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2240 |
|
for as_dir in $PATH |
2243 |
|
test -z "$as_dir" && as_dir=. |
2244 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
2245 |
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2246 |
< |
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
2246 |
> |
ac_cv_prog_ac_cc_set="$ac_prog" |
2247 |
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2248 |
|
break 2 |
2249 |
|
fi |
2253 |
|
|
2254 |
|
fi |
2255 |
|
fi |
2256 |
< |
CXX=$ac_cv_prog_CXX |
2257 |
< |
if test -n "$CXX"; then |
2258 |
< |
{ echo "$as_me:$LINENO: result: $CXX" >&5 |
2259 |
< |
echo "${ECHO_T}$CXX" >&6; } |
2256 |
> |
ac_cc_set=$ac_cv_prog_ac_cc_set |
2257 |
> |
if test -n "$ac_cc_set"; then |
2258 |
> |
{ echo "$as_me:$LINENO: result: $ac_cc_set" >&5 |
2259 |
> |
echo "${ECHO_T}$ac_cc_set" >&6; } |
2260 |
|
else |
2261 |
|
{ echo "$as_me:$LINENO: result: no" >&5 |
2262 |
|
echo "${ECHO_T}no" >&6; } |
2263 |
|
fi |
2264 |
|
|
2265 |
|
|
2266 |
< |
test -n "$CXX" && break |
2267 |
< |
done |
2266 |
> |
test -n "$ac_cc_set" && break |
2267 |
> |
done |
2268 |
> |
test -n "$ac_cc_set" || ac_cc_set="no" |
2269 |
> |
|
2270 |
> |
if test $ac_cc_set != no; then |
2271 |
> |
|
2272 |
> |
# Extract the first word of "$ac_cc_set", so it can be a program name with args. |
2273 |
> |
set dummy $ac_cc_set; ac_word=$2 |
2274 |
> |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2275 |
> |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
2276 |
> |
if test "${ac_cv_path_ac_cc_path+set}" = set; then |
2277 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2278 |
> |
else |
2279 |
> |
case $ac_cc_path in |
2280 |
> |
[\\/]* | ?:[\\/]*) |
2281 |
> |
ac_cv_path_ac_cc_path="$ac_cc_path" # Let the user override the test with a path. |
2282 |
> |
;; |
2283 |
> |
*) |
2284 |
> |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2285 |
> |
for as_dir in $PATH |
2286 |
> |
do |
2287 |
> |
IFS=$as_save_IFS |
2288 |
> |
test -z "$as_dir" && as_dir=. |
2289 |
> |
for ac_exec_ext in '' $ac_executable_extensions; do |
2290 |
> |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2291 |
> |
ac_cv_path_ac_cc_path="$as_dir/$ac_word$ac_exec_ext" |
2292 |
> |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2293 |
> |
break 2 |
2294 |
> |
fi |
2295 |
> |
done |
2296 |
> |
done |
2297 |
> |
IFS=$as_save_IFS |
2298 |
> |
|
2299 |
> |
test -z "$ac_cv_path_ac_cc_path" && ac_cv_path_ac_cc_path="no" |
2300 |
> |
;; |
2301 |
> |
esac |
2302 |
|
fi |
2303 |
< |
if test -z "$CXX"; then |
2304 |
< |
ac_ct_CXX=$CXX |
2305 |
< |
for ac_prog in mpicxx icpc pathCC pgCC c++ xlc++ xlC g++ CC |
2303 |
> |
ac_cc_path=$ac_cv_path_ac_cc_path |
2304 |
> |
if test -n "$ac_cc_path"; then |
2305 |
> |
{ echo "$as_me:$LINENO: result: $ac_cc_path" >&5 |
2306 |
> |
echo "${ECHO_T}$ac_cc_path" >&6; } |
2307 |
> |
else |
2308 |
> |
{ echo "$as_me:$LINENO: result: no" >&5 |
2309 |
> |
echo "${ECHO_T}no" >&6; } |
2310 |
> |
fi |
2311 |
> |
|
2312 |
> |
|
2313 |
> |
else |
2314 |
> |
|
2315 |
> |
{ { echo "$as_me:$LINENO: error: Specified C compiler $CC doesn't seem to exist!" >&5 |
2316 |
> |
echo "$as_me: error: Specified C compiler $CC doesn't seem to exist!" >&2;} |
2317 |
> |
{ (exit 1); exit 1; }; } |
2318 |
> |
fi |
2319 |
> |
|
2320 |
> |
|
2321 |
> |
if test $ac_cc_path != no; then |
2322 |
> |
|
2323 |
> |
{ echo "$as_me:$LINENO: Will attempt to use $CC as C compiler" >&5 |
2324 |
> |
echo "$as_me: Will attempt to use $CC as C compiler" >&6;} |
2325 |
> |
else |
2326 |
> |
|
2327 |
> |
{ { echo "$as_me:$LINENO: error: Can't find path to user-specified C compiler $CC" >&5 |
2328 |
> |
echo "$as_me: error: Can't find path to user-specified C compiler $CC" >&2;} |
2329 |
> |
{ (exit 1); exit 1; }; } |
2330 |
> |
fi |
2331 |
> |
|
2332 |
> |
fi |
2333 |
> |
|
2334 |
> |
if test x"$CXX" != x; then |
2335 |
> |
for ac_prog in $CXX |
2336 |
|
do |
2337 |
|
# Extract the first word of "$ac_prog", so it can be a program name with args. |
2338 |
|
set dummy $ac_prog; ac_word=$2 |
2339 |
|
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2340 |
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
2341 |
< |
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
2341 |
> |
if test "${ac_cv_prog_ac_cxx_set+set}" = set; then |
2342 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2343 |
|
else |
2344 |
< |
if test -n "$ac_ct_CXX"; then |
2345 |
< |
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
2344 |
> |
if test -n "$ac_cxx_set"; then |
2345 |
> |
ac_cv_prog_ac_cxx_set="$ac_cxx_set" # Let the user override the test. |
2346 |
|
else |
2347 |
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2348 |
|
for as_dir in $PATH |
2351 |
|
test -z "$as_dir" && as_dir=. |
2352 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
2353 |
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2354 |
< |
ac_cv_prog_ac_ct_CXX="$ac_prog" |
2354 |
> |
ac_cv_prog_ac_cxx_set="$ac_prog" |
2355 |
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2356 |
|
break 2 |
2357 |
|
fi |
2361 |
|
|
2362 |
|
fi |
2363 |
|
fi |
2364 |
< |
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
2365 |
< |
if test -n "$ac_ct_CXX"; then |
2366 |
< |
{ echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
2367 |
< |
echo "${ECHO_T}$ac_ct_CXX" >&6; } |
2364 |
> |
ac_cxx_set=$ac_cv_prog_ac_cxx_set |
2365 |
> |
if test -n "$ac_cxx_set"; then |
2366 |
> |
{ echo "$as_me:$LINENO: result: $ac_cxx_set" >&5 |
2367 |
> |
echo "${ECHO_T}$ac_cxx_set" >&6; } |
2368 |
|
else |
2369 |
|
{ echo "$as_me:$LINENO: result: no" >&5 |
2370 |
|
echo "${ECHO_T}no" >&6; } |
2371 |
|
fi |
2372 |
|
|
2373 |
|
|
2374 |
< |
test -n "$ac_ct_CXX" && break |
2375 |
< |
done |
2374 |
> |
test -n "$ac_cxx_set" && break |
2375 |
> |
done |
2376 |
> |
test -n "$ac_cxx_set" || ac_cxx_set="no" |
2377 |
|
|
2378 |
< |
if test "x$ac_ct_CXX" = x; then |
2216 |
< |
CXX="g++" |
2217 |
< |
else |
2218 |
< |
case $cross_compiling:$ac_tool_warned in |
2219 |
< |
yes:) |
2220 |
< |
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
2221 |
< |
whose name does not start with the host triplet. If you think this |
2222 |
< |
configuration is useful to you, please write to autoconf@gnu.org." >&5 |
2223 |
< |
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
2224 |
< |
whose name does not start with the host triplet. If you think this |
2225 |
< |
configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
2226 |
< |
ac_tool_warned=yes ;; |
2227 |
< |
esac |
2228 |
< |
CXX=$ac_ct_CXX |
2229 |
< |
fi |
2230 |
< |
fi |
2378 |
> |
if test $ac_cxx_set != no; then |
2379 |
|
|
2380 |
< |
fi |
2381 |
< |
fi |
2382 |
< |
# Provide some information about the compiler. |
2383 |
< |
echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
2384 |
< |
ac_compiler=`set X $ac_compile; echo $2` |
2385 |
< |
{ (ac_try="$ac_compiler --version >&5" |
2386 |
< |
case "(($ac_try" in |
2387 |
< |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2388 |
< |
*) ac_try_echo=$ac_try;; |
2389 |
< |
esac |
2390 |
< |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2391 |
< |
(eval "$ac_compiler --version >&5") 2>&5 |
2392 |
< |
ac_status=$? |
2393 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2246 |
< |
(exit $ac_status); } |
2247 |
< |
{ (ac_try="$ac_compiler -v >&5" |
2248 |
< |
case "(($ac_try" in |
2249 |
< |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2250 |
< |
*) ac_try_echo=$ac_try;; |
2251 |
< |
esac |
2252 |
< |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2253 |
< |
(eval "$ac_compiler -v >&5") 2>&5 |
2254 |
< |
ac_status=$? |
2255 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2256 |
< |
(exit $ac_status); } |
2257 |
< |
{ (ac_try="$ac_compiler -V >&5" |
2258 |
< |
case "(($ac_try" in |
2259 |
< |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2260 |
< |
*) ac_try_echo=$ac_try;; |
2261 |
< |
esac |
2262 |
< |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2263 |
< |
(eval "$ac_compiler -V >&5") 2>&5 |
2264 |
< |
ac_status=$? |
2265 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2266 |
< |
(exit $ac_status); } |
2267 |
< |
|
2268 |
< |
cat >conftest.$ac_ext <<_ACEOF |
2269 |
< |
/* confdefs.h. */ |
2270 |
< |
_ACEOF |
2271 |
< |
cat confdefs.h >>conftest.$ac_ext |
2272 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
2273 |
< |
/* end confdefs.h. */ |
2274 |
< |
|
2275 |
< |
int |
2276 |
< |
main () |
2277 |
< |
{ |
2278 |
< |
|
2279 |
< |
; |
2280 |
< |
return 0; |
2281 |
< |
} |
2282 |
< |
_ACEOF |
2283 |
< |
ac_clean_files_save=$ac_clean_files |
2284 |
< |
ac_clean_files="$ac_clean_files a.out a.exe b.out" |
2285 |
< |
# Try to create an executable without -o first, disregard a.out. |
2286 |
< |
# It will help us diagnose broken compilers, and finding out an intuition |
2287 |
< |
# of exeext. |
2288 |
< |
{ echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5 |
2289 |
< |
echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; } |
2290 |
< |
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
2291 |
< |
# |
2292 |
< |
# List of possible output files, starting from the most likely. |
2293 |
< |
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
2294 |
< |
# only as a last resort. b.out is created by i960 compilers. |
2295 |
< |
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
2296 |
< |
# |
2297 |
< |
# The IRIX 6 linker writes into existing files which may not be |
2298 |
< |
# executable, retaining their permissions. Remove them first so a |
2299 |
< |
# subsequent execution test works. |
2300 |
< |
ac_rmfiles= |
2301 |
< |
for ac_file in $ac_files |
2380 |
> |
# Extract the first word of "$ac_cxx_set", so it can be a program name with args. |
2381 |
> |
set dummy $ac_cxx_set; ac_word=$2 |
2382 |
> |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2383 |
> |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
2384 |
> |
if test "${ac_cv_path_ac_cxx_path+set}" = set; then |
2385 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2386 |
> |
else |
2387 |
> |
case $ac_cxx_path in |
2388 |
> |
[\\/]* | ?:[\\/]*) |
2389 |
> |
ac_cv_path_ac_cxx_path="$ac_cxx_path" # Let the user override the test with a path. |
2390 |
> |
;; |
2391 |
> |
*) |
2392 |
> |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2393 |
> |
for as_dir in $PATH |
2394 |
|
do |
2395 |
< |
case $ac_file in |
2396 |
< |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
2397 |
< |
* ) ac_rmfiles="$ac_rmfiles $ac_file";; |
2398 |
< |
esac |
2395 |
> |
IFS=$as_save_IFS |
2396 |
> |
test -z "$as_dir" && as_dir=. |
2397 |
> |
for ac_exec_ext in '' $ac_executable_extensions; do |
2398 |
> |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2399 |
> |
ac_cv_path_ac_cxx_path="$as_dir/$ac_word$ac_exec_ext" |
2400 |
> |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2401 |
> |
break 2 |
2402 |
> |
fi |
2403 |
|
done |
2308 |
– |
rm -rf $ac_rmfiles |
2309 |
– |
|
2310 |
– |
if { (ac_try="$ac_link_default" |
2311 |
– |
case "(($ac_try" in |
2312 |
– |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2313 |
– |
*) ac_try_echo=$ac_try;; |
2314 |
– |
esac |
2315 |
– |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2316 |
– |
(eval "$ac_link_default") 2>&5 |
2317 |
– |
ac_status=$? |
2318 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2319 |
– |
(exit $ac_status); }; then |
2320 |
– |
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2321 |
– |
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
2322 |
– |
# in a Makefile. We should not override ac_cv_exeext if it was cached, |
2323 |
– |
# so that the user can short-circuit this test for compilers unknown to |
2324 |
– |
# Autoconf. |
2325 |
– |
for ac_file in $ac_files '' |
2326 |
– |
do |
2327 |
– |
test -f "$ac_file" || continue |
2328 |
– |
case $ac_file in |
2329 |
– |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
2330 |
– |
;; |
2331 |
– |
[ab].out ) |
2332 |
– |
# We found the default executable, but exeext='' is most |
2333 |
– |
# certainly right. |
2334 |
– |
break;; |
2335 |
– |
*.* ) |
2336 |
– |
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2337 |
– |
then :; else |
2338 |
– |
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2339 |
– |
fi |
2340 |
– |
# We set ac_cv_exeext here because the later test for it is not |
2341 |
– |
# safe: cross compilers may not add the suffix if given an `-o' |
2342 |
– |
# argument, so we may need to know it at that point already. |
2343 |
– |
# Even if this section looks crufty: it has the advantage of |
2344 |
– |
# actually working. |
2345 |
– |
break;; |
2346 |
– |
* ) |
2347 |
– |
break;; |
2348 |
– |
esac |
2404 |
|
done |
2405 |
< |
test "$ac_cv_exeext" = no && ac_cv_exeext= |
2405 |
> |
IFS=$as_save_IFS |
2406 |
|
|
2407 |
+ |
test -z "$ac_cv_path_ac_cxx_path" && ac_cv_path_ac_cxx_path="no" |
2408 |
+ |
;; |
2409 |
+ |
esac |
2410 |
+ |
fi |
2411 |
+ |
ac_cxx_path=$ac_cv_path_ac_cxx_path |
2412 |
+ |
if test -n "$ac_cxx_path"; then |
2413 |
+ |
{ echo "$as_me:$LINENO: result: $ac_cxx_path" >&5 |
2414 |
+ |
echo "${ECHO_T}$ac_cxx_path" >&6; } |
2415 |
|
else |
2416 |
< |
ac_file='' |
2416 |
> |
{ echo "$as_me:$LINENO: result: no" >&5 |
2417 |
> |
echo "${ECHO_T}no" >&6; } |
2418 |
|
fi |
2419 |
|
|
2356 |
– |
{ echo "$as_me:$LINENO: result: $ac_file" >&5 |
2357 |
– |
echo "${ECHO_T}$ac_file" >&6; } |
2358 |
– |
if test -z "$ac_file"; then |
2359 |
– |
echo "$as_me: failed program was:" >&5 |
2360 |
– |
sed 's/^/| /' conftest.$ac_ext >&5 |
2420 |
|
|
2421 |
< |
{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables |
2422 |
< |
See \`config.log' for more details." >&5 |
2423 |
< |
echo "$as_me: error: C++ compiler cannot create executables |
2424 |
< |
See \`config.log' for more details." >&2;} |
2425 |
< |
{ (exit 77); exit 77; }; } |
2421 |
> |
else |
2422 |
> |
|
2423 |
> |
{ { echo "$as_me:$LINENO: error: Specified C++ compiler $CXX doesn't seem to exist!" >&5 |
2424 |
> |
echo "$as_me: error: Specified C++ compiler $CXX doesn't seem to exist!" >&2;} |
2425 |
> |
{ (exit 1); exit 1; }; } |
2426 |
|
fi |
2427 |
|
|
2369 |
– |
ac_exeext=$ac_cv_exeext |
2428 |
|
|
2429 |
< |
# Check that the compiler produces executables we can run. If not, either |
2430 |
< |
# the compiler is broken, or we cross compile. |
2431 |
< |
{ echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 |
2432 |
< |
echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; } |
2433 |
< |
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2434 |
< |
# If not cross compiling, check that we can run a simple program. |
2435 |
< |
if test "$cross_compiling" != yes; then |
2436 |
< |
if { ac_try='./$ac_file' |
2379 |
< |
{ (case "(($ac_try" in |
2380 |
< |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2381 |
< |
*) ac_try_echo=$ac_try;; |
2382 |
< |
esac |
2383 |
< |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2384 |
< |
(eval "$ac_try") 2>&5 |
2385 |
< |
ac_status=$? |
2386 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2387 |
< |
(exit $ac_status); }; }; then |
2388 |
< |
cross_compiling=no |
2389 |
< |
else |
2390 |
< |
if test "$cross_compiling" = maybe; then |
2391 |
< |
cross_compiling=yes |
2392 |
< |
else |
2393 |
< |
{ { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. |
2394 |
< |
If you meant to cross compile, use \`--host'. |
2395 |
< |
See \`config.log' for more details." >&5 |
2396 |
< |
echo "$as_me: error: cannot run C++ compiled programs. |
2397 |
< |
If you meant to cross compile, use \`--host'. |
2398 |
< |
See \`config.log' for more details." >&2;} |
2429 |
> |
if test $ac_cxx_path != no; then |
2430 |
> |
|
2431 |
> |
{ echo "$as_me:$LINENO: Will attempt to use $CXX as C++ compiler" >&5 |
2432 |
> |
echo "$as_me: Will attempt to use $CXX as C++ compiler" >&6;} |
2433 |
> |
else |
2434 |
> |
|
2435 |
> |
{ { echo "$as_me:$LINENO: error: Can't find path to user-specified C++ compiler $CXX" >&5 |
2436 |
> |
echo "$as_me: error: Can't find path to user-specified C++ compiler $CXX" >&2;} |
2437 |
|
{ (exit 1); exit 1; }; } |
2400 |
– |
fi |
2401 |
– |
fi |
2438 |
|
fi |
2403 |
– |
{ echo "$as_me:$LINENO: result: yes" >&5 |
2404 |
– |
echo "${ECHO_T}yes" >&6; } |
2439 |
|
|
2440 |
< |
rm -rf a.out a.exe conftest$ac_cv_exeext b.out |
2407 |
< |
ac_clean_files=$ac_clean_files_save |
2408 |
< |
# Check that the compiler produces executables we can run. If not, either |
2409 |
< |
# the compiler is broken, or we cross compile. |
2410 |
< |
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2411 |
< |
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
2412 |
< |
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
2413 |
< |
echo "${ECHO_T}$cross_compiling" >&6; } |
2440 |
> |
fi |
2441 |
|
|
2442 |
< |
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
2443 |
< |
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
2444 |
< |
if { (ac_try="$ac_link" |
2445 |
< |
case "(($ac_try" in |
2446 |
< |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2447 |
< |
*) ac_try_echo=$ac_try;; |
2448 |
< |
esac |
2449 |
< |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2450 |
< |
(eval "$ac_link") 2>&5 |
2451 |
< |
ac_status=$? |
2452 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2453 |
< |
(exit $ac_status); }; then |
2454 |
< |
# If both `conftest.exe' and `conftest' are `present' (well, observable) |
2455 |
< |
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
2456 |
< |
# work properly (i.e., refer to `conftest.exe'), while it won't with |
2457 |
< |
# `rm'. |
2458 |
< |
for ac_file in conftest.exe conftest conftest.*; do |
2459 |
< |
test -f "$ac_file" || continue |
2460 |
< |
case $ac_file in |
2461 |
< |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
2462 |
< |
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2463 |
< |
break;; |
2464 |
< |
* ) break;; |
2465 |
< |
esac |
2442 |
> |
if test x"$FC" != x; then |
2443 |
> |
for ac_prog in $FC |
2444 |
> |
do |
2445 |
> |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
2446 |
> |
set dummy $ac_prog; ac_word=$2 |
2447 |
> |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2448 |
> |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
2449 |
> |
if test "${ac_cv_prog_ac_fc_set+set}" = set; then |
2450 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2451 |
> |
else |
2452 |
> |
if test -n "$ac_fc_set"; then |
2453 |
> |
ac_cv_prog_ac_fc_set="$ac_fc_set" # Let the user override the test. |
2454 |
> |
else |
2455 |
> |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2456 |
> |
for as_dir in $PATH |
2457 |
> |
do |
2458 |
> |
IFS=$as_save_IFS |
2459 |
> |
test -z "$as_dir" && as_dir=. |
2460 |
> |
for ac_exec_ext in '' $ac_executable_extensions; do |
2461 |
> |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2462 |
> |
ac_cv_prog_ac_fc_set="$ac_prog" |
2463 |
> |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2464 |
> |
break 2 |
2465 |
> |
fi |
2466 |
|
done |
2467 |
+ |
done |
2468 |
+ |
IFS=$as_save_IFS |
2469 |
+ |
|
2470 |
+ |
fi |
2471 |
+ |
fi |
2472 |
+ |
ac_fc_set=$ac_cv_prog_ac_fc_set |
2473 |
+ |
if test -n "$ac_fc_set"; then |
2474 |
+ |
{ echo "$as_me:$LINENO: result: $ac_fc_set" >&5 |
2475 |
+ |
echo "${ECHO_T}$ac_fc_set" >&6; } |
2476 |
|
else |
2477 |
< |
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
2478 |
< |
See \`config.log' for more details." >&5 |
2443 |
< |
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
2444 |
< |
See \`config.log' for more details." >&2;} |
2445 |
< |
{ (exit 1); exit 1; }; } |
2477 |
> |
{ echo "$as_me:$LINENO: result: no" >&5 |
2478 |
> |
echo "${ECHO_T}no" >&6; } |
2479 |
|
fi |
2480 |
|
|
2448 |
– |
rm -rf conftest$ac_cv_exeext |
2449 |
– |
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2450 |
– |
echo "${ECHO_T}$ac_cv_exeext" >&6; } |
2481 |
|
|
2482 |
< |
rm -rf conftest.$ac_ext |
2483 |
< |
EXEEXT=$ac_cv_exeext |
2484 |
< |
ac_exeext=$EXEEXT |
2485 |
< |
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2486 |
< |
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
2487 |
< |
if test "${ac_cv_objext+set}" = set; then |
2482 |
> |
test -n "$ac_fc_set" && break |
2483 |
> |
done |
2484 |
> |
test -n "$ac_fc_set" || ac_fc_set="no" |
2485 |
> |
|
2486 |
> |
if test $ac_fc_set != no; then |
2487 |
> |
|
2488 |
> |
# Extract the first word of "$ac_fc_set", so it can be a program name with args. |
2489 |
> |
set dummy $ac_fc_set; ac_word=$2 |
2490 |
> |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2491 |
> |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
2492 |
> |
if test "${ac_cv_path_ac_fc_path+set}" = set; then |
2493 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2494 |
|
else |
2495 |
< |
cat >conftest.$ac_ext <<_ACEOF |
2496 |
< |
/* confdefs.h. */ |
2497 |
< |
_ACEOF |
2498 |
< |
cat confdefs.h >>conftest.$ac_ext |
2499 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
2500 |
< |
/* end confdefs.h. */ |
2495 |
> |
case $ac_fc_path in |
2496 |
> |
[\\/]* | ?:[\\/]*) |
2497 |
> |
ac_cv_path_ac_fc_path="$ac_fc_path" # Let the user override the test with a path. |
2498 |
> |
;; |
2499 |
> |
*) |
2500 |
> |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2501 |
> |
for as_dir in $PATH |
2502 |
> |
do |
2503 |
> |
IFS=$as_save_IFS |
2504 |
> |
test -z "$as_dir" && as_dir=. |
2505 |
> |
for ac_exec_ext in '' $ac_executable_extensions; do |
2506 |
> |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2507 |
> |
ac_cv_path_ac_fc_path="$as_dir/$ac_word$ac_exec_ext" |
2508 |
> |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2509 |
> |
break 2 |
2510 |
> |
fi |
2511 |
> |
done |
2512 |
> |
done |
2513 |
> |
IFS=$as_save_IFS |
2514 |
|
|
2515 |
< |
int |
2516 |
< |
main () |
2469 |
< |
{ |
2470 |
< |
|
2471 |
< |
; |
2472 |
< |
return 0; |
2473 |
< |
} |
2474 |
< |
_ACEOF |
2475 |
< |
rm -rf conftest.o conftest.obj |
2476 |
< |
if { (ac_try="$ac_compile" |
2477 |
< |
case "(($ac_try" in |
2478 |
< |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2479 |
< |
*) ac_try_echo=$ac_try;; |
2515 |
> |
test -z "$ac_cv_path_ac_fc_path" && ac_cv_path_ac_fc_path="no" |
2516 |
> |
;; |
2517 |
|
esac |
2518 |
< |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2519 |
< |
(eval "$ac_compile") 2>&5 |
2520 |
< |
ac_status=$? |
2521 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2522 |
< |
(exit $ac_status); }; then |
2486 |
< |
for ac_file in conftest.o conftest.obj conftest.*; do |
2487 |
< |
test -f "$ac_file" || continue; |
2488 |
< |
case $ac_file in |
2489 |
< |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
2490 |
< |
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2491 |
< |
break;; |
2492 |
< |
esac |
2493 |
< |
done |
2518 |
> |
fi |
2519 |
> |
ac_fc_path=$ac_cv_path_ac_fc_path |
2520 |
> |
if test -n "$ac_fc_path"; then |
2521 |
> |
{ echo "$as_me:$LINENO: result: $ac_fc_path" >&5 |
2522 |
> |
echo "${ECHO_T}$ac_fc_path" >&6; } |
2523 |
|
else |
2524 |
< |
echo "$as_me: failed program was:" >&5 |
2525 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
2524 |
> |
{ echo "$as_me:$LINENO: result: no" >&5 |
2525 |
> |
echo "${ECHO_T}no" >&6; } |
2526 |
> |
fi |
2527 |
|
|
2528 |
< |
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
2529 |
< |
See \`config.log' for more details." >&5 |
2530 |
< |
echo "$as_me: error: cannot compute suffix of object files: cannot compile |
2531 |
< |
See \`config.log' for more details." >&2;} |
2528 |
> |
|
2529 |
> |
else |
2530 |
> |
|
2531 |
> |
{ { echo "$as_me:$LINENO: error: Specified Fortran compiler $FC doesn't seem to exist!" >&5 |
2532 |
> |
echo "$as_me: error: Specified Fortran compiler $FC doesn't seem to exist!" >&2;} |
2533 |
|
{ (exit 1); exit 1; }; } |
2534 |
|
fi |
2535 |
|
|
2505 |
– |
rm -rf conftest.$ac_cv_objext conftest.$ac_ext |
2506 |
– |
fi |
2507 |
– |
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
2508 |
– |
echo "${ECHO_T}$ac_cv_objext" >&6; } |
2509 |
– |
OBJEXT=$ac_cv_objext |
2510 |
– |
ac_objext=$OBJEXT |
2511 |
– |
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
2512 |
– |
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } |
2513 |
– |
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
2514 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2515 |
– |
else |
2516 |
– |
cat >conftest.$ac_ext <<_ACEOF |
2517 |
– |
/* confdefs.h. */ |
2518 |
– |
_ACEOF |
2519 |
– |
cat confdefs.h >>conftest.$ac_ext |
2520 |
– |
cat >>conftest.$ac_ext <<_ACEOF |
2521 |
– |
/* end confdefs.h. */ |
2536 |
|
|
2537 |
< |
int |
2524 |
< |
main () |
2525 |
< |
{ |
2526 |
< |
#ifndef __GNUC__ |
2527 |
< |
choke me |
2528 |
< |
#endif |
2537 |
> |
if test $ac_fc_path != no; then |
2538 |
|
|
2539 |
< |
; |
2540 |
< |
return 0; |
2532 |
< |
} |
2533 |
< |
_ACEOF |
2534 |
< |
rm -rf conftest.$ac_objext |
2535 |
< |
if { (ac_try="$ac_compile" |
2536 |
< |
case "(($ac_try" in |
2537 |
< |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2538 |
< |
*) ac_try_echo=$ac_try;; |
2539 |
< |
esac |
2540 |
< |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2541 |
< |
(eval "$ac_compile") 2>conftest.er1 |
2542 |
< |
ac_status=$? |
2543 |
< |
grep -v '^ *+' conftest.er1 >conftest.err |
2544 |
< |
rm -rf conftest.er1 |
2545 |
< |
cat conftest.err >&5 |
2546 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2547 |
< |
(exit $ac_status); } && { |
2548 |
< |
test -z "$ac_cxx_werror_flag" || |
2549 |
< |
test ! -s conftest.err |
2550 |
< |
} && test -s conftest.$ac_objext; then |
2551 |
< |
ac_compiler_gnu=yes |
2539 |
> |
{ echo "$as_me:$LINENO: Will attempt to use $FC as Fortran compiler" >&5 |
2540 |
> |
echo "$as_me: Will attempt to use $FC as Fortran compiler" >&6;} |
2541 |
|
else |
2553 |
– |
echo "$as_me: failed program was:" >&5 |
2554 |
– |
sed 's/^/| /' conftest.$ac_ext >&5 |
2542 |
|
|
2543 |
< |
ac_compiler_gnu=no |
2543 |
> |
{ { echo "$as_me:$LINENO: error: Can't find path to user-specified Fortran compiler $FC" >&5 |
2544 |
> |
echo "$as_me: error: Can't find path to user-specified Fortran compiler $FC" >&2;} |
2545 |
> |
{ (exit 1); exit 1; }; } |
2546 |
|
fi |
2547 |
|
|
2559 |
– |
rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext |
2560 |
– |
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
2561 |
– |
|
2548 |
|
fi |
2563 |
– |
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
2564 |
– |
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
2565 |
– |
GXX=`test $ac_compiler_gnu = yes && echo yes` |
2566 |
– |
ac_test_CXXFLAGS=${CXXFLAGS+set} |
2567 |
– |
ac_save_CXXFLAGS=$CXXFLAGS |
2568 |
– |
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
2569 |
– |
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
2570 |
– |
if test "${ac_cv_prog_cxx_g+set}" = set; then |
2571 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2572 |
– |
else |
2573 |
– |
ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
2574 |
– |
ac_cxx_werror_flag=yes |
2575 |
– |
ac_cv_prog_cxx_g=no |
2576 |
– |
CXXFLAGS="-g" |
2577 |
– |
cat >conftest.$ac_ext <<_ACEOF |
2578 |
– |
/* confdefs.h. */ |
2579 |
– |
_ACEOF |
2580 |
– |
cat confdefs.h >>conftest.$ac_ext |
2581 |
– |
cat >>conftest.$ac_ext <<_ACEOF |
2582 |
– |
/* end confdefs.h. */ |
2549 |
|
|
2584 |
– |
int |
2585 |
– |
main () |
2586 |
– |
{ |
2550 |
|
|
2551 |
< |
; |
2552 |
< |
return 0; |
2553 |
< |
} |
2554 |
< |
_ACEOF |
2555 |
< |
rm -rf conftest.$ac_objext |
2593 |
< |
if { (ac_try="$ac_compile" |
2594 |
< |
case "(($ac_try" in |
2595 |
< |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2596 |
< |
*) ac_try_echo=$ac_try;; |
2597 |
< |
esac |
2598 |
< |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2599 |
< |
(eval "$ac_compile") 2>conftest.er1 |
2600 |
< |
ac_status=$? |
2601 |
< |
grep -v '^ *+' conftest.er1 >conftest.err |
2602 |
< |
rm -rf conftest.er1 |
2603 |
< |
cat conftest.err >&5 |
2604 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2605 |
< |
(exit $ac_status); } && { |
2606 |
< |
test -z "$ac_cxx_werror_flag" || |
2607 |
< |
test ! -s conftest.err |
2608 |
< |
} && test -s conftest.$ac_objext; then |
2609 |
< |
ac_cv_prog_cxx_g=yes |
2551 |
> |
|
2552 |
> |
|
2553 |
> |
# Check whether --with-mpi was given. |
2554 |
> |
if test "${with_mpi+set}" = set; then |
2555 |
> |
withval=$with_mpi; |
2556 |
|
else |
2557 |
< |
echo "$as_me: failed program was:" >&5 |
2558 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
2557 |
> |
with_mpi="auto" |
2558 |
> |
fi |
2559 |
|
|
2560 |
< |
CXXFLAGS="" |
2615 |
< |
cat >conftest.$ac_ext <<_ACEOF |
2616 |
< |
/* confdefs.h. */ |
2617 |
< |
_ACEOF |
2618 |
< |
cat confdefs.h >>conftest.$ac_ext |
2619 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
2620 |
< |
/* end confdefs.h. */ |
2560 |
> |
if test "x$with_mpi" != "xno"; then |
2561 |
|
|
2622 |
– |
int |
2623 |
– |
main () |
2624 |
– |
{ |
2562 |
|
|
2563 |
< |
; |
2564 |
< |
return 0; |
2565 |
< |
} |
2566 |
< |
_ACEOF |
2567 |
< |
rm -rf conftest.$ac_objext |
2568 |
< |
if { (ac_try="$ac_compile" |
2569 |
< |
case "(($ac_try" in |
2570 |
< |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2634 |
< |
*) ac_try_echo=$ac_try;; |
2635 |
< |
esac |
2636 |
< |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2637 |
< |
(eval "$ac_compile") 2>conftest.er1 |
2638 |
< |
ac_status=$? |
2639 |
< |
grep -v '^ *+' conftest.er1 >conftest.err |
2640 |
< |
rm -rf conftest.er1 |
2641 |
< |
cat conftest.err >&5 |
2642 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2643 |
< |
(exit $ac_status); } && { |
2644 |
< |
test -z "$ac_cxx_werror_flag" || |
2645 |
< |
test ! -s conftest.err |
2646 |
< |
} && test -s conftest.$ac_objext; then |
2647 |
< |
: |
2563 |
> |
for ac_prog in $CC openmpicc mpicc |
2564 |
> |
do |
2565 |
> |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
2566 |
> |
set dummy $ac_prog; ac_word=$2 |
2567 |
> |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2568 |
> |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
2569 |
> |
if test "${ac_cv_prog_acx_mpi_mpicc+set}" = set; then |
2570 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2571 |
|
else |
2572 |
< |
echo "$as_me: failed program was:" >&5 |
2573 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
2651 |
< |
|
2652 |
< |
ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
2653 |
< |
CXXFLAGS="-g" |
2654 |
< |
cat >conftest.$ac_ext <<_ACEOF |
2655 |
< |
/* confdefs.h. */ |
2656 |
< |
_ACEOF |
2657 |
< |
cat confdefs.h >>conftest.$ac_ext |
2658 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
2659 |
< |
/* end confdefs.h. */ |
2660 |
< |
|
2661 |
< |
int |
2662 |
< |
main () |
2663 |
< |
{ |
2664 |
< |
|
2665 |
< |
; |
2666 |
< |
return 0; |
2667 |
< |
} |
2668 |
< |
_ACEOF |
2669 |
< |
rm -rf conftest.$ac_objext |
2670 |
< |
if { (ac_try="$ac_compile" |
2671 |
< |
case "(($ac_try" in |
2672 |
< |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2673 |
< |
*) ac_try_echo=$ac_try;; |
2674 |
< |
esac |
2675 |
< |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2676 |
< |
(eval "$ac_compile") 2>conftest.er1 |
2677 |
< |
ac_status=$? |
2678 |
< |
grep -v '^ *+' conftest.er1 >conftest.err |
2679 |
< |
rm -rf conftest.er1 |
2680 |
< |
cat conftest.err >&5 |
2681 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2682 |
< |
(exit $ac_status); } && { |
2683 |
< |
test -z "$ac_cxx_werror_flag" || |
2684 |
< |
test ! -s conftest.err |
2685 |
< |
} && test -s conftest.$ac_objext; then |
2686 |
< |
ac_cv_prog_cxx_g=yes |
2572 |
> |
if test -n "$acx_mpi_mpicc"; then |
2573 |
> |
ac_cv_prog_acx_mpi_mpicc="$acx_mpi_mpicc" # Let the user override the test. |
2574 |
|
else |
2575 |
< |
echo "$as_me: failed program was:" >&5 |
2576 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
2575 |
> |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2576 |
> |
for as_dir in $PATH |
2577 |
> |
do |
2578 |
> |
IFS=$as_save_IFS |
2579 |
> |
test -z "$as_dir" && as_dir=. |
2580 |
> |
for ac_exec_ext in '' $ac_executable_extensions; do |
2581 |
> |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2582 |
> |
ac_cv_prog_acx_mpi_mpicc="$ac_prog" |
2583 |
> |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2584 |
> |
break 2 |
2585 |
> |
fi |
2586 |
> |
done |
2587 |
> |
done |
2588 |
> |
IFS=$as_save_IFS |
2589 |
|
|
2691 |
– |
|
2590 |
|
fi |
2693 |
– |
|
2694 |
– |
rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext |
2591 |
|
fi |
2592 |
< |
|
2593 |
< |
rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext |
2594 |
< |
fi |
2595 |
< |
|
2700 |
< |
rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext |
2701 |
< |
ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
2702 |
< |
fi |
2703 |
< |
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
2704 |
< |
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } |
2705 |
< |
if test "$ac_test_CXXFLAGS" = set; then |
2706 |
< |
CXXFLAGS=$ac_save_CXXFLAGS |
2707 |
< |
elif test $ac_cv_prog_cxx_g = yes; then |
2708 |
< |
if test "$GXX" = yes; then |
2709 |
< |
CXXFLAGS="-g -O2" |
2710 |
< |
else |
2711 |
< |
CXXFLAGS="-g" |
2712 |
< |
fi |
2592 |
> |
acx_mpi_mpicc=$ac_cv_prog_acx_mpi_mpicc |
2593 |
> |
if test -n "$acx_mpi_mpicc"; then |
2594 |
> |
{ echo "$as_me:$LINENO: result: $acx_mpi_mpicc" >&5 |
2595 |
> |
echo "${ECHO_T}$acx_mpi_mpicc" >&6; } |
2596 |
|
else |
2597 |
< |
if test "$GXX" = yes; then |
2598 |
< |
CXXFLAGS="-O2" |
2716 |
< |
else |
2717 |
< |
CXXFLAGS= |
2718 |
< |
fi |
2597 |
> |
{ echo "$as_me:$LINENO: result: no" >&5 |
2598 |
> |
echo "${ECHO_T}no" >&6; } |
2599 |
|
fi |
2720 |
– |
ac_ext=c |
2721 |
– |
ac_cpp='$CPP $CPPFLAGS' |
2722 |
– |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2723 |
– |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2724 |
– |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2600 |
|
|
2601 |
< |
ac_ext=c |
2602 |
< |
ac_cpp='$CPP $CPPFLAGS' |
2603 |
< |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2604 |
< |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2605 |
< |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2606 |
< |
if test -n "$ac_tool_prefix"; then |
2607 |
< |
for ac_prog in mpicc icc pathcc pgcc cc xlc gcc |
2608 |
< |
do |
2609 |
< |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
2735 |
< |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
2601 |
> |
|
2602 |
> |
test -n "$acx_mpi_mpicc" && break |
2603 |
> |
done |
2604 |
> |
test -n "$acx_mpi_mpicc" || acx_mpi_mpicc="no" |
2605 |
> |
|
2606 |
> |
if test $acx_mpi_mpicc != no; then |
2607 |
> |
|
2608 |
> |
# Extract the first word of "$acx_mpi_mpicc", so it can be a program name with args. |
2609 |
> |
set dummy $acx_mpi_mpicc; ac_word=$2 |
2610 |
|
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2611 |
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
2612 |
< |
if test "${ac_cv_prog_CC+set}" = set; then |
2612 |
> |
if test "${ac_cv_path_acx_mpi_mpicc_path+set}" = set; then |
2613 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2614 |
|
else |
2615 |
< |
if test -n "$CC"; then |
2616 |
< |
ac_cv_prog_CC="$CC" # Let the user override the test. |
2617 |
< |
else |
2618 |
< |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2615 |
> |
case $acx_mpi_mpicc_path in |
2616 |
> |
[\\/]* | ?:[\\/]*) |
2617 |
> |
ac_cv_path_acx_mpi_mpicc_path="$acx_mpi_mpicc_path" # Let the user override the test with a path. |
2618 |
> |
;; |
2619 |
> |
*) |
2620 |
> |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2621 |
|
for as_dir in $PATH |
2622 |
|
do |
2623 |
|
IFS=$as_save_IFS |
2624 |
|
test -z "$as_dir" && as_dir=. |
2625 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
2626 |
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2627 |
< |
ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
2627 |
> |
ac_cv_path_acx_mpi_mpicc_path="$as_dir/$ac_word$ac_exec_ext" |
2628 |
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2629 |
|
break 2 |
2630 |
|
fi |
2632 |
|
done |
2633 |
|
IFS=$as_save_IFS |
2634 |
|
|
2635 |
+ |
test -z "$ac_cv_path_acx_mpi_mpicc_path" && ac_cv_path_acx_mpi_mpicc_path="no" |
2636 |
+ |
;; |
2637 |
+ |
esac |
2638 |
|
fi |
2639 |
< |
fi |
2640 |
< |
CC=$ac_cv_prog_CC |
2641 |
< |
if test -n "$CC"; then |
2642 |
< |
{ echo "$as_me:$LINENO: result: $CC" >&5 |
2764 |
< |
echo "${ECHO_T}$CC" >&6; } |
2639 |
> |
acx_mpi_mpicc_path=$ac_cv_path_acx_mpi_mpicc_path |
2640 |
> |
if test -n "$acx_mpi_mpicc_path"; then |
2641 |
> |
{ echo "$as_me:$LINENO: result: $acx_mpi_mpicc_path" >&5 |
2642 |
> |
echo "${ECHO_T}$acx_mpi_mpicc_path" >&6; } |
2643 |
|
else |
2644 |
|
{ echo "$as_me:$LINENO: result: no" >&5 |
2645 |
|
echo "${ECHO_T}no" >&6; } |
2646 |
|
fi |
2647 |
|
|
2648 |
|
|
2771 |
– |
test -n "$CC" && break |
2772 |
– |
done |
2649 |
|
fi |
2650 |
< |
if test -z "$CC"; then |
2651 |
< |
ac_ct_CC=$CC |
2776 |
< |
for ac_prog in mpicc icc pathcc pgcc cc xlc gcc |
2650 |
> |
|
2651 |
> |
for ac_prog in $FC openmpif90 mpif90 |
2652 |
|
do |
2653 |
|
# Extract the first word of "$ac_prog", so it can be a program name with args. |
2654 |
|
set dummy $ac_prog; ac_word=$2 |
2655 |
|
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2656 |
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
2657 |
< |
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2657 |
> |
if test "${ac_cv_prog_acx_mpi_mpif90+set}" = set; then |
2658 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2659 |
|
else |
2660 |
< |
if test -n "$ac_ct_CC"; then |
2661 |
< |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
2660 |
> |
if test -n "$acx_mpi_mpif90"; then |
2661 |
> |
ac_cv_prog_acx_mpi_mpif90="$acx_mpi_mpif90" # Let the user override the test. |
2662 |
|
else |
2663 |
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2664 |
|
for as_dir in $PATH |
2667 |
|
test -z "$as_dir" && as_dir=. |
2668 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
2669 |
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2670 |
< |
ac_cv_prog_ac_ct_CC="$ac_prog" |
2670 |
> |
ac_cv_prog_acx_mpi_mpif90="$ac_prog" |
2671 |
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2672 |
|
break 2 |
2673 |
|
fi |
2677 |
|
|
2678 |
|
fi |
2679 |
|
fi |
2680 |
< |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2681 |
< |
if test -n "$ac_ct_CC"; then |
2682 |
< |
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2683 |
< |
echo "${ECHO_T}$ac_ct_CC" >&6; } |
2680 |
> |
acx_mpi_mpif90=$ac_cv_prog_acx_mpi_mpif90 |
2681 |
> |
if test -n "$acx_mpi_mpif90"; then |
2682 |
> |
{ echo "$as_me:$LINENO: result: $acx_mpi_mpif90" >&5 |
2683 |
> |
echo "${ECHO_T}$acx_mpi_mpif90" >&6; } |
2684 |
|
else |
2685 |
|
{ echo "$as_me:$LINENO: result: no" >&5 |
2686 |
|
echo "${ECHO_T}no" >&6; } |
2687 |
|
fi |
2688 |
|
|
2689 |
|
|
2690 |
< |
test -n "$ac_ct_CC" && break |
2690 |
> |
test -n "$acx_mpi_mpif90" && break |
2691 |
|
done |
2692 |
+ |
test -n "$acx_mpi_mpif90" || acx_mpi_mpif90="no" |
2693 |
|
|
2694 |
< |
if test "x$ac_ct_CC" = x; then |
2695 |
< |
CC="" |
2696 |
< |
else |
2697 |
< |
case $cross_compiling:$ac_tool_warned in |
2698 |
< |
yes:) |
2699 |
< |
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
2700 |
< |
whose name does not start with the host triplet. If you think this |
2701 |
< |
configuration is useful to you, please write to autoconf@gnu.org." >&5 |
2702 |
< |
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
2703 |
< |
whose name does not start with the host triplet. If you think this |
2704 |
< |
configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
2705 |
< |
ac_tool_warned=yes ;; |
2706 |
< |
esac |
2707 |
< |
CC=$ac_ct_CC |
2694 |
> |
if test $acx_mpi_mpif90 != no; then |
2695 |
> |
|
2696 |
> |
# Extract the first word of "$acx_mpi_mpif90", so it can be a program name with args. |
2697 |
> |
set dummy $acx_mpi_mpif90; ac_word=$2 |
2698 |
> |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2699 |
> |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
2700 |
> |
if test "${ac_cv_path_acx_mpi_mpif90_path+set}" = set; then |
2701 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2702 |
> |
else |
2703 |
> |
case $acx_mpi_mpif90_path in |
2704 |
> |
[\\/]* | ?:[\\/]*) |
2705 |
> |
ac_cv_path_acx_mpi_mpif90_path="$acx_mpi_mpif90_path" # Let the user override the test with a path. |
2706 |
> |
;; |
2707 |
> |
*) |
2708 |
> |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2709 |
> |
for as_dir in $PATH |
2710 |
> |
do |
2711 |
> |
IFS=$as_save_IFS |
2712 |
> |
test -z "$as_dir" && as_dir=. |
2713 |
> |
for ac_exec_ext in '' $ac_executable_extensions; do |
2714 |
> |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2715 |
> |
ac_cv_path_acx_mpi_mpif90_path="$as_dir/$ac_word$ac_exec_ext" |
2716 |
> |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2717 |
> |
break 2 |
2718 |
|
fi |
2719 |
< |
fi |
2719 |
> |
done |
2720 |
> |
done |
2721 |
> |
IFS=$as_save_IFS |
2722 |
|
|
2723 |
< |
|
2724 |
< |
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
2837 |
< |
See \`config.log' for more details." >&5 |
2838 |
< |
echo "$as_me: error: no acceptable C compiler found in \$PATH |
2839 |
< |
See \`config.log' for more details." >&2;} |
2840 |
< |
{ (exit 1); exit 1; }; } |
2841 |
< |
|
2842 |
< |
# Provide some information about the compiler. |
2843 |
< |
echo "$as_me:$LINENO: checking for C compiler version" >&5 |
2844 |
< |
ac_compiler=`set X $ac_compile; echo $2` |
2845 |
< |
{ (ac_try="$ac_compiler --version >&5" |
2846 |
< |
case "(($ac_try" in |
2847 |
< |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2848 |
< |
*) ac_try_echo=$ac_try;; |
2723 |
> |
test -z "$ac_cv_path_acx_mpi_mpif90_path" && ac_cv_path_acx_mpi_mpif90_path="no" |
2724 |
> |
;; |
2725 |
|
esac |
2726 |
< |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2727 |
< |
(eval "$ac_compiler --version >&5") 2>&5 |
2728 |
< |
ac_status=$? |
2729 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2730 |
< |
(exit $ac_status); } |
2731 |
< |
{ (ac_try="$ac_compiler -v >&5" |
2732 |
< |
case "(($ac_try" in |
2733 |
< |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2734 |
< |
*) ac_try_echo=$ac_try;; |
2859 |
< |
esac |
2860 |
< |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2861 |
< |
(eval "$ac_compiler -v >&5") 2>&5 |
2862 |
< |
ac_status=$? |
2863 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2864 |
< |
(exit $ac_status); } |
2865 |
< |
{ (ac_try="$ac_compiler -V >&5" |
2866 |
< |
case "(($ac_try" in |
2867 |
< |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2868 |
< |
*) ac_try_echo=$ac_try;; |
2869 |
< |
esac |
2870 |
< |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2871 |
< |
(eval "$ac_compiler -V >&5") 2>&5 |
2872 |
< |
ac_status=$? |
2873 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2874 |
< |
(exit $ac_status); } |
2726 |
> |
fi |
2727 |
> |
acx_mpi_mpif90_path=$ac_cv_path_acx_mpi_mpif90_path |
2728 |
> |
if test -n "$acx_mpi_mpif90_path"; then |
2729 |
> |
{ echo "$as_me:$LINENO: result: $acx_mpi_mpif90_path" >&5 |
2730 |
> |
echo "${ECHO_T}$acx_mpi_mpif90_path" >&6; } |
2731 |
> |
else |
2732 |
> |
{ echo "$as_me:$LINENO: result: no" >&5 |
2733 |
> |
echo "${ECHO_T}no" >&6; } |
2734 |
> |
fi |
2735 |
|
|
2736 |
< |
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
2737 |
< |
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
2738 |
< |
if test "${ac_cv_c_compiler_gnu+set}" = set; then |
2736 |
> |
|
2737 |
> |
fi |
2738 |
> |
|
2739 |
> |
for ac_prog in $CXX openmpicxx openmpiCC openmpic++ mpicxx mpiCC mpic++ |
2740 |
> |
do |
2741 |
> |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
2742 |
> |
set dummy $ac_prog; ac_word=$2 |
2743 |
> |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2744 |
> |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
2745 |
> |
if test "${ac_cv_prog_acx_mpi_mpicxx+set}" = set; then |
2746 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2747 |
|
else |
2748 |
< |
cat >conftest.$ac_ext <<_ACEOF |
2748 |
> |
if test -n "$acx_mpi_mpicxx"; then |
2749 |
> |
ac_cv_prog_acx_mpi_mpicxx="$acx_mpi_mpicxx" # Let the user override the test. |
2750 |
> |
else |
2751 |
> |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2752 |
> |
for as_dir in $PATH |
2753 |
> |
do |
2754 |
> |
IFS=$as_save_IFS |
2755 |
> |
test -z "$as_dir" && as_dir=. |
2756 |
> |
for ac_exec_ext in '' $ac_executable_extensions; do |
2757 |
> |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2758 |
> |
ac_cv_prog_acx_mpi_mpicxx="$ac_prog" |
2759 |
> |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2760 |
> |
break 2 |
2761 |
> |
fi |
2762 |
> |
done |
2763 |
> |
done |
2764 |
> |
IFS=$as_save_IFS |
2765 |
> |
|
2766 |
> |
fi |
2767 |
> |
fi |
2768 |
> |
acx_mpi_mpicxx=$ac_cv_prog_acx_mpi_mpicxx |
2769 |
> |
if test -n "$acx_mpi_mpicxx"; then |
2770 |
> |
{ echo "$as_me:$LINENO: result: $acx_mpi_mpicxx" >&5 |
2771 |
> |
echo "${ECHO_T}$acx_mpi_mpicxx" >&6; } |
2772 |
> |
else |
2773 |
> |
{ echo "$as_me:$LINENO: result: no" >&5 |
2774 |
> |
echo "${ECHO_T}no" >&6; } |
2775 |
> |
fi |
2776 |
> |
|
2777 |
> |
|
2778 |
> |
test -n "$acx_mpi_mpicxx" && break |
2779 |
> |
done |
2780 |
> |
test -n "$acx_mpi_mpicxx" || acx_mpi_mpicxx="no" |
2781 |
> |
|
2782 |
> |
if test $acx_mpi_mpicxx != no; then |
2783 |
> |
|
2784 |
> |
# Extract the first word of "$acx_mpi_mpicxx", so it can be a program name with args. |
2785 |
> |
set dummy $acx_mpi_mpicxx; ac_word=$2 |
2786 |
> |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2787 |
> |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
2788 |
> |
if test "${ac_cv_path_acx_mpi_mpicxx_path+set}" = set; then |
2789 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2790 |
> |
else |
2791 |
> |
case $acx_mpi_mpicxx_path in |
2792 |
> |
[\\/]* | ?:[\\/]*) |
2793 |
> |
ac_cv_path_acx_mpi_mpicxx_path="$acx_mpi_mpicxx_path" # Let the user override the test with a path. |
2794 |
> |
;; |
2795 |
> |
*) |
2796 |
> |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2797 |
> |
for as_dir in $PATH |
2798 |
> |
do |
2799 |
> |
IFS=$as_save_IFS |
2800 |
> |
test -z "$as_dir" && as_dir=. |
2801 |
> |
for ac_exec_ext in '' $ac_executable_extensions; do |
2802 |
> |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2803 |
> |
ac_cv_path_acx_mpi_mpicxx_path="$as_dir/$ac_word$ac_exec_ext" |
2804 |
> |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2805 |
> |
break 2 |
2806 |
> |
fi |
2807 |
> |
done |
2808 |
> |
done |
2809 |
> |
IFS=$as_save_IFS |
2810 |
> |
|
2811 |
> |
test -z "$ac_cv_path_acx_mpi_mpicxx_path" && ac_cv_path_acx_mpi_mpicxx_path="no" |
2812 |
> |
;; |
2813 |
> |
esac |
2814 |
> |
fi |
2815 |
> |
acx_mpi_mpicxx_path=$ac_cv_path_acx_mpi_mpicxx_path |
2816 |
> |
if test -n "$acx_mpi_mpicxx_path"; then |
2817 |
> |
{ echo "$as_me:$LINENO: result: $acx_mpi_mpicxx_path" >&5 |
2818 |
> |
echo "${ECHO_T}$acx_mpi_mpicxx_path" >&6; } |
2819 |
> |
else |
2820 |
> |
{ echo "$as_me:$LINENO: result: no" >&5 |
2821 |
> |
echo "${ECHO_T}no" >&6; } |
2822 |
> |
fi |
2823 |
> |
|
2824 |
> |
|
2825 |
> |
fi |
2826 |
> |
|
2827 |
> |
if test $acx_mpi_mpicc = no; then |
2828 |
> |
|
2829 |
> |
if test $acx_mpi_mpicxx = no; then |
2830 |
> |
|
2831 |
> |
acx_mpi_compiler=no |
2832 |
> |
|
2833 |
> |
else |
2834 |
> |
|
2835 |
> |
acx_mpi_compiler=$acx_mpi_mpicxx |
2836 |
> |
acx_mpi_compiler_path=$acx_mpi_mpicxx_path |
2837 |
> |
fi |
2838 |
> |
|
2839 |
> |
|
2840 |
> |
else |
2841 |
> |
|
2842 |
> |
if test $acx_mpi_mpicxx = no; then |
2843 |
> |
|
2844 |
> |
acx_mpi_compiler=$acx_mpi_mpicc |
2845 |
> |
acx_mpi_compiler_path=$acx_mpi_mpicc_path |
2846 |
> |
|
2847 |
> |
else |
2848 |
> |
|
2849 |
> |
{ echo "$as_me:$LINENO: checking whether to use $acx_mpi_mpicc or $acx_mpi_mpicxx" >&5 |
2850 |
> |
echo $ECHO_N "checking whether to use $acx_mpi_mpicc or $acx_mpi_mpicxx... $ECHO_C" >&6; } |
2851 |
> |
ac_ext=cpp |
2852 |
> |
ac_cpp='$CXXCPP $CPPFLAGS' |
2853 |
> |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2854 |
> |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2855 |
> |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
2856 |
> |
|
2857 |
> |
cat >conftest.$ac_ext <<_ACEOF |
2858 |
|
/* confdefs.h. */ |
2859 |
|
_ACEOF |
2860 |
|
cat confdefs.h >>conftest.$ac_ext |
2861 |
|
cat >>conftest.$ac_ext <<_ACEOF |
2862 |
|
/* end confdefs.h. */ |
2863 |
|
|
2864 |
+ |
#include <mpi.h> |
2865 |
+ |
|
2866 |
|
int |
2867 |
|
main () |
2868 |
|
{ |
2891 |
– |
#ifndef __GNUC__ |
2892 |
– |
choke me |
2893 |
– |
#endif |
2869 |
|
|
2870 |
+ |
MPI_Finalize(); |
2871 |
+ |
|
2872 |
|
; |
2873 |
|
return 0; |
2874 |
|
} |
2875 |
|
_ACEOF |
2876 |
< |
rm -rf conftest.$ac_objext |
2900 |
< |
if { (ac_try="$ac_compile" |
2876 |
> |
if { (ac_try="$acx_mpi_mpicxx_path -c conftest.$ac_ext >&5" |
2877 |
|
case "(($ac_try" in |
2878 |
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2879 |
|
*) ac_try_echo=$ac_try;; |
2880 |
|
esac |
2881 |
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2882 |
< |
(eval "$ac_compile") 2>conftest.er1 |
2882 |
> |
(eval "$acx_mpi_mpicxx_path -c conftest.$ac_ext >&5") 2>conftest.er1 |
2883 |
|
ac_status=$? |
2884 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
2885 |
|
rm -f conftest.er1 |
2886 |
|
cat conftest.err >&5 |
2887 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2888 |
|
(exit $ac_status); } && { |
2889 |
< |
test -z "$ac_c_werror_flag" || |
2890 |
< |
test ! -s conftest.err |
2889 |
> |
test -z "$ac_cxx_werror_flag" || |
2890 |
> |
test ! -s conftest.err |
2891 |
|
} && test -s conftest.$ac_objext; then |
2892 |
< |
ac_compiler_gnu=yes |
2892 |
> |
|
2893 |
> |
acx_mpi_compiler=$acx_mpi_mpicxx |
2894 |
> |
acx_mpi_compiler_path=$acx_mpi_mpicxx_path |
2895 |
> |
|
2896 |
|
else |
2918 |
– |
echo "$as_me: failed program was:" >&5 |
2919 |
– |
sed 's/^/| /' conftest.$ac_ext >&5 |
2897 |
|
|
2898 |
< |
ac_compiler_gnu=no |
2898 |
> |
acx_mpi_compiler=$acx_mpi_mpicc |
2899 |
> |
acx_mpi_compiler_path=$acx_mpi_mpicc_path |
2900 |
|
fi |
2901 |
|
|
2902 |
< |
rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext |
2903 |
< |
ac_cv_c_compiler_gnu=$ac_compiler_gnu |
2902 |
> |
ac_ext=c |
2903 |
> |
ac_cpp='$CPP $CPPFLAGS' |
2904 |
> |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2905 |
> |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2906 |
> |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2907 |
|
|
2908 |
+ |
{ echo "$as_me:$LINENO: result: $acx_mpi_compiler" >&5 |
2909 |
+ |
echo "${ECHO_T}$acx_mpi_compiler" >&6; } |
2910 |
|
fi |
2911 |
< |
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
2912 |
< |
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
2913 |
< |
GCC=`test $ac_compiler_gnu = yes && echo yes` |
2914 |
< |
ac_test_CFLAGS=${CFLAGS+set} |
2915 |
< |
ac_save_CFLAGS=$CFLAGS |
2916 |
< |
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
2917 |
< |
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
2918 |
< |
if test "${ac_cv_prog_cc_g+set}" = set; then |
2919 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2911 |
> |
|
2912 |
> |
fi |
2913 |
> |
|
2914 |
> |
{ echo "$as_me:$LINENO: checking whether mpif.h is usable" >&5 |
2915 |
> |
echo $ECHO_N "checking whether mpif.h is usable... $ECHO_C" >&6; } |
2916 |
> |
ac_ext=${ac_fc_srcext-f} |
2917 |
> |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
2918 |
> |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
2919 |
> |
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
2920 |
> |
|
2921 |
> |
ac_save_ext=$ac_ext |
2922 |
> |
ac_ext=F90 |
2923 |
> |
rm -f conftest* |
2924 |
> |
cat >conftest.$ac_ext <<EOF |
2925 |
> |
program main |
2926 |
> |
include 'mpif.h' |
2927 |
> |
call MPI_Init |
2928 |
> |
end |
2929 |
> |
EOF |
2930 |
> |
if $acx_mpi_mpif90_path -c conftest.$ac_ext > conftest.out 2>&1 ; then |
2931 |
> |
acx_mpi_f90_compiler=yes |
2932 |
> |
{ echo "$as_me:$LINENO: result: yes" >&5 |
2933 |
> |
echo "${ECHO_T}yes" >&6; } |
2934 |
|
else |
2935 |
< |
ac_save_c_werror_flag=$ac_c_werror_flag |
2936 |
< |
ac_c_werror_flag=yes |
2937 |
< |
ac_cv_prog_cc_g=no |
2938 |
< |
CFLAGS="-g" |
2939 |
< |
cat >conftest.$ac_ext <<_ACEOF |
2940 |
< |
/* confdefs.h. */ |
2941 |
< |
_ACEOF |
2942 |
< |
cat confdefs.h >>conftest.$ac_ext |
2943 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
2944 |
< |
/* end confdefs.h. */ |
2935 |
> |
if test -s conftest.out ; then |
2936 |
> |
cat conftest.out >> config.log |
2937 |
> |
fi |
2938 |
> |
acx_mpi_f90_compiler=no |
2939 |
> |
{ echo "$as_me:$LINENO: result: no! Check MPI fortran include paths" >&5 |
2940 |
> |
echo "${ECHO_T}no! Check MPI fortran include paths" >&6; } |
2941 |
> |
fi |
2942 |
> |
rm -f conftest* |
2943 |
> |
ac_ext=$ac_save_ext |
2944 |
> |
ac_ext=c |
2945 |
> |
ac_cpp='$CPP $CPPFLAGS' |
2946 |
> |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2947 |
> |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2948 |
> |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2949 |
|
|
2950 |
< |
int |
2950 |
< |
main () |
2951 |
< |
{ |
2950 |
> |
if test $acx_mpi_compiler = no || test $acx_mpi_f90_compiler = no; then |
2951 |
|
|
2952 |
< |
; |
2953 |
< |
return 0; |
2954 |
< |
} |
2955 |
< |
_ACEOF |
2956 |
< |
rm -rf conftest.$ac_objext |
2957 |
< |
if { (ac_try="$ac_compile" |
2952 |
> |
acx_cv_mpi_implementation=no |
2953 |
> |
else |
2954 |
> |
{ echo "$as_me:$LINENO: checking for the MPI implementation flavor" >&5 |
2955 |
> |
echo $ECHO_N "checking for the MPI implementation flavor... $ECHO_C" >&6; } |
2956 |
> |
if test "${acx_cv_mpi_implementation+set}" = set; then |
2957 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2958 |
> |
else |
2959 |
> |
acx_cv_mpi_implementation=no |
2960 |
> |
if { (ac_try="grep -q LAM $acx_mpi_compiler_path" |
2961 |
|
case "(($ac_try" in |
2962 |
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2963 |
|
*) ac_try_echo=$ac_try;; |
2964 |
|
esac |
2965 |
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2966 |
< |
(eval "$ac_compile") 2>conftest.er1 |
2966 |
> |
(eval "grep -q LAM $acx_mpi_compiler_path") 2>conftest.er1 |
2967 |
|
ac_status=$? |
2968 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
2969 |
|
rm -f conftest.er1 |
2970 |
|
cat conftest.err >&5 |
2971 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2972 |
< |
(exit $ac_status); } && { |
2971 |
< |
test -z "$ac_c_werror_flag" || |
2972 |
< |
test ! -s conftest.err |
2973 |
< |
} && test -s conftest.$ac_objext; then |
2974 |
< |
ac_cv_prog_cc_g=yes |
2975 |
< |
else |
2976 |
< |
echo "$as_me: failed program was:" >&5 |
2977 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
2972 |
> |
(exit $ac_status); }; then |
2973 |
|
|
2974 |
< |
CFLAGS="" |
2980 |
< |
cat >conftest.$ac_ext <<_ACEOF |
2981 |
< |
/* confdefs.h. */ |
2982 |
< |
_ACEOF |
2983 |
< |
cat confdefs.h >>conftest.$ac_ext |
2984 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
2985 |
< |
/* end confdefs.h. */ |
2974 |
> |
acx_cv_mpi_implementation=lammpi |
2975 |
|
|
2976 |
< |
int |
2988 |
< |
main () |
2989 |
< |
{ |
2976 |
> |
else |
2977 |
|
|
2978 |
< |
; |
2992 |
< |
return 0; |
2993 |
< |
} |
2994 |
< |
_ACEOF |
2995 |
< |
rm -rf conftest.$ac_objext |
2996 |
< |
if { (ac_try="$ac_compile" |
2978 |
> |
if { (ac_try="grep -q showme $acx_mpi_compiler_path" |
2979 |
|
case "(($ac_try" in |
2980 |
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2981 |
|
*) ac_try_echo=$ac_try;; |
2982 |
|
esac |
2983 |
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2984 |
< |
(eval "$ac_compile") 2>conftest.er1 |
2984 |
> |
(eval "grep -q showme $acx_mpi_compiler_path") 2>conftest.er1 |
2985 |
|
ac_status=$? |
2986 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
2987 |
< |
rm -rf conftest.er1 |
2987 |
> |
rm -f conftest.er1 |
2988 |
|
cat conftest.err >&5 |
2989 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2990 |
< |
(exit $ac_status); } && { |
3009 |
< |
test -z "$ac_c_werror_flag" || |
3010 |
< |
test ! -s conftest.err |
3011 |
< |
} && test -s conftest.$ac_objext; then |
3012 |
< |
: |
3013 |
< |
else |
3014 |
< |
echo "$as_me: failed program was:" >&5 |
3015 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
2990 |
> |
(exit $ac_status); }; then |
2991 |
|
|
2992 |
< |
ac_c_werror_flag=$ac_save_c_werror_flag |
3018 |
< |
CFLAGS="-g" |
3019 |
< |
cat >conftest.$ac_ext <<_ACEOF |
3020 |
< |
/* confdefs.h. */ |
3021 |
< |
_ACEOF |
3022 |
< |
cat confdefs.h >>conftest.$ac_ext |
3023 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
3024 |
< |
/* end confdefs.h. */ |
2992 |
> |
acx_cv_mpi_implementation=openmpi |
2993 |
|
|
2994 |
< |
int |
3027 |
< |
main () |
3028 |
< |
{ |
2994 |
> |
else |
2995 |
|
|
2996 |
< |
; |
3031 |
< |
return 0; |
3032 |
< |
} |
3033 |
< |
_ACEOF |
3034 |
< |
rm -rf conftest.$ac_objext |
3035 |
< |
if { (ac_try="$ac_compile" |
2996 |
> |
if { (ac_try="grep -q MPICH $acx_mpi_compiler_path" |
2997 |
|
case "(($ac_try" in |
2998 |
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2999 |
|
*) ac_try_echo=$ac_try;; |
3000 |
|
esac |
3001 |
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3002 |
< |
(eval "$ac_compile") 2>conftest.er1 |
3002 |
> |
(eval "grep -q MPICH $acx_mpi_compiler_path") 2>conftest.er1 |
3003 |
|
ac_status=$? |
3004 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
3005 |
|
rm -f conftest.er1 |
3006 |
|
cat conftest.err >&5 |
3007 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3008 |
< |
(exit $ac_status); } && { |
3048 |
< |
test -z "$ac_c_werror_flag" || |
3049 |
< |
test ! -s conftest.err |
3050 |
< |
} && test -s conftest.$ac_objext; then |
3051 |
< |
ac_cv_prog_cc_g=yes |
3052 |
< |
else |
3053 |
< |
echo "$as_me: failed program was:" >&5 |
3054 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
3008 |
> |
(exit $ac_status); }; then |
3009 |
|
|
3010 |
+ |
acx_cv_mpi_implementation=mpich |
3011 |
|
|
3012 |
+ |
else |
3013 |
+ |
acx_cv_mpi_implementation=$with_mpi |
3014 |
|
fi |
3015 |
|
|
3059 |
– |
rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext |
3016 |
|
fi |
3017 |
|
|
3062 |
– |
rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext |
3018 |
|
fi |
3019 |
|
|
3065 |
– |
rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext |
3066 |
– |
ac_c_werror_flag=$ac_save_c_werror_flag |
3020 |
|
fi |
3021 |
< |
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
3022 |
< |
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
3023 |
< |
if test "$ac_test_CFLAGS" = set; then |
3071 |
< |
CFLAGS=$ac_save_CFLAGS |
3072 |
< |
elif test $ac_cv_prog_cc_g = yes; then |
3073 |
< |
if test "$GCC" = yes; then |
3074 |
< |
CFLAGS="-g -O2" |
3075 |
< |
else |
3076 |
< |
CFLAGS="-g" |
3077 |
< |
fi |
3078 |
< |
else |
3079 |
< |
if test "$GCC" = yes; then |
3080 |
< |
CFLAGS="-O2" |
3081 |
< |
else |
3082 |
< |
CFLAGS= |
3083 |
< |
fi |
3021 |
> |
{ echo "$as_me:$LINENO: result: $acx_cv_mpi_implementation" >&5 |
3022 |
> |
echo "${ECHO_T}$acx_cv_mpi_implementation" >&6; } |
3023 |
> |
|
3024 |
|
fi |
3025 |
< |
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
3026 |
< |
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
3027 |
< |
if test "${ac_cv_prog_cc_c89+set}" = set; then |
3028 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3029 |
< |
else |
3090 |
< |
ac_cv_prog_cc_c89=no |
3091 |
< |
ac_save_CC=$CC |
3092 |
< |
cat >conftest.$ac_ext <<_ACEOF |
3093 |
< |
/* confdefs.h. */ |
3025 |
> |
case $acx_cv_mpi_implementation in |
3026 |
> |
(lammpi) |
3027 |
> |
|
3028 |
> |
cat >>confdefs.h <<\_ACEOF |
3029 |
> |
#define MPI_IS_LAMMPI 1 |
3030 |
|
_ACEOF |
3095 |
– |
cat confdefs.h >>conftest.$ac_ext |
3096 |
– |
cat >>conftest.$ac_ext <<_ACEOF |
3097 |
– |
/* end confdefs.h. */ |
3098 |
– |
#include <stdarg.h> |
3099 |
– |
#include <stdio.h> |
3100 |
– |
#include <sys/types.h> |
3101 |
– |
#include <sys/stat.h> |
3102 |
– |
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
3103 |
– |
struct buf { int x; }; |
3104 |
– |
FILE * (*rcsopen) (struct buf *, struct stat *, int); |
3105 |
– |
static char *e (p, i) |
3106 |
– |
char **p; |
3107 |
– |
int i; |
3108 |
– |
{ |
3109 |
– |
return p[i]; |
3110 |
– |
} |
3111 |
– |
static char *f (char * (*g) (char **, int), char **p, ...) |
3112 |
– |
{ |
3113 |
– |
char *s; |
3114 |
– |
va_list v; |
3115 |
– |
va_start (v,p); |
3116 |
– |
s = g (p, va_arg (v,int)); |
3117 |
– |
va_end (v); |
3118 |
– |
return s; |
3119 |
– |
} |
3031 |
|
|
3032 |
< |
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
3033 |
< |
function prototypes and stuff, but not '\xHH' hex character constants. |
3123 |
< |
These don't provoke an error unfortunately, instead are silently treated |
3124 |
< |
as 'x'. The following induces an error, until -std is added to get |
3125 |
< |
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3126 |
< |
array size at least. It's necessary to write '\x00'==0 to get something |
3127 |
< |
that's true only with -std. */ |
3128 |
< |
int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3032 |
> |
;; |
3033 |
> |
(openmpi) |
3034 |
|
|
3035 |
< |
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3036 |
< |
inside strings and character constants. */ |
3037 |
< |
#define FOO(x) 'x' |
3133 |
< |
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
3035 |
> |
cat >>confdefs.h <<\_ACEOF |
3036 |
> |
#define MPI_IS_OPENMPI 1 |
3037 |
> |
_ACEOF |
3038 |
|
|
3039 |
< |
int test (int i, double x); |
3040 |
< |
struct s1 {int (*f) (int a);}; |
3041 |
< |
struct s2 {int (*f) (double a);}; |
3042 |
< |
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
3043 |
< |
int argc; |
3140 |
< |
char **argv; |
3141 |
< |
int |
3142 |
< |
main () |
3143 |
< |
{ |
3144 |
< |
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
3145 |
< |
; |
3146 |
< |
return 0; |
3147 |
< |
} |
3039 |
> |
;; |
3040 |
> |
(mpich) |
3041 |
> |
|
3042 |
> |
cat >>confdefs.h <<\_ACEOF |
3043 |
> |
#define MPI_IS_MPICH 1 |
3044 |
|
_ACEOF |
3045 |
< |
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3046 |
< |
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
3151 |
< |
do |
3152 |
< |
CC="$ac_save_CC $ac_arg" |
3153 |
< |
rm -rf conftest.$ac_objext |
3154 |
< |
if { (ac_try="$ac_compile" |
3155 |
< |
case "(($ac_try" in |
3156 |
< |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3157 |
< |
*) ac_try_echo=$ac_try;; |
3045 |
> |
|
3046 |
> |
;; |
3047 |
|
esac |
3048 |
< |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3049 |
< |
(eval "$ac_compile") 2>conftest.er1 |
3050 |
< |
ac_status=$? |
3051 |
< |
grep -v '^ *+' conftest.er1 >conftest.err |
3052 |
< |
rm -f conftest.er1 |
3053 |
< |
cat conftest.err >&5 |
3054 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3166 |
< |
(exit $ac_status); } && { |
3167 |
< |
test -z "$ac_c_werror_flag" || |
3168 |
< |
test ! -s conftest.err |
3169 |
< |
} && test -s conftest.$ac_objext; then |
3170 |
< |
ac_cv_prog_cc_c89=$ac_arg |
3048 |
> |
if test $acx_cv_mpi_implementation = no; then |
3049 |
> |
|
3050 |
> |
acx_mpi_cflags="" |
3051 |
> |
acx_mpi_libs="" |
3052 |
> |
USE_MPI="no" |
3053 |
> |
{ echo "$as_me:$LINENO: WARNING: No suitable MPI implementation found. oopse_MPI will not be build." >&5 |
3054 |
> |
echo "$as_me: WARNING: No suitable MPI implementation found. oopse_MPI will not be build." >&2;} |
3055 |
|
else |
3172 |
– |
echo "$as_me: failed program was:" >&5 |
3173 |
– |
sed 's/^/| /' conftest.$ac_ext >&5 |
3056 |
|
|
3057 |
|
|
3058 |
< |
fi |
3058 |
> |
{ echo "$as_me:$LINENO: checking how to compile MPI-C code" >&5 |
3059 |
> |
echo $ECHO_N "checking how to compile MPI-C code... $ECHO_C" >&6; } |
3060 |
> |
if test "${acx_mpi_cflags+set}" = set; then |
3061 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3062 |
> |
else |
3063 |
|
|
3064 |
< |
rm -rf core conftest.err conftest.$ac_objext |
3065 |
< |
test "x$ac_cv_prog_cc_c89" != "xno" && break |
3066 |
< |
done |
3067 |
< |
rm -rf conftest.$ac_ext |
3068 |
< |
CC=$ac_save_CC |
3064 |
> |
case $acx_cv_mpi_implementation in |
3065 |
> |
(lammpi) |
3066 |
> |
cfo="--showme:compile" |
3067 |
> |
;; |
3068 |
> |
(openmpi) |
3069 |
> |
cfo="--showme:compile" |
3070 |
> |
;; |
3071 |
> |
(mpich) |
3072 |
> |
case "$acx_mpi_compiler_path" in |
3073 |
> |
(*mpiCC) |
3074 |
> |
sc_cv_cn="-CC=" |
3075 |
> |
;; |
3076 |
> |
(*mpicxx) |
3077 |
> |
sc_cv_cn="-cxx=" |
3078 |
> |
;; |
3079 |
> |
(*mpicc) |
3080 |
> |
sc_cv_cn="-cc=" |
3081 |
> |
;; |
3082 |
> |
(*) |
3083 |
> |
sc_cv_cn="" |
3084 |
> |
;; |
3085 |
> |
esac |
3086 |
> |
cfo="-compile_info $sc_cv_cn" |
3087 |
> |
;; |
3088 |
> |
esac |
3089 |
> |
echo "$as_me:$LINENO: mpi_pre_cflags=\"\`$acx_mpi_compiler_path $cfo || echo ' no'\`\"" >&5 |
3090 |
> |
mpi_pre_cflags="`$acx_mpi_compiler_path $cfo 2>conftest.er1 || echo ' no'`" |
3091 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
3092 |
> |
rm -f conftest.er1 |
3093 |
> |
cat conftest.err >&5 |
3094 |
> |
echo "$as_me:$LINENO: mpi_pre_cflags = $mpi_pre_cflags" >&5 |
3095 |
> |
case "$mpi_pre_cflags" in |
3096 |
> |
(*no) |
3097 |
> |
acx_mpi_cflags=no |
3098 |
> |
acx_mpi_cflags="no" |
3099 |
> |
;; |
3100 |
> |
(*) |
3101 |
> |
acx_mpi_tmp_mode="normal" |
3102 |
> |
acx_mpi_tmp_prefix="" |
3103 |
> |
eval "acx_mpi_cflags=\"\"" |
3104 |
> |
for acx_mpi_tmp in $mpi_pre_cflags; do |
3105 |
> |
case "$acx_mpi_tmp_mode" in |
3106 |
> |
(normal) |
3107 |
> |
case "$acx_mpi_tmp" in |
3108 |
> |
(-I|-D) |
3109 |
> |
acx_mpi_tmp_prefix="$acx_mpi_tmp" |
3110 |
> |
acx_mpi_tmp_mode="accept" |
3111 |
> |
;; |
3112 |
> |
(-I*|-D*) |
3113 |
> |
eval "acx_mpi_cflags=\"`eval echo '${'\\acx_mpi_cflags'}'` \$acx_mpi_tmp\"" |
3114 |
> |
;; |
3115 |
> |
(-L|-l) |
3116 |
> |
acx_mpi_tmp_mode="skip" |
3117 |
> |
;; |
3118 |
> |
(*) |
3119 |
> |
;; |
3120 |
> |
esac |
3121 |
> |
;; |
3122 |
> |
(accept) |
3123 |
> |
eval "acx_mpi_cflags=\"`eval echo '${'\\acx_mpi_cflags'}'` \$acx_mpi_tmp_prefix \$acx_mpi_tmp\"" |
3124 |
> |
;; |
3125 |
> |
(skip) |
3126 |
> |
;; |
3127 |
> |
esac |
3128 |
> |
done |
3129 |
|
|
3130 |
+ |
;; |
3131 |
+ |
esac |
3132 |
+ |
|
3133 |
|
fi |
3134 |
< |
# AC_CACHE_VAL |
3135 |
< |
case "x$ac_cv_prog_cc_c89" in |
3136 |
< |
x) |
3137 |
< |
{ echo "$as_me:$LINENO: result: none needed" >&5 |
3138 |
< |
echo "${ECHO_T}none needed" >&6; } ;; |
3139 |
< |
xno) |
3140 |
< |
{ echo "$as_me:$LINENO: result: unsupported" >&5 |
3141 |
< |
echo "${ECHO_T}unsupported" >&6; } ;; |
3142 |
< |
*) |
3143 |
< |
CC="$CC $ac_cv_prog_cc_c89" |
3144 |
< |
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
3145 |
< |
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
3134 |
> |
{ echo "$as_me:$LINENO: result: $acx_mpi_cflags" >&5 |
3135 |
> |
echo "${ECHO_T}$acx_mpi_cflags" >&6; } |
3136 |
> |
|
3137 |
> |
|
3138 |
> |
{ echo "$as_me:$LINENO: checking how to link MPI-C code" >&5 |
3139 |
> |
echo $ECHO_N "checking how to link MPI-C code... $ECHO_C" >&6; } |
3140 |
> |
if test "${acx_mpi_libs+set}" = set; then |
3141 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3142 |
> |
else |
3143 |
> |
|
3144 |
> |
case $acx_cv_mpi_implementation in |
3145 |
> |
(lammpi) |
3146 |
> |
lfo="--showme:compile --showme:link" |
3147 |
> |
;; |
3148 |
> |
(openmpi) |
3149 |
> |
lfo="--showme:link" |
3150 |
> |
;; |
3151 |
> |
(mpich) |
3152 |
> |
case "$acx_mpi_compiler_path" in |
3153 |
> |
(*mpiCC) |
3154 |
> |
sc_cv_cn="-CC=" |
3155 |
> |
;; |
3156 |
> |
(*mpicxx) |
3157 |
> |
sc_cv_cn="-cxx=" |
3158 |
> |
;; |
3159 |
> |
(*mpicc) |
3160 |
> |
sc_cv_cn="-cc=" |
3161 |
> |
;; |
3162 |
> |
(*) |
3163 |
> |
sc_cv_cn="" |
3164 |
> |
;; |
3165 |
> |
esac |
3166 |
> |
lfo="-link_info $sc_cv_cn" |
3167 |
> |
;; |
3168 |
|
esac |
3169 |
+ |
echo "$as_me:$LINENO: mpi_pre_libs=\"\`$acx_mpi_compiler_path $lfo || echo ' no'\`\"" >&5 |
3170 |
+ |
mpi_pre_libs="`$acx_mpi_compiler_path $lfo 2>conftest.er1 || echo ' no'`" |
3171 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
3172 |
+ |
rm -f conftest.er1 |
3173 |
+ |
cat conftest.err >&5 |
3174 |
+ |
echo "$as_me:$LINENO: mpi_pre_libs = $mpi_pre_libs" >&5 |
3175 |
+ |
case "$mpi_pre_libs" in |
3176 |
+ |
(*no) |
3177 |
+ |
acx_mpi_libs=no |
3178 |
+ |
;; |
3179 |
+ |
(*) |
3180 |
+ |
acx_mpi_libs="$mpi_pre_libs" |
3181 |
+ |
;; |
3182 |
+ |
esac |
3183 |
|
|
3184 |
+ |
fi |
3185 |
+ |
{ echo "$as_me:$LINENO: result: $acx_mpi_libs" >&5 |
3186 |
+ |
echo "${ECHO_T}$acx_mpi_libs" >&6; } |
3187 |
|
|
3188 |
< |
ac_ext=c |
3201 |
< |
ac_cpp='$CPP $CPPFLAGS' |
3202 |
< |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3203 |
< |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3204 |
< |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3188 |
> |
if test $acx_mpi_mpif90_path != no; then |
3189 |
|
|
3190 |
< |
ac_ext=${ac_fc_srcext-f} |
3191 |
< |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
3192 |
< |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
3193 |
< |
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
3194 |
< |
if test -n "$ac_tool_prefix"; then |
3195 |
< |
for ac_prog in mpif90 ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort |
3190 |
> |
|
3191 |
> |
{ echo "$as_me:$LINENO: checking how to link MPI-Fortran code" >&5 |
3192 |
> |
echo $ECHO_N "checking how to link MPI-Fortran code... $ECHO_C" >&6; } |
3193 |
> |
if test "${acx_mpi90_libs+set}" = set; then |
3194 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3195 |
> |
else |
3196 |
> |
|
3197 |
> |
echo "$as_me:$LINENO: mpi_pre_libs=\"\`$acx_mpi_mpif90_path $lfo || echo \" no\"\`\"" >&5 |
3198 |
> |
mpi_pre_libs="`$acx_mpi_mpif90_path $lfo 2>conftest.er1 || echo " no"`" |
3199 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
3200 |
> |
rm -f conftest.er1 |
3201 |
> |
cat conftest.err >&5 |
3202 |
> |
echo "$as_me:$LINENO: mpi_pre_libs = $mpi_pre_libs" >&5 |
3203 |
> |
case "$mpi_pre_libs" in |
3204 |
> |
(*no) |
3205 |
> |
acx_mpi90_libs=no |
3206 |
> |
;; |
3207 |
> |
(*) |
3208 |
> |
acx_mpi90_libs="$mpi_pre_libs" |
3209 |
> |
;; |
3210 |
> |
esac |
3211 |
> |
|
3212 |
> |
fi |
3213 |
> |
{ echo "$as_me:$LINENO: result: $acx_mpi90_libs" >&5 |
3214 |
> |
echo "${ECHO_T}$acx_mpi90_libs" >&6; } |
3215 |
> |
|
3216 |
> |
|
3217 |
> |
fi |
3218 |
> |
|
3219 |
> |
if test "$acx_mpi_cflags" = no -o "$acx_mpi_libs" = no; then |
3220 |
> |
|
3221 |
> |
acx_mpi_cflags="" |
3222 |
> |
acx_mpi_libs="" |
3223 |
> |
USE_MPI="no" |
3224 |
> |
{ echo "$as_me:$LINENO: WARNING: No suitable MPI implementation found. oopse_MPI will not be build." >&5 |
3225 |
> |
echo "$as_me: WARNING: No suitable MPI implementation found. oopse_MPI will not be build." >&2;} |
3226 |
> |
else |
3227 |
> |
|
3228 |
> |
MPI_CPPFLAGS=$acx_mpi_cflags |
3229 |
> |
|
3230 |
> |
MPI_LIBS=$acx_mpi_libs |
3231 |
> |
|
3232 |
> |
if test "$acx_mpi90_libs" != no; then |
3233 |
> |
MPI90_LIBS=$acx_mpi90_libs |
3234 |
> |
|
3235 |
> |
fi |
3236 |
> |
|
3237 |
> |
USE_MPI="yes" |
3238 |
> |
fi |
3239 |
> |
|
3240 |
> |
|
3241 |
> |
fi |
3242 |
> |
|
3243 |
> |
|
3244 |
> |
fi |
3245 |
> |
|
3246 |
> |
|
3247 |
> |
|
3248 |
> |
# Checks for programs. |
3249 |
> |
ac_ext=cpp |
3250 |
> |
ac_cpp='$CXXCPP $CPPFLAGS' |
3251 |
> |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3252 |
> |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3253 |
> |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
3254 |
> |
if test -z "$CXX"; then |
3255 |
> |
if test -n "$CCC"; then |
3256 |
> |
CXX=$CCC |
3257 |
> |
else |
3258 |
> |
if test -n "$ac_tool_prefix"; then |
3259 |
> |
for ac_prog in $CXX $ac_cv_prog_acx_mpi_mpicxx icpc pathCC pgCC c++ xlc++ xlC g++ CC |
3260 |
|
do |
3261 |
|
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
3262 |
|
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
3263 |
|
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3264 |
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
3265 |
< |
if test "${ac_cv_prog_FC+set}" = set; then |
3265 |
> |
if test "${ac_cv_prog_CXX+set}" = set; then |
3266 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3267 |
|
else |
3268 |
< |
if test -n "$FC"; then |
3269 |
< |
ac_cv_prog_FC="$FC" # Let the user override the test. |
3268 |
> |
if test -n "$CXX"; then |
3269 |
> |
ac_cv_prog_CXX="$CXX" # Let the user override the test. |
3270 |
|
else |
3271 |
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3272 |
|
for as_dir in $PATH |
3275 |
|
test -z "$as_dir" && as_dir=. |
3276 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
3277 |
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3278 |
< |
ac_cv_prog_FC="$ac_tool_prefix$ac_prog" |
3278 |
> |
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
3279 |
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3280 |
|
break 2 |
3281 |
|
fi |
3285 |
|
|
3286 |
|
fi |
3287 |
|
fi |
3288 |
< |
FC=$ac_cv_prog_FC |
3289 |
< |
if test -n "$FC"; then |
3290 |
< |
{ echo "$as_me:$LINENO: result: $FC" >&5 |
3291 |
< |
echo "${ECHO_T}$FC" >&6; } |
3288 |
> |
CXX=$ac_cv_prog_CXX |
3289 |
> |
if test -n "$CXX"; then |
3290 |
> |
{ echo "$as_me:$LINENO: result: $CXX" >&5 |
3291 |
> |
echo "${ECHO_T}$CXX" >&6; } |
3292 |
|
else |
3293 |
|
{ echo "$as_me:$LINENO: result: no" >&5 |
3294 |
|
echo "${ECHO_T}no" >&6; } |
3295 |
|
fi |
3296 |
|
|
3297 |
|
|
3298 |
< |
test -n "$FC" && break |
3298 |
> |
test -n "$CXX" && break |
3299 |
|
done |
3300 |
|
fi |
3301 |
< |
if test -z "$FC"; then |
3302 |
< |
ac_ct_FC=$FC |
3303 |
< |
for ac_prog in mpif90 ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort |
3301 |
> |
if test -z "$CXX"; then |
3302 |
> |
ac_ct_CXX=$CXX |
3303 |
> |
for ac_prog in $CXX $ac_cv_prog_acx_mpi_mpicxx icpc pathCC pgCC c++ xlc++ xlC g++ CC |
3304 |
|
do |
3305 |
|
# Extract the first word of "$ac_prog", so it can be a program name with args. |
3306 |
|
set dummy $ac_prog; ac_word=$2 |
3307 |
|
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3308 |
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
3309 |
< |
if test "${ac_cv_prog_ac_ct_FC+set}" = set; then |
3309 |
> |
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
3310 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3311 |
|
else |
3312 |
< |
if test -n "$ac_ct_FC"; then |
3313 |
< |
ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test. |
3312 |
> |
if test -n "$ac_ct_CXX"; then |
3313 |
> |
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
3314 |
|
else |
3315 |
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3316 |
|
for as_dir in $PATH |
3319 |
|
test -z "$as_dir" && as_dir=. |
3320 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
3321 |
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3322 |
< |
ac_cv_prog_ac_ct_FC="$ac_prog" |
3322 |
> |
ac_cv_prog_ac_ct_CXX="$ac_prog" |
3323 |
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3324 |
|
break 2 |
3325 |
|
fi |
3329 |
|
|
3330 |
|
fi |
3331 |
|
fi |
3332 |
< |
ac_ct_FC=$ac_cv_prog_ac_ct_FC |
3333 |
< |
if test -n "$ac_ct_FC"; then |
3334 |
< |
{ echo "$as_me:$LINENO: result: $ac_ct_FC" >&5 |
3335 |
< |
echo "${ECHO_T}$ac_ct_FC" >&6; } |
3332 |
> |
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
3333 |
> |
if test -n "$ac_ct_CXX"; then |
3334 |
> |
{ echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
3335 |
> |
echo "${ECHO_T}$ac_ct_CXX" >&6; } |
3336 |
|
else |
3337 |
|
{ echo "$as_me:$LINENO: result: no" >&5 |
3338 |
|
echo "${ECHO_T}no" >&6; } |
3339 |
|
fi |
3340 |
|
|
3341 |
|
|
3342 |
< |
test -n "$ac_ct_FC" && break |
3342 |
> |
test -n "$ac_ct_CXX" && break |
3343 |
|
done |
3344 |
|
|
3345 |
< |
if test "x$ac_ct_FC" = x; then |
3346 |
< |
FC="" |
3345 |
> |
if test "x$ac_ct_CXX" = x; then |
3346 |
> |
CXX="g++" |
3347 |
|
else |
3348 |
|
case $cross_compiling:$ac_tool_warned in |
3349 |
|
yes:) |
3355 |
|
configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
3356 |
|
ac_tool_warned=yes ;; |
3357 |
|
esac |
3358 |
< |
FC=$ac_ct_FC |
3358 |
> |
CXX=$ac_ct_CXX |
3359 |
|
fi |
3360 |
|
fi |
3361 |
|
|
3362 |
< |
|
3362 |
> |
fi |
3363 |
> |
fi |
3364 |
|
# Provide some information about the compiler. |
3365 |
< |
echo "$as_me:$LINENO: checking for Fortran compiler version" >&5 |
3365 |
> |
echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
3366 |
|
ac_compiler=`set X $ac_compile; echo $2` |
3367 |
|
{ (ac_try="$ac_compiler --version >&5" |
3368 |
|
case "(($ac_try" in |
3394 |
|
ac_status=$? |
3395 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3396 |
|
(exit $ac_status); } |
3348 |
– |
rm -rf a.out |
3397 |
|
|
3398 |
< |
# If we don't use `.F' as extension, the preprocessor is not run on the |
3399 |
< |
# input file. (Note that this only needs to work for GNU compilers.) |
3400 |
< |
ac_save_ext=$ac_ext |
3401 |
< |
ac_ext=F |
3402 |
< |
{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5 |
3403 |
< |
echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6; } |
3356 |
< |
if test "${ac_cv_fc_compiler_gnu+set}" = set; then |
3357 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3358 |
< |
else |
3359 |
< |
cat >conftest.$ac_ext <<_ACEOF |
3360 |
< |
program main |
3361 |
< |
#ifndef __GNUC__ |
3362 |
< |
choke me |
3363 |
< |
#endif |
3398 |
> |
cat >conftest.$ac_ext <<_ACEOF |
3399 |
> |
/* confdefs.h. */ |
3400 |
> |
_ACEOF |
3401 |
> |
cat confdefs.h >>conftest.$ac_ext |
3402 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
3403 |
> |
/* end confdefs.h. */ |
3404 |
|
|
3405 |
< |
end |
3405 |
> |
int |
3406 |
> |
main () |
3407 |
> |
{ |
3408 |
> |
|
3409 |
> |
; |
3410 |
> |
return 0; |
3411 |
> |
} |
3412 |
|
_ACEOF |
3413 |
< |
rm -rf conftest.$ac_objext |
3414 |
< |
if { (ac_try="$ac_compile" |
3413 |
> |
ac_clean_files_save=$ac_clean_files |
3414 |
> |
ac_clean_files="$ac_clean_files a.out a.exe b.out" |
3415 |
> |
# Try to create an executable without -o first, disregard a.out. |
3416 |
> |
# It will help us diagnose broken compilers, and finding out an intuition |
3417 |
> |
# of exeext. |
3418 |
> |
{ echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5 |
3419 |
> |
echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; } |
3420 |
> |
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
3421 |
> |
# |
3422 |
> |
# List of possible output files, starting from the most likely. |
3423 |
> |
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
3424 |
> |
# only as a last resort. b.out is created by i960 compilers. |
3425 |
> |
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
3426 |
> |
# |
3427 |
> |
# The IRIX 6 linker writes into existing files which may not be |
3428 |
> |
# executable, retaining their permissions. Remove them first so a |
3429 |
> |
# subsequent execution test works. |
3430 |
> |
ac_rmfiles= |
3431 |
> |
for ac_file in $ac_files |
3432 |
> |
do |
3433 |
> |
case $ac_file in |
3434 |
> |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
3435 |
> |
* ) ac_rmfiles="$ac_rmfiles $ac_file";; |
3436 |
> |
esac |
3437 |
> |
done |
3438 |
> |
rm -f $ac_rmfiles |
3439 |
> |
|
3440 |
> |
if { (ac_try="$ac_link_default" |
3441 |
|
case "(($ac_try" in |
3442 |
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3443 |
|
*) ac_try_echo=$ac_try;; |
3444 |
|
esac |
3445 |
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3446 |
< |
(eval "$ac_compile") 2>conftest.er1 |
3446 |
> |
(eval "$ac_link_default") 2>&5 |
3447 |
|
ac_status=$? |
3376 |
– |
grep -v '^ *+' conftest.er1 >conftest.err |
3377 |
– |
rm -f conftest.er1 |
3378 |
– |
cat conftest.err >&5 |
3448 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3449 |
< |
(exit $ac_status); } && { |
3450 |
< |
test -z "$ac_fc_werror_flag" || |
3451 |
< |
test ! -s conftest.err |
3452 |
< |
} && test -s conftest.$ac_objext; then |
3453 |
< |
ac_compiler_gnu=yes |
3449 |
> |
(exit $ac_status); }; then |
3450 |
> |
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
3451 |
> |
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
3452 |
> |
# in a Makefile. We should not override ac_cv_exeext if it was cached, |
3453 |
> |
# so that the user can short-circuit this test for compilers unknown to |
3454 |
> |
# Autoconf. |
3455 |
> |
for ac_file in $ac_files '' |
3456 |
> |
do |
3457 |
> |
test -f "$ac_file" || continue |
3458 |
> |
case $ac_file in |
3459 |
> |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
3460 |
> |
;; |
3461 |
> |
[ab].out ) |
3462 |
> |
# We found the default executable, but exeext='' is most |
3463 |
> |
# certainly right. |
3464 |
> |
break;; |
3465 |
> |
*.* ) |
3466 |
> |
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
3467 |
> |
then :; else |
3468 |
> |
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
3469 |
> |
fi |
3470 |
> |
# We set ac_cv_exeext here because the later test for it is not |
3471 |
> |
# safe: cross compilers may not add the suffix if given an `-o' |
3472 |
> |
# argument, so we may need to know it at that point already. |
3473 |
> |
# Even if this section looks crufty: it has the advantage of |
3474 |
> |
# actually working. |
3475 |
> |
break;; |
3476 |
> |
* ) |
3477 |
> |
break;; |
3478 |
> |
esac |
3479 |
> |
done |
3480 |
> |
test "$ac_cv_exeext" = no && ac_cv_exeext= |
3481 |
> |
|
3482 |
|
else |
3483 |
+ |
ac_file='' |
3484 |
+ |
fi |
3485 |
+ |
|
3486 |
+ |
{ echo "$as_me:$LINENO: result: $ac_file" >&5 |
3487 |
+ |
echo "${ECHO_T}$ac_file" >&6; } |
3488 |
+ |
if test -z "$ac_file"; then |
3489 |
|
echo "$as_me: failed program was:" >&5 |
3490 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
3491 |
|
|
3492 |
< |
ac_compiler_gnu=no |
3492 |
> |
{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables |
3493 |
> |
See \`config.log' for more details." >&5 |
3494 |
> |
echo "$as_me: error: C++ compiler cannot create executables |
3495 |
> |
See \`config.log' for more details." >&2;} |
3496 |
> |
{ (exit 77); exit 77; }; } |
3497 |
|
fi |
3498 |
|
|
3499 |
< |
rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext |
3393 |
< |
ac_cv_fc_compiler_gnu=$ac_compiler_gnu |
3499 |
> |
ac_exeext=$ac_cv_exeext |
3500 |
|
|
3501 |
+ |
# Check that the compiler produces executables we can run. If not, either |
3502 |
+ |
# the compiler is broken, or we cross compile. |
3503 |
+ |
{ echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 |
3504 |
+ |
echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; } |
3505 |
+ |
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
3506 |
+ |
# If not cross compiling, check that we can run a simple program. |
3507 |
+ |
if test "$cross_compiling" != yes; then |
3508 |
+ |
if { ac_try='./$ac_file' |
3509 |
+ |
{ (case "(($ac_try" in |
3510 |
+ |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3511 |
+ |
*) ac_try_echo=$ac_try;; |
3512 |
+ |
esac |
3513 |
+ |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3514 |
+ |
(eval "$ac_try") 2>&5 |
3515 |
+ |
ac_status=$? |
3516 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3517 |
+ |
(exit $ac_status); }; }; then |
3518 |
+ |
cross_compiling=no |
3519 |
+ |
else |
3520 |
+ |
if test "$cross_compiling" = maybe; then |
3521 |
+ |
cross_compiling=yes |
3522 |
+ |
else |
3523 |
+ |
{ { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. |
3524 |
+ |
If you meant to cross compile, use \`--host'. |
3525 |
+ |
See \`config.log' for more details." >&5 |
3526 |
+ |
echo "$as_me: error: cannot run C++ compiled programs. |
3527 |
+ |
If you meant to cross compile, use \`--host'. |
3528 |
+ |
See \`config.log' for more details." >&2;} |
3529 |
+ |
{ (exit 1); exit 1; }; } |
3530 |
+ |
fi |
3531 |
+ |
fi |
3532 |
|
fi |
3533 |
< |
{ echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5 |
3534 |
< |
echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6; } |
3535 |
< |
ac_ext=$ac_save_ext |
3536 |
< |
ac_test_FFLAGS=${FCFLAGS+set} |
3537 |
< |
ac_save_FFLAGS=$FCFLAGS |
3538 |
< |
FCFLAGS= |
3539 |
< |
{ echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5 |
3540 |
< |
echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6; } |
3541 |
< |
if test "${ac_cv_prog_fc_g+set}" = set; then |
3533 |
> |
{ echo "$as_me:$LINENO: result: yes" >&5 |
3534 |
> |
echo "${ECHO_T}yes" >&6; } |
3535 |
> |
|
3536 |
> |
rm -f a.out a.exe conftest$ac_cv_exeext b.out |
3537 |
> |
ac_clean_files=$ac_clean_files_save |
3538 |
> |
# Check that the compiler produces executables we can run. If not, either |
3539 |
> |
# the compiler is broken, or we cross compile. |
3540 |
> |
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
3541 |
> |
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
3542 |
> |
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
3543 |
> |
echo "${ECHO_T}$cross_compiling" >&6; } |
3544 |
> |
|
3545 |
> |
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
3546 |
> |
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
3547 |
> |
if { (ac_try="$ac_link" |
3548 |
> |
case "(($ac_try" in |
3549 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3550 |
> |
*) ac_try_echo=$ac_try;; |
3551 |
> |
esac |
3552 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3553 |
> |
(eval "$ac_link") 2>&5 |
3554 |
> |
ac_status=$? |
3555 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3556 |
> |
(exit $ac_status); }; then |
3557 |
> |
# If both `conftest.exe' and `conftest' are `present' (well, observable) |
3558 |
> |
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
3559 |
> |
# work properly (i.e., refer to `conftest.exe'), while it won't with |
3560 |
> |
# `rm'. |
3561 |
> |
for ac_file in conftest.exe conftest conftest.*; do |
3562 |
> |
test -f "$ac_file" || continue |
3563 |
> |
case $ac_file in |
3564 |
> |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
3565 |
> |
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
3566 |
> |
break;; |
3567 |
> |
* ) break;; |
3568 |
> |
esac |
3569 |
> |
done |
3570 |
> |
else |
3571 |
> |
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
3572 |
> |
See \`config.log' for more details." >&5 |
3573 |
> |
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
3574 |
> |
See \`config.log' for more details." >&2;} |
3575 |
> |
{ (exit 1); exit 1; }; } |
3576 |
> |
fi |
3577 |
> |
|
3578 |
> |
rm -f conftest$ac_cv_exeext |
3579 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
3580 |
> |
echo "${ECHO_T}$ac_cv_exeext" >&6; } |
3581 |
> |
|
3582 |
> |
rm -f conftest.$ac_ext |
3583 |
> |
EXEEXT=$ac_cv_exeext |
3584 |
> |
ac_exeext=$EXEEXT |
3585 |
> |
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
3586 |
> |
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
3587 |
> |
if test "${ac_cv_objext+set}" = set; then |
3588 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3589 |
|
else |
3590 |
< |
FCFLAGS=-g |
3591 |
< |
cat >conftest.$ac_ext <<_ACEOF |
3592 |
< |
program main |
3590 |
> |
cat >conftest.$ac_ext <<_ACEOF |
3591 |
> |
/* confdefs.h. */ |
3592 |
> |
_ACEOF |
3593 |
> |
cat confdefs.h >>conftest.$ac_ext |
3594 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
3595 |
> |
/* end confdefs.h. */ |
3596 |
|
|
3597 |
< |
end |
3597 |
> |
int |
3598 |
> |
main () |
3599 |
> |
{ |
3600 |
> |
|
3601 |
> |
; |
3602 |
> |
return 0; |
3603 |
> |
} |
3604 |
|
_ACEOF |
3605 |
< |
rm -rf conftest.$ac_objext |
3605 |
> |
rm -f conftest.o conftest.obj |
3606 |
|
if { (ac_try="$ac_compile" |
3607 |
|
case "(($ac_try" in |
3608 |
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3609 |
|
*) ac_try_echo=$ac_try;; |
3610 |
|
esac |
3611 |
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3612 |
< |
(eval "$ac_compile") 2>conftest.er1 |
3612 |
> |
(eval "$ac_compile") 2>&5 |
3613 |
|
ac_status=$? |
3422 |
– |
grep -v '^ *+' conftest.er1 >conftest.err |
3423 |
– |
rm -f conftest.er1 |
3424 |
– |
cat conftest.err >&5 |
3614 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3615 |
< |
(exit $ac_status); } && { |
3616 |
< |
test -z "$ac_fc_werror_flag" || |
3617 |
< |
test ! -s conftest.err |
3618 |
< |
} && test -s conftest.$ac_objext; then |
3619 |
< |
ac_cv_prog_fc_g=yes |
3615 |
> |
(exit $ac_status); }; then |
3616 |
> |
for ac_file in conftest.o conftest.obj conftest.*; do |
3617 |
> |
test -f "$ac_file" || continue; |
3618 |
> |
case $ac_file in |
3619 |
> |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
3620 |
> |
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3621 |
> |
break;; |
3622 |
> |
esac |
3623 |
> |
done |
3624 |
|
else |
3625 |
|
echo "$as_me: failed program was:" >&5 |
3626 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
3627 |
|
|
3628 |
< |
ac_cv_prog_fc_g=no |
3628 |
> |
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
3629 |
> |
See \`config.log' for more details." >&5 |
3630 |
> |
echo "$as_me: error: cannot compute suffix of object files: cannot compile |
3631 |
> |
See \`config.log' for more details." >&2;} |
3632 |
> |
{ (exit 1); exit 1; }; } |
3633 |
|
fi |
3634 |
|
|
3635 |
< |
rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext |
3439 |
< |
|
3635 |
> |
rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3636 |
|
fi |
3637 |
< |
{ echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5 |
3638 |
< |
echo "${ECHO_T}$ac_cv_prog_fc_g" >&6; } |
3639 |
< |
if test "$ac_test_FFLAGS" = set; then |
3640 |
< |
FCFLAGS=$ac_save_FFLAGS |
3641 |
< |
elif test $ac_cv_prog_fc_g = yes; then |
3642 |
< |
if test "x$ac_cv_fc_compiler_gnu" = xyes; then |
3637 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
3638 |
> |
echo "${ECHO_T}$ac_cv_objext" >&6; } |
3639 |
> |
OBJEXT=$ac_cv_objext |
3640 |
> |
ac_objext=$OBJEXT |
3641 |
> |
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
3642 |
> |
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } |
3643 |
> |
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
3644 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3645 |
> |
else |
3646 |
> |
cat >conftest.$ac_ext <<_ACEOF |
3647 |
> |
/* confdefs.h. */ |
3648 |
> |
_ACEOF |
3649 |
> |
cat confdefs.h >>conftest.$ac_ext |
3650 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
3651 |
> |
/* end confdefs.h. */ |
3652 |
> |
|
3653 |
> |
int |
3654 |
> |
main () |
3655 |
> |
{ |
3656 |
> |
#ifndef __GNUC__ |
3657 |
> |
choke me |
3658 |
> |
#endif |
3659 |
> |
|
3660 |
> |
; |
3661 |
> |
return 0; |
3662 |
> |
} |
3663 |
> |
_ACEOF |
3664 |
> |
rm -f conftest.$ac_objext |
3665 |
> |
if { (ac_try="$ac_compile" |
3666 |
> |
case "(($ac_try" in |
3667 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3668 |
> |
*) ac_try_echo=$ac_try;; |
3669 |
> |
esac |
3670 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3671 |
> |
(eval "$ac_compile") 2>conftest.er1 |
3672 |
> |
ac_status=$? |
3673 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
3674 |
> |
rm -f conftest.er1 |
3675 |
> |
cat conftest.err >&5 |
3676 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3677 |
> |
(exit $ac_status); } && { |
3678 |
> |
test -z "$ac_cxx_werror_flag" || |
3679 |
> |
test ! -s conftest.err |
3680 |
> |
} && test -s conftest.$ac_objext; then |
3681 |
> |
ac_compiler_gnu=yes |
3682 |
> |
else |
3683 |
> |
echo "$as_me: failed program was:" >&5 |
3684 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
3685 |
> |
|
3686 |
> |
ac_compiler_gnu=no |
3687 |
> |
fi |
3688 |
> |
|
3689 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3690 |
> |
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
3691 |
> |
|
3692 |
> |
fi |
3693 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
3694 |
> |
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
3695 |
> |
GXX=`test $ac_compiler_gnu = yes && echo yes` |
3696 |
> |
ac_test_CXXFLAGS=${CXXFLAGS+set} |
3697 |
> |
ac_save_CXXFLAGS=$CXXFLAGS |
3698 |
> |
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
3699 |
> |
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
3700 |
> |
if test "${ac_cv_prog_cxx_g+set}" = set; then |
3701 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3702 |
> |
else |
3703 |
> |
ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
3704 |
> |
ac_cxx_werror_flag=yes |
3705 |
> |
ac_cv_prog_cxx_g=no |
3706 |
> |
CXXFLAGS="-g" |
3707 |
> |
cat >conftest.$ac_ext <<_ACEOF |
3708 |
> |
/* confdefs.h. */ |
3709 |
> |
_ACEOF |
3710 |
> |
cat confdefs.h >>conftest.$ac_ext |
3711 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
3712 |
> |
/* end confdefs.h. */ |
3713 |
> |
|
3714 |
> |
int |
3715 |
> |
main () |
3716 |
> |
{ |
3717 |
> |
|
3718 |
> |
; |
3719 |
> |
return 0; |
3720 |
> |
} |
3721 |
> |
_ACEOF |
3722 |
> |
rm -f conftest.$ac_objext |
3723 |
> |
if { (ac_try="$ac_compile" |
3724 |
> |
case "(($ac_try" in |
3725 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3726 |
> |
*) ac_try_echo=$ac_try;; |
3727 |
> |
esac |
3728 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3729 |
> |
(eval "$ac_compile") 2>conftest.er1 |
3730 |
> |
ac_status=$? |
3731 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
3732 |
> |
rm -f conftest.er1 |
3733 |
> |
cat conftest.err >&5 |
3734 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3735 |
> |
(exit $ac_status); } && { |
3736 |
> |
test -z "$ac_cxx_werror_flag" || |
3737 |
> |
test ! -s conftest.err |
3738 |
> |
} && test -s conftest.$ac_objext; then |
3739 |
> |
ac_cv_prog_cxx_g=yes |
3740 |
> |
else |
3741 |
> |
echo "$as_me: failed program was:" >&5 |
3742 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
3743 |
> |
|
3744 |
> |
CXXFLAGS="" |
3745 |
> |
cat >conftest.$ac_ext <<_ACEOF |
3746 |
> |
/* confdefs.h. */ |
3747 |
> |
_ACEOF |
3748 |
> |
cat confdefs.h >>conftest.$ac_ext |
3749 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
3750 |
> |
/* end confdefs.h. */ |
3751 |
> |
|
3752 |
> |
int |
3753 |
> |
main () |
3754 |
> |
{ |
3755 |
> |
|
3756 |
> |
; |
3757 |
> |
return 0; |
3758 |
> |
} |
3759 |
> |
_ACEOF |
3760 |
> |
rm -f conftest.$ac_objext |
3761 |
> |
if { (ac_try="$ac_compile" |
3762 |
> |
case "(($ac_try" in |
3763 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3764 |
> |
*) ac_try_echo=$ac_try;; |
3765 |
> |
esac |
3766 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3767 |
> |
(eval "$ac_compile") 2>conftest.er1 |
3768 |
> |
ac_status=$? |
3769 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
3770 |
> |
rm -f conftest.er1 |
3771 |
> |
cat conftest.err >&5 |
3772 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3773 |
> |
(exit $ac_status); } && { |
3774 |
> |
test -z "$ac_cxx_werror_flag" || |
3775 |
> |
test ! -s conftest.err |
3776 |
> |
} && test -s conftest.$ac_objext; then |
3777 |
> |
: |
3778 |
> |
else |
3779 |
> |
echo "$as_me: failed program was:" >&5 |
3780 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
3781 |
> |
|
3782 |
> |
ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
3783 |
> |
CXXFLAGS="-g" |
3784 |
> |
cat >conftest.$ac_ext <<_ACEOF |
3785 |
> |
/* confdefs.h. */ |
3786 |
> |
_ACEOF |
3787 |
> |
cat confdefs.h >>conftest.$ac_ext |
3788 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
3789 |
> |
/* end confdefs.h. */ |
3790 |
> |
|
3791 |
> |
int |
3792 |
> |
main () |
3793 |
> |
{ |
3794 |
> |
|
3795 |
> |
; |
3796 |
> |
return 0; |
3797 |
> |
} |
3798 |
> |
_ACEOF |
3799 |
> |
rm -f conftest.$ac_objext |
3800 |
> |
if { (ac_try="$ac_compile" |
3801 |
> |
case "(($ac_try" in |
3802 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3803 |
> |
*) ac_try_echo=$ac_try;; |
3804 |
> |
esac |
3805 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3806 |
> |
(eval "$ac_compile") 2>conftest.er1 |
3807 |
> |
ac_status=$? |
3808 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
3809 |
> |
rm -f conftest.er1 |
3810 |
> |
cat conftest.err >&5 |
3811 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3812 |
> |
(exit $ac_status); } && { |
3813 |
> |
test -z "$ac_cxx_werror_flag" || |
3814 |
> |
test ! -s conftest.err |
3815 |
> |
} && test -s conftest.$ac_objext; then |
3816 |
> |
ac_cv_prog_cxx_g=yes |
3817 |
> |
else |
3818 |
> |
echo "$as_me: failed program was:" >&5 |
3819 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
3820 |
> |
|
3821 |
> |
|
3822 |
> |
fi |
3823 |
> |
|
3824 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3825 |
> |
fi |
3826 |
> |
|
3827 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3828 |
> |
fi |
3829 |
> |
|
3830 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3831 |
> |
ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
3832 |
> |
fi |
3833 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
3834 |
> |
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } |
3835 |
> |
if test "$ac_test_CXXFLAGS" = set; then |
3836 |
> |
CXXFLAGS=$ac_save_CXXFLAGS |
3837 |
> |
elif test $ac_cv_prog_cxx_g = yes; then |
3838 |
> |
if test "$GXX" = yes; then |
3839 |
> |
CXXFLAGS="-g -O2" |
3840 |
> |
else |
3841 |
> |
CXXFLAGS="-g" |
3842 |
> |
fi |
3843 |
> |
else |
3844 |
> |
if test "$GXX" = yes; then |
3845 |
> |
CXXFLAGS="-O2" |
3846 |
> |
else |
3847 |
> |
CXXFLAGS= |
3848 |
> |
fi |
3849 |
> |
fi |
3850 |
> |
ac_ext=c |
3851 |
> |
ac_cpp='$CPP $CPPFLAGS' |
3852 |
> |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3853 |
> |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3854 |
> |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3855 |
> |
|
3856 |
> |
ac_ext=c |
3857 |
> |
ac_cpp='$CPP $CPPFLAGS' |
3858 |
> |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3859 |
> |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3860 |
> |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3861 |
> |
if test -n "$ac_tool_prefix"; then |
3862 |
> |
for ac_prog in $CC $ac_cv_prog_acx_mpi_mpicc icc pathcc pgcc cc xlc gcc |
3863 |
> |
do |
3864 |
> |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
3865 |
> |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
3866 |
> |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3867 |
> |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
3868 |
> |
if test "${ac_cv_prog_CC+set}" = set; then |
3869 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3870 |
> |
else |
3871 |
> |
if test -n "$CC"; then |
3872 |
> |
ac_cv_prog_CC="$CC" # Let the user override the test. |
3873 |
> |
else |
3874 |
> |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3875 |
> |
for as_dir in $PATH |
3876 |
> |
do |
3877 |
> |
IFS=$as_save_IFS |
3878 |
> |
test -z "$as_dir" && as_dir=. |
3879 |
> |
for ac_exec_ext in '' $ac_executable_extensions; do |
3880 |
> |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3881 |
> |
ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
3882 |
> |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3883 |
> |
break 2 |
3884 |
> |
fi |
3885 |
> |
done |
3886 |
> |
done |
3887 |
> |
IFS=$as_save_IFS |
3888 |
> |
|
3889 |
> |
fi |
3890 |
> |
fi |
3891 |
> |
CC=$ac_cv_prog_CC |
3892 |
> |
if test -n "$CC"; then |
3893 |
> |
{ echo "$as_me:$LINENO: result: $CC" >&5 |
3894 |
> |
echo "${ECHO_T}$CC" >&6; } |
3895 |
> |
else |
3896 |
> |
{ echo "$as_me:$LINENO: result: no" >&5 |
3897 |
> |
echo "${ECHO_T}no" >&6; } |
3898 |
> |
fi |
3899 |
> |
|
3900 |
> |
|
3901 |
> |
test -n "$CC" && break |
3902 |
> |
done |
3903 |
> |
fi |
3904 |
> |
if test -z "$CC"; then |
3905 |
> |
ac_ct_CC=$CC |
3906 |
> |
for ac_prog in $CC $ac_cv_prog_acx_mpi_mpicc icc pathcc pgcc cc xlc gcc |
3907 |
> |
do |
3908 |
> |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
3909 |
> |
set dummy $ac_prog; ac_word=$2 |
3910 |
> |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3911 |
> |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
3912 |
> |
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
3913 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3914 |
> |
else |
3915 |
> |
if test -n "$ac_ct_CC"; then |
3916 |
> |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
3917 |
> |
else |
3918 |
> |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3919 |
> |
for as_dir in $PATH |
3920 |
> |
do |
3921 |
> |
IFS=$as_save_IFS |
3922 |
> |
test -z "$as_dir" && as_dir=. |
3923 |
> |
for ac_exec_ext in '' $ac_executable_extensions; do |
3924 |
> |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3925 |
> |
ac_cv_prog_ac_ct_CC="$ac_prog" |
3926 |
> |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3927 |
> |
break 2 |
3928 |
> |
fi |
3929 |
> |
done |
3930 |
> |
done |
3931 |
> |
IFS=$as_save_IFS |
3932 |
> |
|
3933 |
> |
fi |
3934 |
> |
fi |
3935 |
> |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3936 |
> |
if test -n "$ac_ct_CC"; then |
3937 |
> |
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
3938 |
> |
echo "${ECHO_T}$ac_ct_CC" >&6; } |
3939 |
> |
else |
3940 |
> |
{ echo "$as_me:$LINENO: result: no" >&5 |
3941 |
> |
echo "${ECHO_T}no" >&6; } |
3942 |
> |
fi |
3943 |
> |
|
3944 |
> |
|
3945 |
> |
test -n "$ac_ct_CC" && break |
3946 |
> |
done |
3947 |
> |
|
3948 |
> |
if test "x$ac_ct_CC" = x; then |
3949 |
> |
CC="" |
3950 |
> |
else |
3951 |
> |
case $cross_compiling:$ac_tool_warned in |
3952 |
> |
yes:) |
3953 |
> |
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
3954 |
> |
whose name does not start with the host triplet. If you think this |
3955 |
> |
configuration is useful to you, please write to autoconf@gnu.org." >&5 |
3956 |
> |
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
3957 |
> |
whose name does not start with the host triplet. If you think this |
3958 |
> |
configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
3959 |
> |
ac_tool_warned=yes ;; |
3960 |
> |
esac |
3961 |
> |
CC=$ac_ct_CC |
3962 |
> |
fi |
3963 |
> |
fi |
3964 |
> |
|
3965 |
> |
|
3966 |
> |
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
3967 |
> |
See \`config.log' for more details." >&5 |
3968 |
> |
echo "$as_me: error: no acceptable C compiler found in \$PATH |
3969 |
> |
See \`config.log' for more details." >&2;} |
3970 |
> |
{ (exit 1); exit 1; }; } |
3971 |
> |
|
3972 |
> |
# Provide some information about the compiler. |
3973 |
> |
echo "$as_me:$LINENO: checking for C compiler version" >&5 |
3974 |
> |
ac_compiler=`set X $ac_compile; echo $2` |
3975 |
> |
{ (ac_try="$ac_compiler --version >&5" |
3976 |
> |
case "(($ac_try" in |
3977 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3978 |
> |
*) ac_try_echo=$ac_try;; |
3979 |
> |
esac |
3980 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3981 |
> |
(eval "$ac_compiler --version >&5") 2>&5 |
3982 |
> |
ac_status=$? |
3983 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3984 |
> |
(exit $ac_status); } |
3985 |
> |
{ (ac_try="$ac_compiler -v >&5" |
3986 |
> |
case "(($ac_try" in |
3987 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3988 |
> |
*) ac_try_echo=$ac_try;; |
3989 |
> |
esac |
3990 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3991 |
> |
(eval "$ac_compiler -v >&5") 2>&5 |
3992 |
> |
ac_status=$? |
3993 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3994 |
> |
(exit $ac_status); } |
3995 |
> |
{ (ac_try="$ac_compiler -V >&5" |
3996 |
> |
case "(($ac_try" in |
3997 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3998 |
> |
*) ac_try_echo=$ac_try;; |
3999 |
> |
esac |
4000 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4001 |
> |
(eval "$ac_compiler -V >&5") 2>&5 |
4002 |
> |
ac_status=$? |
4003 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4004 |
> |
(exit $ac_status); } |
4005 |
> |
|
4006 |
> |
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
4007 |
> |
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
4008 |
> |
if test "${ac_cv_c_compiler_gnu+set}" = set; then |
4009 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4010 |
> |
else |
4011 |
> |
cat >conftest.$ac_ext <<_ACEOF |
4012 |
> |
/* confdefs.h. */ |
4013 |
> |
_ACEOF |
4014 |
> |
cat confdefs.h >>conftest.$ac_ext |
4015 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
4016 |
> |
/* end confdefs.h. */ |
4017 |
> |
|
4018 |
> |
int |
4019 |
> |
main () |
4020 |
> |
{ |
4021 |
> |
#ifndef __GNUC__ |
4022 |
> |
choke me |
4023 |
> |
#endif |
4024 |
> |
|
4025 |
> |
; |
4026 |
> |
return 0; |
4027 |
> |
} |
4028 |
> |
_ACEOF |
4029 |
> |
rm -f conftest.$ac_objext |
4030 |
> |
if { (ac_try="$ac_compile" |
4031 |
> |
case "(($ac_try" in |
4032 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4033 |
> |
*) ac_try_echo=$ac_try;; |
4034 |
> |
esac |
4035 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4036 |
> |
(eval "$ac_compile") 2>conftest.er1 |
4037 |
> |
ac_status=$? |
4038 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
4039 |
> |
rm -f conftest.er1 |
4040 |
> |
cat conftest.err >&5 |
4041 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4042 |
> |
(exit $ac_status); } && { |
4043 |
> |
test -z "$ac_c_werror_flag" || |
4044 |
> |
test ! -s conftest.err |
4045 |
> |
} && test -s conftest.$ac_objext; then |
4046 |
> |
ac_compiler_gnu=yes |
4047 |
> |
else |
4048 |
> |
echo "$as_me: failed program was:" >&5 |
4049 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
4050 |
> |
|
4051 |
> |
ac_compiler_gnu=no |
4052 |
> |
fi |
4053 |
> |
|
4054 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4055 |
> |
ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4056 |
> |
|
4057 |
> |
fi |
4058 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
4059 |
> |
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
4060 |
> |
GCC=`test $ac_compiler_gnu = yes && echo yes` |
4061 |
> |
ac_test_CFLAGS=${CFLAGS+set} |
4062 |
> |
ac_save_CFLAGS=$CFLAGS |
4063 |
> |
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
4064 |
> |
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
4065 |
> |
if test "${ac_cv_prog_cc_g+set}" = set; then |
4066 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4067 |
> |
else |
4068 |
> |
ac_save_c_werror_flag=$ac_c_werror_flag |
4069 |
> |
ac_c_werror_flag=yes |
4070 |
> |
ac_cv_prog_cc_g=no |
4071 |
> |
CFLAGS="-g" |
4072 |
> |
cat >conftest.$ac_ext <<_ACEOF |
4073 |
> |
/* confdefs.h. */ |
4074 |
> |
_ACEOF |
4075 |
> |
cat confdefs.h >>conftest.$ac_ext |
4076 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
4077 |
> |
/* end confdefs.h. */ |
4078 |
> |
|
4079 |
> |
int |
4080 |
> |
main () |
4081 |
> |
{ |
4082 |
> |
|
4083 |
> |
; |
4084 |
> |
return 0; |
4085 |
> |
} |
4086 |
> |
_ACEOF |
4087 |
> |
rm -f conftest.$ac_objext |
4088 |
> |
if { (ac_try="$ac_compile" |
4089 |
> |
case "(($ac_try" in |
4090 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4091 |
> |
*) ac_try_echo=$ac_try;; |
4092 |
> |
esac |
4093 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4094 |
> |
(eval "$ac_compile") 2>conftest.er1 |
4095 |
> |
ac_status=$? |
4096 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
4097 |
> |
rm -f conftest.er1 |
4098 |
> |
cat conftest.err >&5 |
4099 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4100 |
> |
(exit $ac_status); } && { |
4101 |
> |
test -z "$ac_c_werror_flag" || |
4102 |
> |
test ! -s conftest.err |
4103 |
> |
} && test -s conftest.$ac_objext; then |
4104 |
> |
ac_cv_prog_cc_g=yes |
4105 |
> |
else |
4106 |
> |
echo "$as_me: failed program was:" >&5 |
4107 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
4108 |
> |
|
4109 |
> |
CFLAGS="" |
4110 |
> |
cat >conftest.$ac_ext <<_ACEOF |
4111 |
> |
/* confdefs.h. */ |
4112 |
> |
_ACEOF |
4113 |
> |
cat confdefs.h >>conftest.$ac_ext |
4114 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
4115 |
> |
/* end confdefs.h. */ |
4116 |
> |
|
4117 |
> |
int |
4118 |
> |
main () |
4119 |
> |
{ |
4120 |
> |
|
4121 |
> |
; |
4122 |
> |
return 0; |
4123 |
> |
} |
4124 |
> |
_ACEOF |
4125 |
> |
rm -f conftest.$ac_objext |
4126 |
> |
if { (ac_try="$ac_compile" |
4127 |
> |
case "(($ac_try" in |
4128 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4129 |
> |
*) ac_try_echo=$ac_try;; |
4130 |
> |
esac |
4131 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4132 |
> |
(eval "$ac_compile") 2>conftest.er1 |
4133 |
> |
ac_status=$? |
4134 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
4135 |
> |
rm -f conftest.er1 |
4136 |
> |
cat conftest.err >&5 |
4137 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4138 |
> |
(exit $ac_status); } && { |
4139 |
> |
test -z "$ac_c_werror_flag" || |
4140 |
> |
test ! -s conftest.err |
4141 |
> |
} && test -s conftest.$ac_objext; then |
4142 |
> |
: |
4143 |
> |
else |
4144 |
> |
echo "$as_me: failed program was:" >&5 |
4145 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
4146 |
> |
|
4147 |
> |
ac_c_werror_flag=$ac_save_c_werror_flag |
4148 |
> |
CFLAGS="-g" |
4149 |
> |
cat >conftest.$ac_ext <<_ACEOF |
4150 |
> |
/* confdefs.h. */ |
4151 |
> |
_ACEOF |
4152 |
> |
cat confdefs.h >>conftest.$ac_ext |
4153 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
4154 |
> |
/* end confdefs.h. */ |
4155 |
> |
|
4156 |
> |
int |
4157 |
> |
main () |
4158 |
> |
{ |
4159 |
> |
|
4160 |
> |
; |
4161 |
> |
return 0; |
4162 |
> |
} |
4163 |
> |
_ACEOF |
4164 |
> |
rm -f conftest.$ac_objext |
4165 |
> |
if { (ac_try="$ac_compile" |
4166 |
> |
case "(($ac_try" in |
4167 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4168 |
> |
*) ac_try_echo=$ac_try;; |
4169 |
> |
esac |
4170 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4171 |
> |
(eval "$ac_compile") 2>conftest.er1 |
4172 |
> |
ac_status=$? |
4173 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
4174 |
> |
rm -f conftest.er1 |
4175 |
> |
cat conftest.err >&5 |
4176 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4177 |
> |
(exit $ac_status); } && { |
4178 |
> |
test -z "$ac_c_werror_flag" || |
4179 |
> |
test ! -s conftest.err |
4180 |
> |
} && test -s conftest.$ac_objext; then |
4181 |
> |
ac_cv_prog_cc_g=yes |
4182 |
> |
else |
4183 |
> |
echo "$as_me: failed program was:" >&5 |
4184 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
4185 |
> |
|
4186 |
> |
|
4187 |
> |
fi |
4188 |
> |
|
4189 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4190 |
> |
fi |
4191 |
> |
|
4192 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4193 |
> |
fi |
4194 |
> |
|
4195 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4196 |
> |
ac_c_werror_flag=$ac_save_c_werror_flag |
4197 |
> |
fi |
4198 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
4199 |
> |
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
4200 |
> |
if test "$ac_test_CFLAGS" = set; then |
4201 |
> |
CFLAGS=$ac_save_CFLAGS |
4202 |
> |
elif test $ac_cv_prog_cc_g = yes; then |
4203 |
> |
if test "$GCC" = yes; then |
4204 |
> |
CFLAGS="-g -O2" |
4205 |
> |
else |
4206 |
> |
CFLAGS="-g" |
4207 |
> |
fi |
4208 |
> |
else |
4209 |
> |
if test "$GCC" = yes; then |
4210 |
> |
CFLAGS="-O2" |
4211 |
> |
else |
4212 |
> |
CFLAGS= |
4213 |
> |
fi |
4214 |
> |
fi |
4215 |
> |
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
4216 |
> |
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
4217 |
> |
if test "${ac_cv_prog_cc_c89+set}" = set; then |
4218 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4219 |
> |
else |
4220 |
> |
ac_cv_prog_cc_c89=no |
4221 |
> |
ac_save_CC=$CC |
4222 |
> |
cat >conftest.$ac_ext <<_ACEOF |
4223 |
> |
/* confdefs.h. */ |
4224 |
> |
_ACEOF |
4225 |
> |
cat confdefs.h >>conftest.$ac_ext |
4226 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
4227 |
> |
/* end confdefs.h. */ |
4228 |
> |
#include <stdarg.h> |
4229 |
> |
#include <stdio.h> |
4230 |
> |
#include <sys/types.h> |
4231 |
> |
#include <sys/stat.h> |
4232 |
> |
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
4233 |
> |
struct buf { int x; }; |
4234 |
> |
FILE * (*rcsopen) (struct buf *, struct stat *, int); |
4235 |
> |
static char *e (p, i) |
4236 |
> |
char **p; |
4237 |
> |
int i; |
4238 |
> |
{ |
4239 |
> |
return p[i]; |
4240 |
> |
} |
4241 |
> |
static char *f (char * (*g) (char **, int), char **p, ...) |
4242 |
> |
{ |
4243 |
> |
char *s; |
4244 |
> |
va_list v; |
4245 |
> |
va_start (v,p); |
4246 |
> |
s = g (p, va_arg (v,int)); |
4247 |
> |
va_end (v); |
4248 |
> |
return s; |
4249 |
> |
} |
4250 |
> |
|
4251 |
> |
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
4252 |
> |
function prototypes and stuff, but not '\xHH' hex character constants. |
4253 |
> |
These don't provoke an error unfortunately, instead are silently treated |
4254 |
> |
as 'x'. The following induces an error, until -std is added to get |
4255 |
> |
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4256 |
> |
array size at least. It's necessary to write '\x00'==0 to get something |
4257 |
> |
that's true only with -std. */ |
4258 |
> |
int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4259 |
> |
|
4260 |
> |
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4261 |
> |
inside strings and character constants. */ |
4262 |
> |
#define FOO(x) 'x' |
4263 |
> |
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
4264 |
> |
|
4265 |
> |
int test (int i, double x); |
4266 |
> |
struct s1 {int (*f) (int a);}; |
4267 |
> |
struct s2 {int (*f) (double a);}; |
4268 |
> |
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
4269 |
> |
int argc; |
4270 |
> |
char **argv; |
4271 |
> |
int |
4272 |
> |
main () |
4273 |
> |
{ |
4274 |
> |
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
4275 |
> |
; |
4276 |
> |
return 0; |
4277 |
> |
} |
4278 |
> |
_ACEOF |
4279 |
> |
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4280 |
> |
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
4281 |
> |
do |
4282 |
> |
CC="$ac_save_CC $ac_arg" |
4283 |
> |
rm -f conftest.$ac_objext |
4284 |
> |
if { (ac_try="$ac_compile" |
4285 |
> |
case "(($ac_try" in |
4286 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4287 |
> |
*) ac_try_echo=$ac_try;; |
4288 |
> |
esac |
4289 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4290 |
> |
(eval "$ac_compile") 2>conftest.er1 |
4291 |
> |
ac_status=$? |
4292 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
4293 |
> |
rm -f conftest.er1 |
4294 |
> |
cat conftest.err >&5 |
4295 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4296 |
> |
(exit $ac_status); } && { |
4297 |
> |
test -z "$ac_c_werror_flag" || |
4298 |
> |
test ! -s conftest.err |
4299 |
> |
} && test -s conftest.$ac_objext; then |
4300 |
> |
ac_cv_prog_cc_c89=$ac_arg |
4301 |
> |
else |
4302 |
> |
echo "$as_me: failed program was:" >&5 |
4303 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
4304 |
> |
|
4305 |
> |
|
4306 |
> |
fi |
4307 |
> |
|
4308 |
> |
rm -f core conftest.err conftest.$ac_objext |
4309 |
> |
test "x$ac_cv_prog_cc_c89" != "xno" && break |
4310 |
> |
done |
4311 |
> |
rm -f conftest.$ac_ext |
4312 |
> |
CC=$ac_save_CC |
4313 |
> |
|
4314 |
> |
fi |
4315 |
> |
# AC_CACHE_VAL |
4316 |
> |
case "x$ac_cv_prog_cc_c89" in |
4317 |
> |
x) |
4318 |
> |
{ echo "$as_me:$LINENO: result: none needed" >&5 |
4319 |
> |
echo "${ECHO_T}none needed" >&6; } ;; |
4320 |
> |
xno) |
4321 |
> |
{ echo "$as_me:$LINENO: result: unsupported" >&5 |
4322 |
> |
echo "${ECHO_T}unsupported" >&6; } ;; |
4323 |
> |
*) |
4324 |
> |
CC="$CC $ac_cv_prog_cc_c89" |
4325 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
4326 |
> |
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
4327 |
> |
esac |
4328 |
> |
|
4329 |
> |
|
4330 |
> |
ac_ext=c |
4331 |
> |
ac_cpp='$CPP $CPPFLAGS' |
4332 |
> |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4333 |
> |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4334 |
> |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4335 |
> |
|
4336 |
> |
ac_ext=${ac_fc_srcext-f} |
4337 |
> |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
4338 |
> |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
4339 |
> |
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
4340 |
> |
if test -n "$ac_tool_prefix"; then |
4341 |
> |
for ac_prog in $FC $ac_cv_prog_acx_mpi_mpif90 ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort |
4342 |
> |
do |
4343 |
> |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
4344 |
> |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
4345 |
> |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4346 |
> |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
4347 |
> |
if test "${ac_cv_prog_FC+set}" = set; then |
4348 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4349 |
> |
else |
4350 |
> |
if test -n "$FC"; then |
4351 |
> |
ac_cv_prog_FC="$FC" # Let the user override the test. |
4352 |
> |
else |
4353 |
> |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4354 |
> |
for as_dir in $PATH |
4355 |
> |
do |
4356 |
> |
IFS=$as_save_IFS |
4357 |
> |
test -z "$as_dir" && as_dir=. |
4358 |
> |
for ac_exec_ext in '' $ac_executable_extensions; do |
4359 |
> |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
4360 |
> |
ac_cv_prog_FC="$ac_tool_prefix$ac_prog" |
4361 |
> |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4362 |
> |
break 2 |
4363 |
> |
fi |
4364 |
> |
done |
4365 |
> |
done |
4366 |
> |
IFS=$as_save_IFS |
4367 |
> |
|
4368 |
> |
fi |
4369 |
> |
fi |
4370 |
> |
FC=$ac_cv_prog_FC |
4371 |
> |
if test -n "$FC"; then |
4372 |
> |
{ echo "$as_me:$LINENO: result: $FC" >&5 |
4373 |
> |
echo "${ECHO_T}$FC" >&6; } |
4374 |
> |
else |
4375 |
> |
{ echo "$as_me:$LINENO: result: no" >&5 |
4376 |
> |
echo "${ECHO_T}no" >&6; } |
4377 |
> |
fi |
4378 |
> |
|
4379 |
> |
|
4380 |
> |
test -n "$FC" && break |
4381 |
> |
done |
4382 |
> |
fi |
4383 |
> |
if test -z "$FC"; then |
4384 |
> |
ac_ct_FC=$FC |
4385 |
> |
for ac_prog in $FC $ac_cv_prog_acx_mpi_mpif90 ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort |
4386 |
> |
do |
4387 |
> |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
4388 |
> |
set dummy $ac_prog; ac_word=$2 |
4389 |
> |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4390 |
> |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
4391 |
> |
if test "${ac_cv_prog_ac_ct_FC+set}" = set; then |
4392 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4393 |
> |
else |
4394 |
> |
if test -n "$ac_ct_FC"; then |
4395 |
> |
ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test. |
4396 |
> |
else |
4397 |
> |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4398 |
> |
for as_dir in $PATH |
4399 |
> |
do |
4400 |
> |
IFS=$as_save_IFS |
4401 |
> |
test -z "$as_dir" && as_dir=. |
4402 |
> |
for ac_exec_ext in '' $ac_executable_extensions; do |
4403 |
> |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
4404 |
> |
ac_cv_prog_ac_ct_FC="$ac_prog" |
4405 |
> |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4406 |
> |
break 2 |
4407 |
> |
fi |
4408 |
> |
done |
4409 |
> |
done |
4410 |
> |
IFS=$as_save_IFS |
4411 |
> |
|
4412 |
> |
fi |
4413 |
> |
fi |
4414 |
> |
ac_ct_FC=$ac_cv_prog_ac_ct_FC |
4415 |
> |
if test -n "$ac_ct_FC"; then |
4416 |
> |
{ echo "$as_me:$LINENO: result: $ac_ct_FC" >&5 |
4417 |
> |
echo "${ECHO_T}$ac_ct_FC" >&6; } |
4418 |
> |
else |
4419 |
> |
{ echo "$as_me:$LINENO: result: no" >&5 |
4420 |
> |
echo "${ECHO_T}no" >&6; } |
4421 |
> |
fi |
4422 |
> |
|
4423 |
> |
|
4424 |
> |
test -n "$ac_ct_FC" && break |
4425 |
> |
done |
4426 |
> |
|
4427 |
> |
if test "x$ac_ct_FC" = x; then |
4428 |
> |
FC="" |
4429 |
> |
else |
4430 |
> |
case $cross_compiling:$ac_tool_warned in |
4431 |
> |
yes:) |
4432 |
> |
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
4433 |
> |
whose name does not start with the host triplet. If you think this |
4434 |
> |
configuration is useful to you, please write to autoconf@gnu.org." >&5 |
4435 |
> |
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
4436 |
> |
whose name does not start with the host triplet. If you think this |
4437 |
> |
configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
4438 |
> |
ac_tool_warned=yes ;; |
4439 |
> |
esac |
4440 |
> |
FC=$ac_ct_FC |
4441 |
> |
fi |
4442 |
> |
fi |
4443 |
> |
|
4444 |
> |
|
4445 |
> |
# Provide some information about the compiler. |
4446 |
> |
echo "$as_me:$LINENO: checking for Fortran compiler version" >&5 |
4447 |
> |
ac_compiler=`set X $ac_compile; echo $2` |
4448 |
> |
{ (ac_try="$ac_compiler --version >&5" |
4449 |
> |
case "(($ac_try" in |
4450 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4451 |
> |
*) ac_try_echo=$ac_try;; |
4452 |
> |
esac |
4453 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4454 |
> |
(eval "$ac_compiler --version >&5") 2>&5 |
4455 |
> |
ac_status=$? |
4456 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4457 |
> |
(exit $ac_status); } |
4458 |
> |
{ (ac_try="$ac_compiler -v >&5" |
4459 |
> |
case "(($ac_try" in |
4460 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4461 |
> |
*) ac_try_echo=$ac_try;; |
4462 |
> |
esac |
4463 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4464 |
> |
(eval "$ac_compiler -v >&5") 2>&5 |
4465 |
> |
ac_status=$? |
4466 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4467 |
> |
(exit $ac_status); } |
4468 |
> |
{ (ac_try="$ac_compiler -V >&5" |
4469 |
> |
case "(($ac_try" in |
4470 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4471 |
> |
*) ac_try_echo=$ac_try;; |
4472 |
> |
esac |
4473 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4474 |
> |
(eval "$ac_compiler -V >&5") 2>&5 |
4475 |
> |
ac_status=$? |
4476 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4477 |
> |
(exit $ac_status); } |
4478 |
> |
rm -f a.out |
4479 |
> |
|
4480 |
> |
# If we don't use `.F' as extension, the preprocessor is not run on the |
4481 |
> |
# input file. (Note that this only needs to work for GNU compilers.) |
4482 |
> |
ac_save_ext=$ac_ext |
4483 |
> |
ac_ext=F |
4484 |
> |
{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5 |
4485 |
> |
echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6; } |
4486 |
> |
if test "${ac_cv_fc_compiler_gnu+set}" = set; then |
4487 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4488 |
> |
else |
4489 |
> |
cat >conftest.$ac_ext <<_ACEOF |
4490 |
> |
program main |
4491 |
> |
#ifndef __GNUC__ |
4492 |
> |
choke me |
4493 |
> |
#endif |
4494 |
> |
|
4495 |
> |
end |
4496 |
> |
_ACEOF |
4497 |
> |
rm -f conftest.$ac_objext |
4498 |
> |
if { (ac_try="$ac_compile" |
4499 |
> |
case "(($ac_try" in |
4500 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4501 |
> |
*) ac_try_echo=$ac_try;; |
4502 |
> |
esac |
4503 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4504 |
> |
(eval "$ac_compile") 2>conftest.er1 |
4505 |
> |
ac_status=$? |
4506 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
4507 |
> |
rm -f conftest.er1 |
4508 |
> |
cat conftest.err >&5 |
4509 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4510 |
> |
(exit $ac_status); } && { |
4511 |
> |
test -z "$ac_fc_werror_flag" || |
4512 |
> |
test ! -s conftest.err |
4513 |
> |
} && test -s conftest.$ac_objext; then |
4514 |
> |
ac_compiler_gnu=yes |
4515 |
> |
else |
4516 |
> |
echo "$as_me: failed program was:" >&5 |
4517 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
4518 |
> |
|
4519 |
> |
ac_compiler_gnu=no |
4520 |
> |
fi |
4521 |
> |
|
4522 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4523 |
> |
ac_cv_fc_compiler_gnu=$ac_compiler_gnu |
4524 |
> |
|
4525 |
> |
fi |
4526 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5 |
4527 |
> |
echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6; } |
4528 |
> |
ac_ext=$ac_save_ext |
4529 |
> |
ac_test_FFLAGS=${FCFLAGS+set} |
4530 |
> |
ac_save_FFLAGS=$FCFLAGS |
4531 |
> |
FCFLAGS= |
4532 |
> |
{ echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5 |
4533 |
> |
echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6; } |
4534 |
> |
if test "${ac_cv_prog_fc_g+set}" = set; then |
4535 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4536 |
> |
else |
4537 |
> |
FCFLAGS=-g |
4538 |
> |
cat >conftest.$ac_ext <<_ACEOF |
4539 |
> |
program main |
4540 |
> |
|
4541 |
> |
end |
4542 |
> |
_ACEOF |
4543 |
> |
rm -f conftest.$ac_objext |
4544 |
> |
if { (ac_try="$ac_compile" |
4545 |
> |
case "(($ac_try" in |
4546 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4547 |
> |
*) ac_try_echo=$ac_try;; |
4548 |
> |
esac |
4549 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4550 |
> |
(eval "$ac_compile") 2>conftest.er1 |
4551 |
> |
ac_status=$? |
4552 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
4553 |
> |
rm -f conftest.er1 |
4554 |
> |
cat conftest.err >&5 |
4555 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4556 |
> |
(exit $ac_status); } && { |
4557 |
> |
test -z "$ac_fc_werror_flag" || |
4558 |
> |
test ! -s conftest.err |
4559 |
> |
} && test -s conftest.$ac_objext; then |
4560 |
> |
ac_cv_prog_fc_g=yes |
4561 |
> |
else |
4562 |
> |
echo "$as_me: failed program was:" >&5 |
4563 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
4564 |
> |
|
4565 |
> |
ac_cv_prog_fc_g=no |
4566 |
> |
fi |
4567 |
> |
|
4568 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4569 |
> |
|
4570 |
> |
fi |
4571 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5 |
4572 |
> |
echo "${ECHO_T}$ac_cv_prog_fc_g" >&6; } |
4573 |
> |
if test "$ac_test_FFLAGS" = set; then |
4574 |
> |
FCFLAGS=$ac_save_FFLAGS |
4575 |
> |
elif test $ac_cv_prog_fc_g = yes; then |
4576 |
> |
if test "x$ac_cv_fc_compiler_gnu" = xyes; then |
4577 |
|
FCFLAGS="-g -O2" |
4578 |
|
else |
4579 |
|
FCFLAGS="-g" |
4641 |
|
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
4642 |
|
ac_status=$? |
4643 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
4644 |
< |
rm -rf conftest.er1 |
4644 |
> |
rm -f conftest.er1 |
4645 |
|
cat conftest.err >&5 |
4646 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4647 |
|
(exit $ac_status); } >/dev/null && { |
4657 |
|
continue |
4658 |
|
fi |
4659 |
|
|
4660 |
< |
rm -rf conftest.err conftest.$ac_ext |
4660 |
> |
rm -f conftest.err conftest.$ac_ext |
4661 |
|
|
4662 |
|
# OK, works on sane cases. Now check whether nonexistent headers |
4663 |
|
# can be detected and how. |
4696 |
|
break |
4697 |
|
fi |
4698 |
|
|
4699 |
< |
rm -rf conftest.err conftest.$ac_ext |
4699 |
> |
rm -f conftest.err conftest.$ac_ext |
4700 |
|
|
4701 |
|
done |
4702 |
|
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
4703 |
< |
rm -rf conftest.err conftest.$ac_ext |
4703 |
> |
rm -f conftest.err conftest.$ac_ext |
4704 |
|
if $ac_preproc_ok; then |
4705 |
|
break |
4706 |
|
fi |
4762 |
|
continue |
4763 |
|
fi |
4764 |
|
|
4765 |
< |
rm -rf conftest.err conftest.$ac_ext |
4765 |
> |
rm -f conftest.err conftest.$ac_ext |
4766 |
|
|
4767 |
|
# OK, works on sane cases. Now check whether nonexistent headers |
4768 |
|
# can be detected and how. |
4801 |
|
break |
4802 |
|
fi |
4803 |
|
|
4804 |
< |
rm -rf conftest.err conftest.$ac_ext |
4804 |
> |
rm -f conftest.err conftest.$ac_ext |
4805 |
|
|
4806 |
|
done |
4807 |
|
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
4808 |
< |
rm -rf conftest.err conftest.$ac_ext |
4808 |
> |
rm -f conftest.err conftest.$ac_ext |
4809 |
|
if $ac_preproc_ok; then |
4810 |
|
: |
4811 |
|
else |
4869 |
|
# 10*(2^10) chars as input seems more than enough |
4870 |
|
test $ac_count -gt 10 && break |
4871 |
|
done |
4872 |
< |
rm -rf conftest.in conftest.tmp conftest.nl conftest.out;; |
4872 |
> |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
4873 |
|
esac |
4874 |
|
|
4875 |
|
|
4951 |
|
# 10*(2^10) chars as input seems more than enough |
4952 |
|
test $ac_count -gt 10 && break |
4953 |
|
done |
4954 |
< |
rm -rf conftest.in conftest.tmp conftest.nl conftest.out;; |
4954 |
> |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
4955 |
|
esac |
4956 |
|
|
4957 |
|
|
5013 |
|
*) |
5014 |
|
eval ac_cv_prog_make_${ac_make}_set=no;; |
5015 |
|
esac |
5016 |
< |
rm -rf conftest.make |
5016 |
> |
rm -f conftest.make |
5017 |
|
fi |
5018 |
|
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
5019 |
|
{ echo "$as_me:$LINENO: result: yes" >&5 |
5437 |
|
echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
5438 |
|
fi |
5439 |
|
fi |
5440 |
< |
rm -rf confcache |
5440 |
> |
rm -f confcache |
5441 |
|
exit 1 |
5442 |
|
fi |
5443 |
|
# Extract the first word of "ps", so it can be a program name with args. |
5562 |
|
|
5563 |
|
end |
5564 |
|
_ACEOF |
5565 |
< |
rm -rf conftest.$ac_objext |
5565 |
> |
rm -f conftest.$ac_objext |
5566 |
|
if { (ac_try="$ac_compile" |
5567 |
|
case "(($ac_try" in |
5568 |
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5587 |
|
|
5588 |
|
fi |
5589 |
|
|
5590 |
< |
rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext |
5590 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5591 |
|
done |
5592 |
< |
rm -rf conftest.$ac_objext conftest.F90 |
5592 |
> |
rm -f conftest.$ac_objext conftest.F90 |
5593 |
|
ac_fcflags_srcext=$ac_fcflags_srcext_save |
5594 |
|
|
5595 |
|
fi |
5670 |
|
end program conftest |
5671 |
|
|
5672 |
|
_ACEOF |
5673 |
< |
rm -rf conftest.$ac_objext |
5673 |
> |
rm -f conftest.$ac_objext |
5674 |
|
if { (ac_try="$ac_compile" |
5675 |
|
case "(($ac_try" in |
5676 |
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5695 |
|
prepflagworks=0 |
5696 |
|
fi |
5697 |
|
|
5698 |
< |
rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext |
5698 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5699 |
|
|
5700 |
|
FCFLAGS_SRCEXT=$ac_save_FCFLAGS_SRCEXT |
5701 |
|
ac_ext=$ac_save_ext |
5777 |
|
end program conftest |
5778 |
|
|
5779 |
|
_ACEOF |
5780 |
< |
rm -rf conftest.$ac_objext |
5780 |
> |
rm -f conftest.$ac_objext |
5781 |
|
if { (ac_try="$ac_compile" |
5782 |
|
case "(($ac_try" in |
5783 |
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5802 |
|
prepdefflagworks=0 |
5803 |
|
fi |
5804 |
|
|
5805 |
< |
rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext |
5805 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5806 |
|
|
5807 |
|
FCFLAGS=$ac_save_FCFLAGS |
5808 |
|
ac_ext=$ac_save_ext |
5839 |
|
|
5840 |
|
end |
5841 |
|
_ACEOF |
5842 |
< |
rm -rf conftest.$ac_objext |
5842 |
> |
rm -f conftest.$ac_objext |
5843 |
|
if { (ac_try="$ac_compile" |
5844 |
|
case "(($ac_try" in |
5845 |
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5849 |
|
(eval "$ac_compile") 2>conftest.er1 |
5850 |
|
ac_status=$? |
5851 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
5852 |
< |
rm -rf conftest.er1 |
5852 |
> |
rm -f conftest.er1 |
5853 |
|
cat conftest.err >&5 |
5854 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5855 |
|
(exit $ac_status); } && { |
5878 |
|
echo "$ac_fc_v_output" >&5 |
5879 |
|
FCFLAGS=$ac_save_FFLAGS |
5880 |
|
|
5881 |
< |
rm -rf conftest* |
5881 |
> |
rm -f conftest* |
5882 |
|
|
5883 |
|
# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where |
5884 |
|
# /foo, /bar, and /baz are search directories for the Fortran linker. |
5936 |
|
echo "$as_me: WARNING: compilation failed" >&2;} |
5937 |
|
fi |
5938 |
|
|
5939 |
< |
rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext |
5939 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5940 |
|
|
5941 |
|
fi |
5942 |
|
{ echo "$as_me:$LINENO: result: $ac_cv_prog_fc_v" >&5 |
5969 |
|
echo "$ac_fc_v_output" >&5 |
5970 |
|
FCFLAGS=$ac_save_FFLAGS |
5971 |
|
|
5972 |
< |
rm -rf conftest* |
5972 |
> |
rm -f conftest* |
5973 |
|
|
5974 |
|
# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where |
5975 |
|
# /foo, /bar, and /baz are search directories for the Fortran linker. |
6192 |
|
return 0; |
6193 |
|
} |
6194 |
|
_ACEOF |
6195 |
< |
rm -rf conftest.$ac_objext conftest$ac_exeext |
6195 |
> |
rm -f conftest.$ac_objext conftest$ac_exeext |
6196 |
|
if { (ac_try="$ac_link" |
6197 |
|
case "(($ac_try" in |
6198 |
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6218 |
|
ac_cv_fortran_dummy_main=unknown |
6219 |
|
fi |
6220 |
|
|
6221 |
< |
rm -rf core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
6221 |
> |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
6222 |
|
conftest$ac_exeext conftest.$ac_ext |
6223 |
|
|
6224 |
|
if test $ac_cv_fortran_dummy_main = unknown; then |
6246 |
|
return 0; |
6247 |
|
} |
6248 |
|
_ACEOF |
6249 |
< |
rm -rf conftest.$ac_objext conftest$ac_exeext |
6249 |
> |
rm -f conftest.$ac_objext conftest$ac_exeext |
6250 |
|
if { (ac_try="$ac_link" |
6251 |
|
case "(($ac_try" in |
6252 |
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6272 |
|
|
6273 |
|
fi |
6274 |
|
|
6275 |
< |
rm -rf core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
6275 |
> |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
6276 |
|
conftest$ac_exeext conftest.$ac_ext |
6277 |
|
done |
6278 |
|
fi |
6281 |
|
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
6282 |
|
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
6283 |
|
ac_cv_fc_dummy_main=$ac_cv_fortran_dummy_main |
6284 |
< |
rm -rf conftest* |
6284 |
> |
rm -f conftest* |
6285 |
|
LIBS=$ac_fc_dm_save_LIBS |
6286 |
|
|
6287 |
|
fi |
6334 |
|
return |
6335 |
|
end |
6336 |
|
_ACEOF |
6337 |
< |
rm -rf conftest.$ac_objext |
6337 |
> |
rm -f conftest.$ac_objext |
6338 |
|
if { (ac_try="$ac_compile" |
6339 |
|
case "(($ac_try" in |
6340 |
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6395 |
|
return 0; |
6396 |
|
} |
6397 |
|
_ACEOF |
6398 |
< |
rm -rf conftest.$ac_objext conftest$ac_exeext |
6398 |
> |
rm -f conftest.$ac_objext conftest$ac_exeext |
6399 |
|
if { (ac_try="$ac_link" |
6400 |
|
case "(($ac_try" in |
6401 |
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6421 |
|
|
6422 |
|
fi |
6423 |
|
|
6424 |
< |
rm -rf core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
6424 |
> |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
6425 |
|
conftest$ac_exeext conftest.$ac_ext |
6426 |
|
done |
6427 |
|
done |
6480 |
|
return 0; |
6481 |
|
} |
6482 |
|
_ACEOF |
6483 |
< |
rm -rf conftest.$ac_objext conftest$ac_exeext |
6483 |
> |
rm -f conftest.$ac_objext conftest$ac_exeext |
6484 |
|
if { (ac_try="$ac_link" |
6485 |
|
case "(($ac_try" in |
6486 |
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6506 |
|
|
6507 |
|
fi |
6508 |
|
|
6509 |
< |
rm -rf core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
6509 |
> |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
6510 |
|
conftest$ac_exeext conftest.$ac_ext |
6511 |
|
done |
6512 |
|
ac_ext=${ac_fc_srcext-f} |
6534 |
|
fi |
6535 |
|
|
6536 |
|
LIBS=$ac_save_LIBS |
6537 |
< |
rm -rf cfortran_test* conftest* |
6537 |
> |
rm -f cfortran_test* conftest* |
6538 |
|
else |
6539 |
|
echo "$as_me: failed program was:" >&5 |
6540 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
6546 |
|
{ (exit 1); exit 1; }; } |
6547 |
|
fi |
6548 |
|
|
6549 |
< |
rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext |
6549 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6550 |
|
|
6551 |
|
fi |
6552 |
|
{ echo "$as_me:$LINENO: result: $ac_cv_fc_mangling" >&5 |
6663 |
|
|
6664 |
|
end |
6665 |
|
_ACEOF |
6666 |
< |
rm -rf conftest.$ac_objext |
6666 |
> |
rm -f conftest.$ac_objext |
6667 |
|
if { (ac_try="$ac_compile" |
6668 |
|
case "(($ac_try" in |
6669 |
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6702 |
|
echo "$ac_fc_v_output" >&5 |
6703 |
|
FCFLAGS=$ac_save_FFLAGS |
6704 |
|
|
6705 |
< |
rm -rf conftest* |
6705 |
> |
rm -f conftest* |
6706 |
|
|
6707 |
|
# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where |
6708 |
|
# /foo, /bar, and /baz are search directories for the Fortran linker. |
6793 |
|
echo "$ac_fc_v_output" >&5 |
6794 |
|
FCFLAGS=$ac_save_FFLAGS |
6795 |
|
|
6796 |
< |
rm -rf conftest* |
6796 |
> |
rm -f conftest* |
6797 |
|
|
6798 |
|
# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where |
6799 |
|
# /foo, /bar, and /baz are search directories for the Fortran linker. |
6976 |
|
|
6977 |
|
{ echo "$as_me:$LINENO: checking for module suffix" >&5 |
6978 |
|
echo $ECHO_N "checking for module suffix... $ECHO_C" >&6; } |
6979 |
< |
rm -rf conftest* |
6979 |
> |
rm -f conftest* |
6980 |
|
# Intel ifc compiler generates files by the name of work.pc and work.pcl (!) |
6981 |
|
rm -f work* |
6982 |
|
cat >conftest.$ac_ext <<EOF |
7030 |
|
# Use the module made above |
7031 |
|
{ echo "$as_me:$LINENO: checking for module directory path flag" >&5 |
7032 |
|
echo $ECHO_N "checking for module directory path flag... $ECHO_C" >&6; } |
7033 |
< |
rm -rf conftest* |
7033 |
> |
rm -f conftest* |
7034 |
|
# Intel ifc compiler generates files by the name of work.pc and work.pcl (!) |
7035 |
|
rm -f work* |
7036 |
|
cat >conftest.$ac_ext <<EOF |
7098 |
|
fi |
7099 |
|
|
7100 |
|
|
7101 |
< |
rm -rf conftest* conf/conftest* conf/CONFTEST* CONFTEST* conf/mpimod* |
7101 |
> |
rm -f conftest* conf/conftest* conf/CONFTEST* CONFTEST* conf/mpimod* |
7102 |
|
if test $madedir = 1 ; then rmdir conf ; fi |
7103 |
|
fi |
7104 |
|
|
7120 |
|
MODULE Bar |
7121 |
|
END MODULE Bar |
7122 |
|
_ACEOF |
7123 |
< |
rm -rf conftest.$ac_objext |
7123 |
> |
rm -f conftest.$ac_objext |
7124 |
|
if { (ac_try="$ac_compile" |
7125 |
|
case "(($ac_try" in |
7126 |
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7237 |
|
echo "$as_me: WARNING: Couldn't determine module file names" >&2;} |
7238 |
|
fi |
7239 |
|
|
7240 |
< |
rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext |
7241 |
< |
cd .. |
7242 |
< |
# cleanup |
7243 |
< |
rm -rf conftest |
7244 |
< |
ac_ext=${ac_fc_srcext-f} |
7245 |
< |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
7246 |
< |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
7247 |
< |
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
7248 |
< |
|
7249 |
< |
fi |
7250 |
< |
{ echo "$as_me:$LINENO: result: $ac_cv_f90_module_names" >&5 |
7251 |
< |
echo "${ECHO_T}$ac_cv_f90_module_names" >&6; } # AC_CACHE_CHECK |
7252 |
< |
|
7253 |
< |
# We now generate a shell script that will help us to figure out the correct |
7254 |
< |
# module file names, using the value of ac_cv_f90_module_names |
7255 |
< |
|
7256 |
< |
echo "Generating shell script modnam" |
7257 |
< |
|
7258 |
< |
cat > scripts/modnam << EOF |
7259 |
< |
#! /bin/sh |
7260 |
< |
# This script is auto-generated by configure |
7261 |
< |
# |
7262 |
< |
usage="\\ |
7263 |
< |
Usage: \$0 [FILES] |
7264 |
< |
|
7265 |
< |
[FILES] are Fortran 90 source files. |
7266 |
< |
The output is a list of module file names that the Fortran 90 compiler |
7267 |
< |
generates when compiling [FILES]." |
7268 |
< |
|
7269 |
< |
list= |
7270 |
< |
empty= |
7271 |
< |
|
7272 |
< |
if test \$# -eq 0; then |
7273 |
< |
echo "\$usage"; exit 0 |
7274 |
< |
fi |
7275 |
< |
|
7276 |
< |
while test \$# != 0; do |
7277 |
< |
|
7278 |
< |
file=\$1 |
7279 |
< |
shift |
7280 |
< |
|
7281 |
< |
# strip suffix |
7282 |
< |
base=\`echo \$file | sed 's/[.][^.]*$//'\` |
7283 |
< |
|
7284 |
< |
test ! -f \$file && continue |
7285 |
< |
|
7286 |
< |
# Look for module definitions and transform them to upper / lower case |
7287 |
< |
mods=\`cat \$file | sed '/^ *[mM][oO][dD][uU][lL][eE]/!d;s/^ *[mM][oO][dD][uU][lL][eE] *\([A-Za-z_][A-Za-z0-9_]*\).*\$/\1/'\` |
7288 |
< |
upper=\`echo \$mods | tr a-z A-Z\` |
7289 |
< |
lower=\`echo \$mods | tr A-Z a-z\` |
7290 |
< |
|
7291 |
< |
# Here, the patterns for generating module file names were inserted by configure |
7292 |
< |
for trans in $ac_cv_f90_module_names; do |
7293 |
< |
|
7294 |
< |
pat=\`echo \$trans | sed 's/.*\(%.*%\).*/\1/'\` |
7295 |
< |
var=empty |
7296 |
< |
case \$pat in |
7297 |
< |
%MODULE%) |
7298 |
< |
var=upper ;; |
7299 |
< |
%Module%) |
7300 |
< |
var=mods ;; |
7301 |
< |
%module%) |
7302 |
< |
var=lower ;; |
7303 |
< |
%FILE%) |
7304 |
< |
test -n "\$mods" && var=base ;; |
7305 |
< |
esac |
7306 |
< |
new=\`eval '(for i in \$'\$var '; do echo \$trans | sed s/\$pat/\$i/; done)'\` |
7307 |
< |
list="\$list \$new" |
7308 |
< |
done |
7309 |
< |
done |
7310 |
< |
|
7311 |
< |
echo \$list |
7312 |
< |
# end of configure-generated script |
7313 |
< |
EOF |
7314 |
< |
chmod 755 scripts/modnam |
7315 |
< |
|
7316 |
< |
pat=`echo $ac_cv_f90_module_names | sed 's/.*\(%.*%\).*/\1/'` |
7317 |
< |
F90_MODULE_NAMES=empty |
7318 |
< |
case $pat in |
7319 |
< |
%MODULE%) |
7320 |
< |
F90_MODULE_NAMES=UPPER ;; |
7321 |
< |
%Module%) |
7322 |
< |
F90_MODULE_NAMES=Mixed ;; |
7323 |
< |
%module%) |
7324 |
< |
F90_MODULE_NAMES=lower ;; |
7325 |
< |
*) |
7326 |
< |
F90_MODULE_NAMES=unknown ;; |
7327 |
< |
esac |
7328 |
< |
|
7329 |
< |
ac_ext=c |
7330 |
< |
ac_cpp='$CPP $CPPFLAGS' |
7331 |
< |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
7332 |
< |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
7333 |
< |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
7334 |
< |
|
7335 |
< |
|
7336 |
< |
ac_ext=c |
7337 |
< |
ac_cpp='$CPP $CPPFLAGS' |
7338 |
< |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
7339 |
< |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
7340 |
< |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
7341 |
< |
|
7342 |
< |
|
7343 |
< |
|
7344 |
< |
{ echo "$as_me:$LINENO: checking for asin in -lm" >&5 |
7345 |
< |
echo $ECHO_N "checking for asin in -lm... $ECHO_C" >&6; } |
7346 |
< |
if test "${ac_cv_lib_m_asin+set}" = set; then |
7347 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7348 |
< |
else |
7349 |
< |
ac_check_lib_save_LIBS=$LIBS |
7350 |
< |
LIBS="-lm $LIBS" |
7351 |
< |
cat >conftest.$ac_ext <<_ACEOF |
7352 |
< |
/* confdefs.h. */ |
7353 |
< |
_ACEOF |
7354 |
< |
cat confdefs.h >>conftest.$ac_ext |
7355 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
7356 |
< |
/* end confdefs.h. */ |
7357 |
< |
|
7358 |
< |
/* Override any GCC internal prototype to avoid an error. |
7359 |
< |
Use char because int might match the return type of a GCC |
7360 |
< |
builtin and then its argument prototype would still apply. */ |
7361 |
< |
#ifdef __cplusplus |
7362 |
< |
extern "C" |
7363 |
< |
#endif |
7364 |
< |
char asin (); |
7365 |
< |
#ifdef FC_DUMMY_MAIN |
7366 |
< |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
7367 |
< |
# ifdef __cplusplus |
7368 |
< |
extern "C" |
7369 |
< |
# endif |
7370 |
< |
int FC_DUMMY_MAIN() { return 1; } |
7371 |
< |
#endif |
7372 |
< |
#endif |
7373 |
< |
int |
7374 |
< |
main () |
7375 |
< |
{ |
7376 |
< |
return asin (); |
7377 |
< |
; |
7378 |
< |
return 0; |
7379 |
< |
} |
7380 |
< |
_ACEOF |
7381 |
< |
rm -rf conftest.$ac_objext conftest$ac_exeext |
7382 |
< |
if { (ac_try="$ac_link" |
7383 |
< |
case "(($ac_try" in |
7384 |
< |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7385 |
< |
*) ac_try_echo=$ac_try;; |
7386 |
< |
esac |
7387 |
< |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7388 |
< |
(eval "$ac_link") 2>conftest.er1 |
7389 |
< |
ac_status=$? |
7390 |
< |
grep -v '^ *+' conftest.er1 >conftest.err |
7391 |
< |
rm -f conftest.er1 |
7392 |
< |
cat conftest.err >&5 |
7393 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7394 |
< |
(exit $ac_status); } && { |
7395 |
< |
test -z "$ac_c_werror_flag" || |
7396 |
< |
test ! -s conftest.err |
7397 |
< |
} && test -s conftest$ac_exeext && |
7398 |
< |
$as_test_x conftest$ac_exeext; then |
7399 |
< |
ac_cv_lib_m_asin=yes |
7400 |
< |
else |
7401 |
< |
echo "$as_me: failed program was:" >&5 |
7402 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
7403 |
< |
|
7404 |
< |
ac_cv_lib_m_asin=no |
7405 |
< |
fi |
7406 |
< |
|
7407 |
< |
rm -rf core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
7408 |
< |
conftest$ac_exeext conftest.$ac_ext |
7409 |
< |
LIBS=$ac_check_lib_save_LIBS |
7410 |
< |
fi |
7411 |
< |
{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_asin" >&5 |
7412 |
< |
echo "${ECHO_T}$ac_cv_lib_m_asin" >&6; } |
7413 |
< |
if test $ac_cv_lib_m_asin = yes; then |
7414 |
< |
cat >>confdefs.h <<_ACEOF |
7415 |
< |
#define HAVE_LIBM 1 |
7416 |
< |
_ACEOF |
7417 |
< |
|
7418 |
< |
LIBS="-lm $LIBS" |
7419 |
< |
|
7420 |
< |
else |
7421 |
< |
exit |
7422 |
< |
fi |
7423 |
< |
|
7424 |
< |
|
7425 |
< |
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
7426 |
< |
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
7427 |
< |
if test "${ac_cv_header_stdc+set}" = set; then |
7428 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7429 |
< |
else |
7430 |
< |
cat >conftest.$ac_ext <<_ACEOF |
7431 |
< |
/* confdefs.h. */ |
7432 |
< |
_ACEOF |
7433 |
< |
cat confdefs.h >>conftest.$ac_ext |
7434 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
7435 |
< |
/* end confdefs.h. */ |
7436 |
< |
#include <stdlib.h> |
7437 |
< |
#include <stdarg.h> |
7438 |
< |
#include <string.h> |
7439 |
< |
#include <float.h> |
7440 |
< |
|
7441 |
< |
#ifdef FC_DUMMY_MAIN |
7442 |
< |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
7443 |
< |
# ifdef __cplusplus |
7444 |
< |
extern "C" |
7445 |
< |
# endif |
7446 |
< |
int FC_DUMMY_MAIN() { return 1; } |
7447 |
< |
#endif |
7448 |
< |
#endif |
7449 |
< |
int |
7450 |
< |
main () |
7451 |
< |
{ |
7452 |
< |
|
7453 |
< |
; |
7454 |
< |
return 0; |
7455 |
< |
} |
7456 |
< |
_ACEOF |
7457 |
< |
rm -rf conftest.$ac_objext |
7458 |
< |
if { (ac_try="$ac_compile" |
7459 |
< |
case "(($ac_try" in |
7460 |
< |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7461 |
< |
*) ac_try_echo=$ac_try;; |
7462 |
< |
esac |
7463 |
< |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7464 |
< |
(eval "$ac_compile") 2>conftest.er1 |
7465 |
< |
ac_status=$? |
7466 |
< |
grep -v '^ *+' conftest.er1 >conftest.err |
7467 |
< |
rm -f conftest.er1 |
7468 |
< |
cat conftest.err >&5 |
7469 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7470 |
< |
(exit $ac_status); } && { |
7471 |
< |
test -z "$ac_c_werror_flag" || |
7472 |
< |
test ! -s conftest.err |
7473 |
< |
} && test -s conftest.$ac_objext; then |
7474 |
< |
ac_cv_header_stdc=yes |
7475 |
< |
else |
7476 |
< |
echo "$as_me: failed program was:" >&5 |
7477 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
7478 |
< |
|
7479 |
< |
ac_cv_header_stdc=no |
7480 |
< |
fi |
7481 |
< |
|
7482 |
< |
rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext |
7483 |
< |
|
7484 |
< |
if test $ac_cv_header_stdc = yes; then |
7485 |
< |
# SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
7486 |
< |
cat >conftest.$ac_ext <<_ACEOF |
7487 |
< |
/* confdefs.h. */ |
7488 |
< |
_ACEOF |
7489 |
< |
cat confdefs.h >>conftest.$ac_ext |
7490 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
7491 |
< |
/* end confdefs.h. */ |
7492 |
< |
#include <string.h> |
7493 |
< |
|
7494 |
< |
_ACEOF |
7495 |
< |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
7496 |
< |
$EGREP "memchr" >/dev/null 2>&1; then |
7497 |
< |
: |
7498 |
< |
else |
7499 |
< |
ac_cv_header_stdc=no |
7500 |
< |
fi |
7501 |
< |
rm -rf conftest* |
7502 |
< |
|
7503 |
< |
fi |
7504 |
< |
|
7505 |
< |
if test $ac_cv_header_stdc = yes; then |
7506 |
< |
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
7507 |
< |
cat >conftest.$ac_ext <<_ACEOF |
7508 |
< |
/* confdefs.h. */ |
7509 |
< |
_ACEOF |
7510 |
< |
cat confdefs.h >>conftest.$ac_ext |
7511 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
7512 |
< |
/* end confdefs.h. */ |
7513 |
< |
#include <stdlib.h> |
7514 |
< |
|
7515 |
< |
_ACEOF |
7516 |
< |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
7517 |
< |
$EGREP "free" >/dev/null 2>&1; then |
7518 |
< |
: |
7519 |
< |
else |
7520 |
< |
ac_cv_header_stdc=no |
7521 |
< |
fi |
7522 |
< |
rm -rf conftest* |
7523 |
< |
|
7524 |
< |
fi |
7525 |
< |
|
7526 |
< |
if test $ac_cv_header_stdc = yes; then |
7527 |
< |
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
7528 |
< |
if test "$cross_compiling" = yes; then |
7529 |
< |
: |
7530 |
< |
else |
7531 |
< |
cat >conftest.$ac_ext <<_ACEOF |
7532 |
< |
/* confdefs.h. */ |
7533 |
< |
_ACEOF |
7534 |
< |
cat confdefs.h >>conftest.$ac_ext |
7535 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
7536 |
< |
/* end confdefs.h. */ |
7537 |
< |
#include <ctype.h> |
7538 |
< |
#include <stdlib.h> |
7539 |
< |
#if ((' ' & 0x0FF) == 0x020) |
7540 |
< |
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
7541 |
< |
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
7542 |
< |
#else |
7543 |
< |
# define ISLOWER(c) \ |
7544 |
< |
(('a' <= (c) && (c) <= 'i') \ |
7545 |
< |
|| ('j' <= (c) && (c) <= 'r') \ |
7546 |
< |
|| ('s' <= (c) && (c) <= 'z')) |
7547 |
< |
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
6418 |
< |
#endif |
6419 |
< |
|
6420 |
< |
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
6421 |
< |
int |
6422 |
< |
main () |
6423 |
< |
{ |
6424 |
< |
int i; |
6425 |
< |
for (i = 0; i < 256; i++) |
6426 |
< |
if (XOR (islower (i), ISLOWER (i)) |
6427 |
< |
|| toupper (i) != TOUPPER (i)) |
6428 |
< |
return 2; |
6429 |
< |
return 0; |
6430 |
< |
} |
6431 |
< |
_ACEOF |
6432 |
< |
rm -rf conftest$ac_exeext |
6433 |
< |
if { (ac_try="$ac_link" |
6434 |
< |
case "(($ac_try" in |
6435 |
< |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6436 |
< |
*) ac_try_echo=$ac_try;; |
6437 |
< |
esac |
6438 |
< |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6439 |
< |
(eval "$ac_link") 2>&5 |
6440 |
< |
ac_status=$? |
6441 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6442 |
< |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
6443 |
< |
{ (case "(($ac_try" in |
6444 |
< |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6445 |
< |
*) ac_try_echo=$ac_try;; |
6446 |
< |
esac |
6447 |
< |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6448 |
< |
(eval "$ac_try") 2>&5 |
6449 |
< |
ac_status=$? |
6450 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6451 |
< |
(exit $ac_status); }; }; then |
6452 |
< |
: |
6453 |
< |
else |
6454 |
< |
echo "$as_me: program exited with status $ac_status" >&5 |
6455 |
< |
echo "$as_me: failed program was:" >&5 |
6456 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
6457 |
< |
|
6458 |
< |
( exit $ac_status ) |
6459 |
< |
ac_cv_header_stdc=no |
6460 |
< |
fi |
6461 |
< |
rm -rf core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
6462 |
< |
fi |
6463 |
< |
|
6464 |
< |
|
6465 |
< |
fi |
6466 |
< |
fi |
6467 |
< |
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
6468 |
< |
echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
6469 |
< |
if test $ac_cv_header_stdc = yes; then |
6470 |
< |
|
6471 |
< |
cat >>confdefs.h <<\_ACEOF |
6472 |
< |
#define STDC_HEADERS 1 |
6473 |
< |
_ACEOF |
6474 |
< |
|
6475 |
< |
fi |
6476 |
< |
|
6477 |
< |
# On IRIX 5.3, sys/types and inttypes.h are conflicting. |
6478 |
< |
|
6479 |
< |
|
6480 |
< |
|
6481 |
< |
|
6482 |
< |
|
6483 |
< |
|
6484 |
< |
|
6485 |
< |
|
6486 |
< |
|
6487 |
< |
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
6488 |
< |
inttypes.h stdint.h unistd.h |
6489 |
< |
do |
6490 |
< |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
6491 |
< |
{ echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6492 |
< |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
6493 |
< |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
6494 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6495 |
< |
else |
6496 |
< |
cat >conftest.$ac_ext <<_ACEOF |
6497 |
< |
/* confdefs.h. */ |
6498 |
< |
_ACEOF |
6499 |
< |
cat confdefs.h >>conftest.$ac_ext |
6500 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
6501 |
< |
/* end confdefs.h. */ |
6502 |
< |
$ac_includes_default |
6503 |
< |
|
6504 |
< |
#include <$ac_header> |
6505 |
< |
_ACEOF |
6506 |
< |
rm -rf conftest.$ac_objext |
6507 |
< |
if { (ac_try="$ac_compile" |
6508 |
< |
case "(($ac_try" in |
6509 |
< |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6510 |
< |
*) ac_try_echo=$ac_try;; |
6511 |
< |
esac |
6512 |
< |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6513 |
< |
(eval "$ac_compile") 2>conftest.er1 |
6514 |
< |
ac_status=$? |
6515 |
< |
grep -v '^ *+' conftest.er1 >conftest.err |
6516 |
< |
rm -f conftest.er1 |
6517 |
< |
cat conftest.err >&5 |
6518 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6519 |
< |
(exit $ac_status); } && { |
6520 |
< |
test -z "$ac_c_werror_flag" || |
6521 |
< |
test ! -s conftest.err |
6522 |
< |
} && test -s conftest.$ac_objext; then |
6523 |
< |
eval "$as_ac_Header=yes" |
6524 |
< |
else |
6525 |
< |
echo "$as_me: failed program was:" >&5 |
6526 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
6527 |
< |
|
6528 |
< |
eval "$as_ac_Header=no" |
6529 |
< |
fi |
6530 |
< |
|
6531 |
< |
rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext |
6532 |
< |
fi |
6533 |
< |
ac_res=`eval echo '${'$as_ac_Header'}'` |
6534 |
< |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
6535 |
< |
echo "${ECHO_T}$ac_res" >&6; } |
6536 |
< |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
6537 |
< |
cat >>confdefs.h <<_ACEOF |
6538 |
< |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
6539 |
< |
_ACEOF |
6540 |
< |
|
6541 |
< |
fi |
6542 |
< |
|
6543 |
< |
done |
6544 |
< |
|
6545 |
< |
|
6546 |
< |
# |
6547 |
< |
# Handle user hints |
6548 |
< |
# |
6549 |
< |
|
6550 |
< |
# Check whether --with-zlib was given. |
6551 |
< |
if test "${with_zlib+set}" = set; then |
6552 |
< |
withval=$with_zlib; zlib_dir="$withval" |
6553 |
< |
else |
6554 |
< |
zlib_dir="not_set" |
6555 |
< |
fi |
6556 |
< |
|
6557 |
< |
if test "$zlib_dir" != "no"; then |
6558 |
< |
|
6559 |
< |
if test "$zlib_dir" != "not_set" ; then |
6560 |
< |
if test -d "$zlib_dir" |
6561 |
< |
then |
6562 |
< |
ZLIB_HOME="$zlib_dir" |
6563 |
< |
else |
6564 |
< |
{ echo "$as_me:$LINENO: WARNING: Sorry, $zlib_dir does not exist, checking usual places" >&5 |
6565 |
< |
echo "$as_me: WARNING: Sorry, $zlib_dir does not exist, checking usual places" >&2;} |
6566 |
< |
fi |
6567 |
< |
fi |
6568 |
< |
|
6569 |
< |
ZLIB_HOME=/usr/local |
6570 |
< |
if test ! -f "${ZLIB_HOME}/include/zlib.h" |
6571 |
< |
then |
6572 |
< |
ZLIB_HOME=/usr |
6573 |
< |
fi |
6574 |
< |
|
6575 |
< |
# |
6576 |
< |
# Locate zlib, if wanted |
6577 |
< |
# |
6578 |
< |
if test -n "${ZLIB_HOME}" |
6579 |
< |
then |
6580 |
< |
ZLIB_OLD_LDFLAGS=$LDFLAGS |
6581 |
< |
ZLIB_OLD_CPPFLAGS=$LDFLAGS |
6582 |
< |
LDFLAGS="$LDFLAGS -L${ZLIB_HOME}/lib" |
6583 |
< |
CPPFLAGS="$CPPFLAGS -I${ZLIB_HOME}/include" |
6584 |
< |
|
6585 |
< |
ac_ext=c |
6586 |
< |
ac_cpp='$CPP $CPPFLAGS' |
6587 |
< |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
6588 |
< |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6589 |
< |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
6590 |
< |
|
6591 |
< |
{ echo "$as_me:$LINENO: checking for inflateEnd in -lz" >&5 |
6592 |
< |
echo $ECHO_N "checking for inflateEnd in -lz... $ECHO_C" >&6; } |
6593 |
< |
if test "${ac_cv_lib_z_inflateEnd+set}" = set; then |
6594 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6595 |
< |
else |
6596 |
< |
ac_check_lib_save_LIBS=$LIBS |
6597 |
< |
LIBS="-lz $LIBS" |
6598 |
< |
cat >conftest.$ac_ext <<_ACEOF |
6599 |
< |
/* confdefs.h. */ |
6600 |
< |
_ACEOF |
6601 |
< |
cat confdefs.h >>conftest.$ac_ext |
6602 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
6603 |
< |
/* end confdefs.h. */ |
6604 |
< |
|
6605 |
< |
/* Override any GCC internal prototype to avoid an error. |
6606 |
< |
Use char because int might match the return type of a GCC |
6607 |
< |
builtin and then its argument prototype would still apply. */ |
6608 |
< |
#ifdef __cplusplus |
6609 |
< |
extern "C" |
6610 |
< |
#endif |
6611 |
< |
char inflateEnd (); |
6612 |
< |
#ifdef FC_DUMMY_MAIN |
6613 |
< |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
6614 |
< |
# ifdef __cplusplus |
6615 |
< |
extern "C" |
6616 |
< |
# endif |
6617 |
< |
int FC_DUMMY_MAIN() { return 1; } |
6618 |
< |
#endif |
6619 |
< |
#endif |
6620 |
< |
int |
6621 |
< |
main () |
6622 |
< |
{ |
6623 |
< |
return inflateEnd (); |
6624 |
< |
; |
6625 |
< |
return 0; |
6626 |
< |
} |
6627 |
< |
_ACEOF |
6628 |
< |
rm -rf conftest.$ac_objext conftest$ac_exeext |
6629 |
< |
if { (ac_try="$ac_link" |
6630 |
< |
case "(($ac_try" in |
6631 |
< |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6632 |
< |
*) ac_try_echo=$ac_try;; |
6633 |
< |
esac |
6634 |
< |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6635 |
< |
(eval "$ac_link") 2>conftest.er1 |
6636 |
< |
ac_status=$? |
6637 |
< |
grep -v '^ *+' conftest.er1 >conftest.err |
6638 |
< |
rm -f conftest.er1 |
6639 |
< |
cat conftest.err >&5 |
6640 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6641 |
< |
(exit $ac_status); } && { |
6642 |
< |
test -z "$ac_c_werror_flag" || |
6643 |
< |
test ! -s conftest.err |
6644 |
< |
} && test -s conftest$ac_exeext && |
6645 |
< |
$as_test_x conftest$ac_exeext; then |
6646 |
< |
ac_cv_lib_z_inflateEnd=yes |
6647 |
< |
else |
6648 |
< |
echo "$as_me: failed program was:" >&5 |
6649 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
6650 |
< |
|
6651 |
< |
ac_cv_lib_z_inflateEnd=no |
6652 |
< |
fi |
6653 |
< |
|
6654 |
< |
rm -rf core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
6655 |
< |
conftest$ac_exeext conftest.$ac_ext |
6656 |
< |
LIBS=$ac_check_lib_save_LIBS |
6657 |
< |
fi |
6658 |
< |
{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateEnd" >&5 |
6659 |
< |
echo "${ECHO_T}$ac_cv_lib_z_inflateEnd" >&6; } |
6660 |
< |
if test $ac_cv_lib_z_inflateEnd = yes; then |
6661 |
< |
zlib_cv_libz=yes |
6662 |
< |
else |
6663 |
< |
zlib_cv_libz=no |
6664 |
< |
fi |
6665 |
< |
|
6666 |
< |
if test "${ac_cv_header_zlib_h+set}" = set; then |
6667 |
< |
{ echo "$as_me:$LINENO: checking for zlib.h" >&5 |
6668 |
< |
echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; } |
6669 |
< |
if test "${ac_cv_header_zlib_h+set}" = set; then |
6670 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6671 |
< |
fi |
6672 |
< |
{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 |
6673 |
< |
echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; } |
6674 |
< |
else |
6675 |
< |
# Is the header compilable? |
6676 |
< |
{ echo "$as_me:$LINENO: checking zlib.h usability" >&5 |
6677 |
< |
echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; } |
6678 |
< |
cat >conftest.$ac_ext <<_ACEOF |
6679 |
< |
/* confdefs.h. */ |
6680 |
< |
_ACEOF |
6681 |
< |
cat confdefs.h >>conftest.$ac_ext |
6682 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
6683 |
< |
/* end confdefs.h. */ |
6684 |
< |
$ac_includes_default |
6685 |
< |
#include <zlib.h> |
6686 |
< |
_ACEOF |
6687 |
< |
rm -rf conftest.$ac_objext |
6688 |
< |
if { (ac_try="$ac_compile" |
6689 |
< |
case "(($ac_try" in |
6690 |
< |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6691 |
< |
*) ac_try_echo=$ac_try;; |
6692 |
< |
esac |
6693 |
< |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6694 |
< |
(eval "$ac_compile") 2>conftest.er1 |
6695 |
< |
ac_status=$? |
6696 |
< |
grep -v '^ *+' conftest.er1 >conftest.err |
6697 |
< |
rm -f conftest.er1 |
6698 |
< |
cat conftest.err >&5 |
6699 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6700 |
< |
(exit $ac_status); } && { |
6701 |
< |
test -z "$ac_c_werror_flag" || |
6702 |
< |
test ! -s conftest.err |
6703 |
< |
} && test -s conftest.$ac_objext; then |
6704 |
< |
ac_header_compiler=yes |
6705 |
< |
else |
6706 |
< |
echo "$as_me: failed program was:" >&5 |
6707 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
6708 |
< |
|
6709 |
< |
ac_header_compiler=no |
6710 |
< |
fi |
6711 |
< |
|
6712 |
< |
rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext |
6713 |
< |
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
6714 |
< |
echo "${ECHO_T}$ac_header_compiler" >&6; } |
6715 |
< |
|
6716 |
< |
# Is the header present? |
6717 |
< |
{ echo "$as_me:$LINENO: checking zlib.h presence" >&5 |
6718 |
< |
echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; } |
6719 |
< |
cat >conftest.$ac_ext <<_ACEOF |
6720 |
< |
/* confdefs.h. */ |
6721 |
< |
_ACEOF |
6722 |
< |
cat confdefs.h >>conftest.$ac_ext |
6723 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
6724 |
< |
/* end confdefs.h. */ |
6725 |
< |
#include <zlib.h> |
6726 |
< |
_ACEOF |
6727 |
< |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
6728 |
< |
case "(($ac_try" in |
6729 |
< |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6730 |
< |
*) ac_try_echo=$ac_try;; |
6731 |
< |
esac |
6732 |
< |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6733 |
< |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
6734 |
< |
ac_status=$? |
6735 |
< |
grep -v '^ *+' conftest.er1 >conftest.err |
6736 |
< |
rm -f conftest.er1 |
6737 |
< |
cat conftest.err >&5 |
6738 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6739 |
< |
(exit $ac_status); } >/dev/null && { |
6740 |
< |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
6741 |
< |
test ! -s conftest.err |
6742 |
< |
}; then |
6743 |
< |
ac_header_preproc=yes |
6744 |
< |
else |
6745 |
< |
echo "$as_me: failed program was:" >&5 |
6746 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
6747 |
< |
|
6748 |
< |
ac_header_preproc=no |
6749 |
< |
fi |
6750 |
< |
|
6751 |
< |
rm -rf conftest.err conftest.$ac_ext |
6752 |
< |
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
6753 |
< |
echo "${ECHO_T}$ac_header_preproc" >&6; } |
6754 |
< |
|
6755 |
< |
# So? What about this header? |
6756 |
< |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
6757 |
< |
yes:no: ) |
6758 |
< |
{ echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
6759 |
< |
echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
6760 |
< |
{ echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 |
6761 |
< |
echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} |
6762 |
< |
ac_header_preproc=yes |
6763 |
< |
;; |
6764 |
< |
no:yes:* ) |
6765 |
< |
{ echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 |
6766 |
< |
echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} |
6767 |
< |
{ echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 |
6768 |
< |
echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} |
6769 |
< |
{ echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 |
6770 |
< |
echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} |
6771 |
< |
{ echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 |
6772 |
< |
echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} |
6773 |
< |
{ echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 |
6774 |
< |
echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} |
6775 |
< |
{ echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 |
6776 |
< |
echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} |
6777 |
< |
( cat <<\_ASBOX |
6778 |
< |
## ------------------------------ ## |
6779 |
< |
## Report this to gezelter@nd.edu ## |
6780 |
< |
## ------------------------------ ## |
6781 |
< |
_ASBOX |
6782 |
< |
) | sed "s/^/$as_me: WARNING: /" >&2 |
6783 |
< |
;; |
6784 |
< |
esac |
6785 |
< |
{ echo "$as_me:$LINENO: checking for zlib.h" >&5 |
6786 |
< |
echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; } |
6787 |
< |
if test "${ac_cv_header_zlib_h+set}" = set; then |
6788 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6789 |
< |
else |
6790 |
< |
ac_cv_header_zlib_h=$ac_header_preproc |
6791 |
< |
fi |
6792 |
< |
{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 |
6793 |
< |
echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; } |
6794 |
< |
|
6795 |
< |
fi |
6796 |
< |
if test $ac_cv_header_zlib_h = yes; then |
6797 |
< |
zlib_cv_zlib_h=yes |
6798 |
< |
else |
6799 |
< |
zlib_cv_zlib_h=no |
6800 |
< |
fi |
6801 |
< |
|
6802 |
< |
|
6803 |
< |
ac_ext=c |
6804 |
< |
ac_cpp='$CPP $CPPFLAGS' |
6805 |
< |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
6806 |
< |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6807 |
< |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
6808 |
< |
|
6809 |
< |
|
6810 |
< |
if test "$zlib_cv_libz" = "yes" -a "$zlib_cv_zlib_h" = "yes"; then |
6811 |
< |
|
6812 |
< |
cat >>confdefs.h <<\_ACEOF |
6813 |
< |
#define HAVE_ZLIB_H 1 |
6814 |
< |
_ACEOF |
6815 |
< |
|
6816 |
< |
|
6817 |
< |
cat >>confdefs.h <<\_ACEOF |
6818 |
< |
#define HAVE_LIBZ 1 |
6819 |
< |
_ACEOF |
6820 |
< |
|
6821 |
< |
ZLIB_INC_DIR="${ZLIB_HOME}/include" |
6822 |
< |
ZLIB_LIB_DIR="${ZLIB_HOME}/lib" |
6823 |
< |
ZLIB="-lz" |
6824 |
< |
else |
6825 |
< |
{ echo "$as_me:$LINENO: checking zlib in ${ZLIB_HOME}" >&5 |
6826 |
< |
echo $ECHO_N "checking zlib in ${ZLIB_HOME}... $ECHO_C" >&6; } |
6827 |
< |
ZLIB_INC_DIR= |
6828 |
< |
ZLIB_LIB_DIR= |
6829 |
< |
ZLIB= |
6830 |
< |
LDFLAGS="$ZLIB_OLD_LDFLAGS" |
6831 |
< |
CPPFLAGS="$ZLIB_OLD_CPPFLAGS" |
6832 |
< |
{ echo "$as_me:$LINENO: result: failed" >&5 |
6833 |
< |
echo "${ECHO_T}failed" >&6; } |
6834 |
< |
echo "" |
6835 |
< |
echo "*********************************************************" |
6836 |
< |
echo "* WARNING: Could not find a working zlib installation *" |
6837 |
< |
echo "* If you need OOPSE to be able to deal with compressed *" |
6838 |
< |
echo "* trajectory dump files be sure to specify a valid zlib *" |
6839 |
< |
echo "* installation with --with-zlib=DIR *" |
6840 |
< |
echo "* *" |
6841 |
< |
echo "* OOPSE will still work without zlib installed. *" |
6842 |
< |
echo "*********************************************************" |
6843 |
< |
echo "" |
6844 |
< |
fi |
6845 |
< |
|
6846 |
< |
|
6847 |
< |
|
6848 |
< |
fi |
6849 |
< |
fi |
6850 |
< |
|
6851 |
< |
# |
6852 |
< |
# Handle user hints |
6853 |
< |
# |
6854 |
< |
|
6855 |
< |
# Check whether --with-fftw was given. |
6856 |
< |
if test "${with_fftw+set}" = set; then |
6857 |
< |
withval=$with_fftw; fftw_dir="$withval" |
6858 |
< |
else |
6859 |
< |
fftw_dir="not_set" |
6860 |
< |
fi |
6861 |
< |
|
6862 |
< |
if test "$fftw_dir" != "no"; then |
6863 |
< |
if test "$fftw_dir" != "not_set" ; then |
6864 |
< |
if test -d "$fftw_dir"; then |
6865 |
< |
FFTW_HOME="$fftw_dir" |
6866 |
< |
else |
6867 |
< |
{ echo "$as_me:$LINENO: WARNING: Sorry, $fftw_dir does not exist, checking usual places" >&5 |
6868 |
< |
echo "$as_me: WARNING: Sorry, $fftw_dir does not exist, checking usual places" >&2;} |
6869 |
< |
FFTW_HOME=/usr/local |
6870 |
< |
if test ! -f "${FFTW_HOME}/include/fftw3.h" -o -f "${FFTW_HOME}/include/fftw.h" -o -f "${FFTW_HOME}/include/dfftw.h"; then |
6871 |
< |
FFTW_HOME=/usr |
6872 |
< |
fi |
6873 |
< |
fi |
6874 |
< |
# |
6875 |
< |
# Locate fftw, if wanted |
6876 |
< |
# |
6877 |
< |
if test -n "${FFTW_HOME}"; then |
6878 |
< |
FFTW_OLD_LDFLAGS=$LDFLAGS |
6879 |
< |
FFTW_OLD_CPPFLAGS=$LDFLAGS |
6880 |
< |
LDFLAGS="$LDFLAGS -L${FFTW_HOME}/lib" |
6881 |
< |
CPPFLAGS="$CPPFLAGS -I${FFTW_HOME}/include" |
6882 |
< |
|
6883 |
< |
ac_ext=c |
6884 |
< |
ac_cpp='$CPP $CPPFLAGS' |
6885 |
< |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
6886 |
< |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6887 |
< |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
6888 |
< |
|
6889 |
< |
{ echo "$as_me:$LINENO: checking for fftw_execute in -lfftw3" >&5 |
6890 |
< |
echo $ECHO_N "checking for fftw_execute in -lfftw3... $ECHO_C" >&6; } |
6891 |
< |
if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then |
6892 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6893 |
< |
else |
6894 |
< |
ac_check_lib_save_LIBS=$LIBS |
6895 |
< |
LIBS="-lfftw3 $LIBS" |
6896 |
< |
cat >conftest.$ac_ext <<_ACEOF |
6897 |
< |
/* confdefs.h. */ |
6898 |
< |
_ACEOF |
6899 |
< |
cat confdefs.h >>conftest.$ac_ext |
6900 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
6901 |
< |
/* end confdefs.h. */ |
6902 |
< |
|
6903 |
< |
/* Override any GCC internal prototype to avoid an error. |
6904 |
< |
Use char because int might match the return type of a GCC |
6905 |
< |
builtin and then its argument prototype would still apply. */ |
6906 |
< |
#ifdef __cplusplus |
6907 |
< |
extern "C" |
6908 |
< |
#endif |
6909 |
< |
char fftw_execute (); |
6910 |
< |
#ifdef FC_DUMMY_MAIN |
6911 |
< |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
6912 |
< |
# ifdef __cplusplus |
6913 |
< |
extern "C" |
6914 |
< |
# endif |
6915 |
< |
int FC_DUMMY_MAIN() { return 1; } |
6916 |
< |
#endif |
6917 |
< |
#endif |
6918 |
< |
int |
6919 |
< |
main () |
6920 |
< |
{ |
6921 |
< |
return fftw_execute (); |
6922 |
< |
; |
6923 |
< |
return 0; |
6924 |
< |
} |
6925 |
< |
_ACEOF |
6926 |
< |
rm -rf conftest.$ac_objext conftest$ac_exeext |
6927 |
< |
if { (ac_try="$ac_link" |
6928 |
< |
case "(($ac_try" in |
6929 |
< |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6930 |
< |
*) ac_try_echo=$ac_try;; |
6931 |
< |
esac |
6932 |
< |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6933 |
< |
(eval "$ac_link") 2>conftest.er1 |
6934 |
< |
ac_status=$? |
6935 |
< |
grep -v '^ *+' conftest.er1 >conftest.err |
6936 |
< |
rm -f conftest.er1 |
6937 |
< |
cat conftest.err >&5 |
6938 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6939 |
< |
(exit $ac_status); } && { |
6940 |
< |
test -z "$ac_c_werror_flag" || |
6941 |
< |
test ! -s conftest.err |
6942 |
< |
} && test -s conftest$ac_exeext && |
6943 |
< |
$as_test_x conftest$ac_exeext; then |
6944 |
< |
ac_cv_lib_fftw3_fftw_execute=yes |
6945 |
< |
else |
6946 |
< |
echo "$as_me: failed program was:" >&5 |
6947 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
6948 |
< |
|
6949 |
< |
ac_cv_lib_fftw3_fftw_execute=no |
6950 |
< |
fi |
6951 |
< |
|
6952 |
< |
rm -rf core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
6953 |
< |
conftest$ac_exeext conftest.$ac_ext |
6954 |
< |
LIBS=$ac_check_lib_save_LIBS |
6955 |
< |
fi |
6956 |
< |
{ echo "$as_me:$LINENO: result: $ac_cv_lib_fftw3_fftw_execute" >&5 |
6957 |
< |
echo "${ECHO_T}$ac_cv_lib_fftw3_fftw_execute" >&6; } |
6958 |
< |
if test $ac_cv_lib_fftw3_fftw_execute = yes; then |
6959 |
< |
fftw_cv_libfftw3=yes |
6960 |
< |
else |
6961 |
< |
fftw_cv_libfftw3=no |
6962 |
< |
fi |
6963 |
< |
|
6964 |
< |
if test "${ac_cv_header_fftw3_h+set}" = set; then |
6965 |
< |
{ echo "$as_me:$LINENO: checking for fftw3.h" >&5 |
6966 |
< |
echo $ECHO_N "checking for fftw3.h... $ECHO_C" >&6; } |
6967 |
< |
if test "${ac_cv_header_fftw3_h+set}" = set; then |
6968 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6969 |
< |
fi |
6970 |
< |
{ echo "$as_me:$LINENO: result: $ac_cv_header_fftw3_h" >&5 |
6971 |
< |
echo "${ECHO_T}$ac_cv_header_fftw3_h" >&6; } |
6972 |
< |
else |
6973 |
< |
# Is the header compilable? |
6974 |
< |
{ echo "$as_me:$LINENO: checking fftw3.h usability" >&5 |
6975 |
< |
echo $ECHO_N "checking fftw3.h usability... $ECHO_C" >&6; } |
6976 |
< |
cat >conftest.$ac_ext <<_ACEOF |
6977 |
< |
/* confdefs.h. */ |
6978 |
< |
_ACEOF |
6979 |
< |
cat confdefs.h >>conftest.$ac_ext |
6980 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
6981 |
< |
/* end confdefs.h. */ |
6982 |
< |
$ac_includes_default |
6983 |
< |
#include <fftw3.h> |
6984 |
< |
_ACEOF |
6985 |
< |
rm -rf conftest.$ac_objext |
6986 |
< |
if { (ac_try="$ac_compile" |
6987 |
< |
case "(($ac_try" in |
6988 |
< |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6989 |
< |
*) ac_try_echo=$ac_try;; |
6990 |
< |
esac |
6991 |
< |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6992 |
< |
(eval "$ac_compile") 2>conftest.er1 |
6993 |
< |
ac_status=$? |
6994 |
< |
grep -v '^ *+' conftest.er1 >conftest.err |
6995 |
< |
rm -f conftest.er1 |
6996 |
< |
cat conftest.err >&5 |
6997 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6998 |
< |
(exit $ac_status); } && { |
6999 |
< |
test -z "$ac_c_werror_flag" || |
7000 |
< |
test ! -s conftest.err |
7001 |
< |
} && test -s conftest.$ac_objext; then |
7002 |
< |
ac_header_compiler=yes |
7003 |
< |
else |
7004 |
< |
echo "$as_me: failed program was:" >&5 |
7005 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
7006 |
< |
|
7007 |
< |
ac_header_compiler=no |
7008 |
< |
fi |
7009 |
< |
|
7010 |
< |
rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext |
7011 |
< |
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7012 |
< |
echo "${ECHO_T}$ac_header_compiler" >&6; } |
7013 |
< |
|
7014 |
< |
# Is the header present? |
7015 |
< |
{ echo "$as_me:$LINENO: checking fftw3.h presence" >&5 |
7016 |
< |
echo $ECHO_N "checking fftw3.h presence... $ECHO_C" >&6; } |
7017 |
< |
cat >conftest.$ac_ext <<_ACEOF |
7018 |
< |
/* confdefs.h. */ |
7019 |
< |
_ACEOF |
7020 |
< |
cat confdefs.h >>conftest.$ac_ext |
7021 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
7022 |
< |
/* end confdefs.h. */ |
7023 |
< |
#include <fftw3.h> |
7024 |
< |
_ACEOF |
7025 |
< |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
7026 |
< |
case "(($ac_try" in |
7027 |
< |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7028 |
< |
*) ac_try_echo=$ac_try;; |
7029 |
< |
esac |
7030 |
< |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7031 |
< |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
7032 |
< |
ac_status=$? |
7033 |
< |
grep -v '^ *+' conftest.er1 >conftest.err |
7034 |
< |
rm -f conftest.er1 |
7035 |
< |
cat conftest.err >&5 |
7036 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7037 |
< |
(exit $ac_status); } >/dev/null && { |
7038 |
< |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
7039 |
< |
test ! -s conftest.err |
7040 |
< |
}; then |
7041 |
< |
ac_header_preproc=yes |
7042 |
< |
else |
7043 |
< |
echo "$as_me: failed program was:" >&5 |
7044 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
7045 |
< |
|
7046 |
< |
ac_header_preproc=no |
7047 |
< |
fi |
7048 |
< |
|
7049 |
< |
rm -rf conftest.err conftest.$ac_ext |
7050 |
< |
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7051 |
< |
echo "${ECHO_T}$ac_header_preproc" >&6; } |
7052 |
< |
|
7053 |
< |
# So? What about this header? |
7054 |
< |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
7055 |
< |
yes:no: ) |
7056 |
< |
{ echo "$as_me:$LINENO: WARNING: fftw3.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
7057 |
< |
echo "$as_me: WARNING: fftw3.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
7058 |
< |
{ echo "$as_me:$LINENO: WARNING: fftw3.h: proceeding with the compiler's result" >&5 |
7059 |
< |
echo "$as_me: WARNING: fftw3.h: proceeding with the compiler's result" >&2;} |
7060 |
< |
ac_header_preproc=yes |
7061 |
< |
;; |
7062 |
< |
no:yes:* ) |
7063 |
< |
{ echo "$as_me:$LINENO: WARNING: fftw3.h: present but cannot be compiled" >&5 |
7064 |
< |
echo "$as_me: WARNING: fftw3.h: present but cannot be compiled" >&2;} |
7065 |
< |
{ echo "$as_me:$LINENO: WARNING: fftw3.h: check for missing prerequisite headers?" >&5 |
7066 |
< |
echo "$as_me: WARNING: fftw3.h: check for missing prerequisite headers?" >&2;} |
7067 |
< |
{ echo "$as_me:$LINENO: WARNING: fftw3.h: see the Autoconf documentation" >&5 |
7068 |
< |
echo "$as_me: WARNING: fftw3.h: see the Autoconf documentation" >&2;} |
7069 |
< |
{ echo "$as_me:$LINENO: WARNING: fftw3.h: section \"Present But Cannot Be Compiled\"" >&5 |
7070 |
< |
echo "$as_me: WARNING: fftw3.h: section \"Present But Cannot Be Compiled\"" >&2;} |
7071 |
< |
{ echo "$as_me:$LINENO: WARNING: fftw3.h: proceeding with the preprocessor's result" >&5 |
7072 |
< |
echo "$as_me: WARNING: fftw3.h: proceeding with the preprocessor's result" >&2;} |
7073 |
< |
{ echo "$as_me:$LINENO: WARNING: fftw3.h: in the future, the compiler will take precedence" >&5 |
7074 |
< |
echo "$as_me: WARNING: fftw3.h: in the future, the compiler will take precedence" >&2;} |
7075 |
< |
( cat <<\_ASBOX |
7076 |
< |
## ------------------------------ ## |
7077 |
< |
## Report this to gezelter@nd.edu ## |
7078 |
< |
## ------------------------------ ## |
7079 |
< |
_ASBOX |
7080 |
< |
) | sed "s/^/$as_me: WARNING: /" >&2 |
7081 |
< |
;; |
7082 |
< |
esac |
7083 |
< |
{ echo "$as_me:$LINENO: checking for fftw3.h" >&5 |
7084 |
< |
echo $ECHO_N "checking for fftw3.h... $ECHO_C" >&6; } |
7085 |
< |
if test "${ac_cv_header_fftw3_h+set}" = set; then |
7086 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7087 |
< |
else |
7088 |
< |
ac_cv_header_fftw3_h=$ac_header_preproc |
7089 |
< |
fi |
7090 |
< |
{ echo "$as_me:$LINENO: result: $ac_cv_header_fftw3_h" >&5 |
7091 |
< |
echo "${ECHO_T}$ac_cv_header_fftw3_h" >&6; } |
7092 |
< |
|
7093 |
< |
fi |
7094 |
< |
if test $ac_cv_header_fftw3_h = yes; then |
7095 |
< |
fftw_cv_fftw3_h=yes |
7096 |
< |
else |
7097 |
< |
fftw_cv_fftw3_h=no |
7098 |
< |
fi |
7099 |
< |
|
7100 |
< |
|
7101 |
< |
if test "$fftw_cv_libfftw3" = "no" -o "$fftw_cv_fftw3_h" = "no"; then |
7102 |
< |
{ echo "$as_me:$LINENO: checking for fftwnd_one in -lfftw" >&5 |
7103 |
< |
echo $ECHO_N "checking for fftwnd_one in -lfftw... $ECHO_C" >&6; } |
7104 |
< |
if test "${ac_cv_lib_fftw_fftwnd_one+set}" = set; then |
7105 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7106 |
< |
else |
7107 |
< |
ac_check_lib_save_LIBS=$LIBS |
7108 |
< |
LIBS="-lfftw $LIBS" |
7109 |
< |
cat >conftest.$ac_ext <<_ACEOF |
7110 |
< |
/* confdefs.h. */ |
7111 |
< |
_ACEOF |
7112 |
< |
cat confdefs.h >>conftest.$ac_ext |
7113 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
7114 |
< |
/* end confdefs.h. */ |
7115 |
< |
|
7116 |
< |
/* Override any GCC internal prototype to avoid an error. |
7117 |
< |
Use char because int might match the return type of a GCC |
7118 |
< |
builtin and then its argument prototype would still apply. */ |
7119 |
< |
#ifdef __cplusplus |
7120 |
< |
extern "C" |
7121 |
< |
#endif |
7122 |
< |
char fftwnd_one (); |
7123 |
< |
#ifdef FC_DUMMY_MAIN |
7124 |
< |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
7125 |
< |
# ifdef __cplusplus |
7126 |
< |
extern "C" |
7127 |
< |
# endif |
7128 |
< |
int FC_DUMMY_MAIN() { return 1; } |
7129 |
< |
#endif |
7130 |
< |
#endif |
7131 |
< |
int |
7132 |
< |
main () |
7133 |
< |
{ |
7134 |
< |
return fftwnd_one (); |
7135 |
< |
; |
7136 |
< |
return 0; |
7137 |
< |
} |
7138 |
< |
_ACEOF |
7139 |
< |
rm -rf conftest.$ac_objext conftest$ac_exeext |
7140 |
< |
if { (ac_try="$ac_link" |
7141 |
< |
case "(($ac_try" in |
7142 |
< |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7143 |
< |
*) ac_try_echo=$ac_try;; |
7144 |
< |
esac |
7145 |
< |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7146 |
< |
(eval "$ac_link") 2>conftest.er1 |
7147 |
< |
ac_status=$? |
7148 |
< |
grep -v '^ *+' conftest.er1 >conftest.err |
7149 |
< |
rm -f conftest.er1 |
7150 |
< |
cat conftest.err >&5 |
7151 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7152 |
< |
(exit $ac_status); } && { |
7153 |
< |
test -z "$ac_c_werror_flag" || |
7154 |
< |
test ! -s conftest.err |
7155 |
< |
} && test -s conftest$ac_exeext && |
7156 |
< |
$as_test_x conftest$ac_exeext; then |
7157 |
< |
ac_cv_lib_fftw_fftwnd_one=yes |
7158 |
< |
else |
7159 |
< |
echo "$as_me: failed program was:" >&5 |
7160 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
7161 |
< |
|
7162 |
< |
ac_cv_lib_fftw_fftwnd_one=no |
7163 |
< |
fi |
7164 |
< |
|
7165 |
< |
rm -rf core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
7166 |
< |
conftest$ac_exeext conftest.$ac_ext |
7167 |
< |
LIBS=$ac_check_lib_save_LIBS |
7168 |
< |
fi |
7169 |
< |
{ echo "$as_me:$LINENO: result: $ac_cv_lib_fftw_fftwnd_one" >&5 |
7170 |
< |
echo "${ECHO_T}$ac_cv_lib_fftw_fftwnd_one" >&6; } |
7171 |
< |
if test $ac_cv_lib_fftw_fftwnd_one = yes; then |
7172 |
< |
fftw_cv_libfftw=yes |
7173 |
< |
else |
7174 |
< |
fftw_cv_libfftw=no |
7175 |
< |
fi |
7176 |
< |
|
7177 |
< |
if test "${ac_cv_header_fftw_h+set}" = set; then |
7178 |
< |
{ echo "$as_me:$LINENO: checking for fftw.h" >&5 |
7179 |
< |
echo $ECHO_N "checking for fftw.h... $ECHO_C" >&6; } |
7180 |
< |
if test "${ac_cv_header_fftw_h+set}" = set; then |
7181 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7182 |
< |
fi |
7183 |
< |
{ echo "$as_me:$LINENO: result: $ac_cv_header_fftw_h" >&5 |
7184 |
< |
echo "${ECHO_T}$ac_cv_header_fftw_h" >&6; } |
7185 |
< |
else |
7186 |
< |
# Is the header compilable? |
7187 |
< |
{ echo "$as_me:$LINENO: checking fftw.h usability" >&5 |
7188 |
< |
echo $ECHO_N "checking fftw.h usability... $ECHO_C" >&6; } |
7189 |
< |
cat >conftest.$ac_ext <<_ACEOF |
7190 |
< |
/* confdefs.h. */ |
7191 |
< |
_ACEOF |
7192 |
< |
cat confdefs.h >>conftest.$ac_ext |
7193 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
7194 |
< |
/* end confdefs.h. */ |
7195 |
< |
$ac_includes_default |
7196 |
< |
#include <fftw.h> |
7197 |
< |
_ACEOF |
7198 |
< |
rm -rf conftest.$ac_objext |
7199 |
< |
if { (ac_try="$ac_compile" |
7200 |
< |
case "(($ac_try" in |
7201 |
< |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7202 |
< |
*) ac_try_echo=$ac_try;; |
7203 |
< |
esac |
7204 |
< |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7205 |
< |
(eval "$ac_compile") 2>conftest.er1 |
7206 |
< |
ac_status=$? |
7207 |
< |
grep -v '^ *+' conftest.er1 >conftest.err |
7208 |
< |
rm -f conftest.er1 |
7209 |
< |
cat conftest.err >&5 |
7210 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7211 |
< |
(exit $ac_status); } && { |
7212 |
< |
test -z "$ac_c_werror_flag" || |
7213 |
< |
test ! -s conftest.err |
7214 |
< |
} && test -s conftest.$ac_objext; then |
7215 |
< |
ac_header_compiler=yes |
7216 |
< |
else |
7217 |
< |
echo "$as_me: failed program was:" >&5 |
7218 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
7219 |
< |
|
7220 |
< |
ac_header_compiler=no |
7221 |
< |
fi |
7222 |
< |
|
7223 |
< |
rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext |
7224 |
< |
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7225 |
< |
echo "${ECHO_T}$ac_header_compiler" >&6; } |
7226 |
< |
|
7227 |
< |
# Is the header present? |
7228 |
< |
{ echo "$as_me:$LINENO: checking fftw.h presence" >&5 |
7229 |
< |
echo $ECHO_N "checking fftw.h presence... $ECHO_C" >&6; } |
7230 |
< |
cat >conftest.$ac_ext <<_ACEOF |
7231 |
< |
/* confdefs.h. */ |
7232 |
< |
_ACEOF |
7233 |
< |
cat confdefs.h >>conftest.$ac_ext |
7234 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
7235 |
< |
/* end confdefs.h. */ |
7236 |
< |
#include <fftw.h> |
7237 |
< |
_ACEOF |
7238 |
< |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
7239 |
< |
case "(($ac_try" in |
7240 |
< |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7241 |
< |
*) ac_try_echo=$ac_try;; |
7242 |
< |
esac |
7243 |
< |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7244 |
< |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
7245 |
< |
ac_status=$? |
7246 |
< |
grep -v '^ *+' conftest.er1 >conftest.err |
7247 |
< |
rm -f conftest.er1 |
7248 |
< |
cat conftest.err >&5 |
7249 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7250 |
< |
(exit $ac_status); } >/dev/null && { |
7251 |
< |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
7252 |
< |
test ! -s conftest.err |
7253 |
< |
}; then |
7254 |
< |
ac_header_preproc=yes |
7255 |
< |
else |
7256 |
< |
echo "$as_me: failed program was:" >&5 |
7257 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
7258 |
< |
|
7259 |
< |
ac_header_preproc=no |
7260 |
< |
fi |
7261 |
< |
|
7262 |
< |
rm -rf conftest.err conftest.$ac_ext |
7263 |
< |
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7264 |
< |
echo "${ECHO_T}$ac_header_preproc" >&6; } |
7265 |
< |
|
7266 |
< |
# So? What about this header? |
7267 |
< |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
7268 |
< |
yes:no: ) |
7269 |
< |
{ echo "$as_me:$LINENO: WARNING: fftw.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
7270 |
< |
echo "$as_me: WARNING: fftw.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
7271 |
< |
{ echo "$as_me:$LINENO: WARNING: fftw.h: proceeding with the compiler's result" >&5 |
7272 |
< |
echo "$as_me: WARNING: fftw.h: proceeding with the compiler's result" >&2;} |
7273 |
< |
ac_header_preproc=yes |
7274 |
< |
;; |
7275 |
< |
no:yes:* ) |
7276 |
< |
{ echo "$as_me:$LINENO: WARNING: fftw.h: present but cannot be compiled" >&5 |
7277 |
< |
echo "$as_me: WARNING: fftw.h: present but cannot be compiled" >&2;} |
7278 |
< |
{ echo "$as_me:$LINENO: WARNING: fftw.h: check for missing prerequisite headers?" >&5 |
7279 |
< |
echo "$as_me: WARNING: fftw.h: check for missing prerequisite headers?" >&2;} |
7280 |
< |
{ echo "$as_me:$LINENO: WARNING: fftw.h: see the Autoconf documentation" >&5 |
7281 |
< |
echo "$as_me: WARNING: fftw.h: see the Autoconf documentation" >&2;} |
7282 |
< |
{ echo "$as_me:$LINENO: WARNING: fftw.h: section \"Present But Cannot Be Compiled\"" >&5 |
7283 |
< |
echo "$as_me: WARNING: fftw.h: section \"Present But Cannot Be Compiled\"" >&2;} |
7284 |
< |
{ echo "$as_me:$LINENO: WARNING: fftw.h: proceeding with the preprocessor's result" >&5 |
7285 |
< |
echo "$as_me: WARNING: fftw.h: proceeding with the preprocessor's result" >&2;} |
7286 |
< |
{ echo "$as_me:$LINENO: WARNING: fftw.h: in the future, the compiler will take precedence" >&5 |
7287 |
< |
echo "$as_me: WARNING: fftw.h: in the future, the compiler will take precedence" >&2;} |
7288 |
< |
( cat <<\_ASBOX |
7289 |
< |
## ------------------------------ ## |
7290 |
< |
## Report this to gezelter@nd.edu ## |
7291 |
< |
## ------------------------------ ## |
7292 |
< |
_ASBOX |
7293 |
< |
) | sed "s/^/$as_me: WARNING: /" >&2 |
7294 |
< |
;; |
7295 |
< |
esac |
7296 |
< |
{ echo "$as_me:$LINENO: checking for fftw.h" >&5 |
7297 |
< |
echo $ECHO_N "checking for fftw.h... $ECHO_C" >&6; } |
7298 |
< |
if test "${ac_cv_header_fftw_h+set}" = set; then |
7299 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7300 |
< |
else |
7301 |
< |
ac_cv_header_fftw_h=$ac_header_preproc |
7302 |
< |
fi |
7303 |
< |
{ echo "$as_me:$LINENO: result: $ac_cv_header_fftw_h" >&5 |
7304 |
< |
echo "${ECHO_T}$ac_cv_header_fftw_h" >&6; } |
7305 |
< |
|
7306 |
< |
fi |
7307 |
< |
if test $ac_cv_header_fftw_h = yes; then |
7308 |
< |
fftw_cv_fftw_h=yes |
7309 |
< |
else |
7310 |
< |
fftw_cv_fftw_h=no |
7311 |
< |
fi |
7312 |
< |
|
7313 |
< |
|
7314 |
< |
if test "$fftw_cv_libfftw" = "no" -o "$fftw_cv_fftw_h" = "no"; then |
7315 |
< |
{ echo "$as_me:$LINENO: checking for fftwnd_one in -ldfftw" >&5 |
7316 |
< |
echo $ECHO_N "checking for fftwnd_one in -ldfftw... $ECHO_C" >&6; } |
7317 |
< |
if test "${ac_cv_lib_dfftw_fftwnd_one+set}" = set; then |
7318 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7319 |
< |
else |
7320 |
< |
ac_check_lib_save_LIBS=$LIBS |
7321 |
< |
LIBS="-ldfftw $LIBS" |
7322 |
< |
cat >conftest.$ac_ext <<_ACEOF |
7323 |
< |
/* confdefs.h. */ |
7324 |
< |
_ACEOF |
7325 |
< |
cat confdefs.h >>conftest.$ac_ext |
7326 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
7327 |
< |
/* end confdefs.h. */ |
7328 |
< |
|
7329 |
< |
/* Override any GCC internal prototype to avoid an error. |
7330 |
< |
Use char because int might match the return type of a GCC |
7331 |
< |
builtin and then its argument prototype would still apply. */ |
7332 |
< |
#ifdef __cplusplus |
7333 |
< |
extern "C" |
7334 |
< |
#endif |
7335 |
< |
char fftwnd_one (); |
7336 |
< |
#ifdef FC_DUMMY_MAIN |
7337 |
< |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
7338 |
< |
# ifdef __cplusplus |
7339 |
< |
extern "C" |
7340 |
< |
# endif |
7341 |
< |
int FC_DUMMY_MAIN() { return 1; } |
7342 |
< |
#endif |
7343 |
< |
#endif |
7344 |
< |
int |
7345 |
< |
main () |
7346 |
< |
{ |
7347 |
< |
return fftwnd_one (); |
7348 |
< |
; |
7349 |
< |
return 0; |
7350 |
< |
} |
7351 |
< |
_ACEOF |
7352 |
< |
rm -rf conftest.$ac_objext conftest$ac_exeext |
7353 |
< |
if { (ac_try="$ac_link" |
7354 |
< |
case "(($ac_try" in |
7355 |
< |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7356 |
< |
*) ac_try_echo=$ac_try;; |
7357 |
< |
esac |
7358 |
< |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7359 |
< |
(eval "$ac_link") 2>conftest.er1 |
7360 |
< |
ac_status=$? |
7361 |
< |
grep -v '^ *+' conftest.er1 >conftest.err |
7362 |
< |
rm -f conftest.er1 |
7363 |
< |
cat conftest.err >&5 |
7364 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7365 |
< |
(exit $ac_status); } && { |
7366 |
< |
test -z "$ac_c_werror_flag" || |
7367 |
< |
test ! -s conftest.err |
7368 |
< |
} && test -s conftest$ac_exeext && |
7369 |
< |
$as_test_x conftest$ac_exeext; then |
7370 |
< |
ac_cv_lib_dfftw_fftwnd_one=yes |
7371 |
< |
else |
7372 |
< |
echo "$as_me: failed program was:" >&5 |
7373 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
7374 |
< |
|
7375 |
< |
ac_cv_lib_dfftw_fftwnd_one=no |
7376 |
< |
fi |
7377 |
< |
|
7378 |
< |
rm -rf core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
7379 |
< |
conftest$ac_exeext conftest.$ac_ext |
7380 |
< |
LIBS=$ac_check_lib_save_LIBS |
7381 |
< |
fi |
7382 |
< |
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dfftw_fftwnd_one" >&5 |
7383 |
< |
echo "${ECHO_T}$ac_cv_lib_dfftw_fftwnd_one" >&6; } |
7384 |
< |
if test $ac_cv_lib_dfftw_fftwnd_one = yes; then |
7385 |
< |
fftw_cv_libdfftw=yes |
7386 |
< |
else |
7387 |
< |
fftw_cv_libdfftw=no |
7388 |
< |
fi |
7389 |
< |
|
7390 |
< |
if test "${ac_cv_header_dfftw_h+set}" = set; then |
7391 |
< |
{ echo "$as_me:$LINENO: checking for dfftw.h" >&5 |
7392 |
< |
echo $ECHO_N "checking for dfftw.h... $ECHO_C" >&6; } |
7393 |
< |
if test "${ac_cv_header_dfftw_h+set}" = set; then |
7394 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7395 |
< |
fi |
7396 |
< |
{ echo "$as_me:$LINENO: result: $ac_cv_header_dfftw_h" >&5 |
7397 |
< |
echo "${ECHO_T}$ac_cv_header_dfftw_h" >&6; } |
7398 |
< |
else |
7399 |
< |
# Is the header compilable? |
7400 |
< |
{ echo "$as_me:$LINENO: checking dfftw.h usability" >&5 |
7401 |
< |
echo $ECHO_N "checking dfftw.h usability... $ECHO_C" >&6; } |
7402 |
< |
cat >conftest.$ac_ext <<_ACEOF |
7403 |
< |
/* confdefs.h. */ |
7404 |
< |
_ACEOF |
7405 |
< |
cat confdefs.h >>conftest.$ac_ext |
7406 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
7407 |
< |
/* end confdefs.h. */ |
7408 |
< |
$ac_includes_default |
7409 |
< |
#include <dfftw.h> |
7410 |
< |
_ACEOF |
7411 |
< |
rm -rf conftest.$ac_objext |
7412 |
< |
if { (ac_try="$ac_compile" |
7413 |
< |
case "(($ac_try" in |
7414 |
< |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7415 |
< |
*) ac_try_echo=$ac_try;; |
7416 |
< |
esac |
7417 |
< |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7418 |
< |
(eval "$ac_compile") 2>conftest.er1 |
7419 |
< |
ac_status=$? |
7420 |
< |
grep -v '^ *+' conftest.er1 >conftest.err |
7421 |
< |
rm -f conftest.er1 |
7422 |
< |
cat conftest.err >&5 |
7423 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7424 |
< |
(exit $ac_status); } && { |
7425 |
< |
test -z "$ac_c_werror_flag" || |
7426 |
< |
test ! -s conftest.err |
7427 |
< |
} && test -s conftest.$ac_objext; then |
7428 |
< |
ac_header_compiler=yes |
7429 |
< |
else |
7430 |
< |
echo "$as_me: failed program was:" >&5 |
7431 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
7432 |
< |
|
7433 |
< |
ac_header_compiler=no |
7434 |
< |
fi |
7435 |
< |
|
7436 |
< |
rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext |
7437 |
< |
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7438 |
< |
echo "${ECHO_T}$ac_header_compiler" >&6; } |
7439 |
< |
|
7440 |
< |
# Is the header present? |
7441 |
< |
{ echo "$as_me:$LINENO: checking dfftw.h presence" >&5 |
7442 |
< |
echo $ECHO_N "checking dfftw.h presence... $ECHO_C" >&6; } |
7443 |
< |
cat >conftest.$ac_ext <<_ACEOF |
7444 |
< |
/* confdefs.h. */ |
7445 |
< |
_ACEOF |
7446 |
< |
cat confdefs.h >>conftest.$ac_ext |
7447 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
7448 |
< |
/* end confdefs.h. */ |
7449 |
< |
#include <dfftw.h> |
7450 |
< |
_ACEOF |
7451 |
< |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
7452 |
< |
case "(($ac_try" in |
7453 |
< |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7454 |
< |
*) ac_try_echo=$ac_try;; |
7455 |
< |
esac |
7456 |
< |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7457 |
< |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
7458 |
< |
ac_status=$? |
7459 |
< |
grep -v '^ *+' conftest.er1 >conftest.err |
7460 |
< |
rm -f conftest.er1 |
7461 |
< |
cat conftest.err >&5 |
7462 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7463 |
< |
(exit $ac_status); } >/dev/null && { |
7464 |
< |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
7465 |
< |
test ! -s conftest.err |
7466 |
< |
}; then |
7467 |
< |
ac_header_preproc=yes |
7468 |
< |
else |
7469 |
< |
echo "$as_me: failed program was:" >&5 |
7470 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
7471 |
< |
|
7472 |
< |
ac_header_preproc=no |
7473 |
< |
fi |
7474 |
< |
|
7475 |
< |
rm -rf conftest.err conftest.$ac_ext |
7476 |
< |
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7477 |
< |
echo "${ECHO_T}$ac_header_preproc" >&6; } |
7478 |
< |
|
7479 |
< |
# So? What about this header? |
7480 |
< |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
7481 |
< |
yes:no: ) |
7482 |
< |
{ echo "$as_me:$LINENO: WARNING: dfftw.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
7483 |
< |
echo "$as_me: WARNING: dfftw.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
7484 |
< |
{ echo "$as_me:$LINENO: WARNING: dfftw.h: proceeding with the compiler's result" >&5 |
7485 |
< |
echo "$as_me: WARNING: dfftw.h: proceeding with the compiler's result" >&2;} |
7486 |
< |
ac_header_preproc=yes |
7487 |
< |
;; |
7488 |
< |
no:yes:* ) |
7489 |
< |
{ echo "$as_me:$LINENO: WARNING: dfftw.h: present but cannot be compiled" >&5 |
7490 |
< |
echo "$as_me: WARNING: dfftw.h: present but cannot be compiled" >&2;} |
7491 |
< |
{ echo "$as_me:$LINENO: WARNING: dfftw.h: check for missing prerequisite headers?" >&5 |
7492 |
< |
echo "$as_me: WARNING: dfftw.h: check for missing prerequisite headers?" >&2;} |
7493 |
< |
{ echo "$as_me:$LINENO: WARNING: dfftw.h: see the Autoconf documentation" >&5 |
7494 |
< |
echo "$as_me: WARNING: dfftw.h: see the Autoconf documentation" >&2;} |
7495 |
< |
{ echo "$as_me:$LINENO: WARNING: dfftw.h: section \"Present But Cannot Be Compiled\"" >&5 |
7496 |
< |
echo "$as_me: WARNING: dfftw.h: section \"Present But Cannot Be Compiled\"" >&2;} |
7497 |
< |
{ echo "$as_me:$LINENO: WARNING: dfftw.h: proceeding with the preprocessor's result" >&5 |
7498 |
< |
echo "$as_me: WARNING: dfftw.h: proceeding with the preprocessor's result" >&2;} |
7499 |
< |
{ echo "$as_me:$LINENO: WARNING: dfftw.h: in the future, the compiler will take precedence" >&5 |
7500 |
< |
echo "$as_me: WARNING: dfftw.h: in the future, the compiler will take precedence" >&2;} |
7501 |
< |
( cat <<\_ASBOX |
7502 |
< |
## ------------------------------ ## |
7503 |
< |
## Report this to gezelter@nd.edu ## |
7504 |
< |
## ------------------------------ ## |
7505 |
< |
_ASBOX |
7506 |
< |
) | sed "s/^/$as_me: WARNING: /" >&2 |
7507 |
< |
;; |
7508 |
< |
esac |
7509 |
< |
{ echo "$as_me:$LINENO: checking for dfftw.h" >&5 |
7510 |
< |
echo $ECHO_N "checking for dfftw.h... $ECHO_C" >&6; } |
7511 |
< |
if test "${ac_cv_header_dfftw_h+set}" = set; then |
7512 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7513 |
< |
else |
7514 |
< |
ac_cv_header_dfftw_h=$ac_header_preproc |
7515 |
< |
fi |
7516 |
< |
{ echo "$as_me:$LINENO: result: $ac_cv_header_dfftw_h" >&5 |
7517 |
< |
echo "${ECHO_T}$ac_cv_header_dfftw_h" >&6; } |
7518 |
< |
|
7519 |
< |
fi |
7520 |
< |
if test $ac_cv_header_dfftw_h = yes; then |
7521 |
< |
fftw_cv_dfftw_h=yes |
7522 |
< |
else |
7523 |
< |
fftw_cv_dfftw_h=no |
7524 |
< |
fi |
7525 |
< |
|
7526 |
< |
|
7527 |
< |
fi |
7528 |
< |
fi |
7529 |
< |
ac_ext=c |
7530 |
< |
ac_cpp='$CPP $CPPFLAGS' |
7531 |
< |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
7532 |
< |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
7533 |
< |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
7534 |
< |
|
7535 |
< |
if test "$fftw_cv_libfftw3" = "yes" -a "$fftw_cv_fftw3_h" = "yes"; then |
7536 |
< |
|
7537 |
< |
cat >>confdefs.h <<\_ACEOF |
7538 |
< |
#define HAVE_FFTW3_H 1 |
7539 |
< |
_ACEOF |
7540 |
< |
|
7541 |
< |
FFTW_INC_DIR="${FFTW_HOME}/include" |
7542 |
< |
FFTW_LIB_DIR="${FFTW_HOME}/lib" |
7543 |
< |
FFTW_LIBS="-lfftw3" |
7544 |
< |
else |
7545 |
< |
if test "$fftw_cv_libfftw" = "yes" -a "$fftw_cv_fftw_h" = "yes"; then |
7546 |
< |
|
7547 |
< |
cat >>confdefs.h <<\_ACEOF |
7548 |
< |
#define HAVE_FFTW_H 1 |
7549 |
< |
_ACEOF |
7550 |
< |
|
7551 |
< |
FFTW_INC_DIR="${FFTW_HOME}/include" |
7552 |
< |
FFTW_LIB_DIR="${FFTW_HOME}/lib" |
7553 |
< |
FFTW_LIBS="-lfftw" |
7554 |
< |
else |
7555 |
< |
if test "$fftw_cv_libdfftw" = "yes" -a "$fftw_cv_dfftw_h" = "yes"; then |
7556 |
< |
|
7557 |
< |
cat >>confdefs.h <<\_ACEOF |
7558 |
< |
#define HAVE_DFFTW_H 1 |
7559 |
< |
_ACEOF |
7560 |
< |
|
7561 |
< |
FFTW_INC_DIR="${FFTW_HOME}/include" |
7562 |
< |
FFTW_LIB_DIR="${FFTW_HOME}/lib" |
7563 |
< |
FFTW_LIBS="-ldfftw" |
7564 |
< |
else |
7565 |
< |
{ echo "$as_me:$LINENO: checking fftw in ${FFTW_HOME}" >&5 |
7566 |
< |
echo $ECHO_N "checking fftw in ${FFTW_HOME}... $ECHO_C" >&6; } |
7567 |
< |
FFTW_INC_DIR= |
7568 |
< |
FFTW_LIB_DIR= |
7569 |
< |
FFTW_LIBS= |
7570 |
< |
LDFLAGS="$FFTW_OLD_LDFLAGS" |
7571 |
< |
CPPFLAGS="$FFTW_OLD_CPPFLAGS" |
7572 |
< |
{ echo "$as_me:$LINENO: result: failed" >&5 |
7573 |
< |
echo "${ECHO_T}failed" >&6; } |
7574 |
< |
echo "" |
7575 |
< |
echo "*********************************************************" |
7576 |
< |
echo "* WARNING: Could not find a working FFTW installation *" |
7577 |
< |
echo "* If you need the staticProps program to be able to *" |
7578 |
< |
echo "* compute undulation spectra, be sure to specify a *" |
7579 |
< |
echo "* valid fftw installation with --with-fftw=DIR *" |
7580 |
< |
echo "* *" |
7581 |
< |
echo "* OOPSE will still work without fftw installed. *" |
7582 |
< |
echo "*********************************************************" |
7583 |
< |
echo "" |
7584 |
< |
fi |
7585 |
< |
fi |
7586 |
< |
fi |
7587 |
< |
|
7588 |
< |
|
7589 |
< |
|
7590 |
< |
fi |
7591 |
< |
fi |
7592 |
< |
fi |
7593 |
< |
|
7594 |
< |
|
7595 |
< |
|
7596 |
< |
# Checks for header files. |
7597 |
< |
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
7598 |
< |
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
7599 |
< |
if test "${ac_cv_header_stdc+set}" = set; then |
7600 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7601 |
< |
else |
7602 |
< |
cat >conftest.$ac_ext <<_ACEOF |
7603 |
< |
/* confdefs.h. */ |
7604 |
< |
_ACEOF |
7605 |
< |
cat confdefs.h >>conftest.$ac_ext |
7606 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
7607 |
< |
/* end confdefs.h. */ |
7608 |
< |
#include <stdlib.h> |
7609 |
< |
#include <stdarg.h> |
7610 |
< |
#include <string.h> |
7611 |
< |
#include <float.h> |
7612 |
< |
|
7613 |
< |
#ifdef FC_DUMMY_MAIN |
7614 |
< |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
7615 |
< |
# ifdef __cplusplus |
7616 |
< |
extern "C" |
7617 |
< |
# endif |
7618 |
< |
int FC_DUMMY_MAIN() { return 1; } |
7619 |
< |
#endif |
7620 |
< |
#endif |
7621 |
< |
int |
7622 |
< |
main () |
7623 |
< |
{ |
7624 |
< |
|
7625 |
< |
; |
7626 |
< |
return 0; |
7627 |
< |
} |
7628 |
< |
_ACEOF |
7629 |
< |
rm -rf conftest.$ac_objext |
7630 |
< |
if { (ac_try="$ac_compile" |
7631 |
< |
case "(($ac_try" in |
7632 |
< |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7633 |
< |
*) ac_try_echo=$ac_try;; |
7634 |
< |
esac |
7635 |
< |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7636 |
< |
(eval "$ac_compile") 2>conftest.er1 |
7637 |
< |
ac_status=$? |
7638 |
< |
grep -v '^ *+' conftest.er1 >conftest.err |
7639 |
< |
rm -f conftest.er1 |
7640 |
< |
cat conftest.err >&5 |
7641 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7642 |
< |
(exit $ac_status); } && { |
7643 |
< |
test -z "$ac_c_werror_flag" || |
7644 |
< |
test ! -s conftest.err |
7645 |
< |
} && test -s conftest.$ac_objext; then |
7646 |
< |
ac_cv_header_stdc=yes |
7647 |
< |
else |
7648 |
< |
echo "$as_me: failed program was:" >&5 |
7649 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
7650 |
< |
|
7651 |
< |
ac_cv_header_stdc=no |
7652 |
< |
fi |
7653 |
< |
|
7654 |
< |
rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext |
7655 |
< |
|
7656 |
< |
if test $ac_cv_header_stdc = yes; then |
7657 |
< |
# SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
7658 |
< |
cat >conftest.$ac_ext <<_ACEOF |
7659 |
< |
/* confdefs.h. */ |
7660 |
< |
_ACEOF |
7661 |
< |
cat confdefs.h >>conftest.$ac_ext |
7662 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
7663 |
< |
/* end confdefs.h. */ |
7664 |
< |
#include <string.h> |
7665 |
< |
|
7666 |
< |
_ACEOF |
7667 |
< |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
7668 |
< |
$EGREP "memchr" >/dev/null 2>&1; then |
7669 |
< |
: |
7670 |
< |
else |
7671 |
< |
ac_cv_header_stdc=no |
7672 |
< |
fi |
7673 |
< |
rm -rf conftest* |
7674 |
< |
|
7675 |
< |
fi |
7676 |
< |
|
7677 |
< |
if test $ac_cv_header_stdc = yes; then |
7678 |
< |
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
7679 |
< |
cat >conftest.$ac_ext <<_ACEOF |
7680 |
< |
/* confdefs.h. */ |
7681 |
< |
_ACEOF |
7682 |
< |
cat confdefs.h >>conftest.$ac_ext |
7683 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
7684 |
< |
/* end confdefs.h. */ |
7685 |
< |
#include <stdlib.h> |
7686 |
< |
|
7687 |
< |
_ACEOF |
7688 |
< |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
7689 |
< |
$EGREP "free" >/dev/null 2>&1; then |
7690 |
< |
: |
7691 |
< |
else |
7692 |
< |
ac_cv_header_stdc=no |
7693 |
< |
fi |
7694 |
< |
rm -rf conftest* |
7695 |
< |
|
7696 |
< |
fi |
7697 |
< |
|
7698 |
< |
if test $ac_cv_header_stdc = yes; then |
7699 |
< |
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
7700 |
< |
if test "$cross_compiling" = yes; then |
7701 |
< |
: |
7702 |
< |
else |
7703 |
< |
cat >conftest.$ac_ext <<_ACEOF |
7704 |
< |
/* confdefs.h. */ |
7705 |
< |
_ACEOF |
7706 |
< |
cat confdefs.h >>conftest.$ac_ext |
7707 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
7708 |
< |
/* end confdefs.h. */ |
7709 |
< |
#include <ctype.h> |
7710 |
< |
#include <stdlib.h> |
7711 |
< |
#if ((' ' & 0x0FF) == 0x020) |
7712 |
< |
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
7713 |
< |
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
7714 |
< |
#else |
7715 |
< |
# define ISLOWER(c) \ |
7716 |
< |
(('a' <= (c) && (c) <= 'i') \ |
7717 |
< |
|| ('j' <= (c) && (c) <= 'r') \ |
7718 |
< |
|| ('s' <= (c) && (c) <= 'z')) |
7719 |
< |
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
7720 |
< |
#endif |
7721 |
< |
|
7722 |
< |
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
7723 |
< |
int |
7724 |
< |
main () |
7725 |
< |
{ |
7726 |
< |
int i; |
7727 |
< |
for (i = 0; i < 256; i++) |
7728 |
< |
if (XOR (islower (i), ISLOWER (i)) |
7729 |
< |
|| toupper (i) != TOUPPER (i)) |
7730 |
< |
return 2; |
7731 |
< |
return 0; |
7732 |
< |
} |
7733 |
< |
_ACEOF |
7734 |
< |
rm -rf conftest$ac_exeext |
7735 |
< |
if { (ac_try="$ac_link" |
7736 |
< |
case "(($ac_try" in |
7737 |
< |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7738 |
< |
*) ac_try_echo=$ac_try;; |
7739 |
< |
esac |
7740 |
< |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7741 |
< |
(eval "$ac_link") 2>&5 |
7742 |
< |
ac_status=$? |
7743 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7744 |
< |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7745 |
< |
{ (case "(($ac_try" in |
7746 |
< |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7747 |
< |
*) ac_try_echo=$ac_try;; |
7748 |
< |
esac |
7749 |
< |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7750 |
< |
(eval "$ac_try") 2>&5 |
7751 |
< |
ac_status=$? |
7752 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7753 |
< |
(exit $ac_status); }; }; then |
7754 |
< |
: |
7755 |
< |
else |
7756 |
< |
echo "$as_me: program exited with status $ac_status" >&5 |
7757 |
< |
echo "$as_me: failed program was:" >&5 |
7758 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
7759 |
< |
|
7760 |
< |
( exit $ac_status ) |
7761 |
< |
ac_cv_header_stdc=no |
7762 |
< |
fi |
7763 |
< |
rm -rf core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
7764 |
< |
fi |
7765 |
< |
|
7766 |
< |
|
7767 |
< |
fi |
7768 |
< |
fi |
7769 |
< |
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
7770 |
< |
echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
7771 |
< |
if test $ac_cv_header_stdc = yes; then |
7772 |
< |
|
7773 |
< |
cat >>confdefs.h <<\_ACEOF |
7774 |
< |
#define STDC_HEADERS 1 |
7775 |
< |
_ACEOF |
7776 |
< |
|
7777 |
< |
fi |
7778 |
< |
|
7779 |
< |
|
7780 |
< |
|
7781 |
< |
|
7782 |
< |
|
7783 |
< |
|
7784 |
< |
|
7785 |
< |
|
7786 |
< |
|
7787 |
< |
|
7788 |
< |
|
7789 |
< |
|
7790 |
< |
|
7791 |
< |
|
7792 |
< |
|
7793 |
< |
|
7794 |
< |
|
7795 |
< |
|
7796 |
< |
|
7797 |
< |
|
7798 |
< |
|
7799 |
< |
|
7800 |
< |
|
7801 |
< |
|
7802 |
< |
|
7803 |
< |
|
7804 |
< |
for ac_header in conio.h dlfcn.h fstream.h iostream.h libintl.h limits.h machine/hal_sysinfo.h math.h stddef.h stdio.h stdlib.h string.h strings.h strstream.h sys/param.h sys/pstat.h sys/sysmp.h sys/sysctl.h sys/sysinfo.h sys/systemcfg.h sys/table.h sys/time.h time.h unistd.h zlib.h |
7805 |
< |
do |
7806 |
< |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7807 |
< |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
7808 |
< |
{ echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7809 |
< |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
7810 |
< |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
7811 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7812 |
< |
fi |
7813 |
< |
ac_res=`eval echo '${'$as_ac_Header'}'` |
7814 |
< |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
7815 |
< |
echo "${ECHO_T}$ac_res" >&6; } |
7816 |
< |
else |
7817 |
< |
# Is the header compilable? |
7818 |
< |
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7819 |
< |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
7820 |
< |
cat >conftest.$ac_ext <<_ACEOF |
7821 |
< |
/* confdefs.h. */ |
7822 |
< |
_ACEOF |
7823 |
< |
cat confdefs.h >>conftest.$ac_ext |
7824 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
7825 |
< |
/* end confdefs.h. */ |
7826 |
< |
$ac_includes_default |
7827 |
< |
#include <$ac_header> |
7828 |
< |
_ACEOF |
7829 |
< |
rm -rf conftest.$ac_objext |
7830 |
< |
if { (ac_try="$ac_compile" |
7831 |
< |
case "(($ac_try" in |
7832 |
< |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7833 |
< |
*) ac_try_echo=$ac_try;; |
7834 |
< |
esac |
7835 |
< |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7836 |
< |
(eval "$ac_compile") 2>conftest.er1 |
7837 |
< |
ac_status=$? |
7838 |
< |
grep -v '^ *+' conftest.er1 >conftest.err |
7839 |
< |
rm -f conftest.er1 |
7840 |
< |
cat conftest.err >&5 |
7841 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7842 |
< |
(exit $ac_status); } && { |
7843 |
< |
test -z "$ac_c_werror_flag" || |
7844 |
< |
test ! -s conftest.err |
7845 |
< |
} && test -s conftest.$ac_objext; then |
7846 |
< |
ac_header_compiler=yes |
7847 |
< |
else |
7848 |
< |
echo "$as_me: failed program was:" >&5 |
7849 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
7850 |
< |
|
7851 |
< |
ac_header_compiler=no |
7852 |
< |
fi |
7853 |
< |
|
7854 |
< |
rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext |
7855 |
< |
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7856 |
< |
echo "${ECHO_T}$ac_header_compiler" >&6; } |
7857 |
< |
|
7858 |
< |
# Is the header present? |
7859 |
< |
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7860 |
< |
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
7861 |
< |
cat >conftest.$ac_ext <<_ACEOF |
7862 |
< |
/* confdefs.h. */ |
7863 |
< |
_ACEOF |
7864 |
< |
cat confdefs.h >>conftest.$ac_ext |
7865 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
7866 |
< |
/* end confdefs.h. */ |
7867 |
< |
#include <$ac_header> |
7868 |
< |
_ACEOF |
7869 |
< |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
7870 |
< |
case "(($ac_try" in |
7871 |
< |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7872 |
< |
*) ac_try_echo=$ac_try;; |
7873 |
< |
esac |
7874 |
< |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7875 |
< |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
7876 |
< |
ac_status=$? |
7877 |
< |
grep -v '^ *+' conftest.er1 >conftest.err |
7878 |
< |
rm -f conftest.er1 |
7879 |
< |
cat conftest.err >&5 |
7880 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7881 |
< |
(exit $ac_status); } >/dev/null && { |
7882 |
< |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
7883 |
< |
test ! -s conftest.err |
7884 |
< |
}; then |
7885 |
< |
ac_header_preproc=yes |
7886 |
< |
else |
7887 |
< |
echo "$as_me: failed program was:" >&5 |
7888 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
7889 |
< |
|
7890 |
< |
ac_header_preproc=no |
7891 |
< |
fi |
7892 |
< |
|
7893 |
< |
rm -rf conftest.err conftest.$ac_ext |
7894 |
< |
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7895 |
< |
echo "${ECHO_T}$ac_header_preproc" >&6; } |
7896 |
< |
|
7897 |
< |
# So? What about this header? |
7898 |
< |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
7899 |
< |
yes:no: ) |
7900 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
7901 |
< |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
7902 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
7903 |
< |
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
7904 |
< |
ac_header_preproc=yes |
7905 |
< |
;; |
7906 |
< |
no:yes:* ) |
7907 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
7908 |
< |
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
7909 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
7910 |
< |
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
7911 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
7912 |
< |
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
7913 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
7914 |
< |
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
7915 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
7916 |
< |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
7917 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
7918 |
< |
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
7919 |
< |
( cat <<\_ASBOX |
7920 |
< |
## ------------------------------ ## |
7921 |
< |
## Report this to gezelter@nd.edu ## |
7922 |
< |
## ------------------------------ ## |
7923 |
< |
_ASBOX |
7924 |
< |
) | sed "s/^/$as_me: WARNING: /" >&2 |
7925 |
< |
;; |
7926 |
< |
esac |
7927 |
< |
{ echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7928 |
< |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
7929 |
< |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
7930 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7931 |
< |
else |
7932 |
< |
eval "$as_ac_Header=\$ac_header_preproc" |
7933 |
< |
fi |
7934 |
< |
ac_res=`eval echo '${'$as_ac_Header'}'` |
7935 |
< |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
7936 |
< |
echo "${ECHO_T}$ac_res" >&6; } |
7937 |
< |
|
7938 |
< |
fi |
7939 |
< |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
7940 |
< |
cat >>confdefs.h <<_ACEOF |
7941 |
< |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
7942 |
< |
_ACEOF |
7943 |
< |
|
7944 |
< |
fi |
7945 |
< |
|
7946 |
< |
done |
7947 |
< |
|
7948 |
< |
|
7949 |
< |
# Checks for typedefs, structures, and compiler characteristics. |
7950 |
< |
{ echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5 |
7951 |
< |
echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; } |
7952 |
< |
if test "${ac_cv_header_stdbool_h+set}" = set; then |
7953 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7954 |
< |
else |
7955 |
< |
cat >conftest.$ac_ext <<_ACEOF |
7956 |
< |
/* confdefs.h. */ |
7957 |
< |
_ACEOF |
7958 |
< |
cat confdefs.h >>conftest.$ac_ext |
7959 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
7960 |
< |
/* end confdefs.h. */ |
7961 |
< |
|
7962 |
< |
#include <stdbool.h> |
7963 |
< |
#ifndef bool |
7964 |
< |
"error: bool is not defined" |
7965 |
< |
#endif |
7966 |
< |
#ifndef false |
7967 |
< |
"error: false is not defined" |
7968 |
< |
#endif |
7969 |
< |
#if false |
7970 |
< |
"error: false is not 0" |
7971 |
< |
#endif |
7972 |
< |
#ifndef true |
7973 |
< |
"error: true is not defined" |
7974 |
< |
#endif |
7975 |
< |
#if true != 1 |
7976 |
< |
"error: true is not 1" |
7977 |
< |
#endif |
7978 |
< |
#ifndef __bool_true_false_are_defined |
7979 |
< |
"error: __bool_true_false_are_defined is not defined" |
7980 |
< |
#endif |
7981 |
< |
|
7982 |
< |
struct s { _Bool s: 1; _Bool t; } s; |
7983 |
< |
|
7984 |
< |
char a[true == 1 ? 1 : -1]; |
7985 |
< |
char b[false == 0 ? 1 : -1]; |
7986 |
< |
char c[__bool_true_false_are_defined == 1 ? 1 : -1]; |
7987 |
< |
char d[(bool) 0.5 == true ? 1 : -1]; |
7988 |
< |
bool e = &s; |
7989 |
< |
char f[(_Bool) 0.0 == false ? 1 : -1]; |
7990 |
< |
char g[true]; |
7991 |
< |
char h[sizeof (_Bool)]; |
7992 |
< |
char i[sizeof s.t]; |
7993 |
< |
enum { j = false, k = true, l = false * true, m = true * 256 }; |
7994 |
< |
_Bool n[m]; |
7995 |
< |
char o[sizeof n == m * sizeof n[0] ? 1 : -1]; |
7996 |
< |
char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; |
7997 |
< |
# if defined __xlc__ || defined __GNUC__ |
7998 |
< |
/* Catch a bug in IBM AIX xlc compiler version 6.0.0.0 |
7999 |
< |
reported by James Lemley on 2005-10-05; see |
8000 |
< |
http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html |
8001 |
< |
This test is not quite right, since xlc is allowed to |
8002 |
< |
reject this program, as the initializer for xlcbug is |
8003 |
< |
not one of the forms that C requires support for. |
8004 |
< |
However, doing the test right would require a runtime |
8005 |
< |
test, and that would make cross-compilation harder. |
8006 |
< |
Let us hope that IBM fixes the xlc bug, and also adds |
8007 |
< |
support for this kind of constant expression. In the |
8008 |
< |
meantime, this test will reject xlc, which is OK, since |
8009 |
< |
our stdbool.h substitute should suffice. We also test |
8010 |
< |
this with GCC, where it should work, to detect more |
8011 |
< |
quickly whether someone messes up the test in the |
8012 |
< |
future. */ |
8013 |
< |
char digs[] = "0123456789"; |
8014 |
< |
int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1); |
8015 |
< |
# endif |
8016 |
< |
/* Catch a bug in an HP-UX C compiler. See |
8017 |
< |
http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html |
8018 |
< |
http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html |
8019 |
< |
*/ |
8020 |
< |
_Bool q = true; |
8021 |
< |
_Bool *pq = &q; |
8022 |
< |
|
8023 |
< |
#ifdef FC_DUMMY_MAIN |
8024 |
< |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
8025 |
< |
# ifdef __cplusplus |
8026 |
< |
extern "C" |
8027 |
< |
# endif |
8028 |
< |
int FC_DUMMY_MAIN() { return 1; } |
8029 |
< |
#endif |
8030 |
< |
#endif |
8031 |
< |
int |
8032 |
< |
main () |
8033 |
< |
{ |
8034 |
< |
|
8035 |
< |
*pq |= q; |
8036 |
< |
*pq |= ! q; |
8037 |
< |
/* Refer to every declared value, to avoid compiler optimizations. */ |
8038 |
< |
return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l |
8039 |
< |
+ !m + !n + !o + !p + !q + !pq); |
8040 |
< |
|
8041 |
< |
; |
8042 |
< |
return 0; |
8043 |
< |
} |
8044 |
< |
_ACEOF |
8045 |
< |
rm -rf conftest.$ac_objext |
8046 |
< |
if { (ac_try="$ac_compile" |
8047 |
< |
case "(($ac_try" in |
8048 |
< |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8049 |
< |
*) ac_try_echo=$ac_try;; |
8050 |
< |
esac |
8051 |
< |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8052 |
< |
(eval "$ac_compile") 2>conftest.er1 |
8053 |
< |
ac_status=$? |
8054 |
< |
grep -v '^ *+' conftest.er1 >conftest.err |
8055 |
< |
rm -f conftest.er1 |
8056 |
< |
cat conftest.err >&5 |
8057 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8058 |
< |
(exit $ac_status); } && { |
8059 |
< |
test -z "$ac_c_werror_flag" || |
8060 |
< |
test ! -s conftest.err |
8061 |
< |
} && test -s conftest.$ac_objext; then |
8062 |
< |
ac_cv_header_stdbool_h=yes |
8063 |
< |
else |
8064 |
< |
echo "$as_me: failed program was:" >&5 |
8065 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
8066 |
< |
|
8067 |
< |
ac_cv_header_stdbool_h=no |
8068 |
< |
fi |
8069 |
< |
|
8070 |
< |
rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext |
8071 |
< |
fi |
8072 |
< |
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5 |
8073 |
< |
echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; } |
8074 |
< |
{ echo "$as_me:$LINENO: checking for _Bool" >&5 |
8075 |
< |
echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; } |
8076 |
< |
if test "${ac_cv_type__Bool+set}" = set; then |
8077 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8078 |
< |
else |
8079 |
< |
cat >conftest.$ac_ext <<_ACEOF |
8080 |
< |
/* confdefs.h. */ |
8081 |
< |
_ACEOF |
8082 |
< |
cat confdefs.h >>conftest.$ac_ext |
8083 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
8084 |
< |
/* end confdefs.h. */ |
8085 |
< |
$ac_includes_default |
8086 |
< |
typedef _Bool ac__type_new_; |
8087 |
< |
#ifdef FC_DUMMY_MAIN |
8088 |
< |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
8089 |
< |
# ifdef __cplusplus |
8090 |
< |
extern "C" |
8091 |
< |
# endif |
8092 |
< |
int FC_DUMMY_MAIN() { return 1; } |
8093 |
< |
#endif |
8094 |
< |
#endif |
8095 |
< |
int |
8096 |
< |
main () |
8097 |
< |
{ |
8098 |
< |
if ((ac__type_new_ *) 0) |
8099 |
< |
return 0; |
8100 |
< |
if (sizeof (ac__type_new_)) |
8101 |
< |
return 0; |
8102 |
< |
; |
8103 |
< |
return 0; |
8104 |
< |
} |
8105 |
< |
_ACEOF |
8106 |
< |
rm -rf conftest.$ac_objext |
8107 |
< |
if { (ac_try="$ac_compile" |
8108 |
< |
case "(($ac_try" in |
8109 |
< |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8110 |
< |
*) ac_try_echo=$ac_try;; |
8111 |
< |
esac |
8112 |
< |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8113 |
< |
(eval "$ac_compile") 2>conftest.er1 |
8114 |
< |
ac_status=$? |
8115 |
< |
grep -v '^ *+' conftest.er1 >conftest.err |
8116 |
< |
rm -f conftest.er1 |
8117 |
< |
cat conftest.err >&5 |
8118 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8119 |
< |
(exit $ac_status); } && { |
8120 |
< |
test -z "$ac_c_werror_flag" || |
8121 |
< |
test ! -s conftest.err |
8122 |
< |
} && test -s conftest.$ac_objext; then |
8123 |
< |
ac_cv_type__Bool=yes |
8124 |
< |
else |
8125 |
< |
echo "$as_me: failed program was:" >&5 |
8126 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
8127 |
< |
|
8128 |
< |
ac_cv_type__Bool=no |
8129 |
< |
fi |
8130 |
< |
|
8131 |
< |
rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext |
8132 |
< |
fi |
8133 |
< |
{ echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 |
8134 |
< |
echo "${ECHO_T}$ac_cv_type__Bool" >&6; } |
8135 |
< |
if test $ac_cv_type__Bool = yes; then |
8136 |
< |
|
8137 |
< |
cat >>confdefs.h <<_ACEOF |
8138 |
< |
#define HAVE__BOOL 1 |
8139 |
< |
_ACEOF |
8140 |
< |
|
8141 |
< |
|
8142 |
< |
fi |
8143 |
< |
|
8144 |
< |
if test $ac_cv_header_stdbool_h = yes; then |
8145 |
< |
|
8146 |
< |
cat >>confdefs.h <<\_ACEOF |
8147 |
< |
#define HAVE_STDBOOL_H 1 |
8148 |
< |
_ACEOF |
8149 |
< |
|
8150 |
< |
fi |
8151 |
< |
|
8152 |
< |
{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
8153 |
< |
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } |
8154 |
< |
if test "${ac_cv_c_const+set}" = set; then |
8155 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8156 |
< |
else |
8157 |
< |
cat >conftest.$ac_ext <<_ACEOF |
8158 |
< |
/* confdefs.h. */ |
8159 |
< |
_ACEOF |
8160 |
< |
cat confdefs.h >>conftest.$ac_ext |
8161 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
8162 |
< |
/* end confdefs.h. */ |
8163 |
< |
|
8164 |
< |
#ifdef FC_DUMMY_MAIN |
8165 |
< |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
8166 |
< |
# ifdef __cplusplus |
8167 |
< |
extern "C" |
8168 |
< |
# endif |
8169 |
< |
int FC_DUMMY_MAIN() { return 1; } |
8170 |
< |
#endif |
8171 |
< |
#endif |
8172 |
< |
int |
8173 |
< |
main () |
8174 |
< |
{ |
8175 |
< |
/* FIXME: Include the comments suggested by Paul. */ |
8176 |
< |
#ifndef __cplusplus |
8177 |
< |
/* Ultrix mips cc rejects this. */ |
8178 |
< |
typedef int charset[2]; |
8179 |
< |
const charset cs; |
8180 |
< |
/* SunOS 4.1.1 cc rejects this. */ |
8181 |
< |
char const *const *pcpcc; |
8182 |
< |
char **ppc; |
8183 |
< |
/* NEC SVR4.0.2 mips cc rejects this. */ |
8184 |
< |
struct point {int x, y;}; |
8185 |
< |
static struct point const zero = {0,0}; |
8186 |
< |
/* AIX XL C 1.02.0.0 rejects this. |
8187 |
< |
It does not let you subtract one const X* pointer from another in |
8188 |
< |
an arm of an if-expression whose if-part is not a constant |
8189 |
< |
expression */ |
8190 |
< |
const char *g = "string"; |
8191 |
< |
pcpcc = &g + (g ? g-g : 0); |
8192 |
< |
/* HPUX 7.0 cc rejects these. */ |
8193 |
< |
++pcpcc; |
8194 |
< |
ppc = (char**) pcpcc; |
8195 |
< |
pcpcc = (char const *const *) ppc; |
8196 |
< |
{ /* SCO 3.2v4 cc rejects this. */ |
8197 |
< |
char *t; |
8198 |
< |
char const *s = 0 ? (char *) 0 : (char const *) 0; |
8199 |
< |
|
8200 |
< |
*t++ = 0; |
8201 |
< |
if (s) return 0; |
8202 |
< |
} |
8203 |
< |
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
8204 |
< |
int x[] = {25, 17}; |
8205 |
< |
const int *foo = &x[0]; |
8206 |
< |
++foo; |
8207 |
< |
} |
8208 |
< |
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
8209 |
< |
typedef const int *iptr; |
8210 |
< |
iptr p = 0; |
8211 |
< |
++p; |
8212 |
< |
} |
8213 |
< |
{ /* AIX XL C 1.02.0.0 rejects this saying |
8214 |
< |
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
8215 |
< |
struct s { int j; const int *ap[3]; }; |
8216 |
< |
struct s *b; b->j = 5; |
8217 |
< |
} |
8218 |
< |
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
8219 |
< |
const int foo = 10; |
8220 |
< |
if (!foo) return 0; |
8221 |
< |
} |
8222 |
< |
return !cs[0] && !zero.x; |
8223 |
< |
#endif |
8224 |
< |
|
8225 |
< |
; |
8226 |
< |
return 0; |
8227 |
< |
} |
8228 |
< |
_ACEOF |
8229 |
< |
rm -rf conftest.$ac_objext |
8230 |
< |
if { (ac_try="$ac_compile" |
8231 |
< |
case "(($ac_try" in |
8232 |
< |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8233 |
< |
*) ac_try_echo=$ac_try;; |
8234 |
< |
esac |
8235 |
< |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8236 |
< |
(eval "$ac_compile") 2>conftest.er1 |
8237 |
< |
ac_status=$? |
8238 |
< |
grep -v '^ *+' conftest.er1 >conftest.err |
8239 |
< |
rm -f conftest.er1 |
8240 |
< |
cat conftest.err >&5 |
8241 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8242 |
< |
(exit $ac_status); } && { |
8243 |
< |
test -z "$ac_c_werror_flag" || |
8244 |
< |
test ! -s conftest.err |
8245 |
< |
} && test -s conftest.$ac_objext; then |
8246 |
< |
ac_cv_c_const=yes |
8247 |
< |
else |
8248 |
< |
echo "$as_me: failed program was:" >&5 |
8249 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
8250 |
< |
|
8251 |
< |
ac_cv_c_const=no |
8252 |
< |
fi |
8253 |
< |
|
8254 |
< |
rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext |
8255 |
< |
fi |
8256 |
< |
{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
8257 |
< |
echo "${ECHO_T}$ac_cv_c_const" >&6; } |
8258 |
< |
if test $ac_cv_c_const = no; then |
8259 |
< |
|
8260 |
< |
cat >>confdefs.h <<\_ACEOF |
8261 |
< |
#define const |
8262 |
< |
_ACEOF |
8263 |
< |
|
8264 |
< |
fi |
8265 |
< |
|
8266 |
< |
{ echo "$as_me:$LINENO: checking for inline" >&5 |
8267 |
< |
echo $ECHO_N "checking for inline... $ECHO_C" >&6; } |
8268 |
< |
if test "${ac_cv_c_inline+set}" = set; then |
8269 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8270 |
< |
else |
8271 |
< |
ac_cv_c_inline=no |
8272 |
< |
for ac_kw in inline __inline__ __inline; do |
8273 |
< |
cat >conftest.$ac_ext <<_ACEOF |
8274 |
< |
/* confdefs.h. */ |
8275 |
< |
_ACEOF |
8276 |
< |
cat confdefs.h >>conftest.$ac_ext |
8277 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
8278 |
< |
/* end confdefs.h. */ |
8279 |
< |
#ifndef __cplusplus |
8280 |
< |
typedef int foo_t; |
8281 |
< |
static $ac_kw foo_t static_foo () {return 0; } |
8282 |
< |
$ac_kw foo_t foo () {return 0; } |
8283 |
< |
#endif |
8284 |
< |
|
8285 |
< |
_ACEOF |
8286 |
< |
rm -rf conftest.$ac_objext |
8287 |
< |
if { (ac_try="$ac_compile" |
8288 |
< |
case "(($ac_try" in |
8289 |
< |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8290 |
< |
*) ac_try_echo=$ac_try;; |
8291 |
< |
esac |
8292 |
< |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8293 |
< |
(eval "$ac_compile") 2>conftest.er1 |
8294 |
< |
ac_status=$? |
8295 |
< |
grep -v '^ *+' conftest.er1 >conftest.err |
8296 |
< |
rm -f conftest.er1 |
8297 |
< |
cat conftest.err >&5 |
8298 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8299 |
< |
(exit $ac_status); } && { |
8300 |
< |
test -z "$ac_c_werror_flag" || |
8301 |
< |
test ! -s conftest.err |
8302 |
< |
} && test -s conftest.$ac_objext; then |
8303 |
< |
ac_cv_c_inline=$ac_kw |
8304 |
< |
else |
8305 |
< |
echo "$as_me: failed program was:" >&5 |
8306 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
8307 |
< |
|
8308 |
< |
|
8309 |
< |
fi |
8310 |
< |
|
8311 |
< |
rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext |
8312 |
< |
test "$ac_cv_c_inline" != no && break |
8313 |
< |
done |
8314 |
< |
|
8315 |
< |
fi |
8316 |
< |
{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
8317 |
< |
echo "${ECHO_T}$ac_cv_c_inline" >&6; } |
8318 |
< |
|
8319 |
< |
|
8320 |
< |
case $ac_cv_c_inline in |
8321 |
< |
inline | yes) ;; |
8322 |
< |
*) |
8323 |
< |
case $ac_cv_c_inline in |
8324 |
< |
no) ac_val=;; |
8325 |
< |
*) ac_val=$ac_cv_c_inline;; |
8326 |
< |
esac |
8327 |
< |
cat >>confdefs.h <<_ACEOF |
8328 |
< |
#ifndef __cplusplus |
8329 |
< |
#define inline $ac_val |
8330 |
< |
#endif |
8331 |
< |
_ACEOF |
8332 |
< |
;; |
8333 |
< |
esac |
8334 |
< |
|
8335 |
< |
{ echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5 |
8336 |
< |
echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6; } |
8337 |
< |
if test "${ac_cv_c_restrict+set}" = set; then |
8338 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8339 |
< |
else |
8340 |
< |
ac_cv_c_restrict=no |
8341 |
< |
# Try the official restrict keyword, then gcc's __restrict, and |
8342 |
< |
# the less common variants. |
8343 |
< |
for ac_kw in restrict __restrict __restrict__ _Restrict; do |
8344 |
< |
cat >conftest.$ac_ext <<_ACEOF |
8345 |
< |
/* confdefs.h. */ |
8346 |
< |
_ACEOF |
8347 |
< |
cat confdefs.h >>conftest.$ac_ext |
8348 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
8349 |
< |
/* end confdefs.h. */ |
8350 |
< |
typedef int * int_ptr; |
8351 |
< |
int foo (int_ptr $ac_kw ip) { |
8352 |
< |
return ip[0]; |
8353 |
< |
} |
8354 |
< |
#ifdef FC_DUMMY_MAIN |
8355 |
< |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
8356 |
< |
# ifdef __cplusplus |
8357 |
< |
extern "C" |
8358 |
< |
# endif |
8359 |
< |
int FC_DUMMY_MAIN() { return 1; } |
8360 |
< |
#endif |
8361 |
< |
#endif |
8362 |
< |
int |
8363 |
< |
main () |
8364 |
< |
{ |
8365 |
< |
int s[1]; |
8366 |
< |
int * $ac_kw t = s; |
8367 |
< |
t[0] = 0; |
8368 |
< |
return foo(t) |
8369 |
< |
; |
8370 |
< |
return 0; |
8371 |
< |
} |
8372 |
< |
_ACEOF |
8373 |
< |
rm -rf conftest.$ac_objext |
8374 |
< |
if { (ac_try="$ac_compile" |
8375 |
< |
case "(($ac_try" in |
8376 |
< |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8377 |
< |
*) ac_try_echo=$ac_try;; |
8378 |
< |
esac |
8379 |
< |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8380 |
< |
(eval "$ac_compile") 2>conftest.er1 |
8381 |
< |
ac_status=$? |
8382 |
< |
grep -v '^ *+' conftest.er1 >conftest.err |
8383 |
< |
rm -f conftest.er1 |
8384 |
< |
cat conftest.err >&5 |
8385 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8386 |
< |
(exit $ac_status); } && { |
8387 |
< |
test -z "$ac_c_werror_flag" || |
8388 |
< |
test ! -s conftest.err |
8389 |
< |
} && test -s conftest.$ac_objext; then |
8390 |
< |
ac_cv_c_restrict=$ac_kw |
8391 |
< |
else |
8392 |
< |
echo "$as_me: failed program was:" >&5 |
8393 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
8394 |
< |
|
8395 |
< |
|
8396 |
< |
fi |
8397 |
< |
|
8398 |
< |
rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext |
8399 |
< |
test "$ac_cv_c_restrict" != no && break |
8400 |
< |
done |
8401 |
< |
|
8402 |
< |
fi |
8403 |
< |
{ echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5 |
8404 |
< |
echo "${ECHO_T}$ac_cv_c_restrict" >&6; } |
8405 |
< |
case $ac_cv_c_restrict in |
8406 |
< |
restrict) ;; |
8407 |
< |
no) |
8408 |
< |
cat >>confdefs.h <<\_ACEOF |
8409 |
< |
#define restrict |
8410 |
< |
_ACEOF |
8411 |
< |
;; |
8412 |
< |
*) cat >>confdefs.h <<_ACEOF |
8413 |
< |
#define restrict $ac_cv_c_restrict |
8414 |
< |
_ACEOF |
8415 |
< |
;; |
8416 |
< |
esac |
8417 |
< |
|
8418 |
< |
{ echo "$as_me:$LINENO: checking for size_t" >&5 |
8419 |
< |
echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
8420 |
< |
if test "${ac_cv_type_size_t+set}" = set; then |
8421 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8422 |
< |
else |
8423 |
< |
cat >conftest.$ac_ext <<_ACEOF |
8424 |
< |
/* confdefs.h. */ |
8425 |
< |
_ACEOF |
8426 |
< |
cat confdefs.h >>conftest.$ac_ext |
8427 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
8428 |
< |
/* end confdefs.h. */ |
8429 |
< |
$ac_includes_default |
8430 |
< |
typedef size_t ac__type_new_; |
8431 |
< |
#ifdef FC_DUMMY_MAIN |
8432 |
< |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
8433 |
< |
# ifdef __cplusplus |
8434 |
< |
extern "C" |
8435 |
< |
# endif |
8436 |
< |
int FC_DUMMY_MAIN() { return 1; } |
8437 |
< |
#endif |
8438 |
< |
#endif |
8439 |
< |
int |
8440 |
< |
main () |
8441 |
< |
{ |
8442 |
< |
if ((ac__type_new_ *) 0) |
8443 |
< |
return 0; |
8444 |
< |
if (sizeof (ac__type_new_)) |
8445 |
< |
return 0; |
8446 |
< |
; |
8447 |
< |
return 0; |
8448 |
< |
} |
8449 |
< |
_ACEOF |
8450 |
< |
rm -rf conftest.$ac_objext |
8451 |
< |
if { (ac_try="$ac_compile" |
8452 |
< |
case "(($ac_try" in |
8453 |
< |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8454 |
< |
*) ac_try_echo=$ac_try;; |
8455 |
< |
esac |
8456 |
< |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8457 |
< |
(eval "$ac_compile") 2>conftest.er1 |
8458 |
< |
ac_status=$? |
8459 |
< |
grep -v '^ *+' conftest.er1 >conftest.err |
8460 |
< |
rm -f conftest.er1 |
8461 |
< |
cat conftest.err >&5 |
8462 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8463 |
< |
(exit $ac_status); } && { |
8464 |
< |
test -z "$ac_c_werror_flag" || |
8465 |
< |
test ! -s conftest.err |
8466 |
< |
} && test -s conftest.$ac_objext; then |
8467 |
< |
ac_cv_type_size_t=yes |
8468 |
< |
else |
8469 |
< |
echo "$as_me: failed program was:" >&5 |
8470 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
8471 |
< |
|
8472 |
< |
ac_cv_type_size_t=no |
8473 |
< |
fi |
8474 |
< |
|
8475 |
< |
rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext |
8476 |
< |
fi |
8477 |
< |
{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
8478 |
< |
echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
8479 |
< |
if test $ac_cv_type_size_t = yes; then |
8480 |
< |
: |
8481 |
< |
else |
8482 |
< |
|
8483 |
< |
cat >>confdefs.h <<_ACEOF |
8484 |
< |
#define size_t unsigned int |
8485 |
< |
_ACEOF |
8486 |
< |
|
8487 |
< |
fi |
8488 |
< |
|
8489 |
< |
{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
8490 |
< |
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } |
8491 |
< |
if test "${ac_cv_header_time+set}" = set; then |
8492 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8493 |
< |
else |
8494 |
< |
cat >conftest.$ac_ext <<_ACEOF |
8495 |
< |
/* confdefs.h. */ |
8496 |
< |
_ACEOF |
8497 |
< |
cat confdefs.h >>conftest.$ac_ext |
8498 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
8499 |
< |
/* end confdefs.h. */ |
8500 |
< |
#include <sys/types.h> |
8501 |
< |
#include <sys/time.h> |
8502 |
< |
#include <time.h> |
8503 |
< |
|
8504 |
< |
#ifdef FC_DUMMY_MAIN |
8505 |
< |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
8506 |
< |
# ifdef __cplusplus |
8507 |
< |
extern "C" |
8508 |
< |
# endif |
8509 |
< |
int FC_DUMMY_MAIN() { return 1; } |
8510 |
< |
#endif |
8511 |
< |
#endif |
8512 |
< |
int |
8513 |
< |
main () |
8514 |
< |
{ |
8515 |
< |
if ((struct tm *) 0) |
8516 |
< |
return 0; |
8517 |
< |
; |
8518 |
< |
return 0; |
8519 |
< |
} |
8520 |
< |
_ACEOF |
8521 |
< |
rm -rf conftest.$ac_objext |
8522 |
< |
if { (ac_try="$ac_compile" |
8523 |
< |
case "(($ac_try" in |
8524 |
< |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8525 |
< |
*) ac_try_echo=$ac_try;; |
8526 |
< |
esac |
8527 |
< |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8528 |
< |
(eval "$ac_compile") 2>conftest.er1 |
8529 |
< |
ac_status=$? |
8530 |
< |
grep -v '^ *+' conftest.er1 >conftest.err |
8531 |
< |
rm -f conftest.er1 |
8532 |
< |
cat conftest.err >&5 |
8533 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8534 |
< |
(exit $ac_status); } && { |
8535 |
< |
test -z "$ac_c_werror_flag" || |
8536 |
< |
test ! -s conftest.err |
8537 |
< |
} && test -s conftest.$ac_objext; then |
8538 |
< |
ac_cv_header_time=yes |
8539 |
< |
else |
8540 |
< |
echo "$as_me: failed program was:" >&5 |
8541 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
8542 |
< |
|
8543 |
< |
ac_cv_header_time=no |
8544 |
< |
fi |
8545 |
< |
|
8546 |
< |
rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext |
8547 |
< |
fi |
8548 |
< |
{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
8549 |
< |
echo "${ECHO_T}$ac_cv_header_time" >&6; } |
8550 |
< |
if test $ac_cv_header_time = yes; then |
8551 |
< |
|
8552 |
< |
cat >>confdefs.h <<\_ACEOF |
8553 |
< |
#define TIME_WITH_SYS_TIME 1 |
8554 |
< |
_ACEOF |
8555 |
< |
|
8556 |
< |
fi |
8557 |
< |
|
8558 |
< |
{ echo "$as_me:$LINENO: checking for clock_t" >&5 |
8559 |
< |
echo $ECHO_N "checking for clock_t... $ECHO_C" >&6; } |
8560 |
< |
if test "${ac_cv_type_clock_t+set}" = set; then |
8561 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8562 |
< |
else |
8563 |
< |
cat >conftest.$ac_ext <<_ACEOF |
8564 |
< |
/* confdefs.h. */ |
8565 |
< |
_ACEOF |
8566 |
< |
cat confdefs.h >>conftest.$ac_ext |
8567 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
8568 |
< |
/* end confdefs.h. */ |
8569 |
< |
$ac_includes_default |
8570 |
< |
typedef clock_t ac__type_new_; |
8571 |
< |
#ifdef FC_DUMMY_MAIN |
8572 |
< |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
8573 |
< |
# ifdef __cplusplus |
8574 |
< |
extern "C" |
8575 |
< |
# endif |
8576 |
< |
int FC_DUMMY_MAIN() { return 1; } |
8577 |
< |
#endif |
8578 |
< |
#endif |
8579 |
< |
int |
8580 |
< |
main () |
8581 |
< |
{ |
8582 |
< |
if ((ac__type_new_ *) 0) |
8583 |
< |
return 0; |
8584 |
< |
if (sizeof (ac__type_new_)) |
8585 |
< |
return 0; |
8586 |
< |
; |
8587 |
< |
return 0; |
8588 |
< |
} |
8589 |
< |
_ACEOF |
8590 |
< |
rm -rf conftest.$ac_objext |
8591 |
< |
if { (ac_try="$ac_compile" |
8592 |
< |
case "(($ac_try" in |
8593 |
< |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8594 |
< |
*) ac_try_echo=$ac_try;; |
8595 |
< |
esac |
8596 |
< |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8597 |
< |
(eval "$ac_compile") 2>conftest.er1 |
8598 |
< |
ac_status=$? |
8599 |
< |
grep -v '^ *+' conftest.er1 >conftest.err |
8600 |
< |
rm -f conftest.er1 |
8601 |
< |
cat conftest.err >&5 |
8602 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8603 |
< |
(exit $ac_status); } && { |
8604 |
< |
test -z "$ac_c_werror_flag" || |
8605 |
< |
test ! -s conftest.err |
8606 |
< |
} && test -s conftest.$ac_objext; then |
8607 |
< |
ac_cv_type_clock_t=yes |
8608 |
< |
else |
8609 |
< |
echo "$as_me: failed program was:" >&5 |
8610 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
8611 |
< |
|
8612 |
< |
ac_cv_type_clock_t=no |
8613 |
< |
fi |
8614 |
< |
|
8615 |
< |
rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext |
8616 |
< |
fi |
8617 |
< |
{ echo "$as_me:$LINENO: result: $ac_cv_type_clock_t" >&5 |
8618 |
< |
echo "${ECHO_T}$ac_cv_type_clock_t" >&6; } |
8619 |
< |
if test $ac_cv_type_clock_t = yes; then |
8620 |
< |
|
8621 |
< |
cat >>confdefs.h <<_ACEOF |
8622 |
< |
#define HAVE_CLOCK_T 1 |
8623 |
< |
_ACEOF |
8624 |
< |
|
8625 |
< |
|
8626 |
< |
fi |
8627 |
< |
|
8628 |
< |
{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
8629 |
< |
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } |
8630 |
< |
if test "${ac_cv_c_const+set}" = set; then |
8631 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8632 |
< |
else |
8633 |
< |
cat >conftest.$ac_ext <<_ACEOF |
8634 |
< |
/* confdefs.h. */ |
8635 |
< |
_ACEOF |
8636 |
< |
cat confdefs.h >>conftest.$ac_ext |
8637 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
8638 |
< |
/* end confdefs.h. */ |
8639 |
< |
|
8640 |
< |
#ifdef FC_DUMMY_MAIN |
8641 |
< |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
8642 |
< |
# ifdef __cplusplus |
8643 |
< |
extern "C" |
8644 |
< |
# endif |
8645 |
< |
int FC_DUMMY_MAIN() { return 1; } |
8646 |
< |
#endif |
8647 |
< |
#endif |
8648 |
< |
int |
8649 |
< |
main () |
8650 |
< |
{ |
8651 |
< |
/* FIXME: Include the comments suggested by Paul. */ |
8652 |
< |
#ifndef __cplusplus |
8653 |
< |
/* Ultrix mips cc rejects this. */ |
8654 |
< |
typedef int charset[2]; |
8655 |
< |
const charset cs; |
8656 |
< |
/* SunOS 4.1.1 cc rejects this. */ |
8657 |
< |
char const *const *pcpcc; |
8658 |
< |
char **ppc; |
8659 |
< |
/* NEC SVR4.0.2 mips cc rejects this. */ |
8660 |
< |
struct point {int x, y;}; |
8661 |
< |
static struct point const zero = {0,0}; |
8662 |
< |
/* AIX XL C 1.02.0.0 rejects this. |
8663 |
< |
It does not let you subtract one const X* pointer from another in |
8664 |
< |
an arm of an if-expression whose if-part is not a constant |
8665 |
< |
expression */ |
8666 |
< |
const char *g = "string"; |
8667 |
< |
pcpcc = &g + (g ? g-g : 0); |
8668 |
< |
/* HPUX 7.0 cc rejects these. */ |
8669 |
< |
++pcpcc; |
8670 |
< |
ppc = (char**) pcpcc; |
8671 |
< |
pcpcc = (char const *const *) ppc; |
8672 |
< |
{ /* SCO 3.2v4 cc rejects this. */ |
8673 |
< |
char *t; |
8674 |
< |
char const *s = 0 ? (char *) 0 : (char const *) 0; |
8675 |
< |
|
8676 |
< |
*t++ = 0; |
8677 |
< |
if (s) return 0; |
8678 |
< |
} |
8679 |
< |
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
8680 |
< |
int x[] = {25, 17}; |
8681 |
< |
const int *foo = &x[0]; |
8682 |
< |
++foo; |
8683 |
< |
} |
8684 |
< |
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
8685 |
< |
typedef const int *iptr; |
8686 |
< |
iptr p = 0; |
8687 |
< |
++p; |
8688 |
< |
} |
8689 |
< |
{ /* AIX XL C 1.02.0.0 rejects this saying |
8690 |
< |
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
8691 |
< |
struct s { int j; const int *ap[3]; }; |
8692 |
< |
struct s *b; b->j = 5; |
8693 |
< |
} |
8694 |
< |
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
8695 |
< |
const int foo = 10; |
8696 |
< |
if (!foo) return 0; |
8697 |
< |
} |
8698 |
< |
return !cs[0] && !zero.x; |
8699 |
< |
#endif |
8700 |
< |
|
8701 |
< |
; |
8702 |
< |
return 0; |
8703 |
< |
} |
8704 |
< |
_ACEOF |
8705 |
< |
rm -rf conftest.$ac_objext |
8706 |
< |
if { (ac_try="$ac_compile" |
8707 |
< |
case "(($ac_try" in |
8708 |
< |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8709 |
< |
*) ac_try_echo=$ac_try;; |
8710 |
< |
esac |
8711 |
< |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8712 |
< |
(eval "$ac_compile") 2>conftest.er1 |
8713 |
< |
ac_status=$? |
8714 |
< |
grep -v '^ *+' conftest.er1 >conftest.err |
8715 |
< |
rm -f conftest.er1 |
8716 |
< |
cat conftest.err >&5 |
8717 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8718 |
< |
(exit $ac_status); } && { |
8719 |
< |
test -z "$ac_c_werror_flag" || |
8720 |
< |
test ! -s conftest.err |
8721 |
< |
} && test -s conftest.$ac_objext; then |
8722 |
< |
ac_cv_c_const=yes |
8723 |
< |
else |
8724 |
< |
echo "$as_me: failed program was:" >&5 |
8725 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
8726 |
< |
|
8727 |
< |
ac_cv_c_const=no |
8728 |
< |
fi |
8729 |
< |
|
8730 |
< |
rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext |
8731 |
< |
fi |
8732 |
< |
{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
8733 |
< |
echo "${ECHO_T}$ac_cv_c_const" >&6; } |
8734 |
< |
if test $ac_cv_c_const = no; then |
8735 |
< |
|
8736 |
< |
cat >>confdefs.h <<\_ACEOF |
8737 |
< |
#define const |
8738 |
< |
_ACEOF |
8739 |
< |
|
8740 |
< |
fi |
8741 |
< |
|
8742 |
< |
{ echo "$as_me:$LINENO: checking for inline" >&5 |
8743 |
< |
echo $ECHO_N "checking for inline... $ECHO_C" >&6; } |
8744 |
< |
if test "${ac_cv_c_inline+set}" = set; then |
8745 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8746 |
< |
else |
8747 |
< |
ac_cv_c_inline=no |
8748 |
< |
for ac_kw in inline __inline__ __inline; do |
8749 |
< |
cat >conftest.$ac_ext <<_ACEOF |
8750 |
< |
/* confdefs.h. */ |
8751 |
< |
_ACEOF |
8752 |
< |
cat confdefs.h >>conftest.$ac_ext |
8753 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
8754 |
< |
/* end confdefs.h. */ |
8755 |
< |
#ifndef __cplusplus |
8756 |
< |
typedef int foo_t; |
8757 |
< |
static $ac_kw foo_t static_foo () {return 0; } |
8758 |
< |
$ac_kw foo_t foo () {return 0; } |
8759 |
< |
#endif |
8760 |
< |
|
8761 |
< |
_ACEOF |
8762 |
< |
rm -rf conftest.$ac_objext |
8763 |
< |
if { (ac_try="$ac_compile" |
8764 |
< |
case "(($ac_try" in |
8765 |
< |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8766 |
< |
*) ac_try_echo=$ac_try;; |
8767 |
< |
esac |
8768 |
< |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8769 |
< |
(eval "$ac_compile") 2>conftest.er1 |
8770 |
< |
ac_status=$? |
8771 |
< |
grep -v '^ *+' conftest.er1 >conftest.err |
8772 |
< |
rm -f conftest.er1 |
8773 |
< |
cat conftest.err >&5 |
8774 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8775 |
< |
(exit $ac_status); } && { |
8776 |
< |
test -z "$ac_c_werror_flag" || |
8777 |
< |
test ! -s conftest.err |
8778 |
< |
} && test -s conftest.$ac_objext; then |
8779 |
< |
ac_cv_c_inline=$ac_kw |
8780 |
< |
else |
8781 |
< |
echo "$as_me: failed program was:" >&5 |
8782 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
8783 |
< |
|
8784 |
< |
|
8785 |
< |
fi |
8786 |
< |
|
8787 |
< |
rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext |
8788 |
< |
test "$ac_cv_c_inline" != no && break |
8789 |
< |
done |
8790 |
< |
|
8791 |
< |
fi |
8792 |
< |
{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
8793 |
< |
echo "${ECHO_T}$ac_cv_c_inline" >&6; } |
8794 |
< |
|
8795 |
< |
|
8796 |
< |
case $ac_cv_c_inline in |
8797 |
< |
inline | yes) ;; |
8798 |
< |
*) |
8799 |
< |
case $ac_cv_c_inline in |
8800 |
< |
no) ac_val=;; |
8801 |
< |
*) ac_val=$ac_cv_c_inline;; |
8802 |
< |
esac |
8803 |
< |
cat >>confdefs.h <<_ACEOF |
8804 |
< |
#ifndef __cplusplus |
8805 |
< |
#define inline $ac_val |
8806 |
< |
#endif |
8807 |
< |
_ACEOF |
8808 |
< |
;; |
8809 |
< |
esac |
8810 |
< |
|
8811 |
< |
|
8812 |
< |
# Checks for library functions. |
8813 |
< |
|
8814 |
< |
for ac_header in stdlib.h |
8815 |
< |
do |
8816 |
< |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
8817 |
< |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
8818 |
< |
{ echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8819 |
< |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
8820 |
< |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
8821 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8822 |
< |
fi |
8823 |
< |
ac_res=`eval echo '${'$as_ac_Header'}'` |
8824 |
< |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
8825 |
< |
echo "${ECHO_T}$ac_res" >&6; } |
8826 |
< |
else |
8827 |
< |
# Is the header compilable? |
8828 |
< |
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
8829 |
< |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
8830 |
< |
cat >conftest.$ac_ext <<_ACEOF |
8831 |
< |
/* confdefs.h. */ |
8832 |
< |
_ACEOF |
8833 |
< |
cat confdefs.h >>conftest.$ac_ext |
8834 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
8835 |
< |
/* end confdefs.h. */ |
8836 |
< |
$ac_includes_default |
8837 |
< |
#include <$ac_header> |
8838 |
< |
_ACEOF |
8839 |
< |
rm -rf conftest.$ac_objext |
8840 |
< |
if { (ac_try="$ac_compile" |
8841 |
< |
case "(($ac_try" in |
8842 |
< |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8843 |
< |
*) ac_try_echo=$ac_try;; |
8844 |
< |
esac |
8845 |
< |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8846 |
< |
(eval "$ac_compile") 2>conftest.er1 |
8847 |
< |
ac_status=$? |
8848 |
< |
grep -v '^ *+' conftest.er1 >conftest.err |
8849 |
< |
rm -f conftest.er1 |
8850 |
< |
cat conftest.err >&5 |
8851 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8852 |
< |
(exit $ac_status); } && { |
8853 |
< |
test -z "$ac_c_werror_flag" || |
8854 |
< |
test ! -s conftest.err |
8855 |
< |
} && test -s conftest.$ac_objext; then |
8856 |
< |
ac_header_compiler=yes |
8857 |
< |
else |
8858 |
< |
echo "$as_me: failed program was:" >&5 |
8859 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
8860 |
< |
|
8861 |
< |
ac_header_compiler=no |
8862 |
< |
fi |
8863 |
< |
|
8864 |
< |
rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext |
8865 |
< |
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8866 |
< |
echo "${ECHO_T}$ac_header_compiler" >&6; } |
8867 |
< |
|
8868 |
< |
# Is the header present? |
8869 |
< |
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
8870 |
< |
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
8871 |
< |
cat >conftest.$ac_ext <<_ACEOF |
8872 |
< |
/* confdefs.h. */ |
8873 |
< |
_ACEOF |
8874 |
< |
cat confdefs.h >>conftest.$ac_ext |
8875 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
8876 |
< |
/* end confdefs.h. */ |
8877 |
< |
#include <$ac_header> |
8878 |
< |
_ACEOF |
8879 |
< |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
8880 |
< |
case "(($ac_try" in |
8881 |
< |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8882 |
< |
*) ac_try_echo=$ac_try;; |
8883 |
< |
esac |
8884 |
< |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8885 |
< |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
8886 |
< |
ac_status=$? |
8887 |
< |
grep -v '^ *+' conftest.er1 >conftest.err |
8888 |
< |
rm -rf conftest.er1 |
8889 |
< |
cat conftest.err >&5 |
8890 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8891 |
< |
(exit $ac_status); } >/dev/null && { |
8892 |
< |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
8893 |
< |
test ! -s conftest.err |
8894 |
< |
}; then |
8895 |
< |
ac_header_preproc=yes |
8896 |
< |
else |
8897 |
< |
echo "$as_me: failed program was:" >&5 |
8898 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
8899 |
< |
|
8900 |
< |
ac_header_preproc=no |
8901 |
< |
fi |
8902 |
< |
|
8903 |
< |
rm -rf conftest.err conftest.$ac_ext |
8904 |
< |
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8905 |
< |
echo "${ECHO_T}$ac_header_preproc" >&6; } |
8906 |
< |
|
8907 |
< |
# So? What about this header? |
8908 |
< |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
8909 |
< |
yes:no: ) |
8910 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
8911 |
< |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
8912 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
8913 |
< |
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
8914 |
< |
ac_header_preproc=yes |
8915 |
< |
;; |
8916 |
< |
no:yes:* ) |
8917 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
8918 |
< |
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
8919 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
8920 |
< |
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
8921 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
8922 |
< |
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
8923 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
8924 |
< |
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
8925 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
8926 |
< |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
8927 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
8928 |
< |
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
8929 |
< |
( cat <<\_ASBOX |
8930 |
< |
## ------------------------------ ## |
8931 |
< |
## Report this to gezelter@nd.edu ## |
8932 |
< |
## ------------------------------ ## |
8933 |
< |
_ASBOX |
8934 |
< |
) | sed "s/^/$as_me: WARNING: /" >&2 |
8935 |
< |
;; |
8936 |
< |
esac |
8937 |
< |
{ echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8938 |
< |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
8939 |
< |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
8940 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8941 |
< |
else |
8942 |
< |
eval "$as_ac_Header=\$ac_header_preproc" |
8943 |
< |
fi |
8944 |
< |
ac_res=`eval echo '${'$as_ac_Header'}'` |
8945 |
< |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
8946 |
< |
echo "${ECHO_T}$ac_res" >&6; } |
8947 |
< |
|
8948 |
< |
fi |
8949 |
< |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
8950 |
< |
cat >>confdefs.h <<_ACEOF |
8951 |
< |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
8952 |
< |
_ACEOF |
8953 |
< |
|
8954 |
< |
fi |
8955 |
< |
|
8956 |
< |
done |
8957 |
< |
|
8958 |
< |
{ echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 |
8959 |
< |
echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; } |
8960 |
< |
if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then |
8961 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8962 |
< |
else |
8963 |
< |
if test "$cross_compiling" = yes; then |
8964 |
< |
ac_cv_func_malloc_0_nonnull=no |
8965 |
< |
else |
8966 |
< |
cat >conftest.$ac_ext <<_ACEOF |
8967 |
< |
/* confdefs.h. */ |
8968 |
< |
_ACEOF |
8969 |
< |
cat confdefs.h >>conftest.$ac_ext |
8970 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
8971 |
< |
/* end confdefs.h. */ |
8972 |
< |
#if defined STDC_HEADERS || defined HAVE_STDLIB_H |
8973 |
< |
# include <stdlib.h> |
8974 |
< |
#else |
8975 |
< |
char *malloc (); |
8976 |
< |
#endif |
8977 |
< |
|
8978 |
< |
#ifdef FC_DUMMY_MAIN |
8979 |
< |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
8980 |
< |
# ifdef __cplusplus |
8981 |
< |
extern "C" |
8982 |
< |
# endif |
8983 |
< |
int FC_DUMMY_MAIN() { return 1; } |
8984 |
< |
#endif |
8985 |
< |
#endif |
8986 |
< |
int |
8987 |
< |
main () |
8988 |
< |
{ |
8989 |
< |
return ! malloc (0); |
8990 |
< |
; |
8991 |
< |
return 0; |
8992 |
< |
} |
8993 |
< |
_ACEOF |
8994 |
< |
rm -rf conftest$ac_exeext |
8995 |
< |
if { (ac_try="$ac_link" |
8996 |
< |
case "(($ac_try" in |
8997 |
< |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8998 |
< |
*) ac_try_echo=$ac_try;; |
8999 |
< |
esac |
9000 |
< |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9001 |
< |
(eval "$ac_link") 2>&5 |
9002 |
< |
ac_status=$? |
9003 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9004 |
< |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
9005 |
< |
{ (case "(($ac_try" in |
9006 |
< |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9007 |
< |
*) ac_try_echo=$ac_try;; |
9008 |
< |
esac |
9009 |
< |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9010 |
< |
(eval "$ac_try") 2>&5 |
9011 |
< |
ac_status=$? |
9012 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9013 |
< |
(exit $ac_status); }; }; then |
9014 |
< |
ac_cv_func_malloc_0_nonnull=yes |
9015 |
< |
else |
9016 |
< |
echo "$as_me: program exited with status $ac_status" >&5 |
9017 |
< |
echo "$as_me: failed program was:" >&5 |
9018 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
9019 |
< |
|
9020 |
< |
( exit $ac_status ) |
9021 |
< |
ac_cv_func_malloc_0_nonnull=no |
9022 |
< |
fi |
9023 |
< |
rm -rf core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
9024 |
< |
fi |
9025 |
< |
|
9026 |
< |
|
9027 |
< |
fi |
9028 |
< |
{ echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 |
9029 |
< |
echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; } |
9030 |
< |
if test $ac_cv_func_malloc_0_nonnull = yes; then |
9031 |
< |
|
9032 |
< |
cat >>confdefs.h <<\_ACEOF |
9033 |
< |
#define HAVE_MALLOC 1 |
9034 |
< |
_ACEOF |
9035 |
< |
|
9036 |
< |
else |
9037 |
< |
cat >>confdefs.h <<\_ACEOF |
9038 |
< |
#define HAVE_MALLOC 0 |
9039 |
< |
_ACEOF |
9040 |
< |
|
9041 |
< |
case " $LIBOBJS " in |
9042 |
< |
*" malloc.$ac_objext "* ) ;; |
9043 |
< |
*) LIBOBJS="$LIBOBJS malloc.$ac_objext" |
9044 |
< |
;; |
9045 |
< |
esac |
9046 |
< |
|
9047 |
< |
|
9048 |
< |
cat >>confdefs.h <<\_ACEOF |
9049 |
< |
#define malloc rpl_malloc |
9050 |
< |
_ACEOF |
9051 |
< |
|
9052 |
< |
fi |
9053 |
< |
|
9054 |
< |
|
9055 |
< |
|
9056 |
< |
{ echo "$as_me:$LINENO: checking for working memcmp" >&5 |
9057 |
< |
echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; } |
9058 |
< |
if test "${ac_cv_func_memcmp_working+set}" = set; then |
9059 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
9060 |
< |
else |
9061 |
< |
if test "$cross_compiling" = yes; then |
9062 |
< |
ac_cv_func_memcmp_working=no |
9063 |
< |
else |
9064 |
< |
cat >conftest.$ac_ext <<_ACEOF |
9065 |
< |
/* confdefs.h. */ |
9066 |
< |
_ACEOF |
9067 |
< |
cat confdefs.h >>conftest.$ac_ext |
9068 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
9069 |
< |
/* end confdefs.h. */ |
9070 |
< |
$ac_includes_default |
9071 |
< |
#ifdef FC_DUMMY_MAIN |
9072 |
< |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
9073 |
< |
# ifdef __cplusplus |
9074 |
< |
extern "C" |
9075 |
< |
# endif |
9076 |
< |
int FC_DUMMY_MAIN() { return 1; } |
7240 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7241 |
> |
cd .. |
7242 |
> |
# cleanup |
7243 |
> |
rm -rf conftest |
7244 |
> |
ac_ext=${ac_fc_srcext-f} |
7245 |
> |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
7246 |
> |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
7247 |
> |
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
7248 |
> |
|
7249 |
> |
fi |
7250 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_f90_module_names" >&5 |
7251 |
> |
echo "${ECHO_T}$ac_cv_f90_module_names" >&6; } # AC_CACHE_CHECK |
7252 |
> |
|
7253 |
> |
# We now generate a shell script that will help us to figure out the correct |
7254 |
> |
# module file names, using the value of ac_cv_f90_module_names |
7255 |
> |
|
7256 |
> |
echo "Generating shell script modnam" |
7257 |
> |
|
7258 |
> |
cat > scripts/modnam << EOF |
7259 |
> |
#! /bin/sh |
7260 |
> |
# This script is auto-generated by configure |
7261 |
> |
# |
7262 |
> |
usage="\\ |
7263 |
> |
Usage: \$0 [FILES] |
7264 |
> |
|
7265 |
> |
[FILES] are Fortran 90 source files. |
7266 |
> |
The output is a list of module file names that the Fortran 90 compiler |
7267 |
> |
generates when compiling [FILES]." |
7268 |
> |
|
7269 |
> |
list= |
7270 |
> |
empty= |
7271 |
> |
|
7272 |
> |
if test \$# -eq 0; then |
7273 |
> |
echo "\$usage"; exit 0 |
7274 |
> |
fi |
7275 |
> |
|
7276 |
> |
while test \$# != 0; do |
7277 |
> |
|
7278 |
> |
file=\$1 |
7279 |
> |
shift |
7280 |
> |
|
7281 |
> |
# strip suffix |
7282 |
> |
base=\`echo \$file | sed 's/[.][^.]*$//'\` |
7283 |
> |
|
7284 |
> |
test ! -f \$file && continue |
7285 |
> |
|
7286 |
> |
# Look for module definitions and transform them to upper / lower case |
7287 |
> |
mods=\`cat \$file | sed '/^ *[mM][oO][dD][uU][lL][eE]/!d;s/^ *[mM][oO][dD][uU][lL][eE] *\([A-Za-z_][A-Za-z0-9_]*\).*\$/\1/'\` |
7288 |
> |
upper=\`echo \$mods | tr a-z A-Z\` |
7289 |
> |
lower=\`echo \$mods | tr A-Z a-z\` |
7290 |
> |
|
7291 |
> |
# Here, the patterns for generating module file names were inserted by configure |
7292 |
> |
for trans in $ac_cv_f90_module_names; do |
7293 |
> |
|
7294 |
> |
pat=\`echo \$trans | sed 's/.*\(%.*%\).*/\1/'\` |
7295 |
> |
var=empty |
7296 |
> |
case \$pat in |
7297 |
> |
%MODULE%) |
7298 |
> |
var=upper ;; |
7299 |
> |
%Module%) |
7300 |
> |
var=mods ;; |
7301 |
> |
%module%) |
7302 |
> |
var=lower ;; |
7303 |
> |
%FILE%) |
7304 |
> |
test -n "\$mods" && var=base ;; |
7305 |
> |
esac |
7306 |
> |
new=\`eval '(for i in \$'\$var '; do echo \$trans | sed s/\$pat/\$i/; done)'\` |
7307 |
> |
list="\$list \$new" |
7308 |
> |
done |
7309 |
> |
done |
7310 |
> |
|
7311 |
> |
echo \$list |
7312 |
> |
# end of configure-generated script |
7313 |
> |
EOF |
7314 |
> |
chmod 755 scripts/modnam |
7315 |
> |
|
7316 |
> |
pat=`echo $ac_cv_f90_module_names | sed 's/.*\(%.*%\).*/\1/'` |
7317 |
> |
F90_MODULE_NAMES=empty |
7318 |
> |
case $pat in |
7319 |
> |
%MODULE%) |
7320 |
> |
F90_MODULE_NAMES=UPPER ;; |
7321 |
> |
%Module%) |
7322 |
> |
F90_MODULE_NAMES=Mixed ;; |
7323 |
> |
%module%) |
7324 |
> |
F90_MODULE_NAMES=lower ;; |
7325 |
> |
*) |
7326 |
> |
F90_MODULE_NAMES=unknown ;; |
7327 |
> |
esac |
7328 |
> |
|
7329 |
> |
ac_ext=c |
7330 |
> |
ac_cpp='$CPP $CPPFLAGS' |
7331 |
> |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
7332 |
> |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
7333 |
> |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
7334 |
> |
|
7335 |
> |
|
7336 |
> |
ac_ext=c |
7337 |
> |
ac_cpp='$CPP $CPPFLAGS' |
7338 |
> |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
7339 |
> |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
7340 |
> |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
7341 |
> |
|
7342 |
> |
|
7343 |
> |
|
7344 |
> |
{ echo "$as_me:$LINENO: checking for asin in -lm" >&5 |
7345 |
> |
echo $ECHO_N "checking for asin in -lm... $ECHO_C" >&6; } |
7346 |
> |
if test "${ac_cv_lib_m_asin+set}" = set; then |
7347 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7348 |
> |
else |
7349 |
> |
ac_check_lib_save_LIBS=$LIBS |
7350 |
> |
LIBS="-lm $LIBS" |
7351 |
> |
cat >conftest.$ac_ext <<_ACEOF |
7352 |
> |
/* confdefs.h. */ |
7353 |
> |
_ACEOF |
7354 |
> |
cat confdefs.h >>conftest.$ac_ext |
7355 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
7356 |
> |
/* end confdefs.h. */ |
7357 |
> |
|
7358 |
> |
/* Override any GCC internal prototype to avoid an error. |
7359 |
> |
Use char because int might match the return type of a GCC |
7360 |
> |
builtin and then its argument prototype would still apply. */ |
7361 |
> |
#ifdef __cplusplus |
7362 |
> |
extern "C" |
7363 |
> |
#endif |
7364 |
> |
char asin (); |
7365 |
> |
#ifdef FC_DUMMY_MAIN |
7366 |
> |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
7367 |
> |
# ifdef __cplusplus |
7368 |
> |
extern "C" |
7369 |
> |
# endif |
7370 |
> |
int FC_DUMMY_MAIN() { return 1; } |
7371 |
> |
#endif |
7372 |
> |
#endif |
7373 |
> |
int |
7374 |
> |
main () |
7375 |
> |
{ |
7376 |
> |
return asin (); |
7377 |
> |
; |
7378 |
> |
return 0; |
7379 |
> |
} |
7380 |
> |
_ACEOF |
7381 |
> |
rm -f conftest.$ac_objext conftest$ac_exeext |
7382 |
> |
if { (ac_try="$ac_link" |
7383 |
> |
case "(($ac_try" in |
7384 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7385 |
> |
*) ac_try_echo=$ac_try;; |
7386 |
> |
esac |
7387 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7388 |
> |
(eval "$ac_link") 2>conftest.er1 |
7389 |
> |
ac_status=$? |
7390 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
7391 |
> |
rm -f conftest.er1 |
7392 |
> |
cat conftest.err >&5 |
7393 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7394 |
> |
(exit $ac_status); } && { |
7395 |
> |
test -z "$ac_c_werror_flag" || |
7396 |
> |
test ! -s conftest.err |
7397 |
> |
} && test -s conftest$ac_exeext && |
7398 |
> |
$as_test_x conftest$ac_exeext; then |
7399 |
> |
ac_cv_lib_m_asin=yes |
7400 |
> |
else |
7401 |
> |
echo "$as_me: failed program was:" >&5 |
7402 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
7403 |
> |
|
7404 |
> |
ac_cv_lib_m_asin=no |
7405 |
> |
fi |
7406 |
> |
|
7407 |
> |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
7408 |
> |
conftest$ac_exeext conftest.$ac_ext |
7409 |
> |
LIBS=$ac_check_lib_save_LIBS |
7410 |
> |
fi |
7411 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_asin" >&5 |
7412 |
> |
echo "${ECHO_T}$ac_cv_lib_m_asin" >&6; } |
7413 |
> |
if test $ac_cv_lib_m_asin = yes; then |
7414 |
> |
cat >>confdefs.h <<_ACEOF |
7415 |
> |
#define HAVE_LIBM 1 |
7416 |
> |
_ACEOF |
7417 |
> |
|
7418 |
> |
LIBS="-lm $LIBS" |
7419 |
> |
|
7420 |
> |
else |
7421 |
> |
exit |
7422 |
> |
fi |
7423 |
> |
|
7424 |
> |
|
7425 |
> |
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
7426 |
> |
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
7427 |
> |
if test "${ac_cv_header_stdc+set}" = set; then |
7428 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7429 |
> |
else |
7430 |
> |
cat >conftest.$ac_ext <<_ACEOF |
7431 |
> |
/* confdefs.h. */ |
7432 |
> |
_ACEOF |
7433 |
> |
cat confdefs.h >>conftest.$ac_ext |
7434 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
7435 |
> |
/* end confdefs.h. */ |
7436 |
> |
#include <stdlib.h> |
7437 |
> |
#include <stdarg.h> |
7438 |
> |
#include <string.h> |
7439 |
> |
#include <float.h> |
7440 |
> |
|
7441 |
> |
#ifdef FC_DUMMY_MAIN |
7442 |
> |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
7443 |
> |
# ifdef __cplusplus |
7444 |
> |
extern "C" |
7445 |
> |
# endif |
7446 |
> |
int FC_DUMMY_MAIN() { return 1; } |
7447 |
> |
#endif |
7448 |
> |
#endif |
7449 |
> |
int |
7450 |
> |
main () |
7451 |
> |
{ |
7452 |
> |
|
7453 |
> |
; |
7454 |
> |
return 0; |
7455 |
> |
} |
7456 |
> |
_ACEOF |
7457 |
> |
rm -f conftest.$ac_objext |
7458 |
> |
if { (ac_try="$ac_compile" |
7459 |
> |
case "(($ac_try" in |
7460 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7461 |
> |
*) ac_try_echo=$ac_try;; |
7462 |
> |
esac |
7463 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7464 |
> |
(eval "$ac_compile") 2>conftest.er1 |
7465 |
> |
ac_status=$? |
7466 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
7467 |
> |
rm -f conftest.er1 |
7468 |
> |
cat conftest.err >&5 |
7469 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7470 |
> |
(exit $ac_status); } && { |
7471 |
> |
test -z "$ac_c_werror_flag" || |
7472 |
> |
test ! -s conftest.err |
7473 |
> |
} && test -s conftest.$ac_objext; then |
7474 |
> |
ac_cv_header_stdc=yes |
7475 |
> |
else |
7476 |
> |
echo "$as_me: failed program was:" >&5 |
7477 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
7478 |
> |
|
7479 |
> |
ac_cv_header_stdc=no |
7480 |
> |
fi |
7481 |
> |
|
7482 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7483 |
> |
|
7484 |
> |
if test $ac_cv_header_stdc = yes; then |
7485 |
> |
# SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
7486 |
> |
cat >conftest.$ac_ext <<_ACEOF |
7487 |
> |
/* confdefs.h. */ |
7488 |
> |
_ACEOF |
7489 |
> |
cat confdefs.h >>conftest.$ac_ext |
7490 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
7491 |
> |
/* end confdefs.h. */ |
7492 |
> |
#include <string.h> |
7493 |
> |
|
7494 |
> |
_ACEOF |
7495 |
> |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
7496 |
> |
$EGREP "memchr" >/dev/null 2>&1; then |
7497 |
> |
: |
7498 |
> |
else |
7499 |
> |
ac_cv_header_stdc=no |
7500 |
> |
fi |
7501 |
> |
rm -f conftest* |
7502 |
> |
|
7503 |
> |
fi |
7504 |
> |
|
7505 |
> |
if test $ac_cv_header_stdc = yes; then |
7506 |
> |
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
7507 |
> |
cat >conftest.$ac_ext <<_ACEOF |
7508 |
> |
/* confdefs.h. */ |
7509 |
> |
_ACEOF |
7510 |
> |
cat confdefs.h >>conftest.$ac_ext |
7511 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
7512 |
> |
/* end confdefs.h. */ |
7513 |
> |
#include <stdlib.h> |
7514 |
> |
|
7515 |
> |
_ACEOF |
7516 |
> |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
7517 |
> |
$EGREP "free" >/dev/null 2>&1; then |
7518 |
> |
: |
7519 |
> |
else |
7520 |
> |
ac_cv_header_stdc=no |
7521 |
> |
fi |
7522 |
> |
rm -f conftest* |
7523 |
> |
|
7524 |
> |
fi |
7525 |
> |
|
7526 |
> |
if test $ac_cv_header_stdc = yes; then |
7527 |
> |
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
7528 |
> |
if test "$cross_compiling" = yes; then |
7529 |
> |
: |
7530 |
> |
else |
7531 |
> |
cat >conftest.$ac_ext <<_ACEOF |
7532 |
> |
/* confdefs.h. */ |
7533 |
> |
_ACEOF |
7534 |
> |
cat confdefs.h >>conftest.$ac_ext |
7535 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
7536 |
> |
/* end confdefs.h. */ |
7537 |
> |
#include <ctype.h> |
7538 |
> |
#include <stdlib.h> |
7539 |
> |
#if ((' ' & 0x0FF) == 0x020) |
7540 |
> |
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
7541 |
> |
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
7542 |
> |
#else |
7543 |
> |
# define ISLOWER(c) \ |
7544 |
> |
(('a' <= (c) && (c) <= 'i') \ |
7545 |
> |
|| ('j' <= (c) && (c) <= 'r') \ |
7546 |
> |
|| ('s' <= (c) && (c) <= 'z')) |
7547 |
> |
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
7548 |
|
#endif |
7549 |
< |
#endif |
7549 |
> |
|
7550 |
> |
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
7551 |
|
int |
7552 |
|
main () |
7553 |
|
{ |
7554 |
< |
|
7555 |
< |
/* Some versions of memcmp are not 8-bit clean. */ |
7556 |
< |
char c0 = '\100', c1 = '\200', c2 = '\201'; |
7557 |
< |
if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) |
7558 |
< |
return 1; |
9087 |
< |
|
9088 |
< |
/* The Next x86 OpenStep bug shows up only when comparing 16 bytes |
9089 |
< |
or more and with at least one buffer not starting on a 4-byte boundary. |
9090 |
< |
William Lewis provided this test program. */ |
9091 |
< |
{ |
9092 |
< |
char foo[21]; |
9093 |
< |
char bar[21]; |
9094 |
< |
int i; |
9095 |
< |
for (i = 0; i < 4; i++) |
9096 |
< |
{ |
9097 |
< |
char *a = foo + i; |
9098 |
< |
char *b = bar + i; |
9099 |
< |
strcpy (a, "--------01111111"); |
9100 |
< |
strcpy (b, "--------10000000"); |
9101 |
< |
if (memcmp (a, b, 16) >= 0) |
9102 |
< |
return 1; |
9103 |
< |
} |
9104 |
< |
return 0; |
9105 |
< |
} |
9106 |
< |
|
9107 |
< |
; |
7554 |
> |
int i; |
7555 |
> |
for (i = 0; i < 256; i++) |
7556 |
> |
if (XOR (islower (i), ISLOWER (i)) |
7557 |
> |
|| toupper (i) != TOUPPER (i)) |
7558 |
> |
return 2; |
7559 |
|
return 0; |
7560 |
|
} |
7561 |
|
_ACEOF |
7562 |
< |
rm -rf conftest$ac_exeext |
7562 |
> |
rm -f conftest$ac_exeext |
7563 |
|
if { (ac_try="$ac_link" |
7564 |
|
case "(($ac_try" in |
7565 |
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7579 |
|
ac_status=$? |
7580 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7581 |
|
(exit $ac_status); }; }; then |
7582 |
< |
ac_cv_func_memcmp_working=yes |
7582 |
> |
: |
7583 |
|
else |
7584 |
|
echo "$as_me: program exited with status $ac_status" >&5 |
7585 |
|
echo "$as_me: failed program was:" >&5 |
7586 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
7587 |
|
|
7588 |
|
( exit $ac_status ) |
7589 |
< |
ac_cv_func_memcmp_working=no |
7589 |
> |
ac_cv_header_stdc=no |
7590 |
|
fi |
7591 |
< |
rm -rf core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
7591 |
> |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
7592 |
|
fi |
7593 |
|
|
7594 |
|
|
7595 |
|
fi |
7596 |
< |
{ echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 |
7597 |
< |
echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; } |
7598 |
< |
test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in |
7599 |
< |
*" memcmp.$ac_objext "* ) ;; |
9149 |
< |
*) LIBOBJS="$LIBOBJS memcmp.$ac_objext" |
9150 |
< |
;; |
9151 |
< |
esac |
7596 |
> |
fi |
7597 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
7598 |
> |
echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
7599 |
> |
if test $ac_cv_header_stdc = yes; then |
7600 |
|
|
7601 |
+ |
cat >>confdefs.h <<\_ACEOF |
7602 |
+ |
#define STDC_HEADERS 1 |
7603 |
+ |
_ACEOF |
7604 |
|
|
7605 |
+ |
fi |
7606 |
|
|
7607 |
< |
for ac_header in stdlib.h |
7607 |
> |
# On IRIX 5.3, sys/types and inttypes.h are conflicting. |
7608 |
> |
|
7609 |
> |
|
7610 |
> |
|
7611 |
> |
|
7612 |
> |
|
7613 |
> |
|
7614 |
> |
|
7615 |
> |
|
7616 |
> |
|
7617 |
> |
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
7618 |
> |
inttypes.h stdint.h unistd.h |
7619 |
|
do |
7620 |
|
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7621 |
< |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
9159 |
< |
{ echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7621 |
> |
{ echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7622 |
|
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
7623 |
|
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
7624 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
9163 |
– |
fi |
9164 |
– |
ac_res=`eval echo '${'$as_ac_Header'}'` |
9165 |
– |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
9166 |
– |
echo "${ECHO_T}$ac_res" >&6; } |
7625 |
|
else |
7626 |
< |
# Is the header compilable? |
9169 |
< |
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9170 |
< |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
9171 |
< |
cat >conftest.$ac_ext <<_ACEOF |
7626 |
> |
cat >conftest.$ac_ext <<_ACEOF |
7627 |
|
/* confdefs.h. */ |
7628 |
|
_ACEOF |
7629 |
|
cat confdefs.h >>conftest.$ac_ext |
7630 |
|
cat >>conftest.$ac_ext <<_ACEOF |
7631 |
|
/* end confdefs.h. */ |
7632 |
|
$ac_includes_default |
7633 |
+ |
|
7634 |
|
#include <$ac_header> |
7635 |
|
_ACEOF |
7636 |
< |
rm -rf conftest.$ac_objext |
7636 |
> |
rm -f conftest.$ac_objext |
7637 |
|
if { (ac_try="$ac_compile" |
7638 |
|
case "(($ac_try" in |
7639 |
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7650 |
|
test -z "$ac_c_werror_flag" || |
7651 |
|
test ! -s conftest.err |
7652 |
|
} && test -s conftest.$ac_objext; then |
7653 |
< |
ac_header_compiler=yes |
7653 |
> |
eval "$as_ac_Header=yes" |
7654 |
|
else |
7655 |
|
echo "$as_me: failed program was:" >&5 |
7656 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
7657 |
|
|
7658 |
< |
ac_header_compiler=no |
7658 |
> |
eval "$as_ac_Header=no" |
7659 |
|
fi |
7660 |
|
|
7661 |
< |
rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext |
9206 |
< |
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9207 |
< |
echo "${ECHO_T}$ac_header_compiler" >&6; } |
9208 |
< |
|
9209 |
< |
# Is the header present? |
9210 |
< |
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9211 |
< |
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
9212 |
< |
cat >conftest.$ac_ext <<_ACEOF |
9213 |
< |
/* confdefs.h. */ |
9214 |
< |
_ACEOF |
9215 |
< |
cat confdefs.h >>conftest.$ac_ext |
9216 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
9217 |
< |
/* end confdefs.h. */ |
9218 |
< |
#include <$ac_header> |
9219 |
< |
_ACEOF |
9220 |
< |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
9221 |
< |
case "(($ac_try" in |
9222 |
< |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9223 |
< |
*) ac_try_echo=$ac_try;; |
9224 |
< |
esac |
9225 |
< |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9226 |
< |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
9227 |
< |
ac_status=$? |
9228 |
< |
grep -v '^ *+' conftest.er1 >conftest.err |
9229 |
< |
rm -f conftest.er1 |
9230 |
< |
cat conftest.err >&5 |
9231 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9232 |
< |
(exit $ac_status); } >/dev/null && { |
9233 |
< |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
9234 |
< |
test ! -s conftest.err |
9235 |
< |
}; then |
9236 |
< |
ac_header_preproc=yes |
9237 |
< |
else |
9238 |
< |
echo "$as_me: failed program was:" >&5 |
9239 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
9240 |
< |
|
9241 |
< |
ac_header_preproc=no |
7661 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7662 |
|
fi |
9243 |
– |
|
9244 |
– |
rm -rf conftest.err conftest.$ac_ext |
9245 |
– |
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9246 |
– |
echo "${ECHO_T}$ac_header_preproc" >&6; } |
9247 |
– |
|
9248 |
– |
# So? What about this header? |
9249 |
– |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
9250 |
– |
yes:no: ) |
9251 |
– |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
9252 |
– |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
9253 |
– |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
9254 |
– |
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
9255 |
– |
ac_header_preproc=yes |
9256 |
– |
;; |
9257 |
– |
no:yes:* ) |
9258 |
– |
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
9259 |
– |
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
9260 |
– |
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
9261 |
– |
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
9262 |
– |
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
9263 |
– |
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
9264 |
– |
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
9265 |
– |
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
9266 |
– |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
9267 |
– |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
9268 |
– |
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
9269 |
– |
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
9270 |
– |
( cat <<\_ASBOX |
9271 |
– |
## ------------------------------ ## |
9272 |
– |
## Report this to gezelter@nd.edu ## |
9273 |
– |
## ------------------------------ ## |
9274 |
– |
_ASBOX |
9275 |
– |
) | sed "s/^/$as_me: WARNING: /" >&2 |
9276 |
– |
;; |
9277 |
– |
esac |
9278 |
– |
{ echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9279 |
– |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
9280 |
– |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
9281 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
9282 |
– |
else |
9283 |
– |
eval "$as_ac_Header=\$ac_header_preproc" |
9284 |
– |
fi |
7663 |
|
ac_res=`eval echo '${'$as_ac_Header'}'` |
7664 |
|
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
7665 |
|
echo "${ECHO_T}$ac_res" >&6; } |
9288 |
– |
|
9289 |
– |
fi |
7666 |
|
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
7667 |
|
cat >>confdefs.h <<_ACEOF |
7668 |
|
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
7672 |
|
|
7673 |
|
done |
7674 |
|
|
7675 |
< |
{ echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5 |
7676 |
< |
echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; } |
7677 |
< |
if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then |
7675 |
> |
|
7676 |
> |
# |
7677 |
> |
# Handle user hints |
7678 |
> |
# |
7679 |
> |
|
7680 |
> |
# Check whether --with-zlib was given. |
7681 |
> |
if test "${with_zlib+set}" = set; then |
7682 |
> |
withval=$with_zlib; zlib_dir="$withval" |
7683 |
> |
else |
7684 |
> |
zlib_dir="not_set" |
7685 |
> |
fi |
7686 |
> |
|
7687 |
> |
if test "$zlib_dir" != "no"; then |
7688 |
> |
|
7689 |
> |
if test "$zlib_dir" != "not_set" ; then |
7690 |
> |
if test -d "$zlib_dir" |
7691 |
> |
then |
7692 |
> |
ZLIB_HOME="$zlib_dir" |
7693 |
> |
else |
7694 |
> |
{ echo "$as_me:$LINENO: WARNING: Sorry, $zlib_dir does not exist, checking usual places" >&5 |
7695 |
> |
echo "$as_me: WARNING: Sorry, $zlib_dir does not exist, checking usual places" >&2;} |
7696 |
> |
ZLIB_HOME=/usr/local |
7697 |
> |
if test ! -f "${ZLIB_HOME}/include/zlib.h" |
7698 |
> |
then |
7699 |
> |
ZLIB_HOME=/usr |
7700 |
> |
fi |
7701 |
> |
fi |
7702 |
> |
fi |
7703 |
> |
# |
7704 |
> |
# Locate zlib, if wanted |
7705 |
> |
# |
7706 |
> |
if test -n "${ZLIB_HOME}" |
7707 |
> |
then |
7708 |
> |
ZLIB_OLD_LDFLAGS=$LDFLAGS |
7709 |
> |
ZLIB_OLD_CFLAGS=$CFLAGS |
7710 |
> |
LDFLAGS="$LDFLAGS -L${ZLIB_HOME}/lib" |
7711 |
> |
CFLAGS="$CFLAGS -I${ZLIB_HOME}/include" |
7712 |
> |
|
7713 |
> |
ac_ext=c |
7714 |
> |
ac_cpp='$CPP $CPPFLAGS' |
7715 |
> |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
7716 |
> |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
7717 |
> |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
7718 |
> |
|
7719 |
> |
{ echo "$as_me:$LINENO: checking for inflateEnd in -lz" >&5 |
7720 |
> |
echo $ECHO_N "checking for inflateEnd in -lz... $ECHO_C" >&6; } |
7721 |
> |
if test "${ac_cv_lib_z_inflateEnd+set}" = set; then |
7722 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7723 |
|
else |
7724 |
< |
if test "$cross_compiling" = yes; then |
7725 |
< |
ac_cv_func_realloc_0_nonnull=no |
7726 |
< |
else |
9307 |
< |
cat >conftest.$ac_ext <<_ACEOF |
7724 |
> |
ac_check_lib_save_LIBS=$LIBS |
7725 |
> |
LIBS="-lz $LIBS" |
7726 |
> |
cat >conftest.$ac_ext <<_ACEOF |
7727 |
|
/* confdefs.h. */ |
7728 |
|
_ACEOF |
7729 |
|
cat confdefs.h >>conftest.$ac_ext |
7730 |
|
cat >>conftest.$ac_ext <<_ACEOF |
7731 |
|
/* end confdefs.h. */ |
9313 |
– |
#if defined STDC_HEADERS || defined HAVE_STDLIB_H |
9314 |
– |
# include <stdlib.h> |
9315 |
– |
#else |
9316 |
– |
char *realloc (); |
9317 |
– |
#endif |
7732 |
|
|
7733 |
+ |
/* Override any GCC internal prototype to avoid an error. |
7734 |
+ |
Use char because int might match the return type of a GCC |
7735 |
+ |
builtin and then its argument prototype would still apply. */ |
7736 |
+ |
#ifdef __cplusplus |
7737 |
+ |
extern "C" |
7738 |
+ |
#endif |
7739 |
+ |
char inflateEnd (); |
7740 |
|
#ifdef FC_DUMMY_MAIN |
7741 |
|
#ifndef FC_DUMMY_MAIN_EQ_F77 |
7742 |
|
# ifdef __cplusplus |
7748 |
|
int |
7749 |
|
main () |
7750 |
|
{ |
7751 |
< |
return ! realloc (0, 0); |
7751 |
> |
return inflateEnd (); |
7752 |
|
; |
7753 |
|
return 0; |
7754 |
|
} |
7755 |
|
_ACEOF |
7756 |
< |
rm -rf conftest$ac_exeext |
7756 |
> |
rm -f conftest.$ac_objext conftest$ac_exeext |
7757 |
|
if { (ac_try="$ac_link" |
7758 |
|
case "(($ac_try" in |
7759 |
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7760 |
|
*) ac_try_echo=$ac_try;; |
7761 |
|
esac |
7762 |
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7763 |
< |
(eval "$ac_link") 2>&5 |
9343 |
< |
ac_status=$? |
9344 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9345 |
< |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
9346 |
< |
{ (case "(($ac_try" in |
9347 |
< |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9348 |
< |
*) ac_try_echo=$ac_try;; |
9349 |
< |
esac |
9350 |
< |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9351 |
< |
(eval "$ac_try") 2>&5 |
7763 |
> |
(eval "$ac_link") 2>conftest.er1 |
7764 |
|
ac_status=$? |
7765 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
7766 |
+ |
rm -f conftest.er1 |
7767 |
+ |
cat conftest.err >&5 |
7768 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7769 |
< |
(exit $ac_status); }; }; then |
7770 |
< |
ac_cv_func_realloc_0_nonnull=yes |
7769 |
> |
(exit $ac_status); } && { |
7770 |
> |
test -z "$ac_c_werror_flag" || |
7771 |
> |
test ! -s conftest.err |
7772 |
> |
} && test -s conftest$ac_exeext && |
7773 |
> |
$as_test_x conftest$ac_exeext; then |
7774 |
> |
ac_cv_lib_z_inflateEnd=yes |
7775 |
|
else |
7776 |
< |
echo "$as_me: program exited with status $ac_status" >&5 |
9358 |
< |
echo "$as_me: failed program was:" >&5 |
7776 |
> |
echo "$as_me: failed program was:" >&5 |
7777 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
7778 |
|
|
7779 |
< |
( exit $ac_status ) |
9362 |
< |
ac_cv_func_realloc_0_nonnull=no |
7779 |
> |
ac_cv_lib_z_inflateEnd=no |
7780 |
|
fi |
9364 |
– |
rm -rf core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
9365 |
– |
fi |
7781 |
|
|
7782 |
< |
|
7782 |
> |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
7783 |
> |
conftest$ac_exeext conftest.$ac_ext |
7784 |
> |
LIBS=$ac_check_lib_save_LIBS |
7785 |
|
fi |
7786 |
< |
{ echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5 |
7787 |
< |
echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; } |
7788 |
< |
if test $ac_cv_func_realloc_0_nonnull = yes; then |
7789 |
< |
|
9373 |
< |
cat >>confdefs.h <<\_ACEOF |
9374 |
< |
#define HAVE_REALLOC 1 |
9375 |
< |
_ACEOF |
9376 |
< |
|
7786 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateEnd" >&5 |
7787 |
> |
echo "${ECHO_T}$ac_cv_lib_z_inflateEnd" >&6; } |
7788 |
> |
if test $ac_cv_lib_z_inflateEnd = yes; then |
7789 |
> |
zlib_cv_libz=yes |
7790 |
|
else |
7791 |
< |
cat >>confdefs.h <<\_ACEOF |
9379 |
< |
#define HAVE_REALLOC 0 |
9380 |
< |
_ACEOF |
9381 |
< |
|
9382 |
< |
case " $LIBOBJS " in |
9383 |
< |
*" realloc.$ac_objext "* ) ;; |
9384 |
< |
*) LIBOBJS="$LIBOBJS realloc.$ac_objext" |
9385 |
< |
;; |
9386 |
< |
esac |
9387 |
< |
|
9388 |
< |
|
9389 |
< |
cat >>confdefs.h <<\_ACEOF |
9390 |
< |
#define realloc rpl_realloc |
9391 |
< |
_ACEOF |
9392 |
< |
|
7791 |
> |
zlib_cv_libz=no |
7792 |
|
fi |
7793 |
|
|
7794 |
< |
|
7795 |
< |
|
7796 |
< |
|
7797 |
< |
|
9399 |
< |
for ac_header in sys/select.h sys/socket.h |
9400 |
< |
do |
9401 |
< |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
9402 |
< |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
9403 |
< |
{ echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9404 |
< |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
9405 |
< |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
7794 |
> |
if test "${ac_cv_header_zlib_h+set}" = set; then |
7795 |
> |
{ echo "$as_me:$LINENO: checking for zlib.h" >&5 |
7796 |
> |
echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; } |
7797 |
> |
if test "${ac_cv_header_zlib_h+set}" = set; then |
7798 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7799 |
|
fi |
7800 |
< |
ac_res=`eval echo '${'$as_ac_Header'}'` |
7801 |
< |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
9410 |
< |
echo "${ECHO_T}$ac_res" >&6; } |
7800 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 |
7801 |
> |
echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; } |
7802 |
|
else |
7803 |
|
# Is the header compilable? |
7804 |
< |
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7805 |
< |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
7804 |
> |
{ echo "$as_me:$LINENO: checking zlib.h usability" >&5 |
7805 |
> |
echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; } |
7806 |
|
cat >conftest.$ac_ext <<_ACEOF |
7807 |
|
/* confdefs.h. */ |
7808 |
|
_ACEOF |
7810 |
|
cat >>conftest.$ac_ext <<_ACEOF |
7811 |
|
/* end confdefs.h. */ |
7812 |
|
$ac_includes_default |
7813 |
< |
#include <$ac_header> |
7813 |
> |
#include <zlib.h> |
7814 |
|
_ACEOF |
7815 |
< |
rm -rf conftest.$ac_objext |
7815 |
> |
rm -f conftest.$ac_objext |
7816 |
|
if { (ac_try="$ac_compile" |
7817 |
|
case "(($ac_try" in |
7818 |
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7837 |
|
ac_header_compiler=no |
7838 |
|
fi |
7839 |
|
|
7840 |
< |
rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext |
7840 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7841 |
|
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7842 |
|
echo "${ECHO_T}$ac_header_compiler" >&6; } |
7843 |
|
|
7844 |
|
# Is the header present? |
7845 |
< |
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7846 |
< |
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
7845 |
> |
{ echo "$as_me:$LINENO: checking zlib.h presence" >&5 |
7846 |
> |
echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; } |
7847 |
|
cat >conftest.$ac_ext <<_ACEOF |
7848 |
|
/* confdefs.h. */ |
7849 |
|
_ACEOF |
7850 |
|
cat confdefs.h >>conftest.$ac_ext |
7851 |
|
cat >>conftest.$ac_ext <<_ACEOF |
7852 |
|
/* end confdefs.h. */ |
7853 |
< |
#include <$ac_header> |
7853 |
> |
#include <zlib.h> |
7854 |
|
_ACEOF |
7855 |
|
if { (ac_try="$ac_cpp conftest.$ac_ext" |
7856 |
|
case "(($ac_try" in |
7876 |
|
ac_header_preproc=no |
7877 |
|
fi |
7878 |
|
|
7879 |
< |
rm -rf conftest.err conftest.$ac_ext |
7879 |
> |
rm -f conftest.err conftest.$ac_ext |
7880 |
|
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7881 |
|
echo "${ECHO_T}$ac_header_preproc" >&6; } |
7882 |
|
|
7883 |
|
# So? What about this header? |
7884 |
|
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
7885 |
|
yes:no: ) |
7886 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
7887 |
< |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
7888 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
7889 |
< |
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
7886 |
> |
{ echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
7887 |
> |
echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
7888 |
> |
{ echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 |
7889 |
> |
echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} |
7890 |
|
ac_header_preproc=yes |
7891 |
|
;; |
7892 |
|
no:yes:* ) |
7893 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
7894 |
< |
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
7895 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
7896 |
< |
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
7897 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
7898 |
< |
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
7899 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
7900 |
< |
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
7901 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
7902 |
< |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
7903 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
7904 |
< |
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
7893 |
> |
{ echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 |
7894 |
> |
echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} |
7895 |
> |
{ echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 |
7896 |
> |
echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} |
7897 |
> |
{ echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 |
7898 |
> |
echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} |
7899 |
> |
{ echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 |
7900 |
> |
echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} |
7901 |
> |
{ echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 |
7902 |
> |
echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} |
7903 |
> |
{ echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 |
7904 |
> |
echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} |
7905 |
|
( cat <<\_ASBOX |
7906 |
|
## ------------------------------ ## |
7907 |
|
## Report this to gezelter@nd.edu ## |
7910 |
|
) | sed "s/^/$as_me: WARNING: /" >&2 |
7911 |
|
;; |
7912 |
|
esac |
7913 |
< |
{ echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7914 |
< |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
7915 |
< |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
7913 |
> |
{ echo "$as_me:$LINENO: checking for zlib.h" >&5 |
7914 |
> |
echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; } |
7915 |
> |
if test "${ac_cv_header_zlib_h+set}" = set; then |
7916 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7917 |
|
else |
7918 |
< |
eval "$as_ac_Header=\$ac_header_preproc" |
7918 |
> |
ac_cv_header_zlib_h=$ac_header_preproc |
7919 |
|
fi |
7920 |
< |
ac_res=`eval echo '${'$as_ac_Header'}'` |
7921 |
< |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
9531 |
< |
echo "${ECHO_T}$ac_res" >&6; } |
7920 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 |
7921 |
> |
echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; } |
7922 |
|
|
7923 |
|
fi |
7924 |
< |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
7925 |
< |
cat >>confdefs.h <<_ACEOF |
7926 |
< |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
7924 |
> |
if test $ac_cv_header_zlib_h = yes; then |
7925 |
> |
zlib_cv_zlib_h=yes |
7926 |
> |
else |
7927 |
> |
zlib_cv_zlib_h=no |
7928 |
> |
fi |
7929 |
> |
|
7930 |
> |
|
7931 |
> |
ac_ext=c |
7932 |
> |
ac_cpp='$CPP $CPPFLAGS' |
7933 |
> |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
7934 |
> |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
7935 |
> |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
7936 |
> |
|
7937 |
> |
|
7938 |
> |
if test "$zlib_cv_libz" = "yes" -a "$zlib_cv_zlib_h" = "yes"; then |
7939 |
> |
|
7940 |
> |
cat >>confdefs.h <<\_ACEOF |
7941 |
> |
#define HAVE_ZLIB_H 1 |
7942 |
|
_ACEOF |
7943 |
|
|
7944 |
+ |
|
7945 |
+ |
cat >>confdefs.h <<\_ACEOF |
7946 |
+ |
#define HAVE_LIBZ 1 |
7947 |
+ |
_ACEOF |
7948 |
+ |
|
7949 |
+ |
ZLIB_INC_DIR="${ZLIB_HOME}/include" |
7950 |
+ |
ZLIB_LIB_DIR="${ZLIB_HOME}/lib" |
7951 |
+ |
ZLIB="-lz" |
7952 |
+ |
else |
7953 |
+ |
{ echo "$as_me:$LINENO: checking zlib in ${ZLIB_HOME}" >&5 |
7954 |
+ |
echo $ECHO_N "checking zlib in ${ZLIB_HOME}... $ECHO_C" >&6; } |
7955 |
+ |
ZLIB_INC_DIR= |
7956 |
+ |
ZLIB_LIB_DIR= |
7957 |
+ |
ZLIB= |
7958 |
+ |
LDFLAGS="$ZLIB_OLD_LDFLAGS" |
7959 |
+ |
CFLAGS="$ZLIB_OLD_CFLAGS" |
7960 |
+ |
{ echo "$as_me:$LINENO: result: failed" >&5 |
7961 |
+ |
echo "${ECHO_T}failed" >&6; } |
7962 |
+ |
echo "" |
7963 |
+ |
echo "*********************************************************" |
7964 |
+ |
echo "* WARNING: Could not find a working zlib installation *" |
7965 |
+ |
echo "* If you need OOPSE to be able to deal with compressed *" |
7966 |
+ |
echo "* trajectory dump files be sure to specify a valid zlib *" |
7967 |
+ |
echo "* installation with --with-zlib=DIR *" |
7968 |
+ |
echo "* *" |
7969 |
+ |
echo "* OOPSE will still work without zlib installed. *" |
7970 |
+ |
echo "*********************************************************" |
7971 |
+ |
echo "" |
7972 |
+ |
fi |
7973 |
+ |
|
7974 |
+ |
|
7975 |
+ |
|
7976 |
|
fi |
7977 |
+ |
fi |
7978 |
|
|
7979 |
< |
done |
7979 |
> |
# |
7980 |
> |
# Handle user hints |
7981 |
> |
# |
7982 |
|
|
7983 |
< |
{ echo "$as_me:$LINENO: checking types of arguments for select" >&5 |
7984 |
< |
echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; } |
7985 |
< |
if test "${ac_cv_func_select_args+set}" = set; then |
7983 |
> |
# Check whether --with-fftw was given. |
7984 |
> |
if test "${with_fftw+set}" = set; then |
7985 |
> |
withval=$with_fftw; fftw_dir="$withval" |
7986 |
> |
else |
7987 |
> |
fftw_dir="not_set" |
7988 |
> |
fi |
7989 |
> |
|
7990 |
> |
if test "$fftw_dir" != "no"; then |
7991 |
> |
if test "$fftw_dir" != "not_set" ; then |
7992 |
> |
if test -d "$fftw_dir"; then |
7993 |
> |
FFTW_HOME="$fftw_dir" |
7994 |
> |
else |
7995 |
> |
{ echo "$as_me:$LINENO: WARNING: Sorry, $fftw_dir does not exist, checking usual places" >&5 |
7996 |
> |
echo "$as_me: WARNING: Sorry, $fftw_dir does not exist, checking usual places" >&2;} |
7997 |
> |
FFTW_HOME=/usr/local |
7998 |
> |
if test ! -f "${FFTW_HOME}/include/fftw3.h" -o -f "${FFTW_HOME}/include/fftw.h" -o -f "${FFTW_HOME}/include/dfftw.h"; then |
7999 |
> |
FFTW_HOME=/usr |
8000 |
> |
fi |
8001 |
> |
fi |
8002 |
> |
# |
8003 |
> |
# Locate fftw, if wanted |
8004 |
> |
# |
8005 |
> |
if test -n "${FFTW_HOME}"; then |
8006 |
> |
FFTW_OLD_LDFLAGS=$LDFLAGS |
8007 |
> |
FFTW_OLD_CFLAGS=$CFLAGS |
8008 |
> |
LDFLAGS="$LDFLAGS -L${FFTW_HOME}/lib" |
8009 |
> |
CFLAGS="$CFLAGS -I${FFTW_HOME}/include" |
8010 |
> |
|
8011 |
> |
ac_ext=c |
8012 |
> |
ac_cpp='$CPP $CPPFLAGS' |
8013 |
> |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
8014 |
> |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
8015 |
> |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
8016 |
> |
|
8017 |
> |
{ echo "$as_me:$LINENO: checking for fftw_execute in -lfftw3" >&5 |
8018 |
> |
echo $ECHO_N "checking for fftw_execute in -lfftw3... $ECHO_C" >&6; } |
8019 |
> |
if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then |
8020 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8021 |
|
else |
8022 |
< |
for ac_arg234 in 'fd_set *' 'int *' 'void *'; do |
8023 |
< |
for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do |
8024 |
< |
for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do |
9551 |
< |
cat >conftest.$ac_ext <<_ACEOF |
8022 |
> |
ac_check_lib_save_LIBS=$LIBS |
8023 |
> |
LIBS="-lfftw3 $LIBS" |
8024 |
> |
cat >conftest.$ac_ext <<_ACEOF |
8025 |
|
/* confdefs.h. */ |
8026 |
|
_ACEOF |
8027 |
|
cat confdefs.h >>conftest.$ac_ext |
8028 |
|
cat >>conftest.$ac_ext <<_ACEOF |
8029 |
|
/* end confdefs.h. */ |
9557 |
– |
$ac_includes_default |
9558 |
– |
#ifdef HAVE_SYS_SELECT_H |
9559 |
– |
# include <sys/select.h> |
9560 |
– |
#endif |
9561 |
– |
#ifdef HAVE_SYS_SOCKET_H |
9562 |
– |
# include <sys/socket.h> |
9563 |
– |
#endif |
8030 |
|
|
8031 |
+ |
/* Override any GCC internal prototype to avoid an error. |
8032 |
+ |
Use char because int might match the return type of a GCC |
8033 |
+ |
builtin and then its argument prototype would still apply. */ |
8034 |
+ |
#ifdef __cplusplus |
8035 |
+ |
extern "C" |
8036 |
+ |
#endif |
8037 |
+ |
char fftw_execute (); |
8038 |
|
#ifdef FC_DUMMY_MAIN |
8039 |
|
#ifndef FC_DUMMY_MAIN_EQ_F77 |
8040 |
|
# ifdef __cplusplus |
8046 |
|
int |
8047 |
|
main () |
8048 |
|
{ |
8049 |
< |
extern int select ($ac_arg1, |
9577 |
< |
$ac_arg234, $ac_arg234, $ac_arg234, |
9578 |
< |
$ac_arg5); |
8049 |
> |
return fftw_execute (); |
8050 |
|
; |
8051 |
|
return 0; |
8052 |
|
} |
8053 |
|
_ACEOF |
8054 |
< |
rm -rf conftest.$ac_objext |
8055 |
< |
if { (ac_try="$ac_compile" |
8054 |
> |
rm -f conftest.$ac_objext conftest$ac_exeext |
8055 |
> |
if { (ac_try="$ac_link" |
8056 |
|
case "(($ac_try" in |
8057 |
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8058 |
|
*) ac_try_echo=$ac_try;; |
8059 |
|
esac |
8060 |
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8061 |
< |
(eval "$ac_compile") 2>conftest.er1 |
8061 |
> |
(eval "$ac_link") 2>conftest.er1 |
8062 |
|
ac_status=$? |
8063 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
8064 |
|
rm -f conftest.er1 |
8067 |
|
(exit $ac_status); } && { |
8068 |
|
test -z "$ac_c_werror_flag" || |
8069 |
|
test ! -s conftest.err |
8070 |
< |
} && test -s conftest.$ac_objext; then |
8071 |
< |
ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 |
8070 |
> |
} && test -s conftest$ac_exeext && |
8071 |
> |
$as_test_x conftest$ac_exeext; then |
8072 |
> |
ac_cv_lib_fftw3_fftw_execute=yes |
8073 |
|
else |
8074 |
|
echo "$as_me: failed program was:" >&5 |
8075 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
8076 |
|
|
8077 |
< |
|
8077 |
> |
ac_cv_lib_fftw3_fftw_execute=no |
8078 |
|
fi |
8079 |
|
|
8080 |
< |
rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext |
8081 |
< |
done |
8082 |
< |
done |
9611 |
< |
done |
9612 |
< |
# Provide a safe default value. |
9613 |
< |
: ${ac_cv_func_select_args='int,int *,struct timeval *'} |
9614 |
< |
|
8080 |
> |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8081 |
> |
conftest$ac_exeext conftest.$ac_ext |
8082 |
> |
LIBS=$ac_check_lib_save_LIBS |
8083 |
|
fi |
8084 |
< |
{ echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5 |
8085 |
< |
echo "${ECHO_T}$ac_cv_func_select_args" >&6; } |
8086 |
< |
ac_save_IFS=$IFS; IFS=',' |
8087 |
< |
set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` |
8088 |
< |
IFS=$ac_save_IFS |
8089 |
< |
shift |
8084 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_lib_fftw3_fftw_execute" >&5 |
8085 |
> |
echo "${ECHO_T}$ac_cv_lib_fftw3_fftw_execute" >&6; } |
8086 |
> |
if test $ac_cv_lib_fftw3_fftw_execute = yes; then |
8087 |
> |
fftw_cv_libfftw3=yes |
8088 |
> |
else |
8089 |
> |
fftw_cv_libfftw3=no |
8090 |
> |
fi |
8091 |
|
|
8092 |
< |
cat >>confdefs.h <<_ACEOF |
8093 |
< |
#define SELECT_TYPE_ARG1 $1 |
8094 |
< |
_ACEOF |
8095 |
< |
|
9627 |
< |
|
9628 |
< |
cat >>confdefs.h <<_ACEOF |
9629 |
< |
#define SELECT_TYPE_ARG234 ($2) |
9630 |
< |
_ACEOF |
9631 |
< |
|
9632 |
< |
|
9633 |
< |
cat >>confdefs.h <<_ACEOF |
9634 |
< |
#define SELECT_TYPE_ARG5 ($3) |
9635 |
< |
_ACEOF |
9636 |
< |
|
9637 |
< |
rm -rf conftest* |
9638 |
< |
|
9639 |
< |
|
9640 |
< |
for ac_func in strftime |
9641 |
< |
do |
9642 |
< |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
9643 |
< |
{ echo "$as_me:$LINENO: checking for $ac_func" >&5 |
9644 |
< |
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
9645 |
< |
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
8092 |
> |
if test "${ac_cv_header_fftw3_h+set}" = set; then |
8093 |
> |
{ echo "$as_me:$LINENO: checking for fftw3.h" >&5 |
8094 |
> |
echo $ECHO_N "checking for fftw3.h... $ECHO_C" >&6; } |
8095 |
> |
if test "${ac_cv_header_fftw3_h+set}" = set; then |
8096 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8097 |
+ |
fi |
8098 |
+ |
{ echo "$as_me:$LINENO: result: $ac_cv_header_fftw3_h" >&5 |
8099 |
+ |
echo "${ECHO_T}$ac_cv_header_fftw3_h" >&6; } |
8100 |
|
else |
8101 |
< |
cat >conftest.$ac_ext <<_ACEOF |
8101 |
> |
# Is the header compilable? |
8102 |
> |
{ echo "$as_me:$LINENO: checking fftw3.h usability" >&5 |
8103 |
> |
echo $ECHO_N "checking fftw3.h usability... $ECHO_C" >&6; } |
8104 |
> |
cat >conftest.$ac_ext <<_ACEOF |
8105 |
|
/* confdefs.h. */ |
8106 |
|
_ACEOF |
8107 |
|
cat confdefs.h >>conftest.$ac_ext |
8108 |
|
cat >>conftest.$ac_ext <<_ACEOF |
8109 |
|
/* end confdefs.h. */ |
8110 |
< |
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8111 |
< |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
8112 |
< |
#define $ac_func innocuous_$ac_func |
8110 |
> |
$ac_includes_default |
8111 |
> |
#include <fftw3.h> |
8112 |
> |
_ACEOF |
8113 |
> |
rm -f conftest.$ac_objext |
8114 |
> |
if { (ac_try="$ac_compile" |
8115 |
> |
case "(($ac_try" in |
8116 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8117 |
> |
*) ac_try_echo=$ac_try;; |
8118 |
> |
esac |
8119 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8120 |
> |
(eval "$ac_compile") 2>conftest.er1 |
8121 |
> |
ac_status=$? |
8122 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
8123 |
> |
rm -f conftest.er1 |
8124 |
> |
cat conftest.err >&5 |
8125 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8126 |
> |
(exit $ac_status); } && { |
8127 |
> |
test -z "$ac_c_werror_flag" || |
8128 |
> |
test ! -s conftest.err |
8129 |
> |
} && test -s conftest.$ac_objext; then |
8130 |
> |
ac_header_compiler=yes |
8131 |
> |
else |
8132 |
> |
echo "$as_me: failed program was:" >&5 |
8133 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
8134 |
|
|
8135 |
< |
/* System header to define __stub macros and hopefully few prototypes, |
8136 |
< |
which can conflict with char $ac_func (); below. |
9660 |
< |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
9661 |
< |
<limits.h> exists even on freestanding compilers. */ |
8135 |
> |
ac_header_compiler=no |
8136 |
> |
fi |
8137 |
|
|
8138 |
< |
#ifdef __STDC__ |
8139 |
< |
# include <limits.h> |
8140 |
< |
#else |
9666 |
< |
# include <assert.h> |
9667 |
< |
#endif |
8138 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8139 |
> |
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8140 |
> |
echo "${ECHO_T}$ac_header_compiler" >&6; } |
8141 |
|
|
8142 |
< |
#undef $ac_func |
8143 |
< |
|
8144 |
< |
/* Override any GCC internal prototype to avoid an error. |
8145 |
< |
Use char because int might match the return type of a GCC |
8146 |
< |
builtin and then its argument prototype would still apply. */ |
9674 |
< |
#ifdef __cplusplus |
9675 |
< |
extern "C" |
9676 |
< |
#endif |
9677 |
< |
char $ac_func (); |
9678 |
< |
/* The GNU C library defines this for functions which it implements |
9679 |
< |
to always fail with ENOSYS. Some functions are actually named |
9680 |
< |
something starting with __ and the normal name is an alias. */ |
9681 |
< |
#if defined __stub_$ac_func || defined __stub___$ac_func |
9682 |
< |
choke me |
9683 |
< |
#endif |
9684 |
< |
|
9685 |
< |
#ifdef FC_DUMMY_MAIN |
9686 |
< |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
9687 |
< |
# ifdef __cplusplus |
9688 |
< |
extern "C" |
9689 |
< |
# endif |
9690 |
< |
int FC_DUMMY_MAIN() { return 1; } |
9691 |
< |
#endif |
9692 |
< |
#endif |
9693 |
< |
int |
9694 |
< |
main () |
9695 |
< |
{ |
9696 |
< |
return $ac_func (); |
9697 |
< |
; |
9698 |
< |
return 0; |
9699 |
< |
} |
8142 |
> |
# Is the header present? |
8143 |
> |
{ echo "$as_me:$LINENO: checking fftw3.h presence" >&5 |
8144 |
> |
echo $ECHO_N "checking fftw3.h presence... $ECHO_C" >&6; } |
8145 |
> |
cat >conftest.$ac_ext <<_ACEOF |
8146 |
> |
/* confdefs.h. */ |
8147 |
|
_ACEOF |
8148 |
< |
rm -rf conftest.$ac_objext conftest$ac_exeext |
8149 |
< |
if { (ac_try="$ac_link" |
8148 |
> |
cat confdefs.h >>conftest.$ac_ext |
8149 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
8150 |
> |
/* end confdefs.h. */ |
8151 |
> |
#include <fftw3.h> |
8152 |
> |
_ACEOF |
8153 |
> |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
8154 |
|
case "(($ac_try" in |
8155 |
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8156 |
|
*) ac_try_echo=$ac_try;; |
8157 |
|
esac |
8158 |
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8159 |
< |
(eval "$ac_link") 2>conftest.er1 |
8159 |
> |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
8160 |
|
ac_status=$? |
8161 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
8162 |
|
rm -f conftest.er1 |
8163 |
|
cat conftest.err >&5 |
8164 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8165 |
< |
(exit $ac_status); } && { |
8166 |
< |
test -z "$ac_c_werror_flag" || |
8165 |
> |
(exit $ac_status); } >/dev/null && { |
8166 |
> |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
8167 |
|
test ! -s conftest.err |
8168 |
< |
} && test -s conftest$ac_exeext && |
8169 |
< |
$as_test_x conftest$ac_exeext; then |
9719 |
< |
eval "$as_ac_var=yes" |
8168 |
> |
}; then |
8169 |
> |
ac_header_preproc=yes |
8170 |
|
else |
8171 |
|
echo "$as_me: failed program was:" >&5 |
8172 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
8173 |
|
|
8174 |
< |
eval "$as_ac_var=no" |
8174 |
> |
ac_header_preproc=no |
8175 |
|
fi |
8176 |
|
|
8177 |
< |
rm -rf core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8178 |
< |
conftest$ac_exeext conftest.$ac_ext |
8177 |
> |
rm -f conftest.err conftest.$ac_ext |
8178 |
> |
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8179 |
> |
echo "${ECHO_T}$ac_header_preproc" >&6; } |
8180 |
> |
|
8181 |
> |
# So? What about this header? |
8182 |
> |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
8183 |
> |
yes:no: ) |
8184 |
> |
{ echo "$as_me:$LINENO: WARNING: fftw3.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
8185 |
> |
echo "$as_me: WARNING: fftw3.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
8186 |
> |
{ echo "$as_me:$LINENO: WARNING: fftw3.h: proceeding with the compiler's result" >&5 |
8187 |
> |
echo "$as_me: WARNING: fftw3.h: proceeding with the compiler's result" >&2;} |
8188 |
> |
ac_header_preproc=yes |
8189 |
> |
;; |
8190 |
> |
no:yes:* ) |
8191 |
> |
{ echo "$as_me:$LINENO: WARNING: fftw3.h: present but cannot be compiled" >&5 |
8192 |
> |
echo "$as_me: WARNING: fftw3.h: present but cannot be compiled" >&2;} |
8193 |
> |
{ echo "$as_me:$LINENO: WARNING: fftw3.h: check for missing prerequisite headers?" >&5 |
8194 |
> |
echo "$as_me: WARNING: fftw3.h: check for missing prerequisite headers?" >&2;} |
8195 |
> |
{ echo "$as_me:$LINENO: WARNING: fftw3.h: see the Autoconf documentation" >&5 |
8196 |
> |
echo "$as_me: WARNING: fftw3.h: see the Autoconf documentation" >&2;} |
8197 |
> |
{ echo "$as_me:$LINENO: WARNING: fftw3.h: section \"Present But Cannot Be Compiled\"" >&5 |
8198 |
> |
echo "$as_me: WARNING: fftw3.h: section \"Present But Cannot Be Compiled\"" >&2;} |
8199 |
> |
{ echo "$as_me:$LINENO: WARNING: fftw3.h: proceeding with the preprocessor's result" >&5 |
8200 |
> |
echo "$as_me: WARNING: fftw3.h: proceeding with the preprocessor's result" >&2;} |
8201 |
> |
{ echo "$as_me:$LINENO: WARNING: fftw3.h: in the future, the compiler will take precedence" >&5 |
8202 |
> |
echo "$as_me: WARNING: fftw3.h: in the future, the compiler will take precedence" >&2;} |
8203 |
> |
( cat <<\_ASBOX |
8204 |
> |
## ------------------------------ ## |
8205 |
> |
## Report this to gezelter@nd.edu ## |
8206 |
> |
## ------------------------------ ## |
8207 |
> |
_ASBOX |
8208 |
> |
) | sed "s/^/$as_me: WARNING: /" >&2 |
8209 |
> |
;; |
8210 |
> |
esac |
8211 |
> |
{ echo "$as_me:$LINENO: checking for fftw3.h" >&5 |
8212 |
> |
echo $ECHO_N "checking for fftw3.h... $ECHO_C" >&6; } |
8213 |
> |
if test "${ac_cv_header_fftw3_h+set}" = set; then |
8214 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8215 |
> |
else |
8216 |
> |
ac_cv_header_fftw3_h=$ac_header_preproc |
8217 |
|
fi |
8218 |
< |
ac_res=`eval echo '${'$as_ac_var'}'` |
8219 |
< |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
9732 |
< |
echo "${ECHO_T}$ac_res" >&6; } |
9733 |
< |
if test `eval echo '${'$as_ac_var'}'` = yes; then |
9734 |
< |
cat >>confdefs.h <<_ACEOF |
9735 |
< |
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
9736 |
< |
_ACEOF |
8218 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_header_fftw3_h" >&5 |
8219 |
> |
echo "${ECHO_T}$ac_cv_header_fftw3_h" >&6; } |
8220 |
|
|
8221 |
+ |
fi |
8222 |
+ |
if test $ac_cv_header_fftw3_h = yes; then |
8223 |
+ |
fftw_cv_fftw3_h=yes |
8224 |
|
else |
8225 |
< |
# strftime is in -lintl on SCO UNIX. |
8226 |
< |
{ echo "$as_me:$LINENO: checking for strftime in -lintl" >&5 |
8227 |
< |
echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; } |
8228 |
< |
if test "${ac_cv_lib_intl_strftime+set}" = set; then |
8225 |
> |
fftw_cv_fftw3_h=no |
8226 |
> |
fi |
8227 |
> |
|
8228 |
> |
|
8229 |
> |
if test "$fftw_cv_libfftw3" = "no" -o "$fftw_cv_fftw3_h" = "no"; then |
8230 |
> |
{ echo "$as_me:$LINENO: checking for fftwnd_one in -lfftw" >&5 |
8231 |
> |
echo $ECHO_N "checking for fftwnd_one in -lfftw... $ECHO_C" >&6; } |
8232 |
> |
if test "${ac_cv_lib_fftw_fftwnd_one+set}" = set; then |
8233 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8234 |
|
else |
8235 |
|
ac_check_lib_save_LIBS=$LIBS |
8236 |
< |
LIBS="-lintl $LIBS" |
8236 |
> |
LIBS="-lfftw $LIBS" |
8237 |
|
cat >conftest.$ac_ext <<_ACEOF |
8238 |
|
/* confdefs.h. */ |
8239 |
|
_ACEOF |
8247 |
|
#ifdef __cplusplus |
8248 |
|
extern "C" |
8249 |
|
#endif |
8250 |
< |
char strftime (); |
8250 |
> |
char fftwnd_one (); |
8251 |
|
#ifdef FC_DUMMY_MAIN |
8252 |
|
#ifndef FC_DUMMY_MAIN_EQ_F77 |
8253 |
|
# ifdef __cplusplus |
8259 |
|
int |
8260 |
|
main () |
8261 |
|
{ |
8262 |
< |
return strftime (); |
8262 |
> |
return fftwnd_one (); |
8263 |
|
; |
8264 |
|
return 0; |
8265 |
|
} |
8266 |
|
_ACEOF |
8267 |
< |
rm -rf conftest.$ac_objext conftest$ac_exeext |
8267 |
> |
rm -f conftest.$ac_objext conftest$ac_exeext |
8268 |
|
if { (ac_try="$ac_link" |
8269 |
|
case "(($ac_try" in |
8270 |
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8282 |
|
test ! -s conftest.err |
8283 |
|
} && test -s conftest$ac_exeext && |
8284 |
|
$as_test_x conftest$ac_exeext; then |
8285 |
< |
ac_cv_lib_intl_strftime=yes |
8285 |
> |
ac_cv_lib_fftw_fftwnd_one=yes |
8286 |
|
else |
8287 |
|
echo "$as_me: failed program was:" >&5 |
8288 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
8289 |
|
|
8290 |
< |
ac_cv_lib_intl_strftime=no |
8290 |
> |
ac_cv_lib_fftw_fftwnd_one=no |
8291 |
|
fi |
8292 |
|
|
8293 |
< |
rm -rf core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8293 |
> |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8294 |
|
conftest$ac_exeext conftest.$ac_ext |
8295 |
|
LIBS=$ac_check_lib_save_LIBS |
8296 |
|
fi |
8297 |
< |
{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5 |
8298 |
< |
echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; } |
8299 |
< |
if test $ac_cv_lib_intl_strftime = yes; then |
8300 |
< |
cat >>confdefs.h <<\_ACEOF |
8301 |
< |
#define HAVE_STRFTIME 1 |
8302 |
< |
_ACEOF |
9813 |
< |
|
9814 |
< |
LIBS="-lintl $LIBS" |
8297 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_lib_fftw_fftwnd_one" >&5 |
8298 |
> |
echo "${ECHO_T}$ac_cv_lib_fftw_fftwnd_one" >&6; } |
8299 |
> |
if test $ac_cv_lib_fftw_fftwnd_one = yes; then |
8300 |
> |
fftw_cv_libfftw=yes |
8301 |
> |
else |
8302 |
> |
fftw_cv_libfftw=no |
8303 |
|
fi |
8304 |
|
|
8305 |
< |
fi |
8306 |
< |
done |
8307 |
< |
|
8308 |
< |
{ echo "$as_me:$LINENO: checking for working strtod" >&5 |
9821 |
< |
echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; } |
9822 |
< |
if test "${ac_cv_func_strtod+set}" = set; then |
8305 |
> |
if test "${ac_cv_header_fftw_h+set}" = set; then |
8306 |
> |
{ echo "$as_me:$LINENO: checking for fftw.h" >&5 |
8307 |
> |
echo $ECHO_N "checking for fftw.h... $ECHO_C" >&6; } |
8308 |
> |
if test "${ac_cv_header_fftw_h+set}" = set; then |
8309 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8310 |
+ |
fi |
8311 |
+ |
{ echo "$as_me:$LINENO: result: $ac_cv_header_fftw_h" >&5 |
8312 |
+ |
echo "${ECHO_T}$ac_cv_header_fftw_h" >&6; } |
8313 |
|
else |
8314 |
< |
if test "$cross_compiling" = yes; then |
8315 |
< |
ac_cv_func_strtod=no |
8316 |
< |
else |
8317 |
< |
cat >conftest.$ac_ext <<_ACEOF |
8314 |
> |
# Is the header compilable? |
8315 |
> |
{ echo "$as_me:$LINENO: checking fftw.h usability" >&5 |
8316 |
> |
echo $ECHO_N "checking fftw.h usability... $ECHO_C" >&6; } |
8317 |
> |
cat >conftest.$ac_ext <<_ACEOF |
8318 |
|
/* confdefs.h. */ |
8319 |
|
_ACEOF |
8320 |
|
cat confdefs.h >>conftest.$ac_ext |
8321 |
|
cat >>conftest.$ac_ext <<_ACEOF |
8322 |
|
/* end confdefs.h. */ |
9834 |
– |
|
8323 |
|
$ac_includes_default |
8324 |
< |
#ifndef strtod |
9837 |
< |
double strtod (); |
9838 |
< |
#endif |
9839 |
< |
int |
9840 |
< |
main() |
9841 |
< |
{ |
9842 |
< |
{ |
9843 |
< |
/* Some versions of Linux strtod mis-parse strings with leading '+'. */ |
9844 |
< |
char *string = " +69"; |
9845 |
< |
char *term; |
9846 |
< |
double value; |
9847 |
< |
value = strtod (string, &term); |
9848 |
< |
if (value != 69 || term != (string + 4)) |
9849 |
< |
return 1; |
9850 |
< |
} |
9851 |
< |
|
9852 |
< |
{ |
9853 |
< |
/* Under Solaris 2.4, strtod returns the wrong value for the |
9854 |
< |
terminating character under some conditions. */ |
9855 |
< |
char *string = "NaN"; |
9856 |
< |
char *term; |
9857 |
< |
strtod (string, &term); |
9858 |
< |
if (term != string && *(term - 1) == 0) |
9859 |
< |
return 1; |
9860 |
< |
} |
9861 |
< |
return 0; |
9862 |
< |
} |
9863 |
< |
|
8324 |
> |
#include <fftw.h> |
8325 |
|
_ACEOF |
8326 |
< |
rm -f conftest$ac_exeext |
8327 |
< |
if { (ac_try="$ac_link" |
8326 |
> |
rm -f conftest.$ac_objext |
8327 |
> |
if { (ac_try="$ac_compile" |
8328 |
|
case "(($ac_try" in |
8329 |
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8330 |
|
*) ac_try_echo=$ac_try;; |
8331 |
|
esac |
8332 |
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8333 |
< |
(eval "$ac_link") 2>&5 |
8333 |
> |
(eval "$ac_compile") 2>conftest.er1 |
8334 |
|
ac_status=$? |
8335 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
8336 |
+ |
rm -f conftest.er1 |
8337 |
+ |
cat conftest.err >&5 |
8338 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8339 |
< |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
8340 |
< |
{ (case "(($ac_try" in |
8341 |
< |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8342 |
< |
*) ac_try_echo=$ac_try;; |
8343 |
< |
esac |
9880 |
< |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9881 |
< |
(eval "$ac_try") 2>&5 |
9882 |
< |
ac_status=$? |
9883 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9884 |
< |
(exit $ac_status); }; }; then |
9885 |
< |
ac_cv_func_strtod=yes |
8339 |
> |
(exit $ac_status); } && { |
8340 |
> |
test -z "$ac_c_werror_flag" || |
8341 |
> |
test ! -s conftest.err |
8342 |
> |
} && test -s conftest.$ac_objext; then |
8343 |
> |
ac_header_compiler=yes |
8344 |
|
else |
8345 |
< |
echo "$as_me: program exited with status $ac_status" >&5 |
9888 |
< |
echo "$as_me: failed program was:" >&5 |
8345 |
> |
echo "$as_me: failed program was:" >&5 |
8346 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
8347 |
|
|
8348 |
< |
( exit $ac_status ) |
9892 |
< |
ac_cv_func_strtod=no |
8348 |
> |
ac_header_compiler=no |
8349 |
|
fi |
9894 |
– |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
9895 |
– |
fi |
8350 |
|
|
8351 |
+ |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8352 |
+ |
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8353 |
+ |
echo "${ECHO_T}$ac_header_compiler" >&6; } |
8354 |
|
|
8355 |
< |
fi |
8356 |
< |
{ echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5 |
8357 |
< |
echo "${ECHO_T}$ac_cv_func_strtod" >&6; } |
8358 |
< |
if test $ac_cv_func_strtod = no; then |
9902 |
< |
case " $LIBOBJS " in |
9903 |
< |
*" strtod.$ac_objext "* ) ;; |
9904 |
< |
*) LIBOBJS="$LIBOBJS strtod.$ac_objext" |
9905 |
< |
;; |
9906 |
< |
esac |
9907 |
< |
|
9908 |
< |
{ echo "$as_me:$LINENO: checking for pow" >&5 |
9909 |
< |
echo $ECHO_N "checking for pow... $ECHO_C" >&6; } |
9910 |
< |
if test "${ac_cv_func_pow+set}" = set; then |
9911 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
9912 |
< |
else |
9913 |
< |
cat >conftest.$ac_ext <<_ACEOF |
8355 |
> |
# Is the header present? |
8356 |
> |
{ echo "$as_me:$LINENO: checking fftw.h presence" >&5 |
8357 |
> |
echo $ECHO_N "checking fftw.h presence... $ECHO_C" >&6; } |
8358 |
> |
cat >conftest.$ac_ext <<_ACEOF |
8359 |
|
/* confdefs.h. */ |
8360 |
|
_ACEOF |
8361 |
|
cat confdefs.h >>conftest.$ac_ext |
8362 |
|
cat >>conftest.$ac_ext <<_ACEOF |
8363 |
|
/* end confdefs.h. */ |
8364 |
< |
/* Define pow to an innocuous variant, in case <limits.h> declares pow. |
9920 |
< |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
9921 |
< |
#define pow innocuous_pow |
9922 |
< |
|
9923 |
< |
/* System header to define __stub macros and hopefully few prototypes, |
9924 |
< |
which can conflict with char pow (); below. |
9925 |
< |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
9926 |
< |
<limits.h> exists even on freestanding compilers. */ |
9927 |
< |
|
9928 |
< |
#ifdef __STDC__ |
9929 |
< |
# include <limits.h> |
9930 |
< |
#else |
9931 |
< |
# include <assert.h> |
9932 |
< |
#endif |
9933 |
< |
|
9934 |
< |
#undef pow |
9935 |
< |
|
9936 |
< |
/* Override any GCC internal prototype to avoid an error. |
9937 |
< |
Use char because int might match the return type of a GCC |
9938 |
< |
builtin and then its argument prototype would still apply. */ |
9939 |
< |
#ifdef __cplusplus |
9940 |
< |
extern "C" |
9941 |
< |
#endif |
9942 |
< |
char pow (); |
9943 |
< |
/* The GNU C library defines this for functions which it implements |
9944 |
< |
to always fail with ENOSYS. Some functions are actually named |
9945 |
< |
something starting with __ and the normal name is an alias. */ |
9946 |
< |
#if defined __stub_pow || defined __stub___pow |
9947 |
< |
choke me |
9948 |
< |
#endif |
9949 |
< |
|
9950 |
< |
#ifdef FC_DUMMY_MAIN |
9951 |
< |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
9952 |
< |
# ifdef __cplusplus |
9953 |
< |
extern "C" |
9954 |
< |
# endif |
9955 |
< |
int FC_DUMMY_MAIN() { return 1; } |
9956 |
< |
#endif |
9957 |
< |
#endif |
9958 |
< |
int |
9959 |
< |
main () |
9960 |
< |
{ |
9961 |
< |
return pow (); |
9962 |
< |
; |
9963 |
< |
return 0; |
9964 |
< |
} |
8364 |
> |
#include <fftw.h> |
8365 |
|
_ACEOF |
8366 |
< |
rm -f conftest.$ac_objext conftest$ac_exeext |
9967 |
< |
if { (ac_try="$ac_link" |
8366 |
> |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
8367 |
|
case "(($ac_try" in |
8368 |
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8369 |
|
*) ac_try_echo=$ac_try;; |
8370 |
|
esac |
8371 |
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8372 |
< |
(eval "$ac_link") 2>conftest.er1 |
8372 |
> |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
8373 |
|
ac_status=$? |
8374 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
8375 |
|
rm -f conftest.er1 |
8376 |
|
cat conftest.err >&5 |
8377 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8378 |
< |
(exit $ac_status); } && { |
8379 |
< |
test -z "$ac_c_werror_flag" || |
8378 |
> |
(exit $ac_status); } >/dev/null && { |
8379 |
> |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
8380 |
|
test ! -s conftest.err |
8381 |
< |
} && test -s conftest$ac_exeext && |
8382 |
< |
$as_test_x conftest$ac_exeext; then |
9984 |
< |
ac_cv_func_pow=yes |
8381 |
> |
}; then |
8382 |
> |
ac_header_preproc=yes |
8383 |
|
else |
8384 |
|
echo "$as_me: failed program was:" >&5 |
8385 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
8386 |
< |
|
8387 |
< |
ac_cv_func_pow=no |
8386 |
> |
|
8387 |
> |
ac_header_preproc=no |
8388 |
> |
fi |
8389 |
> |
|
8390 |
> |
rm -f conftest.err conftest.$ac_ext |
8391 |
> |
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8392 |
> |
echo "${ECHO_T}$ac_header_preproc" >&6; } |
8393 |
> |
|
8394 |
> |
# So? What about this header? |
8395 |
> |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
8396 |
> |
yes:no: ) |
8397 |
> |
{ echo "$as_me:$LINENO: WARNING: fftw.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
8398 |
> |
echo "$as_me: WARNING: fftw.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
8399 |
> |
{ echo "$as_me:$LINENO: WARNING: fftw.h: proceeding with the compiler's result" >&5 |
8400 |
> |
echo "$as_me: WARNING: fftw.h: proceeding with the compiler's result" >&2;} |
8401 |
> |
ac_header_preproc=yes |
8402 |
> |
;; |
8403 |
> |
no:yes:* ) |
8404 |
> |
{ echo "$as_me:$LINENO: WARNING: fftw.h: present but cannot be compiled" >&5 |
8405 |
> |
echo "$as_me: WARNING: fftw.h: present but cannot be compiled" >&2;} |
8406 |
> |
{ echo "$as_me:$LINENO: WARNING: fftw.h: check for missing prerequisite headers?" >&5 |
8407 |
> |
echo "$as_me: WARNING: fftw.h: check for missing prerequisite headers?" >&2;} |
8408 |
> |
{ echo "$as_me:$LINENO: WARNING: fftw.h: see the Autoconf documentation" >&5 |
8409 |
> |
echo "$as_me: WARNING: fftw.h: see the Autoconf documentation" >&2;} |
8410 |
> |
{ echo "$as_me:$LINENO: WARNING: fftw.h: section \"Present But Cannot Be Compiled\"" >&5 |
8411 |
> |
echo "$as_me: WARNING: fftw.h: section \"Present But Cannot Be Compiled\"" >&2;} |
8412 |
> |
{ echo "$as_me:$LINENO: WARNING: fftw.h: proceeding with the preprocessor's result" >&5 |
8413 |
> |
echo "$as_me: WARNING: fftw.h: proceeding with the preprocessor's result" >&2;} |
8414 |
> |
{ echo "$as_me:$LINENO: WARNING: fftw.h: in the future, the compiler will take precedence" >&5 |
8415 |
> |
echo "$as_me: WARNING: fftw.h: in the future, the compiler will take precedence" >&2;} |
8416 |
> |
( cat <<\_ASBOX |
8417 |
> |
## ------------------------------ ## |
8418 |
> |
## Report this to gezelter@nd.edu ## |
8419 |
> |
## ------------------------------ ## |
8420 |
> |
_ASBOX |
8421 |
> |
) | sed "s/^/$as_me: WARNING: /" >&2 |
8422 |
> |
;; |
8423 |
> |
esac |
8424 |
> |
{ echo "$as_me:$LINENO: checking for fftw.h" >&5 |
8425 |
> |
echo $ECHO_N "checking for fftw.h... $ECHO_C" >&6; } |
8426 |
> |
if test "${ac_cv_header_fftw_h+set}" = set; then |
8427 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8428 |
> |
else |
8429 |
> |
ac_cv_header_fftw_h=$ac_header_preproc |
8430 |
|
fi |
8431 |
+ |
{ echo "$as_me:$LINENO: result: $ac_cv_header_fftw_h" >&5 |
8432 |
+ |
echo "${ECHO_T}$ac_cv_header_fftw_h" >&6; } |
8433 |
|
|
9992 |
– |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
9993 |
– |
conftest$ac_exeext conftest.$ac_ext |
8434 |
|
fi |
8435 |
< |
{ echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5 |
8436 |
< |
echo "${ECHO_T}$ac_cv_func_pow" >&6; } |
8435 |
> |
if test $ac_cv_header_fftw_h = yes; then |
8436 |
> |
fftw_cv_fftw_h=yes |
8437 |
> |
else |
8438 |
> |
fftw_cv_fftw_h=no |
8439 |
> |
fi |
8440 |
|
|
8441 |
< |
if test $ac_cv_func_pow = no; then |
8442 |
< |
{ echo "$as_me:$LINENO: checking for pow in -lm" >&5 |
8443 |
< |
echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; } |
8444 |
< |
if test "${ac_cv_lib_m_pow+set}" = set; then |
8441 |
> |
|
8442 |
> |
if test "$fftw_cv_libfftw" = "no" -o "$fftw_cv_fftw_h" = "no"; then |
8443 |
> |
{ echo "$as_me:$LINENO: checking for fftwnd_one in -ldfftw" >&5 |
8444 |
> |
echo $ECHO_N "checking for fftwnd_one in -ldfftw... $ECHO_C" >&6; } |
8445 |
> |
if test "${ac_cv_lib_dfftw_fftwnd_one+set}" = set; then |
8446 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8447 |
|
else |
8448 |
|
ac_check_lib_save_LIBS=$LIBS |
8449 |
< |
LIBS="-lm $LIBS" |
8449 |
> |
LIBS="-ldfftw $LIBS" |
8450 |
|
cat >conftest.$ac_ext <<_ACEOF |
8451 |
|
/* confdefs.h. */ |
8452 |
|
_ACEOF |
8460 |
|
#ifdef __cplusplus |
8461 |
|
extern "C" |
8462 |
|
#endif |
8463 |
< |
char pow (); |
8463 |
> |
char fftwnd_one (); |
8464 |
|
#ifdef FC_DUMMY_MAIN |
8465 |
|
#ifndef FC_DUMMY_MAIN_EQ_F77 |
8466 |
|
# ifdef __cplusplus |
8472 |
|
int |
8473 |
|
main () |
8474 |
|
{ |
8475 |
< |
return pow (); |
8475 |
> |
return fftwnd_one (); |
8476 |
|
; |
8477 |
|
return 0; |
8478 |
|
} |
8495 |
|
test ! -s conftest.err |
8496 |
|
} && test -s conftest$ac_exeext && |
8497 |
|
$as_test_x conftest$ac_exeext; then |
8498 |
< |
ac_cv_lib_m_pow=yes |
8498 |
> |
ac_cv_lib_dfftw_fftwnd_one=yes |
8499 |
|
else |
8500 |
|
echo "$as_me: failed program was:" >&5 |
8501 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
8502 |
|
|
8503 |
< |
ac_cv_lib_m_pow=no |
8503 |
> |
ac_cv_lib_dfftw_fftwnd_one=no |
8504 |
|
fi |
8505 |
|
|
8506 |
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8507 |
|
conftest$ac_exeext conftest.$ac_ext |
8508 |
|
LIBS=$ac_check_lib_save_LIBS |
8509 |
|
fi |
8510 |
< |
{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5 |
8511 |
< |
echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; } |
8512 |
< |
if test $ac_cv_lib_m_pow = yes; then |
8513 |
< |
POW_LIB=-lm |
8510 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dfftw_fftwnd_one" >&5 |
8511 |
> |
echo "${ECHO_T}$ac_cv_lib_dfftw_fftwnd_one" >&6; } |
8512 |
> |
if test $ac_cv_lib_dfftw_fftwnd_one = yes; then |
8513 |
> |
fftw_cv_libdfftw=yes |
8514 |
|
else |
8515 |
< |
{ echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5 |
10072 |
< |
echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} |
8515 |
> |
fftw_cv_libdfftw=no |
8516 |
|
fi |
8517 |
|
|
8518 |
< |
fi |
8519 |
< |
|
8520 |
< |
fi |
8521 |
< |
|
10079 |
< |
|
10080 |
< |
|
10081 |
< |
|
10082 |
< |
|
10083 |
< |
|
10084 |
< |
|
10085 |
< |
|
10086 |
< |
|
10087 |
< |
|
10088 |
< |
|
10089 |
< |
|
10090 |
< |
|
10091 |
< |
|
10092 |
< |
|
10093 |
< |
|
10094 |
< |
|
10095 |
< |
|
10096 |
< |
|
10097 |
< |
|
10098 |
< |
|
10099 |
< |
|
10100 |
< |
|
10101 |
< |
|
10102 |
< |
|
10103 |
< |
|
10104 |
< |
|
10105 |
< |
|
10106 |
< |
for ac_func in floor getpagesize gettimeofday memchr memmove memset pow pstat_getdynamic pstat_getstatic rint select snprintf sranddev sqrt strcasecmp strchr strdup stricmp strncasecmp strnicmp strrchr strstr strtol sysmp getsysinfo sysctl table |
10107 |
< |
do |
10108 |
< |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
10109 |
< |
{ echo "$as_me:$LINENO: checking for $ac_func" >&5 |
10110 |
< |
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
10111 |
< |
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
8518 |
> |
if test "${ac_cv_header_dfftw_h+set}" = set; then |
8519 |
> |
{ echo "$as_me:$LINENO: checking for dfftw.h" >&5 |
8520 |
> |
echo $ECHO_N "checking for dfftw.h... $ECHO_C" >&6; } |
8521 |
> |
if test "${ac_cv_header_dfftw_h+set}" = set; then |
8522 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8523 |
+ |
fi |
8524 |
+ |
{ echo "$as_me:$LINENO: result: $ac_cv_header_dfftw_h" >&5 |
8525 |
+ |
echo "${ECHO_T}$ac_cv_header_dfftw_h" >&6; } |
8526 |
|
else |
8527 |
< |
cat >conftest.$ac_ext <<_ACEOF |
8527 |
> |
# Is the header compilable? |
8528 |
> |
{ echo "$as_me:$LINENO: checking dfftw.h usability" >&5 |
8529 |
> |
echo $ECHO_N "checking dfftw.h usability... $ECHO_C" >&6; } |
8530 |
> |
cat >conftest.$ac_ext <<_ACEOF |
8531 |
|
/* confdefs.h. */ |
8532 |
|
_ACEOF |
8533 |
|
cat confdefs.h >>conftest.$ac_ext |
8534 |
|
cat >>conftest.$ac_ext <<_ACEOF |
8535 |
|
/* end confdefs.h. */ |
8536 |
< |
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8537 |
< |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
10122 |
< |
#define $ac_func innocuous_$ac_func |
10123 |
< |
|
10124 |
< |
/* System header to define __stub macros and hopefully few prototypes, |
10125 |
< |
which can conflict with char $ac_func (); below. |
10126 |
< |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
10127 |
< |
<limits.h> exists even on freestanding compilers. */ |
10128 |
< |
|
10129 |
< |
#ifdef __STDC__ |
10130 |
< |
# include <limits.h> |
10131 |
< |
#else |
10132 |
< |
# include <assert.h> |
10133 |
< |
#endif |
10134 |
< |
|
10135 |
< |
#undef $ac_func |
10136 |
< |
|
10137 |
< |
/* Override any GCC internal prototype to avoid an error. |
10138 |
< |
Use char because int might match the return type of a GCC |
10139 |
< |
builtin and then its argument prototype would still apply. */ |
10140 |
< |
#ifdef __cplusplus |
10141 |
< |
extern "C" |
10142 |
< |
#endif |
10143 |
< |
char $ac_func (); |
10144 |
< |
/* The GNU C library defines this for functions which it implements |
10145 |
< |
to always fail with ENOSYS. Some functions are actually named |
10146 |
< |
something starting with __ and the normal name is an alias. */ |
10147 |
< |
#if defined __stub_$ac_func || defined __stub___$ac_func |
10148 |
< |
choke me |
10149 |
< |
#endif |
10150 |
< |
|
10151 |
< |
#ifdef FC_DUMMY_MAIN |
10152 |
< |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
10153 |
< |
# ifdef __cplusplus |
10154 |
< |
extern "C" |
10155 |
< |
# endif |
10156 |
< |
int FC_DUMMY_MAIN() { return 1; } |
10157 |
< |
#endif |
10158 |
< |
#endif |
10159 |
< |
int |
10160 |
< |
main () |
10161 |
< |
{ |
10162 |
< |
return $ac_func (); |
10163 |
< |
; |
10164 |
< |
return 0; |
10165 |
< |
} |
8536 |
> |
$ac_includes_default |
8537 |
> |
#include <dfftw.h> |
8538 |
|
_ACEOF |
8539 |
< |
rm -f conftest.$ac_objext conftest$ac_exeext |
8540 |
< |
if { (ac_try="$ac_link" |
8539 |
> |
rm -f conftest.$ac_objext |
8540 |
> |
if { (ac_try="$ac_compile" |
8541 |
|
case "(($ac_try" in |
8542 |
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8543 |
|
*) ac_try_echo=$ac_try;; |
8544 |
|
esac |
8545 |
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8546 |
< |
(eval "$ac_link") 2>conftest.er1 |
8546 |
> |
(eval "$ac_compile") 2>conftest.er1 |
8547 |
|
ac_status=$? |
8548 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
8549 |
|
rm -f conftest.er1 |
8552 |
|
(exit $ac_status); } && { |
8553 |
|
test -z "$ac_c_werror_flag" || |
8554 |
|
test ! -s conftest.err |
8555 |
< |
} && test -s conftest$ac_exeext && |
8556 |
< |
$as_test_x conftest$ac_exeext; then |
10185 |
< |
eval "$as_ac_var=yes" |
8555 |
> |
} && test -s conftest.$ac_objext; then |
8556 |
> |
ac_header_compiler=yes |
8557 |
|
else |
8558 |
|
echo "$as_me: failed program was:" >&5 |
8559 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
8560 |
|
|
8561 |
< |
eval "$as_ac_var=no" |
8561 |
> |
ac_header_compiler=no |
8562 |
|
fi |
8563 |
|
|
8564 |
< |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8565 |
< |
conftest$ac_exeext conftest.$ac_ext |
8566 |
< |
fi |
10196 |
< |
ac_res=`eval echo '${'$as_ac_var'}'` |
10197 |
< |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
10198 |
< |
echo "${ECHO_T}$ac_res" >&6; } |
10199 |
< |
if test `eval echo '${'$as_ac_var'}'` = yes; then |
10200 |
< |
cat >>confdefs.h <<_ACEOF |
10201 |
< |
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
10202 |
< |
_ACEOF |
8564 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8565 |
> |
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8566 |
> |
echo "${ECHO_T}$ac_header_compiler" >&6; } |
8567 |
|
|
8568 |
< |
fi |
8569 |
< |
done |
8570 |
< |
|
10207 |
< |
|
10208 |
< |
# special check for _system_configuration because AIX <4.3.2 do not |
10209 |
< |
# contain the `physmem' member. |
10210 |
< |
{ echo "$as_me:$LINENO: checking for external symbol _system_configuration" >&5 |
10211 |
< |
echo $ECHO_N "checking for external symbol _system_configuration... $ECHO_C" >&6; } |
8568 |
> |
# Is the header present? |
8569 |
> |
{ echo "$as_me:$LINENO: checking dfftw.h presence" >&5 |
8570 |
> |
echo $ECHO_N "checking dfftw.h presence... $ECHO_C" >&6; } |
8571 |
|
cat >conftest.$ac_ext <<_ACEOF |
8572 |
|
/* confdefs.h. */ |
8573 |
|
_ACEOF |
8574 |
|
cat confdefs.h >>conftest.$ac_ext |
8575 |
|
cat >>conftest.$ac_ext <<_ACEOF |
8576 |
|
/* end confdefs.h. */ |
8577 |
< |
#include <sys/systemcfg.h> |
10219 |
< |
#ifdef FC_DUMMY_MAIN |
10220 |
< |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
10221 |
< |
# ifdef __cplusplus |
10222 |
< |
extern "C" |
10223 |
< |
# endif |
10224 |
< |
int FC_DUMMY_MAIN() { return 1; } |
10225 |
< |
#endif |
10226 |
< |
#endif |
10227 |
< |
int |
10228 |
< |
main () |
10229 |
< |
{ |
10230 |
< |
double x = _system_configuration.physmem; |
10231 |
< |
; |
10232 |
< |
return 0; |
10233 |
< |
} |
8577 |
> |
#include <dfftw.h> |
8578 |
|
_ACEOF |
8579 |
< |
rm -f conftest.$ac_objext |
10236 |
< |
if { (ac_try="$ac_compile" |
8579 |
> |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
8580 |
|
case "(($ac_try" in |
8581 |
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8582 |
|
*) ac_try_echo=$ac_try;; |
8583 |
|
esac |
8584 |
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8585 |
< |
(eval "$ac_compile") 2>conftest.er1 |
8585 |
> |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
8586 |
|
ac_status=$? |
8587 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
8588 |
|
rm -f conftest.er1 |
8589 |
|
cat conftest.err >&5 |
8590 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8591 |
< |
(exit $ac_status); } && { |
8592 |
< |
test -z "$ac_c_werror_flag" || |
8591 |
> |
(exit $ac_status); } >/dev/null && { |
8592 |
> |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
8593 |
|
test ! -s conftest.err |
8594 |
< |
} && test -s conftest.$ac_objext; then |
8595 |
< |
{ echo "$as_me:$LINENO: result: yes" >&5 |
10253 |
< |
echo "${ECHO_T}yes" >&6; } |
10254 |
< |
|
10255 |
< |
cat >>confdefs.h <<\_ACEOF |
10256 |
< |
#define HAVE__SYSTEM_CONFIGURATION 1 |
10257 |
< |
_ACEOF |
10258 |
< |
|
8594 |
> |
}; then |
8595 |
> |
ac_header_preproc=yes |
8596 |
|
else |
8597 |
|
echo "$as_me: failed program was:" >&5 |
8598 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
8599 |
|
|
8600 |
< |
{ echo "$as_me:$LINENO: result: no" >&5 |
10264 |
< |
echo "${ECHO_T}no" >&6; } |
8600 |
> |
ac_header_preproc=no |
8601 |
|
fi |
8602 |
|
|
8603 |
< |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8603 |
> |
rm -f conftest.err conftest.$ac_ext |
8604 |
> |
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8605 |
> |
echo "${ECHO_T}$ac_header_preproc" >&6; } |
8606 |
|
|
8607 |
< |
# clean out junk possibly left behind by a previous configuration |
8608 |
< |
rm -f src/getopt.h |
8609 |
< |
# Check for getopt_long support |
8607 |
> |
# So? What about this header? |
8608 |
> |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
8609 |
> |
yes:no: ) |
8610 |
> |
{ echo "$as_me:$LINENO: WARNING: dfftw.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
8611 |
> |
echo "$as_me: WARNING: dfftw.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
8612 |
> |
{ echo "$as_me:$LINENO: WARNING: dfftw.h: proceeding with the compiler's result" >&5 |
8613 |
> |
echo "$as_me: WARNING: dfftw.h: proceeding with the compiler's result" >&2;} |
8614 |
> |
ac_header_preproc=yes |
8615 |
> |
;; |
8616 |
> |
no:yes:* ) |
8617 |
> |
{ echo "$as_me:$LINENO: WARNING: dfftw.h: present but cannot be compiled" >&5 |
8618 |
> |
echo "$as_me: WARNING: dfftw.h: present but cannot be compiled" >&2;} |
8619 |
> |
{ echo "$as_me:$LINENO: WARNING: dfftw.h: check for missing prerequisite headers?" >&5 |
8620 |
> |
echo "$as_me: WARNING: dfftw.h: check for missing prerequisite headers?" >&2;} |
8621 |
> |
{ echo "$as_me:$LINENO: WARNING: dfftw.h: see the Autoconf documentation" >&5 |
8622 |
> |
echo "$as_me: WARNING: dfftw.h: see the Autoconf documentation" >&2;} |
8623 |
> |
{ echo "$as_me:$LINENO: WARNING: dfftw.h: section \"Present But Cannot Be Compiled\"" >&5 |
8624 |
> |
echo "$as_me: WARNING: dfftw.h: section \"Present But Cannot Be Compiled\"" >&2;} |
8625 |
> |
{ echo "$as_me:$LINENO: WARNING: dfftw.h: proceeding with the preprocessor's result" >&5 |
8626 |
> |
echo "$as_me: WARNING: dfftw.h: proceeding with the preprocessor's result" >&2;} |
8627 |
> |
{ echo "$as_me:$LINENO: WARNING: dfftw.h: in the future, the compiler will take precedence" >&5 |
8628 |
> |
echo "$as_me: WARNING: dfftw.h: in the future, the compiler will take precedence" >&2;} |
8629 |
> |
( cat <<\_ASBOX |
8630 |
> |
## ------------------------------ ## |
8631 |
> |
## Report this to gezelter@nd.edu ## |
8632 |
> |
## ------------------------------ ## |
8633 |
> |
_ASBOX |
8634 |
> |
) | sed "s/^/$as_me: WARNING: /" >&2 |
8635 |
> |
;; |
8636 |
> |
esac |
8637 |
> |
{ echo "$as_me:$LINENO: checking for dfftw.h" >&5 |
8638 |
> |
echo $ECHO_N "checking for dfftw.h... $ECHO_C" >&6; } |
8639 |
> |
if test "${ac_cv_header_dfftw_h+set}" = set; then |
8640 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8641 |
> |
else |
8642 |
> |
ac_cv_header_dfftw_h=$ac_header_preproc |
8643 |
> |
fi |
8644 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_header_dfftw_h" >&5 |
8645 |
> |
echo "${ECHO_T}$ac_cv_header_dfftw_h" >&6; } |
8646 |
|
|
8647 |
< |
for ac_header in getopt.h |
8648 |
< |
do |
8649 |
< |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
8650 |
< |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
8651 |
< |
{ echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8652 |
< |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
8653 |
< |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
8647 |
> |
fi |
8648 |
> |
if test $ac_cv_header_dfftw_h = yes; then |
8649 |
> |
fftw_cv_dfftw_h=yes |
8650 |
> |
else |
8651 |
> |
fftw_cv_dfftw_h=no |
8652 |
> |
fi |
8653 |
> |
|
8654 |
> |
|
8655 |
> |
fi |
8656 |
> |
fi |
8657 |
> |
ac_ext=c |
8658 |
> |
ac_cpp='$CPP $CPPFLAGS' |
8659 |
> |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
8660 |
> |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
8661 |
> |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
8662 |
> |
|
8663 |
> |
if test "$fftw_cv_libfftw3" = "yes" -a "$fftw_cv_fftw3_h" = "yes"; then |
8664 |
> |
|
8665 |
> |
cat >>confdefs.h <<\_ACEOF |
8666 |
> |
#define HAVE_FFTW3_H 1 |
8667 |
> |
_ACEOF |
8668 |
> |
|
8669 |
> |
FFTW_INC_DIR="${FFTW_HOME}/include" |
8670 |
> |
FFTW_LIB_DIR="${FFTW_HOME}/lib" |
8671 |
> |
FFTW_LIBS="-lfftw3" |
8672 |
> |
else |
8673 |
> |
if test "$fftw_cv_libfftw" = "yes" -a "$fftw_cv_fftw_h" = "yes"; then |
8674 |
> |
|
8675 |
> |
cat >>confdefs.h <<\_ACEOF |
8676 |
> |
#define HAVE_FFTW_H 1 |
8677 |
> |
_ACEOF |
8678 |
> |
|
8679 |
> |
FFTW_INC_DIR="${FFTW_HOME}/include" |
8680 |
> |
FFTW_LIB_DIR="${FFTW_HOME}/lib" |
8681 |
> |
FFTW_LIBS="-lfftw" |
8682 |
> |
else |
8683 |
> |
if test "$fftw_cv_libdfftw" = "yes" -a "$fftw_cv_dfftw_h" = "yes"; then |
8684 |
> |
|
8685 |
> |
cat >>confdefs.h <<\_ACEOF |
8686 |
> |
#define HAVE_DFFTW_H 1 |
8687 |
> |
_ACEOF |
8688 |
> |
|
8689 |
> |
FFTW_INC_DIR="${FFTW_HOME}/include" |
8690 |
> |
FFTW_LIB_DIR="${FFTW_HOME}/lib" |
8691 |
> |
FFTW_LIBS="-ldfftw" |
8692 |
> |
else |
8693 |
> |
{ echo "$as_me:$LINENO: checking fftw in ${FFTW_HOME}" >&5 |
8694 |
> |
echo $ECHO_N "checking fftw in ${FFTW_HOME}... $ECHO_C" >&6; } |
8695 |
> |
FFTW_INC_DIR= |
8696 |
> |
FFTW_LIB_DIR= |
8697 |
> |
FFTW_LIBS= |
8698 |
> |
LDFLAGS="$FFTW_OLD_LDFLAGS" |
8699 |
> |
CFLAGS="$FFTW_OLD_CFLAGS" |
8700 |
> |
{ echo "$as_me:$LINENO: result: failed" >&5 |
8701 |
> |
echo "${ECHO_T}failed" >&6; } |
8702 |
> |
echo "" |
8703 |
> |
echo "*********************************************************" |
8704 |
> |
echo "* WARNING: Could not find a working FFTW installation *" |
8705 |
> |
echo "* If you need the staticProps program to be able to *" |
8706 |
> |
echo "* compute undulation spectra, be sure to specify a *" |
8707 |
> |
echo "* valid fftw installation with --with-fftw=DIR *" |
8708 |
> |
echo "* *" |
8709 |
> |
echo "* OOPSE will still work without fftw installed. *" |
8710 |
> |
echo "*********************************************************" |
8711 |
> |
echo "" |
8712 |
> |
fi |
8713 |
> |
fi |
8714 |
> |
fi |
8715 |
> |
|
8716 |
> |
|
8717 |
> |
|
8718 |
> |
fi |
8719 |
> |
fi |
8720 |
> |
fi |
8721 |
> |
|
8722 |
> |
# |
8723 |
> |
# Handle user hints |
8724 |
> |
# |
8725 |
> |
|
8726 |
> |
# Check whether --with-qhull was given. |
8727 |
> |
if test "${with_qhull+set}" = set; then |
8728 |
> |
withval=$with_qhull; qhull_dir="$withval" |
8729 |
> |
else |
8730 |
> |
qhull_dir="not_set" |
8731 |
> |
fi |
8732 |
> |
|
8733 |
> |
if test "$qhull_dir" != "no"; then |
8734 |
> |
|
8735 |
> |
if test "$qhull_dir" != "not_set" ; then |
8736 |
> |
if test -d "$qhull_dir" |
8737 |
> |
then |
8738 |
> |
QHULL_HOME="$qhull_dir" |
8739 |
> |
else |
8740 |
> |
{ echo "$as_me:$LINENO: WARNING: Sorry, $qhull_dir does not exist, checking usual places" >&5 |
8741 |
> |
echo "$as_me: WARNING: Sorry, $qhull_dir does not exist, checking usual places" >&2;} |
8742 |
> |
QHULL_HOME=/usr/local |
8743 |
> |
if test ! -f "${QHULL_HOME}/include/qhull/qhull.h" |
8744 |
> |
then |
8745 |
> |
QHULL_HOME=/usr |
8746 |
> |
fi |
8747 |
> |
fi |
8748 |
> |
fi |
8749 |
> |
# |
8750 |
> |
# Locate qhull, if wanted |
8751 |
> |
# |
8752 |
> |
if test -n "${QHULL_HOME}" |
8753 |
> |
then |
8754 |
> |
|
8755 |
> |
ac_ext=c |
8756 |
> |
ac_cpp='$CPP $CPPFLAGS' |
8757 |
> |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
8758 |
> |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
8759 |
> |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
8760 |
> |
|
8761 |
> |
QHULL_OLD_LDFLAGS=$LDFLAGS |
8762 |
> |
QHULL_OLD_CFLAGS=$CFLAGS |
8763 |
> |
QHULL_OLD_CPPFLAGS=$CPPFLAGS |
8764 |
> |
LDFLAGS="$LDFLAGS -L${QHULL_HOME}/lib" |
8765 |
> |
CFLAGS="$CFLAGS -I${QHULL_HOME}/include" |
8766 |
> |
CPPFLAGS="$CPPFLAGS -I${QHULL_HOME}/include" |
8767 |
> |
if test "${ac_cv_header_qhull_qhull_h+set}" = set; then |
8768 |
> |
{ echo "$as_me:$LINENO: checking for qhull/qhull.h" >&5 |
8769 |
> |
echo $ECHO_N "checking for qhull/qhull.h... $ECHO_C" >&6; } |
8770 |
> |
if test "${ac_cv_header_qhull_qhull_h+set}" = set; then |
8771 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8772 |
|
fi |
8773 |
< |
ac_res=`eval echo '${'$as_ac_Header'}'` |
8774 |
< |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
10284 |
< |
echo "${ECHO_T}$ac_res" >&6; } |
8773 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_header_qhull_qhull_h" >&5 |
8774 |
> |
echo "${ECHO_T}$ac_cv_header_qhull_qhull_h" >&6; } |
8775 |
|
else |
8776 |
|
# Is the header compilable? |
8777 |
< |
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
8778 |
< |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
8777 |
> |
{ echo "$as_me:$LINENO: checking qhull/qhull.h usability" >&5 |
8778 |
> |
echo $ECHO_N "checking qhull/qhull.h usability... $ECHO_C" >&6; } |
8779 |
|
cat >conftest.$ac_ext <<_ACEOF |
8780 |
|
/* confdefs.h. */ |
8781 |
|
_ACEOF |
8783 |
|
cat >>conftest.$ac_ext <<_ACEOF |
8784 |
|
/* end confdefs.h. */ |
8785 |
|
$ac_includes_default |
8786 |
< |
#include <$ac_header> |
8786 |
> |
#include <qhull/qhull.h> |
8787 |
|
_ACEOF |
8788 |
|
rm -f conftest.$ac_objext |
8789 |
|
if { (ac_try="$ac_compile" |
8815 |
|
echo "${ECHO_T}$ac_header_compiler" >&6; } |
8816 |
|
|
8817 |
|
# Is the header present? |
8818 |
< |
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
8819 |
< |
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
8818 |
> |
{ echo "$as_me:$LINENO: checking qhull/qhull.h presence" >&5 |
8819 |
> |
echo $ECHO_N "checking qhull/qhull.h presence... $ECHO_C" >&6; } |
8820 |
|
cat >conftest.$ac_ext <<_ACEOF |
8821 |
|
/* confdefs.h. */ |
8822 |
|
_ACEOF |
8823 |
|
cat confdefs.h >>conftest.$ac_ext |
8824 |
|
cat >>conftest.$ac_ext <<_ACEOF |
8825 |
|
/* end confdefs.h. */ |
8826 |
< |
#include <$ac_header> |
8826 |
> |
#include <qhull/qhull.h> |
8827 |
|
_ACEOF |
8828 |
|
if { (ac_try="$ac_cpp conftest.$ac_ext" |
8829 |
|
case "(($ac_try" in |
8856 |
|
# So? What about this header? |
8857 |
|
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
8858 |
|
yes:no: ) |
8859 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
8860 |
< |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
8861 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
8862 |
< |
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
8859 |
> |
{ echo "$as_me:$LINENO: WARNING: qhull/qhull.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
8860 |
> |
echo "$as_me: WARNING: qhull/qhull.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
8861 |
> |
{ echo "$as_me:$LINENO: WARNING: qhull/qhull.h: proceeding with the compiler's result" >&5 |
8862 |
> |
echo "$as_me: WARNING: qhull/qhull.h: proceeding with the compiler's result" >&2;} |
8863 |
|
ac_header_preproc=yes |
8864 |
|
;; |
8865 |
|
no:yes:* ) |
8866 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
8867 |
< |
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
8868 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
8869 |
< |
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
8870 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
8871 |
< |
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
8872 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
8873 |
< |
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
8874 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
8875 |
< |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
8876 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
8877 |
< |
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
8866 |
> |
{ echo "$as_me:$LINENO: WARNING: qhull/qhull.h: present but cannot be compiled" >&5 |
8867 |
> |
echo "$as_me: WARNING: qhull/qhull.h: present but cannot be compiled" >&2;} |
8868 |
> |
{ echo "$as_me:$LINENO: WARNING: qhull/qhull.h: check for missing prerequisite headers?" >&5 |
8869 |
> |
echo "$as_me: WARNING: qhull/qhull.h: check for missing prerequisite headers?" >&2;} |
8870 |
> |
{ echo "$as_me:$LINENO: WARNING: qhull/qhull.h: see the Autoconf documentation" >&5 |
8871 |
> |
echo "$as_me: WARNING: qhull/qhull.h: see the Autoconf documentation" >&2;} |
8872 |
> |
{ echo "$as_me:$LINENO: WARNING: qhull/qhull.h: section \"Present But Cannot Be Compiled\"" >&5 |
8873 |
> |
echo "$as_me: WARNING: qhull/qhull.h: section \"Present But Cannot Be Compiled\"" >&2;} |
8874 |
> |
{ echo "$as_me:$LINENO: WARNING: qhull/qhull.h: proceeding with the preprocessor's result" >&5 |
8875 |
> |
echo "$as_me: WARNING: qhull/qhull.h: proceeding with the preprocessor's result" >&2;} |
8876 |
> |
{ echo "$as_me:$LINENO: WARNING: qhull/qhull.h: in the future, the compiler will take precedence" >&5 |
8877 |
> |
echo "$as_me: WARNING: qhull/qhull.h: in the future, the compiler will take precedence" >&2;} |
8878 |
|
( cat <<\_ASBOX |
8879 |
|
## ------------------------------ ## |
8880 |
|
## Report this to gezelter@nd.edu ## |
8883 |
|
) | sed "s/^/$as_me: WARNING: /" >&2 |
8884 |
|
;; |
8885 |
|
esac |
8886 |
< |
{ echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8887 |
< |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
8888 |
< |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
8886 |
> |
{ echo "$as_me:$LINENO: checking for qhull/qhull.h" >&5 |
8887 |
> |
echo $ECHO_N "checking for qhull/qhull.h... $ECHO_C" >&6; } |
8888 |
> |
if test "${ac_cv_header_qhull_qhull_h+set}" = set; then |
8889 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8890 |
|
else |
8891 |
< |
eval "$as_ac_Header=\$ac_header_preproc" |
8891 |
> |
ac_cv_header_qhull_qhull_h=$ac_header_preproc |
8892 |
|
fi |
8893 |
< |
ac_res=`eval echo '${'$as_ac_Header'}'` |
8894 |
< |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
10405 |
< |
echo "${ECHO_T}$ac_res" >&6; } |
8893 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_header_qhull_qhull_h" >&5 |
8894 |
> |
echo "${ECHO_T}$ac_cv_header_qhull_qhull_h" >&6; } |
8895 |
|
|
8896 |
|
fi |
8897 |
< |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
8898 |
< |
cat >>confdefs.h <<_ACEOF |
8899 |
< |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
8900 |
< |
_ACEOF |
10412 |
< |
|
8897 |
> |
if test $ac_cv_header_qhull_qhull_h = yes; then |
8898 |
> |
qhull_cv_qhull_h=yes |
8899 |
> |
else |
8900 |
> |
qhull_cv_qhull_h=no |
8901 |
|
fi |
8902 |
|
|
10415 |
– |
done |
8903 |
|
|
8904 |
< |
|
8905 |
< |
for ac_func in getopt_long |
8906 |
< |
do |
10420 |
< |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
10421 |
< |
{ echo "$as_me:$LINENO: checking for $ac_func" >&5 |
10422 |
< |
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
10423 |
< |
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
8904 |
> |
{ echo "$as_me:$LINENO: checking for qh_qhull in -lqhull" >&5 |
8905 |
> |
echo $ECHO_N "checking for qh_qhull in -lqhull... $ECHO_C" >&6; } |
8906 |
> |
if test "${ac_cv_lib_qhull_qh_qhull+set}" = set; then |
8907 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8908 |
|
else |
8909 |
< |
cat >conftest.$ac_ext <<_ACEOF |
8909 |
> |
ac_check_lib_save_LIBS=$LIBS |
8910 |
> |
LIBS="-lqhull $LIBS" |
8911 |
> |
cat >conftest.$ac_ext <<_ACEOF |
8912 |
|
/* confdefs.h. */ |
8913 |
|
_ACEOF |
8914 |
|
cat confdefs.h >>conftest.$ac_ext |
8915 |
|
cat >>conftest.$ac_ext <<_ACEOF |
8916 |
|
/* end confdefs.h. */ |
10432 |
– |
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
10433 |
– |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
10434 |
– |
#define $ac_func innocuous_$ac_func |
8917 |
|
|
10436 |
– |
/* System header to define __stub macros and hopefully few prototypes, |
10437 |
– |
which can conflict with char $ac_func (); below. |
10438 |
– |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
10439 |
– |
<limits.h> exists even on freestanding compilers. */ |
10440 |
– |
|
10441 |
– |
#ifdef __STDC__ |
10442 |
– |
# include <limits.h> |
10443 |
– |
#else |
10444 |
– |
# include <assert.h> |
10445 |
– |
#endif |
10446 |
– |
|
10447 |
– |
#undef $ac_func |
10448 |
– |
|
8918 |
|
/* Override any GCC internal prototype to avoid an error. |
8919 |
|
Use char because int might match the return type of a GCC |
8920 |
|
builtin and then its argument prototype would still apply. */ |
8921 |
|
#ifdef __cplusplus |
8922 |
|
extern "C" |
8923 |
|
#endif |
8924 |
< |
char $ac_func (); |
10456 |
< |
/* The GNU C library defines this for functions which it implements |
10457 |
< |
to always fail with ENOSYS. Some functions are actually named |
10458 |
< |
something starting with __ and the normal name is an alias. */ |
10459 |
< |
#if defined __stub_$ac_func || defined __stub___$ac_func |
10460 |
< |
choke me |
10461 |
< |
#endif |
10462 |
< |
|
8924 |
> |
char qh_qhull (); |
8925 |
|
#ifdef FC_DUMMY_MAIN |
8926 |
|
#ifndef FC_DUMMY_MAIN_EQ_F77 |
8927 |
|
# ifdef __cplusplus |
8933 |
|
int |
8934 |
|
main () |
8935 |
|
{ |
8936 |
< |
return $ac_func (); |
8936 |
> |
return qh_qhull (); |
8937 |
|
; |
8938 |
|
return 0; |
8939 |
|
} |
8956 |
|
test ! -s conftest.err |
8957 |
|
} && test -s conftest$ac_exeext && |
8958 |
|
$as_test_x conftest$ac_exeext; then |
8959 |
< |
eval "$as_ac_var=yes" |
8959 |
> |
ac_cv_lib_qhull_qh_qhull=yes |
8960 |
|
else |
8961 |
|
echo "$as_me: failed program was:" >&5 |
8962 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
8963 |
|
|
8964 |
< |
eval "$as_ac_var=no" |
8964 |
> |
ac_cv_lib_qhull_qh_qhull=no |
8965 |
|
fi |
8966 |
|
|
8967 |
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8968 |
|
conftest$ac_exeext conftest.$ac_ext |
8969 |
+ |
LIBS=$ac_check_lib_save_LIBS |
8970 |
|
fi |
8971 |
< |
ac_res=`eval echo '${'$as_ac_var'}'` |
8972 |
< |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
8973 |
< |
echo "${ECHO_T}$ac_res" >&6; } |
8974 |
< |
if test `eval echo '${'$as_ac_var'}'` = yes; then |
8975 |
< |
cat >>confdefs.h <<_ACEOF |
8976 |
< |
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
8971 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_lib_qhull_qh_qhull" >&5 |
8972 |
> |
echo "${ECHO_T}$ac_cv_lib_qhull_qh_qhull" >&6; } |
8973 |
> |
if test $ac_cv_lib_qhull_qh_qhull = yes; then |
8974 |
> |
qhull_cv_libqhull=yes |
8975 |
> |
else |
8976 |
> |
qhull_cv_libqhull=no |
8977 |
> |
fi |
8978 |
> |
|
8979 |
> |
LDFLAGS="$QHULL_OLD_LDFLAGS" |
8980 |
> |
CFLAGS="$QHULL_OLD_CFLAGS" |
8981 |
> |
CPPFLAGS="$QHULL_OLD_CPPFLAGS" |
8982 |
> |
ac_ext=c |
8983 |
> |
ac_cpp='$CPP $CPPFLAGS' |
8984 |
> |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
8985 |
> |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
8986 |
> |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
8987 |
> |
|
8988 |
> |
|
8989 |
> |
if test "$qhull_cv_libqhull" = "yes" -a "$qhull_cv_qhull_h" = "yes"; then |
8990 |
> |
|
8991 |
> |
cat >>confdefs.h <<\_ACEOF |
8992 |
> |
#define HAVE_QHULL_H 1 |
8993 |
|
_ACEOF |
8994 |
|
|
8995 |
< |
else |
8996 |
< |
# FreeBSD has a gnugetopt library for this |
8997 |
< |
{ echo "$as_me:$LINENO: checking for getopt_long in -lgnugetopt" >&5 |
8998 |
< |
echo $ECHO_N "checking for getopt_long in -lgnugetopt... $ECHO_C" >&6; } |
8999 |
< |
if test "${ac_cv_lib_gnugetopt_getopt_long+set}" = set; then |
8995 |
> |
|
8996 |
> |
cat >>confdefs.h <<\_ACEOF |
8997 |
> |
#define HAVE_QHULL 1 |
8998 |
> |
_ACEOF |
8999 |
> |
|
9000 |
> |
USE_QHULL=yes |
9001 |
> |
QHULL_INC_DIR="${QHULL_HOME}/include" |
9002 |
> |
QHULL_LIB_DIR="${QHULL_HOME}/lib" |
9003 |
> |
QHULL="-lqhull" |
9004 |
> |
else |
9005 |
> |
{ echo "$as_me:$LINENO: checking qhull in ${QHULL_HOME}" >&5 |
9006 |
> |
echo $ECHO_N "checking qhull in ${QHULL_HOME}... $ECHO_C" >&6; } |
9007 |
> |
QHULL_INC_DIR= |
9008 |
> |
QHULL_LIB_DIR= |
9009 |
> |
QHULL= |
9010 |
> |
USE_QHULL=no |
9011 |
> |
{ echo "$as_me:$LINENO: result: failed" >&5 |
9012 |
> |
echo "${ECHO_T}failed" >&6; } |
9013 |
> |
echo "" |
9014 |
> |
echo "*********************************************************" |
9015 |
> |
echo "* WARNING: Could not find a working qhull installation *" |
9016 |
> |
echo "* If you need OOPSE to be able to deal with convex *" |
9017 |
> |
echo "* hulls be sure to specify a valid qhull installation *" |
9018 |
> |
echo "* with --with-qhull=DIR *" |
9019 |
> |
echo "* *" |
9020 |
> |
echo "* OOPSE will still work without qhull installed. *" |
9021 |
> |
echo "*********************************************************" |
9022 |
> |
echo "" |
9023 |
> |
fi |
9024 |
> |
|
9025 |
> |
|
9026 |
> |
|
9027 |
> |
|
9028 |
> |
fi |
9029 |
> |
fi |
9030 |
> |
|
9031 |
> |
|
9032 |
> |
ac_ext=cpp |
9033 |
> |
ac_cpp='$CXXCPP $CPPFLAGS' |
9034 |
> |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
9035 |
> |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
9036 |
> |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
9037 |
> |
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
9038 |
> |
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } |
9039 |
> |
if test -z "$CXXCPP"; then |
9040 |
> |
if test "${ac_cv_prog_CXXCPP+set}" = set; then |
9041 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
9042 |
|
else |
9043 |
< |
ac_check_lib_save_LIBS=$LIBS |
9044 |
< |
LIBS="-lgnugetopt $LIBS" |
9045 |
< |
cat >conftest.$ac_ext <<_ACEOF |
9043 |
> |
# Double quotes because CXXCPP needs to be expanded |
9044 |
> |
for CXXCPP in "$CXX -E" "/lib/cpp" |
9045 |
> |
do |
9046 |
> |
ac_preproc_ok=false |
9047 |
> |
for ac_cxx_preproc_warn_flag in '' yes |
9048 |
> |
do |
9049 |
> |
# Use a header file that comes with gcc, so configuring glibc |
9050 |
> |
# with a fresh cross-compiler works. |
9051 |
> |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
9052 |
> |
# <limits.h> exists even on freestanding compilers. |
9053 |
> |
# On the NeXT, cc -E runs the code through the compiler's parser, |
9054 |
> |
# not just through cpp. "Syntax error" is here to catch this case. |
9055 |
> |
cat >conftest.$ac_ext <<_ACEOF |
9056 |
|
/* confdefs.h. */ |
9057 |
|
_ACEOF |
9058 |
|
cat confdefs.h >>conftest.$ac_ext |
9059 |
|
cat >>conftest.$ac_ext <<_ACEOF |
9060 |
|
/* end confdefs.h. */ |
9061 |
< |
|
9062 |
< |
/* Override any GCC internal prototype to avoid an error. |
9063 |
< |
Use char because int might match the return type of a GCC |
9064 |
< |
builtin and then its argument prototype would still apply. */ |
10535 |
< |
#ifdef __cplusplus |
10536 |
< |
extern "C" |
9061 |
> |
#ifdef __STDC__ |
9062 |
> |
# include <limits.h> |
9063 |
> |
#else |
9064 |
> |
# include <assert.h> |
9065 |
|
#endif |
9066 |
< |
char getopt_long (); |
10539 |
< |
#ifdef FC_DUMMY_MAIN |
10540 |
< |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
10541 |
< |
# ifdef __cplusplus |
10542 |
< |
extern "C" |
10543 |
< |
# endif |
10544 |
< |
int FC_DUMMY_MAIN() { return 1; } |
10545 |
< |
#endif |
10546 |
< |
#endif |
10547 |
< |
int |
10548 |
< |
main () |
10549 |
< |
{ |
10550 |
< |
return getopt_long (); |
10551 |
< |
; |
10552 |
< |
return 0; |
10553 |
< |
} |
9066 |
> |
Syntax error |
9067 |
|
_ACEOF |
9068 |
< |
rm -f conftest.$ac_objext conftest$ac_exeext |
10556 |
< |
if { (ac_try="$ac_link" |
9068 |
> |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
9069 |
|
case "(($ac_try" in |
9070 |
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9071 |
|
*) ac_try_echo=$ac_try;; |
9072 |
|
esac |
9073 |
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9074 |
< |
(eval "$ac_link") 2>conftest.er1 |
9074 |
> |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
9075 |
|
ac_status=$? |
9076 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
9077 |
|
rm -f conftest.er1 |
9078 |
|
cat conftest.err >&5 |
9079 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9080 |
< |
(exit $ac_status); } && { |
9081 |
< |
test -z "$ac_c_werror_flag" || |
9080 |
> |
(exit $ac_status); } >/dev/null && { |
9081 |
> |
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
9082 |
|
test ! -s conftest.err |
9083 |
< |
} && test -s conftest$ac_exeext && |
9084 |
< |
$as_test_x conftest$ac_exeext; then |
10573 |
< |
ac_cv_lib_gnugetopt_getopt_long=yes |
9083 |
> |
}; then |
9084 |
> |
: |
9085 |
|
else |
9086 |
|
echo "$as_me: failed program was:" >&5 |
9087 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
9088 |
|
|
9089 |
< |
ac_cv_lib_gnugetopt_getopt_long=no |
9089 |
> |
# Broken: fails on valid input. |
9090 |
> |
continue |
9091 |
|
fi |
9092 |
|
|
9093 |
< |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
10582 |
< |
conftest$ac_exeext conftest.$ac_ext |
10583 |
< |
LIBS=$ac_check_lib_save_LIBS |
10584 |
< |
fi |
10585 |
< |
{ echo "$as_me:$LINENO: result: $ac_cv_lib_gnugetopt_getopt_long" >&5 |
10586 |
< |
echo "${ECHO_T}$ac_cv_lib_gnugetopt_getopt_long" >&6; } |
10587 |
< |
if test $ac_cv_lib_gnugetopt_getopt_long = yes; then |
10588 |
< |
cat >>confdefs.h <<\_ACEOF |
10589 |
< |
#define HAVE_GETOPT_LONG 1 |
10590 |
< |
_ACEOF |
9093 |
> |
rm -f conftest.err conftest.$ac_ext |
9094 |
|
|
9095 |
< |
else |
9096 |
< |
# use the GNU replacement |
9097 |
< |
case " $LIBOBJS " in |
10595 |
< |
*" getopt.$ac_objext "* ) ;; |
10596 |
< |
*) LIBOBJS="$LIBOBJS getopt.$ac_objext" |
10597 |
< |
;; |
10598 |
< |
esac |
10599 |
< |
|
10600 |
< |
case " $LIBOBJS " in |
10601 |
< |
*" getopt1.$ac_objext "* ) ;; |
10602 |
< |
*) LIBOBJS="$LIBOBJS getopt1.$ac_objext" |
10603 |
< |
;; |
10604 |
< |
esac |
10605 |
< |
|
10606 |
< |
ac_config_links="$ac_config_links src/getopt.h:src/utils/gnugetopt.h" |
10607 |
< |
|
10608 |
< |
fi |
10609 |
< |
|
10610 |
< |
fi |
10611 |
< |
done |
10612 |
< |
|
10613 |
< |
|
10614 |
< |
ac_ext=cpp |
10615 |
< |
ac_cpp='$CXXCPP $CPPFLAGS' |
10616 |
< |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
10617 |
< |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
10618 |
< |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
10619 |
< |
|
10620 |
< |
|
10621 |
< |
{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5 |
10622 |
< |
echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; } |
10623 |
< |
if test "${ac_cv_cxx_namespaces+set}" = set; then |
10624 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
10625 |
< |
else |
10626 |
< |
|
10627 |
< |
ac_ext=cpp |
10628 |
< |
ac_cpp='$CXXCPP $CPPFLAGS' |
10629 |
< |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
10630 |
< |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
10631 |
< |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
10632 |
< |
|
10633 |
< |
cat >conftest.$ac_ext <<_ACEOF |
9095 |
> |
# OK, works on sane cases. Now check whether nonexistent headers |
9096 |
> |
# can be detected and how. |
9097 |
> |
cat >conftest.$ac_ext <<_ACEOF |
9098 |
|
/* confdefs.h. */ |
9099 |
|
_ACEOF |
9100 |
|
cat confdefs.h >>conftest.$ac_ext |
9101 |
|
cat >>conftest.$ac_ext <<_ACEOF |
9102 |
|
/* end confdefs.h. */ |
9103 |
< |
namespace Outer { namespace Inner { int i = 0; }} |
10640 |
< |
#ifdef FC_DUMMY_MAIN |
10641 |
< |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
10642 |
< |
# ifdef __cplusplus |
10643 |
< |
extern "C" |
10644 |
< |
# endif |
10645 |
< |
int FC_DUMMY_MAIN() { return 1; } |
10646 |
< |
#endif |
10647 |
< |
#endif |
10648 |
< |
int |
10649 |
< |
main () |
10650 |
< |
{ |
10651 |
< |
using namespace Outer::Inner; return i; |
10652 |
< |
; |
10653 |
< |
return 0; |
10654 |
< |
} |
9103 |
> |
#include <ac_nonexistent.h> |
9104 |
|
_ACEOF |
9105 |
< |
rm -f conftest.$ac_objext |
10657 |
< |
if { (ac_try="$ac_compile" |
9105 |
> |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
9106 |
|
case "(($ac_try" in |
9107 |
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9108 |
|
*) ac_try_echo=$ac_try;; |
9109 |
|
esac |
9110 |
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9111 |
< |
(eval "$ac_compile") 2>conftest.er1 |
9111 |
> |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
9112 |
|
ac_status=$? |
9113 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
9114 |
|
rm -f conftest.er1 |
9115 |
|
cat conftest.err >&5 |
9116 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9117 |
< |
(exit $ac_status); } && { |
9118 |
< |
test -z "$ac_cxx_werror_flag" || |
9117 |
> |
(exit $ac_status); } >/dev/null && { |
9118 |
> |
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
9119 |
|
test ! -s conftest.err |
9120 |
< |
} && test -s conftest.$ac_objext; then |
9121 |
< |
ac_cv_cxx_namespaces=yes |
9120 |
> |
}; then |
9121 |
> |
# Broken: success on invalid input. |
9122 |
> |
continue |
9123 |
|
else |
9124 |
|
echo "$as_me: failed program was:" >&5 |
9125 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
9126 |
|
|
9127 |
< |
ac_cv_cxx_namespaces=no |
9127 |
> |
# Passes both tests. |
9128 |
> |
ac_preproc_ok=: |
9129 |
> |
break |
9130 |
|
fi |
9131 |
|
|
9132 |
< |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
10682 |
< |
ac_ext=cpp |
10683 |
< |
ac_cpp='$CXXCPP $CPPFLAGS' |
10684 |
< |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
10685 |
< |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
10686 |
< |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
9132 |
> |
rm -f conftest.err conftest.$ac_ext |
9133 |
|
|
9134 |
< |
|
9134 |
> |
done |
9135 |
> |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
9136 |
> |
rm -f conftest.err conftest.$ac_ext |
9137 |
> |
if $ac_preproc_ok; then |
9138 |
> |
break |
9139 |
|
fi |
10690 |
– |
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5 |
10691 |
– |
echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; } |
10692 |
– |
if test "$ac_cv_cxx_namespaces" = yes; then |
9140 |
|
|
9141 |
< |
cat >>confdefs.h <<\_ACEOF |
9142 |
< |
#define HAVE_NAMESPACES |
10696 |
< |
_ACEOF |
9141 |
> |
done |
9142 |
> |
ac_cv_prog_CXXCPP=$CXXCPP |
9143 |
|
|
9144 |
|
fi |
9145 |
< |
|
10700 |
< |
ac_ext=cpp |
10701 |
< |
ac_cpp='$CXXCPP $CPPFLAGS' |
10702 |
< |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
10703 |
< |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
10704 |
< |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
10705 |
< |
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
10706 |
< |
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } |
10707 |
< |
if test -z "$CXXCPP"; then |
10708 |
< |
if test "${ac_cv_prog_CXXCPP+set}" = set; then |
10709 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
9145 |
> |
CXXCPP=$ac_cv_prog_CXXCPP |
9146 |
|
else |
9147 |
< |
# Double quotes because CXXCPP needs to be expanded |
9148 |
< |
for CXXCPP in "$CXX -E" "/lib/cpp" |
9149 |
< |
do |
9150 |
< |
ac_preproc_ok=false |
9147 |
> |
ac_cv_prog_CXXCPP=$CXXCPP |
9148 |
> |
fi |
9149 |
> |
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
9150 |
> |
echo "${ECHO_T}$CXXCPP" >&6; } |
9151 |
> |
ac_preproc_ok=false |
9152 |
|
for ac_cxx_preproc_warn_flag in '' yes |
9153 |
|
do |
9154 |
|
# Use a header file that comes with gcc, so configuring glibc |
9232 |
|
# Passes both tests. |
9233 |
|
ac_preproc_ok=: |
9234 |
|
break |
9235 |
+ |
fi |
9236 |
+ |
|
9237 |
+ |
rm -f conftest.err conftest.$ac_ext |
9238 |
+ |
|
9239 |
+ |
done |
9240 |
+ |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
9241 |
+ |
rm -f conftest.err conftest.$ac_ext |
9242 |
+ |
if $ac_preproc_ok; then |
9243 |
+ |
: |
9244 |
+ |
else |
9245 |
+ |
{ { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
9246 |
+ |
See \`config.log' for more details." >&5 |
9247 |
+ |
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
9248 |
+ |
See \`config.log' for more details." >&2;} |
9249 |
+ |
{ (exit 1); exit 1; }; } |
9250 |
+ |
fi |
9251 |
+ |
|
9252 |
+ |
ac_ext=cpp |
9253 |
+ |
ac_cpp='$CXXCPP $CPPFLAGS' |
9254 |
+ |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
9255 |
+ |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
9256 |
+ |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
9257 |
+ |
|
9258 |
+ |
|
9259 |
+ |
# |
9260 |
+ |
# Handle user hints |
9261 |
+ |
# |
9262 |
+ |
|
9263 |
+ |
# Check whether --with-openbabel was given. |
9264 |
+ |
if test "${with_openbabel+set}" = set; then |
9265 |
+ |
withval=$with_openbabel; openbabel_dir="$withval" |
9266 |
+ |
else |
9267 |
+ |
openbabel_dir="not_set" |
9268 |
+ |
fi |
9269 |
+ |
|
9270 |
+ |
if test "$openbabel_dir" != "no"; then |
9271 |
+ |
|
9272 |
+ |
if test "$openbabel_dir" != "not_set" ; then |
9273 |
+ |
if test -d "$openbabel_dir" |
9274 |
+ |
then |
9275 |
+ |
OPENBABEL_HOME="$openbabel_dir" |
9276 |
+ |
else |
9277 |
+ |
{ echo "$as_me:$LINENO: WARNING: Sorry, $openbabel_dir does not exist, checking usual places" >&5 |
9278 |
+ |
echo "$as_me: WARNING: Sorry, $openbabel_dir does not exist, checking usual places" >&2;} |
9279 |
+ |
OPENBABEL_HOME=/usr/local |
9280 |
+ |
if test ! -f "${OPENBABEL_HOME}/include/openbabel-2.0/openbabel/babelconfig.h" -a -f "${OPENBABEL_HOME}/include/openbabel-2.0/openbabel/obconversion.h" |
9281 |
+ |
then |
9282 |
+ |
OPENBABEL_HOME=/usr |
9283 |
+ |
fi |
9284 |
+ |
fi |
9285 |
+ |
fi |
9286 |
+ |
# |
9287 |
+ |
# Locate openbabel, if wanted |
9288 |
+ |
# |
9289 |
+ |
if test -n "${OPENBABEL_HOME}" |
9290 |
+ |
then |
9291 |
+ |
|
9292 |
+ |
ac_ext=cpp |
9293 |
+ |
ac_cpp='$CXXCPP $CPPFLAGS' |
9294 |
+ |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
9295 |
+ |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
9296 |
+ |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
9297 |
+ |
|
9298 |
+ |
OPENBABEL_OLD_LDFLAGS=$LDFLAGS |
9299 |
+ |
OPENBABEL_OLD_CPPFLAGS=$CPPFLAGS |
9300 |
+ |
LDFLAGS="$LDFLAGS -L${OPENBABEL_HOME}/lib -lopenbabel" |
9301 |
+ |
CPPFLAGS="$CPPFLAGS -I${OPENBABEL_HOME}/include/openbabel-2.0" |
9302 |
+ |
if test "${ac_cv_header_openbabel_babelconfig_h+set}" = set; then |
9303 |
+ |
{ echo "$as_me:$LINENO: checking for openbabel/babelconfig.h" >&5 |
9304 |
+ |
echo $ECHO_N "checking for openbabel/babelconfig.h... $ECHO_C" >&6; } |
9305 |
+ |
if test "${ac_cv_header_openbabel_babelconfig_h+set}" = set; then |
9306 |
+ |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
9307 |
+ |
fi |
9308 |
+ |
{ echo "$as_me:$LINENO: result: $ac_cv_header_openbabel_babelconfig_h" >&5 |
9309 |
+ |
echo "${ECHO_T}$ac_cv_header_openbabel_babelconfig_h" >&6; } |
9310 |
+ |
else |
9311 |
+ |
# Is the header compilable? |
9312 |
+ |
{ echo "$as_me:$LINENO: checking openbabel/babelconfig.h usability" >&5 |
9313 |
+ |
echo $ECHO_N "checking openbabel/babelconfig.h usability... $ECHO_C" >&6; } |
9314 |
+ |
cat >conftest.$ac_ext <<_ACEOF |
9315 |
+ |
/* confdefs.h. */ |
9316 |
+ |
_ACEOF |
9317 |
+ |
cat confdefs.h >>conftest.$ac_ext |
9318 |
+ |
cat >>conftest.$ac_ext <<_ACEOF |
9319 |
+ |
/* end confdefs.h. */ |
9320 |
+ |
$ac_includes_default |
9321 |
+ |
#include <openbabel/babelconfig.h> |
9322 |
+ |
_ACEOF |
9323 |
+ |
rm -f conftest.$ac_objext |
9324 |
+ |
if { (ac_try="$ac_compile" |
9325 |
+ |
case "(($ac_try" in |
9326 |
+ |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9327 |
+ |
*) ac_try_echo=$ac_try;; |
9328 |
+ |
esac |
9329 |
+ |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9330 |
+ |
(eval "$ac_compile") 2>conftest.er1 |
9331 |
+ |
ac_status=$? |
9332 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
9333 |
+ |
rm -f conftest.er1 |
9334 |
+ |
cat conftest.err >&5 |
9335 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9336 |
+ |
(exit $ac_status); } && { |
9337 |
+ |
test -z "$ac_cxx_werror_flag" || |
9338 |
+ |
test ! -s conftest.err |
9339 |
+ |
} && test -s conftest.$ac_objext; then |
9340 |
+ |
ac_header_compiler=yes |
9341 |
+ |
else |
9342 |
+ |
echo "$as_me: failed program was:" >&5 |
9343 |
+ |
sed 's/^/| /' conftest.$ac_ext >&5 |
9344 |
+ |
|
9345 |
+ |
ac_header_compiler=no |
9346 |
+ |
fi |
9347 |
+ |
|
9348 |
+ |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9349 |
+ |
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9350 |
+ |
echo "${ECHO_T}$ac_header_compiler" >&6; } |
9351 |
+ |
|
9352 |
+ |
# Is the header present? |
9353 |
+ |
{ echo "$as_me:$LINENO: checking openbabel/babelconfig.h presence" >&5 |
9354 |
+ |
echo $ECHO_N "checking openbabel/babelconfig.h presence... $ECHO_C" >&6; } |
9355 |
+ |
cat >conftest.$ac_ext <<_ACEOF |
9356 |
+ |
/* confdefs.h. */ |
9357 |
+ |
_ACEOF |
9358 |
+ |
cat confdefs.h >>conftest.$ac_ext |
9359 |
+ |
cat >>conftest.$ac_ext <<_ACEOF |
9360 |
+ |
/* end confdefs.h. */ |
9361 |
+ |
#include <openbabel/babelconfig.h> |
9362 |
+ |
_ACEOF |
9363 |
+ |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
9364 |
+ |
case "(($ac_try" in |
9365 |
+ |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9366 |
+ |
*) ac_try_echo=$ac_try;; |
9367 |
+ |
esac |
9368 |
+ |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9369 |
+ |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
9370 |
+ |
ac_status=$? |
9371 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
9372 |
+ |
rm -f conftest.er1 |
9373 |
+ |
cat conftest.err >&5 |
9374 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9375 |
+ |
(exit $ac_status); } >/dev/null && { |
9376 |
+ |
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
9377 |
+ |
test ! -s conftest.err |
9378 |
+ |
}; then |
9379 |
+ |
ac_header_preproc=yes |
9380 |
+ |
else |
9381 |
+ |
echo "$as_me: failed program was:" >&5 |
9382 |
+ |
sed 's/^/| /' conftest.$ac_ext >&5 |
9383 |
+ |
|
9384 |
+ |
ac_header_preproc=no |
9385 |
+ |
fi |
9386 |
+ |
|
9387 |
+ |
rm -f conftest.err conftest.$ac_ext |
9388 |
+ |
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9389 |
+ |
echo "${ECHO_T}$ac_header_preproc" >&6; } |
9390 |
+ |
|
9391 |
+ |
# So? What about this header? |
9392 |
+ |
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
9393 |
+ |
yes:no: ) |
9394 |
+ |
{ echo "$as_me:$LINENO: WARNING: openbabel/babelconfig.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
9395 |
+ |
echo "$as_me: WARNING: openbabel/babelconfig.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
9396 |
+ |
{ echo "$as_me:$LINENO: WARNING: openbabel/babelconfig.h: proceeding with the compiler's result" >&5 |
9397 |
+ |
echo "$as_me: WARNING: openbabel/babelconfig.h: proceeding with the compiler's result" >&2;} |
9398 |
+ |
ac_header_preproc=yes |
9399 |
+ |
;; |
9400 |
+ |
no:yes:* ) |
9401 |
+ |
{ echo "$as_me:$LINENO: WARNING: openbabel/babelconfig.h: present but cannot be compiled" >&5 |
9402 |
+ |
echo "$as_me: WARNING: openbabel/babelconfig.h: present but cannot be compiled" >&2;} |
9403 |
+ |
{ echo "$as_me:$LINENO: WARNING: openbabel/babelconfig.h: check for missing prerequisite headers?" >&5 |
9404 |
+ |
echo "$as_me: WARNING: openbabel/babelconfig.h: check for missing prerequisite headers?" >&2;} |
9405 |
+ |
{ echo "$as_me:$LINENO: WARNING: openbabel/babelconfig.h: see the Autoconf documentation" >&5 |
9406 |
+ |
echo "$as_me: WARNING: openbabel/babelconfig.h: see the Autoconf documentation" >&2;} |
9407 |
+ |
{ echo "$as_me:$LINENO: WARNING: openbabel/babelconfig.h: section \"Present But Cannot Be Compiled\"" >&5 |
9408 |
+ |
echo "$as_me: WARNING: openbabel/babelconfig.h: section \"Present But Cannot Be Compiled\"" >&2;} |
9409 |
+ |
{ echo "$as_me:$LINENO: WARNING: openbabel/babelconfig.h: proceeding with the preprocessor's result" >&5 |
9410 |
+ |
echo "$as_me: WARNING: openbabel/babelconfig.h: proceeding with the preprocessor's result" >&2;} |
9411 |
+ |
{ echo "$as_me:$LINENO: WARNING: openbabel/babelconfig.h: in the future, the compiler will take precedence" >&5 |
9412 |
+ |
echo "$as_me: WARNING: openbabel/babelconfig.h: in the future, the compiler will take precedence" >&2;} |
9413 |
+ |
( cat <<\_ASBOX |
9414 |
+ |
## ------------------------------ ## |
9415 |
+ |
## Report this to gezelter@nd.edu ## |
9416 |
+ |
## ------------------------------ ## |
9417 |
+ |
_ASBOX |
9418 |
+ |
) | sed "s/^/$as_me: WARNING: /" >&2 |
9419 |
+ |
;; |
9420 |
+ |
esac |
9421 |
+ |
{ echo "$as_me:$LINENO: checking for openbabel/babelconfig.h" >&5 |
9422 |
+ |
echo $ECHO_N "checking for openbabel/babelconfig.h... $ECHO_C" >&6; } |
9423 |
+ |
if test "${ac_cv_header_openbabel_babelconfig_h+set}" = set; then |
9424 |
+ |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
9425 |
+ |
else |
9426 |
+ |
ac_cv_header_openbabel_babelconfig_h=$ac_header_preproc |
9427 |
|
fi |
9428 |
+ |
{ echo "$as_me:$LINENO: result: $ac_cv_header_openbabel_babelconfig_h" >&5 |
9429 |
+ |
echo "${ECHO_T}$ac_cv_header_openbabel_babelconfig_h" >&6; } |
9430 |
|
|
10800 |
– |
rm -f conftest.err conftest.$ac_ext |
10801 |
– |
|
10802 |
– |
done |
10803 |
– |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
10804 |
– |
rm -f conftest.err conftest.$ac_ext |
10805 |
– |
if $ac_preproc_ok; then |
10806 |
– |
break |
9431 |
|
fi |
9432 |
+ |
if test $ac_cv_header_openbabel_babelconfig_h = yes; then |
9433 |
+ |
openbabel_cv_openbabel_h=yes |
9434 |
+ |
else |
9435 |
+ |
openbabel_cv_openbabel_h=no |
9436 |
+ |
fi |
9437 |
|
|
10809 |
– |
done |
10810 |
– |
ac_cv_prog_CXXCPP=$CXXCPP |
9438 |
|
|
9439 |
+ |
if test "${ac_cv_header_openbabel_obconversion_h+set}" = set; then |
9440 |
+ |
{ echo "$as_me:$LINENO: checking for openbabel/obconversion.h" >&5 |
9441 |
+ |
echo $ECHO_N "checking for openbabel/obconversion.h... $ECHO_C" >&6; } |
9442 |
+ |
if test "${ac_cv_header_openbabel_obconversion_h+set}" = set; then |
9443 |
+ |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
9444 |
|
fi |
9445 |
< |
CXXCPP=$ac_cv_prog_CXXCPP |
9445 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_header_openbabel_obconversion_h" >&5 |
9446 |
> |
echo "${ECHO_T}$ac_cv_header_openbabel_obconversion_h" >&6; } |
9447 |
|
else |
9448 |
< |
ac_cv_prog_CXXCPP=$CXXCPP |
9449 |
< |
fi |
9450 |
< |
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
9451 |
< |
echo "${ECHO_T}$CXXCPP" >&6; } |
10819 |
< |
ac_preproc_ok=false |
10820 |
< |
for ac_cxx_preproc_warn_flag in '' yes |
10821 |
< |
do |
10822 |
< |
# Use a header file that comes with gcc, so configuring glibc |
10823 |
< |
# with a fresh cross-compiler works. |
10824 |
< |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
10825 |
< |
# <limits.h> exists even on freestanding compilers. |
10826 |
< |
# On the NeXT, cc -E runs the code through the compiler's parser, |
10827 |
< |
# not just through cpp. "Syntax error" is here to catch this case. |
10828 |
< |
cat >conftest.$ac_ext <<_ACEOF |
9448 |
> |
# Is the header compilable? |
9449 |
> |
{ echo "$as_me:$LINENO: checking openbabel/obconversion.h usability" >&5 |
9450 |
> |
echo $ECHO_N "checking openbabel/obconversion.h usability... $ECHO_C" >&6; } |
9451 |
> |
cat >conftest.$ac_ext <<_ACEOF |
9452 |
|
/* confdefs.h. */ |
9453 |
|
_ACEOF |
9454 |
|
cat confdefs.h >>conftest.$ac_ext |
9455 |
|
cat >>conftest.$ac_ext <<_ACEOF |
9456 |
|
/* end confdefs.h. */ |
9457 |
< |
#ifdef __STDC__ |
9458 |
< |
# include <limits.h> |
10836 |
< |
#else |
10837 |
< |
# include <assert.h> |
10838 |
< |
#endif |
10839 |
< |
Syntax error |
9457 |
> |
$ac_includes_default |
9458 |
> |
#include <openbabel/obconversion.h> |
9459 |
|
_ACEOF |
9460 |
< |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
9460 |
> |
rm -f conftest.$ac_objext |
9461 |
> |
if { (ac_try="$ac_compile" |
9462 |
|
case "(($ac_try" in |
9463 |
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9464 |
|
*) ac_try_echo=$ac_try;; |
9465 |
|
esac |
9466 |
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9467 |
< |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
9467 |
> |
(eval "$ac_compile") 2>conftest.er1 |
9468 |
|
ac_status=$? |
9469 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
9470 |
|
rm -f conftest.er1 |
9471 |
|
cat conftest.err >&5 |
9472 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9473 |
< |
(exit $ac_status); } >/dev/null && { |
9474 |
< |
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
9473 |
> |
(exit $ac_status); } && { |
9474 |
> |
test -z "$ac_cxx_werror_flag" || |
9475 |
|
test ! -s conftest.err |
9476 |
< |
}; then |
9477 |
< |
: |
9476 |
> |
} && test -s conftest.$ac_objext; then |
9477 |
> |
ac_header_compiler=yes |
9478 |
|
else |
9479 |
|
echo "$as_me: failed program was:" >&5 |
9480 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
9481 |
|
|
9482 |
< |
# Broken: fails on valid input. |
10863 |
< |
continue |
9482 |
> |
ac_header_compiler=no |
9483 |
|
fi |
9484 |
|
|
9485 |
< |
rm -f conftest.err conftest.$ac_ext |
9485 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9486 |
> |
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9487 |
> |
echo "${ECHO_T}$ac_header_compiler" >&6; } |
9488 |
|
|
9489 |
< |
# OK, works on sane cases. Now check whether nonexistent headers |
9490 |
< |
# can be detected and how. |
9491 |
< |
cat >conftest.$ac_ext <<_ACEOF |
9489 |
> |
# Is the header present? |
9490 |
> |
{ echo "$as_me:$LINENO: checking openbabel/obconversion.h presence" >&5 |
9491 |
> |
echo $ECHO_N "checking openbabel/obconversion.h presence... $ECHO_C" >&6; } |
9492 |
> |
cat >conftest.$ac_ext <<_ACEOF |
9493 |
|
/* confdefs.h. */ |
9494 |
|
_ACEOF |
9495 |
|
cat confdefs.h >>conftest.$ac_ext |
9496 |
|
cat >>conftest.$ac_ext <<_ACEOF |
9497 |
|
/* end confdefs.h. */ |
9498 |
< |
#include <ac_nonexistent.h> |
9498 |
> |
#include <openbabel/obconversion.h> |
9499 |
|
_ACEOF |
9500 |
|
if { (ac_try="$ac_cpp conftest.$ac_ext" |
9501 |
|
case "(($ac_try" in |
9513 |
|
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
9514 |
|
test ! -s conftest.err |
9515 |
|
}; then |
9516 |
< |
# Broken: success on invalid input. |
10895 |
< |
continue |
9516 |
> |
ac_header_preproc=yes |
9517 |
|
else |
9518 |
|
echo "$as_me: failed program was:" >&5 |
9519 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
9520 |
|
|
9521 |
< |
# Passes both tests. |
10901 |
< |
ac_preproc_ok=: |
10902 |
< |
break |
9521 |
> |
ac_header_preproc=no |
9522 |
|
fi |
9523 |
|
|
9524 |
|
rm -f conftest.err conftest.$ac_ext |
9525 |
+ |
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9526 |
+ |
echo "${ECHO_T}$ac_header_preproc" >&6; } |
9527 |
|
|
9528 |
< |
done |
9529 |
< |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
9530 |
< |
rm -f conftest.err conftest.$ac_ext |
9531 |
< |
if $ac_preproc_ok; then |
9532 |
< |
: |
9528 |
> |
# So? What about this header? |
9529 |
> |
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
9530 |
> |
yes:no: ) |
9531 |
> |
{ echo "$as_me:$LINENO: WARNING: openbabel/obconversion.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
9532 |
> |
echo "$as_me: WARNING: openbabel/obconversion.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
9533 |
> |
{ echo "$as_me:$LINENO: WARNING: openbabel/obconversion.h: proceeding with the compiler's result" >&5 |
9534 |
> |
echo "$as_me: WARNING: openbabel/obconversion.h: proceeding with the compiler's result" >&2;} |
9535 |
> |
ac_header_preproc=yes |
9536 |
> |
;; |
9537 |
> |
no:yes:* ) |
9538 |
> |
{ echo "$as_me:$LINENO: WARNING: openbabel/obconversion.h: present but cannot be compiled" >&5 |
9539 |
> |
echo "$as_me: WARNING: openbabel/obconversion.h: present but cannot be compiled" >&2;} |
9540 |
> |
{ echo "$as_me:$LINENO: WARNING: openbabel/obconversion.h: check for missing prerequisite headers?" >&5 |
9541 |
> |
echo "$as_me: WARNING: openbabel/obconversion.h: check for missing prerequisite headers?" >&2;} |
9542 |
> |
{ echo "$as_me:$LINENO: WARNING: openbabel/obconversion.h: see the Autoconf documentation" >&5 |
9543 |
> |
echo "$as_me: WARNING: openbabel/obconversion.h: see the Autoconf documentation" >&2;} |
9544 |
> |
{ echo "$as_me:$LINENO: WARNING: openbabel/obconversion.h: section \"Present But Cannot Be Compiled\"" >&5 |
9545 |
> |
echo "$as_me: WARNING: openbabel/obconversion.h: section \"Present But Cannot Be Compiled\"" >&2;} |
9546 |
> |
{ echo "$as_me:$LINENO: WARNING: openbabel/obconversion.h: proceeding with the preprocessor's result" >&5 |
9547 |
> |
echo "$as_me: WARNING: openbabel/obconversion.h: proceeding with the preprocessor's result" >&2;} |
9548 |
> |
{ echo "$as_me:$LINENO: WARNING: openbabel/obconversion.h: in the future, the compiler will take precedence" >&5 |
9549 |
> |
echo "$as_me: WARNING: openbabel/obconversion.h: in the future, the compiler will take precedence" >&2;} |
9550 |
> |
( cat <<\_ASBOX |
9551 |
> |
## ------------------------------ ## |
9552 |
> |
## Report this to gezelter@nd.edu ## |
9553 |
> |
## ------------------------------ ## |
9554 |
> |
_ASBOX |
9555 |
> |
) | sed "s/^/$as_me: WARNING: /" >&2 |
9556 |
> |
;; |
9557 |
> |
esac |
9558 |
> |
{ echo "$as_me:$LINENO: checking for openbabel/obconversion.h" >&5 |
9559 |
> |
echo $ECHO_N "checking for openbabel/obconversion.h... $ECHO_C" >&6; } |
9560 |
> |
if test "${ac_cv_header_openbabel_obconversion_h+set}" = set; then |
9561 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
9562 |
|
else |
9563 |
< |
{ { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
10914 |
< |
See \`config.log' for more details." >&5 |
10915 |
< |
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
10916 |
< |
See \`config.log' for more details." >&2;} |
10917 |
< |
{ (exit 1); exit 1; }; } |
9563 |
> |
ac_cv_header_openbabel_obconversion_h=$ac_header_preproc |
9564 |
|
fi |
9565 |
+ |
{ echo "$as_me:$LINENO: result: $ac_cv_header_openbabel_obconversion_h" >&5 |
9566 |
+ |
echo "${ECHO_T}$ac_cv_header_openbabel_obconversion_h" >&6; } |
9567 |
|
|
9568 |
< |
ac_ext=cpp |
9569 |
< |
ac_cpp='$CXXCPP $CPPFLAGS' |
9570 |
< |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
10923 |
< |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
10924 |
< |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
10925 |
< |
|
10926 |
< |
|
10927 |
< |
{ echo "$as_me:$LINENO: checking whether the compiler supports Standard Template Library" >&5 |
10928 |
< |
echo $ECHO_N "checking whether the compiler supports Standard Template Library... $ECHO_C" >&6; } |
10929 |
< |
if test "${ac_cv_cxx_have_stl+set}" = set; then |
10930 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
9568 |
> |
fi |
9569 |
> |
if test $ac_cv_header_openbabel_obconversion_h = yes; then |
9570 |
> |
openbabel_cv_obconversion_h=yes |
9571 |
|
else |
9572 |
+ |
openbabel_cv_obconversion_h=no |
9573 |
+ |
fi |
9574 |
|
|
9575 |
|
|
9576 |
< |
ac_ext=cpp |
10935 |
< |
ac_cpp='$CXXCPP $CPPFLAGS' |
10936 |
< |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
10937 |
< |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
10938 |
< |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
9576 |
> |
cat >conftest.$ac_ext <<_ACEOF |
9577 |
|
|
9578 |
< |
cat >conftest.$ac_ext <<_ACEOF |
10941 |
< |
/* confdefs.h. */ |
9578 |
> |
/* confdefs.h. */ |
9579 |
|
_ACEOF |
9580 |
|
cat confdefs.h >>conftest.$ac_ext |
9581 |
|
cat >>conftest.$ac_ext <<_ACEOF |
9582 |
|
/* end confdefs.h. */ |
9583 |
< |
#include <list> |
9584 |
< |
#include <deque> |
9585 |
< |
#ifdef HAVE_NAMESPACES |
9583 |
> |
|
9584 |
> |
#include <openbabel/babelconfig.h> |
9585 |
> |
#include <openbabel/obconversion.h> |
9586 |
|
using namespace std; |
9587 |
< |
#endif |
9587 |
> |
using namespace OpenBabel; |
9588 |
> |
|
9589 |
|
#ifdef FC_DUMMY_MAIN |
9590 |
|
#ifndef FC_DUMMY_MAIN_EQ_F77 |
9591 |
|
# ifdef __cplusplus |
9597 |
|
int |
9598 |
|
main () |
9599 |
|
{ |
9600 |
< |
list<int> x; x.push_back(5); |
9601 |
< |
list<int>::iterator iter = x.begin(); if (iter != x.end()) ++iter; return 0; |
9600 |
> |
|
9601 |
> |
OBConversion Conv(&cin, &cout); |
9602 |
> |
|
9603 |
> |
|
9604 |
|
; |
9605 |
|
return 0; |
9606 |
|
} |
9607 |
|
_ACEOF |
9608 |
< |
rm -f conftest.$ac_objext |
9609 |
< |
if { (ac_try="$ac_compile" |
9608 |
> |
rm -f conftest.$ac_objext conftest$ac_exeext |
9609 |
> |
if { (ac_try="$ac_link" |
9610 |
|
case "(($ac_try" in |
9611 |
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9612 |
|
*) ac_try_echo=$ac_try;; |
9613 |
|
esac |
9614 |
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9615 |
< |
(eval "$ac_compile") 2>conftest.er1 |
9615 |
> |
(eval "$ac_link") 2>conftest.er1 |
9616 |
|
ac_status=$? |
9617 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
9618 |
|
rm -f conftest.er1 |
9621 |
|
(exit $ac_status); } && { |
9622 |
|
test -z "$ac_cxx_werror_flag" || |
9623 |
|
test ! -s conftest.err |
9624 |
< |
} && test -s conftest.$ac_objext; then |
9625 |
< |
ac_cv_cxx_have_stl=yes |
9624 |
> |
} && test -s conftest$ac_exeext && |
9625 |
> |
$as_test_x conftest$ac_exeext; then |
9626 |
> |
|
9627 |
> |
openbabel_lib_found="yes" |
9628 |
> |
{ echo "$as_me:$LINENO: result: found" >&5 |
9629 |
> |
echo "${ECHO_T}found" >&6; } |
9630 |
> |
|
9631 |
|
else |
9632 |
|
echo "$as_me: failed program was:" >&5 |
9633 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
9634 |
|
|
10990 |
– |
ac_cv_cxx_have_stl=no |
10991 |
– |
fi |
9635 |
|
|
9636 |
< |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9637 |
< |
ac_ext=cpp |
9638 |
< |
ac_cpp='$CXXCPP $CPPFLAGS' |
10996 |
< |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
10997 |
< |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
10998 |
< |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
9636 |
> |
openbabel_lib_found="no" |
9637 |
> |
{ echo "$as_me:$LINENO: result: not found" >&5 |
9638 |
> |
echo "${ECHO_T}not found" >&6; } |
9639 |
|
|
9640 |
|
|
9641 |
|
fi |
11002 |
– |
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_stl" >&5 |
11003 |
– |
echo "${ECHO_T}$ac_cv_cxx_have_stl" >&6; } |
11004 |
– |
if test "$ac_cv_cxx_have_stl" = yes; then |
9642 |
|
|
9643 |
< |
cat >>confdefs.h <<\_ACEOF |
9644 |
< |
#define HAVE_STL |
9645 |
< |
_ACEOF |
9643 |
> |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
9644 |
> |
conftest$ac_exeext conftest.$ac_ext |
9645 |
> |
ac_ext=c |
9646 |
> |
ac_cpp='$CPP $CPPFLAGS' |
9647 |
> |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
9648 |
> |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
9649 |
> |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
9650 |
|
|
9651 |
< |
fi |
9651 |
> |
LDFLAGS="$OPENBABEL_OLD_LDFLAGS" |
9652 |
> |
CPPFLAGS="$OPENBABEL_OLD_CPPFLAGS" |
9653 |
|
|
9654 |
+ |
if test "$openbabel_lib_found" = "yes" -a "$openbabel_cv_openbabel_h" = "yes" -a "$openbabel_cv_obconversion_h" = "yes"; then |
9655 |
+ |
USE_OPENBABEL=yes |
9656 |
+ |
OPENBABEL_INC_DIR="${OPENBABEL_HOME}/include/openbabel-2.0" |
9657 |
+ |
OPENBABEL_LIB_DIR="${OPENBABEL_HOME}/lib" |
9658 |
+ |
OPENBABEL_LIB="-lopenbabel" |
9659 |
+ |
else |
9660 |
+ |
{ echo "$as_me:$LINENO: checking openbabel in ${OPENBABEL_HOME}" >&5 |
9661 |
+ |
echo $ECHO_N "checking openbabel in ${OPENBABEL_HOME}... $ECHO_C" >&6; } |
9662 |
+ |
OPENBABEL_INC_DIR= |
9663 |
+ |
OPENBABEL_LIB_DIR= |
9664 |
+ |
OPENBABEL_LIB= |
9665 |
+ |
USE_OPENBABEL=no |
9666 |
+ |
{ echo "$as_me:$LINENO: result: failed" >&5 |
9667 |
+ |
echo "${ECHO_T}failed" >&6; } |
9668 |
+ |
echo "" |
9669 |
+ |
echo "*********************************************************" |
9670 |
+ |
echo "* WARNING: Could not find a working openbabel-2.x *" |
9671 |
+ |
echo "* installation If you need OOPSE to be able to convert *" |
9672 |
+ |
echo "* xyz or pdb files you need to specify a valid *" |
9673 |
+ |
echo "* openbabel-2.x installation with --with-openbabel=DIR *" |
9674 |
+ |
echo "* *" |
9675 |
+ |
echo "* OOPSE will still work without openbabel installed. *" |
9676 |
+ |
echo "*********************************************************" |
9677 |
+ |
echo "" |
9678 |
+ |
fi |
9679 |
|
|
9680 |
|
|
9681 |
< |
if test "${ac_cv_header_iostream+set}" = set; then |
9682 |
< |
{ echo "$as_me:$LINENO: checking for iostream" >&5 |
11016 |
< |
echo $ECHO_N "checking for iostream... $ECHO_C" >&6; } |
11017 |
< |
if test "${ac_cv_header_iostream+set}" = set; then |
11018 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
9681 |
> |
|
9682 |
> |
|
9683 |
|
fi |
9684 |
< |
{ echo "$as_me:$LINENO: result: $ac_cv_header_iostream" >&5 |
9685 |
< |
echo "${ECHO_T}$ac_cv_header_iostream" >&6; } |
9684 |
> |
fi |
9685 |
> |
|
9686 |
> |
|
9687 |
> |
# Checks for header files. |
9688 |
> |
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
9689 |
> |
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
9690 |
> |
if test "${ac_cv_header_stdc+set}" = set; then |
9691 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
9692 |
|
else |
9693 |
< |
# Is the header compilable? |
11024 |
< |
{ echo "$as_me:$LINENO: checking iostream usability" >&5 |
11025 |
< |
echo $ECHO_N "checking iostream usability... $ECHO_C" >&6; } |
11026 |
< |
cat >conftest.$ac_ext <<_ACEOF |
9693 |
> |
cat >conftest.$ac_ext <<_ACEOF |
9694 |
|
/* confdefs.h. */ |
9695 |
|
_ACEOF |
9696 |
|
cat confdefs.h >>conftest.$ac_ext |
9697 |
|
cat >>conftest.$ac_ext <<_ACEOF |
9698 |
|
/* end confdefs.h. */ |
9699 |
< |
$ac_includes_default |
9700 |
< |
#include <iostream> |
9699 |
> |
#include <stdlib.h> |
9700 |
> |
#include <stdarg.h> |
9701 |
> |
#include <string.h> |
9702 |
> |
#include <float.h> |
9703 |
> |
|
9704 |
> |
#ifdef FC_DUMMY_MAIN |
9705 |
> |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
9706 |
> |
# ifdef __cplusplus |
9707 |
> |
extern "C" |
9708 |
> |
# endif |
9709 |
> |
int FC_DUMMY_MAIN() { return 1; } |
9710 |
> |
#endif |
9711 |
> |
#endif |
9712 |
> |
int |
9713 |
> |
main () |
9714 |
> |
{ |
9715 |
> |
|
9716 |
> |
; |
9717 |
> |
return 0; |
9718 |
> |
} |
9719 |
|
_ACEOF |
9720 |
|
rm -f conftest.$ac_objext |
9721 |
|
if { (ac_try="$ac_compile" |
9731 |
|
cat conftest.err >&5 |
9732 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9733 |
|
(exit $ac_status); } && { |
9734 |
< |
test -z "$ac_cxx_werror_flag" || |
9734 |
> |
test -z "$ac_c_werror_flag" || |
9735 |
|
test ! -s conftest.err |
9736 |
|
} && test -s conftest.$ac_objext; then |
9737 |
< |
ac_header_compiler=yes |
9737 |
> |
ac_cv_header_stdc=yes |
9738 |
|
else |
9739 |
|
echo "$as_me: failed program was:" >&5 |
9740 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
9741 |
|
|
9742 |
< |
ac_header_compiler=no |
9742 |
> |
ac_cv_header_stdc=no |
9743 |
|
fi |
9744 |
|
|
9745 |
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
11061 |
– |
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11062 |
– |
echo "${ECHO_T}$ac_header_compiler" >&6; } |
9746 |
|
|
9747 |
< |
# Is the header present? |
9748 |
< |
{ echo "$as_me:$LINENO: checking iostream presence" >&5 |
9749 |
< |
echo $ECHO_N "checking iostream presence... $ECHO_C" >&6; } |
11067 |
< |
cat >conftest.$ac_ext <<_ACEOF |
9747 |
> |
if test $ac_cv_header_stdc = yes; then |
9748 |
> |
# SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
9749 |
> |
cat >conftest.$ac_ext <<_ACEOF |
9750 |
|
/* confdefs.h. */ |
9751 |
|
_ACEOF |
9752 |
|
cat confdefs.h >>conftest.$ac_ext |
9753 |
|
cat >>conftest.$ac_ext <<_ACEOF |
9754 |
|
/* end confdefs.h. */ |
9755 |
< |
#include <iostream> |
9755 |
> |
#include <string.h> |
9756 |
> |
|
9757 |
|
_ACEOF |
9758 |
< |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
9758 |
> |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
9759 |
> |
$EGREP "memchr" >/dev/null 2>&1; then |
9760 |
> |
: |
9761 |
> |
else |
9762 |
> |
ac_cv_header_stdc=no |
9763 |
> |
fi |
9764 |
> |
rm -f conftest* |
9765 |
> |
|
9766 |
> |
fi |
9767 |
> |
|
9768 |
> |
if test $ac_cv_header_stdc = yes; then |
9769 |
> |
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
9770 |
> |
cat >conftest.$ac_ext <<_ACEOF |
9771 |
> |
/* confdefs.h. */ |
9772 |
> |
_ACEOF |
9773 |
> |
cat confdefs.h >>conftest.$ac_ext |
9774 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
9775 |
> |
/* end confdefs.h. */ |
9776 |
> |
#include <stdlib.h> |
9777 |
> |
|
9778 |
> |
_ACEOF |
9779 |
> |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
9780 |
> |
$EGREP "free" >/dev/null 2>&1; then |
9781 |
> |
: |
9782 |
> |
else |
9783 |
> |
ac_cv_header_stdc=no |
9784 |
> |
fi |
9785 |
> |
rm -f conftest* |
9786 |
> |
|
9787 |
> |
fi |
9788 |
> |
|
9789 |
> |
if test $ac_cv_header_stdc = yes; then |
9790 |
> |
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
9791 |
> |
if test "$cross_compiling" = yes; then |
9792 |
> |
: |
9793 |
> |
else |
9794 |
> |
cat >conftest.$ac_ext <<_ACEOF |
9795 |
> |
/* confdefs.h. */ |
9796 |
> |
_ACEOF |
9797 |
> |
cat confdefs.h >>conftest.$ac_ext |
9798 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
9799 |
> |
/* end confdefs.h. */ |
9800 |
> |
#include <ctype.h> |
9801 |
> |
#include <stdlib.h> |
9802 |
> |
#if ((' ' & 0x0FF) == 0x020) |
9803 |
> |
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
9804 |
> |
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
9805 |
> |
#else |
9806 |
> |
# define ISLOWER(c) \ |
9807 |
> |
(('a' <= (c) && (c) <= 'i') \ |
9808 |
> |
|| ('j' <= (c) && (c) <= 'r') \ |
9809 |
> |
|| ('s' <= (c) && (c) <= 'z')) |
9810 |
> |
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
9811 |
> |
#endif |
9812 |
> |
|
9813 |
> |
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
9814 |
> |
int |
9815 |
> |
main () |
9816 |
> |
{ |
9817 |
> |
int i; |
9818 |
> |
for (i = 0; i < 256; i++) |
9819 |
> |
if (XOR (islower (i), ISLOWER (i)) |
9820 |
> |
|| toupper (i) != TOUPPER (i)) |
9821 |
> |
return 2; |
9822 |
> |
return 0; |
9823 |
> |
} |
9824 |
> |
_ACEOF |
9825 |
> |
rm -f conftest$ac_exeext |
9826 |
> |
if { (ac_try="$ac_link" |
9827 |
|
case "(($ac_try" in |
9828 |
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9829 |
|
*) ac_try_echo=$ac_try;; |
9830 |
|
esac |
9831 |
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9832 |
< |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
9832 |
> |
(eval "$ac_link") 2>&5 |
9833 |
> |
ac_status=$? |
9834 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9835 |
> |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
9836 |
> |
{ (case "(($ac_try" in |
9837 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9838 |
> |
*) ac_try_echo=$ac_try;; |
9839 |
> |
esac |
9840 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9841 |
> |
(eval "$ac_try") 2>&5 |
9842 |
|
ac_status=$? |
11083 |
– |
grep -v '^ *+' conftest.er1 >conftest.err |
11084 |
– |
rm -f conftest.er1 |
11085 |
– |
cat conftest.err >&5 |
9843 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9844 |
< |
(exit $ac_status); } >/dev/null && { |
9845 |
< |
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
11089 |
< |
test ! -s conftest.err |
11090 |
< |
}; then |
11091 |
< |
ac_header_preproc=yes |
9844 |
> |
(exit $ac_status); }; }; then |
9845 |
> |
: |
9846 |
|
else |
9847 |
< |
echo "$as_me: failed program was:" >&5 |
9847 |
> |
echo "$as_me: program exited with status $ac_status" >&5 |
9848 |
> |
echo "$as_me: failed program was:" >&5 |
9849 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
9850 |
|
|
9851 |
< |
ac_header_preproc=no |
9851 |
> |
( exit $ac_status ) |
9852 |
> |
ac_cv_header_stdc=no |
9853 |
|
fi |
9854 |
+ |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
9855 |
+ |
fi |
9856 |
|
|
11099 |
– |
rm -f conftest.err conftest.$ac_ext |
11100 |
– |
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11101 |
– |
echo "${ECHO_T}$ac_header_preproc" >&6; } |
9857 |
|
|
11103 |
– |
# So? What about this header? |
11104 |
– |
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
11105 |
– |
yes:no: ) |
11106 |
– |
{ echo "$as_me:$LINENO: WARNING: iostream: accepted by the compiler, rejected by the preprocessor!" >&5 |
11107 |
– |
echo "$as_me: WARNING: iostream: accepted by the compiler, rejected by the preprocessor!" >&2;} |
11108 |
– |
{ echo "$as_me:$LINENO: WARNING: iostream: proceeding with the compiler's result" >&5 |
11109 |
– |
echo "$as_me: WARNING: iostream: proceeding with the compiler's result" >&2;} |
11110 |
– |
ac_header_preproc=yes |
11111 |
– |
;; |
11112 |
– |
no:yes:* ) |
11113 |
– |
{ echo "$as_me:$LINENO: WARNING: iostream: present but cannot be compiled" >&5 |
11114 |
– |
echo "$as_me: WARNING: iostream: present but cannot be compiled" >&2;} |
11115 |
– |
{ echo "$as_me:$LINENO: WARNING: iostream: check for missing prerequisite headers?" >&5 |
11116 |
– |
echo "$as_me: WARNING: iostream: check for missing prerequisite headers?" >&2;} |
11117 |
– |
{ echo "$as_me:$LINENO: WARNING: iostream: see the Autoconf documentation" >&5 |
11118 |
– |
echo "$as_me: WARNING: iostream: see the Autoconf documentation" >&2;} |
11119 |
– |
{ echo "$as_me:$LINENO: WARNING: iostream: section \"Present But Cannot Be Compiled\"" >&5 |
11120 |
– |
echo "$as_me: WARNING: iostream: section \"Present But Cannot Be Compiled\"" >&2;} |
11121 |
– |
{ echo "$as_me:$LINENO: WARNING: iostream: proceeding with the preprocessor's result" >&5 |
11122 |
– |
echo "$as_me: WARNING: iostream: proceeding with the preprocessor's result" >&2;} |
11123 |
– |
{ echo "$as_me:$LINENO: WARNING: iostream: in the future, the compiler will take precedence" >&5 |
11124 |
– |
echo "$as_me: WARNING: iostream: in the future, the compiler will take precedence" >&2;} |
11125 |
– |
( cat <<\_ASBOX |
11126 |
– |
## ------------------------------ ## |
11127 |
– |
## Report this to gezelter@nd.edu ## |
11128 |
– |
## ------------------------------ ## |
11129 |
– |
_ASBOX |
11130 |
– |
) | sed "s/^/$as_me: WARNING: /" >&2 |
11131 |
– |
;; |
11132 |
– |
esac |
11133 |
– |
{ echo "$as_me:$LINENO: checking for iostream" >&5 |
11134 |
– |
echo $ECHO_N "checking for iostream... $ECHO_C" >&6; } |
11135 |
– |
if test "${ac_cv_header_iostream+set}" = set; then |
11136 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
11137 |
– |
else |
11138 |
– |
ac_cv_header_iostream=$ac_header_preproc |
9858 |
|
fi |
11140 |
– |
{ echo "$as_me:$LINENO: result: $ac_cv_header_iostream" >&5 |
11141 |
– |
echo "${ECHO_T}$ac_cv_header_iostream" >&6; } |
11142 |
– |
|
9859 |
|
fi |
9860 |
< |
if test $ac_cv_header_iostream = yes; then |
9860 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
9861 |
> |
echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
9862 |
> |
if test $ac_cv_header_stdc = yes; then |
9863 |
|
|
11146 |
– |
|
9864 |
|
cat >>confdefs.h <<\_ACEOF |
9865 |
< |
#define HAVE_IOSTREAM 1 |
9865 |
> |
#define STDC_HEADERS 1 |
9866 |
|
_ACEOF |
9867 |
|
|
9868 |
+ |
fi |
9869 |
|
|
11152 |
– |
else |
9870 |
|
|
9871 |
|
|
9872 |
< |
for ac_header in iostream.h |
9872 |
> |
|
9873 |
> |
|
9874 |
> |
|
9875 |
> |
|
9876 |
> |
|
9877 |
> |
|
9878 |
> |
|
9879 |
> |
|
9880 |
> |
|
9881 |
> |
|
9882 |
> |
|
9883 |
> |
|
9884 |
> |
|
9885 |
> |
for ac_header in libintl.h limits.h machine/hal_sysinfo.h stdlib.h string.h strings.h sys/param.h sys/pstat.h sys/sysctl.h sys/sysinfo.h sys/sysmp.h sys/systemcfg.h sys/table.h sys/time.h unistd.h |
9886 |
|
do |
9887 |
|
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
9888 |
|
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
9921 |
|
cat conftest.err >&5 |
9922 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9923 |
|
(exit $ac_status); } && { |
9924 |
< |
test -z "$ac_cxx_werror_flag" || |
9924 |
> |
test -z "$ac_c_werror_flag" || |
9925 |
|
test ! -s conftest.err |
9926 |
|
} && test -s conftest.$ac_objext; then |
9927 |
|
ac_header_compiler=yes |
9960 |
|
cat conftest.err >&5 |
9961 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9962 |
|
(exit $ac_status); } >/dev/null && { |
9963 |
< |
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
9963 |
> |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
9964 |
|
test ! -s conftest.err |
9965 |
|
}; then |
9966 |
|
ac_header_preproc=yes |
9976 |
|
echo "${ECHO_T}$ac_header_preproc" >&6; } |
9977 |
|
|
9978 |
|
# So? What about this header? |
9979 |
< |
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
9979 |
> |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
9980 |
|
yes:no: ) |
9981 |
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
9982 |
|
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
10027 |
|
done |
10028 |
|
|
10029 |
|
|
10030 |
< |
fi |
10030 |
> |
# Checks for typedefs, structures, and compiler characteristics. |
10031 |
> |
{ echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5 |
10032 |
> |
echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; } |
10033 |
> |
if test "${ac_cv_header_stdbool_h+set}" = set; then |
10034 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
10035 |
> |
else |
10036 |
> |
cat >conftest.$ac_ext <<_ACEOF |
10037 |
> |
/* confdefs.h. */ |
10038 |
> |
_ACEOF |
10039 |
> |
cat confdefs.h >>conftest.$ac_ext |
10040 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
10041 |
> |
/* end confdefs.h. */ |
10042 |
|
|
10043 |
+ |
#include <stdbool.h> |
10044 |
+ |
#ifndef bool |
10045 |
+ |
"error: bool is not defined" |
10046 |
+ |
#endif |
10047 |
+ |
#ifndef false |
10048 |
+ |
"error: false is not defined" |
10049 |
+ |
#endif |
10050 |
+ |
#if false |
10051 |
+ |
"error: false is not 0" |
10052 |
+ |
#endif |
10053 |
+ |
#ifndef true |
10054 |
+ |
"error: true is not defined" |
10055 |
+ |
#endif |
10056 |
+ |
#if true != 1 |
10057 |
+ |
"error: true is not 1" |
10058 |
+ |
#endif |
10059 |
+ |
#ifndef __bool_true_false_are_defined |
10060 |
+ |
"error: __bool_true_false_are_defined is not defined" |
10061 |
+ |
#endif |
10062 |
|
|
10063 |
+ |
struct s { _Bool s: 1; _Bool t; } s; |
10064 |
|
|
10065 |
+ |
char a[true == 1 ? 1 : -1]; |
10066 |
+ |
char b[false == 0 ? 1 : -1]; |
10067 |
+ |
char c[__bool_true_false_are_defined == 1 ? 1 : -1]; |
10068 |
+ |
char d[(bool) 0.5 == true ? 1 : -1]; |
10069 |
+ |
bool e = &s; |
10070 |
+ |
char f[(_Bool) 0.0 == false ? 1 : -1]; |
10071 |
+ |
char g[true]; |
10072 |
+ |
char h[sizeof (_Bool)]; |
10073 |
+ |
char i[sizeof s.t]; |
10074 |
+ |
enum { j = false, k = true, l = false * true, m = true * 256 }; |
10075 |
+ |
_Bool n[m]; |
10076 |
+ |
char o[sizeof n == m * sizeof n[0] ? 1 : -1]; |
10077 |
+ |
char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; |
10078 |
+ |
# if defined __xlc__ || defined __GNUC__ |
10079 |
+ |
/* Catch a bug in IBM AIX xlc compiler version 6.0.0.0 |
10080 |
+ |
reported by James Lemley on 2005-10-05; see |
10081 |
+ |
http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html |
10082 |
+ |
This test is not quite right, since xlc is allowed to |
10083 |
+ |
reject this program, as the initializer for xlcbug is |
10084 |
+ |
not one of the forms that C requires support for. |
10085 |
+ |
However, doing the test right would require a runtime |
10086 |
+ |
test, and that would make cross-compilation harder. |
10087 |
+ |
Let us hope that IBM fixes the xlc bug, and also adds |
10088 |
+ |
support for this kind of constant expression. In the |
10089 |
+ |
meantime, this test will reject xlc, which is OK, since |
10090 |
+ |
our stdbool.h substitute should suffice. We also test |
10091 |
+ |
this with GCC, where it should work, to detect more |
10092 |
+ |
quickly whether someone messes up the test in the |
10093 |
+ |
future. */ |
10094 |
+ |
char digs[] = "0123456789"; |
10095 |
+ |
int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1); |
10096 |
+ |
# endif |
10097 |
+ |
/* Catch a bug in an HP-UX C compiler. See |
10098 |
+ |
http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html |
10099 |
+ |
http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html |
10100 |
+ |
*/ |
10101 |
+ |
_Bool q = true; |
10102 |
+ |
_Bool *pq = &q; |
10103 |
|
|
10104 |
< |
if test "${ac_cv_header_iomanip+set}" = set; then |
10105 |
< |
{ echo "$as_me:$LINENO: checking for iomanip" >&5 |
10106 |
< |
echo $ECHO_N "checking for iomanip... $ECHO_C" >&6; } |
10107 |
< |
if test "${ac_cv_header_iomanip+set}" = set; then |
10108 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
10104 |
> |
#ifdef FC_DUMMY_MAIN |
10105 |
> |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
10106 |
> |
# ifdef __cplusplus |
10107 |
> |
extern "C" |
10108 |
> |
# endif |
10109 |
> |
int FC_DUMMY_MAIN() { return 1; } |
10110 |
> |
#endif |
10111 |
> |
#endif |
10112 |
> |
int |
10113 |
> |
main () |
10114 |
> |
{ |
10115 |
> |
|
10116 |
> |
*pq |= q; |
10117 |
> |
*pq |= ! q; |
10118 |
> |
/* Refer to every declared value, to avoid compiler optimizations. */ |
10119 |
> |
return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l |
10120 |
> |
+ !m + !n + !o + !p + !q + !pq); |
10121 |
> |
|
10122 |
> |
; |
10123 |
> |
return 0; |
10124 |
> |
} |
10125 |
> |
_ACEOF |
10126 |
> |
rm -f conftest.$ac_objext |
10127 |
> |
if { (ac_try="$ac_compile" |
10128 |
> |
case "(($ac_try" in |
10129 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10130 |
> |
*) ac_try_echo=$ac_try;; |
10131 |
> |
esac |
10132 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10133 |
> |
(eval "$ac_compile") 2>conftest.er1 |
10134 |
> |
ac_status=$? |
10135 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
10136 |
> |
rm -f conftest.er1 |
10137 |
> |
cat conftest.err >&5 |
10138 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10139 |
> |
(exit $ac_status); } && { |
10140 |
> |
test -z "$ac_c_werror_flag" || |
10141 |
> |
test ! -s conftest.err |
10142 |
> |
} && test -s conftest.$ac_objext; then |
10143 |
> |
ac_cv_header_stdbool_h=yes |
10144 |
> |
else |
10145 |
> |
echo "$as_me: failed program was:" >&5 |
10146 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
10147 |
> |
|
10148 |
> |
ac_cv_header_stdbool_h=no |
10149 |
|
fi |
10150 |
< |
{ echo "$as_me:$LINENO: result: $ac_cv_header_iomanip" >&5 |
10151 |
< |
echo "${ECHO_T}$ac_cv_header_iomanip" >&6; } |
10150 |
> |
|
10151 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
10152 |
> |
fi |
10153 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5 |
10154 |
> |
echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; } |
10155 |
> |
{ echo "$as_me:$LINENO: checking for _Bool" >&5 |
10156 |
> |
echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; } |
10157 |
> |
if test "${ac_cv_type__Bool+set}" = set; then |
10158 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
10159 |
|
else |
10160 |
< |
# Is the header compilable? |
11315 |
< |
{ echo "$as_me:$LINENO: checking iomanip usability" >&5 |
11316 |
< |
echo $ECHO_N "checking iomanip usability... $ECHO_C" >&6; } |
11317 |
< |
cat >conftest.$ac_ext <<_ACEOF |
10160 |
> |
cat >conftest.$ac_ext <<_ACEOF |
10161 |
|
/* confdefs.h. */ |
10162 |
|
_ACEOF |
10163 |
|
cat confdefs.h >>conftest.$ac_ext |
10164 |
|
cat >>conftest.$ac_ext <<_ACEOF |
10165 |
|
/* end confdefs.h. */ |
10166 |
|
$ac_includes_default |
10167 |
< |
#include <iomanip> |
10167 |
> |
typedef _Bool ac__type_new_; |
10168 |
> |
#ifdef FC_DUMMY_MAIN |
10169 |
> |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
10170 |
> |
# ifdef __cplusplus |
10171 |
> |
extern "C" |
10172 |
> |
# endif |
10173 |
> |
int FC_DUMMY_MAIN() { return 1; } |
10174 |
> |
#endif |
10175 |
> |
#endif |
10176 |
> |
int |
10177 |
> |
main () |
10178 |
> |
{ |
10179 |
> |
if ((ac__type_new_ *) 0) |
10180 |
> |
return 0; |
10181 |
> |
if (sizeof (ac__type_new_)) |
10182 |
> |
return 0; |
10183 |
> |
; |
10184 |
> |
return 0; |
10185 |
> |
} |
10186 |
|
_ACEOF |
10187 |
|
rm -f conftest.$ac_objext |
10188 |
|
if { (ac_try="$ac_compile" |
10198 |
|
cat conftest.err >&5 |
10199 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10200 |
|
(exit $ac_status); } && { |
10201 |
< |
test -z "$ac_cxx_werror_flag" || |
10201 |
> |
test -z "$ac_c_werror_flag" || |
10202 |
|
test ! -s conftest.err |
10203 |
|
} && test -s conftest.$ac_objext; then |
10204 |
< |
ac_header_compiler=yes |
10204 |
> |
ac_cv_type__Bool=yes |
10205 |
|
else |
10206 |
|
echo "$as_me: failed program was:" >&5 |
10207 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
10208 |
|
|
10209 |
< |
ac_header_compiler=no |
10209 |
> |
ac_cv_type__Bool=no |
10210 |
|
fi |
10211 |
|
|
10212 |
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
10213 |
< |
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10214 |
< |
echo "${ECHO_T}$ac_header_compiler" >&6; } |
10213 |
> |
fi |
10214 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 |
10215 |
> |
echo "${ECHO_T}$ac_cv_type__Bool" >&6; } |
10216 |
> |
if test $ac_cv_type__Bool = yes; then |
10217 |
|
|
10218 |
< |
# Is the header present? |
10219 |
< |
{ echo "$as_me:$LINENO: checking iomanip presence" >&5 |
10220 |
< |
echo $ECHO_N "checking iomanip presence... $ECHO_C" >&6; } |
10221 |
< |
cat >conftest.$ac_ext <<_ACEOF |
10218 |
> |
cat >>confdefs.h <<_ACEOF |
10219 |
> |
#define HAVE__BOOL 1 |
10220 |
> |
_ACEOF |
10221 |
> |
|
10222 |
> |
|
10223 |
> |
fi |
10224 |
> |
|
10225 |
> |
if test $ac_cv_header_stdbool_h = yes; then |
10226 |
> |
|
10227 |
> |
cat >>confdefs.h <<\_ACEOF |
10228 |
> |
#define HAVE_STDBOOL_H 1 |
10229 |
> |
_ACEOF |
10230 |
> |
|
10231 |
> |
fi |
10232 |
> |
|
10233 |
> |
{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
10234 |
> |
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } |
10235 |
> |
if test "${ac_cv_c_const+set}" = set; then |
10236 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
10237 |
> |
else |
10238 |
> |
cat >conftest.$ac_ext <<_ACEOF |
10239 |
|
/* confdefs.h. */ |
10240 |
|
_ACEOF |
10241 |
|
cat confdefs.h >>conftest.$ac_ext |
10242 |
|
cat >>conftest.$ac_ext <<_ACEOF |
10243 |
|
/* end confdefs.h. */ |
10244 |
< |
#include <iomanip> |
10244 |
> |
|
10245 |
> |
#ifdef FC_DUMMY_MAIN |
10246 |
> |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
10247 |
> |
# ifdef __cplusplus |
10248 |
> |
extern "C" |
10249 |
> |
# endif |
10250 |
> |
int FC_DUMMY_MAIN() { return 1; } |
10251 |
> |
#endif |
10252 |
> |
#endif |
10253 |
> |
int |
10254 |
> |
main () |
10255 |
> |
{ |
10256 |
> |
/* FIXME: Include the comments suggested by Paul. */ |
10257 |
> |
#ifndef __cplusplus |
10258 |
> |
/* Ultrix mips cc rejects this. */ |
10259 |
> |
typedef int charset[2]; |
10260 |
> |
const charset cs; |
10261 |
> |
/* SunOS 4.1.1 cc rejects this. */ |
10262 |
> |
char const *const *pcpcc; |
10263 |
> |
char **ppc; |
10264 |
> |
/* NEC SVR4.0.2 mips cc rejects this. */ |
10265 |
> |
struct point {int x, y;}; |
10266 |
> |
static struct point const zero = {0,0}; |
10267 |
> |
/* AIX XL C 1.02.0.0 rejects this. |
10268 |
> |
It does not let you subtract one const X* pointer from another in |
10269 |
> |
an arm of an if-expression whose if-part is not a constant |
10270 |
> |
expression */ |
10271 |
> |
const char *g = "string"; |
10272 |
> |
pcpcc = &g + (g ? g-g : 0); |
10273 |
> |
/* HPUX 7.0 cc rejects these. */ |
10274 |
> |
++pcpcc; |
10275 |
> |
ppc = (char**) pcpcc; |
10276 |
> |
pcpcc = (char const *const *) ppc; |
10277 |
> |
{ /* SCO 3.2v4 cc rejects this. */ |
10278 |
> |
char *t; |
10279 |
> |
char const *s = 0 ? (char *) 0 : (char const *) 0; |
10280 |
> |
|
10281 |
> |
*t++ = 0; |
10282 |
> |
if (s) return 0; |
10283 |
> |
} |
10284 |
> |
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
10285 |
> |
int x[] = {25, 17}; |
10286 |
> |
const int *foo = &x[0]; |
10287 |
> |
++foo; |
10288 |
> |
} |
10289 |
> |
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
10290 |
> |
typedef const int *iptr; |
10291 |
> |
iptr p = 0; |
10292 |
> |
++p; |
10293 |
> |
} |
10294 |
> |
{ /* AIX XL C 1.02.0.0 rejects this saying |
10295 |
> |
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
10296 |
> |
struct s { int j; const int *ap[3]; }; |
10297 |
> |
struct s *b; b->j = 5; |
10298 |
> |
} |
10299 |
> |
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
10300 |
> |
const int foo = 10; |
10301 |
> |
if (!foo) return 0; |
10302 |
> |
} |
10303 |
> |
return !cs[0] && !zero.x; |
10304 |
> |
#endif |
10305 |
> |
|
10306 |
> |
; |
10307 |
> |
return 0; |
10308 |
> |
} |
10309 |
|
_ACEOF |
10310 |
< |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
10310 |
> |
rm -f conftest.$ac_objext |
10311 |
> |
if { (ac_try="$ac_compile" |
10312 |
|
case "(($ac_try" in |
10313 |
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10314 |
|
*) ac_try_echo=$ac_try;; |
10315 |
|
esac |
10316 |
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10317 |
< |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
10317 |
> |
(eval "$ac_compile") 2>conftest.er1 |
10318 |
|
ac_status=$? |
10319 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
10320 |
|
rm -f conftest.er1 |
10321 |
|
cat conftest.err >&5 |
10322 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10323 |
< |
(exit $ac_status); } >/dev/null && { |
10324 |
< |
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
10323 |
> |
(exit $ac_status); } && { |
10324 |
> |
test -z "$ac_c_werror_flag" || |
10325 |
|
test ! -s conftest.err |
10326 |
< |
}; then |
10327 |
< |
ac_header_preproc=yes |
10326 |
> |
} && test -s conftest.$ac_objext; then |
10327 |
> |
ac_cv_c_const=yes |
10328 |
|
else |
10329 |
|
echo "$as_me: failed program was:" >&5 |
10330 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
10331 |
|
|
10332 |
< |
ac_header_preproc=no |
10332 |
> |
ac_cv_c_const=no |
10333 |
|
fi |
10334 |
|
|
10335 |
< |
rm -f conftest.err conftest.$ac_ext |
10336 |
< |
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10337 |
< |
echo "${ECHO_T}$ac_header_preproc" >&6; } |
10335 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
10336 |
> |
fi |
10337 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
10338 |
> |
echo "${ECHO_T}$ac_cv_c_const" >&6; } |
10339 |
> |
if test $ac_cv_c_const = no; then |
10340 |
|
|
10341 |
< |
# So? What about this header? |
10342 |
< |
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
10343 |
< |
yes:no: ) |
10344 |
< |
{ echo "$as_me:$LINENO: WARNING: iomanip: accepted by the compiler, rejected by the preprocessor!" >&5 |
10345 |
< |
echo "$as_me: WARNING: iomanip: accepted by the compiler, rejected by the preprocessor!" >&2;} |
10346 |
< |
{ echo "$as_me:$LINENO: WARNING: iomanip: proceeding with the compiler's result" >&5 |
10347 |
< |
echo "$as_me: WARNING: iomanip: proceeding with the compiler's result" >&2;} |
10348 |
< |
ac_header_preproc=yes |
10341 |
> |
cat >>confdefs.h <<\_ACEOF |
10342 |
> |
#define const |
10343 |
> |
_ACEOF |
10344 |
> |
|
10345 |
> |
fi |
10346 |
> |
|
10347 |
> |
{ echo "$as_me:$LINENO: checking for inline" >&5 |
10348 |
> |
echo $ECHO_N "checking for inline... $ECHO_C" >&6; } |
10349 |
> |
if test "${ac_cv_c_inline+set}" = set; then |
10350 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
10351 |
> |
else |
10352 |
> |
ac_cv_c_inline=no |
10353 |
> |
for ac_kw in inline __inline__ __inline; do |
10354 |
> |
cat >conftest.$ac_ext <<_ACEOF |
10355 |
> |
/* confdefs.h. */ |
10356 |
> |
_ACEOF |
10357 |
> |
cat confdefs.h >>conftest.$ac_ext |
10358 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
10359 |
> |
/* end confdefs.h. */ |
10360 |
> |
#ifndef __cplusplus |
10361 |
> |
typedef int foo_t; |
10362 |
> |
static $ac_kw foo_t static_foo () {return 0; } |
10363 |
> |
$ac_kw foo_t foo () {return 0; } |
10364 |
> |
#endif |
10365 |
> |
|
10366 |
> |
_ACEOF |
10367 |
> |
rm -f conftest.$ac_objext |
10368 |
> |
if { (ac_try="$ac_compile" |
10369 |
> |
case "(($ac_try" in |
10370 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10371 |
> |
*) ac_try_echo=$ac_try;; |
10372 |
> |
esac |
10373 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10374 |
> |
(eval "$ac_compile") 2>conftest.er1 |
10375 |
> |
ac_status=$? |
10376 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
10377 |
> |
rm -f conftest.er1 |
10378 |
> |
cat conftest.err >&5 |
10379 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10380 |
> |
(exit $ac_status); } && { |
10381 |
> |
test -z "$ac_c_werror_flag" || |
10382 |
> |
test ! -s conftest.err |
10383 |
> |
} && test -s conftest.$ac_objext; then |
10384 |
> |
ac_cv_c_inline=$ac_kw |
10385 |
> |
else |
10386 |
> |
echo "$as_me: failed program was:" >&5 |
10387 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
10388 |
> |
|
10389 |
> |
|
10390 |
> |
fi |
10391 |
> |
|
10392 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
10393 |
> |
test "$ac_cv_c_inline" != no && break |
10394 |
> |
done |
10395 |
> |
|
10396 |
> |
fi |
10397 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
10398 |
> |
echo "${ECHO_T}$ac_cv_c_inline" >&6; } |
10399 |
> |
|
10400 |
> |
|
10401 |
> |
case $ac_cv_c_inline in |
10402 |
> |
inline | yes) ;; |
10403 |
> |
*) |
10404 |
> |
case $ac_cv_c_inline in |
10405 |
> |
no) ac_val=;; |
10406 |
> |
*) ac_val=$ac_cv_c_inline;; |
10407 |
> |
esac |
10408 |
> |
cat >>confdefs.h <<_ACEOF |
10409 |
> |
#ifndef __cplusplus |
10410 |
> |
#define inline $ac_val |
10411 |
> |
#endif |
10412 |
> |
_ACEOF |
10413 |
|
;; |
10414 |
< |
no:yes:* ) |
10415 |
< |
{ echo "$as_me:$LINENO: WARNING: iomanip: present but cannot be compiled" >&5 |
10416 |
< |
echo "$as_me: WARNING: iomanip: present but cannot be compiled" >&2;} |
10417 |
< |
{ echo "$as_me:$LINENO: WARNING: iomanip: check for missing prerequisite headers?" >&5 |
10418 |
< |
echo "$as_me: WARNING: iomanip: check for missing prerequisite headers?" >&2;} |
10419 |
< |
{ echo "$as_me:$LINENO: WARNING: iomanip: see the Autoconf documentation" >&5 |
10420 |
< |
echo "$as_me: WARNING: iomanip: see the Autoconf documentation" >&2;} |
10421 |
< |
{ echo "$as_me:$LINENO: WARNING: iomanip: section \"Present But Cannot Be Compiled\"" >&5 |
10422 |
< |
echo "$as_me: WARNING: iomanip: section \"Present But Cannot Be Compiled\"" >&2;} |
10423 |
< |
{ echo "$as_me:$LINENO: WARNING: iomanip: proceeding with the preprocessor's result" >&5 |
10424 |
< |
echo "$as_me: WARNING: iomanip: proceeding with the preprocessor's result" >&2;} |
10425 |
< |
{ echo "$as_me:$LINENO: WARNING: iomanip: in the future, the compiler will take precedence" >&5 |
10426 |
< |
echo "$as_me: WARNING: iomanip: in the future, the compiler will take precedence" >&2;} |
10427 |
< |
( cat <<\_ASBOX |
10428 |
< |
## ------------------------------ ## |
10429 |
< |
## Report this to gezelter@nd.edu ## |
10430 |
< |
## ------------------------------ ## |
10431 |
< |
_ASBOX |
10432 |
< |
) | sed "s/^/$as_me: WARNING: /" >&2 |
10433 |
< |
;; |
10414 |
> |
esac |
10415 |
> |
|
10416 |
> |
{ echo "$as_me:$LINENO: checking for size_t" >&5 |
10417 |
> |
echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
10418 |
> |
if test "${ac_cv_type_size_t+set}" = set; then |
10419 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
10420 |
> |
else |
10421 |
> |
cat >conftest.$ac_ext <<_ACEOF |
10422 |
> |
/* confdefs.h. */ |
10423 |
> |
_ACEOF |
10424 |
> |
cat confdefs.h >>conftest.$ac_ext |
10425 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
10426 |
> |
/* end confdefs.h. */ |
10427 |
> |
$ac_includes_default |
10428 |
> |
typedef size_t ac__type_new_; |
10429 |
> |
#ifdef FC_DUMMY_MAIN |
10430 |
> |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
10431 |
> |
# ifdef __cplusplus |
10432 |
> |
extern "C" |
10433 |
> |
# endif |
10434 |
> |
int FC_DUMMY_MAIN() { return 1; } |
10435 |
> |
#endif |
10436 |
> |
#endif |
10437 |
> |
int |
10438 |
> |
main () |
10439 |
> |
{ |
10440 |
> |
if ((ac__type_new_ *) 0) |
10441 |
> |
return 0; |
10442 |
> |
if (sizeof (ac__type_new_)) |
10443 |
> |
return 0; |
10444 |
> |
; |
10445 |
> |
return 0; |
10446 |
> |
} |
10447 |
> |
_ACEOF |
10448 |
> |
rm -f conftest.$ac_objext |
10449 |
> |
if { (ac_try="$ac_compile" |
10450 |
> |
case "(($ac_try" in |
10451 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10452 |
> |
*) ac_try_echo=$ac_try;; |
10453 |
> |
esac |
10454 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10455 |
> |
(eval "$ac_compile") 2>conftest.er1 |
10456 |
> |
ac_status=$? |
10457 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
10458 |
> |
rm -f conftest.er1 |
10459 |
> |
cat conftest.err >&5 |
10460 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10461 |
> |
(exit $ac_status); } && { |
10462 |
> |
test -z "$ac_c_werror_flag" || |
10463 |
> |
test ! -s conftest.err |
10464 |
> |
} && test -s conftest.$ac_objext; then |
10465 |
> |
ac_cv_type_size_t=yes |
10466 |
> |
else |
10467 |
> |
echo "$as_me: failed program was:" >&5 |
10468 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
10469 |
> |
|
10470 |
> |
ac_cv_type_size_t=no |
10471 |
> |
fi |
10472 |
> |
|
10473 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
10474 |
> |
fi |
10475 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
10476 |
> |
echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
10477 |
> |
if test $ac_cv_type_size_t = yes; then |
10478 |
> |
: |
10479 |
> |
else |
10480 |
> |
|
10481 |
> |
cat >>confdefs.h <<_ACEOF |
10482 |
> |
#define size_t unsigned int |
10483 |
> |
_ACEOF |
10484 |
> |
|
10485 |
> |
fi |
10486 |
> |
|
10487 |
> |
{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
10488 |
> |
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } |
10489 |
> |
if test "${ac_cv_header_time+set}" = set; then |
10490 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
10491 |
> |
else |
10492 |
> |
cat >conftest.$ac_ext <<_ACEOF |
10493 |
> |
/* confdefs.h. */ |
10494 |
> |
_ACEOF |
10495 |
> |
cat confdefs.h >>conftest.$ac_ext |
10496 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
10497 |
> |
/* end confdefs.h. */ |
10498 |
> |
#include <sys/types.h> |
10499 |
> |
#include <sys/time.h> |
10500 |
> |
#include <time.h> |
10501 |
> |
|
10502 |
> |
#ifdef FC_DUMMY_MAIN |
10503 |
> |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
10504 |
> |
# ifdef __cplusplus |
10505 |
> |
extern "C" |
10506 |
> |
# endif |
10507 |
> |
int FC_DUMMY_MAIN() { return 1; } |
10508 |
> |
#endif |
10509 |
> |
#endif |
10510 |
> |
int |
10511 |
> |
main () |
10512 |
> |
{ |
10513 |
> |
if ((struct tm *) 0) |
10514 |
> |
return 0; |
10515 |
> |
; |
10516 |
> |
return 0; |
10517 |
> |
} |
10518 |
> |
_ACEOF |
10519 |
> |
rm -f conftest.$ac_objext |
10520 |
> |
if { (ac_try="$ac_compile" |
10521 |
> |
case "(($ac_try" in |
10522 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10523 |
> |
*) ac_try_echo=$ac_try;; |
10524 |
|
esac |
10525 |
< |
{ echo "$as_me:$LINENO: checking for iomanip" >&5 |
10526 |
< |
echo $ECHO_N "checking for iomanip... $ECHO_C" >&6; } |
10527 |
< |
if test "${ac_cv_header_iomanip+set}" = set; then |
10528 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
10525 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10526 |
> |
(eval "$ac_compile") 2>conftest.er1 |
10527 |
> |
ac_status=$? |
10528 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
10529 |
> |
rm -f conftest.er1 |
10530 |
> |
cat conftest.err >&5 |
10531 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10532 |
> |
(exit $ac_status); } && { |
10533 |
> |
test -z "$ac_c_werror_flag" || |
10534 |
> |
test ! -s conftest.err |
10535 |
> |
} && test -s conftest.$ac_objext; then |
10536 |
> |
ac_cv_header_time=yes |
10537 |
|
else |
10538 |
< |
ac_cv_header_iomanip=$ac_header_preproc |
10538 |
> |
echo "$as_me: failed program was:" >&5 |
10539 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
10540 |
> |
|
10541 |
> |
ac_cv_header_time=no |
10542 |
|
fi |
11431 |
– |
{ echo "$as_me:$LINENO: result: $ac_cv_header_iomanip" >&5 |
11432 |
– |
echo "${ECHO_T}$ac_cv_header_iomanip" >&6; } |
10543 |
|
|
10544 |
+ |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
10545 |
|
fi |
10546 |
< |
if test $ac_cv_header_iomanip = yes; then |
10546 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
10547 |
> |
echo "${ECHO_T}$ac_cv_header_time" >&6; } |
10548 |
> |
if test $ac_cv_header_time = yes; then |
10549 |
|
|
11437 |
– |
|
10550 |
|
cat >>confdefs.h <<\_ACEOF |
10551 |
< |
#define HAVE_IOMANIP 1 |
10551 |
> |
#define TIME_WITH_SYS_TIME 1 |
10552 |
|
_ACEOF |
10553 |
|
|
10554 |
+ |
fi |
10555 |
|
|
11443 |
– |
else |
10556 |
|
|
10557 |
+ |
# Checks for library functions. |
10558 |
|
|
10559 |
< |
for ac_header in iomanip.h |
10559 |
> |
for ac_header in stdlib.h |
10560 |
|
do |
10561 |
|
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
10562 |
|
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10595 |
|
cat conftest.err >&5 |
10596 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10597 |
|
(exit $ac_status); } && { |
10598 |
< |
test -z "$ac_cxx_werror_flag" || |
10598 |
> |
test -z "$ac_c_werror_flag" || |
10599 |
|
test ! -s conftest.err |
10600 |
|
} && test -s conftest.$ac_objext; then |
10601 |
|
ac_header_compiler=yes |
10634 |
|
cat conftest.err >&5 |
10635 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10636 |
|
(exit $ac_status); } >/dev/null && { |
10637 |
< |
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
10637 |
> |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
10638 |
|
test ! -s conftest.err |
10639 |
|
}; then |
10640 |
|
ac_header_preproc=yes |
10650 |
|
echo "${ECHO_T}$ac_header_preproc" >&6; } |
10651 |
|
|
10652 |
|
# So? What about this header? |
10653 |
< |
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
10653 |
> |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10654 |
|
yes:no: ) |
10655 |
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10656 |
|
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
10700 |
|
|
10701 |
|
done |
10702 |
|
|
10703 |
+ |
{ echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 |
10704 |
+ |
echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; } |
10705 |
+ |
if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then |
10706 |
+ |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
10707 |
+ |
else |
10708 |
+ |
if test "$cross_compiling" = yes; then |
10709 |
+ |
ac_cv_func_malloc_0_nonnull=no |
10710 |
+ |
else |
10711 |
+ |
cat >conftest.$ac_ext <<_ACEOF |
10712 |
+ |
/* confdefs.h. */ |
10713 |
+ |
_ACEOF |
10714 |
+ |
cat confdefs.h >>conftest.$ac_ext |
10715 |
+ |
cat >>conftest.$ac_ext <<_ACEOF |
10716 |
+ |
/* end confdefs.h. */ |
10717 |
+ |
#if defined STDC_HEADERS || defined HAVE_STDLIB_H |
10718 |
+ |
# include <stdlib.h> |
10719 |
+ |
#else |
10720 |
+ |
char *malloc (); |
10721 |
+ |
#endif |
10722 |
|
|
10723 |
+ |
#ifdef FC_DUMMY_MAIN |
10724 |
+ |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
10725 |
+ |
# ifdef __cplusplus |
10726 |
+ |
extern "C" |
10727 |
+ |
# endif |
10728 |
+ |
int FC_DUMMY_MAIN() { return 1; } |
10729 |
+ |
#endif |
10730 |
+ |
#endif |
10731 |
+ |
int |
10732 |
+ |
main () |
10733 |
+ |
{ |
10734 |
+ |
return ! malloc (0); |
10735 |
+ |
; |
10736 |
+ |
return 0; |
10737 |
+ |
} |
10738 |
+ |
_ACEOF |
10739 |
+ |
rm -f conftest$ac_exeext |
10740 |
+ |
if { (ac_try="$ac_link" |
10741 |
+ |
case "(($ac_try" in |
10742 |
+ |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10743 |
+ |
*) ac_try_echo=$ac_try;; |
10744 |
+ |
esac |
10745 |
+ |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10746 |
+ |
(eval "$ac_link") 2>&5 |
10747 |
+ |
ac_status=$? |
10748 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10749 |
+ |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
10750 |
+ |
{ (case "(($ac_try" in |
10751 |
+ |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10752 |
+ |
*) ac_try_echo=$ac_try;; |
10753 |
+ |
esac |
10754 |
+ |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10755 |
+ |
(eval "$ac_try") 2>&5 |
10756 |
+ |
ac_status=$? |
10757 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10758 |
+ |
(exit $ac_status); }; }; then |
10759 |
+ |
ac_cv_func_malloc_0_nonnull=yes |
10760 |
+ |
else |
10761 |
+ |
echo "$as_me: program exited with status $ac_status" >&5 |
10762 |
+ |
echo "$as_me: failed program was:" >&5 |
10763 |
+ |
sed 's/^/| /' conftest.$ac_ext >&5 |
10764 |
+ |
|
10765 |
+ |
( exit $ac_status ) |
10766 |
+ |
ac_cv_func_malloc_0_nonnull=no |
10767 |
|
fi |
10768 |
+ |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
10769 |
+ |
fi |
10770 |
|
|
10771 |
|
|
10772 |
+ |
fi |
10773 |
+ |
{ echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 |
10774 |
+ |
echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; } |
10775 |
+ |
if test $ac_cv_func_malloc_0_nonnull = yes; then |
10776 |
|
|
10777 |
+ |
cat >>confdefs.h <<\_ACEOF |
10778 |
+ |
#define HAVE_MALLOC 1 |
10779 |
+ |
_ACEOF |
10780 |
|
|
10781 |
< |
for ac_header in cmath |
10781 |
> |
else |
10782 |
> |
cat >>confdefs.h <<\_ACEOF |
10783 |
> |
#define HAVE_MALLOC 0 |
10784 |
> |
_ACEOF |
10785 |
> |
|
10786 |
> |
case " $LIBOBJS " in |
10787 |
> |
*" malloc.$ac_objext "* ) ;; |
10788 |
> |
*) LIBOBJS="$LIBOBJS malloc.$ac_objext" |
10789 |
> |
;; |
10790 |
> |
esac |
10791 |
> |
|
10792 |
> |
|
10793 |
> |
cat >>confdefs.h <<\_ACEOF |
10794 |
> |
#define malloc rpl_malloc |
10795 |
> |
_ACEOF |
10796 |
> |
|
10797 |
> |
fi |
10798 |
> |
|
10799 |
> |
|
10800 |
> |
|
10801 |
> |
|
10802 |
> |
for ac_header in stdlib.h |
10803 |
|
do |
10804 |
|
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
10805 |
|
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10838 |
|
cat conftest.err >&5 |
10839 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10840 |
|
(exit $ac_status); } && { |
10841 |
< |
test -z "$ac_cxx_werror_flag" || |
10841 |
> |
test -z "$ac_c_werror_flag" || |
10842 |
|
test ! -s conftest.err |
10843 |
|
} && test -s conftest.$ac_objext; then |
10844 |
|
ac_header_compiler=yes |
10877 |
|
cat conftest.err >&5 |
10878 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10879 |
|
(exit $ac_status); } >/dev/null && { |
10880 |
< |
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
10880 |
> |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
10881 |
|
test ! -s conftest.err |
10882 |
|
}; then |
10883 |
|
ac_header_preproc=yes |
10893 |
|
echo "${ECHO_T}$ac_header_preproc" >&6; } |
10894 |
|
|
10895 |
|
# So? What about this header? |
10896 |
< |
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
10896 |
> |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10897 |
|
yes:no: ) |
10898 |
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10899 |
|
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
10943 |
|
|
10944 |
|
done |
10945 |
|
|
10946 |
< |
|
10947 |
< |
|
10948 |
< |
|
11743 |
< |
{ echo "$as_me:$LINENO: checking for C++ iostream in namespace std" >&5 |
11744 |
< |
echo $ECHO_N "checking for C++ iostream in namespace std... $ECHO_C" >&6; } |
11745 |
< |
if test "${ac_cv_cxx_have_std_iostream+set}" = set; then |
10946 |
> |
{ echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5 |
10947 |
> |
echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; } |
10948 |
> |
if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then |
10949 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
10950 |
|
else |
10951 |
< |
|
10952 |
< |
ac_cv_cxx_have_std_iostream=no |
10953 |
< |
ac_cv_cxx_need_use_std_iostream=no |
10954 |
< |
if test "x$ac_cv_cxx_namespaces" = xyes; then |
11752 |
< |
|
11753 |
< |
ac_ext=cpp |
11754 |
< |
ac_cpp='$CXXCPP $CPPFLAGS' |
11755 |
< |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
11756 |
< |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
11757 |
< |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
11758 |
< |
|
11759 |
< |
cat >conftest.$ac_ext <<_ACEOF |
10951 |
> |
if test "$cross_compiling" = yes; then |
10952 |
> |
ac_cv_func_realloc_0_nonnull=no |
10953 |
> |
else |
10954 |
> |
cat >conftest.$ac_ext <<_ACEOF |
10955 |
|
/* confdefs.h. */ |
10956 |
|
_ACEOF |
10957 |
|
cat confdefs.h >>conftest.$ac_ext |
10958 |
|
cat >>conftest.$ac_ext <<_ACEOF |
10959 |
|
/* end confdefs.h. */ |
10960 |
< |
|
10961 |
< |
#ifdef HAVE_IOSTREAM |
11767 |
< |
#include <iostream> |
10960 |
> |
#if defined STDC_HEADERS || defined HAVE_STDLIB_H |
10961 |
> |
# include <stdlib.h> |
10962 |
|
#else |
10963 |
< |
#include <iostream.h> |
10963 |
> |
char *realloc (); |
10964 |
|
#endif |
10965 |
|
|
10966 |
|
#ifdef FC_DUMMY_MAIN |
10974 |
|
int |
10975 |
|
main () |
10976 |
|
{ |
10977 |
< |
std::cout<<"Hello World"<<std::endl;return 0; |
10977 |
> |
return ! realloc (0, 0); |
10978 |
|
; |
10979 |
|
return 0; |
10980 |
|
} |
10981 |
|
_ACEOF |
10982 |
< |
rm -f conftest.$ac_objext |
10983 |
< |
if { (ac_try="$ac_compile" |
10982 |
> |
rm -f conftest$ac_exeext |
10983 |
> |
if { (ac_try="$ac_link" |
10984 |
|
case "(($ac_try" in |
10985 |
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10986 |
|
*) ac_try_echo=$ac_try;; |
10987 |
|
esac |
10988 |
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10989 |
< |
(eval "$ac_compile") 2>conftest.er1 |
10989 |
> |
(eval "$ac_link") 2>&5 |
10990 |
|
ac_status=$? |
11797 |
– |
grep -v '^ *+' conftest.er1 >conftest.err |
11798 |
– |
rm -f conftest.er1 |
11799 |
– |
cat conftest.err >&5 |
10991 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10992 |
< |
(exit $ac_status); } && { |
10993 |
< |
test -z "$ac_cxx_werror_flag" || |
11803 |
< |
test ! -s conftest.err |
11804 |
< |
} && test -s conftest.$ac_objext; then |
11805 |
< |
ac_cv_cxx_have_std_iostream=yes |
11806 |
< |
else |
11807 |
< |
echo "$as_me: failed program was:" >&5 |
11808 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
11809 |
< |
|
11810 |
< |
|
11811 |
< |
fi |
11812 |
< |
|
11813 |
< |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
11814 |
< |
cat >conftest.$ac_ext <<_ACEOF |
11815 |
< |
/* confdefs.h. */ |
11816 |
< |
_ACEOF |
11817 |
< |
cat confdefs.h >>conftest.$ac_ext |
11818 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
11819 |
< |
/* end confdefs.h. */ |
11820 |
< |
|
11821 |
< |
#define __USE_STD_IOSTREAM 1 |
11822 |
< |
#ifdef HAVE_IOSTREAM |
11823 |
< |
#include <iostream> |
11824 |
< |
#else |
11825 |
< |
#include <iostream.h> |
11826 |
< |
#endif |
11827 |
< |
|
11828 |
< |
#ifdef FC_DUMMY_MAIN |
11829 |
< |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
11830 |
< |
# ifdef __cplusplus |
11831 |
< |
extern "C" |
11832 |
< |
# endif |
11833 |
< |
int FC_DUMMY_MAIN() { return 1; } |
11834 |
< |
#endif |
11835 |
< |
#endif |
11836 |
< |
int |
11837 |
< |
main () |
11838 |
< |
{ |
11839 |
< |
std::cout<<"Hello World"<<std::endl;return 0; |
11840 |
< |
; |
11841 |
< |
return 0; |
11842 |
< |
} |
11843 |
< |
_ACEOF |
11844 |
< |
rm -f conftest.$ac_objext |
11845 |
< |
if { (ac_try="$ac_compile" |
11846 |
< |
case "(($ac_try" in |
10992 |
> |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
10993 |
> |
{ (case "(($ac_try" in |
10994 |
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10995 |
|
*) ac_try_echo=$ac_try;; |
10996 |
|
esac |
10997 |
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10998 |
< |
(eval "$ac_compile") 2>conftest.er1 |
10998 |
> |
(eval "$ac_try") 2>&5 |
10999 |
|
ac_status=$? |
11853 |
– |
grep -v '^ *+' conftest.er1 >conftest.err |
11854 |
– |
rm -f conftest.er1 |
11855 |
– |
cat conftest.err >&5 |
11000 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11001 |
< |
(exit $ac_status); } && { |
11002 |
< |
test -z "$ac_cxx_werror_flag" || |
11859 |
< |
test ! -s conftest.err |
11860 |
< |
} && test -s conftest.$ac_objext; then |
11861 |
< |
ac_cv_cxx_have_std_iostream=yes;ac_cv_cxx_need_use_std_iostream=yes |
11001 |
> |
(exit $ac_status); }; }; then |
11002 |
> |
ac_cv_func_realloc_0_nonnull=yes |
11003 |
|
else |
11004 |
< |
echo "$as_me: failed program was:" >&5 |
11004 |
> |
echo "$as_me: program exited with status $ac_status" >&5 |
11005 |
> |
echo "$as_me: failed program was:" >&5 |
11006 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
11007 |
|
|
11008 |
< |
|
11008 |
> |
( exit $ac_status ) |
11009 |
> |
ac_cv_func_realloc_0_nonnull=no |
11010 |
|
fi |
11011 |
< |
|
11869 |
< |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
11870 |
< |
ac_ext=cpp |
11871 |
< |
ac_cpp='$CXXCPP $CPPFLAGS' |
11872 |
< |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
11873 |
< |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
11874 |
< |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
11875 |
< |
|
11876 |
< |
fi |
11877 |
< |
|
11011 |
> |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
11012 |
|
fi |
11879 |
– |
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iostream" >&5 |
11880 |
– |
echo "${ECHO_T}$ac_cv_cxx_have_std_iostream" >&6; } |
11881 |
– |
if test "$ac_cv_cxx_have_std_iostream" = yes; then |
11013 |
|
|
11883 |
– |
cat >>confdefs.h <<\_ACEOF |
11884 |
– |
#define HAVE_STD_IOSTREAM 1 |
11885 |
– |
_ACEOF |
11014 |
|
|
11887 |
– |
fi |
11888 |
– |
if test "$ac_cv_cxx_need_use_std_iostream" = yes; then |
11889 |
– |
|
11890 |
– |
cat >>confdefs.h <<\_ACEOF |
11891 |
– |
#define __USE_STD_IOSTREAM 1 |
11892 |
– |
_ACEOF |
11893 |
– |
|
11894 |
– |
fi |
11895 |
– |
|
11896 |
– |
|
11897 |
– |
|
11898 |
– |
|
11899 |
– |
{ echo "$as_me:$LINENO: checking for C++ Standard Template Library in namespace std." >&5 |
11900 |
– |
echo $ECHO_N "checking for C++ Standard Template Library in namespace std.... $ECHO_C" >&6; } |
11901 |
– |
if test "${ac_cv_cxx_have_std_stl+set}" = set; then |
11902 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
11903 |
– |
else |
11904 |
– |
|
11905 |
– |
ac_cv_cxx_have_std_stl=no |
11906 |
– |
if test "x$ac_cv_cxx_namespaces" = xyes; then |
11907 |
– |
|
11908 |
– |
ac_ext=cpp |
11909 |
– |
ac_cpp='$CXXCPP $CPPFLAGS' |
11910 |
– |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
11911 |
– |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
11912 |
– |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
11913 |
– |
|
11914 |
– |
cat >conftest.$ac_ext <<_ACEOF |
11915 |
– |
/* confdefs.h. */ |
11916 |
– |
_ACEOF |
11917 |
– |
cat confdefs.h >>conftest.$ac_ext |
11918 |
– |
cat >>conftest.$ac_ext <<_ACEOF |
11919 |
– |
/* end confdefs.h. */ |
11920 |
– |
#include <list> |
11921 |
– |
|
11922 |
– |
#ifdef FC_DUMMY_MAIN |
11923 |
– |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
11924 |
– |
# ifdef __cplusplus |
11925 |
– |
extern "C" |
11926 |
– |
# endif |
11927 |
– |
int FC_DUMMY_MAIN() { return 1; } |
11928 |
– |
#endif |
11929 |
– |
#endif |
11930 |
– |
int |
11931 |
– |
main () |
11932 |
– |
{ |
11933 |
– |
std::list<int> foo;return 0; |
11934 |
– |
; |
11935 |
– |
return 0; |
11936 |
– |
} |
11937 |
– |
_ACEOF |
11938 |
– |
rm -f conftest.$ac_objext |
11939 |
– |
if { (ac_try="$ac_compile" |
11940 |
– |
case "(($ac_try" in |
11941 |
– |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11942 |
– |
*) ac_try_echo=$ac_try;; |
11943 |
– |
esac |
11944 |
– |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11945 |
– |
(eval "$ac_compile") 2>conftest.er1 |
11946 |
– |
ac_status=$? |
11947 |
– |
grep -v '^ *+' conftest.er1 >conftest.err |
11948 |
– |
rm -f conftest.er1 |
11949 |
– |
cat conftest.err >&5 |
11950 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11951 |
– |
(exit $ac_status); } && { |
11952 |
– |
test -z "$ac_cxx_werror_flag" || |
11953 |
– |
test ! -s conftest.err |
11954 |
– |
} && test -s conftest.$ac_objext; then |
11955 |
– |
ac_cv_cxx_have_std_stl=yes |
11956 |
– |
else |
11957 |
– |
echo "$as_me: failed program was:" >&5 |
11958 |
– |
sed 's/^/| /' conftest.$ac_ext >&5 |
11959 |
– |
|
11960 |
– |
|
11015 |
|
fi |
11016 |
+ |
{ echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5 |
11017 |
+ |
echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; } |
11018 |
+ |
if test $ac_cv_func_realloc_0_nonnull = yes; then |
11019 |
|
|
11963 |
– |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
11964 |
– |
ac_ext=cpp |
11965 |
– |
ac_cpp='$CXXCPP $CPPFLAGS' |
11966 |
– |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
11967 |
– |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
11968 |
– |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
11969 |
– |
|
11970 |
– |
fi |
11971 |
– |
|
11972 |
– |
fi |
11973 |
– |
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_stl" >&5 |
11974 |
– |
echo "${ECHO_T}$ac_cv_cxx_have_std_stl" >&6; } |
11975 |
– |
if test "$ac_cv_cxx_have_std_stl" = yes; then |
11976 |
– |
|
11020 |
|
cat >>confdefs.h <<\_ACEOF |
11021 |
< |
#define HAVE_STD_STL 1 |
11021 |
> |
#define HAVE_REALLOC 1 |
11022 |
|
_ACEOF |
11023 |
|
|
11981 |
– |
fi |
11982 |
– |
|
11983 |
– |
|
11984 |
– |
|
11985 |
– |
{ echo "$as_me:$LINENO: checking for fstream::attach()" >&5 |
11986 |
– |
echo $ECHO_N "checking for fstream::attach()... $ECHO_C" >&6; } |
11987 |
– |
if test "${ac_cv_cxx_have_fstream_attach+set}" = set; then |
11988 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
11024 |
|
else |
11025 |
< |
|
11026 |
< |
ac_cv_cxx_have_fstream_attach=no |
11992 |
< |
|
11993 |
< |
ac_ext=cpp |
11994 |
< |
ac_cpp='$CXXCPP $CPPFLAGS' |
11995 |
< |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
11996 |
< |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
11997 |
< |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
11998 |
< |
|
11999 |
< |
cat >conftest.$ac_ext <<_ACEOF |
12000 |
< |
/* confdefs.h. */ |
11025 |
> |
cat >>confdefs.h <<\_ACEOF |
11026 |
> |
#define HAVE_REALLOC 0 |
11027 |
|
_ACEOF |
12002 |
– |
cat confdefs.h >>conftest.$ac_ext |
12003 |
– |
cat >>conftest.$ac_ext <<_ACEOF |
12004 |
– |
/* end confdefs.h. */ |
11028 |
|
|
11029 |
< |
#ifdef HAVE_IOSTREAM |
11030 |
< |
#include <fstream> |
11031 |
< |
#else |
11032 |
< |
#include <fstream.h> |
12010 |
< |
#endif |
12011 |
< |
#ifdef HAVE_STD_IOSTREAM |
12012 |
< |
using namespace std; |
12013 |
< |
#endif |
12014 |
< |
|
12015 |
< |
#ifdef FC_DUMMY_MAIN |
12016 |
< |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
12017 |
< |
# ifdef __cplusplus |
12018 |
< |
extern "C" |
12019 |
< |
# endif |
12020 |
< |
int FC_DUMMY_MAIN() { return 1; } |
12021 |
< |
#endif |
12022 |
< |
#endif |
12023 |
< |
int |
12024 |
< |
main () |
12025 |
< |
{ |
12026 |
< |
int fd=0;ofstream s;s.attach(fd); |
12027 |
< |
; |
12028 |
< |
return 0; |
12029 |
< |
} |
12030 |
< |
_ACEOF |
12031 |
< |
rm -f conftest.$ac_objext |
12032 |
< |
if { (ac_try="$ac_compile" |
12033 |
< |
case "(($ac_try" in |
12034 |
< |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
12035 |
< |
*) ac_try_echo=$ac_try;; |
12036 |
< |
esac |
12037 |
< |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
12038 |
< |
(eval "$ac_compile") 2>conftest.er1 |
12039 |
< |
ac_status=$? |
12040 |
< |
grep -v '^ *+' conftest.er1 >conftest.err |
12041 |
< |
rm -f conftest.er1 |
12042 |
< |
cat conftest.err >&5 |
12043 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12044 |
< |
(exit $ac_status); } && { |
12045 |
< |
test -z "$ac_cxx_werror_flag" || |
12046 |
< |
test ! -s conftest.err |
12047 |
< |
} && test -s conftest.$ac_objext; then |
12048 |
< |
ac_cv_cxx_have_fstream_attach=yes |
12049 |
< |
else |
12050 |
< |
echo "$as_me: failed program was:" >&5 |
12051 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
12052 |
< |
|
12053 |
< |
|
12054 |
< |
fi |
12055 |
< |
|
12056 |
< |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12057 |
< |
ac_ext=cpp |
12058 |
< |
ac_cpp='$CXXCPP $CPPFLAGS' |
12059 |
< |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
12060 |
< |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
12061 |
< |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
12062 |
< |
|
12063 |
< |
|
12064 |
< |
fi |
12065 |
< |
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fstream_attach" >&5 |
12066 |
< |
echo "${ECHO_T}$ac_cv_cxx_have_fstream_attach" >&6; } |
12067 |
< |
if test "$ac_cv_cxx_have_fstream_attach" = yes; then |
12068 |
< |
|
12069 |
< |
cat >>confdefs.h <<\_ACEOF |
12070 |
< |
#define HAVE_FSTREAM_ATTACH 1 |
12071 |
< |
_ACEOF |
12072 |
< |
|
12073 |
< |
fi |
12074 |
< |
|
12075 |
< |
|
12076 |
< |
|
12077 |
< |
{ echo "$as_me:$LINENO: checking for fstream::open()" >&5 |
12078 |
< |
echo $ECHO_N "checking for fstream::open()... $ECHO_C" >&6; } |
12079 |
< |
if test "${ac_cv_cxx_have_fstream_open+set}" = set; then |
12080 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
12081 |
< |
else |
12082 |
< |
|
12083 |
< |
ac_cv_cxx_have_fstream_open=no |
12084 |
< |
ac_cv_cxx_fstream_open_prot=no |
12085 |
< |
|
12086 |
< |
ac_ext=cpp |
12087 |
< |
ac_cpp='$CXXCPP $CPPFLAGS' |
12088 |
< |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
12089 |
< |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
12090 |
< |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
12091 |
< |
|
12092 |
< |
# Try with 2 parameters |
12093 |
< |
cat >conftest.$ac_ext <<_ACEOF |
12094 |
< |
/* confdefs.h. */ |
12095 |
< |
_ACEOF |
12096 |
< |
cat confdefs.h >>conftest.$ac_ext |
12097 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
12098 |
< |
/* end confdefs.h. */ |
12099 |
< |
|
12100 |
< |
#ifdef HAVE_IOSTREAM |
12101 |
< |
#include <fstream> |
12102 |
< |
#else |
12103 |
< |
#include <fstream.h> |
12104 |
< |
#endif |
12105 |
< |
#ifdef HAVE_STD_IOSTREAM |
12106 |
< |
using namespace std; |
12107 |
< |
#endif |
12108 |
< |
|
12109 |
< |
#ifdef FC_DUMMY_MAIN |
12110 |
< |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
12111 |
< |
# ifdef __cplusplus |
12112 |
< |
extern "C" |
12113 |
< |
# endif |
12114 |
< |
int FC_DUMMY_MAIN() { return 1; } |
12115 |
< |
#endif |
12116 |
< |
#endif |
12117 |
< |
int |
12118 |
< |
main () |
12119 |
< |
{ |
12120 |
< |
ofstream s;s.open("conftest.txt",ios::out|ios::trunc); |
12121 |
< |
; |
12122 |
< |
return 0; |
12123 |
< |
} |
12124 |
< |
_ACEOF |
12125 |
< |
rm -f conftest.$ac_objext |
12126 |
< |
if { (ac_try="$ac_compile" |
12127 |
< |
case "(($ac_try" in |
12128 |
< |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
12129 |
< |
*) ac_try_echo=$ac_try;; |
11029 |
> |
case " $LIBOBJS " in |
11030 |
> |
*" realloc.$ac_objext "* ) ;; |
11031 |
> |
*) LIBOBJS="$LIBOBJS realloc.$ac_objext" |
11032 |
> |
;; |
11033 |
|
esac |
12131 |
– |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
12132 |
– |
(eval "$ac_compile") 2>conftest.er1 |
12133 |
– |
ac_status=$? |
12134 |
– |
grep -v '^ *+' conftest.er1 >conftest.err |
12135 |
– |
rm -f conftest.er1 |
12136 |
– |
cat conftest.err >&5 |
12137 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12138 |
– |
(exit $ac_status); } && { |
12139 |
– |
test -z "$ac_cxx_werror_flag" || |
12140 |
– |
test ! -s conftest.err |
12141 |
– |
} && test -s conftest.$ac_objext; then |
12142 |
– |
ac_cv_cxx_have_fstream_open=yes |
12143 |
– |
else |
12144 |
– |
echo "$as_me: failed program was:" >&5 |
12145 |
– |
sed 's/^/| /' conftest.$ac_ext >&5 |
11034 |
|
|
11035 |
|
|
11036 |
< |
fi |
11037 |
< |
|
12150 |
< |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12151 |
< |
# Try with mode parameter |
12152 |
< |
cat >conftest.$ac_ext <<_ACEOF |
12153 |
< |
/* confdefs.h. */ |
11036 |
> |
cat >>confdefs.h <<\_ACEOF |
11037 |
> |
#define realloc rpl_realloc |
11038 |
|
_ACEOF |
12155 |
– |
cat confdefs.h >>conftest.$ac_ext |
12156 |
– |
cat >>conftest.$ac_ext <<_ACEOF |
12157 |
– |
/* end confdefs.h. */ |
11039 |
|
|
12159 |
– |
#ifdef HAVE_IOSTREAM |
12160 |
– |
#include <fstream> |
12161 |
– |
#else |
12162 |
– |
#include <fstream.h> |
12163 |
– |
#endif |
12164 |
– |
#ifdef HAVE_STD_IOSTREAM |
12165 |
– |
using namespace std; |
12166 |
– |
#endif |
12167 |
– |
|
12168 |
– |
#ifdef FC_DUMMY_MAIN |
12169 |
– |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
12170 |
– |
# ifdef __cplusplus |
12171 |
– |
extern "C" |
12172 |
– |
# endif |
12173 |
– |
int FC_DUMMY_MAIN() { return 1; } |
12174 |
– |
#endif |
12175 |
– |
#endif |
12176 |
– |
int |
12177 |
– |
main () |
12178 |
– |
{ |
12179 |
– |
ofstream s;s.open("conftest.txt",ios::out|ios::trunc,0666); |
12180 |
– |
; |
12181 |
– |
return 0; |
12182 |
– |
} |
12183 |
– |
_ACEOF |
12184 |
– |
rm -f conftest.$ac_objext |
12185 |
– |
if { (ac_try="$ac_compile" |
12186 |
– |
case "(($ac_try" in |
12187 |
– |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
12188 |
– |
*) ac_try_echo=$ac_try;; |
12189 |
– |
esac |
12190 |
– |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
12191 |
– |
(eval "$ac_compile") 2>conftest.er1 |
12192 |
– |
ac_status=$? |
12193 |
– |
grep -v '^ *+' conftest.er1 >conftest.err |
12194 |
– |
rm -f conftest.er1 |
12195 |
– |
cat conftest.err >&5 |
12196 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12197 |
– |
(exit $ac_status); } && { |
12198 |
– |
test -z "$ac_cxx_werror_flag" || |
12199 |
– |
test ! -s conftest.err |
12200 |
– |
} && test -s conftest.$ac_objext; then |
12201 |
– |
ac_cv_cxx_fstream_open_prot=yes |
12202 |
– |
else |
12203 |
– |
echo "$as_me: failed program was:" >&5 |
12204 |
– |
sed 's/^/| /' conftest.$ac_ext >&5 |
12205 |
– |
|
12206 |
– |
|
11040 |
|
fi |
11041 |
|
|
12209 |
– |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12210 |
– |
ac_ext=cpp |
12211 |
– |
ac_cpp='$CXXCPP $CPPFLAGS' |
12212 |
– |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
12213 |
– |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
12214 |
– |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
11042 |
|
|
11043 |
|
|
12217 |
– |
fi |
12218 |
– |
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fstream_open" >&5 |
12219 |
– |
echo "${ECHO_T}$ac_cv_cxx_have_fstream_open" >&6; } |
12220 |
– |
if test "$ac_cv_cxx_have_fstream_open" = yes; then |
11044 |
|
|
12222 |
– |
cat >>confdefs.h <<\_ACEOF |
12223 |
– |
#define HAVE_FSTREAM_OPEN 1 |
12224 |
– |
_ACEOF |
11045 |
|
|
11046 |
< |
fi |
12227 |
< |
if test "$ac_cv_cxx_fstream_open_prot" = yes; then |
12228 |
< |
|
12229 |
< |
cat >>confdefs.h <<\_ACEOF |
12230 |
< |
#define FSTREAM_OPEN_PROT 1 |
12231 |
< |
_ACEOF |
12232 |
< |
|
12233 |
< |
fi |
12234 |
< |
|
12235 |
< |
|
12236 |
< |
|
12237 |
< |
|
12238 |
< |
|
12239 |
< |
|
12240 |
< |
|
12241 |
< |
for ac_header in ctype.h iostream fstream sstream strstream |
11046 |
> |
for ac_header in sys/select.h sys/socket.h |
11047 |
|
do |
11048 |
|
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
11049 |
|
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
11082 |
|
cat conftest.err >&5 |
11083 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11084 |
|
(exit $ac_status); } && { |
11085 |
< |
test -z "$ac_cxx_werror_flag" || |
11085 |
> |
test -z "$ac_c_werror_flag" || |
11086 |
|
test ! -s conftest.err |
11087 |
|
} && test -s conftest.$ac_objext; then |
11088 |
|
ac_header_compiler=yes |
11121 |
|
cat conftest.err >&5 |
11122 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11123 |
|
(exit $ac_status); } >/dev/null && { |
11124 |
< |
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
11124 |
> |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
11125 |
|
test ! -s conftest.err |
11126 |
|
}; then |
11127 |
|
ac_header_preproc=yes |
11137 |
|
echo "${ECHO_T}$ac_header_preproc" >&6; } |
11138 |
|
|
11139 |
|
# So? What about this header? |
11140 |
< |
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
11140 |
> |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11141 |
|
yes:no: ) |
11142 |
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11143 |
|
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
11187 |
|
|
11188 |
|
done |
11189 |
|
|
11190 |
< |
# AC_CPP_FUNC |
11191 |
< |
# ------------------ # |
11192 |
< |
# Checks to see if ANSI C99 CPP variable __func__ works. |
12388 |
< |
# If not, perhaps __FUNCTION__ works instead. |
12389 |
< |
# If not, we'll just define __func__ to "". |
12390 |
< |
# AC_CPP_FUNC |
12391 |
< |
|
12392 |
< |
case $ac_cv_prog_cc_stdc in |
12393 |
< |
no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; |
12394 |
< |
*) { echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5 |
12395 |
< |
echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; } |
12396 |
< |
if test "${ac_cv_prog_cc_c99+set}" = set; then |
11190 |
> |
{ echo "$as_me:$LINENO: checking types of arguments for select" >&5 |
11191 |
> |
echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; } |
11192 |
> |
if test "${ac_cv_func_select_args+set}" = set; then |
11193 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
11194 |
|
else |
11195 |
< |
ac_cv_prog_cc_c99=no |
11196 |
< |
ac_save_CC=$CC |
11197 |
< |
cat >conftest.$ac_ext <<_ACEOF |
11195 |
> |
for ac_arg234 in 'fd_set *' 'int *' 'void *'; do |
11196 |
> |
for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do |
11197 |
> |
for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do |
11198 |
> |
cat >conftest.$ac_ext <<_ACEOF |
11199 |
|
/* confdefs.h. */ |
11200 |
|
_ACEOF |
11201 |
|
cat confdefs.h >>conftest.$ac_ext |
11202 |
|
cat >>conftest.$ac_ext <<_ACEOF |
11203 |
|
/* end confdefs.h. */ |
11204 |
< |
#include <stdarg.h> |
11205 |
< |
#include <stdbool.h> |
11206 |
< |
#include <stdlib.h> |
12410 |
< |
#include <wchar.h> |
12411 |
< |
#include <stdio.h> |
12412 |
< |
|
12413 |
< |
// Check varargs macros. These examples are taken from C99 6.10.3.5. |
12414 |
< |
#define debug(...) fprintf (stderr, __VA_ARGS__) |
12415 |
< |
#define showlist(...) puts (#__VA_ARGS__) |
12416 |
< |
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) |
12417 |
< |
static void |
12418 |
< |
test_varargs_macros (void) |
12419 |
< |
{ |
12420 |
< |
int x = 1234; |
12421 |
< |
int y = 5678; |
12422 |
< |
debug ("Flag"); |
12423 |
< |
debug ("X = %d\n", x); |
12424 |
< |
showlist (The first, second, and third items.); |
12425 |
< |
report (x>y, "x is %d but y is %d", x, y); |
12426 |
< |
} |
12427 |
< |
|
12428 |
< |
// Check long long types. |
12429 |
< |
#define BIG64 18446744073709551615ull |
12430 |
< |
#define BIG32 4294967295ul |
12431 |
< |
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) |
12432 |
< |
#if !BIG_OK |
12433 |
< |
your preprocessor is broken; |
11204 |
> |
$ac_includes_default |
11205 |
> |
#ifdef HAVE_SYS_SELECT_H |
11206 |
> |
# include <sys/select.h> |
11207 |
|
#endif |
11208 |
< |
#if BIG_OK |
11209 |
< |
#else |
12437 |
< |
your preprocessor is broken; |
11208 |
> |
#ifdef HAVE_SYS_SOCKET_H |
11209 |
> |
# include <sys/socket.h> |
11210 |
|
#endif |
12439 |
– |
static long long int bignum = -9223372036854775807LL; |
12440 |
– |
static unsigned long long int ubignum = BIG64; |
11211 |
|
|
11212 |
< |
struct incomplete_array |
11212 |
> |
#ifdef FC_DUMMY_MAIN |
11213 |
> |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
11214 |
> |
# ifdef __cplusplus |
11215 |
> |
extern "C" |
11216 |
> |
# endif |
11217 |
> |
int FC_DUMMY_MAIN() { return 1; } |
11218 |
> |
#endif |
11219 |
> |
#endif |
11220 |
> |
int |
11221 |
> |
main () |
11222 |
|
{ |
11223 |
< |
int datasize; |
11224 |
< |
double data[]; |
11225 |
< |
}; |
11223 |
> |
extern int select ($ac_arg1, |
11224 |
> |
$ac_arg234, $ac_arg234, $ac_arg234, |
11225 |
> |
$ac_arg5); |
11226 |
> |
; |
11227 |
> |
return 0; |
11228 |
> |
} |
11229 |
> |
_ACEOF |
11230 |
> |
rm -f conftest.$ac_objext |
11231 |
> |
if { (ac_try="$ac_compile" |
11232 |
> |
case "(($ac_try" in |
11233 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11234 |
> |
*) ac_try_echo=$ac_try;; |
11235 |
> |
esac |
11236 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11237 |
> |
(eval "$ac_compile") 2>conftest.er1 |
11238 |
> |
ac_status=$? |
11239 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
11240 |
> |
rm -f conftest.er1 |
11241 |
> |
cat conftest.err >&5 |
11242 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11243 |
> |
(exit $ac_status); } && { |
11244 |
> |
test -z "$ac_c_werror_flag" || |
11245 |
> |
test ! -s conftest.err |
11246 |
> |
} && test -s conftest.$ac_objext; then |
11247 |
> |
ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 |
11248 |
> |
else |
11249 |
> |
echo "$as_me: failed program was:" >&5 |
11250 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
11251 |
|
|
12448 |
– |
struct named_init { |
12449 |
– |
int number; |
12450 |
– |
const wchar_t *name; |
12451 |
– |
double average; |
12452 |
– |
}; |
11252 |
|
|
11253 |
< |
typedef const char *ccp; |
11253 |
> |
fi |
11254 |
|
|
11255 |
< |
static inline int |
11256 |
< |
test_restrict (ccp restrict text) |
11255 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
11256 |
> |
done |
11257 |
> |
done |
11258 |
> |
done |
11259 |
> |
# Provide a safe default value. |
11260 |
> |
: ${ac_cv_func_select_args='int,int *,struct timeval *'} |
11261 |
> |
|
11262 |
> |
fi |
11263 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5 |
11264 |
> |
echo "${ECHO_T}$ac_cv_func_select_args" >&6; } |
11265 |
> |
ac_save_IFS=$IFS; IFS=',' |
11266 |
> |
set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` |
11267 |
> |
IFS=$ac_save_IFS |
11268 |
> |
shift |
11269 |
> |
|
11270 |
> |
cat >>confdefs.h <<_ACEOF |
11271 |
> |
#define SELECT_TYPE_ARG1 $1 |
11272 |
> |
_ACEOF |
11273 |
> |
|
11274 |
> |
|
11275 |
> |
cat >>confdefs.h <<_ACEOF |
11276 |
> |
#define SELECT_TYPE_ARG234 ($2) |
11277 |
> |
_ACEOF |
11278 |
> |
|
11279 |
> |
|
11280 |
> |
cat >>confdefs.h <<_ACEOF |
11281 |
> |
#define SELECT_TYPE_ARG5 ($3) |
11282 |
> |
_ACEOF |
11283 |
> |
|
11284 |
> |
rm -f conftest* |
11285 |
> |
|
11286 |
> |
{ echo "$as_me:$LINENO: checking for working strtod" >&5 |
11287 |
> |
echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; } |
11288 |
> |
if test "${ac_cv_func_strtod+set}" = set; then |
11289 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
11290 |
> |
else |
11291 |
> |
if test "$cross_compiling" = yes; then |
11292 |
> |
ac_cv_func_strtod=no |
11293 |
> |
else |
11294 |
> |
cat >conftest.$ac_ext <<_ACEOF |
11295 |
> |
/* confdefs.h. */ |
11296 |
> |
_ACEOF |
11297 |
> |
cat confdefs.h >>conftest.$ac_ext |
11298 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
11299 |
> |
/* end confdefs.h. */ |
11300 |
> |
|
11301 |
> |
$ac_includes_default |
11302 |
> |
#ifndef strtod |
11303 |
> |
double strtod (); |
11304 |
> |
#endif |
11305 |
> |
int |
11306 |
> |
main() |
11307 |
|
{ |
11308 |
< |
// See if C++-style comments work. |
11309 |
< |
// Iterate through items via the restricted pointer. |
11310 |
< |
// Also check for declarations in for loops. |
11311 |
< |
for (unsigned int i = 0; *(text+i) != '\0'; ++i) |
11312 |
< |
continue; |
11308 |
> |
{ |
11309 |
> |
/* Some versions of Linux strtod mis-parse strings with leading '+'. */ |
11310 |
> |
char *string = " +69"; |
11311 |
> |
char *term; |
11312 |
> |
double value; |
11313 |
> |
value = strtod (string, &term); |
11314 |
> |
if (value != 69 || term != (string + 4)) |
11315 |
> |
return 1; |
11316 |
> |
} |
11317 |
> |
|
11318 |
> |
{ |
11319 |
> |
/* Under Solaris 2.4, strtod returns the wrong value for the |
11320 |
> |
terminating character under some conditions. */ |
11321 |
> |
char *string = "NaN"; |
11322 |
> |
char *term; |
11323 |
> |
strtod (string, &term); |
11324 |
> |
if (term != string && *(term - 1) == 0) |
11325 |
> |
return 1; |
11326 |
> |
} |
11327 |
|
return 0; |
11328 |
|
} |
11329 |
|
|
11330 |
< |
// Check varargs and va_copy. |
11331 |
< |
static void |
11332 |
< |
test_varargs (const char *format, ...) |
11333 |
< |
{ |
11334 |
< |
va_list args; |
11335 |
< |
va_start (args, format); |
11336 |
< |
va_list args_copy; |
11337 |
< |
va_copy (args_copy, args); |
11330 |
> |
_ACEOF |
11331 |
> |
rm -f conftest$ac_exeext |
11332 |
> |
if { (ac_try="$ac_link" |
11333 |
> |
case "(($ac_try" in |
11334 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11335 |
> |
*) ac_try_echo=$ac_try;; |
11336 |
> |
esac |
11337 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11338 |
> |
(eval "$ac_link") 2>&5 |
11339 |
> |
ac_status=$? |
11340 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11341 |
> |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
11342 |
> |
{ (case "(($ac_try" in |
11343 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11344 |
> |
*) ac_try_echo=$ac_try;; |
11345 |
> |
esac |
11346 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11347 |
> |
(eval "$ac_try") 2>&5 |
11348 |
> |
ac_status=$? |
11349 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11350 |
> |
(exit $ac_status); }; }; then |
11351 |
> |
ac_cv_func_strtod=yes |
11352 |
> |
else |
11353 |
> |
echo "$as_me: program exited with status $ac_status" >&5 |
11354 |
> |
echo "$as_me: failed program was:" >&5 |
11355 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
11356 |
|
|
11357 |
< |
const char *str; |
11358 |
< |
int number; |
11359 |
< |
float fnumber; |
11357 |
> |
( exit $ac_status ) |
11358 |
> |
ac_cv_func_strtod=no |
11359 |
> |
fi |
11360 |
> |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
11361 |
> |
fi |
11362 |
|
|
12480 |
– |
while (*format) |
12481 |
– |
{ |
12482 |
– |
switch (*format++) |
12483 |
– |
{ |
12484 |
– |
case 's': // string |
12485 |
– |
str = va_arg (args_copy, const char *); |
12486 |
– |
break; |
12487 |
– |
case 'd': // int |
12488 |
– |
number = va_arg (args_copy, int); |
12489 |
– |
break; |
12490 |
– |
case 'f': // float |
12491 |
– |
fnumber = va_arg (args_copy, double); |
12492 |
– |
break; |
12493 |
– |
default: |
12494 |
– |
break; |
12495 |
– |
} |
12496 |
– |
} |
12497 |
– |
va_end (args_copy); |
12498 |
– |
va_end (args); |
12499 |
– |
} |
11363 |
|
|
11364 |
+ |
fi |
11365 |
+ |
{ echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5 |
11366 |
+ |
echo "${ECHO_T}$ac_cv_func_strtod" >&6; } |
11367 |
+ |
if test $ac_cv_func_strtod = no; then |
11368 |
+ |
case " $LIBOBJS " in |
11369 |
+ |
*" strtod.$ac_objext "* ) ;; |
11370 |
+ |
*) LIBOBJS="$LIBOBJS strtod.$ac_objext" |
11371 |
+ |
;; |
11372 |
+ |
esac |
11373 |
+ |
|
11374 |
+ |
{ echo "$as_me:$LINENO: checking for pow" >&5 |
11375 |
+ |
echo $ECHO_N "checking for pow... $ECHO_C" >&6; } |
11376 |
+ |
if test "${ac_cv_func_pow+set}" = set; then |
11377 |
+ |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
11378 |
+ |
else |
11379 |
+ |
cat >conftest.$ac_ext <<_ACEOF |
11380 |
+ |
/* confdefs.h. */ |
11381 |
+ |
_ACEOF |
11382 |
+ |
cat confdefs.h >>conftest.$ac_ext |
11383 |
+ |
cat >>conftest.$ac_ext <<_ACEOF |
11384 |
+ |
/* end confdefs.h. */ |
11385 |
+ |
/* Define pow to an innocuous variant, in case <limits.h> declares pow. |
11386 |
+ |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
11387 |
+ |
#define pow innocuous_pow |
11388 |
+ |
|
11389 |
+ |
/* System header to define __stub macros and hopefully few prototypes, |
11390 |
+ |
which can conflict with char pow (); below. |
11391 |
+ |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
11392 |
+ |
<limits.h> exists even on freestanding compilers. */ |
11393 |
+ |
|
11394 |
+ |
#ifdef __STDC__ |
11395 |
+ |
# include <limits.h> |
11396 |
+ |
#else |
11397 |
+ |
# include <assert.h> |
11398 |
+ |
#endif |
11399 |
+ |
|
11400 |
+ |
#undef pow |
11401 |
+ |
|
11402 |
+ |
/* Override any GCC internal prototype to avoid an error. |
11403 |
+ |
Use char because int might match the return type of a GCC |
11404 |
+ |
builtin and then its argument prototype would still apply. */ |
11405 |
+ |
#ifdef __cplusplus |
11406 |
+ |
extern "C" |
11407 |
+ |
#endif |
11408 |
+ |
char pow (); |
11409 |
+ |
/* The GNU C library defines this for functions which it implements |
11410 |
+ |
to always fail with ENOSYS. Some functions are actually named |
11411 |
+ |
something starting with __ and the normal name is an alias. */ |
11412 |
+ |
#if defined __stub_pow || defined __stub___pow |
11413 |
+ |
choke me |
11414 |
+ |
#endif |
11415 |
+ |
|
11416 |
|
#ifdef FC_DUMMY_MAIN |
11417 |
|
#ifndef FC_DUMMY_MAIN_EQ_F77 |
11418 |
|
# ifdef __cplusplus |
11424 |
|
int |
11425 |
|
main () |
11426 |
|
{ |
11427 |
< |
|
12513 |
< |
// Check bool. |
12514 |
< |
_Bool success = false; |
12515 |
< |
|
12516 |
< |
// Check restrict. |
12517 |
< |
if (test_restrict ("String literal") == 0) |
12518 |
< |
success = true; |
12519 |
< |
char *restrict newvar = "Another string"; |
12520 |
< |
|
12521 |
< |
// Check varargs. |
12522 |
< |
test_varargs ("s, d' f .", "string", 65, 34.234); |
12523 |
< |
test_varargs_macros (); |
12524 |
< |
|
12525 |
< |
// Check flexible array members. |
12526 |
< |
struct incomplete_array *ia = |
12527 |
< |
malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); |
12528 |
< |
ia->datasize = 10; |
12529 |
< |
for (int i = 0; i < ia->datasize; ++i) |
12530 |
< |
ia->data[i] = i * 1.234; |
12531 |
< |
|
12532 |
< |
// Check named initializers. |
12533 |
< |
struct named_init ni = { |
12534 |
< |
.number = 34, |
12535 |
< |
.name = L"Test wide string", |
12536 |
< |
.average = 543.34343, |
12537 |
< |
}; |
12538 |
< |
|
12539 |
< |
ni.number = 58; |
12540 |
< |
|
12541 |
< |
int dynamic_array[ni.number]; |
12542 |
< |
dynamic_array[ni.number - 1] = 543; |
12543 |
< |
|
12544 |
< |
// work around unused variable warnings |
12545 |
< |
return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' |
12546 |
< |
|| dynamic_array[ni.number - 1] != 543); |
12547 |
< |
|
11427 |
> |
return pow (); |
11428 |
|
; |
11429 |
|
return 0; |
11430 |
|
} |
11431 |
|
_ACEOF |
11432 |
< |
for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99 |
11433 |
< |
do |
12554 |
< |
CC="$ac_save_CC $ac_arg" |
12555 |
< |
rm -f conftest.$ac_objext |
12556 |
< |
if { (ac_try="$ac_compile" |
11432 |
> |
rm -f conftest.$ac_objext conftest$ac_exeext |
11433 |
> |
if { (ac_try="$ac_link" |
11434 |
|
case "(($ac_try" in |
11435 |
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11436 |
|
*) ac_try_echo=$ac_try;; |
11437 |
|
esac |
11438 |
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11439 |
< |
(eval "$ac_compile") 2>conftest.er1 |
11439 |
> |
(eval "$ac_link") 2>conftest.er1 |
11440 |
|
ac_status=$? |
11441 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
11442 |
|
rm -f conftest.er1 |
11443 |
|
cat conftest.err >&5 |
11444 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11445 |
< |
(exit $ac_status); } && { |
11446 |
< |
test -z "$ac_cxx_werror_flag" || |
11444 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11445 |
> |
(exit $ac_status); } && { |
11446 |
> |
test -z "$ac_c_werror_flag" || |
11447 |
|
test ! -s conftest.err |
11448 |
< |
} && test -s conftest.$ac_objext; then |
11449 |
< |
ac_cv_prog_cc_c99=$ac_arg |
11448 |
> |
} && test -s conftest$ac_exeext && |
11449 |
> |
$as_test_x conftest$ac_exeext; then |
11450 |
> |
ac_cv_func_pow=yes |
11451 |
|
else |
11452 |
|
echo "$as_me: failed program was:" >&5 |
11453 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
11454 |
|
|
11455 |
< |
|
11455 |
> |
ac_cv_func_pow=no |
11456 |
|
fi |
11457 |
|
|
11458 |
< |
rm -f core conftest.err conftest.$ac_objext |
11459 |
< |
test "x$ac_cv_prog_cc_c99" != "xno" && break |
12582 |
< |
done |
12583 |
< |
rm -f conftest.$ac_ext |
12584 |
< |
CC=$ac_save_CC |
12585 |
< |
|
11458 |
> |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
11459 |
> |
conftest$ac_exeext conftest.$ac_ext |
11460 |
|
fi |
11461 |
< |
# AC_CACHE_VAL |
11462 |
< |
case "x$ac_cv_prog_cc_c99" in |
11463 |
< |
x) |
11464 |
< |
{ echo "$as_me:$LINENO: result: none needed" >&5 |
11465 |
< |
echo "${ECHO_T}none needed" >&6; } ;; |
11466 |
< |
xno) |
11467 |
< |
{ echo "$as_me:$LINENO: result: unsupported" >&5 |
12594 |
< |
echo "${ECHO_T}unsupported" >&6; } ;; |
12595 |
< |
*) |
12596 |
< |
CC="$CC $ac_cv_prog_cc_c99" |
12597 |
< |
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5 |
12598 |
< |
echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;; |
12599 |
< |
esac |
12600 |
< |
if test "x$ac_cv_prog_cc_c99" != xno; then |
12601 |
< |
ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 |
12602 |
< |
else |
12603 |
< |
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
12604 |
< |
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
12605 |
< |
if test "${ac_cv_prog_cc_c89+set}" = set; then |
11461 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5 |
11462 |
> |
echo "${ECHO_T}$ac_cv_func_pow" >&6; } |
11463 |
> |
|
11464 |
> |
if test $ac_cv_func_pow = no; then |
11465 |
> |
{ echo "$as_me:$LINENO: checking for pow in -lm" >&5 |
11466 |
> |
echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; } |
11467 |
> |
if test "${ac_cv_lib_m_pow+set}" = set; then |
11468 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
11469 |
|
else |
11470 |
< |
ac_cv_prog_cc_c89=no |
11471 |
< |
ac_save_CC=$CC |
11470 |
> |
ac_check_lib_save_LIBS=$LIBS |
11471 |
> |
LIBS="-lm $LIBS" |
11472 |
|
cat >conftest.$ac_ext <<_ACEOF |
11473 |
|
/* confdefs.h. */ |
11474 |
|
_ACEOF |
11475 |
|
cat confdefs.h >>conftest.$ac_ext |
11476 |
|
cat >>conftest.$ac_ext <<_ACEOF |
11477 |
|
/* end confdefs.h. */ |
12616 |
– |
#include <stdarg.h> |
12617 |
– |
#include <stdio.h> |
12618 |
– |
#include <sys/types.h> |
12619 |
– |
#include <sys/stat.h> |
12620 |
– |
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
12621 |
– |
struct buf { int x; }; |
12622 |
– |
FILE * (*rcsopen) (struct buf *, struct stat *, int); |
12623 |
– |
static char *e (p, i) |
12624 |
– |
char **p; |
12625 |
– |
int i; |
12626 |
– |
{ |
12627 |
– |
return p[i]; |
12628 |
– |
} |
12629 |
– |
static char *f (char * (*g) (char **, int), char **p, ...) |
12630 |
– |
{ |
12631 |
– |
char *s; |
12632 |
– |
va_list v; |
12633 |
– |
va_start (v,p); |
12634 |
– |
s = g (p, va_arg (v,int)); |
12635 |
– |
va_end (v); |
12636 |
– |
return s; |
12637 |
– |
} |
11478 |
|
|
11479 |
< |
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
11480 |
< |
function prototypes and stuff, but not '\xHH' hex character constants. |
11481 |
< |
These don't provoke an error unfortunately, instead are silently treated |
11482 |
< |
as 'x'. The following induces an error, until -std is added to get |
11483 |
< |
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
11484 |
< |
array size at least. It's necessary to write '\x00'==0 to get something |
11485 |
< |
that's true only with -std. */ |
12646 |
< |
int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
12647 |
< |
|
12648 |
< |
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
12649 |
< |
inside strings and character constants. */ |
12650 |
< |
#define FOO(x) 'x' |
12651 |
< |
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
12652 |
< |
|
12653 |
< |
int test (int i, double x); |
12654 |
< |
struct s1 {int (*f) (int a);}; |
12655 |
< |
struct s2 {int (*f) (double a);}; |
12656 |
< |
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
12657 |
< |
int argc; |
12658 |
< |
char **argv; |
11479 |
> |
/* Override any GCC internal prototype to avoid an error. |
11480 |
> |
Use char because int might match the return type of a GCC |
11481 |
> |
builtin and then its argument prototype would still apply. */ |
11482 |
> |
#ifdef __cplusplus |
11483 |
> |
extern "C" |
11484 |
> |
#endif |
11485 |
> |
char pow (); |
11486 |
|
#ifdef FC_DUMMY_MAIN |
11487 |
|
#ifndef FC_DUMMY_MAIN_EQ_F77 |
11488 |
|
# ifdef __cplusplus |
11494 |
|
int |
11495 |
|
main () |
11496 |
|
{ |
11497 |
< |
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
11497 |
> |
return pow (); |
11498 |
|
; |
11499 |
|
return 0; |
11500 |
|
} |
11501 |
|
_ACEOF |
11502 |
< |
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
11503 |
< |
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
12677 |
< |
do |
12678 |
< |
CC="$ac_save_CC $ac_arg" |
12679 |
< |
rm -f conftest.$ac_objext |
12680 |
< |
if { (ac_try="$ac_compile" |
11502 |
> |
rm -f conftest.$ac_objext conftest$ac_exeext |
11503 |
> |
if { (ac_try="$ac_link" |
11504 |
|
case "(($ac_try" in |
11505 |
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11506 |
|
*) ac_try_echo=$ac_try;; |
11507 |
|
esac |
11508 |
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11509 |
< |
(eval "$ac_compile") 2>conftest.er1 |
11509 |
> |
(eval "$ac_link") 2>conftest.er1 |
11510 |
|
ac_status=$? |
11511 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
11512 |
|
rm -f conftest.er1 |
11513 |
|
cat conftest.err >&5 |
11514 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11515 |
|
(exit $ac_status); } && { |
11516 |
< |
test -z "$ac_cxx_werror_flag" || |
11516 |
> |
test -z "$ac_c_werror_flag" || |
11517 |
|
test ! -s conftest.err |
11518 |
< |
} && test -s conftest.$ac_objext; then |
11519 |
< |
ac_cv_prog_cc_c89=$ac_arg |
11518 |
> |
} && test -s conftest$ac_exeext && |
11519 |
> |
$as_test_x conftest$ac_exeext; then |
11520 |
> |
ac_cv_lib_m_pow=yes |
11521 |
|
else |
11522 |
|
echo "$as_me: failed program was:" >&5 |
11523 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
11524 |
|
|
11525 |
< |
|
11525 |
> |
ac_cv_lib_m_pow=no |
11526 |
|
fi |
11527 |
|
|
11528 |
< |
rm -f core conftest.err conftest.$ac_objext |
11529 |
< |
test "x$ac_cv_prog_cc_c89" != "xno" && break |
11530 |
< |
done |
12707 |
< |
rm -f conftest.$ac_ext |
12708 |
< |
CC=$ac_save_CC |
12709 |
< |
|
11528 |
> |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
11529 |
> |
conftest$ac_exeext conftest.$ac_ext |
11530 |
> |
LIBS=$ac_check_lib_save_LIBS |
11531 |
|
fi |
11532 |
< |
# AC_CACHE_VAL |
11533 |
< |
case "x$ac_cv_prog_cc_c89" in |
11534 |
< |
x) |
11535 |
< |
{ echo "$as_me:$LINENO: result: none needed" >&5 |
12715 |
< |
echo "${ECHO_T}none needed" >&6; } ;; |
12716 |
< |
xno) |
12717 |
< |
{ echo "$as_me:$LINENO: result: unsupported" >&5 |
12718 |
< |
echo "${ECHO_T}unsupported" >&6; } ;; |
12719 |
< |
*) |
12720 |
< |
CC="$CC $ac_cv_prog_cc_c89" |
12721 |
< |
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
12722 |
< |
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
12723 |
< |
esac |
12724 |
< |
if test "x$ac_cv_prog_cc_c89" != xno; then |
12725 |
< |
ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 |
11532 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5 |
11533 |
> |
echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; } |
11534 |
> |
if test $ac_cv_lib_m_pow = yes; then |
11535 |
> |
POW_LIB=-lm |
11536 |
|
else |
11537 |
< |
ac_cv_prog_cc_stdc=no |
11537 |
> |
{ echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5 |
11538 |
> |
echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} |
11539 |
|
fi |
11540 |
|
|
12730 |
– |
|
11541 |
|
fi |
11542 |
|
|
12733 |
– |
;; |
12734 |
– |
esac |
12735 |
– |
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5 |
12736 |
– |
echo $ECHO_N "checking for $CC option to accept ISO Standard C... $ECHO_C" >&6; } |
12737 |
– |
if test "${ac_cv_prog_cc_stdc+set}" = set; then |
12738 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
11543 |
|
fi |
11544 |
|
|
12741 |
– |
case $ac_cv_prog_cc_stdc in |
12742 |
– |
no) { echo "$as_me:$LINENO: result: unsupported" >&5 |
12743 |
– |
echo "${ECHO_T}unsupported" >&6; } ;; |
12744 |
– |
'') { echo "$as_me:$LINENO: result: none needed" >&5 |
12745 |
– |
echo "${ECHO_T}none needed" >&6; } ;; |
12746 |
– |
*) { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
12747 |
– |
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6; } ;; |
12748 |
– |
esac |
11545 |
|
|
11546 |
|
|
11547 |
< |
{ echo "$as_me:$LINENO: checking for an ANSI C99-conforming __func__" >&5 |
11548 |
< |
echo $ECHO_N "checking for an ANSI C99-conforming __func__... $ECHO_C" >&6; } |
11549 |
< |
if test "${ac_cv_cpp_func+set}" = set; then |
11547 |
> |
|
11548 |
> |
|
11549 |
> |
|
11550 |
> |
|
11551 |
> |
|
11552 |
> |
|
11553 |
> |
|
11554 |
> |
|
11555 |
> |
|
11556 |
> |
|
11557 |
> |
|
11558 |
> |
|
11559 |
> |
|
11560 |
> |
|
11561 |
> |
|
11562 |
> |
|
11563 |
> |
|
11564 |
> |
|
11565 |
> |
|
11566 |
> |
for ac_func in floor getpagesize gettimeofday memset pow pstat_getdynamic pstat_getstatic select sqrt strcasecmp strchr strdup stricmp strncasecmp strnicmp strstr strtol sysmp getsysinfo sysctl table |
11567 |
> |
do |
11568 |
> |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
11569 |
> |
{ echo "$as_me:$LINENO: checking for $ac_func" >&5 |
11570 |
> |
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
11571 |
> |
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
11572 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
11573 |
|
else |
11574 |
|
cat >conftest.$ac_ext <<_ACEOF |
11577 |
|
cat confdefs.h >>conftest.$ac_ext |
11578 |
|
cat >>conftest.$ac_ext <<_ACEOF |
11579 |
|
/* end confdefs.h. */ |
11580 |
+ |
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
11581 |
+ |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
11582 |
+ |
#define $ac_func innocuous_$ac_func |
11583 |
|
|
11584 |
+ |
/* System header to define __stub macros and hopefully few prototypes, |
11585 |
+ |
which can conflict with char $ac_func (); below. |
11586 |
+ |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
11587 |
+ |
<limits.h> exists even on freestanding compilers. */ |
11588 |
+ |
|
11589 |
+ |
#ifdef __STDC__ |
11590 |
+ |
# include <limits.h> |
11591 |
+ |
#else |
11592 |
+ |
# include <assert.h> |
11593 |
+ |
#endif |
11594 |
+ |
|
11595 |
+ |
#undef $ac_func |
11596 |
+ |
|
11597 |
+ |
/* Override any GCC internal prototype to avoid an error. |
11598 |
+ |
Use char because int might match the return type of a GCC |
11599 |
+ |
builtin and then its argument prototype would still apply. */ |
11600 |
+ |
#ifdef __cplusplus |
11601 |
+ |
extern "C" |
11602 |
+ |
#endif |
11603 |
+ |
char $ac_func (); |
11604 |
+ |
/* The GNU C library defines this for functions which it implements |
11605 |
+ |
to always fail with ENOSYS. Some functions are actually named |
11606 |
+ |
something starting with __ and the normal name is an alias. */ |
11607 |
+ |
#if defined __stub_$ac_func || defined __stub___$ac_func |
11608 |
+ |
choke me |
11609 |
+ |
#endif |
11610 |
+ |
|
11611 |
|
#ifdef FC_DUMMY_MAIN |
11612 |
|
#ifndef FC_DUMMY_MAIN_EQ_F77 |
11613 |
|
# ifdef __cplusplus |
11619 |
|
int |
11620 |
|
main () |
11621 |
|
{ |
11622 |
< |
const char *foo = __func__; |
11622 |
> |
return $ac_func (); |
11623 |
|
; |
11624 |
|
return 0; |
11625 |
|
} |
11626 |
|
_ACEOF |
11627 |
< |
rm -f conftest.$ac_objext |
11628 |
< |
if { (ac_try="$ac_compile" |
11627 |
> |
rm -f conftest.$ac_objext conftest$ac_exeext |
11628 |
> |
if { (ac_try="$ac_link" |
11629 |
|
case "(($ac_try" in |
11630 |
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11631 |
|
*) ac_try_echo=$ac_try;; |
11632 |
|
esac |
11633 |
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11634 |
< |
(eval "$ac_compile") 2>conftest.er1 |
11634 |
> |
(eval "$ac_link") 2>conftest.er1 |
11635 |
|
ac_status=$? |
11636 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
11637 |
|
rm -f conftest.er1 |
11638 |
|
cat conftest.err >&5 |
11639 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11640 |
|
(exit $ac_status); } && { |
11641 |
< |
test -z "$ac_cxx_werror_flag" || |
11641 |
> |
test -z "$ac_c_werror_flag" || |
11642 |
|
test ! -s conftest.err |
11643 |
< |
} && test -s conftest.$ac_objext; then |
11644 |
< |
ac_cv_cpp_func=yes |
11643 |
> |
} && test -s conftest$ac_exeext && |
11644 |
> |
$as_test_x conftest$ac_exeext; then |
11645 |
> |
eval "$as_ac_var=yes" |
11646 |
|
else |
11647 |
|
echo "$as_me: failed program was:" >&5 |
11648 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
11649 |
|
|
11650 |
< |
cat >conftest.$ac_ext <<_ACEOF |
11650 |
> |
eval "$as_ac_var=no" |
11651 |
> |
fi |
11652 |
> |
|
11653 |
> |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
11654 |
> |
conftest$ac_exeext conftest.$ac_ext |
11655 |
> |
fi |
11656 |
> |
ac_res=`eval echo '${'$as_ac_var'}'` |
11657 |
> |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
11658 |
> |
echo "${ECHO_T}$ac_res" >&6; } |
11659 |
> |
if test `eval echo '${'$as_ac_var'}'` = yes; then |
11660 |
> |
cat >>confdefs.h <<_ACEOF |
11661 |
> |
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
11662 |
> |
_ACEOF |
11663 |
> |
|
11664 |
> |
fi |
11665 |
> |
done |
11666 |
> |
|
11667 |
> |
|
11668 |
> |
# special check for _system_configuration because AIX <4.3.2 do not |
11669 |
> |
# contain the `physmem' member. |
11670 |
> |
{ echo "$as_me:$LINENO: checking for external symbol _system_configuration" >&5 |
11671 |
> |
echo $ECHO_N "checking for external symbol _system_configuration... $ECHO_C" >&6; } |
11672 |
> |
cat >conftest.$ac_ext <<_ACEOF |
11673 |
|
/* confdefs.h. */ |
11674 |
|
_ACEOF |
11675 |
|
cat confdefs.h >>conftest.$ac_ext |
11676 |
|
cat >>conftest.$ac_ext <<_ACEOF |
11677 |
|
/* end confdefs.h. */ |
11678 |
< |
|
11678 |
> |
#include <sys/systemcfg.h> |
11679 |
|
#ifdef FC_DUMMY_MAIN |
11680 |
|
#ifndef FC_DUMMY_MAIN_EQ_F77 |
11681 |
|
# ifdef __cplusplus |
11687 |
|
int |
11688 |
|
main () |
11689 |
|
{ |
11690 |
< |
const char *foo = __FUNCTION__; |
11690 |
> |
double x = _system_configuration.physmem; |
11691 |
|
; |
11692 |
|
return 0; |
11693 |
|
} |
11706 |
|
cat conftest.err >&5 |
11707 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11708 |
|
(exit $ac_status); } && { |
11709 |
< |
test -z "$ac_cxx_werror_flag" || |
11709 |
> |
test -z "$ac_c_werror_flag" || |
11710 |
|
test ! -s conftest.err |
11711 |
|
} && test -s conftest.$ac_objext; then |
11712 |
< |
ac_cv_cpp_func=__FUNCTION__ |
11713 |
< |
else |
12843 |
< |
echo "$as_me: failed program was:" >&5 |
12844 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
11712 |
> |
{ echo "$as_me:$LINENO: result: yes" >&5 |
11713 |
> |
echo "${ECHO_T}yes" >&6; } |
11714 |
|
|
12846 |
– |
ac_cv_cpp_func=no |
12847 |
– |
fi |
12848 |
– |
|
12849 |
– |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12850 |
– |
fi |
12851 |
– |
|
12852 |
– |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12853 |
– |
fi |
12854 |
– |
{ echo "$as_me:$LINENO: result: $ac_cv_cpp_func" >&5 |
12855 |
– |
echo "${ECHO_T}$ac_cv_cpp_func" >&6; } |
12856 |
– |
if test $ac_cv_cpp_func = __FUNCTION__; then |
12857 |
– |
|
11715 |
|
cat >>confdefs.h <<\_ACEOF |
11716 |
< |
#define __func__ __FUNCTION__ |
11716 |
> |
#define HAVE__SYSTEM_CONFIGURATION 1 |
11717 |
|
_ACEOF |
11718 |
|
|
11719 |
< |
elif test $ac_cv_cpp_func = no; then |
11719 |
> |
else |
11720 |
> |
echo "$as_me: failed program was:" >&5 |
11721 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
11722 |
|
|
11723 |
< |
cat >>confdefs.h <<\_ACEOF |
11724 |
< |
#define __func__ "" |
12866 |
< |
_ACEOF |
12867 |
< |
|
11723 |
> |
{ echo "$as_me:$LINENO: result: no" >&5 |
11724 |
> |
echo "${ECHO_T}no" >&6; } |
11725 |
|
fi |
11726 |
|
|
11727 |
+ |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
11728 |
|
|
11729 |
|
|
12872 |
– |
|
12873 |
– |
|
11730 |
|
case $debug in |
11731 |
|
1) |
11732 |
|
;; |
11810 |
|
else |
11811 |
|
ac_guessed_f90flags=no |
11812 |
|
fi |
11813 |
< |
rm -rf conftest* |
11814 |
< |
ac_ext=cpp |
11815 |
< |
ac_cpp='$CXXCPP $CPPFLAGS' |
11816 |
< |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
11817 |
< |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
11818 |
< |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
11813 |
> |
rm -f conftest* |
11814 |
> |
ac_ext=c |
11815 |
> |
ac_cpp='$CPP $CPPFLAGS' |
11816 |
> |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
11817 |
> |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
11818 |
> |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
11819 |
|
|
11820 |
|
|
11821 |
|
fi |
11933 |
|
|
11934 |
|
# use default flags for gcc on all systems |
11935 |
|
if test $ac_cv_prog_really_gcc = yes; then |
11936 |
< |
CFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic" |
11936 |
> |
CFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align" |
11937 |
|
fi |
11938 |
|
|
11939 |
|
# test for gcc-specific flags: |
12390 |
|
|
12391 |
|
# use default flags for gcc on all systems |
12392 |
|
if test $ac_cv_prog_really_gxx = yes; then |
12393 |
< |
CXXFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic" |
12393 |
> |
CXXFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align" |
12394 |
|
fi |
12395 |
|
|
12396 |
|
# test for gcc-specific flags: |
12768 |
|
esac |
12769 |
|
|
12770 |
|
|
12771 |
< |
cat >>confdefs.h <<\_ACEOF |
13916 |
< |
#define OBAPI |
13917 |
< |
_ACEOF |
13918 |
< |
|
13919 |
< |
|
13920 |
< |
|
12771 |
> |
acx_cgal_found=no |
12772 |
|
|
12773 |
< |
# Check whether --with-mpi was given. |
12774 |
< |
if test "${with_mpi+set}" = set; then |
12775 |
< |
withval=$with_mpi; with_mpi=$withval |
13925 |
< |
else |
13926 |
< |
with_mpi="no" |
12773 |
> |
# Check whether --with-cgalmakefile was given. |
12774 |
> |
if test "${with_cgalmakefile+set}" = set; then |
12775 |
> |
withval=$with_cgalmakefile; |
12776 |
|
fi |
12777 |
|
|
12778 |
< |
|
12779 |
< |
case "x$with_mpi" in |
12780 |
< |
xyes | "x") USE_MPI=yes;; |
12781 |
< |
xno) USE_MPI=no ;; |
12782 |
< |
*) MPI="$with_mpi"; USE_MPI=yes ;; |
12778 |
> |
case $with_cgalmakefile in |
12779 |
> |
yes | "") ;; |
12780 |
> |
no) acx_cgal_found=disable ;; |
12781 |
> |
-* | */* | *.a | *.so | *.so.* | *.o) CGAL_MAKEFILE="$with_cgalmakefile" ;; |
12782 |
> |
*) CGAL_MAKEFILE="$with_cgalmakefile" ;; |
12783 |
|
esac |
13935 |
– |
if test "$USE_MPI" = "yes" -a -z "$with_mpi"; then |
13936 |
– |
MPI="/usr/local" |
13937 |
– |
fi |
13938 |
– |
if test "$USE_MPI" = "yes"; then |
12784 |
|
|
12785 |
+ |
if test "$acx_cgal_found" == no; then |
12786 |
+ |
{ echo "$as_me:$LINENO: checking CGAL_MAKEFILE" >&5 |
12787 |
+ |
echo $ECHO_N "checking CGAL_MAKEFILE... $ECHO_C" >&6; } |
12788 |
|
|
12789 |
< |
# Set variables... |
13942 |
< |
MPI_LIB_DIR="$MPI/lib" |
13943 |
< |
MPI_INC_DIR="$MPI/include" |
12789 |
> |
if test \! -z "$CGAL_MAKEFILE"; then |
12790 |
|
|
12791 |
+ |
if test -e "$CGAL_MAKEFILE"; then |
12792 |
+ |
tname=`mktemp /tmp/cgal_makefile_dsrXXXXXX` |
12793 |
|
|
12794 |
+ |
cat > $tname << _ACEOF |
12795 |
+ |
include $CGAL_MAKEFILE |
12796 |
|
|
12797 |
< |
ac_ext=c |
12798 |
< |
ac_cpp='$CPP $CPPFLAGS' |
13949 |
< |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
13950 |
< |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
13951 |
< |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
12797 |
> |
cppflags: |
12798 |
> |
@echo \$(CGAL_CXXFLAGS) |
12799 |
|
|
12800 |
< |
{ echo "$as_me:$LINENO: checking for mpi.h" >&5 |
12801 |
< |
echo $ECHO_N "checking for mpi.h... $ECHO_C" >&6; } |
12802 |
< |
have_mpi_h=0 |
12803 |
< |
rm -f conftest* |
13957 |
< |
echo '#include <mpi.h>' > conftest.c |
13958 |
< |
if ${CC} -I${MPI_INC_DIR} -c conftest.c 2>&1 ; then |
13959 |
< |
{ echo "$as_me:$LINENO: result: yes" >&5 |
13960 |
< |
echo "${ECHO_T}yes" >&6; } |
13961 |
< |
have_mpi_h=1 |
13962 |
< |
else |
13963 |
< |
if test -s conftest.out ; then |
13964 |
< |
cat conftest.out >> config.log |
13965 |
< |
fi |
13966 |
< |
{ echo "$as_me:$LINENO: result: no! Check MPI include paths" >&5 |
13967 |
< |
echo "${ECHO_T}no! Check MPI include paths" >&6; } |
13968 |
< |
USE_MPI="no" |
13969 |
< |
fi |
13970 |
< |
rm -f conftest* |
13971 |
< |
if test "$have_mpi_h" = 1; then |
13972 |
< |
|
13973 |
< |
cat >>confdefs.h <<\_ACEOF |
13974 |
< |
#define HAVE_MPI_H 1 |
12800 |
> |
cxxflags: |
12801 |
> |
@echo |
12802 |
> |
ldflags: |
12803 |
> |
@echo \$(CGAL_LDFLAGS) |
12804 |
|
_ACEOF |
12805 |
< |
|
12805 |
> |
CGAL_CPPFLAGS="`make -s -f $tname cppflags`" |
12806 |
> |
CGAL_CXXFLAGS="`make -s -f $tname cxxflags`" |
12807 |
> |
CGAL_LDFLAGST="`make -s -f $tname ldflags`" |
12808 |
> |
for i in $CGAL_LDFLAGST; do |
12809 |
> |
if test `echo $i| grep -c ^-l`; then |
12810 |
> |
CGAL_LIBS="$CGAL_LIBS $i" |
12811 |
> |
else |
12812 |
> |
CGAL_LDFLAGS="$CGAL_LDFLAGS $i" |
12813 |
> |
fi |
12814 |
> |
done |
12815 |
> |
rm -f $tname |
12816 |
> |
{ echo "$as_me:$LINENO: result: yes" >&5 |
12817 |
> |
echo "${ECHO_T}yes" >&6; } |
12818 |
> |
acx_cgal_found=yes |
12819 |
> |
else |
12820 |
> |
{ echo "$as_me:$LINENO: result: invalid" >&5 |
12821 |
> |
echo "${ECHO_T}invalid" >&6; } |
12822 |
> |
{ { echo "$as_me:$LINENO: error: CGAL_MAKEFILE defined, but the makefile does not exist." >&5 |
12823 |
> |
echo "$as_me: error: CGAL_MAKEFILE defined, but the makefile does not exist." >&2;} |
12824 |
> |
{ (exit 1); exit 1; }; } |
12825 |
> |
fi |
12826 |
> |
else |
12827 |
> |
{ echo "$as_me:$LINENO: result: not defined" >&5 |
12828 |
> |
echo "${ECHO_T}not defined" >&6; } |
12829 |
> |
fi |
12830 |
|
fi |
12831 |
|
|
12832 |
< |
{ echo "$as_me:$LINENO: checking whether mpif.h is usable" >&5 |
12833 |
< |
echo $ECHO_N "checking whether mpif.h is usable... $ECHO_C" >&6; } |
12834 |
< |
|
12835 |
< |
ac_ext=${ac_fc_srcext-f} |
12836 |
< |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
12837 |
< |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
12838 |
< |
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
12839 |
< |
|
12840 |
< |
ac_save_ext=$ac_ext |
13988 |
< |
ac_ext=F90 |
13989 |
< |
ac_save_FCFLAGS=$FCFLAGS |
13990 |
< |
have_mpif_h=0 |
13991 |
< |
rm -f conftest* |
13992 |
< |
cat >conftest.$ac_ext <<EOF |
13993 |
< |
program main |
13994 |
< |
include 'mpif.h' |
13995 |
< |
end |
13996 |
< |
EOF |
13997 |
< |
if $FC -I$MPI_INC_DIR -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext > conftest.out 2>&1 ; then |
13998 |
< |
{ echo "$as_me:$LINENO: result: yes" >&5 |
13999 |
< |
echo "${ECHO_T}yes" >&6; } |
14000 |
< |
MPI_F90_INC="$MPI_INC_DIR" |
14001 |
< |
have_mpif_h=1 |
12832 |
> |
if test "$acx_cgal_found" == no; then |
12833 |
> |
if test "${ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h+set}" = set; then |
12834 |
> |
{ echo "$as_me:$LINENO: checking for CGAL/Exact_predicates_inexact_constructions_kernel.h" >&5 |
12835 |
> |
echo $ECHO_N "checking for CGAL/Exact_predicates_inexact_constructions_kernel.h... $ECHO_C" >&6; } |
12836 |
> |
if test "${ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h+set}" = set; then |
12837 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
12838 |
> |
fi |
12839 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h" >&5 |
12840 |
> |
echo "${ECHO_T}$ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h" >&6; } |
12841 |
|
else |
12842 |
< |
if test -s conftest.out ; then |
12843 |
< |
cat conftest.out >> config.log |
12844 |
< |
fi |
12845 |
< |
{ echo "$as_me:$LINENO: result: no! Check MPI include paths" >&5 |
12846 |
< |
echo "${ECHO_T}no! Check MPI include paths" >&6; } |
12847 |
< |
USE_MPI="no" |
12842 |
> |
# Is the header compilable? |
12843 |
> |
{ echo "$as_me:$LINENO: checking CGAL/Exact_predicates_inexact_constructions_kernel.h usability" >&5 |
12844 |
> |
echo $ECHO_N "checking CGAL/Exact_predicates_inexact_constructions_kernel.h usability... $ECHO_C" >&6; } |
12845 |
> |
cat >conftest.$ac_ext <<_ACEOF |
12846 |
> |
/* confdefs.h. */ |
12847 |
> |
_ACEOF |
12848 |
> |
cat confdefs.h >>conftest.$ac_ext |
12849 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
12850 |
> |
/* end confdefs.h. */ |
12851 |
> |
$ac_includes_default |
12852 |
> |
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h> |
12853 |
> |
_ACEOF |
12854 |
> |
rm -f conftest.$ac_objext |
12855 |
> |
if { (ac_try="$ac_compile" |
12856 |
> |
case "(($ac_try" in |
12857 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
12858 |
> |
*) ac_try_echo=$ac_try;; |
12859 |
> |
esac |
12860 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
12861 |
> |
(eval "$ac_compile") 2>conftest.er1 |
12862 |
> |
ac_status=$? |
12863 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
12864 |
> |
rm -f conftest.er1 |
12865 |
> |
cat conftest.err >&5 |
12866 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12867 |
> |
(exit $ac_status); } && { |
12868 |
> |
test -z "$ac_c_werror_flag" || |
12869 |
> |
test ! -s conftest.err |
12870 |
> |
} && test -s conftest.$ac_objext; then |
12871 |
> |
ac_header_compiler=yes |
12872 |
> |
else |
12873 |
> |
echo "$as_me: failed program was:" >&5 |
12874 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
12875 |
> |
|
12876 |
> |
ac_header_compiler=no |
12877 |
|
fi |
14010 |
– |
rm -f conftest* |
12878 |
|
|
12879 |
< |
if test "$have_mpif_h" = 1; then |
12880 |
< |
|
12881 |
< |
cat >>confdefs.h <<\_ACEOF |
12882 |
< |
#define HAVE_MPIF_H 1 |
12879 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12880 |
> |
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12881 |
> |
echo "${ECHO_T}$ac_header_compiler" >&6; } |
12882 |
> |
|
12883 |
> |
# Is the header present? |
12884 |
> |
{ echo "$as_me:$LINENO: checking CGAL/Exact_predicates_inexact_constructions_kernel.h presence" >&5 |
12885 |
> |
echo $ECHO_N "checking CGAL/Exact_predicates_inexact_constructions_kernel.h presence... $ECHO_C" >&6; } |
12886 |
> |
cat >conftest.$ac_ext <<_ACEOF |
12887 |
> |
/* confdefs.h. */ |
12888 |
> |
_ACEOF |
12889 |
> |
cat confdefs.h >>conftest.$ac_ext |
12890 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
12891 |
> |
/* end confdefs.h. */ |
12892 |
> |
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h> |
12893 |
|
_ACEOF |
12894 |
+ |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
12895 |
+ |
case "(($ac_try" in |
12896 |
+ |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
12897 |
+ |
*) ac_try_echo=$ac_try;; |
12898 |
+ |
esac |
12899 |
+ |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
12900 |
+ |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
12901 |
+ |
ac_status=$? |
12902 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
12903 |
+ |
rm -f conftest.er1 |
12904 |
+ |
cat conftest.err >&5 |
12905 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12906 |
+ |
(exit $ac_status); } >/dev/null && { |
12907 |
+ |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
12908 |
+ |
test ! -s conftest.err |
12909 |
+ |
}; then |
12910 |
+ |
ac_header_preproc=yes |
12911 |
+ |
else |
12912 |
+ |
echo "$as_me: failed program was:" >&5 |
12913 |
+ |
sed 's/^/| /' conftest.$ac_ext >&5 |
12914 |
|
|
12915 |
+ |
ac_header_preproc=no |
12916 |
|
fi |
14019 |
– |
FCFLAGS=$ac_save_FCFLAGS |
14020 |
– |
ac_ext=$ac_save_ext |
14021 |
– |
ac_ext=c |
14022 |
– |
ac_cpp='$CPP $CPPFLAGS' |
14023 |
– |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
14024 |
– |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
14025 |
– |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
12917 |
|
|
12918 |
+ |
rm -f conftest.err conftest.$ac_ext |
12919 |
+ |
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
12920 |
+ |
echo "${ECHO_T}$ac_header_preproc" >&6; } |
12921 |
|
|
12922 |
< |
ac_ext=c |
12923 |
< |
ac_cpp='$CPP $CPPFLAGS' |
12924 |
< |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
12925 |
< |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
12926 |
< |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
12922 |
> |
# So? What about this header? |
12923 |
> |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
12924 |
> |
yes:no: ) |
12925 |
> |
{ echo "$as_me:$LINENO: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
12926 |
> |
echo "$as_me: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
12927 |
> |
{ echo "$as_me:$LINENO: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: proceeding with the compiler's result" >&5 |
12928 |
> |
echo "$as_me: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: proceeding with the compiler's result" >&2;} |
12929 |
> |
ac_header_preproc=yes |
12930 |
> |
;; |
12931 |
> |
no:yes:* ) |
12932 |
> |
{ echo "$as_me:$LINENO: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: present but cannot be compiled" >&5 |
12933 |
> |
echo "$as_me: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: present but cannot be compiled" >&2;} |
12934 |
> |
{ echo "$as_me:$LINENO: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: check for missing prerequisite headers?" >&5 |
12935 |
> |
echo "$as_me: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: check for missing prerequisite headers?" >&2;} |
12936 |
> |
{ echo "$as_me:$LINENO: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: see the Autoconf documentation" >&5 |
12937 |
> |
echo "$as_me: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: see the Autoconf documentation" >&2;} |
12938 |
> |
{ echo "$as_me:$LINENO: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: section \"Present But Cannot Be Compiled\"" >&5 |
12939 |
> |
echo "$as_me: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: section \"Present But Cannot Be Compiled\"" >&2;} |
12940 |
> |
{ echo "$as_me:$LINENO: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: proceeding with the preprocessor's result" >&5 |
12941 |
> |
echo "$as_me: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: proceeding with the preprocessor's result" >&2;} |
12942 |
> |
{ echo "$as_me:$LINENO: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: in the future, the compiler will take precedence" >&5 |
12943 |
> |
echo "$as_me: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: in the future, the compiler will take precedence" >&2;} |
12944 |
> |
( cat <<\_ASBOX |
12945 |
> |
## ------------------------------ ## |
12946 |
> |
## Report this to gezelter@nd.edu ## |
12947 |
> |
## ------------------------------ ## |
12948 |
> |
_ASBOX |
12949 |
> |
) | sed "s/^/$as_me: WARNING: /" >&2 |
12950 |
> |
;; |
12951 |
> |
esac |
12952 |
> |
{ echo "$as_me:$LINENO: checking for CGAL/Exact_predicates_inexact_constructions_kernel.h" >&5 |
12953 |
> |
echo $ECHO_N "checking for CGAL/Exact_predicates_inexact_constructions_kernel.h... $ECHO_C" >&6; } |
12954 |
> |
if test "${ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h+set}" = set; then |
12955 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
12956 |
> |
else |
12957 |
> |
ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h=$ac_header_preproc |
12958 |
> |
fi |
12959 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h" >&5 |
12960 |
> |
echo "${ECHO_T}$ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h" >&6; } |
12961 |
|
|
12962 |
< |
ac_save_LDFLAGS=$LDFLAGS |
12963 |
< |
LDFLAGS="-L${MPI_LIB_DIR} ${LDFLAGS} " |
12962 |
> |
fi |
12963 |
> |
if test $ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h = yes; then |
12964 |
> |
cgal_have_header=yes |
12965 |
> |
else |
12966 |
> |
cgal_have_header=no |
12967 |
> |
fi |
12968 |
|
|
12969 |
< |
if test x = x"$MPI_LIB"; then |
12970 |
< |
{ echo "$as_me:$LINENO: checking for MPI_Init in -lmpich" >&5 |
12971 |
< |
echo $ECHO_N "checking for MPI_Init in -lmpich... $ECHO_C" >&6; } |
12972 |
< |
if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then |
12969 |
> |
|
12970 |
> |
if test "$cgal_have_header" == yes; then |
12971 |
> |
{ echo "$as_me:$LINENO: checking for main in -lCGAL" >&5 |
12972 |
> |
echo $ECHO_N "checking for main in -lCGAL... $ECHO_C" >&6; } |
12973 |
> |
if test "${ac_cv_lib_CGAL_main+set}" = set; then |
12974 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
12975 |
|
else |
12976 |
|
ac_check_lib_save_LIBS=$LIBS |
12977 |
< |
LIBS="-lmpich $LIBS" |
12977 |
> |
LIBS="-lCGAL $LIBS" |
12978 |
|
cat >conftest.$ac_ext <<_ACEOF |
12979 |
|
/* confdefs.h. */ |
12980 |
|
_ACEOF |
12982 |
|
cat >>conftest.$ac_ext <<_ACEOF |
12983 |
|
/* end confdefs.h. */ |
12984 |
|
|
12985 |
< |
/* Override any GCC internal prototype to avoid an error. |
14053 |
< |
Use char because int might match the return type of a GCC |
14054 |
< |
builtin and then its argument prototype would still apply. */ |
14055 |
< |
#ifdef __cplusplus |
14056 |
< |
extern "C" |
14057 |
< |
#endif |
14058 |
< |
char MPI_Init (); |
12985 |
> |
|
12986 |
|
#ifdef FC_DUMMY_MAIN |
12987 |
|
#ifndef FC_DUMMY_MAIN_EQ_F77 |
12988 |
|
# ifdef __cplusplus |
12994 |
|
int |
12995 |
|
main () |
12996 |
|
{ |
12997 |
< |
return MPI_Init (); |
12997 |
> |
return main (); |
12998 |
|
; |
12999 |
|
return 0; |
13000 |
|
} |
13017 |
|
test ! -s conftest.err |
13018 |
|
} && test -s conftest$ac_exeext && |
13019 |
|
$as_test_x conftest$ac_exeext; then |
13020 |
< |
ac_cv_lib_mpich_MPI_Init=yes |
13020 |
> |
ac_cv_lib_CGAL_main=yes |
13021 |
|
else |
13022 |
|
echo "$as_me: failed program was:" >&5 |
13023 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
13024 |
|
|
13025 |
< |
ac_cv_lib_mpich_MPI_Init=no |
13025 |
> |
ac_cv_lib_CGAL_main=no |
13026 |
|
fi |
13027 |
|
|
13028 |
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
13029 |
|
conftest$ac_exeext conftest.$ac_ext |
13030 |
|
LIBS=$ac_check_lib_save_LIBS |
13031 |
|
fi |
13032 |
< |
{ echo "$as_me:$LINENO: result: $ac_cv_lib_mpich_MPI_Init" >&5 |
13033 |
< |
echo "${ECHO_T}$ac_cv_lib_mpich_MPI_Init" >&6; } |
13034 |
< |
if test $ac_cv_lib_mpich_MPI_Init = yes; then |
13035 |
< |
MPI_LIB="-lmpich" |
13032 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_lib_CGAL_main" >&5 |
13033 |
> |
echo "${ECHO_T}$ac_cv_lib_CGAL_main" >&6; } |
13034 |
> |
if test $ac_cv_lib_CGAL_main = yes; then |
13035 |
> |
cgal_have_lib=yes |
13036 |
> |
else |
13037 |
> |
cgal_have_lib=no |
13038 |
|
fi |
13039 |
|
|
13040 |
< |
fi |
13041 |
< |
$as_unset ac_cv_lib_mpich_MPI_Init |
13042 |
< |
if test x = x"$MPI_LIB"; then |
13043 |
< |
{ echo "$as_me:$LINENO: checking for MPI_Init in -lpmpich" >&5 |
13044 |
< |
echo $ECHO_N "checking for MPI_Init in -lpmpich... $ECHO_C" >&6; } |
14116 |
< |
if test "${ac_cv_lib_pmpich_MPI_Init+set}" = set; then |
13040 |
> |
if test "$cgal_have_lib" == no; then |
13041 |
> |
save_LIBS="$LIBS"; LIBS="$LIBS -lgmp -lmpfr -lm" |
13042 |
> |
{ echo "$as_me:$LINENO: checking for main in -lCGAL" >&5 |
13043 |
> |
echo $ECHO_N "checking for main in -lCGAL... $ECHO_C" >&6; } |
13044 |
> |
if test "${ac_cv_lib_CGAL_main+set}" = set; then |
13045 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
13046 |
|
else |
13047 |
|
ac_check_lib_save_LIBS=$LIBS |
13048 |
< |
LIBS="-lpmpich -lmpich -lpmpich -lmpich $LIBS" |
13048 |
> |
LIBS="-lCGAL $LIBS" |
13049 |
|
cat >conftest.$ac_ext <<_ACEOF |
13050 |
|
/* confdefs.h. */ |
13051 |
|
_ACEOF |
13053 |
|
cat >>conftest.$ac_ext <<_ACEOF |
13054 |
|
/* end confdefs.h. */ |
13055 |
|
|
13056 |
< |
/* Override any GCC internal prototype to avoid an error. |
14129 |
< |
Use char because int might match the return type of a GCC |
14130 |
< |
builtin and then its argument prototype would still apply. */ |
14131 |
< |
#ifdef __cplusplus |
14132 |
< |
extern "C" |
14133 |
< |
#endif |
14134 |
< |
char MPI_Init (); |
13056 |
> |
|
13057 |
|
#ifdef FC_DUMMY_MAIN |
13058 |
|
#ifndef FC_DUMMY_MAIN_EQ_F77 |
13059 |
|
# ifdef __cplusplus |
13065 |
|
int |
13066 |
|
main () |
13067 |
|
{ |
13068 |
< |
return MPI_Init (); |
13068 |
> |
return main (); |
13069 |
|
; |
13070 |
|
return 0; |
13071 |
|
} |
13088 |
|
test ! -s conftest.err |
13089 |
|
} && test -s conftest$ac_exeext && |
13090 |
|
$as_test_x conftest$ac_exeext; then |
13091 |
< |
ac_cv_lib_pmpich_MPI_Init=yes |
13091 |
> |
ac_cv_lib_CGAL_main=yes |
13092 |
|
else |
13093 |
|
echo "$as_me: failed program was:" >&5 |
13094 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
13095 |
|
|
13096 |
< |
ac_cv_lib_pmpich_MPI_Init=no |
13096 |
> |
ac_cv_lib_CGAL_main=no |
13097 |
|
fi |
13098 |
|
|
13099 |
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
13100 |
|
conftest$ac_exeext conftest.$ac_ext |
13101 |
|
LIBS=$ac_check_lib_save_LIBS |
13102 |
|
fi |
13103 |
< |
{ echo "$as_me:$LINENO: result: $ac_cv_lib_pmpich_MPI_Init" >&5 |
13104 |
< |
echo "${ECHO_T}$ac_cv_lib_pmpich_MPI_Init" >&6; } |
13105 |
< |
if test $ac_cv_lib_pmpich_MPI_Init = yes; then |
13106 |
< |
MPI_LIB="-lpmpich -lmpich -lpmpich -lmpich" |
13103 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_lib_CGAL_main" >&5 |
13104 |
> |
echo "${ECHO_T}$ac_cv_lib_CGAL_main" >&6; } |
13105 |
> |
if test $ac_cv_lib_CGAL_main = yes; then |
13106 |
> |
CGAL_LIBS="-lCGAL -lgmp -lmpfr" |
13107 |
> |
cgal_have_lib=yes |
13108 |
> |
else |
13109 |
> |
cgal_have_lib=no |
13110 |
|
fi |
13111 |
|
|
13112 |
< |
fi |
13113 |
< |
if test x = x"$MPI_LIB"; then |
13114 |
< |
{ echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5 |
13115 |
< |
echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6; } |
13116 |
< |
if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then |
13112 |
> |
LIBS="$save_LIBS" |
13113 |
> |
else |
13114 |
> |
CGAL_LIBS="-lCGAL" |
13115 |
> |
{ echo "$as_me:$LINENO: checking for main in -lmpfr" >&5 |
13116 |
> |
echo $ECHO_N "checking for main in -lmpfr... $ECHO_C" >&6; } |
13117 |
> |
if test "${ac_cv_lib_mpfr_main+set}" = set; then |
13118 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
13119 |
|
else |
13120 |
|
ac_check_lib_save_LIBS=$LIBS |
13121 |
< |
LIBS="-lmpi $LIBS" |
13121 |
> |
LIBS="-lmpfr $LIBS" |
13122 |
|
cat >conftest.$ac_ext <<_ACEOF |
13123 |
|
/* confdefs.h. */ |
13124 |
|
_ACEOF |
13126 |
|
cat >>conftest.$ac_ext <<_ACEOF |
13127 |
|
/* end confdefs.h. */ |
13128 |
|
|
13129 |
< |
/* Override any GCC internal prototype to avoid an error. |
14204 |
< |
Use char because int might match the return type of a GCC |
14205 |
< |
builtin and then its argument prototype would still apply. */ |
14206 |
< |
#ifdef __cplusplus |
14207 |
< |
extern "C" |
14208 |
< |
#endif |
14209 |
< |
char MPI_Init (); |
13129 |
> |
|
13130 |
|
#ifdef FC_DUMMY_MAIN |
13131 |
|
#ifndef FC_DUMMY_MAIN_EQ_F77 |
13132 |
|
# ifdef __cplusplus |
13138 |
|
int |
13139 |
|
main () |
13140 |
|
{ |
13141 |
< |
return MPI_Init (); |
13141 |
> |
return main (); |
13142 |
|
; |
13143 |
|
return 0; |
13144 |
|
} |
13161 |
|
test ! -s conftest.err |
13162 |
|
} && test -s conftest$ac_exeext && |
13163 |
|
$as_test_x conftest$ac_exeext; then |
13164 |
< |
ac_cv_lib_mpi_MPI_Init=yes |
13164 |
> |
ac_cv_lib_mpfr_main=yes |
13165 |
|
else |
13166 |
|
echo "$as_me: failed program was:" >&5 |
13167 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
13168 |
|
|
13169 |
< |
ac_cv_lib_mpi_MPI_Init=no |
13169 |
> |
ac_cv_lib_mpfr_main=no |
13170 |
|
fi |
13171 |
|
|
13172 |
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
13173 |
|
conftest$ac_exeext conftest.$ac_ext |
13174 |
|
LIBS=$ac_check_lib_save_LIBS |
13175 |
|
fi |
13176 |
< |
{ echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5 |
13177 |
< |
echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6; } |
13178 |
< |
if test $ac_cv_lib_mpi_MPI_Init = yes; then |
13179 |
< |
MPI_LIB="-lmpi" |
13176 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_lib_mpfr_main" >&5 |
13177 |
> |
echo "${ECHO_T}$ac_cv_lib_mpfr_main" >&6; } |
13178 |
> |
if test $ac_cv_lib_mpfr_main = yes; then |
13179 |
> |
CGAL_LIBS="$CGAL_LIBS -lmpfr" |
13180 |
|
fi |
13181 |
|
|
13182 |
< |
fi |
13183 |
< |
$as_unset ac_cv_lib_mpi_MPI_Init |
13184 |
< |
if test x = x"$MPI_LIB"; then |
14265 |
< |
{ echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5 |
14266 |
< |
echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6; } |
14267 |
< |
if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then |
13182 |
> |
{ echo "$as_me:$LINENO: checking for main in -lgmp" >&5 |
13183 |
> |
echo $ECHO_N "checking for main in -lgmp... $ECHO_C" >&6; } |
13184 |
> |
if test "${ac_cv_lib_gmp_main+set}" = set; then |
13185 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
13186 |
|
else |
13187 |
|
ac_check_lib_save_LIBS=$LIBS |
13188 |
< |
LIBS="-lmpi -llam $LIBS" |
13188 |
> |
LIBS="-lgmp $LIBS" |
13189 |
|
cat >conftest.$ac_ext <<_ACEOF |
13190 |
|
/* confdefs.h. */ |
13191 |
|
_ACEOF |
13193 |
|
cat >>conftest.$ac_ext <<_ACEOF |
13194 |
|
/* end confdefs.h. */ |
13195 |
|
|
13196 |
< |
/* Override any GCC internal prototype to avoid an error. |
14280 |
< |
Use char because int might match the return type of a GCC |
14281 |
< |
builtin and then its argument prototype would still apply. */ |
14282 |
< |
#ifdef __cplusplus |
14283 |
< |
extern "C" |
14284 |
< |
#endif |
14285 |
< |
char MPI_Init (); |
13196 |
> |
|
13197 |
|
#ifdef FC_DUMMY_MAIN |
13198 |
|
#ifndef FC_DUMMY_MAIN_EQ_F77 |
13199 |
|
# ifdef __cplusplus |
13205 |
|
int |
13206 |
|
main () |
13207 |
|
{ |
13208 |
< |
return MPI_Init (); |
13208 |
> |
return main (); |
13209 |
|
; |
13210 |
|
return 0; |
13211 |
|
} |
13228 |
|
test ! -s conftest.err |
13229 |
|
} && test -s conftest$ac_exeext && |
13230 |
|
$as_test_x conftest$ac_exeext; then |
13231 |
< |
ac_cv_lib_mpi_MPI_Init=yes |
13231 |
> |
ac_cv_lib_gmp_main=yes |
13232 |
|
else |
13233 |
|
echo "$as_me: failed program was:" >&5 |
13234 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
13235 |
|
|
13236 |
< |
ac_cv_lib_mpi_MPI_Init=no |
13236 |
> |
ac_cv_lib_gmp_main=no |
13237 |
|
fi |
13238 |
|
|
13239 |
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
13240 |
|
conftest$ac_exeext conftest.$ac_ext |
13241 |
|
LIBS=$ac_check_lib_save_LIBS |
13242 |
|
fi |
13243 |
< |
{ echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5 |
13244 |
< |
echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6; } |
13245 |
< |
if test $ac_cv_lib_mpi_MPI_Init = yes; then |
13246 |
< |
MPI_LIB="-lmpi -llam" |
13243 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_lib_gmp_main" >&5 |
13244 |
> |
echo "${ECHO_T}$ac_cv_lib_gmp_main" >&6; } |
13245 |
> |
if test $ac_cv_lib_gmp_main = yes; then |
13246 |
> |
CGAL_LIBS="$CGAL_LIBS -lgmp" |
13247 |
|
fi |
13248 |
|
|
13249 |
< |
fi |
13250 |
< |
$as_unset ac_cv_lib_mpi_MPI_Init |
13251 |
< |
if test x = x"$MPI_LIB"; then |
14341 |
< |
{ echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5 |
14342 |
< |
echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6; } |
14343 |
< |
if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then |
13249 |
> |
{ echo "$as_me:$LINENO: checking for main in -lgmpxx" >&5 |
13250 |
> |
echo $ECHO_N "checking for main in -lgmpxx... $ECHO_C" >&6; } |
13251 |
> |
if test "${ac_cv_lib_gmpxx_main+set}" = set; then |
13252 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
13253 |
|
else |
13254 |
|
ac_check_lib_save_LIBS=$LIBS |
13255 |
< |
LIBS="-lmpi -llam -lpthread $LIBS" |
13255 |
> |
LIBS="-lgmpxx $LIBS" |
13256 |
|
cat >conftest.$ac_ext <<_ACEOF |
13257 |
|
/* confdefs.h. */ |
13258 |
|
_ACEOF |
13260 |
|
cat >>conftest.$ac_ext <<_ACEOF |
13261 |
|
/* end confdefs.h. */ |
13262 |
|
|
13263 |
< |
/* Override any GCC internal prototype to avoid an error. |
14356 |
< |
Use char because int might match the return type of a GCC |
14357 |
< |
builtin and then its argument prototype would still apply. */ |
14358 |
< |
#ifdef __cplusplus |
14359 |
< |
extern "C" |
14360 |
< |
#endif |
14361 |
< |
char MPI_Init (); |
13263 |
> |
|
13264 |
|
#ifdef FC_DUMMY_MAIN |
13265 |
|
#ifndef FC_DUMMY_MAIN_EQ_F77 |
13266 |
|
# ifdef __cplusplus |
13272 |
|
int |
13273 |
|
main () |
13274 |
|
{ |
13275 |
< |
return MPI_Init (); |
13275 |
> |
return main (); |
13276 |
|
; |
13277 |
|
return 0; |
13278 |
|
} |
13295 |
|
test ! -s conftest.err |
13296 |
|
} && test -s conftest$ac_exeext && |
13297 |
|
$as_test_x conftest$ac_exeext; then |
13298 |
< |
ac_cv_lib_mpi_MPI_Init=yes |
13298 |
> |
ac_cv_lib_gmpxx_main=yes |
13299 |
|
else |
13300 |
|
echo "$as_me: failed program was:" >&5 |
13301 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
13302 |
|
|
13303 |
< |
ac_cv_lib_mpi_MPI_Init=no |
13303 |
> |
ac_cv_lib_gmpxx_main=no |
13304 |
|
fi |
13305 |
|
|
13306 |
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
13307 |
|
conftest$ac_exeext conftest.$ac_ext |
13308 |
|
LIBS=$ac_check_lib_save_LIBS |
13309 |
|
fi |
13310 |
< |
{ echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5 |
13311 |
< |
echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6; } |
13312 |
< |
if test $ac_cv_lib_mpi_MPI_Init = yes; then |
13313 |
< |
MPI_LIB="-lmpi -llam -lpthread" |
13310 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_lib_gmpxx_main" >&5 |
13311 |
> |
echo "${ECHO_T}$ac_cv_lib_gmpxx_main" >&6; } |
13312 |
> |
if test $ac_cv_lib_gmpxx_main = yes; then |
13313 |
> |
CGAL_LIBS="$CGAL_LIBS -lgmpxx" |
13314 |
> |
fi |
13315 |
> |
|
13316 |
> |
fi |
13317 |
> |
|
13318 |
> |
if test "$cgal_have_lib" == yes; then |
13319 |
> |
acx_cgal_found=yes |
13320 |
> |
fi |
13321 |
> |
fi |
13322 |
> |
if test "$acx_cgal_found" == yes; then |
13323 |
> |
{ echo "$as_me:$LINENO: checking for main in -lCore" >&5 |
13324 |
> |
echo $ECHO_N "checking for main in -lCore... $ECHO_C" >&6; } |
13325 |
> |
if test "${ac_cv_lib_Core_main+set}" = set; then |
13326 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
13327 |
|
else |
13328 |
+ |
ac_check_lib_save_LIBS=$LIBS |
13329 |
+ |
LIBS="-lCore $LIBS" |
13330 |
+ |
cat >conftest.$ac_ext <<_ACEOF |
13331 |
+ |
/* confdefs.h. */ |
13332 |
+ |
_ACEOF |
13333 |
+ |
cat confdefs.h >>conftest.$ac_ext |
13334 |
+ |
cat >>conftest.$ac_ext <<_ACEOF |
13335 |
+ |
/* end confdefs.h. */ |
13336 |
|
|
14414 |
– |
{ { echo "$as_me:$LINENO: error: Didn't find liblam, libmpi, or libmpich; check path for MPI package first..." >&5 |
14415 |
– |
echo "$as_me: error: Didn't find liblam, libmpi, or libmpich; check path for MPI package first..." >&2;} |
14416 |
– |
{ (exit 1); exit 1; }; } |
14417 |
– |
USE_MPI="no" |
13337 |
|
|
13338 |
+ |
#ifdef FC_DUMMY_MAIN |
13339 |
+ |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
13340 |
+ |
# ifdef __cplusplus |
13341 |
+ |
extern "C" |
13342 |
+ |
# endif |
13343 |
+ |
int FC_DUMMY_MAIN() { return 1; } |
13344 |
+ |
#endif |
13345 |
+ |
#endif |
13346 |
+ |
int |
13347 |
+ |
main () |
13348 |
+ |
{ |
13349 |
+ |
return main (); |
13350 |
+ |
; |
13351 |
+ |
return 0; |
13352 |
+ |
} |
13353 |
+ |
_ACEOF |
13354 |
+ |
rm -f conftest.$ac_objext conftest$ac_exeext |
13355 |
+ |
if { (ac_try="$ac_link" |
13356 |
+ |
case "(($ac_try" in |
13357 |
+ |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
13358 |
+ |
*) ac_try_echo=$ac_try;; |
13359 |
+ |
esac |
13360 |
+ |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
13361 |
+ |
(eval "$ac_link") 2>conftest.er1 |
13362 |
+ |
ac_status=$? |
13363 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
13364 |
+ |
rm -f conftest.er1 |
13365 |
+ |
cat conftest.err >&5 |
13366 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13367 |
+ |
(exit $ac_status); } && { |
13368 |
+ |
test -z "$ac_c_werror_flag" || |
13369 |
+ |
test ! -s conftest.err |
13370 |
+ |
} && test -s conftest$ac_exeext && |
13371 |
+ |
$as_test_x conftest$ac_exeext; then |
13372 |
+ |
ac_cv_lib_Core_main=yes |
13373 |
+ |
else |
13374 |
+ |
echo "$as_me: failed program was:" >&5 |
13375 |
+ |
sed 's/^/| /' conftest.$ac_ext >&5 |
13376 |
+ |
|
13377 |
+ |
ac_cv_lib_Core_main=no |
13378 |
|
fi |
13379 |
|
|
13380 |
+ |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
13381 |
+ |
conftest$ac_exeext conftest.$ac_ext |
13382 |
+ |
LIBS=$ac_check_lib_save_LIBS |
13383 |
|
fi |
13384 |
+ |
{ echo "$as_me:$LINENO: result: $ac_cv_lib_Core_main" >&5 |
13385 |
+ |
echo "${ECHO_T}$ac_cv_lib_Core_main" >&6; } |
13386 |
+ |
if test $ac_cv_lib_Core_main = yes; then |
13387 |
+ |
CGAL_LIBS="$CGAL_LIBS -lCore" |
13388 |
+ |
fi |
13389 |
|
|
13390 |
+ |
fi |
13391 |
+ |
fi |
13392 |
|
|
13393 |
|
|
13394 |
< |
{ echo "$as_me:$LINENO: checking for MPI Fortran library" >&5 |
13395 |
< |
echo $ECHO_N "checking for MPI Fortran library... $ECHO_C" >&6; } |
13396 |
< |
MPI_F90_LIB="" |
13397 |
< |
if test -f "$MPI_LIB_DIR/libfmpich.a" ; then |
13398 |
< |
MPI_F90_LIB="-lfmpich" |
13399 |
< |
elif test -f "$MPI_LIB_DIR/liblamf77mpi.a" ; then |
13400 |
< |
MPI_F90_LIB="-llamf77mpi" |
13394 |
> |
|
13395 |
> |
{ echo "$as_me:$LINENO: checking CGAL" >&5 |
13396 |
> |
echo $ECHO_N "checking CGAL... $ECHO_C" >&6; } |
13397 |
> |
|
13398 |
> |
|
13399 |
> |
|
13400 |
> |
|
13401 |
> |
|
13402 |
> |
if test "$acx_cgal_found" == yes; then |
13403 |
> |
{ echo "$as_me:$LINENO: result: yes" >&5 |
13404 |
> |
echo "${ECHO_T}yes" >&6; } |
13405 |
> |
|
13406 |
|
else |
13407 |
< |
MPI_F90_LIB=" " |
13407 |
> |
{ echo "$as_me:$LINENO: result: no" >&5 |
13408 |
> |
echo "${ECHO_T}no" >&6; } |
13409 |
> |
|
13410 |
|
fi |
13411 |
< |
{ echo "$as_me:$LINENO: result: found $MPI_F90_LIB" >&5 |
13412 |
< |
echo "${ECHO_T}found $MPI_F90_LIB" >&6; } |
13411 |
> |
USE_CGAL=no |
13412 |
> |
if test "$acx_cgal_found" == yes; then |
13413 |
> |
USE_CGAL=yes |
13414 |
> |
|
13415 |
> |
cat >>confdefs.h <<\_ACEOF |
13416 |
> |
#define HAVE_CGAL 1 |
13417 |
> |
_ACEOF |
13418 |
> |
|
13419 |
> |
|
13420 |
> |
|
13421 |
|
|
13422 |
|
|
13423 |
|
fi |
13580 |
|
|
13581 |
|
|
13582 |
|
|
13583 |
< |
ac_config_files="$ac_config_files make/Makefile src/utils/Makefile scripts/filepp" |
13583 |
> |
ac_config_files="$ac_config_files make/Makefile src/utils/Makefile src/math/Makefile src/applications/atom2md/Makefile scripts/filepp" |
13584 |
|
|
13585 |
|
|
13586 |
|
cat >confcache <<\_ACEOF |
13979 |
|
# report actual input values of CONFIG_FILES etc. instead of their |
13980 |
|
# values after options handling. |
13981 |
|
ac_log=" |
13982 |
< |
This file was extended by OOPSE $as_me 3.0, which was |
13982 |
> |
This file was extended by OOPSE $as_me 4.0, which was |
13983 |
|
generated by GNU Autoconf 2.61. Invocation command line was |
13984 |
|
|
13985 |
|
CONFIG_FILES = $CONFIG_FILES |
13997 |
|
# Files that config.status was made for. |
13998 |
|
config_files="$ac_config_files" |
13999 |
|
config_headers="$ac_config_headers" |
15016 |
– |
config_links="$ac_config_links" |
14000 |
|
|
14001 |
|
_ACEOF |
14002 |
|
|
14023 |
|
Configuration headers: |
14024 |
|
$config_headers |
14025 |
|
|
15043 |
– |
Configuration links: |
15044 |
– |
$config_links |
15045 |
– |
|
14026 |
|
Report bugs to <bug-autoconf@gnu.org>." |
14027 |
|
|
14028 |
|
_ACEOF |
14029 |
|
cat >>$CONFIG_STATUS <<_ACEOF |
14030 |
|
ac_cs_version="\\ |
14031 |
< |
OOPSE config.status 3.0 |
14031 |
> |
OOPSE config.status 4.0 |
14032 |
|
configured by $0, generated by GNU Autoconf 2.61, |
14033 |
|
with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
14034 |
|
|
14137 |
|
do |
14138 |
|
case $ac_config_target in |
14139 |
|
"src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; |
15160 |
– |
"src/getopt.h") CONFIG_LINKS="$CONFIG_LINKS src/getopt.h:src/utils/gnugetopt.h" ;; |
14140 |
|
"make/Makefile") CONFIG_FILES="$CONFIG_FILES make/Makefile" ;; |
14141 |
|
"src/utils/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/Makefile" ;; |
14142 |
+ |
"src/math/Makefile") CONFIG_FILES="$CONFIG_FILES src/math/Makefile" ;; |
14143 |
+ |
"src/applications/atom2md/Makefile") CONFIG_FILES="$CONFIG_FILES src/applications/atom2md/Makefile" ;; |
14144 |
|
"scripts/filepp") CONFIG_FILES="$CONFIG_FILES scripts/filepp" ;; |
14145 |
|
|
14146 |
|
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
14157 |
|
if $ac_need_defaults; then |
14158 |
|
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
14159 |
|
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
15179 |
– |
test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links |
14160 |
|
fi |
14161 |
|
|
14162 |
|
# Have a temporary directory for convenience. Make it in the build tree |
14251 |
|
PROGNAME!$PROGNAME$ac_delim |
14252 |
|
debug!$debug$ac_delim |
14253 |
|
USE_SINGLE_PRECISION!$USE_SINGLE_PRECISION$ac_delim |
14254 |
+ |
ac_cc_set!$ac_cc_set$ac_delim |
14255 |
+ |
ac_cc_path!$ac_cc_path$ac_delim |
14256 |
+ |
ac_cxx_set!$ac_cxx_set$ac_delim |
14257 |
+ |
ac_cxx_path!$ac_cxx_path$ac_delim |
14258 |
+ |
ac_fc_set!$ac_fc_set$ac_delim |
14259 |
+ |
ac_fc_path!$ac_fc_path$ac_delim |
14260 |
+ |
acx_mpi_mpicc!$acx_mpi_mpicc$ac_delim |
14261 |
+ |
acx_mpi_mpicc_path!$acx_mpi_mpicc_path$ac_delim |
14262 |
+ |
acx_mpi_mpif90!$acx_mpi_mpif90$ac_delim |
14263 |
+ |
acx_mpi_mpif90_path!$acx_mpi_mpif90_path$ac_delim |
14264 |
+ |
acx_mpi_mpicxx!$acx_mpi_mpicxx$ac_delim |
14265 |
+ |
acx_mpi_mpicxx_path!$acx_mpi_mpicxx_path$ac_delim |
14266 |
+ |
MPI_CPPFLAGS!$MPI_CPPFLAGS$ac_delim |
14267 |
+ |
MPI_LIBS!$MPI_LIBS$ac_delim |
14268 |
+ |
MPI90_LIBS!$MPI90_LIBS$ac_delim |
14269 |
+ |
USE_MPI!$USE_MPI$ac_delim |
14270 |
|
CXX!$CXX$ac_delim |
14271 |
|
CXXFLAGS!$CXXFLAGS$ac_delim |
14272 |
|
LDFLAGS!$LDFLAGS$ac_delim |
14300 |
|
FC_FUNC!$FC_FUNC$ac_delim |
14301 |
|
FC_FUNC_!$FC_FUNC_$ac_delim |
14302 |
|
MOD!$MOD$ac_delim |
15307 |
– |
F90_WORK_FILES_ARG!$F90_WORK_FILES_ARG$ac_delim |
15308 |
– |
MODDIRFLAG!$MODDIRFLAG$ac_delim |
15309 |
– |
F90MODINCSPEC!$F90MODINCSPEC$ac_delim |
15310 |
– |
F90_MODULE_NAMES!$F90_MODULE_NAMES$ac_delim |
15311 |
– |
ZLIB_INC_DIR!$ZLIB_INC_DIR$ac_delim |
15312 |
– |
ZLIB_LIB_DIR!$ZLIB_LIB_DIR$ac_delim |
15313 |
– |
ZLIB!$ZLIB$ac_delim |
15314 |
– |
FFTW_INC_DIR!$FFTW_INC_DIR$ac_delim |
15315 |
– |
FFTW_LIB_DIR!$FFTW_LIB_DIR$ac_delim |
15316 |
– |
FFTW_LIBS!$FFTW_LIBS$ac_delim |
15317 |
– |
LIBOBJS!$LIBOBJS$ac_delim |
15318 |
– |
POW_LIB!$POW_LIB$ac_delim |
15319 |
– |
CXXCPP!$CXXCPP$ac_delim |
15320 |
– |
__func__!$__func__$ac_delim |
15321 |
– |
MPI_LIB_DIR!$MPI_LIB_DIR$ac_delim |
15322 |
– |
MPI_INC_DIR!$MPI_INC_DIR$ac_delim |
14303 |
|
_ACEOF |
14304 |
|
|
14305 |
|
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
14341 |
|
ac_delim='%!_!# ' |
14342 |
|
for ac_last_try in false false false false false :; do |
14343 |
|
cat >conf$$subs.sed <<_ACEOF |
14344 |
< |
MPI_F90_INC!$MPI_F90_INC$ac_delim |
14345 |
< |
MPI_LIB!$MPI_LIB$ac_delim |
14346 |
< |
MPI_F90_LIB!$MPI_F90_LIB$ac_delim |
14347 |
< |
USE_MPI!$USE_MPI$ac_delim |
14344 |
> |
F90_WORK_FILES_ARG!$F90_WORK_FILES_ARG$ac_delim |
14345 |
> |
MODDIRFLAG!$MODDIRFLAG$ac_delim |
14346 |
> |
F90MODINCSPEC!$F90MODINCSPEC$ac_delim |
14347 |
> |
F90_MODULE_NAMES!$F90_MODULE_NAMES$ac_delim |
14348 |
> |
ZLIB_INC_DIR!$ZLIB_INC_DIR$ac_delim |
14349 |
> |
ZLIB_LIB_DIR!$ZLIB_LIB_DIR$ac_delim |
14350 |
> |
ZLIB!$ZLIB$ac_delim |
14351 |
> |
FFTW_INC_DIR!$FFTW_INC_DIR$ac_delim |
14352 |
> |
FFTW_LIB_DIR!$FFTW_LIB_DIR$ac_delim |
14353 |
> |
FFTW_LIBS!$FFTW_LIBS$ac_delim |
14354 |
> |
QHULL_INC_DIR!$QHULL_INC_DIR$ac_delim |
14355 |
> |
QHULL_LIB_DIR!$QHULL_LIB_DIR$ac_delim |
14356 |
> |
QHULL!$QHULL$ac_delim |
14357 |
> |
USE_QHULL!$USE_QHULL$ac_delim |
14358 |
> |
CXXCPP!$CXXCPP$ac_delim |
14359 |
> |
OPENBABEL_INC_DIR!$OPENBABEL_INC_DIR$ac_delim |
14360 |
> |
OPENBABEL_LIB_DIR!$OPENBABEL_LIB_DIR$ac_delim |
14361 |
> |
OPENBABEL_LIB!$OPENBABEL_LIB$ac_delim |
14362 |
> |
USE_OPENBABEL!$USE_OPENBABEL$ac_delim |
14363 |
> |
LIBOBJS!$LIBOBJS$ac_delim |
14364 |
> |
POW_LIB!$POW_LIB$ac_delim |
14365 |
> |
CGAL_MAKEFILE!$CGAL_MAKEFILE$ac_delim |
14366 |
> |
CGAL_CXXFLAGS!$CGAL_CXXFLAGS$ac_delim |
14367 |
> |
CGAL_CPPFLAGS!$CGAL_CPPFLAGS$ac_delim |
14368 |
> |
CGAL_LDFLAGS!$CGAL_LDFLAGS$ac_delim |
14369 |
> |
CGAL_LIBS!$CGAL_LIBS$ac_delim |
14370 |
> |
USE_CGAL!$USE_CGAL$ac_delim |
14371 |
|
DOXYGEN!$DOXYGEN$ac_delim |
14372 |
|
DOT!$DOT$ac_delim |
14373 |
|
DOC!$DOC$ac_delim |
14382 |
|
LTLIBOBJS!$LTLIBOBJS$ac_delim |
14383 |
|
_ACEOF |
14384 |
|
|
14385 |
< |
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 16; then |
14385 |
> |
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 39; then |
14386 |
|
break |
14387 |
|
elif $ac_last_try; then |
14388 |
|
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
14439 |
|
fi # test -n "$CONFIG_FILES" |
14440 |
|
|
14441 |
|
|
14442 |
< |
for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS |
14442 |
> |
for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS |
14443 |
|
do |
14444 |
|
case $ac_tag in |
14445 |
|
:[FHLC]) ac_mode=$ac_tag; continue;; |
14777 |
|
fi |
14778 |
|
rm -f "$tmp/out12" |
14779 |
|
;; |
15777 |
– |
:L) |
15778 |
– |
# |
15779 |
– |
# CONFIG_LINK |
15780 |
– |
# |
15781 |
– |
|
15782 |
– |
{ echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_file" >&5 |
15783 |
– |
echo "$as_me: linking $srcdir/$ac_source to $ac_file" >&6;} |
15784 |
– |
|
15785 |
– |
if test ! -r "$srcdir/$ac_source"; then |
15786 |
– |
{ { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5 |
15787 |
– |
echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;} |
15788 |
– |
{ (exit 1); exit 1; }; } |
15789 |
– |
fi |
15790 |
– |
rm -f "$ac_file" |
14780 |
|
|
15792 |
– |
# Try a relative symlink, then a hard link, then a copy. |
15793 |
– |
case $srcdir in |
15794 |
– |
[\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;; |
15795 |
– |
*) ac_rel_source=$ac_top_build_prefix$srcdir/$ac_source ;; |
15796 |
– |
esac |
15797 |
– |
ln -s "$ac_rel_source" "$ac_file" 2>/dev/null || |
15798 |
– |
ln "$srcdir/$ac_source" "$ac_file" 2>/dev/null || |
15799 |
– |
cp -p "$srcdir/$ac_source" "$ac_file" || |
15800 |
– |
{ { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&5 |
15801 |
– |
echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&2;} |
15802 |
– |
{ (exit 1); exit 1; }; } |
15803 |
– |
;; |
14781 |
|
|
14782 |
|
esac |
14783 |
|
|
14785 |
|
case $ac_file$ac_mode in |
14786 |
|
"make/Makefile":F) chmod 0755 scripts/* ;; |
14787 |
|
"src/utils/Makefile":F) chmod 0755 scripts/* ;; |
14788 |
+ |
"src/math/Makefile":F) chmod 0755 scripts/* ;; |
14789 |
+ |
"src/applications/atom2md/Makefile":F) chmod 0755 scripts/* ;; |
14790 |
|
"scripts/filepp":F) chmod 0755 scripts/* ;; |
14791 |
|
|
14792 |
|
esac |