| 273 |
|
PACKAGE_STRING='OOPSE 2.0' |
| 274 |
|
PACKAGE_BUGREPORT='gezelter@nd.edu' |
| 275 |
|
|
| 276 |
< |
ac_unique_file="src/applications/oopse.cpp" |
| 276 |
> |
ac_unique_file="src/applications/oopse/oopse.cpp" |
| 277 |
|
ac_default_prefix="/usr/local" |
| 278 |
|
# Factoring default headers for most tests. |
| 279 |
|
ac_includes_default="\ |
| 312 |
|
# include <unistd.h> |
| 313 |
|
#endif" |
| 314 |
|
|
| 315 |
< |
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS PROGNAME debug build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX OOPSE_TEMPLATE_FLAGS EXTRA_CC_FLAG F90 F90FLAGS ac_ct_F90 PREPFLAG PREPDEFFLAG F90LIBS F90_FUNC F90_FUNC_ MOD F90_WORK_FILES_ARG MODDIRFLAG F90MODINCSPEC CPP EGREP LIBOBJS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB YACC LEX LEXLIB LEX_OUTPUT_ROOT AR MPI_LIB_DIR MPI_INC_DIR MPI_F90_INC MPI_LIB MPI_F90_LIB USE_MPI SPRNG_LIB_DIR SPRNG_INC_DIR SPRNG_LIB USE_SPRNG MKL_LIBDIR MKL_LIB MKL_INC HAVE_MKL BATEXT MKINSTALLDIRS OOPSE OOPSE_HOME SUBDIRS FFLAGS LTLIBOBJS' |
| 315 |
> |
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS PROGNAME debug build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX OOPSE_TEMPLATE_FLAGS EXTRA_CC_FLAG F90 F90FLAGS ac_ct_F90 PREPFLAG PREPDEFFLAG F90LIBS F90_FUNC F90_FUNC_ MOD F90_WORK_FILES_ARG MODDIRFLAG F90MODINCSPEC F90_MODULE_NAMES CPP EGREP CXXCPP LIBOBJS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB YACC LEX LEXLIB LEX_OUTPUT_ROOT PERLINTERP PERL_SHEBANG AR PS MPI_LIB_DIR MPI_INC_DIR MPI_F90_INC MPI_LIB MPI_F90_LIB USE_MPI USE_CGAL CGAL_INC_DIR CGAL_LIB_DIR CGAL_RLIB_DIR CGAL_DEFINES CGAL_CXXFLAGS CGAL_LIBS DOXYGEN DOT DOC enable_dot enable_html_docs enable_latex_docs BATEXT MKINSTALLDIRS OOPSE OOPSE_HOME SUBDIRS FFLAGS LTLIBOBJS' |
| 316 |
|
ac_subst_files='' |
| 317 |
|
|
| 318 |
|
# Initialize some variables set by options. |
| 789 |
|
ac_env_CPP_value=$CPP |
| 790 |
|
ac_cv_env_CPP_set=${CPP+set} |
| 791 |
|
ac_cv_env_CPP_value=$CPP |
| 792 |
+ |
ac_env_CXXCPP_set=${CXXCPP+set} |
| 793 |
+ |
ac_env_CXXCPP_value=$CXXCPP |
| 794 |
+ |
ac_cv_env_CXXCPP_set=${CXXCPP+set} |
| 795 |
+ |
ac_cv_env_CXXCPP_value=$CXXCPP |
| 796 |
|
|
| 797 |
|
# |
| 798 |
|
# Report the --help message. |
| 870 |
|
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 871 |
|
--enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 872 |
|
--enable-debug Compile OOPSE in debug mode |
| 873 |
+ |
--enable-doxygen enable documentation generation with doxygen (auto) |
| 874 |
+ |
--enable-dot use 'dot' to generate graphs in doxygen (auto) |
| 875 |
+ |
--enable-html-docs enable HTML generation with doxygen (yes) |
| 876 |
+ |
--enable-latex-docs enable LaTeX documentation generation with doxygen (no) |
| 877 |
|
--enable-oopse-home=DIR define oopse home dir PREFIX/oopse |
| 878 |
|
|
| 879 |
|
Optional Packages: |
| 880 |
|
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 881 |
|
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 882 |
+ |
--with-zlib=DIR root directory path of zlib installation defaults to |
| 883 |
+ |
/usr/local or /usr if not found in /usr/local |
| 884 |
+ |
--without-zlib to disable zlib usage completely |
| 885 |
+ |
--with-perl-shebang override what perl thinks is the way for the kernel |
| 886 |
+ |
to start it (seldom needed) |
| 887 |
|
--with-mpi=<prefix> compile with MPI installed in <prefix> [default=no] |
| 888 |
< |
--with-sprng=<prefix> compile with SPRNG installed in <prefix> |
| 876 |
< |
[default=/usr/local] |
| 877 |
< |
--with-mkl Do we want MKL will check /usr/local/intel/mkl61 /opt/intel/mkl61 |
| 888 |
> |
--with-cgal-makefile=FILE CGAL makefile that should be used |
| 889 |
|
|
| 890 |
|
Some influential environment variables: |
| 891 |
|
CC C compiler command |
| 899 |
|
F90 Fortran 90 compiler command |
| 900 |
|
F90FLAGS Fortran 90 compiler flags |
| 901 |
|
CPP C preprocessor |
| 902 |
+ |
CXXCPP C++ preprocessor |
| 903 |
|
|
| 904 |
|
Use these variables to override the choices made by `configure' or to help |
| 905 |
|
it to find libraries and programs with nonstandard names/locations. |
| 993 |
|
else |
| 994 |
|
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 995 |
|
fi |
| 996 |
< |
cd $ac_popdir |
| 996 |
> |
cd "$ac_popdir" |
| 997 |
|
done |
| 998 |
|
fi |
| 999 |
|
|
| 1826 |
|
# argument is not supplied, it defaults to NAME. |
| 1827 |
|
# AC_F95_FUNC |
| 1828 |
|
|
| 1829 |
+ |
# AC_F90_MODULE_NAMES |
| 1830 |
+ |
# ------------------- |
| 1831 |
+ |
# |
| 1832 |
+ |
# Figure out how the Fortran 90 compiler constructs module file names |
| 1833 |
+ |
# |
| 1834 |
+ |
# AC_F90_MODULE_NAMES |
| 1835 |
|
|
| 1836 |
|
|
| 1837 |
|
|
| 1885 |
|
|
| 1886 |
|
|
| 1887 |
|
|
| 1888 |
+ |
# |
| 1889 |
+ |
# |
| 1890 |
+ |
# |
| 1891 |
|
|
| 1892 |
+ |
|
| 1893 |
+ |
|
| 1894 |
+ |
|
| 1895 |
+ |
|
| 1896 |
+ |
|
| 1897 |
+ |
|
| 1898 |
+ |
|
| 1899 |
|
# set program name |
| 1900 |
|
PROGNAME="oopse" |
| 1901 |
|
|
| 1975 |
|
|
| 1976 |
|
|
| 1977 |
|
|
| 1978 |
+ |
|
| 1979 |
+ |
|
| 1980 |
|
ac_ext=c |
| 1981 |
|
ac_cpp='$CPP $CPPFLAGS' |
| 1982 |
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2328 |
|
cat conftest.err >&5 |
| 2329 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2330 |
|
(exit $ac_status); } && |
| 2331 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
| 2302 |
< |
|| test ! -s conftest.err' |
| 2331 |
> |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2332 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2333 |
|
(eval $ac_try) 2>&5 |
| 2334 |
|
ac_status=$? |
| 2386 |
|
cat conftest.err >&5 |
| 2387 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2388 |
|
(exit $ac_status); } && |
| 2389 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
| 2361 |
< |
|| test ! -s conftest.err' |
| 2389 |
> |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2390 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2391 |
|
(eval $ac_try) 2>&5 |
| 2392 |
|
ac_status=$? |
| 2502 |
|
cat conftest.err >&5 |
| 2503 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2504 |
|
(exit $ac_status); } && |
| 2505 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
| 2478 |
< |
|| test ! -s conftest.err' |
| 2505 |
> |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2506 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2507 |
|
(eval $ac_try) 2>&5 |
| 2508 |
|
ac_status=$? |
| 2556 |
|
cat conftest.err >&5 |
| 2557 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2558 |
|
(exit $ac_status); } && |
| 2559 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
| 2533 |
< |
|| test ! -s conftest.err' |
| 2559 |
> |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2560 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2561 |
|
(eval $ac_try) 2>&5 |
| 2562 |
|
ac_status=$? |
| 2601 |
|
cat conftest.err >&5 |
| 2602 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2603 |
|
(exit $ac_status); } && |
| 2604 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
| 2579 |
< |
|| test ! -s conftest.err' |
| 2604 |
> |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2605 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2606 |
|
(eval $ac_try) 2>&5 |
| 2607 |
|
ac_status=$? |
| 2645 |
|
cat conftest.err >&5 |
| 2646 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2647 |
|
(exit $ac_status); } && |
| 2648 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
| 2624 |
< |
|| test ! -s conftest.err' |
| 2648 |
> |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2649 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2650 |
|
(eval $ac_try) 2>&5 |
| 2651 |
|
ac_status=$? |
| 2830 |
|
cat conftest.err >&5 |
| 2831 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2832 |
|
(exit $ac_status); } && |
| 2833 |
< |
{ ac_try='test -z "$ac_cxx_werror_flag" |
| 2810 |
< |
|| test ! -s conftest.err' |
| 2833 |
> |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 2834 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2835 |
|
(eval $ac_try) 2>&5 |
| 2836 |
|
ac_status=$? |
| 2888 |
|
cat conftest.err >&5 |
| 2889 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2890 |
|
(exit $ac_status); } && |
| 2891 |
< |
{ ac_try='test -z "$ac_cxx_werror_flag" |
| 2869 |
< |
|| test ! -s conftest.err' |
| 2891 |
> |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 2892 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2893 |
|
(eval $ac_try) 2>&5 |
| 2894 |
|
ac_status=$? |
| 2959 |
|
cat conftest.err >&5 |
| 2960 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2961 |
|
(exit $ac_status); } && |
| 2962 |
< |
{ ac_try='test -z "$ac_cxx_werror_flag" |
| 2941 |
< |
|| test ! -s conftest.err' |
| 2962 |
> |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 2963 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2964 |
|
(eval $ac_try) 2>&5 |
| 2965 |
|
ac_status=$? |
| 3003 |
|
cat conftest.err >&5 |
| 3004 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3005 |
|
(exit $ac_status); } && |
| 3006 |
< |
{ ac_try='test -z "$ac_cxx_werror_flag" |
| 2986 |
< |
|| test ! -s conftest.err' |
| 3006 |
> |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 3007 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3008 |
|
(eval $ac_try) 2>&5 |
| 3009 |
|
ac_status=$? |
| 3213 |
|
cat conftest.err >&5 |
| 3214 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3215 |
|
(exit $ac_status); } && |
| 3216 |
< |
{ ac_try='test -z "$ac_f90_werror_flag" |
| 3197 |
< |
|| test ! -s conftest.err' |
| 3216 |
> |
{ ac_try='test -z "$ac_f90_werror_flag" || test ! -s conftest.err' |
| 3217 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3218 |
|
(eval $ac_try) 2>&5 |
| 3219 |
|
ac_status=$? |
| 3313 |
|
cat conftest.err >&5 |
| 3314 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3315 |
|
(exit $ac_status); } && |
| 3316 |
< |
{ ac_try='test -z "$ac_f90_werror_flag" |
| 3298 |
< |
|| test ! -s conftest.err' |
| 3316 |
> |
{ ac_try='test -z "$ac_f90_werror_flag" || test ! -s conftest.err' |
| 3317 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3318 |
|
(eval $ac_try) 2>&5 |
| 3319 |
|
ac_status=$? |
| 3427 |
|
cat conftest.err >&5 |
| 3428 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3429 |
|
(exit $ac_status); } && |
| 3430 |
< |
{ ac_try='test -z "$ac_f90_werror_flag" |
| 3413 |
< |
|| test ! -s conftest.err' |
| 3430 |
> |
{ ac_try='test -z "$ac_f90_werror_flag" || test ! -s conftest.err' |
| 3431 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3432 |
|
(eval $ac_try) 2>&5 |
| 3433 |
|
ac_status=$? |
| 3505 |
|
cat conftest.err >&5 |
| 3506 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3507 |
|
(exit $ac_status); } && |
| 3508 |
< |
{ ac_try='test -z "$ac_f90_werror_flag" |
| 3492 |
< |
|| test ! -s conftest.err' |
| 3508 |
> |
{ ac_try='test -z "$ac_f90_werror_flag" || test ! -s conftest.err' |
| 3509 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3510 |
|
(eval $ac_try) 2>&5 |
| 3511 |
|
ac_status=$? |
| 3541 |
|
ac_save_F90FLAGS=$F90FLAGS |
| 3542 |
|
F90FLAGS="$F90FLAGS $ac_verb" |
| 3543 |
|
|
| 3544 |
< |
(eval echo $as_me:3528: \"$ac_link\") >&5 |
| 3544 |
> |
(eval echo $as_me:3544: \"$ac_link\") >&5 |
| 3545 |
|
ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'` |
| 3546 |
|
echo "$ac_f90_v_output" >&5 |
| 3547 |
|
F90FLAGS=$ac_save_F90FLAGS |
| 3618 |
|
ac_save_F90FLAGS=$F90FLAGS |
| 3619 |
|
F90FLAGS="$F90FLAGS $ac_cv_prog_f90_v" |
| 3620 |
|
|
| 3621 |
< |
(eval echo $as_me:3605: \"$ac_link\") >&5 |
| 3621 |
> |
(eval echo $as_me:3621: \"$ac_link\") >&5 |
| 3622 |
|
ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'` |
| 3623 |
|
echo "$ac_f90_v_output" >&5 |
| 3624 |
|
F90FLAGS=$ac_save_F90FLAGS |
| 3807 |
|
cat conftest.err >&5 |
| 3808 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3809 |
|
(exit $ac_status); } && |
| 3810 |
< |
{ ac_try='test -z "$ac_f90_werror_flag" |
| 3795 |
< |
|| test ! -s conftest.err' |
| 3810 |
> |
{ ac_try='test -z "$ac_f90_werror_flag" || test ! -s conftest.err' |
| 3811 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3812 |
|
(eval $ac_try) 2>&5 |
| 3813 |
|
ac_status=$? |
| 3865 |
|
cat conftest.err >&5 |
| 3866 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3867 |
|
(exit $ac_status); } && |
| 3868 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
| 3854 |
< |
|| test ! -s conftest.err' |
| 3868 |
> |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3869 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3870 |
|
(eval $ac_try) 2>&5 |
| 3871 |
|
ac_status=$? |
| 3935 |
|
cat conftest.err >&5 |
| 3936 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3937 |
|
(exit $ac_status); } && |
| 3938 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
| 3925 |
< |
|| test ! -s conftest.err' |
| 3938 |
> |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3939 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3940 |
|
(eval $ac_try) 2>&5 |
| 3941 |
|
ac_status=$? |
| 4210 |
|
|
| 4211 |
|
rm -f conftest* conf/conftest* conf/CONFTEST* CONFTEST* conf/mpimod* |
| 4212 |
|
if test $madedir = 1 ; then rmdir conf ; fi |
| 4213 |
+ |
fi |
| 4214 |
+ |
|
| 4215 |
+ |
|
| 4216 |
+ |
echo "$as_me:$LINENO: checking for Fortran 90 module file names" >&5 |
| 4217 |
+ |
echo $ECHO_N "checking for Fortran 90 module file names... $ECHO_C" >&6 |
| 4218 |
+ |
if test "${ac_cv_f90_module_names+set}" = set; then |
| 4219 |
+ |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4220 |
+ |
else |
| 4221 |
+ |
ac_ext=f90 |
| 4222 |
+ |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
| 4223 |
+ |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4224 |
+ |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
| 4225 |
+ |
|
| 4226 |
+ |
# carry out the test in a new directory, so that we don't miss anything |
| 4227 |
+ |
mkdir conftest |
| 4228 |
+ |
cd conftest |
| 4229 |
+ |
cat >conftest.$ac_ext <<_ACEOF |
| 4230 |
+ |
MODULE Bar |
| 4231 |
+ |
END MODULE Bar |
| 4232 |
+ |
_ACEOF |
| 4233 |
+ |
rm -f conftest.$ac_objext |
| 4234 |
+ |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4235 |
+ |
(eval $ac_compile) 2>conftest.er1 |
| 4236 |
+ |
ac_status=$? |
| 4237 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
| 4238 |
+ |
rm -f conftest.er1 |
| 4239 |
+ |
cat conftest.err >&5 |
| 4240 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4241 |
+ |
(exit $ac_status); } && |
| 4242 |
+ |
{ ac_try='test -z "$ac_f90_werror_flag" || test ! -s conftest.err' |
| 4243 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4244 |
+ |
(eval $ac_try) 2>&5 |
| 4245 |
+ |
ac_status=$? |
| 4246 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4247 |
+ |
(exit $ac_status); }; } && |
| 4248 |
+ |
{ ac_try='test -s conftest.$ac_objext' |
| 4249 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4250 |
+ |
(eval $ac_try) 2>&5 |
| 4251 |
+ |
ac_status=$? |
| 4252 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4253 |
+ |
(exit $ac_status); }; }; then |
| 4254 |
+ |
ac_cv_f90_module_names= |
| 4255 |
+ |
ac_file_list=* |
| 4256 |
+ |
for ac_file in $ac_file_list; do |
| 4257 |
+ |
case $ac_file in |
| 4258 |
+ |
# don't care for original source and object files |
| 4259 |
+ |
conftest.$ac_ext | conftest.$ac_objext | conftest.err ) |
| 4260 |
+ |
: |
| 4261 |
+ |
;; |
| 4262 |
+ |
# look for new files derived from the file name |
| 4263 |
+ |
*conftest*) |
| 4264 |
+ |
ac_pat=`echo $ac_file | sed s/conftest/%FILE%/` |
| 4265 |
+ |
ac_exists=false |
| 4266 |
+ |
for ac_i in $ac_cv_f90_module_names; do |
| 4267 |
+ |
if test x"$ac_pat" = x"$ac_i"; then |
| 4268 |
+ |
ac_exists=true |
| 4269 |
+ |
break |
| 4270 |
+ |
fi |
| 4271 |
+ |
done |
| 4272 |
+ |
|
| 4273 |
+ |
if test x"$ac_exists" = xtrue; then |
| 4274 |
+ |
: |
| 4275 |
+ |
else |
| 4276 |
+ |
ac_cv_f90_module_names="$ac_cv_f90_module_names $ac_pat" |
| 4277 |
+ |
fi |
| 4278 |
+ |
|
| 4279 |
+ |
;; |
| 4280 |
+ |
# look for new files derived from the module name, |
| 4281 |
+ |
# with different case translation schemes |
| 4282 |
+ |
*Bar*) |
| 4283 |
+ |
ac_pat=`echo $ac_file | sed s/Bar/%Module%/` |
| 4284 |
+ |
ac_exists=false |
| 4285 |
+ |
for ac_i in $ac_cv_f90_module_names; do |
| 4286 |
+ |
if test x"$ac_pat" = x"$ac_i"; then |
| 4287 |
+ |
ac_exists=true |
| 4288 |
+ |
break |
| 4289 |
+ |
fi |
| 4290 |
+ |
done |
| 4291 |
+ |
|
| 4292 |
+ |
if test x"$ac_exists" = xtrue; then |
| 4293 |
+ |
: |
| 4294 |
+ |
else |
| 4295 |
+ |
ac_cv_f90_module_names="$ac_cv_f90_module_names $ac_pat" |
| 4296 |
+ |
fi |
| 4297 |
+ |
|
| 4298 |
+ |
;; |
| 4299 |
+ |
*bar*) |
| 4300 |
+ |
ac_pat=`echo $ac_file | sed s/bar/%module%/` |
| 4301 |
+ |
ac_exists=false |
| 4302 |
+ |
for ac_i in $ac_cv_f90_module_names; do |
| 4303 |
+ |
if test x"$ac_pat" = x"$ac_i"; then |
| 4304 |
+ |
ac_exists=true |
| 4305 |
+ |
break |
| 4306 |
+ |
fi |
| 4307 |
+ |
done |
| 4308 |
+ |
|
| 4309 |
+ |
if test x"$ac_exists" = xtrue; then |
| 4310 |
+ |
: |
| 4311 |
+ |
else |
| 4312 |
+ |
ac_cv_f90_module_names="$ac_cv_f90_module_names $ac_pat" |
| 4313 |
+ |
fi |
| 4314 |
+ |
|
| 4315 |
+ |
;; |
| 4316 |
+ |
*BAR*) |
| 4317 |
+ |
ac_pat=`echo $ac_file | sed s/BAR/%MODULE%/` |
| 4318 |
+ |
ac_exists=false |
| 4319 |
+ |
for ac_i in $ac_cv_f90_module_names; do |
| 4320 |
+ |
if test x"$ac_pat" = x"$ac_i"; then |
| 4321 |
+ |
ac_exists=true |
| 4322 |
+ |
break |
| 4323 |
+ |
fi |
| 4324 |
+ |
done |
| 4325 |
+ |
|
| 4326 |
+ |
if test x"$ac_exists" = xtrue; then |
| 4327 |
+ |
: |
| 4328 |
+ |
else |
| 4329 |
+ |
ac_cv_f90_module_names="$ac_cv_f90_module_names $ac_pat" |
| 4330 |
+ |
fi |
| 4331 |
+ |
|
| 4332 |
+ |
;; |
| 4333 |
+ |
# Other files - we have no idea how they are generated |
| 4334 |
+ |
*) |
| 4335 |
+ |
{ echo "$as_me:$LINENO: WARNING: Bogus file found: $ac_file" >&5 |
| 4336 |
+ |
echo "$as_me: WARNING: Bogus file found: $ac_file" >&2;} |
| 4337 |
+ |
;; |
| 4338 |
+ |
esac |
| 4339 |
+ |
done |
| 4340 |
+ |
if test "x$ac_cv_f90_module_names" = "x"; then |
| 4341 |
+ |
{ echo "$as_me:$LINENO: WARNING: Couldn't determine module file names" >&5 |
| 4342 |
+ |
echo "$as_me: WARNING: Couldn't determine module file names" >&2;} |
| 4343 |
+ |
fi |
| 4344 |
+ |
|
| 4345 |
+ |
else |
| 4346 |
+ |
echo "$as_me: failed program was:" >&5 |
| 4347 |
+ |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 4348 |
+ |
|
| 4349 |
+ |
ac_cv_f90_module_names= |
| 4350 |
+ |
{ echo "$as_me:$LINENO: WARNING: Couldn't determine module file names" >&5 |
| 4351 |
+ |
echo "$as_me: WARNING: Couldn't determine module file names" >&2;} |
| 4352 |
+ |
fi |
| 4353 |
+ |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4354 |
+ |
cd .. |
| 4355 |
+ |
# cleanup |
| 4356 |
+ |
rm -rf conftest |
| 4357 |
+ |
ac_ext=f90 |
| 4358 |
+ |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
| 4359 |
+ |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4360 |
+ |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
| 4361 |
+ |
|
| 4362 |
+ |
fi |
| 4363 |
+ |
echo "$as_me:$LINENO: result: $ac_cv_f90_module_names" >&5 |
| 4364 |
+ |
echo "${ECHO_T}$ac_cv_f90_module_names" >&6 # AC_CACHE_CHECK |
| 4365 |
+ |
|
| 4366 |
+ |
# We now generate a shell script that will help us to figure out the correct |
| 4367 |
+ |
# module file names, using the value of ac_cv_f90_module_names |
| 4368 |
+ |
|
| 4369 |
+ |
echo "Generating shell script modnam" |
| 4370 |
+ |
|
| 4371 |
+ |
cat > scripts/modnam << EOF |
| 4372 |
+ |
#! /bin/sh |
| 4373 |
+ |
# This script is auto-generated by configure |
| 4374 |
+ |
# |
| 4375 |
+ |
usage="\\ |
| 4376 |
+ |
Usage: \$0 [FILES] |
| 4377 |
+ |
|
| 4378 |
+ |
[FILES] are Fortran 90 source files. |
| 4379 |
+ |
The output is a list of module file names that the Fortran 90 compiler |
| 4380 |
+ |
generates when compiling [FILES]." |
| 4381 |
+ |
|
| 4382 |
+ |
list= |
| 4383 |
+ |
empty= |
| 4384 |
+ |
|
| 4385 |
+ |
if test \$# -eq 0; then |
| 4386 |
+ |
echo "\$usage"; exit 0 |
| 4387 |
|
fi |
| 4388 |
|
|
| 4389 |
+ |
while test \$# != 0; do |
| 4390 |
|
|
| 4391 |
+ |
file=\$1 |
| 4392 |
+ |
shift |
| 4393 |
+ |
|
| 4394 |
+ |
# strip suffix |
| 4395 |
+ |
base=\`echo \$file | sed 's/[.][^.]*$//'\` |
| 4396 |
+ |
|
| 4397 |
+ |
test ! -f \$file && continue |
| 4398 |
+ |
|
| 4399 |
+ |
# Look for module definitions and transform them to upper / lower case |
| 4400 |
+ |
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/'\` |
| 4401 |
+ |
upper=\`echo \$mods | tr a-z A-Z\` |
| 4402 |
+ |
lower=\`echo \$mods | tr A-Z a-z\` |
| 4403 |
+ |
|
| 4404 |
+ |
# Here, the patterns for generating module file names were inserted by configure |
| 4405 |
+ |
for trans in $ac_cv_f90_module_names; do |
| 4406 |
+ |
|
| 4407 |
+ |
pat=\`echo \$trans | sed 's/.*\(%.*%\).*/\1/'\` |
| 4408 |
+ |
var=empty |
| 4409 |
+ |
case \$pat in |
| 4410 |
+ |
%MODULE%) |
| 4411 |
+ |
var=upper ;; |
| 4412 |
+ |
%Module%) |
| 4413 |
+ |
var=mods ;; |
| 4414 |
+ |
%module%) |
| 4415 |
+ |
var=lower ;; |
| 4416 |
+ |
%FILE%) |
| 4417 |
+ |
test -n "\$mods" && var=base ;; |
| 4418 |
+ |
esac |
| 4419 |
+ |
new=\`eval '(for i in \$'\$var '; do echo \$trans | sed s/\$pat/\$i/; done)'\` |
| 4420 |
+ |
list="\$list \$new" |
| 4421 |
+ |
done |
| 4422 |
+ |
done |
| 4423 |
+ |
|
| 4424 |
+ |
echo \$list |
| 4425 |
+ |
# end of configure-generated script |
| 4426 |
+ |
EOF |
| 4427 |
+ |
chmod 755 scripts/modnam |
| 4428 |
+ |
|
| 4429 |
+ |
pat=`echo $ac_cv_f90_module_names | sed 's/.*\(%.*%\).*/\1/'` |
| 4430 |
+ |
F90_MODULE_NAMES=empty |
| 4431 |
+ |
case $pat in |
| 4432 |
+ |
%MODULE%) |
| 4433 |
+ |
F90_MODULE_NAMES=UPPER ;; |
| 4434 |
+ |
%Module%) |
| 4435 |
+ |
F90_MODULE_NAMES=Mixed ;; |
| 4436 |
+ |
%module%) |
| 4437 |
+ |
F90_MODULE_NAMES=lower ;; |
| 4438 |
+ |
*) |
| 4439 |
+ |
F90_MODULE_NAMES=unknown ;; |
| 4440 |
+ |
esac |
| 4441 |
+ |
|
| 4442 |
|
ac_ext=c |
| 4443 |
|
ac_cpp='$CPP $CPPFLAGS' |
| 4444 |
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4446 |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4447 |
|
|
| 4448 |
|
|
| 4449 |
+ |
ac_ext=cc |
| 4450 |
+ |
ac_cpp='$CXXCPP $CPPFLAGS' |
| 4451 |
+ |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4452 |
+ |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4453 |
+ |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 4454 |
+ |
|
| 4455 |
+ |
|
| 4456 |
+ |
|
| 4457 |
+ |
echo "$as_me:$LINENO: checking for asin in -lm" >&5 |
| 4458 |
+ |
echo $ECHO_N "checking for asin in -lm... $ECHO_C" >&6 |
| 4459 |
+ |
if test "${ac_cv_lib_m_asin+set}" = set; then |
| 4460 |
+ |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4461 |
+ |
else |
| 4462 |
+ |
ac_check_lib_save_LIBS=$LIBS |
| 4463 |
+ |
LIBS="-lm $LIBS" |
| 4464 |
+ |
cat >conftest.$ac_ext <<_ACEOF |
| 4465 |
+ |
/* confdefs.h. */ |
| 4466 |
+ |
_ACEOF |
| 4467 |
+ |
cat confdefs.h >>conftest.$ac_ext |
| 4468 |
+ |
cat >>conftest.$ac_ext <<_ACEOF |
| 4469 |
+ |
/* end confdefs.h. */ |
| 4470 |
+ |
|
| 4471 |
+ |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 4472 |
+ |
#ifdef __cplusplus |
| 4473 |
+ |
extern "C" |
| 4474 |
+ |
#endif |
| 4475 |
+ |
/* We use char because int might match the return type of a gcc2 |
| 4476 |
+ |
builtin and then its argument prototype would still apply. */ |
| 4477 |
+ |
char asin (); |
| 4478 |
+ |
int |
| 4479 |
+ |
main () |
| 4480 |
+ |
{ |
| 4481 |
+ |
asin (); |
| 4482 |
+ |
; |
| 4483 |
+ |
return 0; |
| 4484 |
+ |
} |
| 4485 |
+ |
_ACEOF |
| 4486 |
+ |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 4487 |
+ |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4488 |
+ |
(eval $ac_link) 2>conftest.er1 |
| 4489 |
+ |
ac_status=$? |
| 4490 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
| 4491 |
+ |
rm -f conftest.er1 |
| 4492 |
+ |
cat conftest.err >&5 |
| 4493 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4494 |
+ |
(exit $ac_status); } && |
| 4495 |
+ |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 4496 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4497 |
+ |
(eval $ac_try) 2>&5 |
| 4498 |
+ |
ac_status=$? |
| 4499 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4500 |
+ |
(exit $ac_status); }; } && |
| 4501 |
+ |
{ ac_try='test -s conftest$ac_exeext' |
| 4502 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4503 |
+ |
(eval $ac_try) 2>&5 |
| 4504 |
+ |
ac_status=$? |
| 4505 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4506 |
+ |
(exit $ac_status); }; }; then |
| 4507 |
+ |
ac_cv_lib_m_asin=yes |
| 4508 |
+ |
else |
| 4509 |
+ |
echo "$as_me: failed program was:" >&5 |
| 4510 |
+ |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 4511 |
+ |
|
| 4512 |
+ |
ac_cv_lib_m_asin=no |
| 4513 |
+ |
fi |
| 4514 |
+ |
rm -f conftest.err conftest.$ac_objext \ |
| 4515 |
+ |
conftest$ac_exeext conftest.$ac_ext |
| 4516 |
+ |
LIBS=$ac_check_lib_save_LIBS |
| 4517 |
+ |
fi |
| 4518 |
+ |
echo "$as_me:$LINENO: result: $ac_cv_lib_m_asin" >&5 |
| 4519 |
+ |
echo "${ECHO_T}$ac_cv_lib_m_asin" >&6 |
| 4520 |
+ |
if test $ac_cv_lib_m_asin = yes; then |
| 4521 |
+ |
cat >>confdefs.h <<_ACEOF |
| 4522 |
+ |
#define HAVE_LIBM 1 |
| 4523 |
+ |
_ACEOF |
| 4524 |
+ |
|
| 4525 |
+ |
LIBS="-lm $LIBS" |
| 4526 |
+ |
|
| 4527 |
+ |
else |
| 4528 |
+ |
exit |
| 4529 |
+ |
fi |
| 4530 |
+ |
|
| 4531 |
+ |
|
| 4532 |
|
ac_ext=c |
| 4533 |
|
ac_cpp='$CPP $CPPFLAGS' |
| 4534 |
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4818 |
|
cat conftest.err >&5 |
| 4819 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4820 |
|
(exit $ac_status); } && |
| 4821 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
| 4500 |
< |
|| test ! -s conftest.err' |
| 4821 |
> |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4822 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4823 |
|
(eval $ac_try) 2>&5 |
| 4824 |
|
ac_status=$? |
| 4988 |
|
cat conftest.err >&5 |
| 4989 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4990 |
|
(exit $ac_status); } && |
| 4991 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
| 4671 |
< |
|| test ! -s conftest.err' |
| 4991 |
> |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4992 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4993 |
|
(eval $ac_try) 2>&5 |
| 4994 |
|
ac_status=$? |
| 5021 |
|
done |
| 5022 |
|
|
| 5023 |
|
|
| 5024 |
< |
# clean out junk possibly left behind by a previous configuration |
| 5025 |
< |
rm -f utils/getopt.h |
| 5026 |
< |
# Check for getopt_long support |
| 5024 |
> |
# |
| 5025 |
> |
# Handle user hints |
| 5026 |
> |
# |
| 5027 |
> |
echo "$as_me:$LINENO: checking if zlib is wanted" >&5 |
| 5028 |
> |
echo $ECHO_N "checking if zlib is wanted... $ECHO_C" >&6 |
| 5029 |
|
|
| 5030 |
< |
for ac_header in getopt.h |
| 5031 |
< |
do |
| 5032 |
< |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5033 |
< |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 5034 |
< |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5035 |
< |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 5036 |
< |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 5030 |
> |
# Check whether --with-zlib or --without-zlib was given. |
| 5031 |
> |
if test "${with_zlib+set}" = set; then |
| 5032 |
> |
withval="$with_zlib" |
| 5033 |
> |
if test "$withval" != no ; then |
| 5034 |
> |
echo "$as_me:$LINENO: result: yes" >&5 |
| 5035 |
> |
echo "${ECHO_T}yes" >&6 |
| 5036 |
> |
if test -d "$withval" |
| 5037 |
> |
then |
| 5038 |
> |
ZLIB_HOME="$withval" |
| 5039 |
> |
else |
| 5040 |
> |
{ echo "$as_me:$LINENO: WARNING: Sorry, $withval does not exist, checking usual places" >&5 |
| 5041 |
> |
echo "$as_me: WARNING: Sorry, $withval does not exist, checking usual places" >&2;} |
| 5042 |
> |
fi |
| 5043 |
> |
else |
| 5044 |
> |
echo "$as_me:$LINENO: result: no" >&5 |
| 5045 |
> |
echo "${ECHO_T}no" >&6 |
| 5046 |
> |
fi |
| 5047 |
> |
fi; |
| 5048 |
> |
|
| 5049 |
> |
ZLIB_HOME=/usr/local |
| 5050 |
> |
if test ! -f "${ZLIB_HOME}/include/zlib.h" |
| 5051 |
> |
then |
| 5052 |
> |
ZLIB_HOME=/usr |
| 5053 |
> |
fi |
| 5054 |
> |
|
| 5055 |
> |
# |
| 5056 |
> |
# Locate zlib, if wanted |
| 5057 |
> |
# |
| 5058 |
> |
if test -n "${ZLIB_HOME}" |
| 5059 |
> |
then |
| 5060 |
> |
ZLIB_OLD_LDFLAGS=$LDFLAGS |
| 5061 |
> |
ZLIB_OLD_CPPFLAGS=$LDFLAGS |
| 5062 |
> |
LDFLAGS="$LDFLAGS -L${ZLIB_HOME}/lib" |
| 5063 |
> |
CPPFLAGS="$CPPFLAGS -I${ZLIB_HOME}/include" |
| 5064 |
> |
|
| 5065 |
> |
|
| 5066 |
> |
ac_ext=c |
| 5067 |
> |
ac_cpp='$CPP $CPPFLAGS' |
| 5068 |
> |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5069 |
> |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5070 |
> |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5071 |
> |
|
| 5072 |
> |
echo "$as_me:$LINENO: checking for inflateEnd in -lz" >&5 |
| 5073 |
> |
echo $ECHO_N "checking for inflateEnd in -lz... $ECHO_C" >&6 |
| 5074 |
> |
if test "${ac_cv_lib_z_inflateEnd+set}" = set; then |
| 5075 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5076 |
+ |
else |
| 5077 |
+ |
ac_check_lib_save_LIBS=$LIBS |
| 5078 |
+ |
LIBS="-lz $LIBS" |
| 5079 |
+ |
cat >conftest.$ac_ext <<_ACEOF |
| 5080 |
+ |
/* confdefs.h. */ |
| 5081 |
+ |
_ACEOF |
| 5082 |
+ |
cat confdefs.h >>conftest.$ac_ext |
| 5083 |
+ |
cat >>conftest.$ac_ext <<_ACEOF |
| 5084 |
+ |
/* end confdefs.h. */ |
| 5085 |
+ |
|
| 5086 |
+ |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 5087 |
+ |
#ifdef __cplusplus |
| 5088 |
+ |
extern "C" |
| 5089 |
+ |
#endif |
| 5090 |
+ |
/* We use char because int might match the return type of a gcc2 |
| 5091 |
+ |
builtin and then its argument prototype would still apply. */ |
| 5092 |
+ |
char inflateEnd (); |
| 5093 |
+ |
int |
| 5094 |
+ |
main () |
| 5095 |
+ |
{ |
| 5096 |
+ |
inflateEnd (); |
| 5097 |
+ |
; |
| 5098 |
+ |
return 0; |
| 5099 |
+ |
} |
| 5100 |
+ |
_ACEOF |
| 5101 |
+ |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 5102 |
+ |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5103 |
+ |
(eval $ac_link) 2>conftest.er1 |
| 5104 |
+ |
ac_status=$? |
| 5105 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
| 5106 |
+ |
rm -f conftest.er1 |
| 5107 |
+ |
cat conftest.err >&5 |
| 5108 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5109 |
+ |
(exit $ac_status); } && |
| 5110 |
+ |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5111 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5112 |
+ |
(eval $ac_try) 2>&5 |
| 5113 |
+ |
ac_status=$? |
| 5114 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5115 |
+ |
(exit $ac_status); }; } && |
| 5116 |
+ |
{ ac_try='test -s conftest$ac_exeext' |
| 5117 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5118 |
+ |
(eval $ac_try) 2>&5 |
| 5119 |
+ |
ac_status=$? |
| 5120 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5121 |
+ |
(exit $ac_status); }; }; then |
| 5122 |
+ |
ac_cv_lib_z_inflateEnd=yes |
| 5123 |
+ |
else |
| 5124 |
+ |
echo "$as_me: failed program was:" >&5 |
| 5125 |
+ |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 5126 |
+ |
|
| 5127 |
+ |
ac_cv_lib_z_inflateEnd=no |
| 5128 |
|
fi |
| 5129 |
< |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 5130 |
< |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 5129 |
> |
rm -f conftest.err conftest.$ac_objext \ |
| 5130 |
> |
conftest$ac_exeext conftest.$ac_ext |
| 5131 |
> |
LIBS=$ac_check_lib_save_LIBS |
| 5132 |
> |
fi |
| 5133 |
> |
echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateEnd" >&5 |
| 5134 |
> |
echo "${ECHO_T}$ac_cv_lib_z_inflateEnd" >&6 |
| 5135 |
> |
if test $ac_cv_lib_z_inflateEnd = yes; then |
| 5136 |
> |
zlib_cv_libz=yes |
| 5137 |
|
else |
| 5138 |
+ |
zlib_cv_libz=no |
| 5139 |
+ |
fi |
| 5140 |
+ |
|
| 5141 |
+ |
if test "${ac_cv_header_zlib_h+set}" = set; then |
| 5142 |
+ |
echo "$as_me:$LINENO: checking for zlib.h" >&5 |
| 5143 |
+ |
echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 |
| 5144 |
+ |
if test "${ac_cv_header_zlib_h+set}" = set; then |
| 5145 |
+ |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5146 |
+ |
fi |
| 5147 |
+ |
echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 |
| 5148 |
+ |
echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 |
| 5149 |
+ |
else |
| 5150 |
|
# Is the header compilable? |
| 5151 |
< |
echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 5152 |
< |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 5151 |
> |
echo "$as_me:$LINENO: checking zlib.h usability" >&5 |
| 5152 |
> |
echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6 |
| 5153 |
|
cat >conftest.$ac_ext <<_ACEOF |
| 5154 |
|
/* confdefs.h. */ |
| 5155 |
|
_ACEOF |
| 5157 |
|
cat >>conftest.$ac_ext <<_ACEOF |
| 5158 |
|
/* end confdefs.h. */ |
| 5159 |
|
$ac_includes_default |
| 5160 |
< |
#include <$ac_header> |
| 5160 |
> |
#include <zlib.h> |
| 5161 |
|
_ACEOF |
| 5162 |
|
rm -f conftest.$ac_objext |
| 5163 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5168 |
|
cat conftest.err >&5 |
| 5169 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5170 |
|
(exit $ac_status); } && |
| 5171 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
| 4742 |
< |
|| test ! -s conftest.err' |
| 5171 |
> |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5172 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5173 |
|
(eval $ac_try) 2>&5 |
| 5174 |
|
ac_status=$? |
| 5192 |
|
echo "${ECHO_T}$ac_header_compiler" >&6 |
| 5193 |
|
|
| 5194 |
|
# Is the header present? |
| 5195 |
< |
echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 5196 |
< |
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 5195 |
> |
echo "$as_me:$LINENO: checking zlib.h presence" >&5 |
| 5196 |
> |
echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6 |
| 5197 |
|
cat >conftest.$ac_ext <<_ACEOF |
| 5198 |
|
/* confdefs.h. */ |
| 5199 |
|
_ACEOF |
| 5200 |
|
cat confdefs.h >>conftest.$ac_ext |
| 5201 |
|
cat >>conftest.$ac_ext <<_ACEOF |
| 5202 |
|
/* end confdefs.h. */ |
| 5203 |
< |
#include <$ac_header> |
| 5203 |
> |
#include <zlib.h> |
| 5204 |
|
_ACEOF |
| 5205 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5206 |
|
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5234 |
|
# So? What about this header? |
| 5235 |
|
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5236 |
|
yes:no: ) |
| 5237 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5238 |
< |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5239 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 5240 |
< |
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 5237 |
> |
{ echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5238 |
> |
echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5239 |
> |
{ echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 |
| 5240 |
> |
echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} |
| 5241 |
|
ac_header_preproc=yes |
| 5242 |
|
;; |
| 5243 |
|
no:yes:* ) |
| 5244 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 5245 |
< |
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 5246 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 5247 |
< |
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 5248 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 5249 |
< |
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 5250 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 5251 |
< |
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5252 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 5253 |
< |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 5254 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 5255 |
< |
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 5244 |
> |
{ echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 |
| 5245 |
> |
echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} |
| 5246 |
> |
{ echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 |
| 5247 |
> |
echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} |
| 5248 |
> |
{ echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 |
| 5249 |
> |
echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} |
| 5250 |
> |
{ echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5251 |
> |
echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5252 |
> |
{ echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 |
| 5253 |
> |
echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} |
| 5254 |
> |
{ echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 |
| 5255 |
> |
echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} |
| 5256 |
|
( |
| 5257 |
|
cat <<\_ASBOX |
| 5258 |
|
## ------------------------------ ## |
| 5263 |
|
sed "s/^/$as_me: WARNING: /" >&2 |
| 5264 |
|
;; |
| 5265 |
|
esac |
| 5266 |
< |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5267 |
< |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 5268 |
< |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 5266 |
> |
echo "$as_me:$LINENO: checking for zlib.h" >&5 |
| 5267 |
> |
echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 |
| 5268 |
> |
if test "${ac_cv_header_zlib_h+set}" = set; then |
| 5269 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5270 |
|
else |
| 5271 |
< |
eval "$as_ac_Header=\$ac_header_preproc" |
| 5271 |
> |
ac_cv_header_zlib_h=$ac_header_preproc |
| 5272 |
|
fi |
| 5273 |
< |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 5274 |
< |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 5273 |
> |
echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 |
| 5274 |
> |
echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 |
| 5275 |
|
|
| 5276 |
|
fi |
| 5277 |
< |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 5278 |
< |
cat >>confdefs.h <<_ACEOF |
| 5279 |
< |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5280 |
< |
_ACEOF |
| 4852 |
< |
|
| 5277 |
> |
if test $ac_cv_header_zlib_h = yes; then |
| 5278 |
> |
zlib_cv_zlib_h=yes |
| 5279 |
> |
else |
| 5280 |
> |
zlib_cv_zlib_h=no |
| 5281 |
|
fi |
| 5282 |
|
|
| 4855 |
– |
done |
| 5283 |
|
|
| 5284 |
+ |
ac_ext=c |
| 5285 |
+ |
ac_cpp='$CPP $CPPFLAGS' |
| 5286 |
+ |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5287 |
+ |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5288 |
+ |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5289 |
|
|
| 5290 |
< |
for ac_func in getopt_long |
| 5291 |
< |
do |
| 5292 |
< |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 5293 |
< |
echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 5294 |
< |
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 5295 |
< |
if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 5290 |
> |
if test "$zlib_cv_libz" = "yes" -a "$zlib_cv_zlib_h" = "yes" |
| 5291 |
> |
then |
| 5292 |
> |
# |
| 5293 |
> |
# If both library and header were found, use them |
| 5294 |
> |
# |
| 5295 |
> |
|
| 5296 |
> |
echo "$as_me:$LINENO: checking for inflateEnd in -lz" >&5 |
| 5297 |
> |
echo $ECHO_N "checking for inflateEnd in -lz... $ECHO_C" >&6 |
| 5298 |
> |
if test "${ac_cv_lib_z_inflateEnd+set}" = set; then |
| 5299 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5300 |
|
else |
| 5301 |
< |
cat >conftest.$ac_ext <<_ACEOF |
| 5301 |
> |
ac_check_lib_save_LIBS=$LIBS |
| 5302 |
> |
LIBS="-lz $LIBS" |
| 5303 |
> |
cat >conftest.$ac_ext <<_ACEOF |
| 5304 |
|
/* confdefs.h. */ |
| 5305 |
|
_ACEOF |
| 5306 |
|
cat confdefs.h >>conftest.$ac_ext |
| 5307 |
|
cat >>conftest.$ac_ext <<_ACEOF |
| 5308 |
|
/* end confdefs.h. */ |
| 4872 |
– |
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 4873 |
– |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 4874 |
– |
#define $ac_func innocuous_$ac_func |
| 5309 |
|
|
| 4876 |
– |
/* System header to define __stub macros and hopefully few prototypes, |
| 4877 |
– |
which can conflict with char $ac_func (); below. |
| 4878 |
– |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4879 |
– |
<limits.h> exists even on freestanding compilers. */ |
| 4880 |
– |
|
| 4881 |
– |
#ifdef __STDC__ |
| 4882 |
– |
# include <limits.h> |
| 4883 |
– |
#else |
| 4884 |
– |
# include <assert.h> |
| 4885 |
– |
#endif |
| 4886 |
– |
|
| 4887 |
– |
#undef $ac_func |
| 4888 |
– |
|
| 5310 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
| 5311 |
|
#ifdef __cplusplus |
| 5312 |
|
extern "C" |
| 4892 |
– |
{ |
| 5313 |
|
#endif |
| 5314 |
|
/* We use char because int might match the return type of a gcc2 |
| 5315 |
|
builtin and then its argument prototype would still apply. */ |
| 5316 |
< |
char $ac_func (); |
| 4897 |
< |
/* The GNU C library defines this for functions which it implements |
| 4898 |
< |
to always fail with ENOSYS. Some functions are actually named |
| 4899 |
< |
something starting with __ and the normal name is an alias. */ |
| 4900 |
< |
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 4901 |
< |
choke me |
| 4902 |
< |
#else |
| 4903 |
< |
char (*f) () = $ac_func; |
| 4904 |
< |
#endif |
| 4905 |
< |
#ifdef __cplusplus |
| 4906 |
< |
} |
| 4907 |
< |
#endif |
| 4908 |
< |
|
| 5316 |
> |
char inflateEnd (); |
| 5317 |
|
int |
| 5318 |
|
main () |
| 5319 |
|
{ |
| 5320 |
< |
return f != $ac_func; |
| 5320 |
> |
inflateEnd (); |
| 5321 |
|
; |
| 5322 |
|
return 0; |
| 5323 |
|
} |
| 5331 |
|
cat conftest.err >&5 |
| 5332 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5333 |
|
(exit $ac_status); } && |
| 5334 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
| 4927 |
< |
|| test ! -s conftest.err' |
| 5334 |
> |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5335 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5336 |
|
(eval $ac_try) 2>&5 |
| 5337 |
|
ac_status=$? |
| 5343 |
|
ac_status=$? |
| 5344 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5345 |
|
(exit $ac_status); }; }; then |
| 5346 |
< |
eval "$as_ac_var=yes" |
| 5346 |
> |
ac_cv_lib_z_inflateEnd=yes |
| 5347 |
|
else |
| 5348 |
|
echo "$as_me: failed program was:" >&5 |
| 5349 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
| 5350 |
|
|
| 5351 |
< |
eval "$as_ac_var=no" |
| 5351 |
> |
ac_cv_lib_z_inflateEnd=no |
| 5352 |
|
fi |
| 5353 |
|
rm -f conftest.err conftest.$ac_objext \ |
| 5354 |
|
conftest$ac_exeext conftest.$ac_ext |
| 5355 |
+ |
LIBS=$ac_check_lib_save_LIBS |
| 5356 |
|
fi |
| 5357 |
< |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 5358 |
< |
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 5359 |
< |
if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 5357 |
> |
echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateEnd" >&5 |
| 5358 |
> |
echo "${ECHO_T}$ac_cv_lib_z_inflateEnd" >&6 |
| 5359 |
> |
if test $ac_cv_lib_z_inflateEnd = yes; then |
| 5360 |
|
cat >>confdefs.h <<_ACEOF |
| 5361 |
< |
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 5361 |
> |
#define HAVE_LIBZ 1 |
| 5362 |
|
_ACEOF |
| 5363 |
|
|
| 5364 |
< |
else |
| 5365 |
< |
# FreeBSD has a gnugetopt library for this |
| 5366 |
< |
echo "$as_me:$LINENO: checking for getopt_long in -lgnugetopt" >&5 |
| 5367 |
< |
echo $ECHO_N "checking for getopt_long in -lgnugetopt... $ECHO_C" >&6 |
| 5368 |
< |
if test "${ac_cv_lib_gnugetopt_getopt_long+set}" = set; then |
| 5364 |
> |
LIBS="-lz $LIBS" |
| 5365 |
> |
|
| 5366 |
> |
fi |
| 5367 |
> |
|
| 5368 |
> |
echo "$as_me:$LINENO: checking zlib in ${ZLIB_HOME}" >&5 |
| 5369 |
> |
echo $ECHO_N "checking zlib in ${ZLIB_HOME}... $ECHO_C" >&6 |
| 5370 |
> |
echo "$as_me:$LINENO: result: ok" >&5 |
| 5371 |
> |
echo "${ECHO_T}ok" >&6 |
| 5372 |
> |
else |
| 5373 |
> |
# |
| 5374 |
> |
# If either header or library was not found, revert and bomb |
| 5375 |
> |
# |
| 5376 |
> |
echo "$as_me:$LINENO: checking zlib in ${ZLIB_HOME}" >&5 |
| 5377 |
> |
echo $ECHO_N "checking zlib in ${ZLIB_HOME}... $ECHO_C" >&6 |
| 5378 |
> |
LDFLAGS="$ZLIB_OLD_LDFLAGS" |
| 5379 |
> |
CPPFLAGS="$ZLIB_OLD_CPPFLAGS" |
| 5380 |
> |
echo "$as_me:$LINENO: result: failed" >&5 |
| 5381 |
> |
echo "${ECHO_T}failed" >&6 |
| 5382 |
> |
{ { echo "$as_me:$LINENO: error: either specify a valid zlib installation with --with-zlib=DIR or disable zlib usage with --without-zlib" >&5 |
| 5383 |
> |
echo "$as_me: error: either specify a valid zlib installation with --with-zlib=DIR or disable zlib usage with --without-zlib" >&2;} |
| 5384 |
> |
{ (exit 1); exit 1; }; } |
| 5385 |
> |
fi |
| 5386 |
> |
fi |
| 5387 |
> |
|
| 5388 |
> |
|
| 5389 |
> |
|
| 5390 |
> |
|
| 5391 |
> |
|
| 5392 |
> |
|
| 5393 |
> |
|
| 5394 |
> |
|
| 5395 |
> |
for ac_header in sys/time.h unistd.h stdlib.h stdio.h conio.h string.h |
| 5396 |
> |
do |
| 5397 |
> |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5398 |
> |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 5399 |
> |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5400 |
> |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 5401 |
> |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 5402 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5403 |
+ |
fi |
| 5404 |
+ |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 5405 |
+ |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 5406 |
|
else |
| 5407 |
< |
ac_check_lib_save_LIBS=$LIBS |
| 5408 |
< |
LIBS="-lgnugetopt $LIBS" |
| 5407 |
> |
# Is the header compilable? |
| 5408 |
> |
echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 5409 |
> |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 5410 |
|
cat >conftest.$ac_ext <<_ACEOF |
| 5411 |
|
/* confdefs.h. */ |
| 5412 |
|
_ACEOF |
| 5413 |
|
cat confdefs.h >>conftest.$ac_ext |
| 5414 |
|
cat >>conftest.$ac_ext <<_ACEOF |
| 5415 |
|
/* end confdefs.h. */ |
| 5416 |
< |
|
| 5417 |
< |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 4973 |
< |
#ifdef __cplusplus |
| 4974 |
< |
extern "C" |
| 4975 |
< |
#endif |
| 4976 |
< |
/* We use char because int might match the return type of a gcc2 |
| 4977 |
< |
builtin and then its argument prototype would still apply. */ |
| 4978 |
< |
char getopt_long (); |
| 4979 |
< |
int |
| 4980 |
< |
main () |
| 4981 |
< |
{ |
| 4982 |
< |
getopt_long (); |
| 4983 |
< |
; |
| 4984 |
< |
return 0; |
| 4985 |
< |
} |
| 5416 |
> |
$ac_includes_default |
| 5417 |
> |
#include <$ac_header> |
| 5418 |
|
_ACEOF |
| 5419 |
< |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 5420 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5421 |
< |
(eval $ac_link) 2>conftest.er1 |
| 5419 |
> |
rm -f conftest.$ac_objext |
| 5420 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5421 |
> |
(eval $ac_compile) 2>conftest.er1 |
| 5422 |
|
ac_status=$? |
| 5423 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
| 5424 |
|
rm -f conftest.er1 |
| 5425 |
|
cat conftest.err >&5 |
| 5426 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5427 |
|
(exit $ac_status); } && |
| 5428 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
| 4997 |
< |
|| test ! -s conftest.err' |
| 5428 |
> |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5429 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5430 |
|
(eval $ac_try) 2>&5 |
| 5431 |
|
ac_status=$? |
| 5432 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5433 |
|
(exit $ac_status); }; } && |
| 5434 |
< |
{ ac_try='test -s conftest$ac_exeext' |
| 5434 |
> |
{ ac_try='test -s conftest.$ac_objext' |
| 5435 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5436 |
|
(eval $ac_try) 2>&5 |
| 5437 |
|
ac_status=$? |
| 5438 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5439 |
|
(exit $ac_status); }; }; then |
| 5440 |
< |
ac_cv_lib_gnugetopt_getopt_long=yes |
| 5440 |
> |
ac_header_compiler=yes |
| 5441 |
|
else |
| 5442 |
|
echo "$as_me: failed program was:" >&5 |
| 5443 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
| 5444 |
|
|
| 5445 |
< |
ac_cv_lib_gnugetopt_getopt_long=no |
| 5445 |
> |
ac_header_compiler=no |
| 5446 |
|
fi |
| 5447 |
< |
rm -f conftest.err conftest.$ac_objext \ |
| 5448 |
< |
conftest$ac_exeext conftest.$ac_ext |
| 5449 |
< |
LIBS=$ac_check_lib_save_LIBS |
| 5019 |
< |
fi |
| 5020 |
< |
echo "$as_me:$LINENO: result: $ac_cv_lib_gnugetopt_getopt_long" >&5 |
| 5021 |
< |
echo "${ECHO_T}$ac_cv_lib_gnugetopt_getopt_long" >&6 |
| 5022 |
< |
if test $ac_cv_lib_gnugetopt_getopt_long = yes; then |
| 5023 |
< |
cat >>confdefs.h <<\_ACEOF |
| 5024 |
< |
#define HAVE_GETOPT_LONG 1 |
| 5025 |
< |
_ACEOF |
| 5447 |
> |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5448 |
> |
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5449 |
> |
echo "${ECHO_T}$ac_header_compiler" >&6 |
| 5450 |
|
|
| 5451 |
+ |
# Is the header present? |
| 5452 |
+ |
echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 5453 |
+ |
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 5454 |
+ |
cat >conftest.$ac_ext <<_ACEOF |
| 5455 |
+ |
/* confdefs.h. */ |
| 5456 |
+ |
_ACEOF |
| 5457 |
+ |
cat confdefs.h >>conftest.$ac_ext |
| 5458 |
+ |
cat >>conftest.$ac_ext <<_ACEOF |
| 5459 |
+ |
/* end confdefs.h. */ |
| 5460 |
+ |
#include <$ac_header> |
| 5461 |
+ |
_ACEOF |
| 5462 |
+ |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5463 |
+ |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5464 |
+ |
ac_status=$? |
| 5465 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
| 5466 |
+ |
rm -f conftest.er1 |
| 5467 |
+ |
cat conftest.err >&5 |
| 5468 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5469 |
+ |
(exit $ac_status); } >/dev/null; then |
| 5470 |
+ |
if test -s conftest.err; then |
| 5471 |
+ |
ac_cpp_err=$ac_c_preproc_warn_flag |
| 5472 |
+ |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5473 |
+ |
else |
| 5474 |
+ |
ac_cpp_err= |
| 5475 |
+ |
fi |
| 5476 |
|
else |
| 5477 |
< |
# use the GNU replacement |
| 5478 |
< |
case $LIBOBJS in |
| 5479 |
< |
"getopt.$ac_objext" | \ |
| 5480 |
< |
*" getopt.$ac_objext" | \ |
| 5481 |
< |
"getopt.$ac_objext "* | \ |
| 5482 |
< |
*" getopt.$ac_objext "* ) ;; |
| 5483 |
< |
*) LIBOBJS="$LIBOBJS getopt.$ac_objext" ;; |
| 5035 |
< |
esac |
| 5477 |
> |
ac_cpp_err=yes |
| 5478 |
> |
fi |
| 5479 |
> |
if test -z "$ac_cpp_err"; then |
| 5480 |
> |
ac_header_preproc=yes |
| 5481 |
> |
else |
| 5482 |
> |
echo "$as_me: failed program was:" >&5 |
| 5483 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 5484 |
|
|
| 5485 |
< |
case $LIBOBJS in |
| 5486 |
< |
"getopt1.$ac_objext" | \ |
| 5487 |
< |
*" getopt1.$ac_objext" | \ |
| 5488 |
< |
"getopt1.$ac_objext "* | \ |
| 5489 |
< |
*" getopt1.$ac_objext "* ) ;; |
| 5490 |
< |
*) LIBOBJS="$LIBOBJS getopt1.$ac_objext" ;; |
| 5485 |
> |
ac_header_preproc=no |
| 5486 |
> |
fi |
| 5487 |
> |
rm -f conftest.err conftest.$ac_ext |
| 5488 |
> |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5489 |
> |
echo "${ECHO_T}$ac_header_preproc" >&6 |
| 5490 |
> |
|
| 5491 |
> |
# So? What about this header? |
| 5492 |
> |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5493 |
> |
yes:no: ) |
| 5494 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5495 |
> |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5496 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 5497 |
> |
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 5498 |
> |
ac_header_preproc=yes |
| 5499 |
> |
;; |
| 5500 |
> |
no:yes:* ) |
| 5501 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 5502 |
> |
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 5503 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 5504 |
> |
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 5505 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 5506 |
> |
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 5507 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 5508 |
> |
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5509 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 5510 |
> |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 5511 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 5512 |
> |
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 5513 |
> |
( |
| 5514 |
> |
cat <<\_ASBOX |
| 5515 |
> |
## ------------------------------ ## |
| 5516 |
> |
## Report this to gezelter@nd.edu ## |
| 5517 |
> |
## ------------------------------ ## |
| 5518 |
> |
_ASBOX |
| 5519 |
> |
) | |
| 5520 |
> |
sed "s/^/$as_me: WARNING: /" >&2 |
| 5521 |
> |
;; |
| 5522 |
|
esac |
| 5523 |
+ |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5524 |
+ |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 5525 |
+ |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 5526 |
+ |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5527 |
+ |
else |
| 5528 |
+ |
eval "$as_ac_Header=\$ac_header_preproc" |
| 5529 |
+ |
fi |
| 5530 |
+ |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 5531 |
+ |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 5532 |
|
|
| 5045 |
– |
ac_config_links="$ac_config_links utils/getopt.h:utils/gnugetopt.h" |
| 5046 |
– |
|
| 5533 |
|
fi |
| 5534 |
+ |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 5535 |
+ |
cat >>confdefs.h <<_ACEOF |
| 5536 |
+ |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5537 |
+ |
_ACEOF |
| 5538 |
|
|
| 5539 |
|
fi |
| 5540 |
+ |
|
| 5541 |
|
done |
| 5542 |
|
|
| 5543 |
|
|
| 5544 |
|
|
| 5054 |
– |
case $debug in |
| 5055 |
– |
1) |
| 5056 |
– |
;; |
| 5057 |
– |
*) |
| 5545 |
|
|
| 5546 |
|
|
| 5547 |
|
|
| 5548 |
< |
|
| 5549 |
< |
|
| 5550 |
< |
|
| 5551 |
< |
echo "$as_me:$LINENO: checking whether we are *really* using GNU cc" >&5 |
| 5552 |
< |
echo $ECHO_N "checking whether we are *really* using GNU cc... $ECHO_C" >&6 |
| 5553 |
< |
if test "${ac_cv_prog_really_gcc+set}" = set; then |
| 5548 |
> |
for ac_header in strstream.h iostream.h fstream.h math.h time.h |
| 5549 |
> |
do |
| 5550 |
> |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5551 |
> |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 5552 |
> |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5553 |
> |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 5554 |
> |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 5555 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5556 |
+ |
fi |
| 5557 |
+ |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 5558 |
+ |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 5559 |
|
else |
| 5560 |
< |
|
| 5561 |
< |
cat > conftest.c <<EOF |
| 5562 |
< |
#ifdef __GNUC__ |
| 5563 |
< |
#ifndef __INTEL_COMPILER |
| 5564 |
< |
yes; |
| 5565 |
< |
#endif |
| 5566 |
< |
#endif |
| 5567 |
< |
EOF |
| 5568 |
< |
if { ac_try='${CC-cc} -E conftest.c' |
| 5560 |
> |
# Is the header compilable? |
| 5561 |
> |
echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 5562 |
> |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 5563 |
> |
cat >conftest.$ac_ext <<_ACEOF |
| 5564 |
> |
/* confdefs.h. */ |
| 5565 |
> |
_ACEOF |
| 5566 |
> |
cat confdefs.h >>conftest.$ac_ext |
| 5567 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
| 5568 |
> |
/* end confdefs.h. */ |
| 5569 |
> |
$ac_includes_default |
| 5570 |
> |
#include <$ac_header> |
| 5571 |
> |
_ACEOF |
| 5572 |
> |
rm -f conftest.$ac_objext |
| 5573 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5574 |
> |
(eval $ac_compile) 2>conftest.er1 |
| 5575 |
> |
ac_status=$? |
| 5576 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
| 5577 |
> |
rm -f conftest.er1 |
| 5578 |
> |
cat conftest.err >&5 |
| 5579 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5580 |
> |
(exit $ac_status); } && |
| 5581 |
> |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5582 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5583 |
|
(eval $ac_try) 2>&5 |
| 5584 |
|
ac_status=$? |
| 5585 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5586 |
< |
(exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then |
| 5587 |
< |
ac_cv_prog_really_gcc=yes |
| 5586 |
> |
(exit $ac_status); }; } && |
| 5587 |
> |
{ ac_try='test -s conftest.$ac_objext' |
| 5588 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5589 |
> |
(eval $ac_try) 2>&5 |
| 5590 |
> |
ac_status=$? |
| 5591 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5592 |
> |
(exit $ac_status); }; }; then |
| 5593 |
> |
ac_header_compiler=yes |
| 5594 |
|
else |
| 5595 |
< |
ac_cv_prog_really_gcc=no |
| 5596 |
< |
fi |
| 5595 |
> |
echo "$as_me: failed program was:" >&5 |
| 5596 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 5597 |
|
|
| 5598 |
+ |
ac_header_compiler=no |
| 5599 |
|
fi |
| 5600 |
< |
echo "$as_me:$LINENO: result: $ac_cv_prog_really_gcc" >&5 |
| 5601 |
< |
echo "${ECHO_T}$ac_cv_prog_really_gcc" >&6 |
| 5602 |
< |
if test "$ac_cv_prog_really_gcc" = yes; then |
| 5092 |
< |
: |
| 5600 |
> |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5601 |
> |
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5602 |
> |
echo "${ECHO_T}$ac_header_compiler" >&6 |
| 5603 |
|
|
| 5604 |
+ |
# Is the header present? |
| 5605 |
+ |
echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 5606 |
+ |
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 5607 |
+ |
cat >conftest.$ac_ext <<_ACEOF |
| 5608 |
+ |
/* confdefs.h. */ |
| 5609 |
+ |
_ACEOF |
| 5610 |
+ |
cat confdefs.h >>conftest.$ac_ext |
| 5611 |
+ |
cat >>conftest.$ac_ext <<_ACEOF |
| 5612 |
+ |
/* end confdefs.h. */ |
| 5613 |
+ |
#include <$ac_header> |
| 5614 |
+ |
_ACEOF |
| 5615 |
+ |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5616 |
+ |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5617 |
+ |
ac_status=$? |
| 5618 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
| 5619 |
+ |
rm -f conftest.er1 |
| 5620 |
+ |
cat conftest.err >&5 |
| 5621 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5622 |
+ |
(exit $ac_status); } >/dev/null; then |
| 5623 |
+ |
if test -s conftest.err; then |
| 5624 |
+ |
ac_cpp_err=$ac_c_preproc_warn_flag |
| 5625 |
+ |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5626 |
+ |
else |
| 5627 |
+ |
ac_cpp_err= |
| 5628 |
+ |
fi |
| 5629 |
|
else |
| 5630 |
< |
: |
| 5630 |
> |
ac_cpp_err=yes |
| 5631 |
> |
fi |
| 5632 |
> |
if test -z "$ac_cpp_err"; then |
| 5633 |
> |
ac_header_preproc=yes |
| 5634 |
> |
else |
| 5635 |
> |
echo "$as_me: failed program was:" >&5 |
| 5636 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 5637 |
|
|
| 5638 |
+ |
ac_header_preproc=no |
| 5639 |
|
fi |
| 5640 |
+ |
rm -f conftest.err conftest.$ac_ext |
| 5641 |
+ |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5642 |
+ |
echo "${ECHO_T}$ac_header_preproc" >&6 |
| 5643 |
|
|
| 5644 |
< |
|
| 5645 |
< |
# Try to determine "good" native compiler flags if none specified on command |
| 5646 |
< |
# line |
| 5647 |
< |
if test "$ac_test_CFLAGS" != "set"; then |
| 5648 |
< |
CFLAGS="" |
| 5649 |
< |
case "${host_cpu}-${host_os}" in |
| 5650 |
< |
|
| 5651 |
< |
*linux*) if test "$CC" = icc; then |
| 5652 |
< |
CFLAGS="-O" |
| 5653 |
< |
fi;; |
| 5654 |
< |
sparc-solaris2*) if test "$CC" = cc; then |
| 5655 |
< |
CFLAGS="-native -fast -xO5 -dalign" |
| 5656 |
< |
fi;; |
| 5657 |
< |
|
| 5658 |
< |
alpha*-osf*) if test "$CC" = cc; then |
| 5659 |
< |
CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host -arch host -std1" |
| 5660 |
< |
fi;; |
| 5661 |
< |
|
| 5662 |
< |
hppa*-hpux*) if test "$CC" = cc; then |
| 5663 |
< |
CFLAGS="-Ae +O3 +Oall" |
| 5664 |
< |
fi;; |
| 5665 |
< |
|
| 5666 |
< |
rs6000*-aix*) if test "$CC" = cc -o "$CC" = xlc; then |
| 5667 |
< |
CFLAGS="-O3 -qtune=auto -qansialias -w" |
| 5668 |
< |
fi;; |
| 5669 |
< |
powerpc*-aix*) |
| 5670 |
< |
if test "$CC" = cc -o "$CC" = xlc; then |
| 5671 |
< |
CFLAGS="-O3 -qtune=auto -qansialias -w" |
| 5672 |
< |
echo "*******************************************************" |
| 5673 |
< |
echo "* You have AIX on an unknown powerpc system. It is *" |
| 5674 |
< |
echo "* recommended that you use *" |
| 5675 |
< |
echo "* *" |
| 5644 |
> |
# So? What about this header? |
| 5645 |
> |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5646 |
> |
yes:no: ) |
| 5647 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5648 |
> |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5649 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 5650 |
> |
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 5651 |
> |
ac_header_preproc=yes |
| 5652 |
> |
;; |
| 5653 |
> |
no:yes:* ) |
| 5654 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 5655 |
> |
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 5656 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 5657 |
> |
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 5658 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 5659 |
> |
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 5660 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 5661 |
> |
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5662 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 5663 |
> |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 5664 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 5665 |
> |
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 5666 |
> |
( |
| 5667 |
> |
cat <<\_ASBOX |
| 5668 |
> |
## ------------------------------ ## |
| 5669 |
> |
## Report this to gezelter@nd.edu ## |
| 5670 |
> |
## ------------------------------ ## |
| 5671 |
> |
_ASBOX |
| 5672 |
> |
) | |
| 5673 |
> |
sed "s/^/$as_me: WARNING: /" >&2 |
| 5674 |
> |
;; |
| 5675 |
> |
esac |
| 5676 |
> |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5677 |
> |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 5678 |
> |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 5679 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5680 |
> |
else |
| 5681 |
> |
eval "$as_ac_Header=\$ac_header_preproc" |
| 5682 |
> |
fi |
| 5683 |
> |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 5684 |
> |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 5685 |
> |
|
| 5686 |
> |
fi |
| 5687 |
> |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 5688 |
> |
cat >>confdefs.h <<_ACEOF |
| 5689 |
> |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5690 |
> |
_ACEOF |
| 5691 |
> |
|
| 5692 |
> |
fi |
| 5693 |
> |
|
| 5694 |
> |
done |
| 5695 |
> |
|
| 5696 |
> |
ac_ext=cc |
| 5697 |
> |
ac_cpp='$CXXCPP $CPPFLAGS' |
| 5698 |
> |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5699 |
> |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5700 |
> |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 5701 |
> |
|
| 5702 |
> |
ac_ext=cc |
| 5703 |
> |
ac_cpp='$CXXCPP $CPPFLAGS' |
| 5704 |
> |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5705 |
> |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5706 |
> |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 5707 |
> |
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
| 5708 |
> |
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 |
| 5709 |
> |
if test -z "$CXXCPP"; then |
| 5710 |
> |
if test "${ac_cv_prog_CXXCPP+set}" = set; then |
| 5711 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5712 |
> |
else |
| 5713 |
> |
# Double quotes because CXXCPP needs to be expanded |
| 5714 |
> |
for CXXCPP in "$CXX -E" "/lib/cpp" |
| 5715 |
> |
do |
| 5716 |
> |
ac_preproc_ok=false |
| 5717 |
> |
for ac_cxx_preproc_warn_flag in '' yes |
| 5718 |
> |
do |
| 5719 |
> |
# Use a header file that comes with gcc, so configuring glibc |
| 5720 |
> |
# with a fresh cross-compiler works. |
| 5721 |
> |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5722 |
> |
# <limits.h> exists even on freestanding compilers. |
| 5723 |
> |
# On the NeXT, cc -E runs the code through the compiler's parser, |
| 5724 |
> |
# not just through cpp. "Syntax error" is here to catch this case. |
| 5725 |
> |
cat >conftest.$ac_ext <<_ACEOF |
| 5726 |
> |
/* confdefs.h. */ |
| 5727 |
> |
_ACEOF |
| 5728 |
> |
cat confdefs.h >>conftest.$ac_ext |
| 5729 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
| 5730 |
> |
/* end confdefs.h. */ |
| 5731 |
> |
#ifdef __STDC__ |
| 5732 |
> |
# include <limits.h> |
| 5733 |
> |
#else |
| 5734 |
> |
# include <assert.h> |
| 5735 |
> |
#endif |
| 5736 |
> |
Syntax error |
| 5737 |
> |
_ACEOF |
| 5738 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5739 |
> |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5740 |
> |
ac_status=$? |
| 5741 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
| 5742 |
> |
rm -f conftest.er1 |
| 5743 |
> |
cat conftest.err >&5 |
| 5744 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5745 |
> |
(exit $ac_status); } >/dev/null; then |
| 5746 |
> |
if test -s conftest.err; then |
| 5747 |
> |
ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 5748 |
> |
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 5749 |
> |
else |
| 5750 |
> |
ac_cpp_err= |
| 5751 |
> |
fi |
| 5752 |
> |
else |
| 5753 |
> |
ac_cpp_err=yes |
| 5754 |
> |
fi |
| 5755 |
> |
if test -z "$ac_cpp_err"; then |
| 5756 |
> |
: |
| 5757 |
> |
else |
| 5758 |
> |
echo "$as_me: failed program was:" >&5 |
| 5759 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 5760 |
> |
|
| 5761 |
> |
# Broken: fails on valid input. |
| 5762 |
> |
continue |
| 5763 |
> |
fi |
| 5764 |
> |
rm -f conftest.err conftest.$ac_ext |
| 5765 |
> |
|
| 5766 |
> |
# OK, works on sane cases. Now check whether non-existent headers |
| 5767 |
> |
# can be detected and how. |
| 5768 |
> |
cat >conftest.$ac_ext <<_ACEOF |
| 5769 |
> |
/* confdefs.h. */ |
| 5770 |
> |
_ACEOF |
| 5771 |
> |
cat confdefs.h >>conftest.$ac_ext |
| 5772 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
| 5773 |
> |
/* end confdefs.h. */ |
| 5774 |
> |
#include <ac_nonexistent.h> |
| 5775 |
> |
_ACEOF |
| 5776 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5777 |
> |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5778 |
> |
ac_status=$? |
| 5779 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
| 5780 |
> |
rm -f conftest.er1 |
| 5781 |
> |
cat conftest.err >&5 |
| 5782 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5783 |
> |
(exit $ac_status); } >/dev/null; then |
| 5784 |
> |
if test -s conftest.err; then |
| 5785 |
> |
ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 5786 |
> |
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 5787 |
> |
else |
| 5788 |
> |
ac_cpp_err= |
| 5789 |
> |
fi |
| 5790 |
> |
else |
| 5791 |
> |
ac_cpp_err=yes |
| 5792 |
> |
fi |
| 5793 |
> |
if test -z "$ac_cpp_err"; then |
| 5794 |
> |
# Broken: success on invalid input. |
| 5795 |
> |
continue |
| 5796 |
> |
else |
| 5797 |
> |
echo "$as_me: failed program was:" >&5 |
| 5798 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 5799 |
> |
|
| 5800 |
> |
# Passes both tests. |
| 5801 |
> |
ac_preproc_ok=: |
| 5802 |
> |
break |
| 5803 |
> |
fi |
| 5804 |
> |
rm -f conftest.err conftest.$ac_ext |
| 5805 |
> |
|
| 5806 |
> |
done |
| 5807 |
> |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5808 |
> |
rm -f conftest.err conftest.$ac_ext |
| 5809 |
> |
if $ac_preproc_ok; then |
| 5810 |
> |
break |
| 5811 |
> |
fi |
| 5812 |
> |
|
| 5813 |
> |
done |
| 5814 |
> |
ac_cv_prog_CXXCPP=$CXXCPP |
| 5815 |
> |
|
| 5816 |
> |
fi |
| 5817 |
> |
CXXCPP=$ac_cv_prog_CXXCPP |
| 5818 |
> |
else |
| 5819 |
> |
ac_cv_prog_CXXCPP=$CXXCPP |
| 5820 |
> |
fi |
| 5821 |
> |
echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
| 5822 |
> |
echo "${ECHO_T}$CXXCPP" >&6 |
| 5823 |
> |
ac_preproc_ok=false |
| 5824 |
> |
for ac_cxx_preproc_warn_flag in '' yes |
| 5825 |
> |
do |
| 5826 |
> |
# Use a header file that comes with gcc, so configuring glibc |
| 5827 |
> |
# with a fresh cross-compiler works. |
| 5828 |
> |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5829 |
> |
# <limits.h> exists even on freestanding compilers. |
| 5830 |
> |
# On the NeXT, cc -E runs the code through the compiler's parser, |
| 5831 |
> |
# not just through cpp. "Syntax error" is here to catch this case. |
| 5832 |
> |
cat >conftest.$ac_ext <<_ACEOF |
| 5833 |
> |
/* confdefs.h. */ |
| 5834 |
> |
_ACEOF |
| 5835 |
> |
cat confdefs.h >>conftest.$ac_ext |
| 5836 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
| 5837 |
> |
/* end confdefs.h. */ |
| 5838 |
> |
#ifdef __STDC__ |
| 5839 |
> |
# include <limits.h> |
| 5840 |
> |
#else |
| 5841 |
> |
# include <assert.h> |
| 5842 |
> |
#endif |
| 5843 |
> |
Syntax error |
| 5844 |
> |
_ACEOF |
| 5845 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5846 |
> |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5847 |
> |
ac_status=$? |
| 5848 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
| 5849 |
> |
rm -f conftest.er1 |
| 5850 |
> |
cat conftest.err >&5 |
| 5851 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5852 |
> |
(exit $ac_status); } >/dev/null; then |
| 5853 |
> |
if test -s conftest.err; then |
| 5854 |
> |
ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 5855 |
> |
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 5856 |
> |
else |
| 5857 |
> |
ac_cpp_err= |
| 5858 |
> |
fi |
| 5859 |
> |
else |
| 5860 |
> |
ac_cpp_err=yes |
| 5861 |
> |
fi |
| 5862 |
> |
if test -z "$ac_cpp_err"; then |
| 5863 |
> |
: |
| 5864 |
> |
else |
| 5865 |
> |
echo "$as_me: failed program was:" >&5 |
| 5866 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 5867 |
> |
|
| 5868 |
> |
# Broken: fails on valid input. |
| 5869 |
> |
continue |
| 5870 |
> |
fi |
| 5871 |
> |
rm -f conftest.err conftest.$ac_ext |
| 5872 |
> |
|
| 5873 |
> |
# OK, works on sane cases. Now check whether non-existent headers |
| 5874 |
> |
# can be detected and how. |
| 5875 |
> |
cat >conftest.$ac_ext <<_ACEOF |
| 5876 |
> |
/* confdefs.h. */ |
| 5877 |
> |
_ACEOF |
| 5878 |
> |
cat confdefs.h >>conftest.$ac_ext |
| 5879 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
| 5880 |
> |
/* end confdefs.h. */ |
| 5881 |
> |
#include <ac_nonexistent.h> |
| 5882 |
> |
_ACEOF |
| 5883 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5884 |
> |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5885 |
> |
ac_status=$? |
| 5886 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
| 5887 |
> |
rm -f conftest.er1 |
| 5888 |
> |
cat conftest.err >&5 |
| 5889 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5890 |
> |
(exit $ac_status); } >/dev/null; then |
| 5891 |
> |
if test -s conftest.err; then |
| 5892 |
> |
ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 5893 |
> |
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 5894 |
> |
else |
| 5895 |
> |
ac_cpp_err= |
| 5896 |
> |
fi |
| 5897 |
> |
else |
| 5898 |
> |
ac_cpp_err=yes |
| 5899 |
> |
fi |
| 5900 |
> |
if test -z "$ac_cpp_err"; then |
| 5901 |
> |
# Broken: success on invalid input. |
| 5902 |
> |
continue |
| 5903 |
> |
else |
| 5904 |
> |
echo "$as_me: failed program was:" >&5 |
| 5905 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 5906 |
> |
|
| 5907 |
> |
# Passes both tests. |
| 5908 |
> |
ac_preproc_ok=: |
| 5909 |
> |
break |
| 5910 |
> |
fi |
| 5911 |
> |
rm -f conftest.err conftest.$ac_ext |
| 5912 |
> |
|
| 5913 |
> |
done |
| 5914 |
> |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5915 |
> |
rm -f conftest.err conftest.$ac_ext |
| 5916 |
> |
if $ac_preproc_ok; then |
| 5917 |
> |
: |
| 5918 |
> |
else |
| 5919 |
> |
{ { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 5920 |
> |
See \`config.log' for more details." >&5 |
| 5921 |
> |
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 5922 |
> |
See \`config.log' for more details." >&2;} |
| 5923 |
> |
{ (exit 1); exit 1; }; } |
| 5924 |
> |
fi |
| 5925 |
> |
|
| 5926 |
> |
ac_ext=cc |
| 5927 |
> |
ac_cpp='$CXXCPP $CPPFLAGS' |
| 5928 |
> |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5929 |
> |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5930 |
> |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 5931 |
> |
|
| 5932 |
> |
|
| 5933 |
> |
|
| 5934 |
> |
|
| 5935 |
> |
|
| 5936 |
> |
|
| 5937 |
> |
|
| 5938 |
> |
for ac_header in ctype.h iostream fstream sstream strstream |
| 5939 |
> |
do |
| 5940 |
> |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5941 |
> |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 5942 |
> |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5943 |
> |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 5944 |
> |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 5945 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5946 |
> |
fi |
| 5947 |
> |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 5948 |
> |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 5949 |
> |
else |
| 5950 |
> |
# Is the header compilable? |
| 5951 |
> |
echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 5952 |
> |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 5953 |
> |
cat >conftest.$ac_ext <<_ACEOF |
| 5954 |
> |
/* confdefs.h. */ |
| 5955 |
> |
_ACEOF |
| 5956 |
> |
cat confdefs.h >>conftest.$ac_ext |
| 5957 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
| 5958 |
> |
/* end confdefs.h. */ |
| 5959 |
> |
$ac_includes_default |
| 5960 |
> |
#include <$ac_header> |
| 5961 |
> |
_ACEOF |
| 5962 |
> |
rm -f conftest.$ac_objext |
| 5963 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5964 |
> |
(eval $ac_compile) 2>conftest.er1 |
| 5965 |
> |
ac_status=$? |
| 5966 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
| 5967 |
> |
rm -f conftest.er1 |
| 5968 |
> |
cat conftest.err >&5 |
| 5969 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5970 |
> |
(exit $ac_status); } && |
| 5971 |
> |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 5972 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5973 |
> |
(eval $ac_try) 2>&5 |
| 5974 |
> |
ac_status=$? |
| 5975 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5976 |
> |
(exit $ac_status); }; } && |
| 5977 |
> |
{ ac_try='test -s conftest.$ac_objext' |
| 5978 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5979 |
> |
(eval $ac_try) 2>&5 |
| 5980 |
> |
ac_status=$? |
| 5981 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5982 |
> |
(exit $ac_status); }; }; then |
| 5983 |
> |
ac_header_compiler=yes |
| 5984 |
> |
else |
| 5985 |
> |
echo "$as_me: failed program was:" >&5 |
| 5986 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 5987 |
> |
|
| 5988 |
> |
ac_header_compiler=no |
| 5989 |
> |
fi |
| 5990 |
> |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5991 |
> |
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5992 |
> |
echo "${ECHO_T}$ac_header_compiler" >&6 |
| 5993 |
> |
|
| 5994 |
> |
# Is the header present? |
| 5995 |
> |
echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 5996 |
> |
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 5997 |
> |
cat >conftest.$ac_ext <<_ACEOF |
| 5998 |
> |
/* confdefs.h. */ |
| 5999 |
> |
_ACEOF |
| 6000 |
> |
cat confdefs.h >>conftest.$ac_ext |
| 6001 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
| 6002 |
> |
/* end confdefs.h. */ |
| 6003 |
> |
#include <$ac_header> |
| 6004 |
> |
_ACEOF |
| 6005 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6006 |
> |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 6007 |
> |
ac_status=$? |
| 6008 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
| 6009 |
> |
rm -f conftest.er1 |
| 6010 |
> |
cat conftest.err >&5 |
| 6011 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6012 |
> |
(exit $ac_status); } >/dev/null; then |
| 6013 |
> |
if test -s conftest.err; then |
| 6014 |
> |
ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 6015 |
> |
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 6016 |
> |
else |
| 6017 |
> |
ac_cpp_err= |
| 6018 |
> |
fi |
| 6019 |
> |
else |
| 6020 |
> |
ac_cpp_err=yes |
| 6021 |
> |
fi |
| 6022 |
> |
if test -z "$ac_cpp_err"; then |
| 6023 |
> |
ac_header_preproc=yes |
| 6024 |
> |
else |
| 6025 |
> |
echo "$as_me: failed program was:" >&5 |
| 6026 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 6027 |
> |
|
| 6028 |
> |
ac_header_preproc=no |
| 6029 |
> |
fi |
| 6030 |
> |
rm -f conftest.err conftest.$ac_ext |
| 6031 |
> |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6032 |
> |
echo "${ECHO_T}$ac_header_preproc" >&6 |
| 6033 |
> |
|
| 6034 |
> |
# So? What about this header? |
| 6035 |
> |
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
| 6036 |
> |
yes:no: ) |
| 6037 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6038 |
> |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6039 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 6040 |
> |
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 6041 |
> |
ac_header_preproc=yes |
| 6042 |
> |
;; |
| 6043 |
> |
no:yes:* ) |
| 6044 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 6045 |
> |
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 6046 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 6047 |
> |
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 6048 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 6049 |
> |
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 6050 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 6051 |
> |
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6052 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 6053 |
> |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 6054 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 6055 |
> |
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 6056 |
> |
( |
| 6057 |
> |
cat <<\_ASBOX |
| 6058 |
> |
## ------------------------------ ## |
| 6059 |
> |
## Report this to gezelter@nd.edu ## |
| 6060 |
> |
## ------------------------------ ## |
| 6061 |
> |
_ASBOX |
| 6062 |
> |
) | |
| 6063 |
> |
sed "s/^/$as_me: WARNING: /" >&2 |
| 6064 |
> |
;; |
| 6065 |
> |
esac |
| 6066 |
> |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6067 |
> |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6068 |
> |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6069 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6070 |
> |
else |
| 6071 |
> |
eval "$as_ac_Header=\$ac_header_preproc" |
| 6072 |
> |
fi |
| 6073 |
> |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 6074 |
> |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 6075 |
> |
|
| 6076 |
> |
fi |
| 6077 |
> |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 6078 |
> |
cat >>confdefs.h <<_ACEOF |
| 6079 |
> |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 6080 |
> |
_ACEOF |
| 6081 |
> |
|
| 6082 |
> |
fi |
| 6083 |
> |
|
| 6084 |
> |
done |
| 6085 |
> |
|
| 6086 |
> |
ac_ext=c |
| 6087 |
> |
ac_cpp='$CPP $CPPFLAGS' |
| 6088 |
> |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6089 |
> |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6090 |
> |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6091 |
> |
|
| 6092 |
> |
|
| 6093 |
> |
|
| 6094 |
> |
|
| 6095 |
> |
for ac_header in sys/pstat.h sys/sysmp.h sys/sysinfo.h |
| 6096 |
> |
do |
| 6097 |
> |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6098 |
> |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6099 |
> |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6100 |
> |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6101 |
> |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6102 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6103 |
> |
fi |
| 6104 |
> |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 6105 |
> |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 6106 |
> |
else |
| 6107 |
> |
# Is the header compilable? |
| 6108 |
> |
echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 6109 |
> |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 6110 |
> |
cat >conftest.$ac_ext <<_ACEOF |
| 6111 |
> |
/* confdefs.h. */ |
| 6112 |
> |
_ACEOF |
| 6113 |
> |
cat confdefs.h >>conftest.$ac_ext |
| 6114 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
| 6115 |
> |
/* end confdefs.h. */ |
| 6116 |
> |
$ac_includes_default |
| 6117 |
> |
#include <$ac_header> |
| 6118 |
> |
_ACEOF |
| 6119 |
> |
rm -f conftest.$ac_objext |
| 6120 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6121 |
> |
(eval $ac_compile) 2>conftest.er1 |
| 6122 |
> |
ac_status=$? |
| 6123 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
| 6124 |
> |
rm -f conftest.er1 |
| 6125 |
> |
cat conftest.err >&5 |
| 6126 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6127 |
> |
(exit $ac_status); } && |
| 6128 |
> |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6129 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6130 |
> |
(eval $ac_try) 2>&5 |
| 6131 |
> |
ac_status=$? |
| 6132 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6133 |
> |
(exit $ac_status); }; } && |
| 6134 |
> |
{ ac_try='test -s conftest.$ac_objext' |
| 6135 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6136 |
> |
(eval $ac_try) 2>&5 |
| 6137 |
> |
ac_status=$? |
| 6138 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6139 |
> |
(exit $ac_status); }; }; then |
| 6140 |
> |
ac_header_compiler=yes |
| 6141 |
> |
else |
| 6142 |
> |
echo "$as_me: failed program was:" >&5 |
| 6143 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 6144 |
> |
|
| 6145 |
> |
ac_header_compiler=no |
| 6146 |
> |
fi |
| 6147 |
> |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6148 |
> |
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6149 |
> |
echo "${ECHO_T}$ac_header_compiler" >&6 |
| 6150 |
> |
|
| 6151 |
> |
# Is the header present? |
| 6152 |
> |
echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 6153 |
> |
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 6154 |
> |
cat >conftest.$ac_ext <<_ACEOF |
| 6155 |
> |
/* confdefs.h. */ |
| 6156 |
> |
_ACEOF |
| 6157 |
> |
cat confdefs.h >>conftest.$ac_ext |
| 6158 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
| 6159 |
> |
/* end confdefs.h. */ |
| 6160 |
> |
#include <$ac_header> |
| 6161 |
> |
_ACEOF |
| 6162 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6163 |
> |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 6164 |
> |
ac_status=$? |
| 6165 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
| 6166 |
> |
rm -f conftest.er1 |
| 6167 |
> |
cat conftest.err >&5 |
| 6168 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6169 |
> |
(exit $ac_status); } >/dev/null; then |
| 6170 |
> |
if test -s conftest.err; then |
| 6171 |
> |
ac_cpp_err=$ac_c_preproc_warn_flag |
| 6172 |
> |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 6173 |
> |
else |
| 6174 |
> |
ac_cpp_err= |
| 6175 |
> |
fi |
| 6176 |
> |
else |
| 6177 |
> |
ac_cpp_err=yes |
| 6178 |
> |
fi |
| 6179 |
> |
if test -z "$ac_cpp_err"; then |
| 6180 |
> |
ac_header_preproc=yes |
| 6181 |
> |
else |
| 6182 |
> |
echo "$as_me: failed program was:" >&5 |
| 6183 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 6184 |
> |
|
| 6185 |
> |
ac_header_preproc=no |
| 6186 |
> |
fi |
| 6187 |
> |
rm -f conftest.err conftest.$ac_ext |
| 6188 |
> |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6189 |
> |
echo "${ECHO_T}$ac_header_preproc" >&6 |
| 6190 |
> |
|
| 6191 |
> |
# So? What about this header? |
| 6192 |
> |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6193 |
> |
yes:no: ) |
| 6194 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6195 |
> |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6196 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 6197 |
> |
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 6198 |
> |
ac_header_preproc=yes |
| 6199 |
> |
;; |
| 6200 |
> |
no:yes:* ) |
| 6201 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 6202 |
> |
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 6203 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 6204 |
> |
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 6205 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 6206 |
> |
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 6207 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 6208 |
> |
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6209 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 6210 |
> |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 6211 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 6212 |
> |
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 6213 |
> |
( |
| 6214 |
> |
cat <<\_ASBOX |
| 6215 |
> |
## ------------------------------ ## |
| 6216 |
> |
## Report this to gezelter@nd.edu ## |
| 6217 |
> |
## ------------------------------ ## |
| 6218 |
> |
_ASBOX |
| 6219 |
> |
) | |
| 6220 |
> |
sed "s/^/$as_me: WARNING: /" >&2 |
| 6221 |
> |
;; |
| 6222 |
> |
esac |
| 6223 |
> |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6224 |
> |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6225 |
> |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6226 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6227 |
> |
else |
| 6228 |
> |
eval "$as_ac_Header=\$ac_header_preproc" |
| 6229 |
> |
fi |
| 6230 |
> |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 6231 |
> |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 6232 |
> |
|
| 6233 |
> |
fi |
| 6234 |
> |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 6235 |
> |
cat >>confdefs.h <<_ACEOF |
| 6236 |
> |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 6237 |
> |
_ACEOF |
| 6238 |
> |
|
| 6239 |
> |
fi |
| 6240 |
> |
|
| 6241 |
> |
done |
| 6242 |
> |
|
| 6243 |
> |
|
| 6244 |
> |
|
| 6245 |
> |
|
| 6246 |
> |
|
| 6247 |
> |
for ac_header in sys/table.h sys/param.h sys/sysctl.h sys/sytemcfg.h |
| 6248 |
> |
do |
| 6249 |
> |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6250 |
> |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6251 |
> |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6252 |
> |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6253 |
> |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6254 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6255 |
> |
fi |
| 6256 |
> |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 6257 |
> |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 6258 |
> |
else |
| 6259 |
> |
# Is the header compilable? |
| 6260 |
> |
echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 6261 |
> |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 6262 |
> |
cat >conftest.$ac_ext <<_ACEOF |
| 6263 |
> |
/* confdefs.h. */ |
| 6264 |
> |
_ACEOF |
| 6265 |
> |
cat confdefs.h >>conftest.$ac_ext |
| 6266 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
| 6267 |
> |
/* end confdefs.h. */ |
| 6268 |
> |
$ac_includes_default |
| 6269 |
> |
#include <$ac_header> |
| 6270 |
> |
_ACEOF |
| 6271 |
> |
rm -f conftest.$ac_objext |
| 6272 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6273 |
> |
(eval $ac_compile) 2>conftest.er1 |
| 6274 |
> |
ac_status=$? |
| 6275 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
| 6276 |
> |
rm -f conftest.er1 |
| 6277 |
> |
cat conftest.err >&5 |
| 6278 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6279 |
> |
(exit $ac_status); } && |
| 6280 |
> |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6281 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6282 |
> |
(eval $ac_try) 2>&5 |
| 6283 |
> |
ac_status=$? |
| 6284 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6285 |
> |
(exit $ac_status); }; } && |
| 6286 |
> |
{ ac_try='test -s conftest.$ac_objext' |
| 6287 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6288 |
> |
(eval $ac_try) 2>&5 |
| 6289 |
> |
ac_status=$? |
| 6290 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6291 |
> |
(exit $ac_status); }; }; then |
| 6292 |
> |
ac_header_compiler=yes |
| 6293 |
> |
else |
| 6294 |
> |
echo "$as_me: failed program was:" >&5 |
| 6295 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 6296 |
> |
|
| 6297 |
> |
ac_header_compiler=no |
| 6298 |
> |
fi |
| 6299 |
> |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6300 |
> |
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6301 |
> |
echo "${ECHO_T}$ac_header_compiler" >&6 |
| 6302 |
> |
|
| 6303 |
> |
# Is the header present? |
| 6304 |
> |
echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 6305 |
> |
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 6306 |
> |
cat >conftest.$ac_ext <<_ACEOF |
| 6307 |
> |
/* confdefs.h. */ |
| 6308 |
> |
_ACEOF |
| 6309 |
> |
cat confdefs.h >>conftest.$ac_ext |
| 6310 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
| 6311 |
> |
/* end confdefs.h. */ |
| 6312 |
> |
#include <$ac_header> |
| 6313 |
> |
_ACEOF |
| 6314 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6315 |
> |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 6316 |
> |
ac_status=$? |
| 6317 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
| 6318 |
> |
rm -f conftest.er1 |
| 6319 |
> |
cat conftest.err >&5 |
| 6320 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6321 |
> |
(exit $ac_status); } >/dev/null; then |
| 6322 |
> |
if test -s conftest.err; then |
| 6323 |
> |
ac_cpp_err=$ac_c_preproc_warn_flag |
| 6324 |
> |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 6325 |
> |
else |
| 6326 |
> |
ac_cpp_err= |
| 6327 |
> |
fi |
| 6328 |
> |
else |
| 6329 |
> |
ac_cpp_err=yes |
| 6330 |
> |
fi |
| 6331 |
> |
if test -z "$ac_cpp_err"; then |
| 6332 |
> |
ac_header_preproc=yes |
| 6333 |
> |
else |
| 6334 |
> |
echo "$as_me: failed program was:" >&5 |
| 6335 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 6336 |
> |
|
| 6337 |
> |
ac_header_preproc=no |
| 6338 |
> |
fi |
| 6339 |
> |
rm -f conftest.err conftest.$ac_ext |
| 6340 |
> |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6341 |
> |
echo "${ECHO_T}$ac_header_preproc" >&6 |
| 6342 |
> |
|
| 6343 |
> |
# So? What about this header? |
| 6344 |
> |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6345 |
> |
yes:no: ) |
| 6346 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6347 |
> |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6348 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 6349 |
> |
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 6350 |
> |
ac_header_preproc=yes |
| 6351 |
> |
;; |
| 6352 |
> |
no:yes:* ) |
| 6353 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 6354 |
> |
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 6355 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 6356 |
> |
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 6357 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 6358 |
> |
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 6359 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 6360 |
> |
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6361 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 6362 |
> |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 6363 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 6364 |
> |
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 6365 |
> |
( |
| 6366 |
> |
cat <<\_ASBOX |
| 6367 |
> |
## ------------------------------ ## |
| 6368 |
> |
## Report this to gezelter@nd.edu ## |
| 6369 |
> |
## ------------------------------ ## |
| 6370 |
> |
_ASBOX |
| 6371 |
> |
) | |
| 6372 |
> |
sed "s/^/$as_me: WARNING: /" >&2 |
| 6373 |
> |
;; |
| 6374 |
> |
esac |
| 6375 |
> |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6376 |
> |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6377 |
> |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6378 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6379 |
> |
else |
| 6380 |
> |
eval "$as_ac_Header=\$ac_header_preproc" |
| 6381 |
> |
fi |
| 6382 |
> |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 6383 |
> |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 6384 |
> |
|
| 6385 |
> |
fi |
| 6386 |
> |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 6387 |
> |
cat >>confdefs.h <<_ACEOF |
| 6388 |
> |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 6389 |
> |
_ACEOF |
| 6390 |
> |
|
| 6391 |
> |
fi |
| 6392 |
> |
|
| 6393 |
> |
done |
| 6394 |
> |
|
| 6395 |
> |
|
| 6396 |
> |
for ac_header in machine/hal_sysinfo.h |
| 6397 |
> |
do |
| 6398 |
> |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6399 |
> |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6400 |
> |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6401 |
> |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6402 |
> |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6403 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6404 |
> |
fi |
| 6405 |
> |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 6406 |
> |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 6407 |
> |
else |
| 6408 |
> |
# Is the header compilable? |
| 6409 |
> |
echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 6410 |
> |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 6411 |
> |
cat >conftest.$ac_ext <<_ACEOF |
| 6412 |
> |
/* confdefs.h. */ |
| 6413 |
> |
_ACEOF |
| 6414 |
> |
cat confdefs.h >>conftest.$ac_ext |
| 6415 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
| 6416 |
> |
/* end confdefs.h. */ |
| 6417 |
> |
$ac_includes_default |
| 6418 |
> |
#include <$ac_header> |
| 6419 |
> |
_ACEOF |
| 6420 |
> |
rm -f conftest.$ac_objext |
| 6421 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6422 |
> |
(eval $ac_compile) 2>conftest.er1 |
| 6423 |
> |
ac_status=$? |
| 6424 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
| 6425 |
> |
rm -f conftest.er1 |
| 6426 |
> |
cat conftest.err >&5 |
| 6427 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6428 |
> |
(exit $ac_status); } && |
| 6429 |
> |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6430 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6431 |
> |
(eval $ac_try) 2>&5 |
| 6432 |
> |
ac_status=$? |
| 6433 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6434 |
> |
(exit $ac_status); }; } && |
| 6435 |
> |
{ ac_try='test -s conftest.$ac_objext' |
| 6436 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6437 |
> |
(eval $ac_try) 2>&5 |
| 6438 |
> |
ac_status=$? |
| 6439 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6440 |
> |
(exit $ac_status); }; }; then |
| 6441 |
> |
ac_header_compiler=yes |
| 6442 |
> |
else |
| 6443 |
> |
echo "$as_me: failed program was:" >&5 |
| 6444 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 6445 |
> |
|
| 6446 |
> |
ac_header_compiler=no |
| 6447 |
> |
fi |
| 6448 |
> |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6449 |
> |
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6450 |
> |
echo "${ECHO_T}$ac_header_compiler" >&6 |
| 6451 |
> |
|
| 6452 |
> |
# Is the header present? |
| 6453 |
> |
echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 6454 |
> |
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 6455 |
> |
cat >conftest.$ac_ext <<_ACEOF |
| 6456 |
> |
/* confdefs.h. */ |
| 6457 |
> |
_ACEOF |
| 6458 |
> |
cat confdefs.h >>conftest.$ac_ext |
| 6459 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
| 6460 |
> |
/* end confdefs.h. */ |
| 6461 |
> |
#include <$ac_header> |
| 6462 |
> |
_ACEOF |
| 6463 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6464 |
> |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 6465 |
> |
ac_status=$? |
| 6466 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
| 6467 |
> |
rm -f conftest.er1 |
| 6468 |
> |
cat conftest.err >&5 |
| 6469 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6470 |
> |
(exit $ac_status); } >/dev/null; then |
| 6471 |
> |
if test -s conftest.err; then |
| 6472 |
> |
ac_cpp_err=$ac_c_preproc_warn_flag |
| 6473 |
> |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 6474 |
> |
else |
| 6475 |
> |
ac_cpp_err= |
| 6476 |
> |
fi |
| 6477 |
> |
else |
| 6478 |
> |
ac_cpp_err=yes |
| 6479 |
> |
fi |
| 6480 |
> |
if test -z "$ac_cpp_err"; then |
| 6481 |
> |
ac_header_preproc=yes |
| 6482 |
> |
else |
| 6483 |
> |
echo "$as_me: failed program was:" >&5 |
| 6484 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 6485 |
> |
|
| 6486 |
> |
ac_header_preproc=no |
| 6487 |
> |
fi |
| 6488 |
> |
rm -f conftest.err conftest.$ac_ext |
| 6489 |
> |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6490 |
> |
echo "${ECHO_T}$ac_header_preproc" >&6 |
| 6491 |
> |
|
| 6492 |
> |
# So? What about this header? |
| 6493 |
> |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6494 |
> |
yes:no: ) |
| 6495 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6496 |
> |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6497 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 6498 |
> |
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 6499 |
> |
ac_header_preproc=yes |
| 6500 |
> |
;; |
| 6501 |
> |
no:yes:* ) |
| 6502 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 6503 |
> |
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 6504 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 6505 |
> |
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 6506 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 6507 |
> |
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 6508 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 6509 |
> |
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6510 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 6511 |
> |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 6512 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 6513 |
> |
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 6514 |
> |
( |
| 6515 |
> |
cat <<\_ASBOX |
| 6516 |
> |
## ------------------------------ ## |
| 6517 |
> |
## Report this to gezelter@nd.edu ## |
| 6518 |
> |
## ------------------------------ ## |
| 6519 |
> |
_ASBOX |
| 6520 |
> |
) | |
| 6521 |
> |
sed "s/^/$as_me: WARNING: /" >&2 |
| 6522 |
> |
;; |
| 6523 |
> |
esac |
| 6524 |
> |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6525 |
> |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6526 |
> |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6527 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6528 |
> |
else |
| 6529 |
> |
eval "$as_ac_Header=\$ac_header_preproc" |
| 6530 |
> |
fi |
| 6531 |
> |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 6532 |
> |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 6533 |
> |
|
| 6534 |
> |
fi |
| 6535 |
> |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 6536 |
> |
cat >>confdefs.h <<_ACEOF |
| 6537 |
> |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 6538 |
> |
_ACEOF |
| 6539 |
> |
|
| 6540 |
> |
fi |
| 6541 |
> |
|
| 6542 |
> |
done |
| 6543 |
> |
|
| 6544 |
> |
|
| 6545 |
> |
|
| 6546 |
> |
|
| 6547 |
> |
|
| 6548 |
> |
for ac_func in rint snprintf sranddev strncasecmp |
| 6549 |
> |
do |
| 6550 |
> |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 6551 |
> |
echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 6552 |
> |
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 6553 |
> |
if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 6554 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6555 |
> |
else |
| 6556 |
> |
cat >conftest.$ac_ext <<_ACEOF |
| 6557 |
> |
/* confdefs.h. */ |
| 6558 |
> |
_ACEOF |
| 6559 |
> |
cat confdefs.h >>conftest.$ac_ext |
| 6560 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
| 6561 |
> |
/* end confdefs.h. */ |
| 6562 |
> |
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 6563 |
> |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 6564 |
> |
#define $ac_func innocuous_$ac_func |
| 6565 |
> |
|
| 6566 |
> |
/* System header to define __stub macros and hopefully few prototypes, |
| 6567 |
> |
which can conflict with char $ac_func (); below. |
| 6568 |
> |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6569 |
> |
<limits.h> exists even on freestanding compilers. */ |
| 6570 |
> |
|
| 6571 |
> |
#ifdef __STDC__ |
| 6572 |
> |
# include <limits.h> |
| 6573 |
> |
#else |
| 6574 |
> |
# include <assert.h> |
| 6575 |
> |
#endif |
| 6576 |
> |
|
| 6577 |
> |
#undef $ac_func |
| 6578 |
> |
|
| 6579 |
> |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 6580 |
> |
#ifdef __cplusplus |
| 6581 |
> |
extern "C" |
| 6582 |
> |
{ |
| 6583 |
> |
#endif |
| 6584 |
> |
/* We use char because int might match the return type of a gcc2 |
| 6585 |
> |
builtin and then its argument prototype would still apply. */ |
| 6586 |
> |
char $ac_func (); |
| 6587 |
> |
/* The GNU C library defines this for functions which it implements |
| 6588 |
> |
to always fail with ENOSYS. Some functions are actually named |
| 6589 |
> |
something starting with __ and the normal name is an alias. */ |
| 6590 |
> |
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 6591 |
> |
choke me |
| 6592 |
> |
#else |
| 6593 |
> |
char (*f) () = $ac_func; |
| 6594 |
> |
#endif |
| 6595 |
> |
#ifdef __cplusplus |
| 6596 |
> |
} |
| 6597 |
> |
#endif |
| 6598 |
> |
|
| 6599 |
> |
int |
| 6600 |
> |
main () |
| 6601 |
> |
{ |
| 6602 |
> |
return f != $ac_func; |
| 6603 |
> |
; |
| 6604 |
> |
return 0; |
| 6605 |
> |
} |
| 6606 |
> |
_ACEOF |
| 6607 |
> |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 6608 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6609 |
> |
(eval $ac_link) 2>conftest.er1 |
| 6610 |
> |
ac_status=$? |
| 6611 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
| 6612 |
> |
rm -f conftest.er1 |
| 6613 |
> |
cat conftest.err >&5 |
| 6614 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6615 |
> |
(exit $ac_status); } && |
| 6616 |
> |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6617 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6618 |
> |
(eval $ac_try) 2>&5 |
| 6619 |
> |
ac_status=$? |
| 6620 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6621 |
> |
(exit $ac_status); }; } && |
| 6622 |
> |
{ ac_try='test -s conftest$ac_exeext' |
| 6623 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6624 |
> |
(eval $ac_try) 2>&5 |
| 6625 |
> |
ac_status=$? |
| 6626 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6627 |
> |
(exit $ac_status); }; }; then |
| 6628 |
> |
eval "$as_ac_var=yes" |
| 6629 |
> |
else |
| 6630 |
> |
echo "$as_me: failed program was:" >&5 |
| 6631 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 6632 |
> |
|
| 6633 |
> |
eval "$as_ac_var=no" |
| 6634 |
> |
fi |
| 6635 |
> |
rm -f conftest.err conftest.$ac_objext \ |
| 6636 |
> |
conftest$ac_exeext conftest.$ac_ext |
| 6637 |
> |
fi |
| 6638 |
> |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 6639 |
> |
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 6640 |
> |
if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 6641 |
> |
cat >>confdefs.h <<_ACEOF |
| 6642 |
> |
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 6643 |
> |
_ACEOF |
| 6644 |
> |
|
| 6645 |
> |
fi |
| 6646 |
> |
done |
| 6647 |
> |
|
| 6648 |
> |
|
| 6649 |
> |
|
| 6650 |
> |
|
| 6651 |
> |
|
| 6652 |
> |
|
| 6653 |
> |
for ac_func in pstat_getstatic sysmp getsysinfo sysctl table |
| 6654 |
> |
do |
| 6655 |
> |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 6656 |
> |
echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 6657 |
> |
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 6658 |
> |
if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 6659 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6660 |
> |
else |
| 6661 |
> |
cat >conftest.$ac_ext <<_ACEOF |
| 6662 |
> |
/* confdefs.h. */ |
| 6663 |
> |
_ACEOF |
| 6664 |
> |
cat confdefs.h >>conftest.$ac_ext |
| 6665 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
| 6666 |
> |
/* end confdefs.h. */ |
| 6667 |
> |
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 6668 |
> |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 6669 |
> |
#define $ac_func innocuous_$ac_func |
| 6670 |
> |
|
| 6671 |
> |
/* System header to define __stub macros and hopefully few prototypes, |
| 6672 |
> |
which can conflict with char $ac_func (); below. |
| 6673 |
> |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6674 |
> |
<limits.h> exists even on freestanding compilers. */ |
| 6675 |
> |
|
| 6676 |
> |
#ifdef __STDC__ |
| 6677 |
> |
# include <limits.h> |
| 6678 |
> |
#else |
| 6679 |
> |
# include <assert.h> |
| 6680 |
> |
#endif |
| 6681 |
> |
|
| 6682 |
> |
#undef $ac_func |
| 6683 |
> |
|
| 6684 |
> |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 6685 |
> |
#ifdef __cplusplus |
| 6686 |
> |
extern "C" |
| 6687 |
> |
{ |
| 6688 |
> |
#endif |
| 6689 |
> |
/* We use char because int might match the return type of a gcc2 |
| 6690 |
> |
builtin and then its argument prototype would still apply. */ |
| 6691 |
> |
char $ac_func (); |
| 6692 |
> |
/* The GNU C library defines this for functions which it implements |
| 6693 |
> |
to always fail with ENOSYS. Some functions are actually named |
| 6694 |
> |
something starting with __ and the normal name is an alias. */ |
| 6695 |
> |
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 6696 |
> |
choke me |
| 6697 |
> |
#else |
| 6698 |
> |
char (*f) () = $ac_func; |
| 6699 |
> |
#endif |
| 6700 |
> |
#ifdef __cplusplus |
| 6701 |
> |
} |
| 6702 |
> |
#endif |
| 6703 |
> |
|
| 6704 |
> |
int |
| 6705 |
> |
main () |
| 6706 |
> |
{ |
| 6707 |
> |
return f != $ac_func; |
| 6708 |
> |
; |
| 6709 |
> |
return 0; |
| 6710 |
> |
} |
| 6711 |
> |
_ACEOF |
| 6712 |
> |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 6713 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6714 |
> |
(eval $ac_link) 2>conftest.er1 |
| 6715 |
> |
ac_status=$? |
| 6716 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
| 6717 |
> |
rm -f conftest.er1 |
| 6718 |
> |
cat conftest.err >&5 |
| 6719 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6720 |
> |
(exit $ac_status); } && |
| 6721 |
> |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6722 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6723 |
> |
(eval $ac_try) 2>&5 |
| 6724 |
> |
ac_status=$? |
| 6725 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6726 |
> |
(exit $ac_status); }; } && |
| 6727 |
> |
{ ac_try='test -s conftest$ac_exeext' |
| 6728 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6729 |
> |
(eval $ac_try) 2>&5 |
| 6730 |
> |
ac_status=$? |
| 6731 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6732 |
> |
(exit $ac_status); }; }; then |
| 6733 |
> |
eval "$as_ac_var=yes" |
| 6734 |
> |
else |
| 6735 |
> |
echo "$as_me: failed program was:" >&5 |
| 6736 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 6737 |
> |
|
| 6738 |
> |
eval "$as_ac_var=no" |
| 6739 |
> |
fi |
| 6740 |
> |
rm -f conftest.err conftest.$ac_objext \ |
| 6741 |
> |
conftest$ac_exeext conftest.$ac_ext |
| 6742 |
> |
fi |
| 6743 |
> |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 6744 |
> |
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 6745 |
> |
if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 6746 |
> |
cat >>confdefs.h <<_ACEOF |
| 6747 |
> |
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 6748 |
> |
_ACEOF |
| 6749 |
> |
|
| 6750 |
> |
fi |
| 6751 |
> |
done |
| 6752 |
> |
|
| 6753 |
> |
# special check for _system_configuration because AIX <4.3.2 do not |
| 6754 |
> |
# contain the `physmem' member. |
| 6755 |
> |
echo "$as_me:$LINENO: checking for external symbol _system_configuration" >&5 |
| 6756 |
> |
echo $ECHO_N "checking for external symbol _system_configuration... $ECHO_C" >&6 |
| 6757 |
> |
cat >conftest.$ac_ext <<_ACEOF |
| 6758 |
> |
/* confdefs.h. */ |
| 6759 |
> |
_ACEOF |
| 6760 |
> |
cat confdefs.h >>conftest.$ac_ext |
| 6761 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
| 6762 |
> |
/* end confdefs.h. */ |
| 6763 |
> |
#include <sys/systemcfg.h> |
| 6764 |
> |
int |
| 6765 |
> |
main () |
| 6766 |
> |
{ |
| 6767 |
> |
double x = _system_configuration.physmem; |
| 6768 |
> |
; |
| 6769 |
> |
return 0; |
| 6770 |
> |
} |
| 6771 |
> |
_ACEOF |
| 6772 |
> |
rm -f conftest.$ac_objext |
| 6773 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6774 |
> |
(eval $ac_compile) 2>conftest.er1 |
| 6775 |
> |
ac_status=$? |
| 6776 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
| 6777 |
> |
rm -f conftest.er1 |
| 6778 |
> |
cat conftest.err >&5 |
| 6779 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6780 |
> |
(exit $ac_status); } && |
| 6781 |
> |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6782 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6783 |
> |
(eval $ac_try) 2>&5 |
| 6784 |
> |
ac_status=$? |
| 6785 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6786 |
> |
(exit $ac_status); }; } && |
| 6787 |
> |
{ ac_try='test -s conftest.$ac_objext' |
| 6788 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6789 |
> |
(eval $ac_try) 2>&5 |
| 6790 |
> |
ac_status=$? |
| 6791 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6792 |
> |
(exit $ac_status); }; }; then |
| 6793 |
> |
echo "$as_me:$LINENO: result: yes" >&5 |
| 6794 |
> |
echo "${ECHO_T}yes" >&6 |
| 6795 |
> |
|
| 6796 |
> |
cat >>confdefs.h <<\_ACEOF |
| 6797 |
> |
#define HAVE__SYSTEM_CONFIGURATION 1 |
| 6798 |
> |
_ACEOF |
| 6799 |
> |
|
| 6800 |
> |
else |
| 6801 |
> |
echo "$as_me: failed program was:" >&5 |
| 6802 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 6803 |
> |
|
| 6804 |
> |
echo "$as_me:$LINENO: result: no" >&5 |
| 6805 |
> |
echo "${ECHO_T}no" >&6 |
| 6806 |
> |
fi |
| 6807 |
> |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6808 |
> |
echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 6809 |
> |
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 6810 |
> |
if test "${ac_cv_header_time+set}" = set; then |
| 6811 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6812 |
> |
else |
| 6813 |
> |
cat >conftest.$ac_ext <<_ACEOF |
| 6814 |
> |
/* confdefs.h. */ |
| 6815 |
> |
_ACEOF |
| 6816 |
> |
cat confdefs.h >>conftest.$ac_ext |
| 6817 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
| 6818 |
> |
/* end confdefs.h. */ |
| 6819 |
> |
#include <sys/types.h> |
| 6820 |
> |
#include <sys/time.h> |
| 6821 |
> |
#include <time.h> |
| 6822 |
> |
|
| 6823 |
> |
int |
| 6824 |
> |
main () |
| 6825 |
> |
{ |
| 6826 |
> |
if ((struct tm *) 0) |
| 6827 |
> |
return 0; |
| 6828 |
> |
; |
| 6829 |
> |
return 0; |
| 6830 |
> |
} |
| 6831 |
> |
_ACEOF |
| 6832 |
> |
rm -f conftest.$ac_objext |
| 6833 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6834 |
> |
(eval $ac_compile) 2>conftest.er1 |
| 6835 |
> |
ac_status=$? |
| 6836 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
| 6837 |
> |
rm -f conftest.er1 |
| 6838 |
> |
cat conftest.err >&5 |
| 6839 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6840 |
> |
(exit $ac_status); } && |
| 6841 |
> |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6842 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6843 |
> |
(eval $ac_try) 2>&5 |
| 6844 |
> |
ac_status=$? |
| 6845 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6846 |
> |
(exit $ac_status); }; } && |
| 6847 |
> |
{ ac_try='test -s conftest.$ac_objext' |
| 6848 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6849 |
> |
(eval $ac_try) 2>&5 |
| 6850 |
> |
ac_status=$? |
| 6851 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6852 |
> |
(exit $ac_status); }; }; then |
| 6853 |
> |
ac_cv_header_time=yes |
| 6854 |
> |
else |
| 6855 |
> |
echo "$as_me: failed program was:" >&5 |
| 6856 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 6857 |
> |
|
| 6858 |
> |
ac_cv_header_time=no |
| 6859 |
> |
fi |
| 6860 |
> |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6861 |
> |
fi |
| 6862 |
> |
echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 6863 |
> |
echo "${ECHO_T}$ac_cv_header_time" >&6 |
| 6864 |
> |
if test $ac_cv_header_time = yes; then |
| 6865 |
> |
|
| 6866 |
> |
cat >>confdefs.h <<\_ACEOF |
| 6867 |
> |
#define TIME_WITH_SYS_TIME 1 |
| 6868 |
> |
_ACEOF |
| 6869 |
> |
|
| 6870 |
> |
fi |
| 6871 |
> |
|
| 6872 |
> |
|
| 6873 |
> |
echo "$as_me:$LINENO: checking for clock_t" >&5 |
| 6874 |
> |
echo $ECHO_N "checking for clock_t... $ECHO_C" >&6 |
| 6875 |
> |
if test "${ac_cv_type_clock_t+set}" = set; then |
| 6876 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6877 |
> |
else |
| 6878 |
> |
cat >conftest.$ac_ext <<_ACEOF |
| 6879 |
> |
/* confdefs.h. */ |
| 6880 |
> |
_ACEOF |
| 6881 |
> |
cat confdefs.h >>conftest.$ac_ext |
| 6882 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
| 6883 |
> |
/* end confdefs.h. */ |
| 6884 |
> |
$ac_includes_default |
| 6885 |
> |
int |
| 6886 |
> |
main () |
| 6887 |
> |
{ |
| 6888 |
> |
if ((clock_t *) 0) |
| 6889 |
> |
return 0; |
| 6890 |
> |
if (sizeof (clock_t)) |
| 6891 |
> |
return 0; |
| 6892 |
> |
; |
| 6893 |
> |
return 0; |
| 6894 |
> |
} |
| 6895 |
> |
_ACEOF |
| 6896 |
> |
rm -f conftest.$ac_objext |
| 6897 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6898 |
> |
(eval $ac_compile) 2>conftest.er1 |
| 6899 |
> |
ac_status=$? |
| 6900 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
| 6901 |
> |
rm -f conftest.er1 |
| 6902 |
> |
cat conftest.err >&5 |
| 6903 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6904 |
> |
(exit $ac_status); } && |
| 6905 |
> |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6906 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6907 |
> |
(eval $ac_try) 2>&5 |
| 6908 |
> |
ac_status=$? |
| 6909 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6910 |
> |
(exit $ac_status); }; } && |
| 6911 |
> |
{ ac_try='test -s conftest.$ac_objext' |
| 6912 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6913 |
> |
(eval $ac_try) 2>&5 |
| 6914 |
> |
ac_status=$? |
| 6915 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6916 |
> |
(exit $ac_status); }; }; then |
| 6917 |
> |
ac_cv_type_clock_t=yes |
| 6918 |
> |
else |
| 6919 |
> |
echo "$as_me: failed program was:" >&5 |
| 6920 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 6921 |
> |
|
| 6922 |
> |
ac_cv_type_clock_t=no |
| 6923 |
> |
fi |
| 6924 |
> |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6925 |
> |
fi |
| 6926 |
> |
echo "$as_me:$LINENO: result: $ac_cv_type_clock_t" >&5 |
| 6927 |
> |
echo "${ECHO_T}$ac_cv_type_clock_t" >&6 |
| 6928 |
> |
if test $ac_cv_type_clock_t = yes; then |
| 6929 |
> |
|
| 6930 |
> |
cat >>confdefs.h <<_ACEOF |
| 6931 |
> |
#define HAVE_CLOCK_T 1 |
| 6932 |
> |
_ACEOF |
| 6933 |
> |
|
| 6934 |
> |
|
| 6935 |
> |
fi |
| 6936 |
> |
|
| 6937 |
> |
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 6938 |
> |
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
| 6939 |
> |
if test "${ac_cv_c_const+set}" = set; then |
| 6940 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6941 |
> |
else |
| 6942 |
> |
cat >conftest.$ac_ext <<_ACEOF |
| 6943 |
> |
/* confdefs.h. */ |
| 6944 |
> |
_ACEOF |
| 6945 |
> |
cat confdefs.h >>conftest.$ac_ext |
| 6946 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
| 6947 |
> |
/* end confdefs.h. */ |
| 6948 |
> |
|
| 6949 |
> |
int |
| 6950 |
> |
main () |
| 6951 |
> |
{ |
| 6952 |
> |
/* FIXME: Include the comments suggested by Paul. */ |
| 6953 |
> |
#ifndef __cplusplus |
| 6954 |
> |
/* Ultrix mips cc rejects this. */ |
| 6955 |
> |
typedef int charset[2]; |
| 6956 |
> |
const charset x; |
| 6957 |
> |
/* SunOS 4.1.1 cc rejects this. */ |
| 6958 |
> |
char const *const *ccp; |
| 6959 |
> |
char **p; |
| 6960 |
> |
/* NEC SVR4.0.2 mips cc rejects this. */ |
| 6961 |
> |
struct point {int x, y;}; |
| 6962 |
> |
static struct point const zero = {0,0}; |
| 6963 |
> |
/* AIX XL C 1.02.0.0 rejects this. |
| 6964 |
> |
It does not let you subtract one const X* pointer from another in |
| 6965 |
> |
an arm of an if-expression whose if-part is not a constant |
| 6966 |
> |
expression */ |
| 6967 |
> |
const char *g = "string"; |
| 6968 |
> |
ccp = &g + (g ? g-g : 0); |
| 6969 |
> |
/* HPUX 7.0 cc rejects these. */ |
| 6970 |
> |
++ccp; |
| 6971 |
> |
p = (char**) ccp; |
| 6972 |
> |
ccp = (char const *const *) p; |
| 6973 |
> |
{ /* SCO 3.2v4 cc rejects this. */ |
| 6974 |
> |
char *t; |
| 6975 |
> |
char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 6976 |
> |
|
| 6977 |
> |
*t++ = 0; |
| 6978 |
> |
} |
| 6979 |
> |
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 6980 |
> |
int x[] = {25, 17}; |
| 6981 |
> |
const int *foo = &x[0]; |
| 6982 |
> |
++foo; |
| 6983 |
> |
} |
| 6984 |
> |
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 6985 |
> |
typedef const int *iptr; |
| 6986 |
> |
iptr p = 0; |
| 6987 |
> |
++p; |
| 6988 |
> |
} |
| 6989 |
> |
{ /* AIX XL C 1.02.0.0 rejects this saying |
| 6990 |
> |
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 6991 |
> |
struct s { int j; const int *ap[3]; }; |
| 6992 |
> |
struct s *b; b->j = 5; |
| 6993 |
> |
} |
| 6994 |
> |
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 6995 |
> |
const int foo = 10; |
| 6996 |
> |
} |
| 6997 |
> |
#endif |
| 6998 |
> |
|
| 6999 |
> |
; |
| 7000 |
> |
return 0; |
| 7001 |
> |
} |
| 7002 |
> |
_ACEOF |
| 7003 |
> |
rm -f conftest.$ac_objext |
| 7004 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7005 |
> |
(eval $ac_compile) 2>conftest.er1 |
| 7006 |
> |
ac_status=$? |
| 7007 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
| 7008 |
> |
rm -f conftest.er1 |
| 7009 |
> |
cat conftest.err >&5 |
| 7010 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7011 |
> |
(exit $ac_status); } && |
| 7012 |
> |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7013 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7014 |
> |
(eval $ac_try) 2>&5 |
| 7015 |
> |
ac_status=$? |
| 7016 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7017 |
> |
(exit $ac_status); }; } && |
| 7018 |
> |
{ ac_try='test -s conftest.$ac_objext' |
| 7019 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7020 |
> |
(eval $ac_try) 2>&5 |
| 7021 |
> |
ac_status=$? |
| 7022 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7023 |
> |
(exit $ac_status); }; }; then |
| 7024 |
> |
ac_cv_c_const=yes |
| 7025 |
> |
else |
| 7026 |
> |
echo "$as_me: failed program was:" >&5 |
| 7027 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 7028 |
> |
|
| 7029 |
> |
ac_cv_c_const=no |
| 7030 |
> |
fi |
| 7031 |
> |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7032 |
> |
fi |
| 7033 |
> |
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 7034 |
> |
echo "${ECHO_T}$ac_cv_c_const" >&6 |
| 7035 |
> |
if test $ac_cv_c_const = no; then |
| 7036 |
> |
|
| 7037 |
> |
cat >>confdefs.h <<\_ACEOF |
| 7038 |
> |
#define const |
| 7039 |
> |
_ACEOF |
| 7040 |
> |
|
| 7041 |
> |
fi |
| 7042 |
> |
|
| 7043 |
> |
echo "$as_me:$LINENO: checking for inline" >&5 |
| 7044 |
> |
echo $ECHO_N "checking for inline... $ECHO_C" >&6 |
| 7045 |
> |
if test "${ac_cv_c_inline+set}" = set; then |
| 7046 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7047 |
> |
else |
| 7048 |
> |
ac_cv_c_inline=no |
| 7049 |
> |
for ac_kw in inline __inline__ __inline; do |
| 7050 |
> |
cat >conftest.$ac_ext <<_ACEOF |
| 7051 |
> |
/* confdefs.h. */ |
| 7052 |
> |
_ACEOF |
| 7053 |
> |
cat confdefs.h >>conftest.$ac_ext |
| 7054 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
| 7055 |
> |
/* end confdefs.h. */ |
| 7056 |
> |
#ifndef __cplusplus |
| 7057 |
> |
typedef int foo_t; |
| 7058 |
> |
static $ac_kw foo_t static_foo () {return 0; } |
| 7059 |
> |
$ac_kw foo_t foo () {return 0; } |
| 7060 |
> |
#endif |
| 7061 |
> |
|
| 7062 |
> |
_ACEOF |
| 7063 |
> |
rm -f conftest.$ac_objext |
| 7064 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7065 |
> |
(eval $ac_compile) 2>conftest.er1 |
| 7066 |
> |
ac_status=$? |
| 7067 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
| 7068 |
> |
rm -f conftest.er1 |
| 7069 |
> |
cat conftest.err >&5 |
| 7070 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7071 |
> |
(exit $ac_status); } && |
| 7072 |
> |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7073 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7074 |
> |
(eval $ac_try) 2>&5 |
| 7075 |
> |
ac_status=$? |
| 7076 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7077 |
> |
(exit $ac_status); }; } && |
| 7078 |
> |
{ ac_try='test -s conftest.$ac_objext' |
| 7079 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7080 |
> |
(eval $ac_try) 2>&5 |
| 7081 |
> |
ac_status=$? |
| 7082 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7083 |
> |
(exit $ac_status); }; }; then |
| 7084 |
> |
ac_cv_c_inline=$ac_kw; break |
| 7085 |
> |
else |
| 7086 |
> |
echo "$as_me: failed program was:" >&5 |
| 7087 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 7088 |
> |
|
| 7089 |
> |
fi |
| 7090 |
> |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7091 |
> |
done |
| 7092 |
> |
|
| 7093 |
> |
fi |
| 7094 |
> |
echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
| 7095 |
> |
echo "${ECHO_T}$ac_cv_c_inline" >&6 |
| 7096 |
> |
|
| 7097 |
> |
|
| 7098 |
> |
case $ac_cv_c_inline in |
| 7099 |
> |
inline | yes) ;; |
| 7100 |
> |
*) |
| 7101 |
> |
case $ac_cv_c_inline in |
| 7102 |
> |
no) ac_val=;; |
| 7103 |
> |
*) ac_val=$ac_cv_c_inline;; |
| 7104 |
> |
esac |
| 7105 |
> |
cat >>confdefs.h <<_ACEOF |
| 7106 |
> |
#ifndef __cplusplus |
| 7107 |
> |
#define inline $ac_val |
| 7108 |
> |
#endif |
| 7109 |
> |
_ACEOF |
| 7110 |
> |
;; |
| 7111 |
> |
esac |
| 7112 |
> |
|
| 7113 |
> |
|
| 7114 |
> |
|
| 7115 |
> |
|
| 7116 |
> |
for ac_func in rint sranddev |
| 7117 |
> |
do |
| 7118 |
> |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 7119 |
> |
echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 7120 |
> |
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 7121 |
> |
if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 7122 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7123 |
> |
else |
| 7124 |
> |
cat >conftest.$ac_ext <<_ACEOF |
| 7125 |
> |
/* confdefs.h. */ |
| 7126 |
> |
_ACEOF |
| 7127 |
> |
cat confdefs.h >>conftest.$ac_ext |
| 7128 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
| 7129 |
> |
/* end confdefs.h. */ |
| 7130 |
> |
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 7131 |
> |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 7132 |
> |
#define $ac_func innocuous_$ac_func |
| 7133 |
> |
|
| 7134 |
> |
/* System header to define __stub macros and hopefully few prototypes, |
| 7135 |
> |
which can conflict with char $ac_func (); below. |
| 7136 |
> |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7137 |
> |
<limits.h> exists even on freestanding compilers. */ |
| 7138 |
> |
|
| 7139 |
> |
#ifdef __STDC__ |
| 7140 |
> |
# include <limits.h> |
| 7141 |
> |
#else |
| 7142 |
> |
# include <assert.h> |
| 7143 |
> |
#endif |
| 7144 |
> |
|
| 7145 |
> |
#undef $ac_func |
| 7146 |
> |
|
| 7147 |
> |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 7148 |
> |
#ifdef __cplusplus |
| 7149 |
> |
extern "C" |
| 7150 |
> |
{ |
| 7151 |
> |
#endif |
| 7152 |
> |
/* We use char because int might match the return type of a gcc2 |
| 7153 |
> |
builtin and then its argument prototype would still apply. */ |
| 7154 |
> |
char $ac_func (); |
| 7155 |
> |
/* The GNU C library defines this for functions which it implements |
| 7156 |
> |
to always fail with ENOSYS. Some functions are actually named |
| 7157 |
> |
something starting with __ and the normal name is an alias. */ |
| 7158 |
> |
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 7159 |
> |
choke me |
| 7160 |
> |
#else |
| 7161 |
> |
char (*f) () = $ac_func; |
| 7162 |
> |
#endif |
| 7163 |
> |
#ifdef __cplusplus |
| 7164 |
> |
} |
| 7165 |
> |
#endif |
| 7166 |
> |
|
| 7167 |
> |
int |
| 7168 |
> |
main () |
| 7169 |
> |
{ |
| 7170 |
> |
return f != $ac_func; |
| 7171 |
> |
; |
| 7172 |
> |
return 0; |
| 7173 |
> |
} |
| 7174 |
> |
_ACEOF |
| 7175 |
> |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 7176 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7177 |
> |
(eval $ac_link) 2>conftest.er1 |
| 7178 |
> |
ac_status=$? |
| 7179 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
| 7180 |
> |
rm -f conftest.er1 |
| 7181 |
> |
cat conftest.err >&5 |
| 7182 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7183 |
> |
(exit $ac_status); } && |
| 7184 |
> |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7185 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7186 |
> |
(eval $ac_try) 2>&5 |
| 7187 |
> |
ac_status=$? |
| 7188 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7189 |
> |
(exit $ac_status); }; } && |
| 7190 |
> |
{ ac_try='test -s conftest$ac_exeext' |
| 7191 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7192 |
> |
(eval $ac_try) 2>&5 |
| 7193 |
> |
ac_status=$? |
| 7194 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7195 |
> |
(exit $ac_status); }; }; then |
| 7196 |
> |
eval "$as_ac_var=yes" |
| 7197 |
> |
else |
| 7198 |
> |
echo "$as_me: failed program was:" >&5 |
| 7199 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 7200 |
> |
|
| 7201 |
> |
eval "$as_ac_var=no" |
| 7202 |
> |
fi |
| 7203 |
> |
rm -f conftest.err conftest.$ac_objext \ |
| 7204 |
> |
conftest$ac_exeext conftest.$ac_ext |
| 7205 |
> |
fi |
| 7206 |
> |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 7207 |
> |
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 7208 |
> |
if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 7209 |
> |
cat >>confdefs.h <<_ACEOF |
| 7210 |
> |
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 7211 |
> |
_ACEOF |
| 7212 |
> |
|
| 7213 |
> |
fi |
| 7214 |
> |
done |
| 7215 |
> |
|
| 7216 |
> |
|
| 7217 |
> |
# clean out junk possibly left behind by a previous configuration |
| 7218 |
> |
rm -f src/getopt.h |
| 7219 |
> |
# Check for getopt_long support |
| 7220 |
> |
|
| 7221 |
> |
for ac_header in getopt.h |
| 7222 |
> |
do |
| 7223 |
> |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 7224 |
> |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7225 |
> |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7226 |
> |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7227 |
> |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7228 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7229 |
> |
fi |
| 7230 |
> |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 7231 |
> |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 7232 |
> |
else |
| 7233 |
> |
# Is the header compilable? |
| 7234 |
> |
echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 7235 |
> |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 7236 |
> |
cat >conftest.$ac_ext <<_ACEOF |
| 7237 |
> |
/* confdefs.h. */ |
| 7238 |
> |
_ACEOF |
| 7239 |
> |
cat confdefs.h >>conftest.$ac_ext |
| 7240 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
| 7241 |
> |
/* end confdefs.h. */ |
| 7242 |
> |
$ac_includes_default |
| 7243 |
> |
#include <$ac_header> |
| 7244 |
> |
_ACEOF |
| 7245 |
> |
rm -f conftest.$ac_objext |
| 7246 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7247 |
> |
(eval $ac_compile) 2>conftest.er1 |
| 7248 |
> |
ac_status=$? |
| 7249 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
| 7250 |
> |
rm -f conftest.er1 |
| 7251 |
> |
cat conftest.err >&5 |
| 7252 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7253 |
> |
(exit $ac_status); } && |
| 7254 |
> |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7255 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7256 |
> |
(eval $ac_try) 2>&5 |
| 7257 |
> |
ac_status=$? |
| 7258 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7259 |
> |
(exit $ac_status); }; } && |
| 7260 |
> |
{ ac_try='test -s conftest.$ac_objext' |
| 7261 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7262 |
> |
(eval $ac_try) 2>&5 |
| 7263 |
> |
ac_status=$? |
| 7264 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7265 |
> |
(exit $ac_status); }; }; then |
| 7266 |
> |
ac_header_compiler=yes |
| 7267 |
> |
else |
| 7268 |
> |
echo "$as_me: failed program was:" >&5 |
| 7269 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 7270 |
> |
|
| 7271 |
> |
ac_header_compiler=no |
| 7272 |
> |
fi |
| 7273 |
> |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7274 |
> |
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7275 |
> |
echo "${ECHO_T}$ac_header_compiler" >&6 |
| 7276 |
> |
|
| 7277 |
> |
# Is the header present? |
| 7278 |
> |
echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 7279 |
> |
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 7280 |
> |
cat >conftest.$ac_ext <<_ACEOF |
| 7281 |
> |
/* confdefs.h. */ |
| 7282 |
> |
_ACEOF |
| 7283 |
> |
cat confdefs.h >>conftest.$ac_ext |
| 7284 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
| 7285 |
> |
/* end confdefs.h. */ |
| 7286 |
> |
#include <$ac_header> |
| 7287 |
> |
_ACEOF |
| 7288 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 7289 |
> |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 7290 |
> |
ac_status=$? |
| 7291 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
| 7292 |
> |
rm -f conftest.er1 |
| 7293 |
> |
cat conftest.err >&5 |
| 7294 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7295 |
> |
(exit $ac_status); } >/dev/null; then |
| 7296 |
> |
if test -s conftest.err; then |
| 7297 |
> |
ac_cpp_err=$ac_c_preproc_warn_flag |
| 7298 |
> |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 7299 |
> |
else |
| 7300 |
> |
ac_cpp_err= |
| 7301 |
> |
fi |
| 7302 |
> |
else |
| 7303 |
> |
ac_cpp_err=yes |
| 7304 |
> |
fi |
| 7305 |
> |
if test -z "$ac_cpp_err"; then |
| 7306 |
> |
ac_header_preproc=yes |
| 7307 |
> |
else |
| 7308 |
> |
echo "$as_me: failed program was:" >&5 |
| 7309 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 7310 |
> |
|
| 7311 |
> |
ac_header_preproc=no |
| 7312 |
> |
fi |
| 7313 |
> |
rm -f conftest.err conftest.$ac_ext |
| 7314 |
> |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7315 |
> |
echo "${ECHO_T}$ac_header_preproc" >&6 |
| 7316 |
> |
|
| 7317 |
> |
# So? What about this header? |
| 7318 |
> |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7319 |
> |
yes:no: ) |
| 7320 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7321 |
> |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7322 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 7323 |
> |
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 7324 |
> |
ac_header_preproc=yes |
| 7325 |
> |
;; |
| 7326 |
> |
no:yes:* ) |
| 7327 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 7328 |
> |
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 7329 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 7330 |
> |
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 7331 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 7332 |
> |
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 7333 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 7334 |
> |
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7335 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 7336 |
> |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 7337 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 7338 |
> |
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 7339 |
> |
( |
| 7340 |
> |
cat <<\_ASBOX |
| 7341 |
> |
## ------------------------------ ## |
| 7342 |
> |
## Report this to gezelter@nd.edu ## |
| 7343 |
> |
## ------------------------------ ## |
| 7344 |
> |
_ASBOX |
| 7345 |
> |
) | |
| 7346 |
> |
sed "s/^/$as_me: WARNING: /" >&2 |
| 7347 |
> |
;; |
| 7348 |
> |
esac |
| 7349 |
> |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7350 |
> |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7351 |
> |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7352 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7353 |
> |
else |
| 7354 |
> |
eval "$as_ac_Header=\$ac_header_preproc" |
| 7355 |
> |
fi |
| 7356 |
> |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 7357 |
> |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 7358 |
> |
|
| 7359 |
> |
fi |
| 7360 |
> |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 7361 |
> |
cat >>confdefs.h <<_ACEOF |
| 7362 |
> |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 7363 |
> |
_ACEOF |
| 7364 |
> |
|
| 7365 |
> |
fi |
| 7366 |
> |
|
| 7367 |
> |
done |
| 7368 |
> |
|
| 7369 |
> |
|
| 7370 |
> |
for ac_func in getopt_long |
| 7371 |
> |
do |
| 7372 |
> |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 7373 |
> |
echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 7374 |
> |
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 7375 |
> |
if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 7376 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7377 |
> |
else |
| 7378 |
> |
cat >conftest.$ac_ext <<_ACEOF |
| 7379 |
> |
/* confdefs.h. */ |
| 7380 |
> |
_ACEOF |
| 7381 |
> |
cat confdefs.h >>conftest.$ac_ext |
| 7382 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
| 7383 |
> |
/* end confdefs.h. */ |
| 7384 |
> |
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 7385 |
> |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 7386 |
> |
#define $ac_func innocuous_$ac_func |
| 7387 |
> |
|
| 7388 |
> |
/* System header to define __stub macros and hopefully few prototypes, |
| 7389 |
> |
which can conflict with char $ac_func (); below. |
| 7390 |
> |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7391 |
> |
<limits.h> exists even on freestanding compilers. */ |
| 7392 |
> |
|
| 7393 |
> |
#ifdef __STDC__ |
| 7394 |
> |
# include <limits.h> |
| 7395 |
> |
#else |
| 7396 |
> |
# include <assert.h> |
| 7397 |
> |
#endif |
| 7398 |
> |
|
| 7399 |
> |
#undef $ac_func |
| 7400 |
> |
|
| 7401 |
> |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 7402 |
> |
#ifdef __cplusplus |
| 7403 |
> |
extern "C" |
| 7404 |
> |
{ |
| 7405 |
> |
#endif |
| 7406 |
> |
/* We use char because int might match the return type of a gcc2 |
| 7407 |
> |
builtin and then its argument prototype would still apply. */ |
| 7408 |
> |
char $ac_func (); |
| 7409 |
> |
/* The GNU C library defines this for functions which it implements |
| 7410 |
> |
to always fail with ENOSYS. Some functions are actually named |
| 7411 |
> |
something starting with __ and the normal name is an alias. */ |
| 7412 |
> |
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 7413 |
> |
choke me |
| 7414 |
> |
#else |
| 7415 |
> |
char (*f) () = $ac_func; |
| 7416 |
> |
#endif |
| 7417 |
> |
#ifdef __cplusplus |
| 7418 |
> |
} |
| 7419 |
> |
#endif |
| 7420 |
> |
|
| 7421 |
> |
int |
| 7422 |
> |
main () |
| 7423 |
> |
{ |
| 7424 |
> |
return f != $ac_func; |
| 7425 |
> |
; |
| 7426 |
> |
return 0; |
| 7427 |
> |
} |
| 7428 |
> |
_ACEOF |
| 7429 |
> |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 7430 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7431 |
> |
(eval $ac_link) 2>conftest.er1 |
| 7432 |
> |
ac_status=$? |
| 7433 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
| 7434 |
> |
rm -f conftest.er1 |
| 7435 |
> |
cat conftest.err >&5 |
| 7436 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7437 |
> |
(exit $ac_status); } && |
| 7438 |
> |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7439 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7440 |
> |
(eval $ac_try) 2>&5 |
| 7441 |
> |
ac_status=$? |
| 7442 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7443 |
> |
(exit $ac_status); }; } && |
| 7444 |
> |
{ ac_try='test -s conftest$ac_exeext' |
| 7445 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7446 |
> |
(eval $ac_try) 2>&5 |
| 7447 |
> |
ac_status=$? |
| 7448 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7449 |
> |
(exit $ac_status); }; }; then |
| 7450 |
> |
eval "$as_ac_var=yes" |
| 7451 |
> |
else |
| 7452 |
> |
echo "$as_me: failed program was:" >&5 |
| 7453 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 7454 |
> |
|
| 7455 |
> |
eval "$as_ac_var=no" |
| 7456 |
> |
fi |
| 7457 |
> |
rm -f conftest.err conftest.$ac_objext \ |
| 7458 |
> |
conftest$ac_exeext conftest.$ac_ext |
| 7459 |
> |
fi |
| 7460 |
> |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 7461 |
> |
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 7462 |
> |
if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 7463 |
> |
cat >>confdefs.h <<_ACEOF |
| 7464 |
> |
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 7465 |
> |
_ACEOF |
| 7466 |
> |
|
| 7467 |
> |
else |
| 7468 |
> |
# FreeBSD has a gnugetopt library for this |
| 7469 |
> |
echo "$as_me:$LINENO: checking for getopt_long in -lgnugetopt" >&5 |
| 7470 |
> |
echo $ECHO_N "checking for getopt_long in -lgnugetopt... $ECHO_C" >&6 |
| 7471 |
> |
if test "${ac_cv_lib_gnugetopt_getopt_long+set}" = set; then |
| 7472 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7473 |
> |
else |
| 7474 |
> |
ac_check_lib_save_LIBS=$LIBS |
| 7475 |
> |
LIBS="-lgnugetopt $LIBS" |
| 7476 |
> |
cat >conftest.$ac_ext <<_ACEOF |
| 7477 |
> |
/* confdefs.h. */ |
| 7478 |
> |
_ACEOF |
| 7479 |
> |
cat confdefs.h >>conftest.$ac_ext |
| 7480 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
| 7481 |
> |
/* end confdefs.h. */ |
| 7482 |
> |
|
| 7483 |
> |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 7484 |
> |
#ifdef __cplusplus |
| 7485 |
> |
extern "C" |
| 7486 |
> |
#endif |
| 7487 |
> |
/* We use char because int might match the return type of a gcc2 |
| 7488 |
> |
builtin and then its argument prototype would still apply. */ |
| 7489 |
> |
char getopt_long (); |
| 7490 |
> |
int |
| 7491 |
> |
main () |
| 7492 |
> |
{ |
| 7493 |
> |
getopt_long (); |
| 7494 |
> |
; |
| 7495 |
> |
return 0; |
| 7496 |
> |
} |
| 7497 |
> |
_ACEOF |
| 7498 |
> |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 7499 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7500 |
> |
(eval $ac_link) 2>conftest.er1 |
| 7501 |
> |
ac_status=$? |
| 7502 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
| 7503 |
> |
rm -f conftest.er1 |
| 7504 |
> |
cat conftest.err >&5 |
| 7505 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7506 |
> |
(exit $ac_status); } && |
| 7507 |
> |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7508 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7509 |
> |
(eval $ac_try) 2>&5 |
| 7510 |
> |
ac_status=$? |
| 7511 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7512 |
> |
(exit $ac_status); }; } && |
| 7513 |
> |
{ ac_try='test -s conftest$ac_exeext' |
| 7514 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7515 |
> |
(eval $ac_try) 2>&5 |
| 7516 |
> |
ac_status=$? |
| 7517 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7518 |
> |
(exit $ac_status); }; }; then |
| 7519 |
> |
ac_cv_lib_gnugetopt_getopt_long=yes |
| 7520 |
> |
else |
| 7521 |
> |
echo "$as_me: failed program was:" >&5 |
| 7522 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 7523 |
> |
|
| 7524 |
> |
ac_cv_lib_gnugetopt_getopt_long=no |
| 7525 |
> |
fi |
| 7526 |
> |
rm -f conftest.err conftest.$ac_objext \ |
| 7527 |
> |
conftest$ac_exeext conftest.$ac_ext |
| 7528 |
> |
LIBS=$ac_check_lib_save_LIBS |
| 7529 |
> |
fi |
| 7530 |
> |
echo "$as_me:$LINENO: result: $ac_cv_lib_gnugetopt_getopt_long" >&5 |
| 7531 |
> |
echo "${ECHO_T}$ac_cv_lib_gnugetopt_getopt_long" >&6 |
| 7532 |
> |
if test $ac_cv_lib_gnugetopt_getopt_long = yes; then |
| 7533 |
> |
cat >>confdefs.h <<\_ACEOF |
| 7534 |
> |
#define HAVE_GETOPT_LONG 1 |
| 7535 |
> |
_ACEOF |
| 7536 |
> |
|
| 7537 |
> |
else |
| 7538 |
> |
# use the GNU replacement |
| 7539 |
> |
case $LIBOBJS in |
| 7540 |
> |
"getopt.$ac_objext" | \ |
| 7541 |
> |
*" getopt.$ac_objext" | \ |
| 7542 |
> |
"getopt.$ac_objext "* | \ |
| 7543 |
> |
*" getopt.$ac_objext "* ) ;; |
| 7544 |
> |
*) LIBOBJS="$LIBOBJS getopt.$ac_objext" ;; |
| 7545 |
> |
esac |
| 7546 |
> |
|
| 7547 |
> |
case $LIBOBJS in |
| 7548 |
> |
"getopt1.$ac_objext" | \ |
| 7549 |
> |
*" getopt1.$ac_objext" | \ |
| 7550 |
> |
"getopt1.$ac_objext "* | \ |
| 7551 |
> |
*" getopt1.$ac_objext "* ) ;; |
| 7552 |
> |
*) LIBOBJS="$LIBOBJS getopt1.$ac_objext" ;; |
| 7553 |
> |
esac |
| 7554 |
> |
|
| 7555 |
> |
ac_config_links="$ac_config_links src/getopt.h:src/utils/gnugetopt.h" |
| 7556 |
> |
|
| 7557 |
> |
fi |
| 7558 |
> |
|
| 7559 |
> |
fi |
| 7560 |
> |
done |
| 7561 |
> |
|
| 7562 |
> |
|
| 7563 |
> |
|
| 7564 |
> |
case $debug in |
| 7565 |
> |
1) |
| 7566 |
> |
;; |
| 7567 |
> |
*) |
| 7568 |
> |
|
| 7569 |
> |
|
| 7570 |
> |
|
| 7571 |
> |
|
| 7572 |
> |
|
| 7573 |
> |
|
| 7574 |
> |
echo "$as_me:$LINENO: checking whether we are *really* using GNU cc" >&5 |
| 7575 |
> |
echo $ECHO_N "checking whether we are *really* using GNU cc... $ECHO_C" >&6 |
| 7576 |
> |
if test "${ac_cv_prog_really_gcc+set}" = set; then |
| 7577 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7578 |
> |
else |
| 7579 |
> |
|
| 7580 |
> |
cat > conftest.c <<EOF |
| 7581 |
> |
#ifdef __GNUC__ |
| 7582 |
> |
#ifndef __INTEL_COMPILER |
| 7583 |
> |
yes; |
| 7584 |
> |
#endif |
| 7585 |
> |
#endif |
| 7586 |
> |
EOF |
| 7587 |
> |
if { ac_try='${CC-cc} -E conftest.c' |
| 7588 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7589 |
> |
(eval $ac_try) 2>&5 |
| 7590 |
> |
ac_status=$? |
| 7591 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7592 |
> |
(exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then |
| 7593 |
> |
ac_cv_prog_really_gcc=yes |
| 7594 |
> |
else |
| 7595 |
> |
ac_cv_prog_really_gcc=no |
| 7596 |
> |
fi |
| 7597 |
> |
|
| 7598 |
> |
fi |
| 7599 |
> |
echo "$as_me:$LINENO: result: $ac_cv_prog_really_gcc" >&5 |
| 7600 |
> |
echo "${ECHO_T}$ac_cv_prog_really_gcc" >&6 |
| 7601 |
> |
if test "$ac_cv_prog_really_gcc" = yes; then |
| 7602 |
> |
: |
| 7603 |
> |
|
| 7604 |
> |
else |
| 7605 |
> |
: |
| 7606 |
> |
|
| 7607 |
> |
fi |
| 7608 |
> |
|
| 7609 |
> |
|
| 7610 |
> |
# Try to determine "good" native compiler flags if none specified on command |
| 7611 |
> |
# line |
| 7612 |
> |
if test "$ac_test_CFLAGS" != "set"; then |
| 7613 |
> |
CFLAGS="" |
| 7614 |
> |
case "${host_cpu}-${host_os}" in |
| 7615 |
> |
|
| 7616 |
> |
*linux*) if test "$CC" = icc; then |
| 7617 |
> |
CFLAGS="-O" |
| 7618 |
> |
fi;; |
| 7619 |
> |
sparc-solaris2*) if test "$CC" = cc; then |
| 7620 |
> |
CFLAGS="-native -fast -xO5 -dalign" |
| 7621 |
> |
fi;; |
| 7622 |
> |
|
| 7623 |
> |
alpha*-osf*) if test "$CC" = cc; then |
| 7624 |
> |
CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host -arch host -std1" |
| 7625 |
> |
fi;; |
| 7626 |
> |
|
| 7627 |
> |
hppa*-hpux*) if test "$CC" = cc; then |
| 7628 |
> |
CFLAGS="-Ae +O3 +Oall" |
| 7629 |
> |
fi;; |
| 7630 |
> |
|
| 7631 |
> |
rs6000*-aix*) if test "$CC" = cc -o "$CC" = xlc; then |
| 7632 |
> |
CFLAGS="-O3 -qtune=auto -qansialias -w" |
| 7633 |
> |
fi;; |
| 7634 |
> |
powerpc*-aix*) |
| 7635 |
> |
if test "$CC" = cc -o "$CC" = xlc; then |
| 7636 |
> |
CFLAGS="-O3 -qtune=auto -qansialias -w" |
| 7637 |
> |
echo "*******************************************************" |
| 7638 |
> |
echo "* You have AIX on an unknown powerpc system. It is *" |
| 7639 |
> |
echo "* recommended that you use *" |
| 7640 |
> |
echo "* *" |
| 7641 |
|
echo "* CFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w *" |
| 7642 |
|
echo "* ^^^ *" |
| 7643 |
|
echo "* where xxx is 601, 603, 604, or whatever kind of *" |
| 7646 |
|
fi;; |
| 7647 |
|
*darwin*) |
| 7648 |
|
if test "$CC" = xlc -o "$CC" = cc; then |
| 7649 |
< |
CFLAGS="-qthreaded -O5 -qtune=auto -qarch=auto -qunroll=auto -qaltivec" |
| 7649 |
> |
CFLAGS="-qthreaded -O -qtune=auto -qarch=auto -qunroll=auto -qaltivec" |
| 7650 |
|
fi;; |
| 7651 |
|
esac |
| 7652 |
|
|
| 8097 |
|
echo "*******************************************************" |
| 8098 |
|
fi;; |
| 8099 |
|
*darwin*) |
| 8100 |
< |
if test "$CXX" = xlc++; then |
| 8101 |
< |
CXXFLAGS="-qthreaded -O5 -qtune=auto -qarch=auto -qunroll=auto -qaltivec" |
| 8100 |
> |
if test "$CXX" = xlc++ -o "$CXX" = xlC ; then |
| 8101 |
> |
CXXFLAGS="-qthreaded -O -qtune=auto -qarch=auto -qunroll=auto -qaltivec" |
| 8102 |
|
fi;; |
| 8103 |
|
esac |
| 8104 |
|
|
| 8510 |
|
fi;; |
| 8511 |
|
*darwin*) |
| 8512 |
|
if test "$F90" = f90 -o "$F90" = xlf90 -o "$F90" = xlf95; then |
| 8513 |
< |
F90FLAGS="-qthreaded -O5 -qtune=auto -qarch=auto -qunroll=auto" |
| 8513 |
> |
F90FLAGS="-qthreaded -O -qtune=auto -qarch=auto -qunroll=auto" |
| 8514 |
|
fi;; |
| 8515 |
|
esac |
| 8516 |
|
|
| 8910 |
|
cat conftest.err >&5 |
| 8911 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8912 |
|
(exit $ac_status); } && |
| 8913 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
| 6404 |
< |
|| test ! -s conftest.err' |
| 8913 |
> |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8914 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8915 |
|
(eval $ac_try) 2>&5 |
| 8916 |
|
ac_status=$? |
| 8976 |
|
cat conftest.err >&5 |
| 8977 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8978 |
|
(exit $ac_status); } && |
| 8979 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
| 6471 |
< |
|| test ! -s conftest.err' |
| 8979 |
> |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8980 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8981 |
|
(eval $ac_try) 2>&5 |
| 8982 |
|
ac_status=$? |
| 9065 |
|
cat conftest.err >&5 |
| 9066 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9067 |
|
(exit $ac_status); } && |
| 9068 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
| 6561 |
< |
|| test ! -s conftest.err' |
| 9068 |
> |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9069 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9070 |
|
(eval $ac_try) 2>&5 |
| 9071 |
|
ac_status=$? |
| 9100 |
|
fi |
| 9101 |
|
|
| 9102 |
|
fi |
| 9103 |
+ |
|
| 9104 |
+ |
# Extract the first word of "perl", so it can be a program name with args. |
| 9105 |
+ |
set dummy perl; ac_word=$2 |
| 9106 |
+ |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 9107 |
+ |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 9108 |
+ |
if test "${ac_cv_path_PERLINTERP+set}" = set; then |
| 9109 |
+ |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9110 |
+ |
else |
| 9111 |
+ |
case $PERLINTERP in |
| 9112 |
+ |
[\\/]* | ?:[\\/]*) |
| 9113 |
+ |
ac_cv_path_PERLINTERP="$PERLINTERP" # Let the user override the test with a path. |
| 9114 |
+ |
;; |
| 9115 |
+ |
*) |
| 9116 |
+ |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9117 |
+ |
for as_dir in $PATH |
| 9118 |
+ |
do |
| 9119 |
+ |
IFS=$as_save_IFS |
| 9120 |
+ |
test -z "$as_dir" && as_dir=. |
| 9121 |
+ |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 9122 |
+ |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 9123 |
+ |
ac_cv_path_PERLINTERP="$as_dir/$ac_word$ac_exec_ext" |
| 9124 |
+ |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9125 |
+ |
break 2 |
| 9126 |
+ |
fi |
| 9127 |
+ |
done |
| 9128 |
+ |
done |
| 9129 |
+ |
|
| 9130 |
+ |
test -z "$ac_cv_path_PERLINTERP" && ac_cv_path_PERLINTERP="perl" |
| 9131 |
+ |
;; |
| 9132 |
+ |
esac |
| 9133 |
+ |
fi |
| 9134 |
+ |
PERLINTERP=$ac_cv_path_PERLINTERP |
| 9135 |
+ |
|
| 9136 |
+ |
if test -n "$PERLINTERP"; then |
| 9137 |
+ |
echo "$as_me:$LINENO: result: $PERLINTERP" >&5 |
| 9138 |
+ |
echo "${ECHO_T}$PERLINTERP" >&6 |
| 9139 |
+ |
else |
| 9140 |
+ |
echo "$as_me:$LINENO: result: no" >&5 |
| 9141 |
+ |
echo "${ECHO_T}no" >&6 |
| 9142 |
+ |
fi |
| 9143 |
+ |
|
| 9144 |
+ |
ac_cv_path_perlinterp="$PERLINTERP" |
| 9145 |
+ |
_sHpB='#!' |
| 9146 |
+ |
|
| 9147 |
+ |
|
| 9148 |
+ |
# Check whether --with-perl-shebang or --without-perl-shebang was given. |
| 9149 |
+ |
if test "${with_perl_shebang+set}" = set; then |
| 9150 |
+ |
withval="$with_perl_shebang" |
| 9151 |
+ |
opt_perl_shebang="$withval" |
| 9152 |
+ |
else |
| 9153 |
+ |
opt_perl_shebang="not_set" |
| 9154 |
+ |
fi; |
| 9155 |
+ |
echo "$as_me:$LINENO: checking whether explicit instead of detected sharpbang is to be used" >&5 |
| 9156 |
+ |
echo $ECHO_N "checking whether explicit instead of detected sharpbang is to be used... $ECHO_C" >&6 |
| 9157 |
+ |
if test "${ax_cv_opt_perl_shebang+set}" = set; then |
| 9158 |
+ |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9159 |
+ |
else |
| 9160 |
+ |
case "$opt_perl_shebang" in |
| 9161 |
+ |
not_set ) ax_cv_opt_perl_shebang='' |
| 9162 |
+ |
;; |
| 9163 |
+ |
* ) |
| 9164 |
+ |
ax_cv_opt_perl_shebang=`echo "$opt_perl_shebang" | sed -e's|^#!\s*\(.*\)$|\1|'` |
| 9165 |
+ |
esac |
| 9166 |
+ |
|
| 9167 |
+ |
fi |
| 9168 |
+ |
echo "$as_me:$LINENO: result: $ax_cv_opt_perl_shebang" >&5 |
| 9169 |
+ |
echo "${ECHO_T}$ax_cv_opt_perl_shebang" >&6 |
| 9170 |
+ |
if test "A$ax_cv_opt_perl_shebang" != "A" |
| 9171 |
+ |
then |
| 9172 |
+ |
ac_cv_sys_kernshrpbang_perl="$ax_cv_opt_perl_shebang" |
| 9173 |
+ |
PERL_SHEBANG="$ac_cv_sys_kernshrpbang_perl" |
| 9174 |
+ |
{ echo "$as_me:$LINENO: OK - PERL_SHEBANG is $_sHpB$PERL_SHEBANG." >&5 |
| 9175 |
+ |
echo "$as_me: OK - PERL_SHEBANG is $_sHpB$PERL_SHEBANG." >&6;} |
| 9176 |
+ |
|
| 9177 |
+ |
# Automatic detection of sharpbang formula starts here |
| 9178 |
+ |
else |
| 9179 |
+ |
_somian_shbangperl=`$PERLINTERP -V:startperl` |
| 9180 |
+ |
negclass="[^']"; # must leave this comment: m4 will remove the outer brackets for us, heheh |
| 9181 |
+ |
echo "$as_me:$LINENO: checking for kernel sharpbang invocation to start perl" >&5 |
| 9182 |
+ |
echo $ECHO_N "checking for kernel sharpbang invocation to start perl... $ECHO_C" >&6 |
| 9183 |
+ |
if test "${ac_cv_sys_kernshrpbang_perl+set}" = set; then |
| 9184 |
+ |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9185 |
+ |
else |
| 9186 |
+ |
_somian_kspb_perl=`echo "$_somian_shbangperl" | sed -ne"s|.*='\($negclass*\)';$|\1|p"` |
| 9187 |
+ |
if test "x$_somian_kspb_perl" == x |
| 9188 |
+ |
then _somian_ksbp_warn_empty='durnit' |
| 9189 |
+ |
else |
| 9190 |
+ |
case "A$_somian_kspb_perl" in |
| 9191 |
+ |
A#!*perl* ) |
| 9192 |
+ |
ac_cv_sys_kernshrpbang_perl=`echo "$_somian_kspb_perl" | sed -e's|#!\(.*\)$|\1|'` |
| 9193 |
+ |
;; |
| 9194 |
+ |
A* ) _somian_ksbp_warn_defau='trouble' |
| 9195 |
+ |
ac_cv_sys_kernshrpbang_perl="$PERLINTERP" |
| 9196 |
+ |
esac |
| 9197 |
+ |
fi |
| 9198 |
+ |
|
| 9199 |
+ |
fi |
| 9200 |
+ |
echo "$as_me:$LINENO: result: $ac_cv_sys_kernshrpbang_perl" >&5 |
| 9201 |
+ |
echo "${ECHO_T}$ac_cv_sys_kernshrpbang_perl" >&6 |
| 9202 |
+ |
# The above prints Checking ... result message to user. |
| 9203 |
+ |
PERL_SHEBANG="$ac_cv_sys_kernshrpbang_perl" |
| 9204 |
+ |
|
| 9205 |
+ |
if test A${_somian_ksbp_warn_empty+set} == Aset |
| 9206 |
+ |
then { echo "$as_me:$LINENO: WARNING: In last check, doing $PERLINTERP -V:startperl yielded empty result! That should not happen." >&5 |
| 9207 |
+ |
echo "$as_me: WARNING: In last check, doing $PERLINTERP -V:startperl yielded empty result! That should not happen." >&2;} |
| 9208 |
+ |
fi |
| 9209 |
+ |
# Inform user after printing result value |
| 9210 |
+ |
if test A${_somian_ksbp_warn_defau+set} == Aset |
| 9211 |
+ |
then { echo "$as_me:$LINENO: Maybe Not good -" >&5 |
| 9212 |
+ |
echo "$as_me: Maybe Not good -" >&6;} |
| 9213 |
+ |
{ echo "$as_me:$LINENO: WARNING: In last check perl's Config query did not work so we bunted: $_sHpB$PERLINTERP" >&5 |
| 9214 |
+ |
echo "$as_me: WARNING: In last check perl's Config query did not work so we bunted: $_sHpB$PERLINTERP" >&2;} |
| 9215 |
+ |
else { echo "$as_me:$LINENO: OK Good result - " >&5 |
| 9216 |
+ |
echo "$as_me: OK Good result - " >&6;} |
| 9217 |
+ |
{ echo "$as_me:$LINENO: In last check we got a proper-looking answer from perl's Config: $_somian_shbangperl" >&5 |
| 9218 |
+ |
echo "$as_me: In last check we got a proper-looking answer from perl's Config: $_somian_shbangperl" >&6;} |
| 9219 |
+ |
fi |
| 9220 |
+ |
fi |
| 9221 |
+ |
|
| 9222 |
|
# Extract the first word of "ar", so it can be a program name with args. |
| 9223 |
|
set dummy ar; ac_word=$2 |
| 9224 |
|
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 9316 |
|
exit 1 |
| 9317 |
|
fi |
| 9318 |
|
|
| 9319 |
+ |
# Extract the first word of "ps", so it can be a program name with args. |
| 9320 |
+ |
set dummy ps; ac_word=$2 |
| 9321 |
+ |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 9322 |
+ |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 9323 |
+ |
if test "${ac_cv_path_PS+set}" = set; then |
| 9324 |
+ |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9325 |
+ |
else |
| 9326 |
+ |
case $PS in |
| 9327 |
+ |
[\\/]* | ?:[\\/]*) |
| 9328 |
+ |
ac_cv_path_PS="$PS" # Let the user override the test with a path. |
| 9329 |
+ |
;; |
| 9330 |
+ |
*) |
| 9331 |
+ |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9332 |
+ |
for as_dir in $PATH |
| 9333 |
+ |
do |
| 9334 |
+ |
IFS=$as_save_IFS |
| 9335 |
+ |
test -z "$as_dir" && as_dir=. |
| 9336 |
+ |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 9337 |
+ |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 9338 |
+ |
ac_cv_path_PS="$as_dir/$ac_word$ac_exec_ext" |
| 9339 |
+ |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9340 |
+ |
break 2 |
| 9341 |
+ |
fi |
| 9342 |
+ |
done |
| 9343 |
+ |
done |
| 9344 |
|
|
| 9345 |
+ |
;; |
| 9346 |
+ |
esac |
| 9347 |
+ |
fi |
| 9348 |
+ |
PS=$ac_cv_path_PS |
| 9349 |
|
|
| 9350 |
+ |
if test -n "$PS"; then |
| 9351 |
+ |
echo "$as_me:$LINENO: result: $PS" >&5 |
| 9352 |
+ |
echo "${ECHO_T}$PS" >&6 |
| 9353 |
+ |
else |
| 9354 |
+ |
echo "$as_me:$LINENO: result: no" >&5 |
| 9355 |
+ |
echo "${ECHO_T}no" >&6 |
| 9356 |
+ |
fi |
| 9357 |
+ |
|
| 9358 |
+ |
echo "$as_me:$LINENO: checking for POSIX or BSD ps syntax" >&5 |
| 9359 |
+ |
echo $ECHO_N "checking for POSIX or BSD ps syntax... $ECHO_C" >&6 |
| 9360 |
+ |
if test "${ac_cv_prog_ps_syntax+set}" = set; then |
| 9361 |
+ |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9362 |
+ |
else |
| 9363 |
+ |
|
| 9364 |
+ |
if $PS ax -o rss > /dev/null 2>&1; then |
| 9365 |
+ |
ac_cv_prog_ps_ax=yes |
| 9366 |
+ |
else |
| 9367 |
+ |
ac_cv_prog_ps_ax=no |
| 9368 |
+ |
fi |
| 9369 |
+ |
if $PS -ef -o rss > /dev/null 2>&1; then |
| 9370 |
+ |
ac_cv_prog_ps_ef=yes |
| 9371 |
+ |
else |
| 9372 |
+ |
ac_cv_prog_ps_ef=no |
| 9373 |
+ |
fi |
| 9374 |
+ |
if test "$ac_cv_prog_ps_ax" = yes; then |
| 9375 |
+ |
ac_cv_prog_ps_syntax=BSD |
| 9376 |
+ |
else |
| 9377 |
+ |
if test "$ac_cv_prog_ps_ef" = yes; then |
| 9378 |
+ |
ac_cv_prog_ps_syntax=POSIX |
| 9379 |
+ |
else |
| 9380 |
+ |
{ { echo "$as_me:$LINENO: error: Could not determine ps syntax" >&5 |
| 9381 |
+ |
echo "$as_me: error: Could not determine ps syntax" >&2;} |
| 9382 |
+ |
{ (exit 1); exit 1; }; } |
| 9383 |
+ |
fi |
| 9384 |
+ |
fi |
| 9385 |
+ |
|
| 9386 |
+ |
fi |
| 9387 |
+ |
echo "$as_me:$LINENO: result: $ac_cv_prog_ps_syntax" >&5 |
| 9388 |
+ |
echo "${ECHO_T}$ac_cv_prog_ps_syntax" >&6 |
| 9389 |
+ |
|
| 9390 |
+ |
|
| 9391 |
+ |
cat >>confdefs.h <<_ACEOF |
| 9392 |
+ |
#define PSCOMMAND $PS |
| 9393 |
+ |
_ACEOF |
| 9394 |
+ |
|
| 9395 |
+ |
|
| 9396 |
+ |
cat >>confdefs.h <<\_ACEOF |
| 9397 |
+ |
#define OBAPI |
| 9398 |
+ |
_ACEOF |
| 9399 |
+ |
|
| 9400 |
+ |
|
| 9401 |
+ |
|
| 9402 |
+ |
if test "$ac_cv_prog_ps_syntax" = BSD; then |
| 9403 |
+ |
cat >>confdefs.h <<\_ACEOF |
| 9404 |
+ |
#define PSTYPE_IS_BSD 1 |
| 9405 |
+ |
_ACEOF |
| 9406 |
+ |
|
| 9407 |
+ |
else |
| 9408 |
+ |
if test "$ac_cv_prog_ps_syntax" = POSIX; then |
| 9409 |
+ |
cat >>confdefs.h <<\_ACEOF |
| 9410 |
+ |
#define PSTYPE_IS_POSIX 1 |
| 9411 |
+ |
_ACEOF |
| 9412 |
+ |
|
| 9413 |
+ |
else |
| 9414 |
+ |
{ { echo "$as_me:$LINENO: error: Unknown ps syntax type!" >&5 |
| 9415 |
+ |
echo "$as_me: error: Unknown ps syntax type!" >&2;} |
| 9416 |
+ |
{ (exit 1); exit 1; }; } |
| 9417 |
+ |
fi |
| 9418 |
+ |
fi |
| 9419 |
+ |
|
| 9420 |
+ |
|
| 9421 |
|
# Check whether --with-mpi or --without-mpi was given. |
| 9422 |
|
if test "${with_mpi+set}" = set; then |
| 9423 |
|
withval="$with_mpi" |
| 9446 |
|
echo "$as_me:$LINENO: checking for mpi.h" >&5 |
| 9447 |
|
echo $ECHO_N "checking for mpi.h... $ECHO_C" >&6 |
| 9448 |
|
have_mpi_h=0 |
| 9449 |
+ |
rm -f conftest* |
| 9450 |
|
echo '#include <mpi.h>' > conftest.cc |
| 9451 |
< |
if test -z "`${CXX} -I${MPI_INC_DIR} -c conftest.cc 2>&1`"; then |
| 9451 |
> |
if ${CXX} -I${MPI_INC_DIR} -c conftest.cc 2>&1 ; then |
| 9452 |
|
echo "$as_me:$LINENO: result: yes" >&5 |
| 9453 |
|
echo "${ECHO_T}yes" >&6 |
| 9454 |
|
have_mpi_h=1 |
| 9455 |
|
else |
| 9456 |
+ |
if test -s conftest.out ; then |
| 9457 |
+ |
cat conftest.out >> config.log |
| 9458 |
+ |
fi |
| 9459 |
|
echo "$as_me:$LINENO: result: no! Check MPI include paths" >&5 |
| 9460 |
|
echo "${ECHO_T}no! Check MPI include paths" >&6 |
| 9461 |
|
USE_MPI="no" |
| 9549 |
|
cat conftest.err >&5 |
| 9550 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9551 |
|
(exit $ac_status); } && |
| 9552 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
| 6823 |
< |
|| test ! -s conftest.err' |
| 9552 |
> |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9553 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9554 |
|
(eval $ac_try) 2>&5 |
| 9555 |
|
ac_status=$? |
| 9618 |
|
cat conftest.err >&5 |
| 9619 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9620 |
|
(exit $ac_status); } && |
| 9621 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
| 6893 |
< |
|| test ! -s conftest.err' |
| 9621 |
> |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9622 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9623 |
|
(eval $ac_try) 2>&5 |
| 9624 |
|
ac_status=$? |
| 9688 |
|
cat conftest.err >&5 |
| 9689 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9690 |
|
(exit $ac_status); } && |
| 9691 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
| 6964 |
< |
|| test ! -s conftest.err' |
| 9691 |
> |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9692 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9693 |
|
(eval $ac_try) 2>&5 |
| 9694 |
|
ac_status=$? |
| 9718 |
|
fi |
| 9719 |
|
|
| 9720 |
|
fi |
| 9721 |
< |
|
| 6995 |
< |
$as_unset ac_cv_lib_mpi_MPI_Init |
| 9721 |
> |
$as_unset ac_cv_lib_mpich_MPI_Init |
| 9722 |
|
if test x = x"$MPI_LIB"; then |
| 9723 |
< |
echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5 |
| 9724 |
< |
echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6 |
| 9725 |
< |
if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then |
| 9723 |
> |
echo "$as_me:$LINENO: checking for MPI_Init in -lmpich" >&5 |
| 9724 |
> |
echo $ECHO_N "checking for MPI_Init in -lmpich... $ECHO_C" >&6 |
| 9725 |
> |
if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then |
| 9726 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9727 |
|
else |
| 9728 |
|
ac_check_lib_save_LIBS=$LIBS |
| 9729 |
< |
LIBS="-lmpi -llam -lpthread $LIBS" |
| 9729 |
> |
LIBS="-lmpich "-lpmpich" $LIBS" |
| 9730 |
|
cat >conftest.$ac_ext <<_ACEOF |
| 9731 |
|
/* confdefs.h. */ |
| 9732 |
|
_ACEOF |
| 9758 |
|
cat conftest.err >&5 |
| 9759 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9760 |
|
(exit $ac_status); } && |
| 9761 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
| 7036 |
< |
|| test ! -s conftest.err' |
| 9761 |
> |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9762 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9763 |
|
(eval $ac_try) 2>&5 |
| 9764 |
|
ac_status=$? |
| 9770 |
|
ac_status=$? |
| 9771 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9772 |
|
(exit $ac_status); }; }; then |
| 9773 |
< |
ac_cv_lib_mpi_MPI_Init=yes |
| 9773 |
> |
ac_cv_lib_mpich_MPI_Init=yes |
| 9774 |
|
else |
| 9775 |
|
echo "$as_me: failed program was:" >&5 |
| 9776 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
| 9777 |
|
|
| 9778 |
< |
ac_cv_lib_mpi_MPI_Init=no |
| 9778 |
> |
ac_cv_lib_mpich_MPI_Init=no |
| 9779 |
|
fi |
| 9780 |
|
rm -f conftest.err conftest.$ac_objext \ |
| 9781 |
|
conftest$ac_exeext conftest.$ac_ext |
| 9782 |
|
LIBS=$ac_check_lib_save_LIBS |
| 9783 |
|
fi |
| 9784 |
< |
echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5 |
| 9785 |
< |
echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6 |
| 9786 |
< |
if test $ac_cv_lib_mpi_MPI_Init = yes; then |
| 9787 |
< |
MPI_LIB="-lmpi -llam -lpthread" |
| 7063 |
< |
else |
| 7064 |
< |
|
| 7065 |
< |
{ { echo "$as_me:$LINENO: error: Didn't find liblam, libmpi, or libmpich; check path for MPI package first..." >&5 |
| 7066 |
< |
echo "$as_me: error: Didn't find liblam, libmpi, or libmpich; check path for MPI package first..." >&2;} |
| 7067 |
< |
{ (exit 1); exit 1; }; } |
| 7068 |
< |
USE_MPI="no" |
| 7069 |
< |
|
| 9784 |
> |
echo "$as_me:$LINENO: result: $ac_cv_lib_mpich_MPI_Init" >&5 |
| 9785 |
> |
echo "${ECHO_T}$ac_cv_lib_mpich_MPI_Init" >&6 |
| 9786 |
> |
if test $ac_cv_lib_mpich_MPI_Init = yes; then |
| 9787 |
> |
MPI_LIB="-lmpich -lpmpich" |
| 9788 |
|
fi |
| 9789 |
|
|
| 9790 |
|
fi |
| 9791 |
|
|
| 9792 |
< |
|
| 9793 |
< |
|
| 9794 |
< |
echo "$as_me:$LINENO: checking for MPI Fortran library" >&5 |
| 9795 |
< |
echo $ECHO_N "checking for MPI Fortran library... $ECHO_C" >&6 |
| 9796 |
< |
MPI_F90_LIB="" |
| 7079 |
< |
if test -f "$MPI_LIB_DIR/libfmpich.a" ; then |
| 7080 |
< |
MPI_F90_LIB="-lfmpich" |
| 7081 |
< |
elif test -f "$MPI_LIB_DIR/liblamf77mpi.a" ; then |
| 7082 |
< |
MPI_F90_LIB="-llamf77mpi" |
| 7083 |
< |
else |
| 7084 |
< |
MPI_F90_LIB=" " |
| 7085 |
< |
fi |
| 7086 |
< |
echo "$as_me:$LINENO: result: found $MPI_F90_LIB" >&5 |
| 7087 |
< |
echo "${ECHO_T}found $MPI_F90_LIB" >&6 |
| 7088 |
< |
|
| 7089 |
< |
|
| 7090 |
< |
fi |
| 7091 |
< |
|
| 7092 |
< |
|
| 7093 |
< |
|
| 7094 |
< |
# Check whether --with-sprng or --without-sprng was given. |
| 7095 |
< |
if test "${with_sprng+set}" = set; then |
| 7096 |
< |
withval="$with_sprng" |
| 7097 |
< |
with_sprng=$withval |
| 7098 |
< |
else |
| 7099 |
< |
with_sprng="/usr/local" |
| 7100 |
< |
fi; |
| 7101 |
< |
|
| 7102 |
< |
case "x$with_sprng" in |
| 7103 |
< |
xyes | "x") USE_SPRNG=yes;; |
| 7104 |
< |
xno) USE_SPRNG=no ;; |
| 7105 |
< |
*) SPRNG="$with_sprng"; USE_SPRNG=yes ;; |
| 7106 |
< |
esac |
| 7107 |
< |
if test "$USE_SPRNG" = "yes" -a -z "$with_sprng"; then |
| 7108 |
< |
SPRNG="/usr/local" |
| 7109 |
< |
fi |
| 7110 |
< |
if test "$USE_SPRNG" = "yes"; then |
| 7111 |
< |
|
| 7112 |
< |
|
| 7113 |
< |
# Set variables... |
| 7114 |
< |
SPRNG_LIB_DIR="$SPRNG/lib" |
| 7115 |
< |
SPRNG_INC_DIR="$SPRNG/include" |
| 7116 |
< |
|
| 7117 |
< |
|
| 7118 |
< |
|
| 7119 |
< |
echo "$as_me:$LINENO: checking for sprng.h" >&5 |
| 7120 |
< |
echo $ECHO_N "checking for sprng.h... $ECHO_C" >&6 |
| 7121 |
< |
have_sprng_h=0 |
| 7122 |
< |
echo '#include <sprng.h>' > conftest.cc |
| 7123 |
< |
if test -z "`${CXX} -I${SPRNG_INC_DIR} -c conftest.cc 2>&1`"; then |
| 7124 |
< |
echo "$as_me:$LINENO: result: yes" >&5 |
| 7125 |
< |
echo "${ECHO_T}yes" >&6 |
| 7126 |
< |
have_sprng_h=1 |
| 7127 |
< |
else |
| 7128 |
< |
echo "$as_me:$LINENO: result: no! Check SPRNG include path!" >&5 |
| 7129 |
< |
echo "${ECHO_T}no! Check SPRNG include path!" >&6 |
| 7130 |
< |
USE_SPRNG="no" |
| 7131 |
< |
fi |
| 7132 |
< |
rm -f conftest* |
| 7133 |
< |
if test "$have_sprng_h" = 1; then |
| 7134 |
< |
|
| 7135 |
< |
cat >>confdefs.h <<\_ACEOF |
| 7136 |
< |
#define HAVE_SPRNG_H 1 |
| 7137 |
< |
_ACEOF |
| 7138 |
< |
|
| 7139 |
< |
fi |
| 7140 |
< |
|
| 7141 |
< |
ac_ext=c |
| 7142 |
< |
ac_cpp='$CPP $CPPFLAGS' |
| 7143 |
< |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7144 |
< |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7145 |
< |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7146 |
< |
|
| 7147 |
< |
ac_save_LDFLAGS=$LDFLAGS |
| 7148 |
< |
LDFLAGS="${LDFLAGS} -L${SPRNG_LIB_DIR} " |
| 7149 |
< |
|
| 7150 |
< |
echo "$as_me:$LINENO: checking for init_rng in -lsprng" >&5 |
| 7151 |
< |
echo $ECHO_N "checking for init_rng in -lsprng... $ECHO_C" >&6 |
| 7152 |
< |
if test "${ac_cv_lib_sprng_init_rng+set}" = set; then |
| 9792 |
> |
$as_unset ac_cv_lib_mpi_MPI_Init |
| 9793 |
> |
if test x = x"$MPI_LIB"; then |
| 9794 |
> |
echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5 |
| 9795 |
> |
echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6 |
| 9796 |
> |
if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then |
| 9797 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9798 |
|
else |
| 9799 |
|
ac_check_lib_save_LIBS=$LIBS |
| 9800 |
< |
LIBS="-lsprng $LIBS" |
| 9800 |
> |
LIBS="-lmpi -llam -lpthread $LIBS" |
| 9801 |
|
cat >conftest.$ac_ext <<_ACEOF |
| 9802 |
|
/* confdefs.h. */ |
| 9803 |
|
_ACEOF |
| 9811 |
|
#endif |
| 9812 |
|
/* We use char because int might match the return type of a gcc2 |
| 9813 |
|
builtin and then its argument prototype would still apply. */ |
| 9814 |
< |
char init_rng (); |
| 9814 |
> |
char MPI_Init (); |
| 9815 |
|
int |
| 9816 |
|
main () |
| 9817 |
|
{ |
| 9818 |
< |
init_rng (); |
| 9818 |
> |
MPI_Init (); |
| 9819 |
|
; |
| 9820 |
|
return 0; |
| 9821 |
|
} |
| 9829 |
|
cat conftest.err >&5 |
| 9830 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9831 |
|
(exit $ac_status); } && |
| 9832 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
| 7189 |
< |
|| test ! -s conftest.err' |
| 9832 |
> |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9833 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9834 |
|
(eval $ac_try) 2>&5 |
| 9835 |
|
ac_status=$? |
| 9841 |
|
ac_status=$? |
| 9842 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9843 |
|
(exit $ac_status); }; }; then |
| 9844 |
< |
ac_cv_lib_sprng_init_rng=yes |
| 9844 |
> |
ac_cv_lib_mpi_MPI_Init=yes |
| 9845 |
|
else |
| 9846 |
|
echo "$as_me: failed program was:" >&5 |
| 9847 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
| 9848 |
|
|
| 9849 |
< |
ac_cv_lib_sprng_init_rng=no |
| 9849 |
> |
ac_cv_lib_mpi_MPI_Init=no |
| 9850 |
|
fi |
| 9851 |
|
rm -f conftest.err conftest.$ac_objext \ |
| 9852 |
|
conftest$ac_exeext conftest.$ac_ext |
| 9853 |
|
LIBS=$ac_check_lib_save_LIBS |
| 9854 |
|
fi |
| 9855 |
< |
echo "$as_me:$LINENO: result: $ac_cv_lib_sprng_init_rng" >&5 |
| 9856 |
< |
echo "${ECHO_T}$ac_cv_lib_sprng_init_rng" >&6 |
| 9857 |
< |
if test $ac_cv_lib_sprng_init_rng = yes; then |
| 9858 |
< |
SPRNG_LIB="-lsprng" |
| 9855 |
> |
echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5 |
| 9856 |
> |
echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6 |
| 9857 |
> |
if test $ac_cv_lib_mpi_MPI_Init = yes; then |
| 9858 |
> |
MPI_LIB="-lmpi -llam -lpthread" |
| 9859 |
|
else |
| 9860 |
|
|
| 9861 |
< |
{ { echo "$as_me:$LINENO: error: Didn't find libsprng; check path for SPRNG package first..." >&5 |
| 9862 |
< |
echo "$as_me: error: Didn't find libsprng; check path for SPRNG package first..." >&2;} |
| 9861 |
> |
{ { echo "$as_me:$LINENO: error: Didn't find liblam, libmpi, or libmpich; check path for MPI package first..." >&5 |
| 9862 |
> |
echo "$as_me: error: Didn't find liblam, libmpi, or libmpich; check path for MPI package first..." >&2;} |
| 9863 |
|
{ (exit 1); exit 1; }; } |
| 9864 |
< |
USE_SPRNG="no" |
| 9864 |
> |
USE_MPI="no" |
| 9865 |
|
|
| 9866 |
|
fi |
| 9867 |
|
|
| 9868 |
+ |
fi |
| 9869 |
|
|
| 9870 |
< |
if test "$USE_SPRNG" = "no"; then |
| 9871 |
< |
{ { echo "$as_me:$LINENO: error: No working SPRNG library found" >&5 |
| 9872 |
< |
echo "$as_me: error: No working SPRNG library found" >&2;} |
| 9873 |
< |
{ (exit 1); exit 1; }; } |
| 9870 |
> |
|
| 9871 |
> |
|
| 9872 |
> |
echo "$as_me:$LINENO: checking for MPI Fortran library" >&5 |
| 9873 |
> |
echo $ECHO_N "checking for MPI Fortran library... $ECHO_C" >&6 |
| 9874 |
> |
MPI_F90_LIB="" |
| 9875 |
> |
if test -f "$MPI_LIB_DIR/libfmpich.a" ; then |
| 9876 |
> |
MPI_F90_LIB="-lfmpich" |
| 9877 |
> |
elif test -f "$MPI_LIB_DIR/liblamf77mpi.a" ; then |
| 9878 |
> |
MPI_F90_LIB="-llamf77mpi" |
| 9879 |
> |
else |
| 9880 |
> |
MPI_F90_LIB=" " |
| 9881 |
|
fi |
| 9882 |
+ |
echo "$as_me:$LINENO: result: found $MPI_F90_LIB" >&5 |
| 9883 |
+ |
echo "${ECHO_T}found $MPI_F90_LIB" >&6 |
| 9884 |
|
|
| 9885 |
|
|
| 9886 |
|
fi |
| 9887 |
|
|
| 9888 |
|
|
| 9889 |
|
|
| 7237 |
– |
echo "$as_me:$LINENO: checking if MKL is wanted" >&5 |
| 7238 |
– |
echo $ECHO_N "checking if MKL is wanted... $ECHO_C" >&6 |
| 9890 |
|
|
| 9891 |
< |
# Check whether --with-mkl or --without-mkl was given. |
| 9892 |
< |
if test "${with_mkl+set}" = set; then |
| 9893 |
< |
withval="$with_mkl" |
| 9894 |
< |
echo "$as_me:$LINENO: result: yes" >&5 |
| 9895 |
< |
echo "${ECHO_T}yes" >&6 |
| 9896 |
< |
for dir in $withval /usr/local/intel/mkl61 /opt/intel/mkl61; do |
| 9897 |
< |
mkldir="$dir" |
| 9898 |
< |
if test -f "$dir/include/mkl.h"; then |
| 9899 |
< |
found_mkl="yes"; |
| 9900 |
< |
break; |
| 9901 |
< |
fi |
| 9902 |
< |
done |
| 9903 |
< |
if test x_$found_mkl != x_yes; then |
| 9904 |
< |
{ { echo "$as_me:$LINENO: error: Cannot find MKL includes" >&5 |
| 9905 |
< |
echo "$as_me: error: Cannot find MKL includes" >&2;} |
| 9906 |
< |
{ (exit 1); exit 1; }; } |
| 9907 |
< |
else |
| 9908 |
< |
printf "MKL includes found in $mkldir/include\n"; |
| 9891 |
> |
USE_CGAL=no |
| 9892 |
> |
cgal_makefile=auto |
| 9893 |
> |
|
| 9894 |
> |
# Check whether --with-cgal-makefile or --without-cgal-makefile was given. |
| 9895 |
> |
if test "${with_cgal_makefile+set}" = set; then |
| 9896 |
> |
withval="$with_cgal_makefile" |
| 9897 |
> |
cgal_makefile="$withval" |
| 9898 |
> |
fi; |
| 9899 |
> |
|
| 9900 |
> |
if test "x$cgal_makefile" != xno; then |
| 9901 |
> |
|
| 9902 |
> |
if test "x$cgal_makefile" = xauto -a "x$CGAL_MAKEFILE" != x; then |
| 9903 |
> |
cgal_makefile="$CGAL_MAKEFILE" |
| 9904 |
> |
fi |
| 9905 |
> |
|
| 9906 |
> |
echo "$as_me:$LINENO: checking for cgal_makefile: $cgal_makefile" >&5 |
| 9907 |
> |
echo $ECHO_N "checking for cgal_makefile: $cgal_makefile... $ECHO_C" >&6 |
| 9908 |
> |
|
| 9909 |
> |
if test -f "$cgal_makefile"; then |
| 9910 |
> |
|
| 9911 |
> |
cat >config.tmp.Makefile <<EOF |
| 9912 |
> |
include $cgal_makefile |
| 9913 |
> |
default: |
| 9914 |
> |
@echo CGAL_OS_COMPILER=\"\${CGAL_OS_COMPILER}\" >config.tmp.cgalvariables |
| 9915 |
> |
@echo CGAL_INCLDIR=\"\${CGAL_INCL_DIR}\" >>config.tmp.cgalvariables |
| 9916 |
> |
@echo CGAL_INCLCONFDIR=\"\${CGAL_INCL_CONF_DIR}\" >>config.tmp.cgalvariables |
| 9917 |
> |
@echo CGAL_LIBDIR=\"\${CGAL_LIB_DIR}/\${CGAL_OS_COMPILER}\" >>config.tmp.cgalvariables |
| 9918 |
> |
@echo CGAL_RLIBDIR=\"\${CGAL_LIB_DIR}/\${CGAL_OS_COMPILER}\" >>config.tmp.cgalvariables |
| 9919 |
> |
@echo CGAL_CXXFLAGS=\"\${CGAL_CXXFLAGS}\" >>config.tmp.cgalvariables |
| 9920 |
> |
@echo GMP_INCLDIR=\"\${GMP_INCL_DIR}\" >>config.tmp.cgalvariables |
| 9921 |
> |
@echo GMP_LIBDIR=\"\${GMP_LIB_DIR}\" >>config.tmp.cgalvariables |
| 9922 |
> |
@echo GMP_RLIBDIR=\"\${GMP_LIB_DIR}\" >>config.tmp.cgalvariables |
| 9923 |
> |
@echo LEDA_INCLDIR=\"\${LEDA_INCL_DIR}\" >>config.tmp.cgalvariables |
| 9924 |
> |
@echo LEDA_LIBDIR=\"\${LEDA_LIB_DIR}\" >>config.tmp.cgalvariables |
| 9925 |
> |
@echo LEDA_RLIBDIR=\"\${LEDA_LIB_DIR}\" >>config.tmp.cgalvariables |
| 9926 |
> |
EOF |
| 9927 |
> |
|
| 9928 |
> |
make -s -f config.tmp.Makefile |
| 9929 |
> |
. config.tmp.cgalvariables |
| 9930 |
> |
|
| 9931 |
> |
rm -f config.tmp.Makefile config.tmp.cgalvariables |
| 9932 |
> |
|
| 9933 |
> |
if test "x$CGAL_INCLDIR" = "x"; then |
| 9934 |
> |
CGAL_INCLDIR="" |
| 9935 |
|
fi |
| 9936 |
|
|
| 9937 |
+ |
if test "x$CGAL_LIBDIR" = "x"; then |
| 9938 |
+ |
CGAL_LIBDIR="" |
| 9939 |
+ |
fi |
| 9940 |
|
|
| 9941 |
+ |
if test "x$CGAL_RLIBDIR" = "x"; then |
| 9942 |
+ |
CGAL_RLIBDIR="" |
| 9943 |
+ |
fi |
| 9944 |
|
|
| 9945 |
< |
ac_ext=c |
| 9946 |
< |
ac_cpp='$CPP $CPPFLAGS' |
| 9947 |
< |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7265 |
< |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7266 |
< |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 9945 |
> |
if test "x$LEDA_INCLDIR" = "x"; then |
| 9946 |
> |
LEDA_INCLDIR="" |
| 9947 |
> |
fi |
| 9948 |
|
|
| 9949 |
< |
ac_save_CPPFLAGS=$CPPFLAGS |
| 9950 |
< |
CPPFLAGS="${CPPFLAGS} -I${mkldir}/include" |
| 9951 |
< |
ac_save_LDFLAGS=$LDFLAGS |
| 9952 |
< |
LDFLAGS="${LDFLAGS} -L${mkldir}/lib/32 -lmkl -lvml -lguide" |
| 9953 |
< |
if test "${ac_cv_header_mkl_h+set}" = set; then |
| 9954 |
< |
echo "$as_me:$LINENO: checking for mkl.h" >&5 |
| 9955 |
< |
echo $ECHO_N "checking for mkl.h... $ECHO_C" >&6 |
| 9956 |
< |
if test "${ac_cv_header_mkl_h+set}" = set; then |
| 9949 |
> |
if test "x$LEDA_LIBDIR" = "x"; then |
| 9950 |
> |
LEDA_LIBDIR="" |
| 9951 |
> |
fi |
| 9952 |
> |
|
| 9953 |
> |
if test "x$LEDA_RLIBDIR" = "x"; then |
| 9954 |
> |
LEDA_RLIBDIR="" |
| 9955 |
> |
fi |
| 9956 |
> |
|
| 9957 |
> |
if test "x$GMP_INCLDIR" = "x"; then |
| 9958 |
> |
GMP_INCLDIR="" |
| 9959 |
> |
fi |
| 9960 |
> |
|
| 9961 |
> |
if test "x$GMP_LIBDIR" = "x"; then |
| 9962 |
> |
GMP_LIBDIR="" |
| 9963 |
> |
fi |
| 9964 |
> |
|
| 9965 |
> |
if test "x$GMP_RLIBDIR" = "x"; then |
| 9966 |
> |
GMP_RLIBDIR="" |
| 9967 |
> |
fi |
| 9968 |
> |
|
| 9969 |
> |
echo "$as_me:$LINENO: result: CGAL_OS_COMPILER= $CGAL_OS_COMPILER" >&5 |
| 9970 |
> |
echo "${ECHO_T}CGAL_OS_COMPILER= $CGAL_OS_COMPILER" >&6 |
| 9971 |
> |
echo "$as_me:$LINENO: result: CGAL_INCLDIR= $CGAL_INCLDIR" >&5 |
| 9972 |
> |
echo "${ECHO_T}CGAL_INCLDIR= $CGAL_INCLDIR" >&6 |
| 9973 |
> |
echo "$as_me:$LINENO: result: CGAL_INCLCONFDIR= $CGAL_INCLCONFDIR" >&5 |
| 9974 |
> |
echo "${ECHO_T}CGAL_INCLCONFDIR= $CGAL_INCLCONFDIR" >&6 |
| 9975 |
> |
echo "$as_me:$LINENO: result: CGAL_LIBDIR= $CGAL_LIBDIR" >&5 |
| 9976 |
> |
echo "${ECHO_T}CGAL_LIBDIR= $CGAL_LIBDIR" >&6 |
| 9977 |
> |
echo "$as_me:$LINENO: result: CGAL_CXXFLAGS= $CGAL_CXXFLAGS" >&5 |
| 9978 |
> |
echo "${ECHO_T}CGAL_CXXFLAGS= $CGAL_CXXFLAGS" >&6 |
| 9979 |
> |
echo "$as_me:$LINENO: result: LEDA_INCLDIR= $LEDA_INCLDIR" >&5 |
| 9980 |
> |
echo "${ECHO_T}LEDA_INCLDIR= $LEDA_INCLDIR" >&6 |
| 9981 |
> |
echo "$as_me:$LINENO: result: LEDA_LIBDIR= $LEDA_LIBDIR" >&5 |
| 9982 |
> |
echo "${ECHO_T}LEDA_LIBDIR= $LEDA_LIBDIR" >&6 |
| 9983 |
> |
echo "$as_me:$LINENO: result: GMP_INCLDIR= $GMP_INCLDIR" >&5 |
| 9984 |
> |
echo "${ECHO_T}GMP_INCLDIR= $GMP_INCLDIR" >&6 |
| 9985 |
> |
echo "$as_me:$LINENO: result: GMP_LIBDIR= $GMP_LIBDIR" >&5 |
| 9986 |
> |
echo "${ECHO_T}GMP_LIBDIR= $GMP_LIBDIR" >&6 |
| 9987 |
> |
|
| 9988 |
> |
ac_ext=cc |
| 9989 |
> |
ac_cpp='$CXXCPP $CPPFLAGS' |
| 9990 |
> |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 9991 |
> |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 9992 |
> |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 9993 |
> |
|
| 9994 |
> |
save_CXXFLAGS="$CXXFLAGS" |
| 9995 |
> |
CXXFLAGS="$CXXFLAGS -I$CGAL_INCLDIR -I$CGAL_INCLCONFDIR" |
| 9996 |
> |
if test "${ac_cv_header_CGAL_Cartesian_h+set}" = set; then |
| 9997 |
> |
echo "$as_me:$LINENO: checking for CGAL/Cartesian.h" >&5 |
| 9998 |
> |
echo $ECHO_N "checking for CGAL/Cartesian.h... $ECHO_C" >&6 |
| 9999 |
> |
if test "${ac_cv_header_CGAL_Cartesian_h+set}" = set; then |
| 10000 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10001 |
|
fi |
| 10002 |
< |
echo "$as_me:$LINENO: result: $ac_cv_header_mkl_h" >&5 |
| 10003 |
< |
echo "${ECHO_T}$ac_cv_header_mkl_h" >&6 |
| 10002 |
> |
echo "$as_me:$LINENO: result: $ac_cv_header_CGAL_Cartesian_h" >&5 |
| 10003 |
> |
echo "${ECHO_T}$ac_cv_header_CGAL_Cartesian_h" >&6 |
| 10004 |
|
else |
| 10005 |
|
# Is the header compilable? |
| 10006 |
< |
echo "$as_me:$LINENO: checking mkl.h usability" >&5 |
| 10007 |
< |
echo $ECHO_N "checking mkl.h usability... $ECHO_C" >&6 |
| 10006 |
> |
echo "$as_me:$LINENO: checking CGAL/Cartesian.h usability" >&5 |
| 10007 |
> |
echo $ECHO_N "checking CGAL/Cartesian.h usability... $ECHO_C" >&6 |
| 10008 |
|
cat >conftest.$ac_ext <<_ACEOF |
| 10009 |
|
/* confdefs.h. */ |
| 10010 |
|
_ACEOF |
| 10012 |
|
cat >>conftest.$ac_ext <<_ACEOF |
| 10013 |
|
/* end confdefs.h. */ |
| 10014 |
|
$ac_includes_default |
| 10015 |
< |
#include <mkl.h> |
| 10015 |
> |
#include <CGAL/Cartesian.h> |
| 10016 |
|
_ACEOF |
| 10017 |
|
rm -f conftest.$ac_objext |
| 10018 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10023 |
|
cat conftest.err >&5 |
| 10024 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10025 |
|
(exit $ac_status); } && |
| 10026 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
| 7303 |
< |
|| test ! -s conftest.err' |
| 10026 |
> |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 10027 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10028 |
|
(eval $ac_try) 2>&5 |
| 10029 |
|
ac_status=$? |
| 10047 |
|
echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10048 |
|
|
| 10049 |
|
# Is the header present? |
| 10050 |
< |
echo "$as_me:$LINENO: checking mkl.h presence" >&5 |
| 10051 |
< |
echo $ECHO_N "checking mkl.h presence... $ECHO_C" >&6 |
| 10050 |
> |
echo "$as_me:$LINENO: checking CGAL/Cartesian.h presence" >&5 |
| 10051 |
> |
echo $ECHO_N "checking CGAL/Cartesian.h presence... $ECHO_C" >&6 |
| 10052 |
|
cat >conftest.$ac_ext <<_ACEOF |
| 10053 |
|
/* confdefs.h. */ |
| 10054 |
|
_ACEOF |
| 10055 |
|
cat confdefs.h >>conftest.$ac_ext |
| 10056 |
|
cat >>conftest.$ac_ext <<_ACEOF |
| 10057 |
|
/* end confdefs.h. */ |
| 10058 |
< |
#include <mkl.h> |
| 10058 |
> |
#include <CGAL/Cartesian.h> |
| 10059 |
|
_ACEOF |
| 10060 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10061 |
|
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10066 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10067 |
|
(exit $ac_status); } >/dev/null; then |
| 10068 |
|
if test -s conftest.err; then |
| 10069 |
< |
ac_cpp_err=$ac_c_preproc_warn_flag |
| 10070 |
< |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 10069 |
> |
ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 10070 |
> |
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 10071 |
|
else |
| 10072 |
|
ac_cpp_err= |
| 10073 |
|
fi |
| 10087 |
|
echo "${ECHO_T}$ac_header_preproc" >&6 |
| 10088 |
|
|
| 10089 |
|
# So? What about this header? |
| 10090 |
< |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10090 |
> |
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
| 10091 |
|
yes:no: ) |
| 10092 |
< |
{ echo "$as_me:$LINENO: WARNING: mkl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10093 |
< |
echo "$as_me: WARNING: mkl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10094 |
< |
{ echo "$as_me:$LINENO: WARNING: mkl.h: proceeding with the compiler's result" >&5 |
| 10095 |
< |
echo "$as_me: WARNING: mkl.h: proceeding with the compiler's result" >&2;} |
| 10092 |
> |
{ echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10093 |
> |
echo "$as_me: WARNING: CGAL/Cartesian.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10094 |
> |
{ echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: proceeding with the compiler's result" >&5 |
| 10095 |
> |
echo "$as_me: WARNING: CGAL/Cartesian.h: proceeding with the compiler's result" >&2;} |
| 10096 |
|
ac_header_preproc=yes |
| 10097 |
|
;; |
| 10098 |
|
no:yes:* ) |
| 10099 |
< |
{ echo "$as_me:$LINENO: WARNING: mkl.h: present but cannot be compiled" >&5 |
| 10100 |
< |
echo "$as_me: WARNING: mkl.h: present but cannot be compiled" >&2;} |
| 10101 |
< |
{ echo "$as_me:$LINENO: WARNING: mkl.h: check for missing prerequisite headers?" >&5 |
| 10102 |
< |
echo "$as_me: WARNING: mkl.h: check for missing prerequisite headers?" >&2;} |
| 10103 |
< |
{ echo "$as_me:$LINENO: WARNING: mkl.h: see the Autoconf documentation" >&5 |
| 10104 |
< |
echo "$as_me: WARNING: mkl.h: see the Autoconf documentation" >&2;} |
| 10105 |
< |
{ echo "$as_me:$LINENO: WARNING: mkl.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 10106 |
< |
echo "$as_me: WARNING: mkl.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10107 |
< |
{ echo "$as_me:$LINENO: WARNING: mkl.h: proceeding with the preprocessor's result" >&5 |
| 10108 |
< |
echo "$as_me: WARNING: mkl.h: proceeding with the preprocessor's result" >&2;} |
| 10109 |
< |
{ echo "$as_me:$LINENO: WARNING: mkl.h: in the future, the compiler will take precedence" >&5 |
| 10110 |
< |
echo "$as_me: WARNING: mkl.h: in the future, the compiler will take precedence" >&2;} |
| 10099 |
> |
{ echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: present but cannot be compiled" >&5 |
| 10100 |
> |
echo "$as_me: WARNING: CGAL/Cartesian.h: present but cannot be compiled" >&2;} |
| 10101 |
> |
{ echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: check for missing prerequisite headers?" >&5 |
| 10102 |
> |
echo "$as_me: WARNING: CGAL/Cartesian.h: check for missing prerequisite headers?" >&2;} |
| 10103 |
> |
{ echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: see the Autoconf documentation" >&5 |
| 10104 |
> |
echo "$as_me: WARNING: CGAL/Cartesian.h: see the Autoconf documentation" >&2;} |
| 10105 |
> |
{ echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 10106 |
> |
echo "$as_me: WARNING: CGAL/Cartesian.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10107 |
> |
{ echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: proceeding with the preprocessor's result" >&5 |
| 10108 |
> |
echo "$as_me: WARNING: CGAL/Cartesian.h: proceeding with the preprocessor's result" >&2;} |
| 10109 |
> |
{ echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: in the future, the compiler will take precedence" >&5 |
| 10110 |
> |
echo "$as_me: WARNING: CGAL/Cartesian.h: in the future, the compiler will take precedence" >&2;} |
| 10111 |
|
( |
| 10112 |
|
cat <<\_ASBOX |
| 10113 |
|
## ------------------------------ ## |
| 10118 |
|
sed "s/^/$as_me: WARNING: /" >&2 |
| 10119 |
|
;; |
| 10120 |
|
esac |
| 10121 |
< |
echo "$as_me:$LINENO: checking for mkl.h" >&5 |
| 10122 |
< |
echo $ECHO_N "checking for mkl.h... $ECHO_C" >&6 |
| 10123 |
< |
if test "${ac_cv_header_mkl_h+set}" = set; then |
| 10121 |
> |
echo "$as_me:$LINENO: checking for CGAL/Cartesian.h" >&5 |
| 10122 |
> |
echo $ECHO_N "checking for CGAL/Cartesian.h... $ECHO_C" >&6 |
| 10123 |
> |
if test "${ac_cv_header_CGAL_Cartesian_h+set}" = set; then |
| 10124 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10125 |
|
else |
| 10126 |
< |
ac_cv_header_mkl_h=$ac_header_preproc |
| 10126 |
> |
ac_cv_header_CGAL_Cartesian_h=$ac_header_preproc |
| 10127 |
|
fi |
| 10128 |
< |
echo "$as_me:$LINENO: result: $ac_cv_header_mkl_h" >&5 |
| 10129 |
< |
echo "${ECHO_T}$ac_cv_header_mkl_h" >&6 |
| 10128 |
> |
echo "$as_me:$LINENO: result: $ac_cv_header_CGAL_Cartesian_h" >&5 |
| 10129 |
> |
echo "${ECHO_T}$ac_cv_header_CGAL_Cartesian_h" >&6 |
| 10130 |
|
|
| 10131 |
|
fi |
| 10132 |
< |
if test $ac_cv_header_mkl_h = yes; then |
| 10133 |
< |
|
| 7411 |
< |
echo "$as_me:$LINENO: checking for vslNewStream in -lmkl" >&5 |
| 7412 |
< |
echo $ECHO_N "checking for vslNewStream in -lmkl... $ECHO_C" >&6 |
| 7413 |
< |
if test "${ac_cv_lib_mkl_vslNewStream+set}" = set; then |
| 7414 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10132 |
> |
if test $ac_cv_header_CGAL_Cartesian_h = yes; then |
| 10133 |
> |
cgal=yes |
| 10134 |
|
else |
| 10135 |
< |
ac_check_lib_save_LIBS=$LIBS |
| 10136 |
< |
LIBS="-lmkl $LIBS" |
| 10135 |
> |
cgal=no |
| 10136 |
> |
fi |
| 10137 |
> |
|
| 10138 |
> |
|
| 10139 |
> |
CXXFLAGS="$save_CXXFLAGS" |
| 10140 |
> |
|
| 10141 |
> |
if test "x$cgal" = xyes; then |
| 10142 |
> |
echo "$as_me:$LINENO: checking for CGAL version" >&5 |
| 10143 |
> |
echo $ECHO_N "checking for CGAL version... $ECHO_C" >&6 |
| 10144 |
> |
LOCATION=${CGAL_INCLDIR} |
| 10145 |
> |
LOCATION=${LOCATION:-/usr/include} |
| 10146 |
> |
if test -f $LOCATION/CGAL/version.h; then |
| 10147 |
> |
CGAL_VERSION=`grep '#define.*\<CGAL_VERSION\>.*' $LOCATION/CGAL/version.h | sed 's/[^0-9\.]*//g'` |
| 10148 |
> |
else |
| 10149 |
> |
CGAL_VERSION=`grep '#define.*\<CGAL_VERSION\>.*' $LOCATION/CGAL/config.h | sed 's/[^0-9\.]*//g'` |
| 10150 |
> |
fi |
| 10151 |
> |
if echo $CGAL_VERSION | grep -q "^[3456789]"; then |
| 10152 |
> |
echo "$as_me:$LINENO: result: ($CGAL_VERSION) yes" >&5 |
| 10153 |
> |
echo "${ECHO_T}($CGAL_VERSION) yes" >&6 |
| 10154 |
> |
else |
| 10155 |
> |
echo "$as_me:$LINENO: result: ($CGAL_VERSION) no" >&5 |
| 10156 |
> |
echo "${ECHO_T}($CGAL_VERSION) no" >&6 |
| 10157 |
> |
cgal=no |
| 10158 |
> |
fi |
| 10159 |
> |
fi |
| 10160 |
> |
|
| 10161 |
> |
if test "x$cgal" = xyes; then |
| 10162 |
> |
CGAL_LIBS="-lCGAL" |
| 10163 |
> |
echo "$as_me:$LINENO: checking whether CGAL uses LEDA" >&5 |
| 10164 |
> |
echo $ECHO_N "checking whether CGAL uses LEDA... $ECHO_C" >&6 |
| 10165 |
> |
if echo $CGAL_CXXFLAGS | grep -q -- -DCGAL_USE_LEDA; then |
| 10166 |
> |
CGAL_USES_LEDA=yes |
| 10167 |
> |
echo "$as_me:$LINENO: result: yes" >&5 |
| 10168 |
> |
echo "${ECHO_T}yes" >&6 |
| 10169 |
> |
CGAL_DEFINES="-DCGAL_USE_LEDA -DLEDA_PREFIX" |
| 10170 |
> |
else |
| 10171 |
> |
echo "$as_me:$LINENO: result: no" >&5 |
| 10172 |
> |
echo "${ECHO_T}no" >&6 |
| 10173 |
> |
CGAL_USES_LEDA=no |
| 10174 |
> |
fi |
| 10175 |
> |
|
| 10176 |
> |
echo "$as_me:$LINENO: checking whether CGAL uses GMP" >&5 |
| 10177 |
> |
echo $ECHO_N "checking whether CGAL uses GMP... $ECHO_C" >&6 |
| 10178 |
> |
if echo $CGAL_CXXFLAGS | grep -q -- -DCGAL_USE_GMP; then |
| 10179 |
> |
CGAL_USES_GMP=yes |
| 10180 |
> |
echo "$as_me:$LINENO: result: yes" >&5 |
| 10181 |
> |
echo "${ECHO_T}yes" >&6 |
| 10182 |
> |
CGAL_DEFINES="-DCGAL_USE_GMP $CGAL_DEFINES" |
| 10183 |
> |
else |
| 10184 |
> |
echo "$as_me:$LINENO: result: no" >&5 |
| 10185 |
> |
echo "${ECHO_T}no" >&6 |
| 10186 |
> |
CGAL_USES_GMP=no |
| 10187 |
> |
fi |
| 10188 |
> |
|
| 10189 |
> |
CGAL_LIBS="$CGAL_LIBS -lm" |
| 10190 |
> |
|
| 10191 |
> |
CGAL_CXXFLAGS="-ftemplate-depth-50" |
| 10192 |
> |
|
| 10193 |
> |
echo "$as_me:$LINENO: result: CGAL_USES_LEDA= $CGAL_USES_LEDA" >&5 |
| 10194 |
> |
echo "${ECHO_T}CGAL_USES_LEDA= $CGAL_USES_LEDA" >&6 |
| 10195 |
> |
echo "$as_me:$LINENO: result: CGAL_USES_GMP = $CGAL_USES_GMP" >&5 |
| 10196 |
> |
echo "${ECHO_T}CGAL_USES_GMP = $CGAL_USES_GMP" >&6 |
| 10197 |
> |
echo "$as_me:$LINENO: result: CGAL_INCLDIR = $CGAL_INCLDIR" >&5 |
| 10198 |
> |
echo "${ECHO_T}CGAL_INCLDIR = $CGAL_INCLDIR" >&6 |
| 10199 |
> |
echo "$as_me:$LINENO: result: CGAL_LIBDIR = $CGAL_LIBDIR" >&5 |
| 10200 |
> |
echo "${ECHO_T}CGAL_LIBDIR = $CGAL_LIBDIR" >&6 |
| 10201 |
> |
echo "$as_me:$LINENO: result: CGAL_DEFINES = $CGAL_DEFINES" >&5 |
| 10202 |
> |
echo "${ECHO_T}CGAL_DEFINES = $CGAL_DEFINES" >&6 |
| 10203 |
> |
echo "$as_me:$LINENO: result: CGAL_CXXFLAGS = $CGAL_CXXFLAGS" >&5 |
| 10204 |
> |
echo "${ECHO_T}CGAL_CXXFLAGS = $CGAL_CXXFLAGS" >&6 |
| 10205 |
> |
echo "$as_me:$LINENO: result: CGAL_LIBS = $CGAL_LIBS" >&5 |
| 10206 |
> |
echo "${ECHO_T}CGAL_LIBS = $CGAL_LIBS" >&6 |
| 10207 |
> |
fi |
| 10208 |
> |
|
| 10209 |
> |
if test "x$cgal" = xyes; then |
| 10210 |
> |
save_LIBS="$LIBS" |
| 10211 |
> |
LIBS="$LIBS -L$CGAL_LIBDIR" |
| 10212 |
> |
if test "x$CGAL_USES_LEDA" = xyes; then |
| 10213 |
> |
LIBS="-lL $LIBS -L$LEDA_LIBDIR" |
| 10214 |
> |
fi |
| 10215 |
> |
# if test "x$CGAL_USES_GMP" = xyes; then |
| 10216 |
> |
# LIBS="-lgmp $LIBS $GMP_LIBDIR" |
| 10217 |
> |
# fi |
| 10218 |
> |
echo "$as_me:$LINENO: checking for ::CGAL::Cartesian<int>::Point_2 in -lCGAL" >&5 |
| 10219 |
> |
echo $ECHO_N "checking for ::CGAL::Cartesian<int>::Point_2 in -lCGAL... $ECHO_C" >&6 |
| 10220 |
> |
save_CXXFLAGS_CHECK_CXX_LIB="$CXXFLAGS" |
| 10221 |
> |
CXXFLAGS="$CXXFLAGS -I$CGAL_INCLDIR -I$CGAL_INCLCONFDIR" |
| 10222 |
> |
save_LIBS_CHECK_CXX_LIB="$LIBS" |
| 10223 |
> |
LIBS="-lCGAL $LIBS" |
| 10224 |
|
cat >conftest.$ac_ext <<_ACEOF |
| 10225 |
|
/* confdefs.h. */ |
| 10226 |
|
_ACEOF |
| 10227 |
|
cat confdefs.h >>conftest.$ac_ext |
| 10228 |
|
cat >>conftest.$ac_ext <<_ACEOF |
| 10229 |
|
/* end confdefs.h. */ |
| 10230 |
< |
|
| 7425 |
< |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 7426 |
< |
#ifdef __cplusplus |
| 7427 |
< |
extern "C" |
| 7428 |
< |
#endif |
| 7429 |
< |
/* We use char because int might match the return type of a gcc2 |
| 7430 |
< |
builtin and then its argument prototype would still apply. */ |
| 7431 |
< |
char vslNewStream (); |
| 10230 |
> |
#include <CGAL/Cartesian.h> |
| 10231 |
|
int |
| 10232 |
|
main () |
| 10233 |
|
{ |
| 10234 |
< |
vslNewStream (); |
| 10234 |
> |
::CGAL::Cartesian<int>::Point_2 P |
| 10235 |
|
; |
| 10236 |
|
return 0; |
| 10237 |
|
} |
| 10245 |
|
cat conftest.err >&5 |
| 10246 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10247 |
|
(exit $ac_status); } && |
| 10248 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
| 7450 |
< |
|| test ! -s conftest.err' |
| 10248 |
> |
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 10249 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10250 |
|
(eval $ac_try) 2>&5 |
| 10251 |
|
ac_status=$? |
| 10257 |
|
ac_status=$? |
| 10258 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10259 |
|
(exit $ac_status); }; }; then |
| 10260 |
< |
ac_cv_lib_mkl_vslNewStream=yes |
| 10260 |
> |
echo "$as_me:$LINENO: result: yes" >&5 |
| 10261 |
> |
echo "${ECHO_T}yes" >&6 |
| 10262 |
> |
cgal=yes |
| 10263 |
|
else |
| 10264 |
|
echo "$as_me: failed program was:" >&5 |
| 10265 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
| 10266 |
|
|
| 10267 |
< |
ac_cv_lib_mkl_vslNewStream=no |
| 10267 |
> |
echo "$as_me:$LINENO: result: no" >&5 |
| 10268 |
> |
echo "${ECHO_T}no" >&6 |
| 10269 |
> |
cgal=no |
| 10270 |
|
fi |
| 10271 |
|
rm -f conftest.err conftest.$ac_objext \ |
| 10272 |
|
conftest$ac_exeext conftest.$ac_ext |
| 10273 |
< |
LIBS=$ac_check_lib_save_LIBS |
| 10274 |
< |
fi |
| 10275 |
< |
echo "$as_me:$LINENO: result: $ac_cv_lib_mkl_vslNewStream" >&5 |
| 10276 |
< |
echo "${ECHO_T}$ac_cv_lib_mkl_vslNewStream" >&6 |
| 7475 |
< |
if test $ac_cv_lib_mkl_vslNewStream = yes; then |
| 7476 |
< |
MKL_LIBDIR="${mkldir}/lib/32", |
| 7477 |
< |
MKL_LIB="-lmkl -lvml -lguide", |
| 7478 |
< |
HAVE_MKL="yes" |
| 7479 |
< |
fi |
| 7480 |
< |
|
| 7481 |
< |
|
| 7482 |
< |
else |
| 7483 |
< |
MKL_INC="-I${mkldir}/include" |
| 7484 |
< |
fi |
| 7485 |
< |
|
| 10273 |
> |
CXXFLAGS="$save_CXXFLAGS_CHECK_CXX_LIB" |
| 10274 |
> |
LIBS="$save_LIBS_CHECK_CXX_LIB" |
| 10275 |
> |
LIBS="$save_LIBS" |
| 10276 |
> |
fi |
| 10277 |
|
|
| 10278 |
< |
CPPFLAGS=$ac_save_CPPFLAGS |
| 7488 |
< |
LDFLAGS=$ac_save_LDFLAGS |
| 10278 |
> |
fi |
| 10279 |
|
ac_ext=c |
| 10280 |
|
ac_cpp='$CPP $CPPFLAGS' |
| 10281 |
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10283 |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10284 |
|
|
| 10285 |
|
|
| 10286 |
< |
if test x_$HAVE_MKL != x_yes; then |
| 10287 |
< |
{ { echo "$as_me:$LINENO: error: Can't build with MKL" >&5 |
| 10288 |
< |
echo "$as_me: error: Can't build with MKL" >&2;} |
| 10289 |
< |
{ (exit 1); exit 1; }; } |
| 10286 |
> |
fi |
| 10287 |
> |
|
| 10288 |
> |
if test "x$cgal" = xyes; then |
| 10289 |
> |
USE_CGAL=yes |
| 10290 |
> |
|
| 10291 |
> |
cat >>confdefs.h <<\_ACEOF |
| 10292 |
> |
#define HAVE_CGAL 1 |
| 10293 |
> |
_ACEOF |
| 10294 |
> |
|
| 10295 |
> |
|
| 10296 |
> |
cat >>confdefs.h <<_ACEOF |
| 10297 |
> |
#define CGAL_VERSION $CGAL_VERSION |
| 10298 |
> |
_ACEOF |
| 10299 |
> |
|
| 10300 |
> |
if ! echo $CGAL_VERSION | grep -q "^3.0"; then |
| 10301 |
> |
{ echo "$as_me:$LINENO: WARNING: *****************************************************" >&5 |
| 10302 |
> |
echo "$as_me: WARNING: *****************************************************" >&2;} |
| 10303 |
> |
{ echo "$as_me:$LINENO: WARNING: *** Warning: Your CGAL version is newer than the ***" >&5 |
| 10304 |
> |
echo "$as_me: WARNING: *** Warning: Your CGAL version is newer than the ***" >&2;} |
| 10305 |
> |
{ echo "$as_me:$LINENO: WARNING: *** supported versions. It may still work though. ***" >&5 |
| 10306 |
> |
echo "$as_me: WARNING: *** supported versions. It may still work though. ***" >&2;} |
| 10307 |
> |
{ echo "$as_me:$LINENO: WARNING: *****************************************************" >&5 |
| 10308 |
> |
echo "$as_me: WARNING: *****************************************************" >&2;} |
| 10309 |
|
fi |
| 10310 |
+ |
else |
| 10311 |
+ |
if test "x$cgal_makefile" != xno; then |
| 10312 |
+ |
echo "$as_me:$LINENO: result: No CGAL support. These are not the droids you want." >&5 |
| 10313 |
+ |
echo "${ECHO_T}No CGAL support. These are not the droids you want." >&6 |
| 10314 |
+ |
fi |
| 10315 |
+ |
CGAL_INCLDIR= |
| 10316 |
+ |
CGAL_LIBDIR= |
| 10317 |
+ |
CGAL_RLIBDIR= |
| 10318 |
+ |
CGAL_DEFINES= |
| 10319 |
+ |
CGAL_CXXFLAGS= |
| 10320 |
+ |
CGAL_LIBS= |
| 10321 |
+ |
fi |
| 10322 |
|
|
| 10323 |
|
|
| 10324 |
+ |
CGAL_INC_DIR="${CGAL_INCLDIR} ${CGAL_INCLCONFDIR}" |
| 10325 |
|
|
| 10326 |
+ |
CGAL_LIB_DIR=${CGAL_LIBDIR} |
| 10327 |
|
|
| 10328 |
+ |
CGAL_RLIB_DIR=${CGAL_RLIBDIR} |
| 10329 |
|
|
| 10330 |
+ |
|
| 10331 |
+ |
|
| 10332 |
+ |
|
| 10333 |
+ |
|
| 10334 |
+ |
|
| 10335 |
+ |
|
| 10336 |
+ |
# Check whether --enable-doxygen or --disable-doxygen was given. |
| 10337 |
+ |
if test "${enable_doxygen+set}" = set; then |
| 10338 |
+ |
enableval="$enable_doxygen" |
| 10339 |
+ |
|
| 10340 |
+ |
fi; |
| 10341 |
+ |
# Check whether --enable-dot or --disable-dot was given. |
| 10342 |
+ |
if test "${enable_dot+set}" = set; then |
| 10343 |
+ |
enableval="$enable_dot" |
| 10344 |
+ |
|
| 10345 |
+ |
fi; |
| 10346 |
+ |
# Check whether --enable-html-docs or --disable-html-docs was given. |
| 10347 |
+ |
if test "${enable_html_docs+set}" = set; then |
| 10348 |
+ |
enableval="$enable_html_docs" |
| 10349 |
+ |
|
| 10350 |
|
else |
| 10351 |
+ |
enable_html_docs=yes |
| 10352 |
+ |
fi; |
| 10353 |
+ |
# Check whether --enable-latex-docs or --disable-latex-docs was given. |
| 10354 |
+ |
if test "${enable_latex_docs+set}" = set; then |
| 10355 |
+ |
enableval="$enable_latex_docs" |
| 10356 |
|
|
| 10357 |
< |
echo "$as_me:$LINENO: result: no" >&5 |
| 10357 |
> |
else |
| 10358 |
> |
enable_latex_docs=no |
| 10359 |
> |
fi; |
| 10360 |
> |
if test "x$enable_doxygen" = xno; then |
| 10361 |
> |
enable_doc=no |
| 10362 |
> |
else |
| 10363 |
> |
# Extract the first word of "doxygen", so it can be a program name with args. |
| 10364 |
> |
set dummy doxygen; ac_word=$2 |
| 10365 |
> |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10366 |
> |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 10367 |
> |
if test "${ac_cv_path_DOXYGEN+set}" = set; then |
| 10368 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10369 |
> |
else |
| 10370 |
> |
case $DOXYGEN in |
| 10371 |
> |
[\\/]* | ?:[\\/]*) |
| 10372 |
> |
ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. |
| 10373 |
> |
;; |
| 10374 |
> |
*) |
| 10375 |
> |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10376 |
> |
for as_dir in $PATH |
| 10377 |
> |
do |
| 10378 |
> |
IFS=$as_save_IFS |
| 10379 |
> |
test -z "$as_dir" && as_dir=. |
| 10380 |
> |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 10381 |
> |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 10382 |
> |
ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" |
| 10383 |
> |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10384 |
> |
break 2 |
| 10385 |
> |
fi |
| 10386 |
> |
done |
| 10387 |
> |
done |
| 10388 |
> |
|
| 10389 |
> |
;; |
| 10390 |
> |
esac |
| 10391 |
> |
fi |
| 10392 |
> |
DOXYGEN=$ac_cv_path_DOXYGEN |
| 10393 |
> |
|
| 10394 |
> |
if test -n "$DOXYGEN"; then |
| 10395 |
> |
echo "$as_me:$LINENO: result: $DOXYGEN" >&5 |
| 10396 |
> |
echo "${ECHO_T}$DOXYGEN" >&6 |
| 10397 |
> |
else |
| 10398 |
> |
echo "$as_me:$LINENO: result: no" >&5 |
| 10399 |
|
echo "${ECHO_T}no" >&6 |
| 10400 |
+ |
fi |
| 10401 |
|
|
| 10402 |
< |
fi; |
| 10402 |
> |
if test "x$DOXYGEN" = x; then |
| 10403 |
> |
if test "x$enable_doxygen" = xyes; then |
| 10404 |
> |
{ { echo "$as_me:$LINENO: error: could not find doxygen" >&5 |
| 10405 |
> |
echo "$as_me: error: could not find doxygen" >&2;} |
| 10406 |
> |
{ (exit 1); exit 1; }; } |
| 10407 |
> |
fi |
| 10408 |
> |
enable_doc=no |
| 10409 |
> |
else |
| 10410 |
> |
enable_doc=yes |
| 10411 |
> |
# Extract the first word of "dot", so it can be a program name with args. |
| 10412 |
> |
set dummy dot; ac_word=$2 |
| 10413 |
> |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10414 |
> |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 10415 |
> |
if test "${ac_cv_path_DOT+set}" = set; then |
| 10416 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10417 |
> |
else |
| 10418 |
> |
case $DOT in |
| 10419 |
> |
[\\/]* | ?:[\\/]*) |
| 10420 |
> |
ac_cv_path_DOT="$DOT" # Let the user override the test with a path. |
| 10421 |
> |
;; |
| 10422 |
> |
*) |
| 10423 |
> |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10424 |
> |
for as_dir in $PATH |
| 10425 |
> |
do |
| 10426 |
> |
IFS=$as_save_IFS |
| 10427 |
> |
test -z "$as_dir" && as_dir=. |
| 10428 |
> |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 10429 |
> |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 10430 |
> |
ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" |
| 10431 |
> |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10432 |
> |
break 2 |
| 10433 |
> |
fi |
| 10434 |
> |
done |
| 10435 |
> |
done |
| 10436 |
> |
|
| 10437 |
> |
;; |
| 10438 |
> |
esac |
| 10439 |
> |
fi |
| 10440 |
> |
DOT=$ac_cv_path_DOT |
| 10441 |
> |
|
| 10442 |
> |
if test -n "$DOT"; then |
| 10443 |
> |
echo "$as_me:$LINENO: result: $DOT" >&5 |
| 10444 |
> |
echo "${ECHO_T}$DOT" >&6 |
| 10445 |
> |
else |
| 10446 |
> |
echo "$as_me:$LINENO: result: no" >&5 |
| 10447 |
> |
echo "${ECHO_T}no" >&6 |
| 10448 |
> |
fi |
| 10449 |
> |
|
| 10450 |
> |
fi |
| 10451 |
> |
fi |
| 10452 |
> |
|
| 10453 |
> |
if test "x$enable_doc" = xyes; then |
| 10454 |
> |
DOC=1 |
| 10455 |
> |
else |
| 10456 |
> |
DOC=0 |
| 10457 |
> |
fi |
| 10458 |
> |
|
| 10459 |
> |
|
| 10460 |
> |
if test x$DOT = x; then |
| 10461 |
> |
if test "x$enable_dot" = xyes; then |
| 10462 |
> |
{ { echo "$as_me:$LINENO: error: could not find dot" >&5 |
| 10463 |
> |
echo "$as_me: error: could not find dot" >&2;} |
| 10464 |
> |
{ (exit 1); exit 1; }; } |
| 10465 |
> |
fi |
| 10466 |
> |
enable_dot=no |
| 10467 |
> |
else |
| 10468 |
> |
enable_dot=yes |
| 10469 |
> |
fi |
| 10470 |
|
|
| 10471 |
|
|
| 10472 |
|
|
| 10473 |
|
|
| 10474 |
|
|
| 10475 |
+ |
|
| 10476 |
+ |
|
| 10477 |
|
OBJEXT=".$OBJEXT" |
| 10478 |
|
|
| 10479 |
|
OOPSE=oopse |
| 10530 |
|
|
| 10531 |
|
|
| 10532 |
|
|
| 10533 |
+ |
|
| 10534 |
|
ac_config_headers="$ac_config_headers src/config.h" |
| 10535 |
|
|
| 10536 |
< |
ac_config_files="$ac_config_files make/Make.conf" |
| 10536 |
> |
ac_config_files="$ac_config_files make/Makefile src/utils/Makefile src/applications/nanoRodBuilder/Makefile scripts/filepp" |
| 10537 |
|
|
| 10538 |
|
|
| 10539 |
|
cat >confcache <<\_ACEOF |
| 11064 |
|
do |
| 11065 |
|
case "$ac_config_target" in |
| 11066 |
|
# Handling of arguments. |
| 11067 |
< |
"make/Make.conf" ) CONFIG_FILES="$CONFIG_FILES make/Make.conf" ;; |
| 11068 |
< |
"utils/getopt.h" ) CONFIG_LINKS="$CONFIG_LINKS utils/getopt.h:utils/gnugetopt.h" ;; |
| 11067 |
> |
"make/Makefile" ) CONFIG_FILES="$CONFIG_FILES make/Makefile" ;; |
| 11068 |
> |
"src/utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/Makefile" ;; |
| 11069 |
> |
"src/applications/nanoRodBuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/applications/nanoRodBuilder/Makefile" ;; |
| 11070 |
> |
"scripts/filepp" ) CONFIG_FILES="$CONFIG_FILES scripts/filepp" ;; |
| 11071 |
> |
"src/getopt.h" ) CONFIG_LINKS="$CONFIG_LINKS src/getopt.h:src/utils/gnugetopt.h" ;; |
| 11072 |
|
"src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; |
| 11073 |
|
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 11074 |
|
echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 11189 |
|
s,@F90_WORK_FILES_ARG@,$F90_WORK_FILES_ARG,;t t |
| 11190 |
|
s,@MODDIRFLAG@,$MODDIRFLAG,;t t |
| 11191 |
|
s,@F90MODINCSPEC@,$F90MODINCSPEC,;t t |
| 11192 |
+ |
s,@F90_MODULE_NAMES@,$F90_MODULE_NAMES,;t t |
| 11193 |
|
s,@CPP@,$CPP,;t t |
| 11194 |
|
s,@EGREP@,$EGREP,;t t |
| 11195 |
+ |
s,@CXXCPP@,$CXXCPP,;t t |
| 11196 |
|
s,@LIBOBJS@,$LIBOBJS,;t t |
| 11197 |
|
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 11198 |
|
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 11205 |
|
s,@LEX@,$LEX,;t t |
| 11206 |
|
s,@LEXLIB@,$LEXLIB,;t t |
| 11207 |
|
s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t |
| 11208 |
+ |
s,@PERLINTERP@,$PERLINTERP,;t t |
| 11209 |
+ |
s,@PERL_SHEBANG@,$PERL_SHEBANG,;t t |
| 11210 |
|
s,@AR@,$AR,;t t |
| 11211 |
+ |
s,@PS@,$PS,;t t |
| 11212 |
|
s,@MPI_LIB_DIR@,$MPI_LIB_DIR,;t t |
| 11213 |
|
s,@MPI_INC_DIR@,$MPI_INC_DIR,;t t |
| 11214 |
|
s,@MPI_F90_INC@,$MPI_F90_INC,;t t |
| 11215 |
|
s,@MPI_LIB@,$MPI_LIB,;t t |
| 11216 |
|
s,@MPI_F90_LIB@,$MPI_F90_LIB,;t t |
| 11217 |
|
s,@USE_MPI@,$USE_MPI,;t t |
| 11218 |
< |
s,@SPRNG_LIB_DIR@,$SPRNG_LIB_DIR,;t t |
| 11219 |
< |
s,@SPRNG_INC_DIR@,$SPRNG_INC_DIR,;t t |
| 11220 |
< |
s,@SPRNG_LIB@,$SPRNG_LIB,;t t |
| 11221 |
< |
s,@USE_SPRNG@,$USE_SPRNG,;t t |
| 11222 |
< |
s,@MKL_LIBDIR@,$MKL_LIBDIR,;t t |
| 11223 |
< |
s,@MKL_LIB@,$MKL_LIB,;t t |
| 11224 |
< |
s,@MKL_INC@,$MKL_INC,;t t |
| 11225 |
< |
s,@HAVE_MKL@,$HAVE_MKL,;t t |
| 11218 |
> |
s,@USE_CGAL@,$USE_CGAL,;t t |
| 11219 |
> |
s,@CGAL_INC_DIR@,$CGAL_INC_DIR,;t t |
| 11220 |
> |
s,@CGAL_LIB_DIR@,$CGAL_LIB_DIR,;t t |
| 11221 |
> |
s,@CGAL_RLIB_DIR@,$CGAL_RLIB_DIR,;t t |
| 11222 |
> |
s,@CGAL_DEFINES@,$CGAL_DEFINES,;t t |
| 11223 |
> |
s,@CGAL_CXXFLAGS@,$CGAL_CXXFLAGS,;t t |
| 11224 |
> |
s,@CGAL_LIBS@,$CGAL_LIBS,;t t |
| 11225 |
> |
s,@DOXYGEN@,$DOXYGEN,;t t |
| 11226 |
> |
s,@DOT@,$DOT,;t t |
| 11227 |
> |
s,@DOC@,$DOC,;t t |
| 11228 |
> |
s,@enable_dot@,$enable_dot,;t t |
| 11229 |
> |
s,@enable_html_docs@,$enable_html_docs,;t t |
| 11230 |
> |
s,@enable_latex_docs@,$enable_latex_docs,;t t |
| 11231 |
|
s,@BATEXT@,$BATEXT,;t t |
| 11232 |
|
s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t |
| 11233 |
|
s,@OOPSE@,$OOPSE,;t t |
| 11401 |
|
*) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
| 11402 |
|
esac |
| 11403 |
|
|
| 8430 |
– |
if test x"$ac_file" != x-; then |
| 8431 |
– |
{ echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 8432 |
– |
echo "$as_me: creating $ac_file" >&6;} |
| 8433 |
– |
rm -f "$ac_file" |
| 8434 |
– |
fi |
| 11404 |
|
# Let's still pretend it is `configure' which instantiates (i.e., don't |
| 11405 |
|
# use $as_me), people would be surprised to read: |
| 11406 |
|
# /* config.h. Generated by config.status. */ |
| 11439 |
|
fi;; |
| 11440 |
|
esac |
| 11441 |
|
done` || { (exit 1); exit 1; } |
| 11442 |
+ |
|
| 11443 |
+ |
if test x"$ac_file" != x-; then |
| 11444 |
+ |
{ echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 11445 |
+ |
echo "$as_me: creating $ac_file" >&6;} |
| 11446 |
+ |
rm -f "$ac_file" |
| 11447 |
+ |
fi |
| 11448 |
|
_ACEOF |
| 11449 |
|
cat >>$CONFIG_STATUS <<_ACEOF |
| 11450 |
|
sed "$ac_vpsub |
| 11472 |
|
rm -f $tmp/out |
| 11473 |
|
fi |
| 11474 |
|
|
| 11475 |
+ |
# Run the commands associated with the file. |
| 11476 |
+ |
case $ac_file in |
| 11477 |
+ |
make/Makefile ) chmod 0755 scripts/* ;; |
| 11478 |
+ |
src/utils/Makefile ) chmod 0755 scripts/* ;; |
| 11479 |
+ |
src/applications/nanoRodBuilder/Makefile ) chmod 0755 scripts/* ;; |
| 11480 |
+ |
scripts/filepp ) chmod 0755 scripts/* ;; |
| 11481 |
+ |
esac |
| 11482 |
|
done |
| 11483 |
|
_ACEOF |
| 11484 |
|
cat >>$CONFIG_STATUS <<\_ACEOF |