1 |
|
#! /bin/sh |
2 |
|
# Guess values for system-dependent variables and create Makefiles. |
3 |
< |
# Generated by GNU Autoconf 2.59 for OOPSE 1.0. |
3 |
> |
# Generated by GNU Autoconf 2.59 for OOPSE 2.0. |
4 |
|
# |
5 |
|
# Report bugs to <gezelter@nd.edu>. |
6 |
|
# |
269 |
|
# Identity of this package. |
270 |
|
PACKAGE_NAME='OOPSE' |
271 |
|
PACKAGE_TARNAME='oopse' |
272 |
< |
PACKAGE_VERSION='1.0' |
273 |
< |
PACKAGE_STRING='OOPSE 1.0' |
272 |
> |
PACKAGE_VERSION='2.0' |
273 |
> |
PACKAGE_STRING='OOPSE 2.0' |
274 |
|
PACKAGE_BUGREPORT='gezelter@nd.edu' |
275 |
|
|
276 |
< |
ac_unique_file="src/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 CPP EGREP 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 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. |
777 |
|
ac_env_CXXFLAGS_value=$CXXFLAGS |
778 |
|
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} |
779 |
|
ac_cv_env_CXXFLAGS_value=$CXXFLAGS |
780 |
+ |
ac_env_CPP_set=${CPP+set} |
781 |
+ |
ac_env_CPP_value=$CPP |
782 |
+ |
ac_cv_env_CPP_set=${CPP+set} |
783 |
+ |
ac_cv_env_CPP_value=$CPP |
784 |
|
ac_env_F90_set=${F90+set} |
785 |
|
ac_env_F90_value=$F90 |
786 |
|
ac_cv_env_F90_set=${F90+set} |
789 |
|
ac_env_F90FLAGS_value=$F90FLAGS |
790 |
|
ac_cv_env_F90FLAGS_set=${F90FLAGS+set} |
791 |
|
ac_cv_env_F90FLAGS_value=$F90FLAGS |
792 |
< |
ac_env_CPP_set=${CPP+set} |
793 |
< |
ac_env_CPP_value=$CPP |
794 |
< |
ac_cv_env_CPP_set=${CPP+set} |
795 |
< |
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. |
801 |
|
# Omit some internal or obsolete options to make the list less imposing. |
802 |
|
# This message is too long to be a string in the A/UX 3.1 sh. |
803 |
|
cat <<_ACEOF |
804 |
< |
\`configure' configures OOPSE 1.0 to adapt to many kinds of systems. |
804 |
> |
\`configure' configures OOPSE 2.0 to adapt to many kinds of systems. |
805 |
|
|
806 |
|
Usage: $0 [OPTION]... [VAR=VALUE]... |
807 |
|
|
862 |
|
|
863 |
|
if test -n "$ac_init_help"; then |
864 |
|
case $ac_init_help in |
865 |
< |
short | recursive ) echo "Configuration of OOPSE 1.0:";; |
865 |
> |
short | recursive ) echo "Configuration of OOPSE 2.0:";; |
866 |
|
esac |
867 |
|
cat <<\_ACEOF |
868 |
|
|
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 |
896 |
|
headers in a nonstandard directory <include dir> |
897 |
|
CXX C++ compiler command |
898 |
|
CXXFLAGS C++ compiler flags |
899 |
+ |
CPP C preprocessor |
900 |
|
F90 Fortran 90 compiler command |
901 |
|
F90FLAGS Fortran 90 compiler flags |
902 |
< |
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. |
1000 |
|
test -n "$ac_init_help" && exit 0 |
1001 |
|
if $ac_init_version; then |
1002 |
|
cat <<\_ACEOF |
1003 |
< |
OOPSE configure 1.0 |
1003 |
> |
OOPSE configure 2.0 |
1004 |
|
generated by GNU Autoconf 2.59 |
1005 |
|
|
1006 |
|
Copyright (C) 2003 Free Software Foundation, Inc. |
1014 |
|
This file contains any messages produced by compilers while |
1015 |
|
running configure, to aid debugging if configure makes a mistake. |
1016 |
|
|
1017 |
< |
It was created by OOPSE $as_me 1.0, which was |
1017 |
> |
It was created by OOPSE $as_me 2.0, which was |
1018 |
|
generated by GNU Autoconf 2.59. Invocation command line was |
1019 |
|
|
1020 |
|
$ $0 $@ |
1825 |
|
# $SHELLVAR to the Fortran 95 mangled name. If the SHELLVAR |
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 |
|
|
1879 |
|
|
1880 |
|
|
1881 |
|
|
1882 |
+ |
|
1883 |
+ |
|
1884 |
+ |
|
1885 |
+ |
|
1886 |
+ |
|
1887 |
+ |
|
1888 |
+ |
# |
1889 |
+ |
# |
1890 |
+ |
# |
1891 |
|
|
1892 |
|
|
1893 |
|
|
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' |
3038 |
|
echo '#ifdef __cplusplus' >>confdefs.h |
3039 |
|
echo $ac_declaration >>confdefs.h |
3040 |
|
echo '#endif' >>confdefs.h |
3041 |
+ |
fi |
3042 |
+ |
|
3043 |
+ |
ac_ext=c |
3044 |
+ |
ac_cpp='$CPP $CPPFLAGS' |
3045 |
+ |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3046 |
+ |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3047 |
+ |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3048 |
+ |
|
3049 |
+ |
|
3050 |
+ |
ac_ext=c |
3051 |
+ |
ac_cpp='$CPP $CPPFLAGS' |
3052 |
+ |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3053 |
+ |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3054 |
+ |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3055 |
+ |
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
3056 |
+ |
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
3057 |
+ |
# On Suns, sometimes $CPP names a directory. |
3058 |
+ |
if test -n "$CPP" && test -d "$CPP"; then |
3059 |
+ |
CPP= |
3060 |
+ |
fi |
3061 |
+ |
if test -z "$CPP"; then |
3062 |
+ |
if test "${ac_cv_prog_CPP+set}" = set; then |
3063 |
+ |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3064 |
+ |
else |
3065 |
+ |
# Double quotes because CPP needs to be expanded |
3066 |
+ |
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
3067 |
+ |
do |
3068 |
+ |
ac_preproc_ok=false |
3069 |
+ |
for ac_c_preproc_warn_flag in '' yes |
3070 |
+ |
do |
3071 |
+ |
# Use a header file that comes with gcc, so configuring glibc |
3072 |
+ |
# with a fresh cross-compiler works. |
3073 |
+ |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
3074 |
+ |
# <limits.h> exists even on freestanding compilers. |
3075 |
+ |
# On the NeXT, cc -E runs the code through the compiler's parser, |
3076 |
+ |
# not just through cpp. "Syntax error" is here to catch this case. |
3077 |
+ |
cat >conftest.$ac_ext <<_ACEOF |
3078 |
+ |
/* confdefs.h. */ |
3079 |
+ |
_ACEOF |
3080 |
+ |
cat confdefs.h >>conftest.$ac_ext |
3081 |
+ |
cat >>conftest.$ac_ext <<_ACEOF |
3082 |
+ |
/* end confdefs.h. */ |
3083 |
+ |
#ifdef __STDC__ |
3084 |
+ |
# include <limits.h> |
3085 |
+ |
#else |
3086 |
+ |
# include <assert.h> |
3087 |
+ |
#endif |
3088 |
+ |
Syntax error |
3089 |
+ |
_ACEOF |
3090 |
+ |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
3091 |
+ |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3092 |
+ |
ac_status=$? |
3093 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
3094 |
+ |
rm -f conftest.er1 |
3095 |
+ |
cat conftest.err >&5 |
3096 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3097 |
+ |
(exit $ac_status); } >/dev/null; then |
3098 |
+ |
if test -s conftest.err; then |
3099 |
+ |
ac_cpp_err=$ac_c_preproc_warn_flag |
3100 |
+ |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
3101 |
+ |
else |
3102 |
+ |
ac_cpp_err= |
3103 |
+ |
fi |
3104 |
+ |
else |
3105 |
+ |
ac_cpp_err=yes |
3106 |
+ |
fi |
3107 |
+ |
if test -z "$ac_cpp_err"; then |
3108 |
+ |
: |
3109 |
+ |
else |
3110 |
+ |
echo "$as_me: failed program was:" >&5 |
3111 |
+ |
sed 's/^/| /' conftest.$ac_ext >&5 |
3112 |
+ |
|
3113 |
+ |
# Broken: fails on valid input. |
3114 |
+ |
continue |
3115 |
+ |
fi |
3116 |
+ |
rm -f conftest.err conftest.$ac_ext |
3117 |
+ |
|
3118 |
+ |
# OK, works on sane cases. Now check whether non-existent headers |
3119 |
+ |
# can be detected and how. |
3120 |
+ |
cat >conftest.$ac_ext <<_ACEOF |
3121 |
+ |
/* confdefs.h. */ |
3122 |
+ |
_ACEOF |
3123 |
+ |
cat confdefs.h >>conftest.$ac_ext |
3124 |
+ |
cat >>conftest.$ac_ext <<_ACEOF |
3125 |
+ |
/* end confdefs.h. */ |
3126 |
+ |
#include <ac_nonexistent.h> |
3127 |
+ |
_ACEOF |
3128 |
+ |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
3129 |
+ |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3130 |
+ |
ac_status=$? |
3131 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
3132 |
+ |
rm -f conftest.er1 |
3133 |
+ |
cat conftest.err >&5 |
3134 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3135 |
+ |
(exit $ac_status); } >/dev/null; then |
3136 |
+ |
if test -s conftest.err; then |
3137 |
+ |
ac_cpp_err=$ac_c_preproc_warn_flag |
3138 |
+ |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
3139 |
+ |
else |
3140 |
+ |
ac_cpp_err= |
3141 |
+ |
fi |
3142 |
+ |
else |
3143 |
+ |
ac_cpp_err=yes |
3144 |
+ |
fi |
3145 |
+ |
if test -z "$ac_cpp_err"; then |
3146 |
+ |
# Broken: success on invalid input. |
3147 |
+ |
continue |
3148 |
+ |
else |
3149 |
+ |
echo "$as_me: failed program was:" >&5 |
3150 |
+ |
sed 's/^/| /' conftest.$ac_ext >&5 |
3151 |
+ |
|
3152 |
+ |
# Passes both tests. |
3153 |
+ |
ac_preproc_ok=: |
3154 |
+ |
break |
3155 |
+ |
fi |
3156 |
+ |
rm -f conftest.err conftest.$ac_ext |
3157 |
+ |
|
3158 |
+ |
done |
3159 |
+ |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
3160 |
+ |
rm -f conftest.err conftest.$ac_ext |
3161 |
+ |
if $ac_preproc_ok; then |
3162 |
+ |
break |
3163 |
+ |
fi |
3164 |
+ |
|
3165 |
+ |
done |
3166 |
+ |
ac_cv_prog_CPP=$CPP |
3167 |
+ |
|
3168 |
+ |
fi |
3169 |
+ |
CPP=$ac_cv_prog_CPP |
3170 |
+ |
else |
3171 |
+ |
ac_cv_prog_CPP=$CPP |
3172 |
+ |
fi |
3173 |
+ |
echo "$as_me:$LINENO: result: $CPP" >&5 |
3174 |
+ |
echo "${ECHO_T}$CPP" >&6 |
3175 |
+ |
ac_preproc_ok=false |
3176 |
+ |
for ac_c_preproc_warn_flag in '' yes |
3177 |
+ |
do |
3178 |
+ |
# Use a header file that comes with gcc, so configuring glibc |
3179 |
+ |
# with a fresh cross-compiler works. |
3180 |
+ |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
3181 |
+ |
# <limits.h> exists even on freestanding compilers. |
3182 |
+ |
# On the NeXT, cc -E runs the code through the compiler's parser, |
3183 |
+ |
# not just through cpp. "Syntax error" is here to catch this case. |
3184 |
+ |
cat >conftest.$ac_ext <<_ACEOF |
3185 |
+ |
/* confdefs.h. */ |
3186 |
+ |
_ACEOF |
3187 |
+ |
cat confdefs.h >>conftest.$ac_ext |
3188 |
+ |
cat >>conftest.$ac_ext <<_ACEOF |
3189 |
+ |
/* end confdefs.h. */ |
3190 |
+ |
#ifdef __STDC__ |
3191 |
+ |
# include <limits.h> |
3192 |
+ |
#else |
3193 |
+ |
# include <assert.h> |
3194 |
+ |
#endif |
3195 |
+ |
Syntax error |
3196 |
+ |
_ACEOF |
3197 |
+ |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
3198 |
+ |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3199 |
+ |
ac_status=$? |
3200 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
3201 |
+ |
rm -f conftest.er1 |
3202 |
+ |
cat conftest.err >&5 |
3203 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3204 |
+ |
(exit $ac_status); } >/dev/null; then |
3205 |
+ |
if test -s conftest.err; then |
3206 |
+ |
ac_cpp_err=$ac_c_preproc_warn_flag |
3207 |
+ |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
3208 |
+ |
else |
3209 |
+ |
ac_cpp_err= |
3210 |
+ |
fi |
3211 |
+ |
else |
3212 |
+ |
ac_cpp_err=yes |
3213 |
+ |
fi |
3214 |
+ |
if test -z "$ac_cpp_err"; then |
3215 |
+ |
: |
3216 |
+ |
else |
3217 |
+ |
echo "$as_me: failed program was:" >&5 |
3218 |
+ |
sed 's/^/| /' conftest.$ac_ext >&5 |
3219 |
+ |
|
3220 |
+ |
# Broken: fails on valid input. |
3221 |
+ |
continue |
3222 |
+ |
fi |
3223 |
+ |
rm -f conftest.err conftest.$ac_ext |
3224 |
+ |
|
3225 |
+ |
# OK, works on sane cases. Now check whether non-existent headers |
3226 |
+ |
# can be detected and how. |
3227 |
+ |
cat >conftest.$ac_ext <<_ACEOF |
3228 |
+ |
/* confdefs.h. */ |
3229 |
+ |
_ACEOF |
3230 |
+ |
cat confdefs.h >>conftest.$ac_ext |
3231 |
+ |
cat >>conftest.$ac_ext <<_ACEOF |
3232 |
+ |
/* end confdefs.h. */ |
3233 |
+ |
#include <ac_nonexistent.h> |
3234 |
+ |
_ACEOF |
3235 |
+ |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
3236 |
+ |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3237 |
+ |
ac_status=$? |
3238 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
3239 |
+ |
rm -f conftest.er1 |
3240 |
+ |
cat conftest.err >&5 |
3241 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3242 |
+ |
(exit $ac_status); } >/dev/null; then |
3243 |
+ |
if test -s conftest.err; then |
3244 |
+ |
ac_cpp_err=$ac_c_preproc_warn_flag |
3245 |
+ |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
3246 |
+ |
else |
3247 |
+ |
ac_cpp_err= |
3248 |
+ |
fi |
3249 |
+ |
else |
3250 |
+ |
ac_cpp_err=yes |
3251 |
+ |
fi |
3252 |
+ |
if test -z "$ac_cpp_err"; then |
3253 |
+ |
# Broken: success on invalid input. |
3254 |
+ |
continue |
3255 |
+ |
else |
3256 |
+ |
echo "$as_me: failed program was:" >&5 |
3257 |
+ |
sed 's/^/| /' conftest.$ac_ext >&5 |
3258 |
+ |
|
3259 |
+ |
# Passes both tests. |
3260 |
+ |
ac_preproc_ok=: |
3261 |
+ |
break |
3262 |
|
fi |
3263 |
+ |
rm -f conftest.err conftest.$ac_ext |
3264 |
|
|
3265 |
+ |
done |
3266 |
+ |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
3267 |
+ |
rm -f conftest.err conftest.$ac_ext |
3268 |
+ |
if $ac_preproc_ok; then |
3269 |
+ |
: |
3270 |
+ |
else |
3271 |
+ |
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
3272 |
+ |
See \`config.log' for more details." >&5 |
3273 |
+ |
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
3274 |
+ |
See \`config.log' for more details." >&2;} |
3275 |
+ |
{ (exit 1); exit 1; }; } |
3276 |
+ |
fi |
3277 |
+ |
|
3278 |
|
ac_ext=c |
3279 |
|
ac_cpp='$CPP $CPPFLAGS' |
3280 |
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3282 |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3283 |
|
|
3284 |
|
|
3285 |
+ |
echo "$as_me:$LINENO: checking for egrep" >&5 |
3286 |
+ |
echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
3287 |
+ |
if test "${ac_cv_prog_egrep+set}" = set; then |
3288 |
+ |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3289 |
+ |
else |
3290 |
+ |
if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
3291 |
+ |
then ac_cv_prog_egrep='grep -E' |
3292 |
+ |
else ac_cv_prog_egrep='egrep' |
3293 |
+ |
fi |
3294 |
+ |
fi |
3295 |
+ |
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
3296 |
+ |
echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
3297 |
+ |
EGREP=$ac_cv_prog_egrep |
3298 |
+ |
|
3299 |
+ |
|
3300 |
+ |
|
3301 |
|
OOPSE_TEMPLATE_FLAGS="" |
3302 |
|
if test $ac_cv_cxx_compiler_gnu = no; then |
3303 |
|
echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -ptused -no_prelink" >&5 |
3806 |
|
ac_save_F90FLAGS=$F90FLAGS |
3807 |
|
F90FLAGS="$F90FLAGS $ac_verb" |
3808 |
|
|
3809 |
< |
(eval echo $as_me:3528: \"$ac_link\") >&5 |
3809 |
> |
(eval echo $as_me:3809: \"$ac_link\") >&5 |
3810 |
|
ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'` |
3811 |
|
echo "$ac_f90_v_output" >&5 |
3812 |
|
F90FLAGS=$ac_save_F90FLAGS |
3883 |
|
ac_save_F90FLAGS=$F90FLAGS |
3884 |
|
F90FLAGS="$F90FLAGS $ac_cv_prog_f90_v" |
3885 |
|
|
3886 |
< |
(eval echo $as_me:3605: \"$ac_link\") >&5 |
3886 |
> |
(eval echo $as_me:3886: \"$ac_link\") >&5 |
3887 |
|
ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'` |
3888 |
|
echo "$ac_f90_v_output" >&5 |
3889 |
|
F90FLAGS=$ac_save_F90FLAGS |
4479 |
|
rm -f conftest* conf/conftest* conf/CONFTEST* CONFTEST* conf/mpimod* |
4480 |
|
if test $madedir = 1 ; then rmdir conf ; fi |
4481 |
|
fi |
4201 |
– |
|
4202 |
– |
|
4203 |
– |
ac_ext=c |
4204 |
– |
ac_cpp='$CPP $CPPFLAGS' |
4205 |
– |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4206 |
– |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4207 |
– |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4482 |
|
|
4483 |
|
|
4484 |
< |
ac_ext=c |
4485 |
< |
ac_cpp='$CPP $CPPFLAGS' |
4486 |
< |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4213 |
< |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4214 |
< |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4215 |
< |
|
4216 |
< |
ac_ext=c |
4217 |
< |
ac_cpp='$CPP $CPPFLAGS' |
4218 |
< |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4219 |
< |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4220 |
< |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4221 |
< |
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
4222 |
< |
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
4223 |
< |
# On Suns, sometimes $CPP names a directory. |
4224 |
< |
if test -n "$CPP" && test -d "$CPP"; then |
4225 |
< |
CPP= |
4226 |
< |
fi |
4227 |
< |
if test -z "$CPP"; then |
4228 |
< |
if test "${ac_cv_prog_CPP+set}" = set; then |
4484 |
> |
echo "$as_me:$LINENO: checking for Fortran 90 module file names" >&5 |
4485 |
> |
echo $ECHO_N "checking for Fortran 90 module file names... $ECHO_C" >&6 |
4486 |
> |
if test "${ac_cv_f90_module_names+set}" = set; then |
4487 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4488 |
|
else |
4489 |
< |
# Double quotes because CPP needs to be expanded |
4490 |
< |
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
4491 |
< |
do |
4492 |
< |
ac_preproc_ok=false |
4493 |
< |
for ac_c_preproc_warn_flag in '' yes |
4494 |
< |
do |
4495 |
< |
# Use a header file that comes with gcc, so configuring glibc |
4496 |
< |
# with a fresh cross-compiler works. |
4497 |
< |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
4498 |
< |
# <limits.h> exists even on freestanding compilers. |
4499 |
< |
# On the NeXT, cc -E runs the code through the compiler's parser, |
4242 |
< |
# not just through cpp. "Syntax error" is here to catch this case. |
4243 |
< |
cat >conftest.$ac_ext <<_ACEOF |
4244 |
< |
/* confdefs.h. */ |
4489 |
> |
ac_ext=f90 |
4490 |
> |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
4491 |
> |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4492 |
> |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
4493 |
> |
|
4494 |
> |
# carry out the test in a new directory, so that we don't miss anything |
4495 |
> |
mkdir conftest |
4496 |
> |
cd conftest |
4497 |
> |
cat >conftest.$ac_ext <<_ACEOF |
4498 |
> |
MODULE Bar |
4499 |
> |
END MODULE Bar |
4500 |
|
_ACEOF |
4501 |
< |
cat confdefs.h >>conftest.$ac_ext |
4502 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
4503 |
< |
/* end confdefs.h. */ |
4249 |
< |
#ifdef __STDC__ |
4250 |
< |
# include <limits.h> |
4251 |
< |
#else |
4252 |
< |
# include <assert.h> |
4253 |
< |
#endif |
4254 |
< |
Syntax error |
4255 |
< |
_ACEOF |
4256 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
4257 |
< |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
4501 |
> |
rm -f conftest.$ac_objext |
4502 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4503 |
> |
(eval $ac_compile) 2>conftest.er1 |
4504 |
|
ac_status=$? |
4505 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
4506 |
|
rm -f conftest.er1 |
4507 |
|
cat conftest.err >&5 |
4508 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4509 |
< |
(exit $ac_status); } >/dev/null; then |
4510 |
< |
if test -s conftest.err; then |
4511 |
< |
ac_cpp_err=$ac_c_preproc_warn_flag |
4512 |
< |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
4513 |
< |
else |
4514 |
< |
ac_cpp_err= |
4515 |
< |
fi |
4516 |
< |
else |
4517 |
< |
ac_cpp_err=yes |
4518 |
< |
fi |
4519 |
< |
if test -z "$ac_cpp_err"; then |
4509 |
> |
(exit $ac_status); } && |
4510 |
> |
{ ac_try='test -z "$ac_f90_werror_flag" |
4511 |
> |
|| test ! -s conftest.err' |
4512 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4513 |
> |
(eval $ac_try) 2>&5 |
4514 |
> |
ac_status=$? |
4515 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4516 |
> |
(exit $ac_status); }; } && |
4517 |
> |
{ ac_try='test -s conftest.$ac_objext' |
4518 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4519 |
> |
(eval $ac_try) 2>&5 |
4520 |
> |
ac_status=$? |
4521 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4522 |
> |
(exit $ac_status); }; }; then |
4523 |
> |
ac_cv_f90_module_names= |
4524 |
> |
ac_file_list=* |
4525 |
> |
for ac_file in $ac_file_list; do |
4526 |
> |
case $ac_file in |
4527 |
> |
# don't care for original source and object files |
4528 |
> |
conftest.$ac_ext | conftest.$ac_objext | conftest.err ) |
4529 |
> |
: |
4530 |
> |
;; |
4531 |
> |
# look for new files derived from the file name |
4532 |
> |
*conftest*) |
4533 |
> |
ac_pat=`echo $ac_file | sed s/conftest/%FILE%/` |
4534 |
> |
ac_exists=false |
4535 |
> |
for ac_i in $ac_cv_f90_module_names; do |
4536 |
> |
if test x"$ac_pat" = x"$ac_i"; then |
4537 |
> |
ac_exists=true |
4538 |
> |
break |
4539 |
> |
fi |
4540 |
> |
done |
4541 |
> |
|
4542 |
> |
if test x"$ac_exists" = xtrue; then |
4543 |
|
: |
4544 |
|
else |
4545 |
< |
echo "$as_me: failed program was:" >&5 |
4277 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
4278 |
< |
|
4279 |
< |
# Broken: fails on valid input. |
4280 |
< |
continue |
4545 |
> |
ac_cv_f90_module_names="$ac_cv_f90_module_names $ac_pat" |
4546 |
|
fi |
4282 |
– |
rm -f conftest.err conftest.$ac_ext |
4547 |
|
|
4548 |
< |
# OK, works on sane cases. Now check whether non-existent headers |
4549 |
< |
# can be detected and how. |
4550 |
< |
cat >conftest.$ac_ext <<_ACEOF |
4551 |
< |
/* confdefs.h. */ |
4552 |
< |
_ACEOF |
4553 |
< |
cat confdefs.h >>conftest.$ac_ext |
4554 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
4555 |
< |
/* end confdefs.h. */ |
4556 |
< |
#include <ac_nonexistent.h> |
4557 |
< |
_ACEOF |
4558 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
4559 |
< |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
4560 |
< |
ac_status=$? |
4561 |
< |
grep -v '^ *+' conftest.er1 >conftest.err |
4562 |
< |
rm -f conftest.er1 |
4299 |
< |
cat conftest.err >&5 |
4300 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4301 |
< |
(exit $ac_status); } >/dev/null; then |
4302 |
< |
if test -s conftest.err; then |
4303 |
< |
ac_cpp_err=$ac_c_preproc_warn_flag |
4304 |
< |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
4305 |
< |
else |
4306 |
< |
ac_cpp_err= |
4307 |
< |
fi |
4548 |
> |
;; |
4549 |
> |
# look for new files derived from the module name, |
4550 |
> |
# with different case translation schemes |
4551 |
> |
*Bar*) |
4552 |
> |
ac_pat=`echo $ac_file | sed s/Bar/%Module%/` |
4553 |
> |
ac_exists=false |
4554 |
> |
for ac_i in $ac_cv_f90_module_names; do |
4555 |
> |
if test x"$ac_pat" = x"$ac_i"; then |
4556 |
> |
ac_exists=true |
4557 |
> |
break |
4558 |
> |
fi |
4559 |
> |
done |
4560 |
> |
|
4561 |
> |
if test x"$ac_exists" = xtrue; then |
4562 |
> |
: |
4563 |
|
else |
4564 |
< |
ac_cpp_err=yes |
4564 |
> |
ac_cv_f90_module_names="$ac_cv_f90_module_names $ac_pat" |
4565 |
|
fi |
4566 |
< |
if test -z "$ac_cpp_err"; then |
4567 |
< |
# Broken: success on invalid input. |
4568 |
< |
continue |
4566 |
> |
|
4567 |
> |
;; |
4568 |
> |
*bar*) |
4569 |
> |
ac_pat=`echo $ac_file | sed s/bar/%module%/` |
4570 |
> |
ac_exists=false |
4571 |
> |
for ac_i in $ac_cv_f90_module_names; do |
4572 |
> |
if test x"$ac_pat" = x"$ac_i"; then |
4573 |
> |
ac_exists=true |
4574 |
> |
break |
4575 |
> |
fi |
4576 |
> |
done |
4577 |
> |
|
4578 |
> |
if test x"$ac_exists" = xtrue; then |
4579 |
> |
: |
4580 |
|
else |
4581 |
< |
echo "$as_me: failed program was:" >&5 |
4582 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
4581 |
> |
ac_cv_f90_module_names="$ac_cv_f90_module_names $ac_pat" |
4582 |
> |
fi |
4583 |
|
|
4584 |
< |
# Passes both tests. |
4585 |
< |
ac_preproc_ok=: |
4586 |
< |
break |
4584 |
> |
;; |
4585 |
> |
*BAR*) |
4586 |
> |
ac_pat=`echo $ac_file | sed s/BAR/%MODULE%/` |
4587 |
> |
ac_exists=false |
4588 |
> |
for ac_i in $ac_cv_f90_module_names; do |
4589 |
> |
if test x"$ac_pat" = x"$ac_i"; then |
4590 |
> |
ac_exists=true |
4591 |
> |
break |
4592 |
> |
fi |
4593 |
> |
done |
4594 |
> |
|
4595 |
> |
if test x"$ac_exists" = xtrue; then |
4596 |
> |
: |
4597 |
> |
else |
4598 |
> |
ac_cv_f90_module_names="$ac_cv_f90_module_names $ac_pat" |
4599 |
|
fi |
4322 |
– |
rm -f conftest.err conftest.$ac_ext |
4600 |
|
|
4601 |
+ |
;; |
4602 |
+ |
# Other files - we have no idea how they are generated |
4603 |
+ |
*) |
4604 |
+ |
{ echo "$as_me:$LINENO: WARNING: Bogus file found: $ac_file" >&5 |
4605 |
+ |
echo "$as_me: WARNING: Bogus file found: $ac_file" >&2;} |
4606 |
+ |
;; |
4607 |
+ |
esac |
4608 |
|
done |
4609 |
< |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
4610 |
< |
rm -f conftest.err conftest.$ac_ext |
4611 |
< |
if $ac_preproc_ok; then |
4328 |
< |
break |
4609 |
> |
if test "x$ac_cv_f90_module_names" = "x"; then |
4610 |
> |
{ echo "$as_me:$LINENO: WARNING: Couldn't determine module file names" >&5 |
4611 |
> |
echo "$as_me: WARNING: Couldn't determine module file names" >&2;} |
4612 |
|
fi |
4613 |
|
|
4331 |
– |
done |
4332 |
– |
ac_cv_prog_CPP=$CPP |
4333 |
– |
|
4334 |
– |
fi |
4335 |
– |
CPP=$ac_cv_prog_CPP |
4614 |
|
else |
4337 |
– |
ac_cv_prog_CPP=$CPP |
4338 |
– |
fi |
4339 |
– |
echo "$as_me:$LINENO: result: $CPP" >&5 |
4340 |
– |
echo "${ECHO_T}$CPP" >&6 |
4341 |
– |
ac_preproc_ok=false |
4342 |
– |
for ac_c_preproc_warn_flag in '' yes |
4343 |
– |
do |
4344 |
– |
# Use a header file that comes with gcc, so configuring glibc |
4345 |
– |
# with a fresh cross-compiler works. |
4346 |
– |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
4347 |
– |
# <limits.h> exists even on freestanding compilers. |
4348 |
– |
# On the NeXT, cc -E runs the code through the compiler's parser, |
4349 |
– |
# not just through cpp. "Syntax error" is here to catch this case. |
4350 |
– |
cat >conftest.$ac_ext <<_ACEOF |
4351 |
– |
/* confdefs.h. */ |
4352 |
– |
_ACEOF |
4353 |
– |
cat confdefs.h >>conftest.$ac_ext |
4354 |
– |
cat >>conftest.$ac_ext <<_ACEOF |
4355 |
– |
/* end confdefs.h. */ |
4356 |
– |
#ifdef __STDC__ |
4357 |
– |
# include <limits.h> |
4358 |
– |
#else |
4359 |
– |
# include <assert.h> |
4360 |
– |
#endif |
4361 |
– |
Syntax error |
4362 |
– |
_ACEOF |
4363 |
– |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
4364 |
– |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
4365 |
– |
ac_status=$? |
4366 |
– |
grep -v '^ *+' conftest.er1 >conftest.err |
4367 |
– |
rm -f conftest.er1 |
4368 |
– |
cat conftest.err >&5 |
4369 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4370 |
– |
(exit $ac_status); } >/dev/null; then |
4371 |
– |
if test -s conftest.err; then |
4372 |
– |
ac_cpp_err=$ac_c_preproc_warn_flag |
4373 |
– |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
4374 |
– |
else |
4375 |
– |
ac_cpp_err= |
4376 |
– |
fi |
4377 |
– |
else |
4378 |
– |
ac_cpp_err=yes |
4379 |
– |
fi |
4380 |
– |
if test -z "$ac_cpp_err"; then |
4381 |
– |
: |
4382 |
– |
else |
4615 |
|
echo "$as_me: failed program was:" >&5 |
4616 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
4617 |
|
|
4618 |
< |
# Broken: fails on valid input. |
4619 |
< |
continue |
4618 |
> |
ac_cv_f90_module_names= |
4619 |
> |
{ echo "$as_me:$LINENO: WARNING: Couldn't determine module file names" >&5 |
4620 |
> |
echo "$as_me: WARNING: Couldn't determine module file names" >&2;} |
4621 |
|
fi |
4622 |
< |
rm -f conftest.err conftest.$ac_ext |
4622 |
> |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4623 |
> |
cd .. |
4624 |
> |
# cleanup |
4625 |
> |
rm -rf conftest |
4626 |
> |
ac_ext=f90 |
4627 |
> |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
4628 |
> |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4629 |
> |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
4630 |
|
|
4631 |
< |
# OK, works on sane cases. Now check whether non-existent headers |
4632 |
< |
# can be detected and how. |
4633 |
< |
cat >conftest.$ac_ext <<_ACEOF |
4631 |
> |
fi |
4632 |
> |
echo "$as_me:$LINENO: result: $ac_cv_f90_module_names" >&5 |
4633 |
> |
echo "${ECHO_T}$ac_cv_f90_module_names" >&6 # AC_CACHE_CHECK |
4634 |
> |
|
4635 |
> |
# We now generate a shell script that will help us to figure out the correct |
4636 |
> |
# module file names, using the value of ac_cv_f90_module_names |
4637 |
> |
|
4638 |
> |
echo "Generating shell script modnam" |
4639 |
> |
|
4640 |
> |
cat > scripts/modnam << EOF |
4641 |
> |
#! /bin/sh |
4642 |
> |
# This script is auto-generated by configure |
4643 |
> |
# |
4644 |
> |
usage="\\ |
4645 |
> |
Usage: \$0 [FILES] |
4646 |
> |
|
4647 |
> |
[FILES] are Fortran 90 source files. |
4648 |
> |
The output is a list of module file names that the Fortran 90 compiler |
4649 |
> |
generates when compiling [FILES]." |
4650 |
> |
|
4651 |
> |
list= |
4652 |
> |
empty= |
4653 |
> |
|
4654 |
> |
if test \$# -eq 0; then |
4655 |
> |
echo "\$usage"; exit 0 |
4656 |
> |
fi |
4657 |
> |
|
4658 |
> |
while test \$# != 0; do |
4659 |
> |
|
4660 |
> |
file=\$1 |
4661 |
> |
shift |
4662 |
> |
|
4663 |
> |
# strip suffix |
4664 |
> |
base=\`echo \$file | sed 's/[.][^.]*$//'\` |
4665 |
> |
|
4666 |
> |
test ! -f \$file && continue |
4667 |
> |
|
4668 |
> |
# Look for module definitions and transform them to upper / lower case |
4669 |
> |
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/'\` |
4670 |
> |
upper=\`echo \$mods | tr a-z A-Z\` |
4671 |
> |
lower=\`echo \$mods | tr A-Z a-z\` |
4672 |
> |
|
4673 |
> |
# Here, the patterns for generating module file names were inserted by configure |
4674 |
> |
for trans in $ac_cv_f90_module_names; do |
4675 |
> |
|
4676 |
> |
pat=\`echo \$trans | sed 's/.*\(%.*%\).*/\1/'\` |
4677 |
> |
var=empty |
4678 |
> |
case \$pat in |
4679 |
> |
%MODULE%) |
4680 |
> |
var=upper ;; |
4681 |
> |
%Module%) |
4682 |
> |
var=mods ;; |
4683 |
> |
%module%) |
4684 |
> |
var=lower ;; |
4685 |
> |
%FILE%) |
4686 |
> |
test -n "\$mods" && var=base ;; |
4687 |
> |
esac |
4688 |
> |
new=\`eval '(for i in \$'\$var '; do echo \$trans | sed s/\$pat/\$i/; done)'\` |
4689 |
> |
list="\$list \$new" |
4690 |
> |
done |
4691 |
> |
done |
4692 |
> |
|
4693 |
> |
echo \$list |
4694 |
> |
# end of configure-generated script |
4695 |
> |
EOF |
4696 |
> |
chmod 755 scripts/modnam |
4697 |
> |
|
4698 |
> |
pat=`echo $ac_cv_f90_module_names | sed 's/.*\(%.*%\).*/\1/'` |
4699 |
> |
F90_MODULE_NAMES=empty |
4700 |
> |
case $pat in |
4701 |
> |
%MODULE%) |
4702 |
> |
F90_MODULE_NAMES=UPPER ;; |
4703 |
> |
%Module%) |
4704 |
> |
F90_MODULE_NAMES=Mixed ;; |
4705 |
> |
%module%) |
4706 |
> |
F90_MODULE_NAMES=lower ;; |
4707 |
> |
*) |
4708 |
> |
F90_MODULE_NAMES=unknown ;; |
4709 |
> |
esac |
4710 |
> |
|
4711 |
> |
ac_ext=c |
4712 |
> |
ac_cpp='$CPP $CPPFLAGS' |
4713 |
> |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4714 |
> |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4715 |
> |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4716 |
> |
|
4717 |
> |
|
4718 |
> |
ac_ext=cc |
4719 |
> |
ac_cpp='$CXXCPP $CPPFLAGS' |
4720 |
> |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4721 |
> |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4722 |
> |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
4723 |
> |
|
4724 |
> |
|
4725 |
> |
|
4726 |
> |
echo "$as_me:$LINENO: checking for asin in -lm" >&5 |
4727 |
> |
echo $ECHO_N "checking for asin in -lm... $ECHO_C" >&6 |
4728 |
> |
if test "${ac_cv_lib_m_asin+set}" = set; then |
4729 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4730 |
> |
else |
4731 |
> |
ac_check_lib_save_LIBS=$LIBS |
4732 |
> |
LIBS="-lm $LIBS" |
4733 |
> |
cat >conftest.$ac_ext <<_ACEOF |
4734 |
|
/* confdefs.h. */ |
4735 |
|
_ACEOF |
4736 |
|
cat confdefs.h >>conftest.$ac_ext |
4737 |
|
cat >>conftest.$ac_ext <<_ACEOF |
4738 |
|
/* end confdefs.h. */ |
4739 |
< |
#include <ac_nonexistent.h> |
4739 |
> |
|
4740 |
> |
/* Override any gcc2 internal prototype to avoid an error. */ |
4741 |
> |
#ifdef __cplusplus |
4742 |
> |
extern "C" |
4743 |
> |
#endif |
4744 |
> |
/* We use char because int might match the return type of a gcc2 |
4745 |
> |
builtin and then its argument prototype would still apply. */ |
4746 |
> |
char asin (); |
4747 |
> |
int |
4748 |
> |
main () |
4749 |
> |
{ |
4750 |
> |
asin (); |
4751 |
> |
; |
4752 |
> |
return 0; |
4753 |
> |
} |
4754 |
|
_ACEOF |
4755 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
4756 |
< |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
4755 |
> |
rm -f conftest.$ac_objext conftest$ac_exeext |
4756 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
4757 |
> |
(eval $ac_link) 2>conftest.er1 |
4758 |
|
ac_status=$? |
4759 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
4760 |
|
rm -f conftest.er1 |
4761 |
|
cat conftest.err >&5 |
4762 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4763 |
< |
(exit $ac_status); } >/dev/null; then |
4764 |
< |
if test -s conftest.err; then |
4765 |
< |
ac_cpp_err=$ac_c_preproc_warn_flag |
4766 |
< |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
4767 |
< |
else |
4768 |
< |
ac_cpp_err= |
4769 |
< |
fi |
4763 |
> |
(exit $ac_status); } && |
4764 |
> |
{ ac_try='test -z "$ac_cxx_werror_flag" |
4765 |
> |
|| test ! -s conftest.err' |
4766 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4767 |
> |
(eval $ac_try) 2>&5 |
4768 |
> |
ac_status=$? |
4769 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4770 |
> |
(exit $ac_status); }; } && |
4771 |
> |
{ ac_try='test -s conftest$ac_exeext' |
4772 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4773 |
> |
(eval $ac_try) 2>&5 |
4774 |
> |
ac_status=$? |
4775 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4776 |
> |
(exit $ac_status); }; }; then |
4777 |
> |
ac_cv_lib_m_asin=yes |
4778 |
|
else |
4416 |
– |
ac_cpp_err=yes |
4417 |
– |
fi |
4418 |
– |
if test -z "$ac_cpp_err"; then |
4419 |
– |
# Broken: success on invalid input. |
4420 |
– |
continue |
4421 |
– |
else |
4779 |
|
echo "$as_me: failed program was:" >&5 |
4780 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
4781 |
|
|
4782 |
< |
# Passes both tests. |
4426 |
< |
ac_preproc_ok=: |
4427 |
< |
break |
4782 |
> |
ac_cv_lib_m_asin=no |
4783 |
|
fi |
4784 |
< |
rm -f conftest.err conftest.$ac_ext |
4784 |
> |
rm -f conftest.err conftest.$ac_objext \ |
4785 |
> |
conftest$ac_exeext conftest.$ac_ext |
4786 |
> |
LIBS=$ac_check_lib_save_LIBS |
4787 |
> |
fi |
4788 |
> |
echo "$as_me:$LINENO: result: $ac_cv_lib_m_asin" >&5 |
4789 |
> |
echo "${ECHO_T}$ac_cv_lib_m_asin" >&6 |
4790 |
> |
if test $ac_cv_lib_m_asin = yes; then |
4791 |
> |
cat >>confdefs.h <<_ACEOF |
4792 |
> |
#define HAVE_LIBM 1 |
4793 |
> |
_ACEOF |
4794 |
|
|
4795 |
< |
done |
4796 |
< |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
4433 |
< |
rm -f conftest.err conftest.$ac_ext |
4434 |
< |
if $ac_preproc_ok; then |
4435 |
< |
: |
4795 |
> |
LIBS="-lm $LIBS" |
4796 |
> |
|
4797 |
|
else |
4798 |
< |
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
4438 |
< |
See \`config.log' for more details." >&5 |
4439 |
< |
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
4440 |
< |
See \`config.log' for more details." >&2;} |
4441 |
< |
{ (exit 1); exit 1; }; } |
4798 |
> |
exit |
4799 |
|
fi |
4800 |
|
|
4801 |
+ |
|
4802 |
|
ac_ext=c |
4803 |
|
ac_cpp='$CPP $CPPFLAGS' |
4804 |
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4805 |
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4806 |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4449 |
– |
|
4450 |
– |
|
4451 |
– |
echo "$as_me:$LINENO: checking for egrep" >&5 |
4452 |
– |
echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
4453 |
– |
if test "${ac_cv_prog_egrep+set}" = set; then |
4454 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4455 |
– |
else |
4456 |
– |
if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
4457 |
– |
then ac_cv_prog_egrep='grep -E' |
4458 |
– |
else ac_cv_prog_egrep='egrep' |
4459 |
– |
fi |
4460 |
– |
fi |
4461 |
– |
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
4462 |
– |
echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
4463 |
– |
EGREP=$ac_cv_prog_egrep |
4807 |
|
|
4808 |
|
|
4809 |
|
echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
5044 |
|
done |
5045 |
|
|
5046 |
|
|
5047 |
< |
# clean out junk possibly left behind by a previous configuration |
5048 |
< |
rm -f utils/getopt.h |
5049 |
< |
# Check for getopt_long support |
5047 |
> |
# |
5048 |
> |
# Handle user hints |
5049 |
> |
# |
5050 |
> |
echo "$as_me:$LINENO: checking if zlib is wanted" >&5 |
5051 |
> |
echo $ECHO_N "checking if zlib is wanted... $ECHO_C" >&6 |
5052 |
|
|
5053 |
< |
for ac_header in getopt.h |
5054 |
< |
do |
5055 |
< |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
5056 |
< |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
5057 |
< |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5058 |
< |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
5059 |
< |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
5053 |
> |
# Check whether --with-zlib or --without-zlib was given. |
5054 |
> |
if test "${with_zlib+set}" = set; then |
5055 |
> |
withval="$with_zlib" |
5056 |
> |
if test "$withval" != no ; then |
5057 |
> |
echo "$as_me:$LINENO: result: yes" >&5 |
5058 |
> |
echo "${ECHO_T}yes" >&6 |
5059 |
> |
if test -d "$withval" |
5060 |
> |
then |
5061 |
> |
ZLIB_HOME="$withval" |
5062 |
> |
else |
5063 |
> |
{ echo "$as_me:$LINENO: WARNING: Sorry, $withval does not exist, checking usual places" >&5 |
5064 |
> |
echo "$as_me: WARNING: Sorry, $withval does not exist, checking usual places" >&2;} |
5065 |
> |
fi |
5066 |
> |
else |
5067 |
> |
echo "$as_me:$LINENO: result: no" >&5 |
5068 |
> |
echo "${ECHO_T}no" >&6 |
5069 |
> |
fi |
5070 |
> |
fi; |
5071 |
> |
|
5072 |
> |
ZLIB_HOME=/usr/local |
5073 |
> |
if test ! -f "${ZLIB_HOME}/include/zlib.h" |
5074 |
> |
then |
5075 |
> |
ZLIB_HOME=/usr |
5076 |
> |
fi |
5077 |
> |
|
5078 |
> |
# |
5079 |
> |
# Locate zlib, if wanted |
5080 |
> |
# |
5081 |
> |
if test -n "${ZLIB_HOME}" |
5082 |
> |
then |
5083 |
> |
ZLIB_OLD_LDFLAGS=$LDFLAGS |
5084 |
> |
ZLIB_OLD_CPPFLAGS=$LDFLAGS |
5085 |
> |
LDFLAGS="$LDFLAGS -L${ZLIB_HOME}/lib" |
5086 |
> |
CPPFLAGS="$CPPFLAGS -I${ZLIB_HOME}/include" |
5087 |
> |
|
5088 |
> |
|
5089 |
> |
ac_ext=c |
5090 |
> |
ac_cpp='$CPP $CPPFLAGS' |
5091 |
> |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5092 |
> |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5093 |
> |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
5094 |
> |
|
5095 |
> |
echo "$as_me:$LINENO: checking for inflateEnd in -lz" >&5 |
5096 |
> |
echo $ECHO_N "checking for inflateEnd in -lz... $ECHO_C" >&6 |
5097 |
> |
if test "${ac_cv_lib_z_inflateEnd+set}" = set; then |
5098 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5099 |
+ |
else |
5100 |
+ |
ac_check_lib_save_LIBS=$LIBS |
5101 |
+ |
LIBS="-lz $LIBS" |
5102 |
+ |
cat >conftest.$ac_ext <<_ACEOF |
5103 |
+ |
/* confdefs.h. */ |
5104 |
+ |
_ACEOF |
5105 |
+ |
cat confdefs.h >>conftest.$ac_ext |
5106 |
+ |
cat >>conftest.$ac_ext <<_ACEOF |
5107 |
+ |
/* end confdefs.h. */ |
5108 |
+ |
|
5109 |
+ |
/* Override any gcc2 internal prototype to avoid an error. */ |
5110 |
+ |
#ifdef __cplusplus |
5111 |
+ |
extern "C" |
5112 |
+ |
#endif |
5113 |
+ |
/* We use char because int might match the return type of a gcc2 |
5114 |
+ |
builtin and then its argument prototype would still apply. */ |
5115 |
+ |
char inflateEnd (); |
5116 |
+ |
int |
5117 |
+ |
main () |
5118 |
+ |
{ |
5119 |
+ |
inflateEnd (); |
5120 |
+ |
; |
5121 |
+ |
return 0; |
5122 |
+ |
} |
5123 |
+ |
_ACEOF |
5124 |
+ |
rm -f conftest.$ac_objext conftest$ac_exeext |
5125 |
+ |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5126 |
+ |
(eval $ac_link) 2>conftest.er1 |
5127 |
+ |
ac_status=$? |
5128 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
5129 |
+ |
rm -f conftest.er1 |
5130 |
+ |
cat conftest.err >&5 |
5131 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5132 |
+ |
(exit $ac_status); } && |
5133 |
+ |
{ ac_try='test -z "$ac_c_werror_flag" |
5134 |
+ |
|| test ! -s conftest.err' |
5135 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5136 |
+ |
(eval $ac_try) 2>&5 |
5137 |
+ |
ac_status=$? |
5138 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5139 |
+ |
(exit $ac_status); }; } && |
5140 |
+ |
{ ac_try='test -s conftest$ac_exeext' |
5141 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5142 |
+ |
(eval $ac_try) 2>&5 |
5143 |
+ |
ac_status=$? |
5144 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5145 |
+ |
(exit $ac_status); }; }; then |
5146 |
+ |
ac_cv_lib_z_inflateEnd=yes |
5147 |
+ |
else |
5148 |
+ |
echo "$as_me: failed program was:" >&5 |
5149 |
+ |
sed 's/^/| /' conftest.$ac_ext >&5 |
5150 |
+ |
|
5151 |
+ |
ac_cv_lib_z_inflateEnd=no |
5152 |
|
fi |
5153 |
< |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
5154 |
< |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
5153 |
> |
rm -f conftest.err conftest.$ac_objext \ |
5154 |
> |
conftest$ac_exeext conftest.$ac_ext |
5155 |
> |
LIBS=$ac_check_lib_save_LIBS |
5156 |
> |
fi |
5157 |
> |
echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateEnd" >&5 |
5158 |
> |
echo "${ECHO_T}$ac_cv_lib_z_inflateEnd" >&6 |
5159 |
> |
if test $ac_cv_lib_z_inflateEnd = yes; then |
5160 |
> |
zlib_cv_libz=yes |
5161 |
|
else |
5162 |
+ |
zlib_cv_libz=no |
5163 |
+ |
fi |
5164 |
+ |
|
5165 |
+ |
if test "${ac_cv_header_zlib_h+set}" = set; then |
5166 |
+ |
echo "$as_me:$LINENO: checking for zlib.h" >&5 |
5167 |
+ |
echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 |
5168 |
+ |
if test "${ac_cv_header_zlib_h+set}" = set; then |
5169 |
+ |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5170 |
+ |
fi |
5171 |
+ |
echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 |
5172 |
+ |
echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 |
5173 |
+ |
else |
5174 |
|
# Is the header compilable? |
5175 |
< |
echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
5176 |
< |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
5175 |
> |
echo "$as_me:$LINENO: checking zlib.h usability" >&5 |
5176 |
> |
echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6 |
5177 |
|
cat >conftest.$ac_ext <<_ACEOF |
5178 |
|
/* confdefs.h. */ |
5179 |
|
_ACEOF |
5181 |
|
cat >>conftest.$ac_ext <<_ACEOF |
5182 |
|
/* end confdefs.h. */ |
5183 |
|
$ac_includes_default |
5184 |
< |
#include <$ac_header> |
5184 |
> |
#include <zlib.h> |
5185 |
|
_ACEOF |
5186 |
|
rm -f conftest.$ac_objext |
5187 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5217 |
|
echo "${ECHO_T}$ac_header_compiler" >&6 |
5218 |
|
|
5219 |
|
# Is the header present? |
5220 |
< |
echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
5221 |
< |
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
5220 |
> |
echo "$as_me:$LINENO: checking zlib.h presence" >&5 |
5221 |
> |
echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6 |
5222 |
|
cat >conftest.$ac_ext <<_ACEOF |
5223 |
|
/* confdefs.h. */ |
5224 |
|
_ACEOF |
5225 |
|
cat confdefs.h >>conftest.$ac_ext |
5226 |
|
cat >>conftest.$ac_ext <<_ACEOF |
5227 |
|
/* end confdefs.h. */ |
5228 |
< |
#include <$ac_header> |
5228 |
> |
#include <zlib.h> |
5229 |
|
_ACEOF |
5230 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
5231 |
|
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
5259 |
|
# So? What about this header? |
5260 |
|
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5261 |
|
yes:no: ) |
5262 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5263 |
< |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
5264 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
5265 |
< |
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
5262 |
> |
{ echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
5263 |
> |
echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
5264 |
> |
{ echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 |
5265 |
> |
echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} |
5266 |
|
ac_header_preproc=yes |
5267 |
|
;; |
5268 |
|
no:yes:* ) |
5269 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5270 |
< |
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
5271 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
5272 |
< |
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
5273 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
5274 |
< |
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
5275 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
5276 |
< |
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
5277 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
5278 |
< |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
5279 |
< |
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
5280 |
< |
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
5269 |
> |
{ echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 |
5270 |
> |
echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} |
5271 |
> |
{ echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 |
5272 |
> |
echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} |
5273 |
> |
{ echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 |
5274 |
> |
echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} |
5275 |
> |
{ echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 |
5276 |
> |
echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} |
5277 |
> |
{ echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 |
5278 |
> |
echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} |
5279 |
> |
{ echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 |
5280 |
> |
echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} |
5281 |
|
( |
5282 |
|
cat <<\_ASBOX |
5283 |
|
## ------------------------------ ## |
5288 |
|
sed "s/^/$as_me: WARNING: /" >&2 |
5289 |
|
;; |
5290 |
|
esac |
5291 |
< |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5292 |
< |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
5293 |
< |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
5291 |
> |
echo "$as_me:$LINENO: checking for zlib.h" >&5 |
5292 |
> |
echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 |
5293 |
> |
if test "${ac_cv_header_zlib_h+set}" = set; then |
5294 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5295 |
|
else |
5296 |
< |
eval "$as_ac_Header=\$ac_header_preproc" |
5296 |
> |
ac_cv_header_zlib_h=$ac_header_preproc |
5297 |
|
fi |
5298 |
< |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
5299 |
< |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
5298 |
> |
echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 |
5299 |
> |
echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 |
5300 |
|
|
5301 |
|
fi |
5302 |
< |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
5303 |
< |
cat >>confdefs.h <<_ACEOF |
5304 |
< |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
5305 |
< |
_ACEOF |
4852 |
< |
|
5302 |
> |
if test $ac_cv_header_zlib_h = yes; then |
5303 |
> |
zlib_cv_zlib_h=yes |
5304 |
> |
else |
5305 |
> |
zlib_cv_zlib_h=no |
5306 |
|
fi |
5307 |
|
|
4855 |
– |
done |
5308 |
|
|
5309 |
+ |
ac_ext=c |
5310 |
+ |
ac_cpp='$CPP $CPPFLAGS' |
5311 |
+ |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5312 |
+ |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5313 |
+ |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
5314 |
|
|
5315 |
< |
for ac_func in getopt_long |
5316 |
< |
do |
5317 |
< |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
5318 |
< |
echo "$as_me:$LINENO: checking for $ac_func" >&5 |
5319 |
< |
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
5320 |
< |
if eval "test \"\${$as_ac_var+set}\" = set"; then |
5315 |
> |
if test "$zlib_cv_libz" = "yes" -a "$zlib_cv_zlib_h" = "yes" |
5316 |
> |
then |
5317 |
> |
# |
5318 |
> |
# If both library and header were found, use them |
5319 |
> |
# |
5320 |
> |
|
5321 |
> |
echo "$as_me:$LINENO: checking for inflateEnd in -lz" >&5 |
5322 |
> |
echo $ECHO_N "checking for inflateEnd in -lz... $ECHO_C" >&6 |
5323 |
> |
if test "${ac_cv_lib_z_inflateEnd+set}" = set; then |
5324 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5325 |
|
else |
5326 |
< |
cat >conftest.$ac_ext <<_ACEOF |
5326 |
> |
ac_check_lib_save_LIBS=$LIBS |
5327 |
> |
LIBS="-lz $LIBS" |
5328 |
> |
cat >conftest.$ac_ext <<_ACEOF |
5329 |
|
/* confdefs.h. */ |
5330 |
|
_ACEOF |
5331 |
|
cat confdefs.h >>conftest.$ac_ext |
5332 |
|
cat >>conftest.$ac_ext <<_ACEOF |
5333 |
|
/* 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 |
5334 |
|
|
5335 |
< |
/* System header to define __stub macros and hopefully few prototypes, |
5336 |
< |
which can conflict with char $ac_func (); below. |
5337 |
< |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
5338 |
< |
<limits.h> exists even on freestanding compilers. */ |
5339 |
< |
|
5340 |
< |
#ifdef __STDC__ |
5341 |
< |
# include <limits.h> |
5342 |
< |
#else |
5343 |
< |
# include <assert.h> |
5344 |
< |
#endif |
5345 |
< |
|
5346 |
< |
#undef $ac_func |
5347 |
< |
|
5348 |
< |
/* Override any gcc2 internal prototype to avoid an error. */ |
5349 |
< |
#ifdef __cplusplus |
5350 |
< |
extern "C" |
5351 |
< |
{ |
5352 |
< |
#endif |
5353 |
< |
/* We use char because int might match the return type of a gcc2 |
5354 |
< |
builtin and then its argument prototype would still apply. */ |
5355 |
< |
char $ac_func (); |
5356 |
< |
/* The GNU C library defines this for functions which it implements |
5357 |
< |
to always fail with ENOSYS. Some functions are actually named |
5358 |
< |
something starting with __ and the normal name is an alias. */ |
5359 |
< |
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
5360 |
< |
choke me |
5361 |
< |
#else |
5362 |
< |
char (*f) () = $ac_func; |
5363 |
< |
#endif |
5364 |
< |
#ifdef __cplusplus |
5365 |
< |
} |
5366 |
< |
#endif |
5367 |
< |
|
5368 |
< |
int |
5369 |
< |
main () |
5370 |
< |
{ |
5371 |
< |
return f != $ac_func; |
5372 |
< |
; |
5373 |
< |
return 0; |
5374 |
< |
} |
5375 |
< |
_ACEOF |
5376 |
< |
rm -f conftest.$ac_objext conftest$ac_exeext |
5377 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5378 |
< |
(eval $ac_link) 2>conftest.er1 |
5379 |
< |
ac_status=$? |
5380 |
< |
grep -v '^ *+' conftest.er1 >conftest.err |
5381 |
< |
rm -f conftest.er1 |
5382 |
< |
cat conftest.err >&5 |
5383 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5384 |
< |
(exit $ac_status); } && |
5385 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
5386 |
< |
|| test ! -s conftest.err' |
5387 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5388 |
< |
(eval $ac_try) 2>&5 |
5389 |
< |
ac_status=$? |
5390 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5391 |
< |
(exit $ac_status); }; } && |
5392 |
< |
{ ac_try='test -s conftest$ac_exeext' |
5393 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5394 |
< |
(eval $ac_try) 2>&5 |
5395 |
< |
ac_status=$? |
5396 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5397 |
< |
(exit $ac_status); }; }; then |
5398 |
< |
eval "$as_ac_var=yes" |
5399 |
< |
else |
5400 |
< |
echo "$as_me: failed program was:" >&5 |
5401 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
5402 |
< |
|
5403 |
< |
eval "$as_ac_var=no" |
5404 |
< |
fi |
5405 |
< |
rm -f conftest.err conftest.$ac_objext \ |
5406 |
< |
conftest$ac_exeext conftest.$ac_ext |
5407 |
< |
fi |
5408 |
< |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
5409 |
< |
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
5410 |
< |
if test `eval echo '${'$as_ac_var'}'` = yes; then |
5411 |
< |
cat >>confdefs.h <<_ACEOF |
5412 |
< |
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
5413 |
< |
_ACEOF |
5414 |
< |
|
5415 |
< |
else |
5416 |
< |
# FreeBSD has a gnugetopt library for this |
5417 |
< |
echo "$as_me:$LINENO: checking for getopt_long in -lgnugetopt" >&5 |
5418 |
< |
echo $ECHO_N "checking for getopt_long in -lgnugetopt... $ECHO_C" >&6 |
5419 |
< |
if test "${ac_cv_lib_gnugetopt_getopt_long+set}" = set; then |
5420 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5421 |
< |
else |
5422 |
< |
ac_check_lib_save_LIBS=$LIBS |
5423 |
< |
LIBS="-lgnugetopt $LIBS" |
5424 |
< |
cat >conftest.$ac_ext <<_ACEOF |
5425 |
< |
/* confdefs.h. */ |
5426 |
< |
_ACEOF |
5427 |
< |
cat confdefs.h >>conftest.$ac_ext |
5428 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
5429 |
< |
/* end confdefs.h. */ |
5430 |
< |
|
5431 |
< |
/* Override any gcc2 internal prototype to avoid an error. */ |
5432 |
< |
#ifdef __cplusplus |
5433 |
< |
extern "C" |
5434 |
< |
#endif |
5435 |
< |
/* We use char because int might match the return type of a gcc2 |
5436 |
< |
builtin and then its argument prototype would still apply. */ |
5437 |
< |
char getopt_long (); |
5438 |
< |
int |
5439 |
< |
main () |
5440 |
< |
{ |
5441 |
< |
getopt_long (); |
5442 |
< |
; |
5443 |
< |
return 0; |
5444 |
< |
} |
5445 |
< |
_ACEOF |
5446 |
< |
rm -f conftest.$ac_objext conftest$ac_exeext |
5447 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5448 |
< |
(eval $ac_link) 2>conftest.er1 |
5449 |
< |
ac_status=$? |
5450 |
< |
grep -v '^ *+' conftest.er1 >conftest.err |
5451 |
< |
rm -f conftest.er1 |
5452 |
< |
cat conftest.err >&5 |
5453 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5454 |
< |
(exit $ac_status); } && |
5455 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
5456 |
< |
|| test ! -s conftest.err' |
5457 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5458 |
< |
(eval $ac_try) 2>&5 |
5459 |
< |
ac_status=$? |
5460 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5461 |
< |
(exit $ac_status); }; } && |
5462 |
< |
{ ac_try='test -s conftest$ac_exeext' |
5463 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5464 |
< |
(eval $ac_try) 2>&5 |
5465 |
< |
ac_status=$? |
5466 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5467 |
< |
(exit $ac_status); }; }; then |
5468 |
< |
ac_cv_lib_gnugetopt_getopt_long=yes |
5469 |
< |
else |
5470 |
< |
echo "$as_me: failed program was:" >&5 |
5471 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
5472 |
< |
|
5473 |
< |
ac_cv_lib_gnugetopt_getopt_long=no |
5474 |
< |
fi |
5475 |
< |
rm -f conftest.err conftest.$ac_objext \ |
5476 |
< |
conftest$ac_exeext conftest.$ac_ext |
5477 |
< |
LIBS=$ac_check_lib_save_LIBS |
5478 |
< |
fi |
5479 |
< |
echo "$as_me:$LINENO: result: $ac_cv_lib_gnugetopt_getopt_long" >&5 |
5480 |
< |
echo "${ECHO_T}$ac_cv_lib_gnugetopt_getopt_long" >&6 |
5481 |
< |
if test $ac_cv_lib_gnugetopt_getopt_long = yes; then |
5482 |
< |
cat >>confdefs.h <<\_ACEOF |
5483 |
< |
#define HAVE_GETOPT_LONG 1 |
5484 |
< |
_ACEOF |
5485 |
< |
|
5486 |
< |
else |
5487 |
< |
# use the GNU replacement |
5488 |
< |
case $LIBOBJS in |
5489 |
< |
"getopt.$ac_objext" | \ |
5490 |
< |
*" getopt.$ac_objext" | \ |
5491 |
< |
"getopt.$ac_objext "* | \ |
5492 |
< |
*" getopt.$ac_objext "* ) ;; |
5493 |
< |
*) LIBOBJS="$LIBOBJS getopt.$ac_objext" ;; |
5494 |
< |
esac |
5495 |
< |
|
5496 |
< |
case $LIBOBJS in |
5497 |
< |
"getopt1.$ac_objext" | \ |
5498 |
< |
*" getopt1.$ac_objext" | \ |
5499 |
< |
"getopt1.$ac_objext "* | \ |
5500 |
< |
*" getopt1.$ac_objext "* ) ;; |
5501 |
< |
*) LIBOBJS="$LIBOBJS getopt1.$ac_objext" ;; |
5502 |
< |
esac |
5503 |
< |
|
5504 |
< |
ac_config_links="$ac_config_links utils/getopt.h:utils/gnugetopt.h" |
5505 |
< |
|
5506 |
< |
fi |
5507 |
< |
|
5508 |
< |
fi |
5509 |
< |
done |
5510 |
< |
|
5511 |
< |
|
5512 |
< |
|
5513 |
< |
case $debug in |
5514 |
< |
1) |
5515 |
< |
;; |
5516 |
< |
*) |
5517 |
< |
|
5518 |
< |
|
5519 |
< |
|
5520 |
< |
|
5521 |
< |
|
5522 |
< |
|
5523 |
< |
echo "$as_me:$LINENO: checking whether we are *really* using GNU cc" >&5 |
5524 |
< |
echo $ECHO_N "checking whether we are *really* using GNU cc... $ECHO_C" >&6 |
5525 |
< |
if test "${ac_cv_prog_really_gcc+set}" = set; then |
5526 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5527 |
< |
else |
5528 |
< |
|
5529 |
< |
cat > conftest.c <<EOF |
5530 |
< |
#ifdef __GNUC__ |
5531 |
< |
#ifndef __INTEL_COMPILER |
5532 |
< |
yes; |
5533 |
< |
#endif |
5534 |
< |
#endif |
5535 |
< |
EOF |
5536 |
< |
if { ac_try='${CC-cc} -E conftest.c' |
5537 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5538 |
< |
(eval $ac_try) 2>&5 |
5539 |
< |
ac_status=$? |
5540 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5541 |
< |
(exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then |
5542 |
< |
ac_cv_prog_really_gcc=yes |
5543 |
< |
else |
5544 |
< |
ac_cv_prog_really_gcc=no |
5545 |
< |
fi |
5546 |
< |
|
5547 |
< |
fi |
5548 |
< |
echo "$as_me:$LINENO: result: $ac_cv_prog_really_gcc" >&5 |
5549 |
< |
echo "${ECHO_T}$ac_cv_prog_really_gcc" >&6 |
5550 |
< |
if test "$ac_cv_prog_really_gcc" = yes; then |
5551 |
< |
: |
5552 |
< |
|
5553 |
< |
else |
5554 |
< |
: |
5555 |
< |
|
5556 |
< |
fi |
5557 |
< |
|
5558 |
< |
|
5559 |
< |
# Try to determine "good" native compiler flags if none specified on command |
5560 |
< |
# line |
5561 |
< |
if test "$ac_test_CFLAGS" != "set"; then |
5562 |
< |
CFLAGS="" |
5563 |
< |
case "${host_cpu}-${host_os}" in |
5564 |
< |
|
5565 |
< |
*linux*) if test "$CC" = icc; then |
5566 |
< |
CFLAGS="-O" |
5567 |
< |
fi;; |
5568 |
< |
sparc-solaris2*) if test "$CC" = cc; then |
5569 |
< |
CFLAGS="-native -fast -xO5 -dalign" |
5570 |
< |
fi;; |
5571 |
< |
|
5572 |
< |
alpha*-osf*) if test "$CC" = cc; then |
5573 |
< |
CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host -arch host -std1" |
5574 |
< |
fi;; |
5575 |
< |
|
5576 |
< |
hppa*-hpux*) if test "$CC" = cc; then |
5577 |
< |
CFLAGS="-Ae +O3 +Oall" |
5578 |
< |
fi;; |
5579 |
< |
|
5580 |
< |
rs6000*-aix*) if test "$CC" = cc -o "$CC" = xlc; then |
5581 |
< |
CFLAGS="-O3 -qtune=auto -qansialias -w" |
5582 |
< |
fi;; |
5583 |
< |
powerpc*-aix*) |
5584 |
< |
if test "$CC" = cc -o "$CC" = xlc; then |
5585 |
< |
CFLAGS="-O3 -qtune=auto -qansialias -w" |
5586 |
< |
echo "*******************************************************" |
5587 |
< |
echo "* You have AIX on an unknown powerpc system. It is *" |
5588 |
< |
echo "* recommended that you use *" |
5589 |
< |
echo "* *" |
5590 |
< |
echo "* CFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w *" |
5591 |
< |
echo "* ^^^ *" |
5592 |
< |
echo "* where xxx is 601, 603, 604, or whatever kind of *" |
5593 |
< |
echo "* PowerPC CPU you have. For more info, man cc. *" |
5594 |
< |
echo "*******************************************************" |
5595 |
< |
fi;; |
5596 |
< |
*darwin*) |
5597 |
< |
if test "$CC" = xlc -o "$CC" = cc; then |
5598 |
< |
CFLAGS="-qthreaded -O5 -qtune=auto -qarch=auto -qunroll=auto -qaltivec" |
5599 |
< |
fi;; |
5600 |
< |
esac |
5601 |
< |
|
5602 |
< |
# use default flags for gcc on all systems |
5603 |
< |
if test $ac_cv_prog_really_gcc = yes; then |
5604 |
< |
CFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic" |
5605 |
< |
fi |
5606 |
< |
|
5607 |
< |
# test for gcc-specific flags: |
5608 |
< |
if test $ac_cv_prog_really_gcc = yes; then |
5609 |
< |
# -malign-double for x86 systems |
5610 |
< |
|
5611 |
< |
|
5612 |
< |
echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -malign-double" >&5 |
5613 |
< |
echo $ECHO_N "checking whether ${CC-cc} accepts -malign-double... $ECHO_C" >&6 |
5614 |
< |
if test "${ac_align_double+set}" = set; then |
5615 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5616 |
< |
else |
5617 |
< |
echo 'void f(){}' > conftest.c |
5618 |
< |
if test -z "`${CC-cc} -malign-double -c conftest.c 2>&1`"; then |
5619 |
< |
ac_align_double=yes |
5620 |
< |
else |
5621 |
< |
ac_align_double=no |
5622 |
< |
fi |
5623 |
< |
rm -f conftest* |
5624 |
< |
|
5625 |
< |
fi |
5626 |
< |
echo "$as_me:$LINENO: result: $ac_align_double" >&5 |
5627 |
< |
echo "${ECHO_T}$ac_align_double" >&6 |
5628 |
< |
if test "$ac_align_double" = yes; then |
5629 |
< |
: |
5630 |
< |
CFLAGS="$CFLAGS -malign-double" |
5631 |
< |
else |
5632 |
< |
: |
5633 |
< |
|
5634 |
< |
fi |
5635 |
< |
|
5636 |
< |
# -fstrict-aliasing for gcc-2.95+ |
5637 |
< |
|
5638 |
< |
|
5639 |
< |
echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -fstrict-aliasing" >&5 |
5640 |
< |
echo $ECHO_N "checking whether ${CC-cc} accepts -fstrict-aliasing... $ECHO_C" >&6 |
5641 |
< |
if test "${ac_fstrict_aliasing+set}" = set; then |
5642 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5643 |
< |
else |
5644 |
< |
echo 'void f(){}' > conftest.c |
5645 |
< |
if test -z "`${CC-cc} -fstrict-aliasing -c conftest.c 2>&1`"; then |
5646 |
< |
ac_fstrict_aliasing=yes |
5647 |
< |
else |
5648 |
< |
ac_fstrict_aliasing=no |
5649 |
< |
fi |
5650 |
< |
rm -f conftest* |
5651 |
< |
|
5652 |
< |
fi |
5653 |
< |
echo "$as_me:$LINENO: result: $ac_fstrict_aliasing" >&5 |
5654 |
< |
echo "${ECHO_T}$ac_fstrict_aliasing" >&6 |
5655 |
< |
if test "$ac_fstrict_aliasing" = yes; then |
5656 |
< |
: |
5657 |
< |
CFLAGS="$CFLAGS -fstrict-aliasing" |
5658 |
< |
else |
5659 |
< |
: |
5660 |
< |
|
5661 |
< |
fi |
5662 |
< |
|
5663 |
< |
fi |
5664 |
< |
|
5665 |
< |
CPU_FLAGS="" |
5666 |
< |
if test $ac_cv_prog_really_gcc = yes; then |
5667 |
< |
case "${host_cpu}" in |
5668 |
< |
i586*) |
5669 |
< |
|
5670 |
< |
echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=pentium" >&5 |
5671 |
< |
echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentium... $ECHO_C" >&6 |
5672 |
< |
if test "${ac_cpu_pentium+set}" = set; then |
5673 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5674 |
< |
else |
5675 |
< |
echo 'void f(){}' > conftest.c |
5676 |
< |
if test -z "`${CC-cc} -mcpu=pentium -c conftest.c 2>&1`"; then |
5677 |
< |
ac_cpu_pentium=yes |
5678 |
< |
else |
5679 |
< |
ac_cpu_pentium=no |
5680 |
< |
fi |
5681 |
< |
rm -f conftest* |
5682 |
< |
|
5683 |
< |
fi |
5684 |
< |
echo "$as_me:$LINENO: result: $ac_cpu_pentium" >&5 |
5685 |
< |
echo "${ECHO_T}$ac_cpu_pentium" >&6 |
5686 |
< |
if test "$ac_cpu_pentium" = yes; then |
5687 |
< |
: |
5688 |
< |
CPU_FLAGS=-mcpu=pentium |
5689 |
< |
else |
5690 |
< |
: |
5691 |
< |
|
5692 |
< |
|
5693 |
< |
echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpentium" >&5 |
5694 |
< |
echo $ECHO_N "checking whether ${CC-cc} accepts -mpentium... $ECHO_C" >&6 |
5695 |
< |
if test "${ac_pentium+set}" = set; then |
5696 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5697 |
< |
else |
5698 |
< |
echo 'void f(){}' > conftest.c |
5699 |
< |
if test -z "`${CC-cc} -mpentium -c conftest.c 2>&1`"; then |
5700 |
< |
ac_pentium=yes |
5701 |
< |
else |
5702 |
< |
ac_pentium=no |
5703 |
< |
fi |
5704 |
< |
rm -f conftest* |
5705 |
< |
|
5706 |
< |
fi |
5707 |
< |
echo "$as_me:$LINENO: result: $ac_pentium" >&5 |
5708 |
< |
echo "${ECHO_T}$ac_pentium" >&6 |
5709 |
< |
if test "$ac_pentium" = yes; then |
5710 |
< |
: |
5711 |
< |
CPU_FLAGS=-mpentium |
5712 |
< |
else |
5713 |
< |
: |
5714 |
< |
|
5715 |
< |
fi |
5716 |
< |
|
5717 |
< |
fi |
5718 |
< |
|
5719 |
< |
;; |
5720 |
< |
i686*) |
5721 |
< |
|
5722 |
< |
echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=pentiumpro" >&5 |
5723 |
< |
echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentiumpro... $ECHO_C" >&6 |
5724 |
< |
if test "${ac_cpu_pentiumpro+set}" = set; then |
5725 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5726 |
< |
else |
5727 |
< |
echo 'void f(){}' > conftest.c |
5728 |
< |
if test -z "`${CC-cc} -mcpu=pentiumpro -c conftest.c 2>&1`"; then |
5729 |
< |
ac_cpu_pentiumpro=yes |
5730 |
< |
else |
5731 |
< |
ac_cpu_pentiumpro=no |
5732 |
< |
fi |
5733 |
< |
rm -f conftest* |
5734 |
< |
|
5735 |
< |
fi |
5736 |
< |
echo "$as_me:$LINENO: result: $ac_cpu_pentiumpro" >&5 |
5737 |
< |
echo "${ECHO_T}$ac_cpu_pentiumpro" >&6 |
5738 |
< |
if test "$ac_cpu_pentiumpro" = yes; then |
5739 |
< |
: |
5740 |
< |
CPU_FLAGS=-mcpu=pentiumpro |
5741 |
< |
else |
5742 |
< |
: |
5743 |
< |
|
5744 |
< |
|
5745 |
< |
echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpentiumpro" >&5 |
5746 |
< |
echo $ECHO_N "checking whether ${CC-cc} accepts -mpentiumpro... $ECHO_C" >&6 |
5747 |
< |
if test "${ac_pentiumpro+set}" = set; then |
5748 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5749 |
< |
else |
5750 |
< |
echo 'void f(){}' > conftest.c |
5751 |
< |
if test -z "`${CC-cc} -mpentiumpro -c conftest.c 2>&1`"; then |
5752 |
< |
ac_pentiumpro=yes |
5753 |
< |
else |
5754 |
< |
ac_pentiumpro=no |
5755 |
< |
fi |
5756 |
< |
rm -f conftest* |
5757 |
< |
|
5758 |
< |
fi |
5759 |
< |
echo "$as_me:$LINENO: result: $ac_pentiumpro" >&5 |
5760 |
< |
echo "${ECHO_T}$ac_pentiumpro" >&6 |
5761 |
< |
if test "$ac_pentiumpro" = yes; then |
5762 |
< |
: |
5763 |
< |
CPU_FLAGS=-mpentiumpro |
5764 |
< |
else |
5765 |
< |
: |
5766 |
< |
|
5767 |
< |
fi |
5768 |
< |
|
5769 |
< |
fi |
5770 |
< |
|
5771 |
< |
;; |
5772 |
< |
powerpc*) |
5773 |
< |
cputype=`(grep cpu /proc/cpuinfo | head -1 | cut -d: -f2 | sed 's/ //g') 2> /dev/null` |
5774 |
< |
is60x=`echo $cputype | egrep "^600-9e?$"` |
5775 |
< |
if test -n "$is60x"; then |
5776 |
< |
|
5777 |
< |
|
5778 |
< |
echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=$cputype" >&5 |
5779 |
< |
echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=$cputype... $ECHO_C" >&6 |
5780 |
< |
if test "${ac_m_cpu_60x+set}" = set; then |
5781 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5782 |
< |
else |
5783 |
< |
echo 'void f(){}' > conftest.c |
5784 |
< |
if test -z "`${CC-cc} -mcpu=$cputype -c conftest.c 2>&1`"; then |
5785 |
< |
ac_m_cpu_60x=yes |
5786 |
< |
else |
5787 |
< |
ac_m_cpu_60x=no |
5788 |
< |
fi |
5789 |
< |
rm -f conftest* |
5790 |
< |
|
5791 |
< |
fi |
5792 |
< |
echo "$as_me:$LINENO: result: $ac_m_cpu_60x" >&5 |
5793 |
< |
echo "${ECHO_T}$ac_m_cpu_60x" >&6 |
5794 |
< |
if test "$ac_m_cpu_60x" = yes; then |
5795 |
< |
: |
5796 |
< |
CPU_FLAGS=-mcpu=$cputype |
5797 |
< |
else |
5798 |
< |
: |
5799 |
< |
|
5800 |
< |
fi |
5801 |
< |
|
5802 |
< |
elif test "$cputype" = 750; then |
5803 |
< |
|
5804 |
< |
|
5805 |
< |
echo "$as_me:$LINENO: checking whether we are using gcc 2.95 or later" >&5 |
5806 |
< |
echo $ECHO_N "checking whether we are using gcc 2.95 or later... $ECHO_C" >&6 |
5807 |
< |
if test "${ac_cv_prog_gcc_2_95+set}" = set; then |
5808 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5809 |
< |
else |
5810 |
< |
|
5811 |
< |
cat > conftest.c <<EOF |
5812 |
< |
#ifdef __GNUC__ && !defined (__INTEL_COMPILER) |
5813 |
< |
# if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95) |
5814 |
< |
yes; |
5815 |
< |
# endif |
5816 |
< |
#endif |
5817 |
< |
EOF |
5818 |
< |
if { ac_try='${CC-cc} -E conftest.c' |
5819 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5820 |
< |
(eval $ac_try) 2>&5 |
5821 |
< |
ac_status=$? |
5822 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5823 |
< |
(exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then |
5824 |
< |
ac_cv_prog_gcc_2_95=yes |
5825 |
< |
else |
5826 |
< |
ac_cv_prog_gcc_2_95=no |
5827 |
< |
fi |
5828 |
< |
|
5829 |
< |
fi |
5830 |
< |
echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_2_95" >&5 |
5831 |
< |
echo "${ECHO_T}$ac_cv_prog_gcc_2_95" >&6 |
5832 |
< |
if test "$ac_cv_prog_gcc_2_95" = yes; then |
5833 |
< |
: |
5834 |
< |
|
5835 |
< |
|
5836 |
< |
echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=750" >&5 |
5837 |
< |
echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=750... $ECHO_C" >&6 |
5838 |
< |
if test "${ac_m_cpu_750+set}" = set; then |
5839 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5840 |
< |
else |
5841 |
< |
echo 'void f(){}' > conftest.c |
5842 |
< |
if test -z "`${CC-cc} -mcpu=750 -c conftest.c 2>&1`"; then |
5843 |
< |
ac_m_cpu_750=yes |
5844 |
< |
else |
5845 |
< |
ac_m_cpu_750=no |
5846 |
< |
fi |
5847 |
< |
rm -f conftest* |
5848 |
< |
|
5849 |
< |
fi |
5850 |
< |
echo "$as_me:$LINENO: result: $ac_m_cpu_750" >&5 |
5851 |
< |
echo "${ECHO_T}$ac_m_cpu_750" >&6 |
5852 |
< |
if test "$ac_m_cpu_750" = yes; then |
5853 |
< |
: |
5854 |
< |
CPU_FLAGS=-mcpu=750 |
5855 |
< |
else |
5856 |
< |
: |
5857 |
< |
|
5858 |
< |
fi |
5859 |
< |
|
5860 |
< |
else |
5861 |
< |
: |
5862 |
< |
|
5863 |
< |
fi |
5864 |
< |
|
5865 |
< |
fi |
5866 |
< |
if test -z "$CPU_FLAGS"; then |
5867 |
< |
|
5868 |
< |
|
5869 |
< |
echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=powerpc" >&5 |
5870 |
< |
echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=powerpc... $ECHO_C" >&6 |
5871 |
< |
if test "${ac_m_cpu_powerpc+set}" = set; then |
5872 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5873 |
< |
else |
5874 |
< |
echo 'void f(){}' > conftest.c |
5875 |
< |
if test -z "`${CC-cc} -mcpu=powerpc -c conftest.c 2>&1`"; then |
5876 |
< |
ac_m_cpu_powerpc=yes |
5877 |
< |
else |
5878 |
< |
ac_m_cpu_powerpc=no |
5879 |
< |
fi |
5880 |
< |
rm -f conftest* |
5881 |
< |
|
5882 |
< |
fi |
5883 |
< |
echo "$as_me:$LINENO: result: $ac_m_cpu_powerpc" >&5 |
5884 |
< |
echo "${ECHO_T}$ac_m_cpu_powerpc" >&6 |
5885 |
< |
if test "$ac_m_cpu_powerpc" = yes; then |
5886 |
< |
: |
5887 |
< |
CPU_FLAGS=-mcpu=powerpc |
5888 |
< |
else |
5889 |
< |
: |
5890 |
< |
|
5891 |
< |
fi |
5892 |
< |
|
5893 |
< |
fi |
5894 |
< |
if test -z "$CPU_FLAGS"; then |
5895 |
< |
|
5896 |
< |
|
5897 |
< |
echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpowerpc" >&5 |
5898 |
< |
echo $ECHO_N "checking whether ${CC-cc} accepts -mpowerpc... $ECHO_C" >&6 |
5899 |
< |
if test "${ac_m_powerpc+set}" = set; then |
5900 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5901 |
< |
else |
5902 |
< |
echo 'void f(){}' > conftest.c |
5903 |
< |
if test -z "`${CC-cc} -mpowerpc -c conftest.c 2>&1`"; then |
5904 |
< |
ac_m_powerpc=yes |
5905 |
< |
else |
5906 |
< |
ac_m_powerpc=no |
5907 |
< |
fi |
5908 |
< |
rm -f conftest* |
5909 |
< |
|
5910 |
< |
fi |
5911 |
< |
echo "$as_me:$LINENO: result: $ac_m_powerpc" >&5 |
5912 |
< |
echo "${ECHO_T}$ac_m_powerpc" >&6 |
5913 |
< |
if test "$ac_m_powerpc" = yes; then |
5914 |
< |
: |
5915 |
< |
CPU_FLAGS=-mpowerpc |
5916 |
< |
else |
5917 |
< |
: |
5918 |
< |
|
5919 |
< |
fi |
5920 |
< |
|
5921 |
< |
fi |
5922 |
< |
esac |
5923 |
< |
fi |
5924 |
< |
|
5925 |
< |
if test -n "$CPU_FLAGS"; then |
5926 |
< |
CFLAGS="$CFLAGS $CPU_FLAGS" |
5927 |
< |
fi |
5928 |
< |
|
5929 |
< |
if test -z "$CFLAGS"; then |
5930 |
< |
echo "" |
5931 |
< |
echo "********************************************************" |
5932 |
< |
echo "* WARNING: Don't know the best CFLAGS for this system *" |
5933 |
< |
echo "* Use make CFLAGS=..., or edit the top level Makefile *" |
5934 |
< |
echo "* (otherwise, a default of CFLAGS=-O3 will be used) *" |
5935 |
< |
echo "********************************************************" |
5936 |
< |
echo "" |
5937 |
< |
CFLAGS="-O3" |
5938 |
< |
fi |
5939 |
< |
|
5940 |
< |
|
5941 |
< |
|
5942 |
< |
echo "$as_me:$LINENO: checking whether ${CC-cc} accepts ${CFLAGS}" >&5 |
5943 |
< |
echo $ECHO_N "checking whether ${CC-cc} accepts ${CFLAGS}... $ECHO_C" >&6 |
5944 |
< |
if test "${ac_guessed_cflags+set}" = set; then |
5945 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5946 |
< |
else |
5947 |
< |
echo 'void f(){}' > conftest.c |
5948 |
< |
if test -z "`${CC-cc} ${CFLAGS} -c conftest.c 2>&1`"; then |
5949 |
< |
ac_guessed_cflags=yes |
5950 |
< |
else |
5951 |
< |
ac_guessed_cflags=no |
5952 |
< |
fi |
5953 |
< |
rm -f conftest* |
5954 |
< |
|
5955 |
< |
fi |
5956 |
< |
echo "$as_me:$LINENO: result: $ac_guessed_cflags" >&5 |
5957 |
< |
echo "${ECHO_T}$ac_guessed_cflags" >&6 |
5958 |
< |
if test "$ac_guessed_cflags" = yes; then |
5959 |
< |
: |
5960 |
< |
|
5961 |
< |
else |
5962 |
< |
: |
5963 |
< |
|
5964 |
< |
echo "" |
5965 |
< |
echo "********************************************************" |
5966 |
< |
echo "* WARNING: The guessed CFLAGS don't seem to work with *" |
5967 |
< |
echo "* your compiler. *" |
5968 |
< |
echo "* Use make CFLAGS=..., or edit the top level Makefile *" |
5969 |
< |
echo "********************************************************" |
5970 |
< |
echo "" |
5971 |
< |
CFLAGS="" |
5972 |
< |
|
5973 |
< |
fi |
5974 |
< |
|
5975 |
< |
|
5976 |
< |
fi |
5977 |
< |
|
5978 |
< |
|
5979 |
< |
|
5980 |
< |
|
5981 |
< |
|
5982 |
< |
|
5983 |
< |
|
5984 |
< |
echo "$as_me:$LINENO: checking whether we are *really* using GNU c++" >&5 |
5985 |
< |
echo $ECHO_N "checking whether we are *really* using GNU c++... $ECHO_C" >&6 |
5986 |
< |
if test "${ac_cv_prog_really_gxx+set}" = set; then |
5987 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5988 |
< |
else |
5989 |
< |
|
5990 |
< |
cat > conftest.cpp <<EOF |
5991 |
< |
#ifdef __GNUC__ |
5992 |
< |
#ifndef __INTEL_COMPILER |
5993 |
< |
yes; |
5994 |
< |
#endif |
5995 |
< |
#endif |
5996 |
< |
EOF |
5997 |
< |
if { ac_try='${CXX-c++} -E conftest.cpp' |
5998 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5999 |
< |
(eval $ac_try) 2>&5 |
6000 |
< |
ac_status=$? |
6001 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6002 |
< |
(exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then |
6003 |
< |
ac_cv_prog_really_gxx=yes |
6004 |
< |
else |
6005 |
< |
ac_cv_prog_really_gxx=no |
6006 |
< |
fi |
6007 |
< |
|
6008 |
< |
fi |
6009 |
< |
echo "$as_me:$LINENO: result: $ac_cv_prog_really_gxx" >&5 |
6010 |
< |
echo "${ECHO_T}$ac_cv_prog_really_gxx" >&6 |
6011 |
< |
if test "$ac_cv_prog_really_gxx" = yes; then |
6012 |
< |
: |
6013 |
< |
|
6014 |
< |
else |
6015 |
< |
: |
6016 |
< |
|
6017 |
< |
fi |
6018 |
< |
|
6019 |
< |
|
6020 |
< |
# Try to determine "good" native compiler flags if none specified on command |
6021 |
< |
# line |
6022 |
< |
if test "$ac_test_CXXFLAGS" != "set"; then |
6023 |
< |
CXXFLAGS="" |
6024 |
< |
case "${host_cpu}-${host_os}" in |
6025 |
< |
|
6026 |
< |
*linux*) if test "$CXX" = icc -o "$CXX" = icpc; then |
6027 |
< |
CXXFLAGS="-O" |
6028 |
< |
fi;; |
6029 |
< |
sparc-solaris2*) if test "$CXX" = CC; then |
6030 |
< |
CXXFLAGS="-native -fast -xO5 -dalign" |
6031 |
< |
fi;; |
6032 |
< |
rs6000*-aix*) if test "$CXX" = xlC; then |
6033 |
< |
CXXFLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w" |
6034 |
< |
fi;; |
6035 |
< |
powerpc*-aix*) |
6036 |
< |
if test "$CXX" = xlC; then |
6037 |
< |
CXXFLAGS="-O3 -qarch=ppc -qansialias -w" |
6038 |
< |
echo "*******************************************************" |
6039 |
< |
echo "* You have AIX on an unknown powerpc system. It is *" |
6040 |
< |
echo "* recommended that you use *" |
6041 |
< |
echo "* *" |
6042 |
< |
echo "* CXXFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w *" |
6043 |
< |
echo "* ^^^ *" |
6044 |
< |
echo "* where xxx is 601, 603, 604, or whatever kind of *" |
6045 |
< |
echo "* PowerPC CPU you have. For more info, man cc. *" |
6046 |
< |
echo "*******************************************************" |
6047 |
< |
fi;; |
6048 |
< |
*darwin*) |
6049 |
< |
if test "$CXX" = xlc++; then |
6050 |
< |
CXXFLAGS="-qthreaded -O5 -qtune=auto -qarch=auto -qunroll=auto -qaltivec" |
5335 |
> |
/* Override any gcc2 internal prototype to avoid an error. */ |
5336 |
> |
#ifdef __cplusplus |
5337 |
> |
extern "C" |
5338 |
> |
#endif |
5339 |
> |
/* We use char because int might match the return type of a gcc2 |
5340 |
> |
builtin and then its argument prototype would still apply. */ |
5341 |
> |
char inflateEnd (); |
5342 |
> |
int |
5343 |
> |
main () |
5344 |
> |
{ |
5345 |
> |
inflateEnd (); |
5346 |
> |
; |
5347 |
> |
return 0; |
5348 |
> |
} |
5349 |
> |
_ACEOF |
5350 |
> |
rm -f conftest.$ac_objext conftest$ac_exeext |
5351 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5352 |
> |
(eval $ac_link) 2>conftest.er1 |
5353 |
> |
ac_status=$? |
5354 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
5355 |
> |
rm -f conftest.er1 |
5356 |
> |
cat conftest.err >&5 |
5357 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5358 |
> |
(exit $ac_status); } && |
5359 |
> |
{ ac_try='test -z "$ac_c_werror_flag" |
5360 |
> |
|| test ! -s conftest.err' |
5361 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5362 |
> |
(eval $ac_try) 2>&5 |
5363 |
> |
ac_status=$? |
5364 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5365 |
> |
(exit $ac_status); }; } && |
5366 |
> |
{ ac_try='test -s conftest$ac_exeext' |
5367 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5368 |
> |
(eval $ac_try) 2>&5 |
5369 |
> |
ac_status=$? |
5370 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5371 |
> |
(exit $ac_status); }; }; then |
5372 |
> |
ac_cv_lib_z_inflateEnd=yes |
5373 |
> |
else |
5374 |
> |
echo "$as_me: failed program was:" >&5 |
5375 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
5376 |
> |
|
5377 |
> |
ac_cv_lib_z_inflateEnd=no |
5378 |
> |
fi |
5379 |
> |
rm -f conftest.err conftest.$ac_objext \ |
5380 |
> |
conftest$ac_exeext conftest.$ac_ext |
5381 |
> |
LIBS=$ac_check_lib_save_LIBS |
5382 |
> |
fi |
5383 |
> |
echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateEnd" >&5 |
5384 |
> |
echo "${ECHO_T}$ac_cv_lib_z_inflateEnd" >&6 |
5385 |
> |
if test $ac_cv_lib_z_inflateEnd = yes; then |
5386 |
> |
cat >>confdefs.h <<_ACEOF |
5387 |
> |
#define HAVE_LIBZ 1 |
5388 |
> |
_ACEOF |
5389 |
> |
|
5390 |
> |
LIBS="-lz $LIBS" |
5391 |
> |
|
5392 |
> |
fi |
5393 |
> |
|
5394 |
> |
echo "$as_me:$LINENO: checking zlib in ${ZLIB_HOME}" >&5 |
5395 |
> |
echo $ECHO_N "checking zlib in ${ZLIB_HOME}... $ECHO_C" >&6 |
5396 |
> |
echo "$as_me:$LINENO: result: ok" >&5 |
5397 |
> |
echo "${ECHO_T}ok" >&6 |
5398 |
> |
else |
5399 |
> |
# |
5400 |
> |
# If either header or library was not found, revert and bomb |
5401 |
> |
# |
5402 |
> |
echo "$as_me:$LINENO: checking zlib in ${ZLIB_HOME}" >&5 |
5403 |
> |
echo $ECHO_N "checking zlib in ${ZLIB_HOME}... $ECHO_C" >&6 |
5404 |
> |
LDFLAGS="$ZLIB_OLD_LDFLAGS" |
5405 |
> |
CPPFLAGS="$ZLIB_OLD_CPPFLAGS" |
5406 |
> |
echo "$as_me:$LINENO: result: failed" >&5 |
5407 |
> |
echo "${ECHO_T}failed" >&6 |
5408 |
> |
{ { echo "$as_me:$LINENO: error: either specify a valid zlib installation with --with-zlib=DIR or disable zlib usage with --without-zlib" >&5 |
5409 |
> |
echo "$as_me: error: either specify a valid zlib installation with --with-zlib=DIR or disable zlib usage with --without-zlib" >&2;} |
5410 |
> |
{ (exit 1); exit 1; }; } |
5411 |
> |
fi |
5412 |
> |
fi |
5413 |
> |
|
5414 |
> |
|
5415 |
> |
|
5416 |
> |
|
5417 |
> |
|
5418 |
> |
|
5419 |
> |
|
5420 |
> |
|
5421 |
> |
for ac_header in sys/time.h unistd.h stdlib.h stdio.h conio.h string.h |
5422 |
> |
do |
5423 |
> |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
5424 |
> |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
5425 |
> |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5426 |
> |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
5427 |
> |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
5428 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5429 |
> |
fi |
5430 |
> |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
5431 |
> |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
5432 |
> |
else |
5433 |
> |
# Is the header compilable? |
5434 |
> |
echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
5435 |
> |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
5436 |
> |
cat >conftest.$ac_ext <<_ACEOF |
5437 |
> |
/* confdefs.h. */ |
5438 |
> |
_ACEOF |
5439 |
> |
cat confdefs.h >>conftest.$ac_ext |
5440 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
5441 |
> |
/* end confdefs.h. */ |
5442 |
> |
$ac_includes_default |
5443 |
> |
#include <$ac_header> |
5444 |
> |
_ACEOF |
5445 |
> |
rm -f conftest.$ac_objext |
5446 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5447 |
> |
(eval $ac_compile) 2>conftest.er1 |
5448 |
> |
ac_status=$? |
5449 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
5450 |
> |
rm -f conftest.er1 |
5451 |
> |
cat conftest.err >&5 |
5452 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5453 |
> |
(exit $ac_status); } && |
5454 |
> |
{ ac_try='test -z "$ac_c_werror_flag" |
5455 |
> |
|| test ! -s conftest.err' |
5456 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5457 |
> |
(eval $ac_try) 2>&5 |
5458 |
> |
ac_status=$? |
5459 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5460 |
> |
(exit $ac_status); }; } && |
5461 |
> |
{ ac_try='test -s conftest.$ac_objext' |
5462 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5463 |
> |
(eval $ac_try) 2>&5 |
5464 |
> |
ac_status=$? |
5465 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5466 |
> |
(exit $ac_status); }; }; then |
5467 |
> |
ac_header_compiler=yes |
5468 |
> |
else |
5469 |
> |
echo "$as_me: failed program was:" >&5 |
5470 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
5471 |
> |
|
5472 |
> |
ac_header_compiler=no |
5473 |
> |
fi |
5474 |
> |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5475 |
> |
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5476 |
> |
echo "${ECHO_T}$ac_header_compiler" >&6 |
5477 |
> |
|
5478 |
> |
# Is the header present? |
5479 |
> |
echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
5480 |
> |
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
5481 |
> |
cat >conftest.$ac_ext <<_ACEOF |
5482 |
> |
/* confdefs.h. */ |
5483 |
> |
_ACEOF |
5484 |
> |
cat confdefs.h >>conftest.$ac_ext |
5485 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
5486 |
> |
/* end confdefs.h. */ |
5487 |
> |
#include <$ac_header> |
5488 |
> |
_ACEOF |
5489 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
5490 |
> |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
5491 |
> |
ac_status=$? |
5492 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
5493 |
> |
rm -f conftest.er1 |
5494 |
> |
cat conftest.err >&5 |
5495 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5496 |
> |
(exit $ac_status); } >/dev/null; then |
5497 |
> |
if test -s conftest.err; then |
5498 |
> |
ac_cpp_err=$ac_c_preproc_warn_flag |
5499 |
> |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
5500 |
> |
else |
5501 |
> |
ac_cpp_err= |
5502 |
> |
fi |
5503 |
> |
else |
5504 |
> |
ac_cpp_err=yes |
5505 |
> |
fi |
5506 |
> |
if test -z "$ac_cpp_err"; then |
5507 |
> |
ac_header_preproc=yes |
5508 |
> |
else |
5509 |
> |
echo "$as_me: failed program was:" >&5 |
5510 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
5511 |
> |
|
5512 |
> |
ac_header_preproc=no |
5513 |
> |
fi |
5514 |
> |
rm -f conftest.err conftest.$ac_ext |
5515 |
> |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5516 |
> |
echo "${ECHO_T}$ac_header_preproc" >&6 |
5517 |
> |
|
5518 |
> |
# So? What about this header? |
5519 |
> |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5520 |
> |
yes:no: ) |
5521 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5522 |
> |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
5523 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
5524 |
> |
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
5525 |
> |
ac_header_preproc=yes |
5526 |
> |
;; |
5527 |
> |
no:yes:* ) |
5528 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5529 |
> |
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
5530 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
5531 |
> |
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
5532 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
5533 |
> |
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
5534 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
5535 |
> |
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
5536 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
5537 |
> |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
5538 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
5539 |
> |
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
5540 |
> |
( |
5541 |
> |
cat <<\_ASBOX |
5542 |
> |
## ------------------------------ ## |
5543 |
> |
## Report this to gezelter@nd.edu ## |
5544 |
> |
## ------------------------------ ## |
5545 |
> |
_ASBOX |
5546 |
> |
) | |
5547 |
> |
sed "s/^/$as_me: WARNING: /" >&2 |
5548 |
> |
;; |
5549 |
> |
esac |
5550 |
> |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5551 |
> |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
5552 |
> |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
5553 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5554 |
> |
else |
5555 |
> |
eval "$as_ac_Header=\$ac_header_preproc" |
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 |
> |
|
5560 |
> |
fi |
5561 |
> |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
5562 |
> |
cat >>confdefs.h <<_ACEOF |
5563 |
> |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
5564 |
> |
_ACEOF |
5565 |
> |
|
5566 |
> |
fi |
5567 |
> |
|
5568 |
> |
done |
5569 |
> |
|
5570 |
> |
|
5571 |
> |
|
5572 |
> |
|
5573 |
> |
|
5574 |
> |
|
5575 |
> |
for ac_header in strstream.h iostream.h fstream.h math.h time.h |
5576 |
> |
do |
5577 |
> |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
5578 |
> |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
5579 |
> |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5580 |
> |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
5581 |
> |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
5582 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5583 |
> |
fi |
5584 |
> |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
5585 |
> |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
5586 |
> |
else |
5587 |
> |
# Is the header compilable? |
5588 |
> |
echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
5589 |
> |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
5590 |
> |
cat >conftest.$ac_ext <<_ACEOF |
5591 |
> |
/* confdefs.h. */ |
5592 |
> |
_ACEOF |
5593 |
> |
cat confdefs.h >>conftest.$ac_ext |
5594 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
5595 |
> |
/* end confdefs.h. */ |
5596 |
> |
$ac_includes_default |
5597 |
> |
#include <$ac_header> |
5598 |
> |
_ACEOF |
5599 |
> |
rm -f conftest.$ac_objext |
5600 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5601 |
> |
(eval $ac_compile) 2>conftest.er1 |
5602 |
> |
ac_status=$? |
5603 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
5604 |
> |
rm -f conftest.er1 |
5605 |
> |
cat conftest.err >&5 |
5606 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5607 |
> |
(exit $ac_status); } && |
5608 |
> |
{ ac_try='test -z "$ac_c_werror_flag" |
5609 |
> |
|| test ! -s conftest.err' |
5610 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5611 |
> |
(eval $ac_try) 2>&5 |
5612 |
> |
ac_status=$? |
5613 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5614 |
> |
(exit $ac_status); }; } && |
5615 |
> |
{ ac_try='test -s conftest.$ac_objext' |
5616 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5617 |
> |
(eval $ac_try) 2>&5 |
5618 |
> |
ac_status=$? |
5619 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5620 |
> |
(exit $ac_status); }; }; then |
5621 |
> |
ac_header_compiler=yes |
5622 |
> |
else |
5623 |
> |
echo "$as_me: failed program was:" >&5 |
5624 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
5625 |
> |
|
5626 |
> |
ac_header_compiler=no |
5627 |
> |
fi |
5628 |
> |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5629 |
> |
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5630 |
> |
echo "${ECHO_T}$ac_header_compiler" >&6 |
5631 |
> |
|
5632 |
> |
# Is the header present? |
5633 |
> |
echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
5634 |
> |
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
5635 |
> |
cat >conftest.$ac_ext <<_ACEOF |
5636 |
> |
/* confdefs.h. */ |
5637 |
> |
_ACEOF |
5638 |
> |
cat confdefs.h >>conftest.$ac_ext |
5639 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
5640 |
> |
/* end confdefs.h. */ |
5641 |
> |
#include <$ac_header> |
5642 |
> |
_ACEOF |
5643 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
5644 |
> |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
5645 |
> |
ac_status=$? |
5646 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
5647 |
> |
rm -f conftest.er1 |
5648 |
> |
cat conftest.err >&5 |
5649 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5650 |
> |
(exit $ac_status); } >/dev/null; then |
5651 |
> |
if test -s conftest.err; then |
5652 |
> |
ac_cpp_err=$ac_c_preproc_warn_flag |
5653 |
> |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
5654 |
> |
else |
5655 |
> |
ac_cpp_err= |
5656 |
> |
fi |
5657 |
> |
else |
5658 |
> |
ac_cpp_err=yes |
5659 |
> |
fi |
5660 |
> |
if test -z "$ac_cpp_err"; then |
5661 |
> |
ac_header_preproc=yes |
5662 |
> |
else |
5663 |
> |
echo "$as_me: failed program was:" >&5 |
5664 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
5665 |
> |
|
5666 |
> |
ac_header_preproc=no |
5667 |
> |
fi |
5668 |
> |
rm -f conftest.err conftest.$ac_ext |
5669 |
> |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5670 |
> |
echo "${ECHO_T}$ac_header_preproc" >&6 |
5671 |
> |
|
5672 |
> |
# So? What about this header? |
5673 |
> |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5674 |
> |
yes:no: ) |
5675 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5676 |
> |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
5677 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
5678 |
> |
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
5679 |
> |
ac_header_preproc=yes |
5680 |
> |
;; |
5681 |
> |
no:yes:* ) |
5682 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5683 |
> |
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
5684 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
5685 |
> |
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
5686 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
5687 |
> |
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
5688 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
5689 |
> |
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
5690 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
5691 |
> |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
5692 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
5693 |
> |
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
5694 |
> |
( |
5695 |
> |
cat <<\_ASBOX |
5696 |
> |
## ------------------------------ ## |
5697 |
> |
## Report this to gezelter@nd.edu ## |
5698 |
> |
## ------------------------------ ## |
5699 |
> |
_ASBOX |
5700 |
> |
) | |
5701 |
> |
sed "s/^/$as_me: WARNING: /" >&2 |
5702 |
> |
;; |
5703 |
> |
esac |
5704 |
> |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5705 |
> |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
5706 |
> |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
5707 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5708 |
> |
else |
5709 |
> |
eval "$as_ac_Header=\$ac_header_preproc" |
5710 |
> |
fi |
5711 |
> |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
5712 |
> |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
5713 |
> |
|
5714 |
> |
fi |
5715 |
> |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
5716 |
> |
cat >>confdefs.h <<_ACEOF |
5717 |
> |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
5718 |
> |
_ACEOF |
5719 |
> |
|
5720 |
> |
fi |
5721 |
> |
|
5722 |
> |
done |
5723 |
> |
|
5724 |
> |
ac_ext=cc |
5725 |
> |
ac_cpp='$CXXCPP $CPPFLAGS' |
5726 |
> |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5727 |
> |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5728 |
> |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
5729 |
> |
|
5730 |
> |
ac_ext=cc |
5731 |
> |
ac_cpp='$CXXCPP $CPPFLAGS' |
5732 |
> |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5733 |
> |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5734 |
> |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
5735 |
> |
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
5736 |
> |
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 |
5737 |
> |
if test -z "$CXXCPP"; then |
5738 |
> |
if test "${ac_cv_prog_CXXCPP+set}" = set; then |
5739 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5740 |
> |
else |
5741 |
> |
# Double quotes because CXXCPP needs to be expanded |
5742 |
> |
for CXXCPP in "$CXX -E" "/lib/cpp" |
5743 |
> |
do |
5744 |
> |
ac_preproc_ok=false |
5745 |
> |
for ac_cxx_preproc_warn_flag in '' yes |
5746 |
> |
do |
5747 |
> |
# Use a header file that comes with gcc, so configuring glibc |
5748 |
> |
# with a fresh cross-compiler works. |
5749 |
> |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
5750 |
> |
# <limits.h> exists even on freestanding compilers. |
5751 |
> |
# On the NeXT, cc -E runs the code through the compiler's parser, |
5752 |
> |
# not just through cpp. "Syntax error" is here to catch this case. |
5753 |
> |
cat >conftest.$ac_ext <<_ACEOF |
5754 |
> |
/* confdefs.h. */ |
5755 |
> |
_ACEOF |
5756 |
> |
cat confdefs.h >>conftest.$ac_ext |
5757 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
5758 |
> |
/* end confdefs.h. */ |
5759 |
> |
#ifdef __STDC__ |
5760 |
> |
# include <limits.h> |
5761 |
> |
#else |
5762 |
> |
# include <assert.h> |
5763 |
> |
#endif |
5764 |
> |
Syntax error |
5765 |
> |
_ACEOF |
5766 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
5767 |
> |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
5768 |
> |
ac_status=$? |
5769 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
5770 |
> |
rm -f conftest.er1 |
5771 |
> |
cat conftest.err >&5 |
5772 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5773 |
> |
(exit $ac_status); } >/dev/null; then |
5774 |
> |
if test -s conftest.err; then |
5775 |
> |
ac_cpp_err=$ac_cxx_preproc_warn_flag |
5776 |
> |
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
5777 |
> |
else |
5778 |
> |
ac_cpp_err= |
5779 |
> |
fi |
5780 |
> |
else |
5781 |
> |
ac_cpp_err=yes |
5782 |
> |
fi |
5783 |
> |
if test -z "$ac_cpp_err"; then |
5784 |
> |
: |
5785 |
> |
else |
5786 |
> |
echo "$as_me: failed program was:" >&5 |
5787 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
5788 |
> |
|
5789 |
> |
# Broken: fails on valid input. |
5790 |
> |
continue |
5791 |
> |
fi |
5792 |
> |
rm -f conftest.err conftest.$ac_ext |
5793 |
> |
|
5794 |
> |
# OK, works on sane cases. Now check whether non-existent headers |
5795 |
> |
# can be detected and how. |
5796 |
> |
cat >conftest.$ac_ext <<_ACEOF |
5797 |
> |
/* confdefs.h. */ |
5798 |
> |
_ACEOF |
5799 |
> |
cat confdefs.h >>conftest.$ac_ext |
5800 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
5801 |
> |
/* end confdefs.h. */ |
5802 |
> |
#include <ac_nonexistent.h> |
5803 |
> |
_ACEOF |
5804 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
5805 |
> |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
5806 |
> |
ac_status=$? |
5807 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
5808 |
> |
rm -f conftest.er1 |
5809 |
> |
cat conftest.err >&5 |
5810 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5811 |
> |
(exit $ac_status); } >/dev/null; then |
5812 |
> |
if test -s conftest.err; then |
5813 |
> |
ac_cpp_err=$ac_cxx_preproc_warn_flag |
5814 |
> |
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
5815 |
> |
else |
5816 |
> |
ac_cpp_err= |
5817 |
> |
fi |
5818 |
> |
else |
5819 |
> |
ac_cpp_err=yes |
5820 |
> |
fi |
5821 |
> |
if test -z "$ac_cpp_err"; then |
5822 |
> |
# Broken: success on invalid input. |
5823 |
> |
continue |
5824 |
> |
else |
5825 |
> |
echo "$as_me: failed program was:" >&5 |
5826 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
5827 |
> |
|
5828 |
> |
# Passes both tests. |
5829 |
> |
ac_preproc_ok=: |
5830 |
> |
break |
5831 |
> |
fi |
5832 |
> |
rm -f conftest.err conftest.$ac_ext |
5833 |
> |
|
5834 |
> |
done |
5835 |
> |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
5836 |
> |
rm -f conftest.err conftest.$ac_ext |
5837 |
> |
if $ac_preproc_ok; then |
5838 |
> |
break |
5839 |
> |
fi |
5840 |
> |
|
5841 |
> |
done |
5842 |
> |
ac_cv_prog_CXXCPP=$CXXCPP |
5843 |
> |
|
5844 |
> |
fi |
5845 |
> |
CXXCPP=$ac_cv_prog_CXXCPP |
5846 |
> |
else |
5847 |
> |
ac_cv_prog_CXXCPP=$CXXCPP |
5848 |
> |
fi |
5849 |
> |
echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
5850 |
> |
echo "${ECHO_T}$CXXCPP" >&6 |
5851 |
> |
ac_preproc_ok=false |
5852 |
> |
for ac_cxx_preproc_warn_flag in '' yes |
5853 |
> |
do |
5854 |
> |
# Use a header file that comes with gcc, so configuring glibc |
5855 |
> |
# with a fresh cross-compiler works. |
5856 |
> |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
5857 |
> |
# <limits.h> exists even on freestanding compilers. |
5858 |
> |
# On the NeXT, cc -E runs the code through the compiler's parser, |
5859 |
> |
# not just through cpp. "Syntax error" is here to catch this case. |
5860 |
> |
cat >conftest.$ac_ext <<_ACEOF |
5861 |
> |
/* confdefs.h. */ |
5862 |
> |
_ACEOF |
5863 |
> |
cat confdefs.h >>conftest.$ac_ext |
5864 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
5865 |
> |
/* end confdefs.h. */ |
5866 |
> |
#ifdef __STDC__ |
5867 |
> |
# include <limits.h> |
5868 |
> |
#else |
5869 |
> |
# include <assert.h> |
5870 |
> |
#endif |
5871 |
> |
Syntax error |
5872 |
> |
_ACEOF |
5873 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
5874 |
> |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
5875 |
> |
ac_status=$? |
5876 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
5877 |
> |
rm -f conftest.er1 |
5878 |
> |
cat conftest.err >&5 |
5879 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5880 |
> |
(exit $ac_status); } >/dev/null; then |
5881 |
> |
if test -s conftest.err; then |
5882 |
> |
ac_cpp_err=$ac_cxx_preproc_warn_flag |
5883 |
> |
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
5884 |
> |
else |
5885 |
> |
ac_cpp_err= |
5886 |
> |
fi |
5887 |
> |
else |
5888 |
> |
ac_cpp_err=yes |
5889 |
> |
fi |
5890 |
> |
if test -z "$ac_cpp_err"; then |
5891 |
> |
: |
5892 |
> |
else |
5893 |
> |
echo "$as_me: failed program was:" >&5 |
5894 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
5895 |
> |
|
5896 |
> |
# Broken: fails on valid input. |
5897 |
> |
continue |
5898 |
> |
fi |
5899 |
> |
rm -f conftest.err conftest.$ac_ext |
5900 |
> |
|
5901 |
> |
# OK, works on sane cases. Now check whether non-existent headers |
5902 |
> |
# can be detected and how. |
5903 |
> |
cat >conftest.$ac_ext <<_ACEOF |
5904 |
> |
/* confdefs.h. */ |
5905 |
> |
_ACEOF |
5906 |
> |
cat confdefs.h >>conftest.$ac_ext |
5907 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
5908 |
> |
/* end confdefs.h. */ |
5909 |
> |
#include <ac_nonexistent.h> |
5910 |
> |
_ACEOF |
5911 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
5912 |
> |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
5913 |
> |
ac_status=$? |
5914 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
5915 |
> |
rm -f conftest.er1 |
5916 |
> |
cat conftest.err >&5 |
5917 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5918 |
> |
(exit $ac_status); } >/dev/null; then |
5919 |
> |
if test -s conftest.err; then |
5920 |
> |
ac_cpp_err=$ac_cxx_preproc_warn_flag |
5921 |
> |
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
5922 |
> |
else |
5923 |
> |
ac_cpp_err= |
5924 |
> |
fi |
5925 |
> |
else |
5926 |
> |
ac_cpp_err=yes |
5927 |
> |
fi |
5928 |
> |
if test -z "$ac_cpp_err"; then |
5929 |
> |
# Broken: success on invalid input. |
5930 |
> |
continue |
5931 |
> |
else |
5932 |
> |
echo "$as_me: failed program was:" >&5 |
5933 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
5934 |
> |
|
5935 |
> |
# Passes both tests. |
5936 |
> |
ac_preproc_ok=: |
5937 |
> |
break |
5938 |
> |
fi |
5939 |
> |
rm -f conftest.err conftest.$ac_ext |
5940 |
> |
|
5941 |
> |
done |
5942 |
> |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
5943 |
> |
rm -f conftest.err conftest.$ac_ext |
5944 |
> |
if $ac_preproc_ok; then |
5945 |
> |
: |
5946 |
> |
else |
5947 |
> |
{ { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
5948 |
> |
See \`config.log' for more details." >&5 |
5949 |
> |
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
5950 |
> |
See \`config.log' for more details." >&2;} |
5951 |
> |
{ (exit 1); exit 1; }; } |
5952 |
> |
fi |
5953 |
> |
|
5954 |
> |
ac_ext=cc |
5955 |
> |
ac_cpp='$CXXCPP $CPPFLAGS' |
5956 |
> |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5957 |
> |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5958 |
> |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
5959 |
> |
|
5960 |
> |
|
5961 |
> |
|
5962 |
> |
|
5963 |
> |
|
5964 |
> |
|
5965 |
> |
|
5966 |
> |
for ac_header in ctype.h iostream fstream sstream strstream |
5967 |
> |
do |
5968 |
> |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
5969 |
> |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
5970 |
> |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5971 |
> |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
5972 |
> |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
5973 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5974 |
> |
fi |
5975 |
> |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
5976 |
> |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
5977 |
> |
else |
5978 |
> |
# Is the header compilable? |
5979 |
> |
echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
5980 |
> |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
5981 |
> |
cat >conftest.$ac_ext <<_ACEOF |
5982 |
> |
/* confdefs.h. */ |
5983 |
> |
_ACEOF |
5984 |
> |
cat confdefs.h >>conftest.$ac_ext |
5985 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
5986 |
> |
/* end confdefs.h. */ |
5987 |
> |
$ac_includes_default |
5988 |
> |
#include <$ac_header> |
5989 |
> |
_ACEOF |
5990 |
> |
rm -f conftest.$ac_objext |
5991 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5992 |
> |
(eval $ac_compile) 2>conftest.er1 |
5993 |
> |
ac_status=$? |
5994 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
5995 |
> |
rm -f conftest.er1 |
5996 |
> |
cat conftest.err >&5 |
5997 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5998 |
> |
(exit $ac_status); } && |
5999 |
> |
{ ac_try='test -z "$ac_cxx_werror_flag" |
6000 |
> |
|| test ! -s conftest.err' |
6001 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6002 |
> |
(eval $ac_try) 2>&5 |
6003 |
> |
ac_status=$? |
6004 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6005 |
> |
(exit $ac_status); }; } && |
6006 |
> |
{ ac_try='test -s conftest.$ac_objext' |
6007 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6008 |
> |
(eval $ac_try) 2>&5 |
6009 |
> |
ac_status=$? |
6010 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6011 |
> |
(exit $ac_status); }; }; then |
6012 |
> |
ac_header_compiler=yes |
6013 |
> |
else |
6014 |
> |
echo "$as_me: failed program was:" >&5 |
6015 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
6016 |
> |
|
6017 |
> |
ac_header_compiler=no |
6018 |
> |
fi |
6019 |
> |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6020 |
> |
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
6021 |
> |
echo "${ECHO_T}$ac_header_compiler" >&6 |
6022 |
> |
|
6023 |
> |
# Is the header present? |
6024 |
> |
echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
6025 |
> |
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
6026 |
> |
cat >conftest.$ac_ext <<_ACEOF |
6027 |
> |
/* confdefs.h. */ |
6028 |
> |
_ACEOF |
6029 |
> |
cat confdefs.h >>conftest.$ac_ext |
6030 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
6031 |
> |
/* end confdefs.h. */ |
6032 |
> |
#include <$ac_header> |
6033 |
> |
_ACEOF |
6034 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
6035 |
> |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
6036 |
> |
ac_status=$? |
6037 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
6038 |
> |
rm -f conftest.er1 |
6039 |
> |
cat conftest.err >&5 |
6040 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6041 |
> |
(exit $ac_status); } >/dev/null; then |
6042 |
> |
if test -s conftest.err; then |
6043 |
> |
ac_cpp_err=$ac_cxx_preproc_warn_flag |
6044 |
> |
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
6045 |
> |
else |
6046 |
> |
ac_cpp_err= |
6047 |
> |
fi |
6048 |
> |
else |
6049 |
> |
ac_cpp_err=yes |
6050 |
> |
fi |
6051 |
> |
if test -z "$ac_cpp_err"; then |
6052 |
> |
ac_header_preproc=yes |
6053 |
> |
else |
6054 |
> |
echo "$as_me: failed program was:" >&5 |
6055 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
6056 |
> |
|
6057 |
> |
ac_header_preproc=no |
6058 |
> |
fi |
6059 |
> |
rm -f conftest.err conftest.$ac_ext |
6060 |
> |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
6061 |
> |
echo "${ECHO_T}$ac_header_preproc" >&6 |
6062 |
> |
|
6063 |
> |
# So? What about this header? |
6064 |
> |
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
6065 |
> |
yes:no: ) |
6066 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
6067 |
> |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
6068 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
6069 |
> |
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
6070 |
> |
ac_header_preproc=yes |
6071 |
> |
;; |
6072 |
> |
no:yes:* ) |
6073 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
6074 |
> |
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
6075 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
6076 |
> |
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
6077 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
6078 |
> |
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
6079 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
6080 |
> |
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
6081 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
6082 |
> |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
6083 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
6084 |
> |
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
6085 |
> |
( |
6086 |
> |
cat <<\_ASBOX |
6087 |
> |
## ------------------------------ ## |
6088 |
> |
## Report this to gezelter@nd.edu ## |
6089 |
> |
## ------------------------------ ## |
6090 |
> |
_ASBOX |
6091 |
> |
) | |
6092 |
> |
sed "s/^/$as_me: WARNING: /" >&2 |
6093 |
> |
;; |
6094 |
> |
esac |
6095 |
> |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6096 |
> |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
6097 |
> |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
6098 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6099 |
> |
else |
6100 |
> |
eval "$as_ac_Header=\$ac_header_preproc" |
6101 |
> |
fi |
6102 |
> |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
6103 |
> |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
6104 |
> |
|
6105 |
> |
fi |
6106 |
> |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
6107 |
> |
cat >>confdefs.h <<_ACEOF |
6108 |
> |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
6109 |
> |
_ACEOF |
6110 |
> |
|
6111 |
> |
fi |
6112 |
> |
|
6113 |
> |
done |
6114 |
> |
|
6115 |
> |
ac_ext=c |
6116 |
> |
ac_cpp='$CPP $CPPFLAGS' |
6117 |
> |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
6118 |
> |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6119 |
> |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
6120 |
> |
|
6121 |
> |
|
6122 |
> |
|
6123 |
> |
|
6124 |
> |
for ac_header in sys/pstat.h sys/sysmp.h sys/sysinfo.h |
6125 |
> |
do |
6126 |
> |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
6127 |
> |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
6128 |
> |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6129 |
> |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
6130 |
> |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
6131 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6132 |
> |
fi |
6133 |
> |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
6134 |
> |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
6135 |
> |
else |
6136 |
> |
# Is the header compilable? |
6137 |
> |
echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
6138 |
> |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
6139 |
> |
cat >conftest.$ac_ext <<_ACEOF |
6140 |
> |
/* confdefs.h. */ |
6141 |
> |
_ACEOF |
6142 |
> |
cat confdefs.h >>conftest.$ac_ext |
6143 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
6144 |
> |
/* end confdefs.h. */ |
6145 |
> |
$ac_includes_default |
6146 |
> |
#include <$ac_header> |
6147 |
> |
_ACEOF |
6148 |
> |
rm -f conftest.$ac_objext |
6149 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
6150 |
> |
(eval $ac_compile) 2>conftest.er1 |
6151 |
> |
ac_status=$? |
6152 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
6153 |
> |
rm -f conftest.er1 |
6154 |
> |
cat conftest.err >&5 |
6155 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6156 |
> |
(exit $ac_status); } && |
6157 |
> |
{ ac_try='test -z "$ac_c_werror_flag" |
6158 |
> |
|| test ! -s conftest.err' |
6159 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6160 |
> |
(eval $ac_try) 2>&5 |
6161 |
> |
ac_status=$? |
6162 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6163 |
> |
(exit $ac_status); }; } && |
6164 |
> |
{ ac_try='test -s conftest.$ac_objext' |
6165 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6166 |
> |
(eval $ac_try) 2>&5 |
6167 |
> |
ac_status=$? |
6168 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6169 |
> |
(exit $ac_status); }; }; then |
6170 |
> |
ac_header_compiler=yes |
6171 |
> |
else |
6172 |
> |
echo "$as_me: failed program was:" >&5 |
6173 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
6174 |
> |
|
6175 |
> |
ac_header_compiler=no |
6176 |
> |
fi |
6177 |
> |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6178 |
> |
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
6179 |
> |
echo "${ECHO_T}$ac_header_compiler" >&6 |
6180 |
> |
|
6181 |
> |
# Is the header present? |
6182 |
> |
echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
6183 |
> |
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
6184 |
> |
cat >conftest.$ac_ext <<_ACEOF |
6185 |
> |
/* confdefs.h. */ |
6186 |
> |
_ACEOF |
6187 |
> |
cat confdefs.h >>conftest.$ac_ext |
6188 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
6189 |
> |
/* end confdefs.h. */ |
6190 |
> |
#include <$ac_header> |
6191 |
> |
_ACEOF |
6192 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
6193 |
> |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
6194 |
> |
ac_status=$? |
6195 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
6196 |
> |
rm -f conftest.er1 |
6197 |
> |
cat conftest.err >&5 |
6198 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6199 |
> |
(exit $ac_status); } >/dev/null; then |
6200 |
> |
if test -s conftest.err; then |
6201 |
> |
ac_cpp_err=$ac_c_preproc_warn_flag |
6202 |
> |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
6203 |
> |
else |
6204 |
> |
ac_cpp_err= |
6205 |
> |
fi |
6206 |
> |
else |
6207 |
> |
ac_cpp_err=yes |
6208 |
> |
fi |
6209 |
> |
if test -z "$ac_cpp_err"; then |
6210 |
> |
ac_header_preproc=yes |
6211 |
> |
else |
6212 |
> |
echo "$as_me: failed program was:" >&5 |
6213 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
6214 |
> |
|
6215 |
> |
ac_header_preproc=no |
6216 |
> |
fi |
6217 |
> |
rm -f conftest.err conftest.$ac_ext |
6218 |
> |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
6219 |
> |
echo "${ECHO_T}$ac_header_preproc" >&6 |
6220 |
> |
|
6221 |
> |
# So? What about this header? |
6222 |
> |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
6223 |
> |
yes:no: ) |
6224 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
6225 |
> |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
6226 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
6227 |
> |
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
6228 |
> |
ac_header_preproc=yes |
6229 |
> |
;; |
6230 |
> |
no:yes:* ) |
6231 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
6232 |
> |
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
6233 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
6234 |
> |
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
6235 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
6236 |
> |
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
6237 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
6238 |
> |
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
6239 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
6240 |
> |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
6241 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
6242 |
> |
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
6243 |
> |
( |
6244 |
> |
cat <<\_ASBOX |
6245 |
> |
## ------------------------------ ## |
6246 |
> |
## Report this to gezelter@nd.edu ## |
6247 |
> |
## ------------------------------ ## |
6248 |
> |
_ASBOX |
6249 |
> |
) | |
6250 |
> |
sed "s/^/$as_me: WARNING: /" >&2 |
6251 |
> |
;; |
6252 |
> |
esac |
6253 |
> |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6254 |
> |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
6255 |
> |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
6256 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6257 |
> |
else |
6258 |
> |
eval "$as_ac_Header=\$ac_header_preproc" |
6259 |
> |
fi |
6260 |
> |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
6261 |
> |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
6262 |
> |
|
6263 |
> |
fi |
6264 |
> |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
6265 |
> |
cat >>confdefs.h <<_ACEOF |
6266 |
> |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
6267 |
> |
_ACEOF |
6268 |
> |
|
6269 |
> |
fi |
6270 |
> |
|
6271 |
> |
done |
6272 |
> |
|
6273 |
> |
|
6274 |
> |
|
6275 |
> |
|
6276 |
> |
|
6277 |
> |
for ac_header in sys/table.h sys/param.h sys/sysctl.h sys/sytemcfg.h |
6278 |
> |
do |
6279 |
> |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
6280 |
> |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
6281 |
> |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6282 |
> |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
6283 |
> |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
6284 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6285 |
> |
fi |
6286 |
> |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
6287 |
> |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
6288 |
> |
else |
6289 |
> |
# Is the header compilable? |
6290 |
> |
echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
6291 |
> |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
6292 |
> |
cat >conftest.$ac_ext <<_ACEOF |
6293 |
> |
/* confdefs.h. */ |
6294 |
> |
_ACEOF |
6295 |
> |
cat confdefs.h >>conftest.$ac_ext |
6296 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
6297 |
> |
/* end confdefs.h. */ |
6298 |
> |
$ac_includes_default |
6299 |
> |
#include <$ac_header> |
6300 |
> |
_ACEOF |
6301 |
> |
rm -f conftest.$ac_objext |
6302 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
6303 |
> |
(eval $ac_compile) 2>conftest.er1 |
6304 |
> |
ac_status=$? |
6305 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
6306 |
> |
rm -f conftest.er1 |
6307 |
> |
cat conftest.err >&5 |
6308 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6309 |
> |
(exit $ac_status); } && |
6310 |
> |
{ ac_try='test -z "$ac_c_werror_flag" |
6311 |
> |
|| test ! -s conftest.err' |
6312 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6313 |
> |
(eval $ac_try) 2>&5 |
6314 |
> |
ac_status=$? |
6315 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6316 |
> |
(exit $ac_status); }; } && |
6317 |
> |
{ ac_try='test -s conftest.$ac_objext' |
6318 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6319 |
> |
(eval $ac_try) 2>&5 |
6320 |
> |
ac_status=$? |
6321 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6322 |
> |
(exit $ac_status); }; }; then |
6323 |
> |
ac_header_compiler=yes |
6324 |
> |
else |
6325 |
> |
echo "$as_me: failed program was:" >&5 |
6326 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
6327 |
> |
|
6328 |
> |
ac_header_compiler=no |
6329 |
> |
fi |
6330 |
> |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6331 |
> |
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
6332 |
> |
echo "${ECHO_T}$ac_header_compiler" >&6 |
6333 |
> |
|
6334 |
> |
# Is the header present? |
6335 |
> |
echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
6336 |
> |
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
6337 |
> |
cat >conftest.$ac_ext <<_ACEOF |
6338 |
> |
/* confdefs.h. */ |
6339 |
> |
_ACEOF |
6340 |
> |
cat confdefs.h >>conftest.$ac_ext |
6341 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
6342 |
> |
/* end confdefs.h. */ |
6343 |
> |
#include <$ac_header> |
6344 |
> |
_ACEOF |
6345 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
6346 |
> |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
6347 |
> |
ac_status=$? |
6348 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
6349 |
> |
rm -f conftest.er1 |
6350 |
> |
cat conftest.err >&5 |
6351 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6352 |
> |
(exit $ac_status); } >/dev/null; then |
6353 |
> |
if test -s conftest.err; then |
6354 |
> |
ac_cpp_err=$ac_c_preproc_warn_flag |
6355 |
> |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
6356 |
> |
else |
6357 |
> |
ac_cpp_err= |
6358 |
> |
fi |
6359 |
> |
else |
6360 |
> |
ac_cpp_err=yes |
6361 |
> |
fi |
6362 |
> |
if test -z "$ac_cpp_err"; then |
6363 |
> |
ac_header_preproc=yes |
6364 |
> |
else |
6365 |
> |
echo "$as_me: failed program was:" >&5 |
6366 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
6367 |
> |
|
6368 |
> |
ac_header_preproc=no |
6369 |
> |
fi |
6370 |
> |
rm -f conftest.err conftest.$ac_ext |
6371 |
> |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
6372 |
> |
echo "${ECHO_T}$ac_header_preproc" >&6 |
6373 |
> |
|
6374 |
> |
# So? What about this header? |
6375 |
> |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
6376 |
> |
yes:no: ) |
6377 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
6378 |
> |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
6379 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
6380 |
> |
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
6381 |
> |
ac_header_preproc=yes |
6382 |
> |
;; |
6383 |
> |
no:yes:* ) |
6384 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
6385 |
> |
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
6386 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
6387 |
> |
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
6388 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
6389 |
> |
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
6390 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
6391 |
> |
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
6392 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
6393 |
> |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
6394 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
6395 |
> |
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
6396 |
> |
( |
6397 |
> |
cat <<\_ASBOX |
6398 |
> |
## ------------------------------ ## |
6399 |
> |
## Report this to gezelter@nd.edu ## |
6400 |
> |
## ------------------------------ ## |
6401 |
> |
_ASBOX |
6402 |
> |
) | |
6403 |
> |
sed "s/^/$as_me: WARNING: /" >&2 |
6404 |
> |
;; |
6405 |
> |
esac |
6406 |
> |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6407 |
> |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
6408 |
> |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
6409 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6410 |
> |
else |
6411 |
> |
eval "$as_ac_Header=\$ac_header_preproc" |
6412 |
> |
fi |
6413 |
> |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
6414 |
> |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
6415 |
> |
|
6416 |
> |
fi |
6417 |
> |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
6418 |
> |
cat >>confdefs.h <<_ACEOF |
6419 |
> |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
6420 |
> |
_ACEOF |
6421 |
> |
|
6422 |
> |
fi |
6423 |
> |
|
6424 |
> |
done |
6425 |
> |
|
6426 |
> |
|
6427 |
> |
for ac_header in machine/hal_sysinfo.h |
6428 |
> |
do |
6429 |
> |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
6430 |
> |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
6431 |
> |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6432 |
> |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
6433 |
> |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
6434 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6435 |
> |
fi |
6436 |
> |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
6437 |
> |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
6438 |
> |
else |
6439 |
> |
# Is the header compilable? |
6440 |
> |
echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
6441 |
> |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
6442 |
> |
cat >conftest.$ac_ext <<_ACEOF |
6443 |
> |
/* confdefs.h. */ |
6444 |
> |
_ACEOF |
6445 |
> |
cat confdefs.h >>conftest.$ac_ext |
6446 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
6447 |
> |
/* end confdefs.h. */ |
6448 |
> |
$ac_includes_default |
6449 |
> |
#include <$ac_header> |
6450 |
> |
_ACEOF |
6451 |
> |
rm -f conftest.$ac_objext |
6452 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
6453 |
> |
(eval $ac_compile) 2>conftest.er1 |
6454 |
> |
ac_status=$? |
6455 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
6456 |
> |
rm -f conftest.er1 |
6457 |
> |
cat conftest.err >&5 |
6458 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6459 |
> |
(exit $ac_status); } && |
6460 |
> |
{ ac_try='test -z "$ac_c_werror_flag" |
6461 |
> |
|| test ! -s conftest.err' |
6462 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6463 |
> |
(eval $ac_try) 2>&5 |
6464 |
> |
ac_status=$? |
6465 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6466 |
> |
(exit $ac_status); }; } && |
6467 |
> |
{ ac_try='test -s conftest.$ac_objext' |
6468 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6469 |
> |
(eval $ac_try) 2>&5 |
6470 |
> |
ac_status=$? |
6471 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6472 |
> |
(exit $ac_status); }; }; then |
6473 |
> |
ac_header_compiler=yes |
6474 |
> |
else |
6475 |
> |
echo "$as_me: failed program was:" >&5 |
6476 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
6477 |
> |
|
6478 |
> |
ac_header_compiler=no |
6479 |
> |
fi |
6480 |
> |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6481 |
> |
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
6482 |
> |
echo "${ECHO_T}$ac_header_compiler" >&6 |
6483 |
> |
|
6484 |
> |
# Is the header present? |
6485 |
> |
echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
6486 |
> |
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
6487 |
> |
cat >conftest.$ac_ext <<_ACEOF |
6488 |
> |
/* confdefs.h. */ |
6489 |
> |
_ACEOF |
6490 |
> |
cat confdefs.h >>conftest.$ac_ext |
6491 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
6492 |
> |
/* end confdefs.h. */ |
6493 |
> |
#include <$ac_header> |
6494 |
> |
_ACEOF |
6495 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
6496 |
> |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
6497 |
> |
ac_status=$? |
6498 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
6499 |
> |
rm -f conftest.er1 |
6500 |
> |
cat conftest.err >&5 |
6501 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6502 |
> |
(exit $ac_status); } >/dev/null; then |
6503 |
> |
if test -s conftest.err; then |
6504 |
> |
ac_cpp_err=$ac_c_preproc_warn_flag |
6505 |
> |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
6506 |
> |
else |
6507 |
> |
ac_cpp_err= |
6508 |
> |
fi |
6509 |
> |
else |
6510 |
> |
ac_cpp_err=yes |
6511 |
> |
fi |
6512 |
> |
if test -z "$ac_cpp_err"; then |
6513 |
> |
ac_header_preproc=yes |
6514 |
> |
else |
6515 |
> |
echo "$as_me: failed program was:" >&5 |
6516 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
6517 |
> |
|
6518 |
> |
ac_header_preproc=no |
6519 |
> |
fi |
6520 |
> |
rm -f conftest.err conftest.$ac_ext |
6521 |
> |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
6522 |
> |
echo "${ECHO_T}$ac_header_preproc" >&6 |
6523 |
> |
|
6524 |
> |
# So? What about this header? |
6525 |
> |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
6526 |
> |
yes:no: ) |
6527 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
6528 |
> |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
6529 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
6530 |
> |
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
6531 |
> |
ac_header_preproc=yes |
6532 |
> |
;; |
6533 |
> |
no:yes:* ) |
6534 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
6535 |
> |
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
6536 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
6537 |
> |
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
6538 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
6539 |
> |
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
6540 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
6541 |
> |
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
6542 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
6543 |
> |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
6544 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
6545 |
> |
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
6546 |
> |
( |
6547 |
> |
cat <<\_ASBOX |
6548 |
> |
## ------------------------------ ## |
6549 |
> |
## Report this to gezelter@nd.edu ## |
6550 |
> |
## ------------------------------ ## |
6551 |
> |
_ASBOX |
6552 |
> |
) | |
6553 |
> |
sed "s/^/$as_me: WARNING: /" >&2 |
6554 |
> |
;; |
6555 |
> |
esac |
6556 |
> |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6557 |
> |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
6558 |
> |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
6559 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6560 |
> |
else |
6561 |
> |
eval "$as_ac_Header=\$ac_header_preproc" |
6562 |
> |
fi |
6563 |
> |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
6564 |
> |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
6565 |
> |
|
6566 |
> |
fi |
6567 |
> |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
6568 |
> |
cat >>confdefs.h <<_ACEOF |
6569 |
> |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
6570 |
> |
_ACEOF |
6571 |
> |
|
6572 |
> |
fi |
6573 |
> |
|
6574 |
> |
done |
6575 |
> |
|
6576 |
> |
|
6577 |
> |
|
6578 |
> |
|
6579 |
> |
|
6580 |
> |
for ac_func in rint snprintf sranddev strncasecmp |
6581 |
> |
do |
6582 |
> |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6583 |
> |
echo "$as_me:$LINENO: checking for $ac_func" >&5 |
6584 |
> |
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
6585 |
> |
if eval "test \"\${$as_ac_var+set}\" = set"; then |
6586 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6587 |
> |
else |
6588 |
> |
cat >conftest.$ac_ext <<_ACEOF |
6589 |
> |
/* confdefs.h. */ |
6590 |
> |
_ACEOF |
6591 |
> |
cat confdefs.h >>conftest.$ac_ext |
6592 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
6593 |
> |
/* end confdefs.h. */ |
6594 |
> |
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
6595 |
> |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
6596 |
> |
#define $ac_func innocuous_$ac_func |
6597 |
> |
|
6598 |
> |
/* System header to define __stub macros and hopefully few prototypes, |
6599 |
> |
which can conflict with char $ac_func (); below. |
6600 |
> |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
6601 |
> |
<limits.h> exists even on freestanding compilers. */ |
6602 |
> |
|
6603 |
> |
#ifdef __STDC__ |
6604 |
> |
# include <limits.h> |
6605 |
> |
#else |
6606 |
> |
# include <assert.h> |
6607 |
> |
#endif |
6608 |
> |
|
6609 |
> |
#undef $ac_func |
6610 |
> |
|
6611 |
> |
/* Override any gcc2 internal prototype to avoid an error. */ |
6612 |
> |
#ifdef __cplusplus |
6613 |
> |
extern "C" |
6614 |
> |
{ |
6615 |
> |
#endif |
6616 |
> |
/* We use char because int might match the return type of a gcc2 |
6617 |
> |
builtin and then its argument prototype would still apply. */ |
6618 |
> |
char $ac_func (); |
6619 |
> |
/* The GNU C library defines this for functions which it implements |
6620 |
> |
to always fail with ENOSYS. Some functions are actually named |
6621 |
> |
something starting with __ and the normal name is an alias. */ |
6622 |
> |
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
6623 |
> |
choke me |
6624 |
> |
#else |
6625 |
> |
char (*f) () = $ac_func; |
6626 |
> |
#endif |
6627 |
> |
#ifdef __cplusplus |
6628 |
> |
} |
6629 |
> |
#endif |
6630 |
> |
|
6631 |
> |
int |
6632 |
> |
main () |
6633 |
> |
{ |
6634 |
> |
return f != $ac_func; |
6635 |
> |
; |
6636 |
> |
return 0; |
6637 |
> |
} |
6638 |
> |
_ACEOF |
6639 |
> |
rm -f conftest.$ac_objext conftest$ac_exeext |
6640 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
6641 |
> |
(eval $ac_link) 2>conftest.er1 |
6642 |
> |
ac_status=$? |
6643 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
6644 |
> |
rm -f conftest.er1 |
6645 |
> |
cat conftest.err >&5 |
6646 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6647 |
> |
(exit $ac_status); } && |
6648 |
> |
{ ac_try='test -z "$ac_c_werror_flag" |
6649 |
> |
|| test ! -s conftest.err' |
6650 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6651 |
> |
(eval $ac_try) 2>&5 |
6652 |
> |
ac_status=$? |
6653 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6654 |
> |
(exit $ac_status); }; } && |
6655 |
> |
{ ac_try='test -s conftest$ac_exeext' |
6656 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6657 |
> |
(eval $ac_try) 2>&5 |
6658 |
> |
ac_status=$? |
6659 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6660 |
> |
(exit $ac_status); }; }; then |
6661 |
> |
eval "$as_ac_var=yes" |
6662 |
> |
else |
6663 |
> |
echo "$as_me: failed program was:" >&5 |
6664 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
6665 |
> |
|
6666 |
> |
eval "$as_ac_var=no" |
6667 |
> |
fi |
6668 |
> |
rm -f conftest.err conftest.$ac_objext \ |
6669 |
> |
conftest$ac_exeext conftest.$ac_ext |
6670 |
> |
fi |
6671 |
> |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
6672 |
> |
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
6673 |
> |
if test `eval echo '${'$as_ac_var'}'` = yes; then |
6674 |
> |
cat >>confdefs.h <<_ACEOF |
6675 |
> |
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
6676 |
> |
_ACEOF |
6677 |
> |
|
6678 |
> |
fi |
6679 |
> |
done |
6680 |
> |
|
6681 |
> |
|
6682 |
> |
|
6683 |
> |
|
6684 |
> |
|
6685 |
> |
|
6686 |
> |
for ac_func in pstat_getstatic sysmp getsysinfo sysctl table |
6687 |
> |
do |
6688 |
> |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6689 |
> |
echo "$as_me:$LINENO: checking for $ac_func" >&5 |
6690 |
> |
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
6691 |
> |
if eval "test \"\${$as_ac_var+set}\" = set"; then |
6692 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6693 |
> |
else |
6694 |
> |
cat >conftest.$ac_ext <<_ACEOF |
6695 |
> |
/* confdefs.h. */ |
6696 |
> |
_ACEOF |
6697 |
> |
cat confdefs.h >>conftest.$ac_ext |
6698 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
6699 |
> |
/* end confdefs.h. */ |
6700 |
> |
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
6701 |
> |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
6702 |
> |
#define $ac_func innocuous_$ac_func |
6703 |
> |
|
6704 |
> |
/* System header to define __stub macros and hopefully few prototypes, |
6705 |
> |
which can conflict with char $ac_func (); below. |
6706 |
> |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
6707 |
> |
<limits.h> exists even on freestanding compilers. */ |
6708 |
> |
|
6709 |
> |
#ifdef __STDC__ |
6710 |
> |
# include <limits.h> |
6711 |
> |
#else |
6712 |
> |
# include <assert.h> |
6713 |
> |
#endif |
6714 |
> |
|
6715 |
> |
#undef $ac_func |
6716 |
> |
|
6717 |
> |
/* Override any gcc2 internal prototype to avoid an error. */ |
6718 |
> |
#ifdef __cplusplus |
6719 |
> |
extern "C" |
6720 |
> |
{ |
6721 |
> |
#endif |
6722 |
> |
/* We use char because int might match the return type of a gcc2 |
6723 |
> |
builtin and then its argument prototype would still apply. */ |
6724 |
> |
char $ac_func (); |
6725 |
> |
/* The GNU C library defines this for functions which it implements |
6726 |
> |
to always fail with ENOSYS. Some functions are actually named |
6727 |
> |
something starting with __ and the normal name is an alias. */ |
6728 |
> |
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
6729 |
> |
choke me |
6730 |
> |
#else |
6731 |
> |
char (*f) () = $ac_func; |
6732 |
> |
#endif |
6733 |
> |
#ifdef __cplusplus |
6734 |
> |
} |
6735 |
> |
#endif |
6736 |
> |
|
6737 |
> |
int |
6738 |
> |
main () |
6739 |
> |
{ |
6740 |
> |
return f != $ac_func; |
6741 |
> |
; |
6742 |
> |
return 0; |
6743 |
> |
} |
6744 |
> |
_ACEOF |
6745 |
> |
rm -f conftest.$ac_objext conftest$ac_exeext |
6746 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
6747 |
> |
(eval $ac_link) 2>conftest.er1 |
6748 |
> |
ac_status=$? |
6749 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
6750 |
> |
rm -f conftest.er1 |
6751 |
> |
cat conftest.err >&5 |
6752 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6753 |
> |
(exit $ac_status); } && |
6754 |
> |
{ ac_try='test -z "$ac_c_werror_flag" |
6755 |
> |
|| test ! -s conftest.err' |
6756 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6757 |
> |
(eval $ac_try) 2>&5 |
6758 |
> |
ac_status=$? |
6759 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6760 |
> |
(exit $ac_status); }; } && |
6761 |
> |
{ ac_try='test -s conftest$ac_exeext' |
6762 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6763 |
> |
(eval $ac_try) 2>&5 |
6764 |
> |
ac_status=$? |
6765 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6766 |
> |
(exit $ac_status); }; }; then |
6767 |
> |
eval "$as_ac_var=yes" |
6768 |
> |
else |
6769 |
> |
echo "$as_me: failed program was:" >&5 |
6770 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
6771 |
> |
|
6772 |
> |
eval "$as_ac_var=no" |
6773 |
> |
fi |
6774 |
> |
rm -f conftest.err conftest.$ac_objext \ |
6775 |
> |
conftest$ac_exeext conftest.$ac_ext |
6776 |
> |
fi |
6777 |
> |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
6778 |
> |
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
6779 |
> |
if test `eval echo '${'$as_ac_var'}'` = yes; then |
6780 |
> |
cat >>confdefs.h <<_ACEOF |
6781 |
> |
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
6782 |
> |
_ACEOF |
6783 |
> |
|
6784 |
> |
fi |
6785 |
> |
done |
6786 |
> |
|
6787 |
> |
# special check for _system_configuration because AIX <4.3.2 do not |
6788 |
> |
# contain the `physmem' member. |
6789 |
> |
echo "$as_me:$LINENO: checking for external symbol _system_configuration" >&5 |
6790 |
> |
echo $ECHO_N "checking for external symbol _system_configuration... $ECHO_C" >&6 |
6791 |
> |
cat >conftest.$ac_ext <<_ACEOF |
6792 |
> |
/* confdefs.h. */ |
6793 |
> |
_ACEOF |
6794 |
> |
cat confdefs.h >>conftest.$ac_ext |
6795 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
6796 |
> |
/* end confdefs.h. */ |
6797 |
> |
#include <sys/systemcfg.h> |
6798 |
> |
int |
6799 |
> |
main () |
6800 |
> |
{ |
6801 |
> |
double x = _system_configuration.physmem; |
6802 |
> |
; |
6803 |
> |
return 0; |
6804 |
> |
} |
6805 |
> |
_ACEOF |
6806 |
> |
rm -f conftest.$ac_objext |
6807 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
6808 |
> |
(eval $ac_compile) 2>conftest.er1 |
6809 |
> |
ac_status=$? |
6810 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
6811 |
> |
rm -f conftest.er1 |
6812 |
> |
cat conftest.err >&5 |
6813 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6814 |
> |
(exit $ac_status); } && |
6815 |
> |
{ ac_try='test -z "$ac_c_werror_flag" |
6816 |
> |
|| test ! -s conftest.err' |
6817 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6818 |
> |
(eval $ac_try) 2>&5 |
6819 |
> |
ac_status=$? |
6820 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6821 |
> |
(exit $ac_status); }; } && |
6822 |
> |
{ ac_try='test -s conftest.$ac_objext' |
6823 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6824 |
> |
(eval $ac_try) 2>&5 |
6825 |
> |
ac_status=$? |
6826 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6827 |
> |
(exit $ac_status); }; }; then |
6828 |
> |
echo "$as_me:$LINENO: result: yes" >&5 |
6829 |
> |
echo "${ECHO_T}yes" >&6 |
6830 |
> |
|
6831 |
> |
cat >>confdefs.h <<\_ACEOF |
6832 |
> |
#define HAVE__SYSTEM_CONFIGURATION 1 |
6833 |
> |
_ACEOF |
6834 |
> |
|
6835 |
> |
else |
6836 |
> |
echo "$as_me: failed program was:" >&5 |
6837 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
6838 |
> |
|
6839 |
> |
echo "$as_me:$LINENO: result: no" >&5 |
6840 |
> |
echo "${ECHO_T}no" >&6 |
6841 |
> |
fi |
6842 |
> |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6843 |
> |
echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
6844 |
> |
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 |
6845 |
> |
if test "${ac_cv_header_time+set}" = set; then |
6846 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6847 |
> |
else |
6848 |
> |
cat >conftest.$ac_ext <<_ACEOF |
6849 |
> |
/* confdefs.h. */ |
6850 |
> |
_ACEOF |
6851 |
> |
cat confdefs.h >>conftest.$ac_ext |
6852 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
6853 |
> |
/* end confdefs.h. */ |
6854 |
> |
#include <sys/types.h> |
6855 |
> |
#include <sys/time.h> |
6856 |
> |
#include <time.h> |
6857 |
> |
|
6858 |
> |
int |
6859 |
> |
main () |
6860 |
> |
{ |
6861 |
> |
if ((struct tm *) 0) |
6862 |
> |
return 0; |
6863 |
> |
; |
6864 |
> |
return 0; |
6865 |
> |
} |
6866 |
> |
_ACEOF |
6867 |
> |
rm -f conftest.$ac_objext |
6868 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
6869 |
> |
(eval $ac_compile) 2>conftest.er1 |
6870 |
> |
ac_status=$? |
6871 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
6872 |
> |
rm -f conftest.er1 |
6873 |
> |
cat conftest.err >&5 |
6874 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6875 |
> |
(exit $ac_status); } && |
6876 |
> |
{ ac_try='test -z "$ac_c_werror_flag" |
6877 |
> |
|| test ! -s conftest.err' |
6878 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6879 |
> |
(eval $ac_try) 2>&5 |
6880 |
> |
ac_status=$? |
6881 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6882 |
> |
(exit $ac_status); }; } && |
6883 |
> |
{ ac_try='test -s conftest.$ac_objext' |
6884 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6885 |
> |
(eval $ac_try) 2>&5 |
6886 |
> |
ac_status=$? |
6887 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6888 |
> |
(exit $ac_status); }; }; then |
6889 |
> |
ac_cv_header_time=yes |
6890 |
> |
else |
6891 |
> |
echo "$as_me: failed program was:" >&5 |
6892 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
6893 |
> |
|
6894 |
> |
ac_cv_header_time=no |
6895 |
> |
fi |
6896 |
> |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6897 |
> |
fi |
6898 |
> |
echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
6899 |
> |
echo "${ECHO_T}$ac_cv_header_time" >&6 |
6900 |
> |
if test $ac_cv_header_time = yes; then |
6901 |
> |
|
6902 |
> |
cat >>confdefs.h <<\_ACEOF |
6903 |
> |
#define TIME_WITH_SYS_TIME 1 |
6904 |
> |
_ACEOF |
6905 |
> |
|
6906 |
> |
fi |
6907 |
> |
|
6908 |
> |
|
6909 |
> |
echo "$as_me:$LINENO: checking for clock_t" >&5 |
6910 |
> |
echo $ECHO_N "checking for clock_t... $ECHO_C" >&6 |
6911 |
> |
if test "${ac_cv_type_clock_t+set}" = set; then |
6912 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6913 |
> |
else |
6914 |
> |
cat >conftest.$ac_ext <<_ACEOF |
6915 |
> |
/* confdefs.h. */ |
6916 |
> |
_ACEOF |
6917 |
> |
cat confdefs.h >>conftest.$ac_ext |
6918 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
6919 |
> |
/* end confdefs.h. */ |
6920 |
> |
$ac_includes_default |
6921 |
> |
int |
6922 |
> |
main () |
6923 |
> |
{ |
6924 |
> |
if ((clock_t *) 0) |
6925 |
> |
return 0; |
6926 |
> |
if (sizeof (clock_t)) |
6927 |
> |
return 0; |
6928 |
> |
; |
6929 |
> |
return 0; |
6930 |
> |
} |
6931 |
> |
_ACEOF |
6932 |
> |
rm -f conftest.$ac_objext |
6933 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
6934 |
> |
(eval $ac_compile) 2>conftest.er1 |
6935 |
> |
ac_status=$? |
6936 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
6937 |
> |
rm -f conftest.er1 |
6938 |
> |
cat conftest.err >&5 |
6939 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6940 |
> |
(exit $ac_status); } && |
6941 |
> |
{ ac_try='test -z "$ac_c_werror_flag" |
6942 |
> |
|| test ! -s conftest.err' |
6943 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6944 |
> |
(eval $ac_try) 2>&5 |
6945 |
> |
ac_status=$? |
6946 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6947 |
> |
(exit $ac_status); }; } && |
6948 |
> |
{ ac_try='test -s conftest.$ac_objext' |
6949 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6950 |
> |
(eval $ac_try) 2>&5 |
6951 |
> |
ac_status=$? |
6952 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6953 |
> |
(exit $ac_status); }; }; then |
6954 |
> |
ac_cv_type_clock_t=yes |
6955 |
> |
else |
6956 |
> |
echo "$as_me: failed program was:" >&5 |
6957 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
6958 |
> |
|
6959 |
> |
ac_cv_type_clock_t=no |
6960 |
> |
fi |
6961 |
> |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6962 |
> |
fi |
6963 |
> |
echo "$as_me:$LINENO: result: $ac_cv_type_clock_t" >&5 |
6964 |
> |
echo "${ECHO_T}$ac_cv_type_clock_t" >&6 |
6965 |
> |
if test $ac_cv_type_clock_t = yes; then |
6966 |
> |
|
6967 |
> |
cat >>confdefs.h <<_ACEOF |
6968 |
> |
#define HAVE_CLOCK_T 1 |
6969 |
> |
_ACEOF |
6970 |
> |
|
6971 |
> |
|
6972 |
> |
fi |
6973 |
> |
|
6974 |
> |
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
6975 |
> |
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
6976 |
> |
if test "${ac_cv_c_const+set}" = set; then |
6977 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6978 |
> |
else |
6979 |
> |
cat >conftest.$ac_ext <<_ACEOF |
6980 |
> |
/* confdefs.h. */ |
6981 |
> |
_ACEOF |
6982 |
> |
cat confdefs.h >>conftest.$ac_ext |
6983 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
6984 |
> |
/* end confdefs.h. */ |
6985 |
> |
|
6986 |
> |
int |
6987 |
> |
main () |
6988 |
> |
{ |
6989 |
> |
/* FIXME: Include the comments suggested by Paul. */ |
6990 |
> |
#ifndef __cplusplus |
6991 |
> |
/* Ultrix mips cc rejects this. */ |
6992 |
> |
typedef int charset[2]; |
6993 |
> |
const charset x; |
6994 |
> |
/* SunOS 4.1.1 cc rejects this. */ |
6995 |
> |
char const *const *ccp; |
6996 |
> |
char **p; |
6997 |
> |
/* NEC SVR4.0.2 mips cc rejects this. */ |
6998 |
> |
struct point {int x, y;}; |
6999 |
> |
static struct point const zero = {0,0}; |
7000 |
> |
/* AIX XL C 1.02.0.0 rejects this. |
7001 |
> |
It does not let you subtract one const X* pointer from another in |
7002 |
> |
an arm of an if-expression whose if-part is not a constant |
7003 |
> |
expression */ |
7004 |
> |
const char *g = "string"; |
7005 |
> |
ccp = &g + (g ? g-g : 0); |
7006 |
> |
/* HPUX 7.0 cc rejects these. */ |
7007 |
> |
++ccp; |
7008 |
> |
p = (char**) ccp; |
7009 |
> |
ccp = (char const *const *) p; |
7010 |
> |
{ /* SCO 3.2v4 cc rejects this. */ |
7011 |
> |
char *t; |
7012 |
> |
char const *s = 0 ? (char *) 0 : (char const *) 0; |
7013 |
> |
|
7014 |
> |
*t++ = 0; |
7015 |
> |
} |
7016 |
> |
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
7017 |
> |
int x[] = {25, 17}; |
7018 |
> |
const int *foo = &x[0]; |
7019 |
> |
++foo; |
7020 |
> |
} |
7021 |
> |
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
7022 |
> |
typedef const int *iptr; |
7023 |
> |
iptr p = 0; |
7024 |
> |
++p; |
7025 |
> |
} |
7026 |
> |
{ /* AIX XL C 1.02.0.0 rejects this saying |
7027 |
> |
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
7028 |
> |
struct s { int j; const int *ap[3]; }; |
7029 |
> |
struct s *b; b->j = 5; |
7030 |
> |
} |
7031 |
> |
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
7032 |
> |
const int foo = 10; |
7033 |
> |
} |
7034 |
> |
#endif |
7035 |
> |
|
7036 |
> |
; |
7037 |
> |
return 0; |
7038 |
> |
} |
7039 |
> |
_ACEOF |
7040 |
> |
rm -f conftest.$ac_objext |
7041 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
7042 |
> |
(eval $ac_compile) 2>conftest.er1 |
7043 |
> |
ac_status=$? |
7044 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
7045 |
> |
rm -f conftest.er1 |
7046 |
> |
cat conftest.err >&5 |
7047 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7048 |
> |
(exit $ac_status); } && |
7049 |
> |
{ ac_try='test -z "$ac_c_werror_flag" |
7050 |
> |
|| test ! -s conftest.err' |
7051 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7052 |
> |
(eval $ac_try) 2>&5 |
7053 |
> |
ac_status=$? |
7054 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7055 |
> |
(exit $ac_status); }; } && |
7056 |
> |
{ ac_try='test -s conftest.$ac_objext' |
7057 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7058 |
> |
(eval $ac_try) 2>&5 |
7059 |
> |
ac_status=$? |
7060 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7061 |
> |
(exit $ac_status); }; }; then |
7062 |
> |
ac_cv_c_const=yes |
7063 |
> |
else |
7064 |
> |
echo "$as_me: failed program was:" >&5 |
7065 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
7066 |
> |
|
7067 |
> |
ac_cv_c_const=no |
7068 |
> |
fi |
7069 |
> |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7070 |
> |
fi |
7071 |
> |
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
7072 |
> |
echo "${ECHO_T}$ac_cv_c_const" >&6 |
7073 |
> |
if test $ac_cv_c_const = no; then |
7074 |
> |
|
7075 |
> |
cat >>confdefs.h <<\_ACEOF |
7076 |
> |
#define const |
7077 |
> |
_ACEOF |
7078 |
> |
|
7079 |
> |
fi |
7080 |
> |
|
7081 |
> |
echo "$as_me:$LINENO: checking for inline" >&5 |
7082 |
> |
echo $ECHO_N "checking for inline... $ECHO_C" >&6 |
7083 |
> |
if test "${ac_cv_c_inline+set}" = set; then |
7084 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7085 |
> |
else |
7086 |
> |
ac_cv_c_inline=no |
7087 |
> |
for ac_kw in inline __inline__ __inline; do |
7088 |
> |
cat >conftest.$ac_ext <<_ACEOF |
7089 |
> |
/* confdefs.h. */ |
7090 |
> |
_ACEOF |
7091 |
> |
cat confdefs.h >>conftest.$ac_ext |
7092 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
7093 |
> |
/* end confdefs.h. */ |
7094 |
> |
#ifndef __cplusplus |
7095 |
> |
typedef int foo_t; |
7096 |
> |
static $ac_kw foo_t static_foo () {return 0; } |
7097 |
> |
$ac_kw foo_t foo () {return 0; } |
7098 |
> |
#endif |
7099 |
> |
|
7100 |
> |
_ACEOF |
7101 |
> |
rm -f conftest.$ac_objext |
7102 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
7103 |
> |
(eval $ac_compile) 2>conftest.er1 |
7104 |
> |
ac_status=$? |
7105 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
7106 |
> |
rm -f conftest.er1 |
7107 |
> |
cat conftest.err >&5 |
7108 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7109 |
> |
(exit $ac_status); } && |
7110 |
> |
{ ac_try='test -z "$ac_c_werror_flag" |
7111 |
> |
|| test ! -s conftest.err' |
7112 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7113 |
> |
(eval $ac_try) 2>&5 |
7114 |
> |
ac_status=$? |
7115 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7116 |
> |
(exit $ac_status); }; } && |
7117 |
> |
{ ac_try='test -s conftest.$ac_objext' |
7118 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7119 |
> |
(eval $ac_try) 2>&5 |
7120 |
> |
ac_status=$? |
7121 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7122 |
> |
(exit $ac_status); }; }; then |
7123 |
> |
ac_cv_c_inline=$ac_kw; break |
7124 |
> |
else |
7125 |
> |
echo "$as_me: failed program was:" >&5 |
7126 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
7127 |
> |
|
7128 |
> |
fi |
7129 |
> |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7130 |
> |
done |
7131 |
> |
|
7132 |
> |
fi |
7133 |
> |
echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
7134 |
> |
echo "${ECHO_T}$ac_cv_c_inline" >&6 |
7135 |
> |
|
7136 |
> |
|
7137 |
> |
case $ac_cv_c_inline in |
7138 |
> |
inline | yes) ;; |
7139 |
> |
*) |
7140 |
> |
case $ac_cv_c_inline in |
7141 |
> |
no) ac_val=;; |
7142 |
> |
*) ac_val=$ac_cv_c_inline;; |
7143 |
> |
esac |
7144 |
> |
cat >>confdefs.h <<_ACEOF |
7145 |
> |
#ifndef __cplusplus |
7146 |
> |
#define inline $ac_val |
7147 |
> |
#endif |
7148 |
> |
_ACEOF |
7149 |
> |
;; |
7150 |
> |
esac |
7151 |
> |
|
7152 |
> |
|
7153 |
> |
|
7154 |
> |
|
7155 |
> |
for ac_func in rint sranddev |
7156 |
> |
do |
7157 |
> |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
7158 |
> |
echo "$as_me:$LINENO: checking for $ac_func" >&5 |
7159 |
> |
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
7160 |
> |
if eval "test \"\${$as_ac_var+set}\" = set"; then |
7161 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7162 |
> |
else |
7163 |
> |
cat >conftest.$ac_ext <<_ACEOF |
7164 |
> |
/* confdefs.h. */ |
7165 |
> |
_ACEOF |
7166 |
> |
cat confdefs.h >>conftest.$ac_ext |
7167 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
7168 |
> |
/* end confdefs.h. */ |
7169 |
> |
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
7170 |
> |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
7171 |
> |
#define $ac_func innocuous_$ac_func |
7172 |
> |
|
7173 |
> |
/* System header to define __stub macros and hopefully few prototypes, |
7174 |
> |
which can conflict with char $ac_func (); below. |
7175 |
> |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
7176 |
> |
<limits.h> exists even on freestanding compilers. */ |
7177 |
> |
|
7178 |
> |
#ifdef __STDC__ |
7179 |
> |
# include <limits.h> |
7180 |
> |
#else |
7181 |
> |
# include <assert.h> |
7182 |
> |
#endif |
7183 |
> |
|
7184 |
> |
#undef $ac_func |
7185 |
> |
|
7186 |
> |
/* Override any gcc2 internal prototype to avoid an error. */ |
7187 |
> |
#ifdef __cplusplus |
7188 |
> |
extern "C" |
7189 |
> |
{ |
7190 |
> |
#endif |
7191 |
> |
/* We use char because int might match the return type of a gcc2 |
7192 |
> |
builtin and then its argument prototype would still apply. */ |
7193 |
> |
char $ac_func (); |
7194 |
> |
/* The GNU C library defines this for functions which it implements |
7195 |
> |
to always fail with ENOSYS. Some functions are actually named |
7196 |
> |
something starting with __ and the normal name is an alias. */ |
7197 |
> |
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
7198 |
> |
choke me |
7199 |
> |
#else |
7200 |
> |
char (*f) () = $ac_func; |
7201 |
> |
#endif |
7202 |
> |
#ifdef __cplusplus |
7203 |
> |
} |
7204 |
> |
#endif |
7205 |
> |
|
7206 |
> |
int |
7207 |
> |
main () |
7208 |
> |
{ |
7209 |
> |
return f != $ac_func; |
7210 |
> |
; |
7211 |
> |
return 0; |
7212 |
> |
} |
7213 |
> |
_ACEOF |
7214 |
> |
rm -f conftest.$ac_objext conftest$ac_exeext |
7215 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
7216 |
> |
(eval $ac_link) 2>conftest.er1 |
7217 |
> |
ac_status=$? |
7218 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
7219 |
> |
rm -f conftest.er1 |
7220 |
> |
cat conftest.err >&5 |
7221 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7222 |
> |
(exit $ac_status); } && |
7223 |
> |
{ ac_try='test -z "$ac_c_werror_flag" |
7224 |
> |
|| test ! -s conftest.err' |
7225 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7226 |
> |
(eval $ac_try) 2>&5 |
7227 |
> |
ac_status=$? |
7228 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7229 |
> |
(exit $ac_status); }; } && |
7230 |
> |
{ ac_try='test -s conftest$ac_exeext' |
7231 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7232 |
> |
(eval $ac_try) 2>&5 |
7233 |
> |
ac_status=$? |
7234 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7235 |
> |
(exit $ac_status); }; }; then |
7236 |
> |
eval "$as_ac_var=yes" |
7237 |
> |
else |
7238 |
> |
echo "$as_me: failed program was:" >&5 |
7239 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
7240 |
> |
|
7241 |
> |
eval "$as_ac_var=no" |
7242 |
> |
fi |
7243 |
> |
rm -f conftest.err conftest.$ac_objext \ |
7244 |
> |
conftest$ac_exeext conftest.$ac_ext |
7245 |
> |
fi |
7246 |
> |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
7247 |
> |
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
7248 |
> |
if test `eval echo '${'$as_ac_var'}'` = yes; then |
7249 |
> |
cat >>confdefs.h <<_ACEOF |
7250 |
> |
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
7251 |
> |
_ACEOF |
7252 |
> |
|
7253 |
> |
fi |
7254 |
> |
done |
7255 |
> |
|
7256 |
> |
|
7257 |
> |
# clean out junk possibly left behind by a previous configuration |
7258 |
> |
rm -f src/getopt.h |
7259 |
> |
# Check for getopt_long support |
7260 |
> |
|
7261 |
> |
for ac_header in getopt.h |
7262 |
> |
do |
7263 |
> |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7264 |
> |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
7265 |
> |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7266 |
> |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
7267 |
> |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
7268 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7269 |
> |
fi |
7270 |
> |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
7271 |
> |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
7272 |
> |
else |
7273 |
> |
# Is the header compilable? |
7274 |
> |
echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7275 |
> |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
7276 |
> |
cat >conftest.$ac_ext <<_ACEOF |
7277 |
> |
/* confdefs.h. */ |
7278 |
> |
_ACEOF |
7279 |
> |
cat confdefs.h >>conftest.$ac_ext |
7280 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
7281 |
> |
/* end confdefs.h. */ |
7282 |
> |
$ac_includes_default |
7283 |
> |
#include <$ac_header> |
7284 |
> |
_ACEOF |
7285 |
> |
rm -f conftest.$ac_objext |
7286 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
7287 |
> |
(eval $ac_compile) 2>conftest.er1 |
7288 |
> |
ac_status=$? |
7289 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
7290 |
> |
rm -f conftest.er1 |
7291 |
> |
cat conftest.err >&5 |
7292 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7293 |
> |
(exit $ac_status); } && |
7294 |
> |
{ ac_try='test -z "$ac_c_werror_flag" |
7295 |
> |
|| test ! -s conftest.err' |
7296 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7297 |
> |
(eval $ac_try) 2>&5 |
7298 |
> |
ac_status=$? |
7299 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7300 |
> |
(exit $ac_status); }; } && |
7301 |
> |
{ ac_try='test -s conftest.$ac_objext' |
7302 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7303 |
> |
(eval $ac_try) 2>&5 |
7304 |
> |
ac_status=$? |
7305 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7306 |
> |
(exit $ac_status); }; }; then |
7307 |
> |
ac_header_compiler=yes |
7308 |
> |
else |
7309 |
> |
echo "$as_me: failed program was:" >&5 |
7310 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
7311 |
> |
|
7312 |
> |
ac_header_compiler=no |
7313 |
> |
fi |
7314 |
> |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7315 |
> |
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7316 |
> |
echo "${ECHO_T}$ac_header_compiler" >&6 |
7317 |
> |
|
7318 |
> |
# Is the header present? |
7319 |
> |
echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7320 |
> |
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
7321 |
> |
cat >conftest.$ac_ext <<_ACEOF |
7322 |
> |
/* confdefs.h. */ |
7323 |
> |
_ACEOF |
7324 |
> |
cat confdefs.h >>conftest.$ac_ext |
7325 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
7326 |
> |
/* end confdefs.h. */ |
7327 |
> |
#include <$ac_header> |
7328 |
> |
_ACEOF |
7329 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
7330 |
> |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
7331 |
> |
ac_status=$? |
7332 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
7333 |
> |
rm -f conftest.er1 |
7334 |
> |
cat conftest.err >&5 |
7335 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7336 |
> |
(exit $ac_status); } >/dev/null; then |
7337 |
> |
if test -s conftest.err; then |
7338 |
> |
ac_cpp_err=$ac_c_preproc_warn_flag |
7339 |
> |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
7340 |
> |
else |
7341 |
> |
ac_cpp_err= |
7342 |
> |
fi |
7343 |
> |
else |
7344 |
> |
ac_cpp_err=yes |
7345 |
> |
fi |
7346 |
> |
if test -z "$ac_cpp_err"; then |
7347 |
> |
ac_header_preproc=yes |
7348 |
> |
else |
7349 |
> |
echo "$as_me: failed program was:" >&5 |
7350 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
7351 |
> |
|
7352 |
> |
ac_header_preproc=no |
7353 |
> |
fi |
7354 |
> |
rm -f conftest.err conftest.$ac_ext |
7355 |
> |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7356 |
> |
echo "${ECHO_T}$ac_header_preproc" >&6 |
7357 |
> |
|
7358 |
> |
# So? What about this header? |
7359 |
> |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
7360 |
> |
yes:no: ) |
7361 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
7362 |
> |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
7363 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
7364 |
> |
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
7365 |
> |
ac_header_preproc=yes |
7366 |
> |
;; |
7367 |
> |
no:yes:* ) |
7368 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
7369 |
> |
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
7370 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
7371 |
> |
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
7372 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
7373 |
> |
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
7374 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
7375 |
> |
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
7376 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
7377 |
> |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
7378 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
7379 |
> |
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
7380 |
> |
( |
7381 |
> |
cat <<\_ASBOX |
7382 |
> |
## ------------------------------ ## |
7383 |
> |
## Report this to gezelter@nd.edu ## |
7384 |
> |
## ------------------------------ ## |
7385 |
> |
_ASBOX |
7386 |
> |
) | |
7387 |
> |
sed "s/^/$as_me: WARNING: /" >&2 |
7388 |
> |
;; |
7389 |
> |
esac |
7390 |
> |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7391 |
> |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
7392 |
> |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
7393 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7394 |
> |
else |
7395 |
> |
eval "$as_ac_Header=\$ac_header_preproc" |
7396 |
> |
fi |
7397 |
> |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
7398 |
> |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
7399 |
> |
|
7400 |
> |
fi |
7401 |
> |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
7402 |
> |
cat >>confdefs.h <<_ACEOF |
7403 |
> |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
7404 |
> |
_ACEOF |
7405 |
> |
|
7406 |
> |
fi |
7407 |
> |
|
7408 |
> |
done |
7409 |
> |
|
7410 |
> |
|
7411 |
> |
for ac_func in getopt_long |
7412 |
> |
do |
7413 |
> |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
7414 |
> |
echo "$as_me:$LINENO: checking for $ac_func" >&5 |
7415 |
> |
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
7416 |
> |
if eval "test \"\${$as_ac_var+set}\" = set"; then |
7417 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7418 |
> |
else |
7419 |
> |
cat >conftest.$ac_ext <<_ACEOF |
7420 |
> |
/* confdefs.h. */ |
7421 |
> |
_ACEOF |
7422 |
> |
cat confdefs.h >>conftest.$ac_ext |
7423 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
7424 |
> |
/* end confdefs.h. */ |
7425 |
> |
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
7426 |
> |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
7427 |
> |
#define $ac_func innocuous_$ac_func |
7428 |
> |
|
7429 |
> |
/* System header to define __stub macros and hopefully few prototypes, |
7430 |
> |
which can conflict with char $ac_func (); below. |
7431 |
> |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
7432 |
> |
<limits.h> exists even on freestanding compilers. */ |
7433 |
> |
|
7434 |
> |
#ifdef __STDC__ |
7435 |
> |
# include <limits.h> |
7436 |
> |
#else |
7437 |
> |
# include <assert.h> |
7438 |
> |
#endif |
7439 |
> |
|
7440 |
> |
#undef $ac_func |
7441 |
> |
|
7442 |
> |
/* Override any gcc2 internal prototype to avoid an error. */ |
7443 |
> |
#ifdef __cplusplus |
7444 |
> |
extern "C" |
7445 |
> |
{ |
7446 |
> |
#endif |
7447 |
> |
/* We use char because int might match the return type of a gcc2 |
7448 |
> |
builtin and then its argument prototype would still apply. */ |
7449 |
> |
char $ac_func (); |
7450 |
> |
/* The GNU C library defines this for functions which it implements |
7451 |
> |
to always fail with ENOSYS. Some functions are actually named |
7452 |
> |
something starting with __ and the normal name is an alias. */ |
7453 |
> |
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
7454 |
> |
choke me |
7455 |
> |
#else |
7456 |
> |
char (*f) () = $ac_func; |
7457 |
> |
#endif |
7458 |
> |
#ifdef __cplusplus |
7459 |
> |
} |
7460 |
> |
#endif |
7461 |
> |
|
7462 |
> |
int |
7463 |
> |
main () |
7464 |
> |
{ |
7465 |
> |
return f != $ac_func; |
7466 |
> |
; |
7467 |
> |
return 0; |
7468 |
> |
} |
7469 |
> |
_ACEOF |
7470 |
> |
rm -f conftest.$ac_objext conftest$ac_exeext |
7471 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
7472 |
> |
(eval $ac_link) 2>conftest.er1 |
7473 |
> |
ac_status=$? |
7474 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
7475 |
> |
rm -f conftest.er1 |
7476 |
> |
cat conftest.err >&5 |
7477 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7478 |
> |
(exit $ac_status); } && |
7479 |
> |
{ ac_try='test -z "$ac_c_werror_flag" |
7480 |
> |
|| test ! -s conftest.err' |
7481 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7482 |
> |
(eval $ac_try) 2>&5 |
7483 |
> |
ac_status=$? |
7484 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7485 |
> |
(exit $ac_status); }; } && |
7486 |
> |
{ ac_try='test -s conftest$ac_exeext' |
7487 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7488 |
> |
(eval $ac_try) 2>&5 |
7489 |
> |
ac_status=$? |
7490 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7491 |
> |
(exit $ac_status); }; }; then |
7492 |
> |
eval "$as_ac_var=yes" |
7493 |
> |
else |
7494 |
> |
echo "$as_me: failed program was:" >&5 |
7495 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
7496 |
> |
|
7497 |
> |
eval "$as_ac_var=no" |
7498 |
> |
fi |
7499 |
> |
rm -f conftest.err conftest.$ac_objext \ |
7500 |
> |
conftest$ac_exeext conftest.$ac_ext |
7501 |
> |
fi |
7502 |
> |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
7503 |
> |
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
7504 |
> |
if test `eval echo '${'$as_ac_var'}'` = yes; then |
7505 |
> |
cat >>confdefs.h <<_ACEOF |
7506 |
> |
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
7507 |
> |
_ACEOF |
7508 |
> |
|
7509 |
> |
else |
7510 |
> |
# FreeBSD has a gnugetopt library for this |
7511 |
> |
echo "$as_me:$LINENO: checking for getopt_long in -lgnugetopt" >&5 |
7512 |
> |
echo $ECHO_N "checking for getopt_long in -lgnugetopt... $ECHO_C" >&6 |
7513 |
> |
if test "${ac_cv_lib_gnugetopt_getopt_long+set}" = set; then |
7514 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7515 |
> |
else |
7516 |
> |
ac_check_lib_save_LIBS=$LIBS |
7517 |
> |
LIBS="-lgnugetopt $LIBS" |
7518 |
> |
cat >conftest.$ac_ext <<_ACEOF |
7519 |
> |
/* confdefs.h. */ |
7520 |
> |
_ACEOF |
7521 |
> |
cat confdefs.h >>conftest.$ac_ext |
7522 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
7523 |
> |
/* end confdefs.h. */ |
7524 |
> |
|
7525 |
> |
/* Override any gcc2 internal prototype to avoid an error. */ |
7526 |
> |
#ifdef __cplusplus |
7527 |
> |
extern "C" |
7528 |
> |
#endif |
7529 |
> |
/* We use char because int might match the return type of a gcc2 |
7530 |
> |
builtin and then its argument prototype would still apply. */ |
7531 |
> |
char getopt_long (); |
7532 |
> |
int |
7533 |
> |
main () |
7534 |
> |
{ |
7535 |
> |
getopt_long (); |
7536 |
> |
; |
7537 |
> |
return 0; |
7538 |
> |
} |
7539 |
> |
_ACEOF |
7540 |
> |
rm -f conftest.$ac_objext conftest$ac_exeext |
7541 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
7542 |
> |
(eval $ac_link) 2>conftest.er1 |
7543 |
> |
ac_status=$? |
7544 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
7545 |
> |
rm -f conftest.er1 |
7546 |
> |
cat conftest.err >&5 |
7547 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7548 |
> |
(exit $ac_status); } && |
7549 |
> |
{ ac_try='test -z "$ac_c_werror_flag" |
7550 |
> |
|| test ! -s conftest.err' |
7551 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7552 |
> |
(eval $ac_try) 2>&5 |
7553 |
> |
ac_status=$? |
7554 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7555 |
> |
(exit $ac_status); }; } && |
7556 |
> |
{ ac_try='test -s conftest$ac_exeext' |
7557 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7558 |
> |
(eval $ac_try) 2>&5 |
7559 |
> |
ac_status=$? |
7560 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7561 |
> |
(exit $ac_status); }; }; then |
7562 |
> |
ac_cv_lib_gnugetopt_getopt_long=yes |
7563 |
> |
else |
7564 |
> |
echo "$as_me: failed program was:" >&5 |
7565 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
7566 |
> |
|
7567 |
> |
ac_cv_lib_gnugetopt_getopt_long=no |
7568 |
> |
fi |
7569 |
> |
rm -f conftest.err conftest.$ac_objext \ |
7570 |
> |
conftest$ac_exeext conftest.$ac_ext |
7571 |
> |
LIBS=$ac_check_lib_save_LIBS |
7572 |
> |
fi |
7573 |
> |
echo "$as_me:$LINENO: result: $ac_cv_lib_gnugetopt_getopt_long" >&5 |
7574 |
> |
echo "${ECHO_T}$ac_cv_lib_gnugetopt_getopt_long" >&6 |
7575 |
> |
if test $ac_cv_lib_gnugetopt_getopt_long = yes; then |
7576 |
> |
cat >>confdefs.h <<\_ACEOF |
7577 |
> |
#define HAVE_GETOPT_LONG 1 |
7578 |
> |
_ACEOF |
7579 |
> |
|
7580 |
> |
else |
7581 |
> |
# use the GNU replacement |
7582 |
> |
case $LIBOBJS in |
7583 |
> |
"getopt.$ac_objext" | \ |
7584 |
> |
*" getopt.$ac_objext" | \ |
7585 |
> |
"getopt.$ac_objext "* | \ |
7586 |
> |
*" getopt.$ac_objext "* ) ;; |
7587 |
> |
*) LIBOBJS="$LIBOBJS getopt.$ac_objext" ;; |
7588 |
> |
esac |
7589 |
> |
|
7590 |
> |
case $LIBOBJS in |
7591 |
> |
"getopt1.$ac_objext" | \ |
7592 |
> |
*" getopt1.$ac_objext" | \ |
7593 |
> |
"getopt1.$ac_objext "* | \ |
7594 |
> |
*" getopt1.$ac_objext "* ) ;; |
7595 |
> |
*) LIBOBJS="$LIBOBJS getopt1.$ac_objext" ;; |
7596 |
> |
esac |
7597 |
> |
|
7598 |
> |
ac_config_links="$ac_config_links src/getopt.h:src/utils/gnugetopt.h" |
7599 |
> |
|
7600 |
> |
fi |
7601 |
> |
|
7602 |
> |
fi |
7603 |
> |
done |
7604 |
> |
|
7605 |
> |
|
7606 |
> |
|
7607 |
> |
case $debug in |
7608 |
> |
1) |
7609 |
> |
;; |
7610 |
> |
*) |
7611 |
> |
|
7612 |
> |
|
7613 |
> |
|
7614 |
> |
|
7615 |
> |
|
7616 |
> |
|
7617 |
> |
echo "$as_me:$LINENO: checking whether we are *really* using GNU cc" >&5 |
7618 |
> |
echo $ECHO_N "checking whether we are *really* using GNU cc... $ECHO_C" >&6 |
7619 |
> |
if test "${ac_cv_prog_really_gcc+set}" = set; then |
7620 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7621 |
> |
else |
7622 |
> |
|
7623 |
> |
cat > conftest.c <<EOF |
7624 |
> |
#ifdef __GNUC__ |
7625 |
> |
#ifndef __INTEL_COMPILER |
7626 |
> |
yes; |
7627 |
> |
#endif |
7628 |
> |
#endif |
7629 |
> |
EOF |
7630 |
> |
if { ac_try='${CC-cc} -E conftest.c' |
7631 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7632 |
> |
(eval $ac_try) 2>&5 |
7633 |
> |
ac_status=$? |
7634 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7635 |
> |
(exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then |
7636 |
> |
ac_cv_prog_really_gcc=yes |
7637 |
> |
else |
7638 |
> |
ac_cv_prog_really_gcc=no |
7639 |
> |
fi |
7640 |
> |
|
7641 |
> |
fi |
7642 |
> |
echo "$as_me:$LINENO: result: $ac_cv_prog_really_gcc" >&5 |
7643 |
> |
echo "${ECHO_T}$ac_cv_prog_really_gcc" >&6 |
7644 |
> |
if test "$ac_cv_prog_really_gcc" = yes; then |
7645 |
> |
: |
7646 |
> |
|
7647 |
> |
else |
7648 |
> |
: |
7649 |
> |
|
7650 |
> |
fi |
7651 |
> |
|
7652 |
> |
|
7653 |
> |
# Try to determine "good" native compiler flags if none specified on command |
7654 |
> |
# line |
7655 |
> |
if test "$ac_test_CFLAGS" != "set"; then |
7656 |
> |
CFLAGS="" |
7657 |
> |
case "${host_cpu}-${host_os}" in |
7658 |
> |
|
7659 |
> |
*linux*) if test "$CC" = icc; then |
7660 |
> |
CFLAGS="-O" |
7661 |
> |
fi;; |
7662 |
> |
sparc-solaris2*) if test "$CC" = cc; then |
7663 |
> |
CFLAGS="-native -fast -xO5 -dalign" |
7664 |
> |
fi;; |
7665 |
> |
|
7666 |
> |
alpha*-osf*) if test "$CC" = cc; then |
7667 |
> |
CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host -arch host -std1" |
7668 |
> |
fi;; |
7669 |
> |
|
7670 |
> |
hppa*-hpux*) if test "$CC" = cc; then |
7671 |
> |
CFLAGS="-Ae +O3 +Oall" |
7672 |
> |
fi;; |
7673 |
> |
|
7674 |
> |
rs6000*-aix*) if test "$CC" = cc -o "$CC" = xlc; then |
7675 |
> |
CFLAGS="-O3 -qtune=auto -qansialias -w" |
7676 |
> |
fi;; |
7677 |
> |
powerpc*-aix*) |
7678 |
> |
if test "$CC" = cc -o "$CC" = xlc; then |
7679 |
> |
CFLAGS="-O3 -qtune=auto -qansialias -w" |
7680 |
> |
echo "*******************************************************" |
7681 |
> |
echo "* You have AIX on an unknown powerpc system. It is *" |
7682 |
> |
echo "* recommended that you use *" |
7683 |
> |
echo "* *" |
7684 |
> |
echo "* CFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w *" |
7685 |
> |
echo "* ^^^ *" |
7686 |
> |
echo "* where xxx is 601, 603, 604, or whatever kind of *" |
7687 |
> |
echo "* PowerPC CPU you have. For more info, man cc. *" |
7688 |
> |
echo "*******************************************************" |
7689 |
> |
fi;; |
7690 |
> |
*darwin*) |
7691 |
> |
if test "$CC" = xlc -o "$CC" = cc; then |
7692 |
> |
CFLAGS="-qthreaded -O -qtune=auto -qarch=auto -qunroll=auto -qaltivec" |
7693 |
> |
fi;; |
7694 |
> |
esac |
7695 |
> |
|
7696 |
> |
# use default flags for gcc on all systems |
7697 |
> |
if test $ac_cv_prog_really_gcc = yes; then |
7698 |
> |
CFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic" |
7699 |
> |
fi |
7700 |
> |
|
7701 |
> |
# test for gcc-specific flags: |
7702 |
> |
if test $ac_cv_prog_really_gcc = yes; then |
7703 |
> |
# -malign-double for x86 systems |
7704 |
> |
|
7705 |
> |
|
7706 |
> |
echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -malign-double" >&5 |
7707 |
> |
echo $ECHO_N "checking whether ${CC-cc} accepts -malign-double... $ECHO_C" >&6 |
7708 |
> |
if test "${ac_align_double+set}" = set; then |
7709 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7710 |
> |
else |
7711 |
> |
echo 'void f(){}' > conftest.c |
7712 |
> |
if test -z "`${CC-cc} -malign-double -c conftest.c 2>&1`"; then |
7713 |
> |
ac_align_double=yes |
7714 |
> |
else |
7715 |
> |
ac_align_double=no |
7716 |
> |
fi |
7717 |
> |
rm -f conftest* |
7718 |
> |
|
7719 |
> |
fi |
7720 |
> |
echo "$as_me:$LINENO: result: $ac_align_double" >&5 |
7721 |
> |
echo "${ECHO_T}$ac_align_double" >&6 |
7722 |
> |
if test "$ac_align_double" = yes; then |
7723 |
> |
: |
7724 |
> |
CFLAGS="$CFLAGS -malign-double" |
7725 |
> |
else |
7726 |
> |
: |
7727 |
> |
|
7728 |
> |
fi |
7729 |
> |
|
7730 |
> |
# -fstrict-aliasing for gcc-2.95+ |
7731 |
> |
|
7732 |
> |
|
7733 |
> |
echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -fstrict-aliasing" >&5 |
7734 |
> |
echo $ECHO_N "checking whether ${CC-cc} accepts -fstrict-aliasing... $ECHO_C" >&6 |
7735 |
> |
if test "${ac_fstrict_aliasing+set}" = set; then |
7736 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7737 |
> |
else |
7738 |
> |
echo 'void f(){}' > conftest.c |
7739 |
> |
if test -z "`${CC-cc} -fstrict-aliasing -c conftest.c 2>&1`"; then |
7740 |
> |
ac_fstrict_aliasing=yes |
7741 |
> |
else |
7742 |
> |
ac_fstrict_aliasing=no |
7743 |
> |
fi |
7744 |
> |
rm -f conftest* |
7745 |
> |
|
7746 |
> |
fi |
7747 |
> |
echo "$as_me:$LINENO: result: $ac_fstrict_aliasing" >&5 |
7748 |
> |
echo "${ECHO_T}$ac_fstrict_aliasing" >&6 |
7749 |
> |
if test "$ac_fstrict_aliasing" = yes; then |
7750 |
> |
: |
7751 |
> |
CFLAGS="$CFLAGS -fstrict-aliasing" |
7752 |
> |
else |
7753 |
> |
: |
7754 |
> |
|
7755 |
> |
fi |
7756 |
> |
|
7757 |
> |
fi |
7758 |
> |
|
7759 |
> |
CPU_FLAGS="" |
7760 |
> |
if test $ac_cv_prog_really_gcc = yes; then |
7761 |
> |
case "${host_cpu}" in |
7762 |
> |
i586*) |
7763 |
> |
|
7764 |
> |
echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=pentium" >&5 |
7765 |
> |
echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentium... $ECHO_C" >&6 |
7766 |
> |
if test "${ac_cpu_pentium+set}" = set; then |
7767 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7768 |
> |
else |
7769 |
> |
echo 'void f(){}' > conftest.c |
7770 |
> |
if test -z "`${CC-cc} -mcpu=pentium -c conftest.c 2>&1`"; then |
7771 |
> |
ac_cpu_pentium=yes |
7772 |
> |
else |
7773 |
> |
ac_cpu_pentium=no |
7774 |
> |
fi |
7775 |
> |
rm -f conftest* |
7776 |
> |
|
7777 |
> |
fi |
7778 |
> |
echo "$as_me:$LINENO: result: $ac_cpu_pentium" >&5 |
7779 |
> |
echo "${ECHO_T}$ac_cpu_pentium" >&6 |
7780 |
> |
if test "$ac_cpu_pentium" = yes; then |
7781 |
> |
: |
7782 |
> |
CPU_FLAGS=-mcpu=pentium |
7783 |
> |
else |
7784 |
> |
: |
7785 |
> |
|
7786 |
> |
|
7787 |
> |
echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpentium" >&5 |
7788 |
> |
echo $ECHO_N "checking whether ${CC-cc} accepts -mpentium... $ECHO_C" >&6 |
7789 |
> |
if test "${ac_pentium+set}" = set; then |
7790 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7791 |
> |
else |
7792 |
> |
echo 'void f(){}' > conftest.c |
7793 |
> |
if test -z "`${CC-cc} -mpentium -c conftest.c 2>&1`"; then |
7794 |
> |
ac_pentium=yes |
7795 |
> |
else |
7796 |
> |
ac_pentium=no |
7797 |
> |
fi |
7798 |
> |
rm -f conftest* |
7799 |
> |
|
7800 |
> |
fi |
7801 |
> |
echo "$as_me:$LINENO: result: $ac_pentium" >&5 |
7802 |
> |
echo "${ECHO_T}$ac_pentium" >&6 |
7803 |
> |
if test "$ac_pentium" = yes; then |
7804 |
> |
: |
7805 |
> |
CPU_FLAGS=-mpentium |
7806 |
> |
else |
7807 |
> |
: |
7808 |
> |
|
7809 |
> |
fi |
7810 |
> |
|
7811 |
> |
fi |
7812 |
> |
|
7813 |
> |
;; |
7814 |
> |
i686*) |
7815 |
> |
|
7816 |
> |
echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=pentiumpro" >&5 |
7817 |
> |
echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentiumpro... $ECHO_C" >&6 |
7818 |
> |
if test "${ac_cpu_pentiumpro+set}" = set; then |
7819 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7820 |
> |
else |
7821 |
> |
echo 'void f(){}' > conftest.c |
7822 |
> |
if test -z "`${CC-cc} -mcpu=pentiumpro -c conftest.c 2>&1`"; then |
7823 |
> |
ac_cpu_pentiumpro=yes |
7824 |
> |
else |
7825 |
> |
ac_cpu_pentiumpro=no |
7826 |
> |
fi |
7827 |
> |
rm -f conftest* |
7828 |
> |
|
7829 |
> |
fi |
7830 |
> |
echo "$as_me:$LINENO: result: $ac_cpu_pentiumpro" >&5 |
7831 |
> |
echo "${ECHO_T}$ac_cpu_pentiumpro" >&6 |
7832 |
> |
if test "$ac_cpu_pentiumpro" = yes; then |
7833 |
> |
: |
7834 |
> |
CPU_FLAGS=-mcpu=pentiumpro |
7835 |
> |
else |
7836 |
> |
: |
7837 |
> |
|
7838 |
> |
|
7839 |
> |
echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpentiumpro" >&5 |
7840 |
> |
echo $ECHO_N "checking whether ${CC-cc} accepts -mpentiumpro... $ECHO_C" >&6 |
7841 |
> |
if test "${ac_pentiumpro+set}" = set; then |
7842 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7843 |
> |
else |
7844 |
> |
echo 'void f(){}' > conftest.c |
7845 |
> |
if test -z "`${CC-cc} -mpentiumpro -c conftest.c 2>&1`"; then |
7846 |
> |
ac_pentiumpro=yes |
7847 |
> |
else |
7848 |
> |
ac_pentiumpro=no |
7849 |
> |
fi |
7850 |
> |
rm -f conftest* |
7851 |
> |
|
7852 |
> |
fi |
7853 |
> |
echo "$as_me:$LINENO: result: $ac_pentiumpro" >&5 |
7854 |
> |
echo "${ECHO_T}$ac_pentiumpro" >&6 |
7855 |
> |
if test "$ac_pentiumpro" = yes; then |
7856 |
> |
: |
7857 |
> |
CPU_FLAGS=-mpentiumpro |
7858 |
> |
else |
7859 |
> |
: |
7860 |
> |
|
7861 |
> |
fi |
7862 |
> |
|
7863 |
> |
fi |
7864 |
> |
|
7865 |
> |
;; |
7866 |
> |
powerpc*) |
7867 |
> |
cputype=`(grep cpu /proc/cpuinfo | head -1 | cut -d: -f2 | sed 's/ //g') 2> /dev/null` |
7868 |
> |
is60x=`echo $cputype | egrep "^600-9e?$"` |
7869 |
> |
if test -n "$is60x"; then |
7870 |
> |
|
7871 |
> |
|
7872 |
> |
echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=$cputype" >&5 |
7873 |
> |
echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=$cputype... $ECHO_C" >&6 |
7874 |
> |
if test "${ac_m_cpu_60x+set}" = set; then |
7875 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7876 |
> |
else |
7877 |
> |
echo 'void f(){}' > conftest.c |
7878 |
> |
if test -z "`${CC-cc} -mcpu=$cputype -c conftest.c 2>&1`"; then |
7879 |
> |
ac_m_cpu_60x=yes |
7880 |
> |
else |
7881 |
> |
ac_m_cpu_60x=no |
7882 |
> |
fi |
7883 |
> |
rm -f conftest* |
7884 |
> |
|
7885 |
> |
fi |
7886 |
> |
echo "$as_me:$LINENO: result: $ac_m_cpu_60x" >&5 |
7887 |
> |
echo "${ECHO_T}$ac_m_cpu_60x" >&6 |
7888 |
> |
if test "$ac_m_cpu_60x" = yes; then |
7889 |
> |
: |
7890 |
> |
CPU_FLAGS=-mcpu=$cputype |
7891 |
> |
else |
7892 |
> |
: |
7893 |
> |
|
7894 |
> |
fi |
7895 |
> |
|
7896 |
> |
elif test "$cputype" = 750; then |
7897 |
> |
|
7898 |
> |
|
7899 |
> |
echo "$as_me:$LINENO: checking whether we are using gcc 2.95 or later" >&5 |
7900 |
> |
echo $ECHO_N "checking whether we are using gcc 2.95 or later... $ECHO_C" >&6 |
7901 |
> |
if test "${ac_cv_prog_gcc_2_95+set}" = set; then |
7902 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7903 |
> |
else |
7904 |
> |
|
7905 |
> |
cat > conftest.c <<EOF |
7906 |
> |
#ifdef __GNUC__ && !defined (__INTEL_COMPILER) |
7907 |
> |
# if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95) |
7908 |
> |
yes; |
7909 |
> |
# endif |
7910 |
> |
#endif |
7911 |
> |
EOF |
7912 |
> |
if { ac_try='${CC-cc} -E conftest.c' |
7913 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7914 |
> |
(eval $ac_try) 2>&5 |
7915 |
> |
ac_status=$? |
7916 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7917 |
> |
(exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then |
7918 |
> |
ac_cv_prog_gcc_2_95=yes |
7919 |
> |
else |
7920 |
> |
ac_cv_prog_gcc_2_95=no |
7921 |
> |
fi |
7922 |
> |
|
7923 |
> |
fi |
7924 |
> |
echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_2_95" >&5 |
7925 |
> |
echo "${ECHO_T}$ac_cv_prog_gcc_2_95" >&6 |
7926 |
> |
if test "$ac_cv_prog_gcc_2_95" = yes; then |
7927 |
> |
: |
7928 |
> |
|
7929 |
> |
|
7930 |
> |
echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=750" >&5 |
7931 |
> |
echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=750... $ECHO_C" >&6 |
7932 |
> |
if test "${ac_m_cpu_750+set}" = set; then |
7933 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7934 |
> |
else |
7935 |
> |
echo 'void f(){}' > conftest.c |
7936 |
> |
if test -z "`${CC-cc} -mcpu=750 -c conftest.c 2>&1`"; then |
7937 |
> |
ac_m_cpu_750=yes |
7938 |
> |
else |
7939 |
> |
ac_m_cpu_750=no |
7940 |
> |
fi |
7941 |
> |
rm -f conftest* |
7942 |
> |
|
7943 |
> |
fi |
7944 |
> |
echo "$as_me:$LINENO: result: $ac_m_cpu_750" >&5 |
7945 |
> |
echo "${ECHO_T}$ac_m_cpu_750" >&6 |
7946 |
> |
if test "$ac_m_cpu_750" = yes; then |
7947 |
> |
: |
7948 |
> |
CPU_FLAGS=-mcpu=750 |
7949 |
> |
else |
7950 |
> |
: |
7951 |
> |
|
7952 |
> |
fi |
7953 |
> |
|
7954 |
> |
else |
7955 |
> |
: |
7956 |
> |
|
7957 |
> |
fi |
7958 |
> |
|
7959 |
> |
fi |
7960 |
> |
if test -z "$CPU_FLAGS"; then |
7961 |
> |
|
7962 |
> |
|
7963 |
> |
echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=powerpc" >&5 |
7964 |
> |
echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=powerpc... $ECHO_C" >&6 |
7965 |
> |
if test "${ac_m_cpu_powerpc+set}" = set; then |
7966 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7967 |
> |
else |
7968 |
> |
echo 'void f(){}' > conftest.c |
7969 |
> |
if test -z "`${CC-cc} -mcpu=powerpc -c conftest.c 2>&1`"; then |
7970 |
> |
ac_m_cpu_powerpc=yes |
7971 |
> |
else |
7972 |
> |
ac_m_cpu_powerpc=no |
7973 |
> |
fi |
7974 |
> |
rm -f conftest* |
7975 |
> |
|
7976 |
> |
fi |
7977 |
> |
echo "$as_me:$LINENO: result: $ac_m_cpu_powerpc" >&5 |
7978 |
> |
echo "${ECHO_T}$ac_m_cpu_powerpc" >&6 |
7979 |
> |
if test "$ac_m_cpu_powerpc" = yes; then |
7980 |
> |
: |
7981 |
> |
CPU_FLAGS=-mcpu=powerpc |
7982 |
> |
else |
7983 |
> |
: |
7984 |
> |
|
7985 |
> |
fi |
7986 |
> |
|
7987 |
> |
fi |
7988 |
> |
if test -z "$CPU_FLAGS"; then |
7989 |
> |
|
7990 |
> |
|
7991 |
> |
echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpowerpc" >&5 |
7992 |
> |
echo $ECHO_N "checking whether ${CC-cc} accepts -mpowerpc... $ECHO_C" >&6 |
7993 |
> |
if test "${ac_m_powerpc+set}" = set; then |
7994 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7995 |
> |
else |
7996 |
> |
echo 'void f(){}' > conftest.c |
7997 |
> |
if test -z "`${CC-cc} -mpowerpc -c conftest.c 2>&1`"; then |
7998 |
> |
ac_m_powerpc=yes |
7999 |
> |
else |
8000 |
> |
ac_m_powerpc=no |
8001 |
> |
fi |
8002 |
> |
rm -f conftest* |
8003 |
> |
|
8004 |
> |
fi |
8005 |
> |
echo "$as_me:$LINENO: result: $ac_m_powerpc" >&5 |
8006 |
> |
echo "${ECHO_T}$ac_m_powerpc" >&6 |
8007 |
> |
if test "$ac_m_powerpc" = yes; then |
8008 |
> |
: |
8009 |
> |
CPU_FLAGS=-mpowerpc |
8010 |
> |
else |
8011 |
> |
: |
8012 |
> |
|
8013 |
> |
fi |
8014 |
> |
|
8015 |
> |
fi |
8016 |
> |
esac |
8017 |
> |
fi |
8018 |
> |
|
8019 |
> |
if test -n "$CPU_FLAGS"; then |
8020 |
> |
CFLAGS="$CFLAGS $CPU_FLAGS" |
8021 |
> |
fi |
8022 |
> |
|
8023 |
> |
if test -z "$CFLAGS"; then |
8024 |
> |
echo "" |
8025 |
> |
echo "********************************************************" |
8026 |
> |
echo "* WARNING: Don't know the best CFLAGS for this system *" |
8027 |
> |
echo "* Use make CFLAGS=..., or edit the top level Makefile *" |
8028 |
> |
echo "* (otherwise, a default of CFLAGS=-O3 will be used) *" |
8029 |
> |
echo "********************************************************" |
8030 |
> |
echo "" |
8031 |
> |
CFLAGS="-O3" |
8032 |
> |
fi |
8033 |
> |
|
8034 |
> |
|
8035 |
> |
|
8036 |
> |
echo "$as_me:$LINENO: checking whether ${CC-cc} accepts ${CFLAGS}" >&5 |
8037 |
> |
echo $ECHO_N "checking whether ${CC-cc} accepts ${CFLAGS}... $ECHO_C" >&6 |
8038 |
> |
if test "${ac_guessed_cflags+set}" = set; then |
8039 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8040 |
> |
else |
8041 |
> |
echo 'void f(){}' > conftest.c |
8042 |
> |
if test -z "`${CC-cc} ${CFLAGS} -c conftest.c 2>&1`"; then |
8043 |
> |
ac_guessed_cflags=yes |
8044 |
> |
else |
8045 |
> |
ac_guessed_cflags=no |
8046 |
> |
fi |
8047 |
> |
rm -f conftest* |
8048 |
> |
|
8049 |
> |
fi |
8050 |
> |
echo "$as_me:$LINENO: result: $ac_guessed_cflags" >&5 |
8051 |
> |
echo "${ECHO_T}$ac_guessed_cflags" >&6 |
8052 |
> |
if test "$ac_guessed_cflags" = yes; then |
8053 |
> |
: |
8054 |
> |
|
8055 |
> |
else |
8056 |
> |
: |
8057 |
> |
|
8058 |
> |
echo "" |
8059 |
> |
echo "********************************************************" |
8060 |
> |
echo "* WARNING: The guessed CFLAGS don't seem to work with *" |
8061 |
> |
echo "* your compiler. *" |
8062 |
> |
echo "* Use make CFLAGS=..., or edit the top level Makefile *" |
8063 |
> |
echo "********************************************************" |
8064 |
> |
echo "" |
8065 |
> |
CFLAGS="" |
8066 |
> |
|
8067 |
> |
fi |
8068 |
> |
|
8069 |
> |
|
8070 |
> |
fi |
8071 |
> |
|
8072 |
> |
|
8073 |
> |
|
8074 |
> |
|
8075 |
> |
|
8076 |
> |
|
8077 |
> |
|
8078 |
> |
echo "$as_me:$LINENO: checking whether we are *really* using GNU c++" >&5 |
8079 |
> |
echo $ECHO_N "checking whether we are *really* using GNU c++... $ECHO_C" >&6 |
8080 |
> |
if test "${ac_cv_prog_really_gxx+set}" = set; then |
8081 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8082 |
> |
else |
8083 |
> |
|
8084 |
> |
cat > conftest.cpp <<EOF |
8085 |
> |
#ifdef __GNUC__ |
8086 |
> |
#ifndef __INTEL_COMPILER |
8087 |
> |
yes; |
8088 |
> |
#endif |
8089 |
> |
#endif |
8090 |
> |
EOF |
8091 |
> |
if { ac_try='${CXX-c++} -E conftest.cpp' |
8092 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8093 |
> |
(eval $ac_try) 2>&5 |
8094 |
> |
ac_status=$? |
8095 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8096 |
> |
(exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then |
8097 |
> |
ac_cv_prog_really_gxx=yes |
8098 |
> |
else |
8099 |
> |
ac_cv_prog_really_gxx=no |
8100 |
> |
fi |
8101 |
> |
|
8102 |
> |
fi |
8103 |
> |
echo "$as_me:$LINENO: result: $ac_cv_prog_really_gxx" >&5 |
8104 |
> |
echo "${ECHO_T}$ac_cv_prog_really_gxx" >&6 |
8105 |
> |
if test "$ac_cv_prog_really_gxx" = yes; then |
8106 |
> |
: |
8107 |
> |
|
8108 |
> |
else |
8109 |
> |
: |
8110 |
> |
|
8111 |
> |
fi |
8112 |
> |
|
8113 |
> |
|
8114 |
> |
# Try to determine "good" native compiler flags if none specified on command |
8115 |
> |
# line |
8116 |
> |
if test "$ac_test_CXXFLAGS" != "set"; then |
8117 |
> |
CXXFLAGS="" |
8118 |
> |
case "${host_cpu}-${host_os}" in |
8119 |
> |
|
8120 |
> |
*linux*) if test "$CXX" = icc -o "$CXX" = icpc; then |
8121 |
> |
CXXFLAGS="-O" |
8122 |
> |
fi;; |
8123 |
> |
sparc-solaris2*) if test "$CXX" = CC; then |
8124 |
> |
CXXFLAGS="-native -fast -xO5 -dalign" |
8125 |
> |
fi;; |
8126 |
> |
rs6000*-aix*) if test "$CXX" = xlC; then |
8127 |
> |
CXXFLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w" |
8128 |
> |
fi;; |
8129 |
> |
powerpc*-aix*) |
8130 |
> |
if test "$CXX" = xlC; then |
8131 |
> |
CXXFLAGS="-O3 -qarch=ppc -qansialias -w" |
8132 |
> |
echo "*******************************************************" |
8133 |
> |
echo "* You have AIX on an unknown powerpc system. It is *" |
8134 |
> |
echo "* recommended that you use *" |
8135 |
> |
echo "* *" |
8136 |
> |
echo "* CXXFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w *" |
8137 |
> |
echo "* ^^^ *" |
8138 |
> |
echo "* where xxx is 601, 603, 604, or whatever kind of *" |
8139 |
> |
echo "* PowerPC CPU you have. For more info, man cc. *" |
8140 |
> |
echo "*******************************************************" |
8141 |
> |
fi;; |
8142 |
> |
*darwin*) |
8143 |
> |
if test "$CXX" = xlc++ -o "$CXX" = xlC ; then |
8144 |
> |
CXXFLAGS="-qthreaded -O -qtune=auto -qarch=auto -qunroll=auto -qaltivec" |
8145 |
|
fi;; |
8146 |
|
esac |
8147 |
|
|
8553 |
|
fi;; |
8554 |
|
*darwin*) |
8555 |
|
if test "$F90" = f90 -o "$F90" = xlf90 -o "$F90" = xlf95; then |
8556 |
< |
F90FLAGS="-qthreaded -O5 -qtune=auto -qarch=auto -qunroll=auto" |
8556 |
> |
F90FLAGS="-qthreaded -O -qtune=auto -qarch=auto -qunroll=auto" |
8557 |
|
fi;; |
8558 |
|
esac |
8559 |
|
|
9146 |
|
fi |
9147 |
|
|
9148 |
|
fi |
9149 |
+ |
|
9150 |
+ |
# Extract the first word of "perl", so it can be a program name with args. |
9151 |
+ |
set dummy perl; ac_word=$2 |
9152 |
+ |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9153 |
+ |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
9154 |
+ |
if test "${ac_cv_path_PERLINTERP+set}" = set; then |
9155 |
+ |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
9156 |
+ |
else |
9157 |
+ |
case $PERLINTERP in |
9158 |
+ |
[\\/]* | ?:[\\/]*) |
9159 |
+ |
ac_cv_path_PERLINTERP="$PERLINTERP" # Let the user override the test with a path. |
9160 |
+ |
;; |
9161 |
+ |
*) |
9162 |
+ |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9163 |
+ |
for as_dir in $PATH |
9164 |
+ |
do |
9165 |
+ |
IFS=$as_save_IFS |
9166 |
+ |
test -z "$as_dir" && as_dir=. |
9167 |
+ |
for ac_exec_ext in '' $ac_executable_extensions; do |
9168 |
+ |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9169 |
+ |
ac_cv_path_PERLINTERP="$as_dir/$ac_word$ac_exec_ext" |
9170 |
+ |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9171 |
+ |
break 2 |
9172 |
+ |
fi |
9173 |
+ |
done |
9174 |
+ |
done |
9175 |
+ |
|
9176 |
+ |
test -z "$ac_cv_path_PERLINTERP" && ac_cv_path_PERLINTERP="perl" |
9177 |
+ |
;; |
9178 |
+ |
esac |
9179 |
+ |
fi |
9180 |
+ |
PERLINTERP=$ac_cv_path_PERLINTERP |
9181 |
+ |
|
9182 |
+ |
if test -n "$PERLINTERP"; then |
9183 |
+ |
echo "$as_me:$LINENO: result: $PERLINTERP" >&5 |
9184 |
+ |
echo "${ECHO_T}$PERLINTERP" >&6 |
9185 |
+ |
else |
9186 |
+ |
echo "$as_me:$LINENO: result: no" >&5 |
9187 |
+ |
echo "${ECHO_T}no" >&6 |
9188 |
+ |
fi |
9189 |
+ |
|
9190 |
+ |
ac_cv_path_perlinterp="$PERLINTERP" |
9191 |
+ |
_sHpB='#!' |
9192 |
+ |
|
9193 |
+ |
|
9194 |
+ |
# Check whether --with-perl-shebang or --without-perl-shebang was given. |
9195 |
+ |
if test "${with_perl_shebang+set}" = set; then |
9196 |
+ |
withval="$with_perl_shebang" |
9197 |
+ |
opt_perl_shebang="$withval" |
9198 |
+ |
else |
9199 |
+ |
opt_perl_shebang="not_set" |
9200 |
+ |
fi; |
9201 |
+ |
echo "$as_me:$LINENO: checking whether explicit instead of detected sharpbang is to be used" >&5 |
9202 |
+ |
echo $ECHO_N "checking whether explicit instead of detected sharpbang is to be used... $ECHO_C" >&6 |
9203 |
+ |
if test "${ax_cv_opt_perl_shebang+set}" = set; then |
9204 |
+ |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
9205 |
+ |
else |
9206 |
+ |
case "$opt_perl_shebang" in |
9207 |
+ |
not_set ) ax_cv_opt_perl_shebang='' |
9208 |
+ |
;; |
9209 |
+ |
* ) |
9210 |
+ |
ax_cv_opt_perl_shebang=`echo "$opt_perl_shebang" | sed -e's|^#!\s*\(.*\)$|\1|'` |
9211 |
+ |
esac |
9212 |
+ |
|
9213 |
+ |
fi |
9214 |
+ |
echo "$as_me:$LINENO: result: $ax_cv_opt_perl_shebang" >&5 |
9215 |
+ |
echo "${ECHO_T}$ax_cv_opt_perl_shebang" >&6 |
9216 |
+ |
if test "A$ax_cv_opt_perl_shebang" != "A" |
9217 |
+ |
then |
9218 |
+ |
ac_cv_sys_kernshrpbang_perl="$ax_cv_opt_perl_shebang" |
9219 |
+ |
PERL_SHEBANG="$ac_cv_sys_kernshrpbang_perl" |
9220 |
+ |
{ echo "$as_me:$LINENO: OK - PERL_SHEBANG is $_sHpB$PERL_SHEBANG." >&5 |
9221 |
+ |
echo "$as_me: OK - PERL_SHEBANG is $_sHpB$PERL_SHEBANG." >&6;} |
9222 |
+ |
|
9223 |
+ |
# Automatic detection of sharpbang formula starts here |
9224 |
+ |
else |
9225 |
+ |
_somian_shbangperl=`$PERLINTERP -V:startperl` |
9226 |
+ |
negclass="[^']"; # must leave this comment: m4 will remove the outer brackets for us, heheh |
9227 |
+ |
echo "$as_me:$LINENO: checking for kernel sharpbang invocation to start perl" >&5 |
9228 |
+ |
echo $ECHO_N "checking for kernel sharpbang invocation to start perl... $ECHO_C" >&6 |
9229 |
+ |
if test "${ac_cv_sys_kernshrpbang_perl+set}" = set; then |
9230 |
+ |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
9231 |
+ |
else |
9232 |
+ |
_somian_kspb_perl=`echo "$_somian_shbangperl" | sed -ne"s|.*='\($negclass*\)';$|\1|p"` |
9233 |
+ |
if test "x$_somian_kspb_perl" == x |
9234 |
+ |
then _somian_ksbp_warn_empty='durnit' |
9235 |
+ |
else |
9236 |
+ |
case "A$_somian_kspb_perl" in |
9237 |
+ |
A#!*perl* ) |
9238 |
+ |
ac_cv_sys_kernshrpbang_perl=`echo "$_somian_kspb_perl" | sed -e's|#!\(.*\)$|\1|'` |
9239 |
+ |
;; |
9240 |
+ |
A* ) _somian_ksbp_warn_defau='trouble' |
9241 |
+ |
ac_cv_sys_kernshrpbang_perl="$PERLINTERP" |
9242 |
+ |
esac |
9243 |
+ |
fi |
9244 |
+ |
|
9245 |
+ |
fi |
9246 |
+ |
echo "$as_me:$LINENO: result: $ac_cv_sys_kernshrpbang_perl" >&5 |
9247 |
+ |
echo "${ECHO_T}$ac_cv_sys_kernshrpbang_perl" >&6 |
9248 |
+ |
# The above prints Checking ... result message to user. |
9249 |
+ |
PERL_SHEBANG="$ac_cv_sys_kernshrpbang_perl" |
9250 |
+ |
|
9251 |
+ |
if test A${_somian_ksbp_warn_empty+set} == Aset |
9252 |
+ |
then { echo "$as_me:$LINENO: WARNING: In last check, doing $PERLINTERP -V:startperl yielded empty result! That should not happen." >&5 |
9253 |
+ |
echo "$as_me: WARNING: In last check, doing $PERLINTERP -V:startperl yielded empty result! That should not happen." >&2;} |
9254 |
+ |
fi |
9255 |
+ |
# Inform user after printing result value |
9256 |
+ |
if test A${_somian_ksbp_warn_defau+set} == Aset |
9257 |
+ |
then { echo "$as_me:$LINENO: Maybe Not good -" >&5 |
9258 |
+ |
echo "$as_me: Maybe Not good -" >&6;} |
9259 |
+ |
{ echo "$as_me:$LINENO: WARNING: In last check perl's Config query did not work so we bunted: $_sHpB$PERLINTERP" >&5 |
9260 |
+ |
echo "$as_me: WARNING: In last check perl's Config query did not work so we bunted: $_sHpB$PERLINTERP" >&2;} |
9261 |
+ |
else { echo "$as_me:$LINENO: OK Good result - " >&5 |
9262 |
+ |
echo "$as_me: OK Good result - " >&6;} |
9263 |
+ |
{ echo "$as_me:$LINENO: In last check we got a proper-looking answer from perl's Config: $_somian_shbangperl" >&5 |
9264 |
+ |
echo "$as_me: In last check we got a proper-looking answer from perl's Config: $_somian_shbangperl" >&6;} |
9265 |
+ |
fi |
9266 |
+ |
fi |
9267 |
+ |
|
9268 |
|
# Extract the first word of "ar", so it can be a program name with args. |
9269 |
|
set dummy ar; ac_word=$2 |
9270 |
|
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9362 |
|
exit 1 |
9363 |
|
fi |
9364 |
|
|
9365 |
+ |
# Extract the first word of "ps", so it can be a program name with args. |
9366 |
+ |
set dummy ps; ac_word=$2 |
9367 |
+ |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9368 |
+ |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
9369 |
+ |
if test "${ac_cv_path_PS+set}" = set; then |
9370 |
+ |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
9371 |
+ |
else |
9372 |
+ |
case $PS in |
9373 |
+ |
[\\/]* | ?:[\\/]*) |
9374 |
+ |
ac_cv_path_PS="$PS" # Let the user override the test with a path. |
9375 |
+ |
;; |
9376 |
+ |
*) |
9377 |
+ |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9378 |
+ |
for as_dir in $PATH |
9379 |
+ |
do |
9380 |
+ |
IFS=$as_save_IFS |
9381 |
+ |
test -z "$as_dir" && as_dir=. |
9382 |
+ |
for ac_exec_ext in '' $ac_executable_extensions; do |
9383 |
+ |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9384 |
+ |
ac_cv_path_PS="$as_dir/$ac_word$ac_exec_ext" |
9385 |
+ |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9386 |
+ |
break 2 |
9387 |
+ |
fi |
9388 |
+ |
done |
9389 |
+ |
done |
9390 |
|
|
9391 |
+ |
;; |
9392 |
+ |
esac |
9393 |
+ |
fi |
9394 |
+ |
PS=$ac_cv_path_PS |
9395 |
|
|
9396 |
+ |
if test -n "$PS"; then |
9397 |
+ |
echo "$as_me:$LINENO: result: $PS" >&5 |
9398 |
+ |
echo "${ECHO_T}$PS" >&6 |
9399 |
+ |
else |
9400 |
+ |
echo "$as_me:$LINENO: result: no" >&5 |
9401 |
+ |
echo "${ECHO_T}no" >&6 |
9402 |
+ |
fi |
9403 |
+ |
|
9404 |
+ |
echo "$as_me:$LINENO: checking for POSIX or BSD ps syntax" >&5 |
9405 |
+ |
echo $ECHO_N "checking for POSIX or BSD ps syntax... $ECHO_C" >&6 |
9406 |
+ |
if test "${ac_cv_prog_ps_syntax+set}" = set; then |
9407 |
+ |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
9408 |
+ |
else |
9409 |
+ |
|
9410 |
+ |
if $PS ax -o rss > /dev/null 2>&1; then |
9411 |
+ |
ac_cv_prog_ps_ax=yes |
9412 |
+ |
else |
9413 |
+ |
ac_cv_prog_ps_ax=no |
9414 |
+ |
fi |
9415 |
+ |
if $PS -ef -o rss > /dev/null 2>&1; then |
9416 |
+ |
ac_cv_prog_ps_ef=yes |
9417 |
+ |
else |
9418 |
+ |
ac_cv_prog_ps_ef=no |
9419 |
+ |
fi |
9420 |
+ |
if test "$ac_cv_prog_ps_ax" = yes; then |
9421 |
+ |
ac_cv_prog_ps_syntax=BSD |
9422 |
+ |
else |
9423 |
+ |
if test "$ac_cv_prog_ps_ef" = yes; then |
9424 |
+ |
ac_cv_prog_ps_syntax=POSIX |
9425 |
+ |
else |
9426 |
+ |
{ { echo "$as_me:$LINENO: error: Could not determine ps syntax" >&5 |
9427 |
+ |
echo "$as_me: error: Could not determine ps syntax" >&2;} |
9428 |
+ |
{ (exit 1); exit 1; }; } |
9429 |
+ |
fi |
9430 |
+ |
fi |
9431 |
+ |
|
9432 |
+ |
fi |
9433 |
+ |
echo "$as_me:$LINENO: result: $ac_cv_prog_ps_syntax" >&5 |
9434 |
+ |
echo "${ECHO_T}$ac_cv_prog_ps_syntax" >&6 |
9435 |
+ |
|
9436 |
+ |
|
9437 |
+ |
cat >>confdefs.h <<_ACEOF |
9438 |
+ |
#define PSCOMMAND $PS |
9439 |
+ |
_ACEOF |
9440 |
+ |
|
9441 |
+ |
|
9442 |
+ |
cat >>confdefs.h <<\_ACEOF |
9443 |
+ |
#define OBAPI |
9444 |
+ |
_ACEOF |
9445 |
+ |
|
9446 |
+ |
|
9447 |
+ |
|
9448 |
+ |
if test "$ac_cv_prog_ps_syntax" = BSD; then |
9449 |
+ |
cat >>confdefs.h <<\_ACEOF |
9450 |
+ |
#define PSTYPE_IS_BSD 1 |
9451 |
+ |
_ACEOF |
9452 |
+ |
|
9453 |
+ |
else |
9454 |
+ |
if test "$ac_cv_prog_ps_syntax" = POSIX; then |
9455 |
+ |
cat >>confdefs.h <<\_ACEOF |
9456 |
+ |
#define PSTYPE_IS_POSIX 1 |
9457 |
+ |
_ACEOF |
9458 |
+ |
|
9459 |
+ |
else |
9460 |
+ |
{ { echo "$as_me:$LINENO: error: Unknown ps syntax type!" >&5 |
9461 |
+ |
echo "$as_me: error: Unknown ps syntax type!" >&2;} |
9462 |
+ |
{ (exit 1); exit 1; }; } |
9463 |
+ |
fi |
9464 |
+ |
fi |
9465 |
+ |
|
9466 |
+ |
|
9467 |
|
# Check whether --with-mpi or --without-mpi was given. |
9468 |
|
if test "${with_mpi+set}" = set; then |
9469 |
|
withval="$with_mpi" |
9492 |
|
echo "$as_me:$LINENO: checking for mpi.h" >&5 |
9493 |
|
echo $ECHO_N "checking for mpi.h... $ECHO_C" >&6 |
9494 |
|
have_mpi_h=0 |
9495 |
+ |
rm -f conftest* |
9496 |
|
echo '#include <mpi.h>' > conftest.cc |
9497 |
< |
if test -z "`${CXX} -I${MPI_INC_DIR} -c conftest.cc 2>&1`"; then |
9497 |
> |
if ${CXX} -I${MPI_INC_DIR} -c conftest.cc 2>&1 ; then |
9498 |
|
echo "$as_me:$LINENO: result: yes" >&5 |
9499 |
|
echo "${ECHO_T}yes" >&6 |
9500 |
|
have_mpi_h=1 |
9501 |
|
else |
9502 |
+ |
if test -s conftest.out ; then |
9503 |
+ |
cat conftest.out >> config.log |
9504 |
+ |
fi |
9505 |
|
echo "$as_me:$LINENO: result: no! Check MPI include paths" >&5 |
9506 |
|
echo "${ECHO_T}no! Check MPI include paths" >&6 |
9507 |
|
USE_MPI="no" |
9767 |
|
fi |
9768 |
|
|
9769 |
|
fi |
9770 |
< |
|
6995 |
< |
$as_unset ac_cv_lib_mpi_MPI_Init |
9770 |
> |
$as_unset ac_cv_lib_mpich_MPI_Init |
9771 |
|
if test x = x"$MPI_LIB"; then |
9772 |
< |
echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5 |
9773 |
< |
echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6 |
9774 |
< |
if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then |
9772 |
> |
echo "$as_me:$LINENO: checking for MPI_Init in -lmpich" >&5 |
9773 |
> |
echo $ECHO_N "checking for MPI_Init in -lmpich... $ECHO_C" >&6 |
9774 |
> |
if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then |
9775 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
9776 |
|
else |
9777 |
|
ac_check_lib_save_LIBS=$LIBS |
9778 |
< |
LIBS="-lmpi -llam -lpthread $LIBS" |
9778 |
> |
LIBS="-lmpich "-lpmpich" $LIBS" |
9779 |
|
cat >conftest.$ac_ext <<_ACEOF |
9780 |
|
/* confdefs.h. */ |
9781 |
|
_ACEOF |
9820 |
|
ac_status=$? |
9821 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9822 |
|
(exit $ac_status); }; }; then |
9823 |
< |
ac_cv_lib_mpi_MPI_Init=yes |
9823 |
> |
ac_cv_lib_mpich_MPI_Init=yes |
9824 |
|
else |
9825 |
|
echo "$as_me: failed program was:" >&5 |
9826 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
9827 |
|
|
9828 |
< |
ac_cv_lib_mpi_MPI_Init=no |
9828 |
> |
ac_cv_lib_mpich_MPI_Init=no |
9829 |
|
fi |
9830 |
|
rm -f conftest.err conftest.$ac_objext \ |
9831 |
|
conftest$ac_exeext conftest.$ac_ext |
9832 |
|
LIBS=$ac_check_lib_save_LIBS |
9833 |
|
fi |
9834 |
< |
echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5 |
9835 |
< |
echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6 |
9836 |
< |
if test $ac_cv_lib_mpi_MPI_Init = yes; then |
9837 |
< |
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 |
< |
|
7070 |
< |
fi |
7071 |
< |
|
7072 |
< |
fi |
7073 |
< |
|
7074 |
< |
|
7075 |
< |
|
7076 |
< |
echo "$as_me:$LINENO: checking for MPI Fortran library" >&5 |
7077 |
< |
echo $ECHO_N "checking for MPI Fortran library... $ECHO_C" >&6 |
7078 |
< |
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=" " |
9834 |
> |
echo "$as_me:$LINENO: result: $ac_cv_lib_mpich_MPI_Init" >&5 |
9835 |
> |
echo "${ECHO_T}$ac_cv_lib_mpich_MPI_Init" >&6 |
9836 |
> |
if test $ac_cv_lib_mpich_MPI_Init = yes; then |
9837 |
> |
MPI_LIB="-lmpich -lpmpich" |
9838 |
|
fi |
7086 |
– |
echo "$as_me:$LINENO: result: found $MPI_F90_LIB" >&5 |
7087 |
– |
echo "${ECHO_T}found $MPI_F90_LIB" >&6 |
9839 |
|
|
7089 |
– |
|
9840 |
|
fi |
9841 |
|
|
9842 |
< |
|
9843 |
< |
|
9844 |
< |
# Check whether --with-sprng or --without-sprng was given. |
9845 |
< |
if test "${with_sprng+set}" = set; then |
9846 |
< |
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 |
9842 |
> |
$as_unset ac_cv_lib_mpi_MPI_Init |
9843 |
> |
if test x = x"$MPI_LIB"; then |
9844 |
> |
echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5 |
9845 |
> |
echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6 |
9846 |
> |
if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then |
9847 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
9848 |
|
else |
9849 |
|
ac_check_lib_save_LIBS=$LIBS |
9850 |
< |
LIBS="-lsprng $LIBS" |
9850 |
> |
LIBS="-lmpi -llam -lpthread $LIBS" |
9851 |
|
cat >conftest.$ac_ext <<_ACEOF |
9852 |
|
/* confdefs.h. */ |
9853 |
|
_ACEOF |
9861 |
|
#endif |
9862 |
|
/* We use char because int might match the return type of a gcc2 |
9863 |
|
builtin and then its argument prototype would still apply. */ |
9864 |
< |
char init_rng (); |
9864 |
> |
char MPI_Init (); |
9865 |
|
int |
9866 |
|
main () |
9867 |
|
{ |
9868 |
< |
init_rng (); |
9868 |
> |
MPI_Init (); |
9869 |
|
; |
9870 |
|
return 0; |
9871 |
|
} |
9892 |
|
ac_status=$? |
9893 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9894 |
|
(exit $ac_status); }; }; then |
9895 |
< |
ac_cv_lib_sprng_init_rng=yes |
9895 |
> |
ac_cv_lib_mpi_MPI_Init=yes |
9896 |
|
else |
9897 |
|
echo "$as_me: failed program was:" >&5 |
9898 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
9899 |
|
|
9900 |
< |
ac_cv_lib_sprng_init_rng=no |
9900 |
> |
ac_cv_lib_mpi_MPI_Init=no |
9901 |
|
fi |
9902 |
|
rm -f conftest.err conftest.$ac_objext \ |
9903 |
|
conftest$ac_exeext conftest.$ac_ext |
9904 |
|
LIBS=$ac_check_lib_save_LIBS |
9905 |
|
fi |
9906 |
< |
echo "$as_me:$LINENO: result: $ac_cv_lib_sprng_init_rng" >&5 |
9907 |
< |
echo "${ECHO_T}$ac_cv_lib_sprng_init_rng" >&6 |
9908 |
< |
if test $ac_cv_lib_sprng_init_rng = yes; then |
9909 |
< |
SPRNG_LIB="-lsprng" |
9906 |
> |
echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5 |
9907 |
> |
echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6 |
9908 |
> |
if test $ac_cv_lib_mpi_MPI_Init = yes; then |
9909 |
> |
MPI_LIB="-lmpi -llam -lpthread" |
9910 |
|
else |
9911 |
|
|
9912 |
< |
{ { echo "$as_me:$LINENO: error: Didn't find libsprng; check path for SPRNG package first..." >&5 |
9913 |
< |
echo "$as_me: error: Didn't find libsprng; check path for SPRNG package first..." >&2;} |
9912 |
> |
{ { echo "$as_me:$LINENO: error: Didn't find liblam, libmpi, or libmpich; check path for MPI package first..." >&5 |
9913 |
> |
echo "$as_me: error: Didn't find liblam, libmpi, or libmpich; check path for MPI package first..." >&2;} |
9914 |
|
{ (exit 1); exit 1; }; } |
9915 |
< |
USE_SPRNG="no" |
9915 |
> |
USE_MPI="no" |
9916 |
|
|
9917 |
|
fi |
9918 |
|
|
9919 |
+ |
fi |
9920 |
|
|
9921 |
< |
if test "$USE_SPRNG" = "no"; then |
9922 |
< |
{ { echo "$as_me:$LINENO: error: No working SPRNG library found" >&5 |
9923 |
< |
echo "$as_me: error: No working SPRNG library found" >&2;} |
9924 |
< |
{ (exit 1); exit 1; }; } |
9921 |
> |
|
9922 |
> |
|
9923 |
> |
echo "$as_me:$LINENO: checking for MPI Fortran library" >&5 |
9924 |
> |
echo $ECHO_N "checking for MPI Fortran library... $ECHO_C" >&6 |
9925 |
> |
MPI_F90_LIB="" |
9926 |
> |
if test -f "$MPI_LIB_DIR/libfmpich.a" ; then |
9927 |
> |
MPI_F90_LIB="-lfmpich" |
9928 |
> |
elif test -f "$MPI_LIB_DIR/liblamf77mpi.a" ; then |
9929 |
> |
MPI_F90_LIB="-llamf77mpi" |
9930 |
> |
else |
9931 |
> |
MPI_F90_LIB=" " |
9932 |
|
fi |
9933 |
+ |
echo "$as_me:$LINENO: result: found $MPI_F90_LIB" >&5 |
9934 |
+ |
echo "${ECHO_T}found $MPI_F90_LIB" >&6 |
9935 |
|
|
9936 |
|
|
9937 |
|
fi |
9938 |
|
|
9939 |
|
|
9940 |
|
|
7237 |
– |
echo "$as_me:$LINENO: checking if MKL is wanted" >&5 |
7238 |
– |
echo $ECHO_N "checking if MKL is wanted... $ECHO_C" >&6 |
9941 |
|
|
9942 |
< |
# Check whether --with-mkl or --without-mkl was given. |
9943 |
< |
if test "${with_mkl+set}" = set; then |
9944 |
< |
withval="$with_mkl" |
9945 |
< |
echo "$as_me:$LINENO: result: yes" >&5 |
9946 |
< |
echo "${ECHO_T}yes" >&6 |
9947 |
< |
for dir in $withval /usr/local/intel/mkl61 /opt/intel/mkl61; do |
9948 |
< |
mkldir="$dir" |
9949 |
< |
if test -f "$dir/include/mkl.h"; then |
9950 |
< |
found_mkl="yes"; |
9951 |
< |
break; |
9952 |
< |
fi |
9953 |
< |
done |
9954 |
< |
if test x_$found_mkl != x_yes; then |
9955 |
< |
{ { echo "$as_me:$LINENO: error: Cannot find MKL includes" >&5 |
9956 |
< |
echo "$as_me: error: Cannot find MKL includes" >&2;} |
9957 |
< |
{ (exit 1); exit 1; }; } |
9958 |
< |
else |
9959 |
< |
printf "MKL includes found in $mkldir/include\n"; |
9942 |
> |
USE_CGAL=no |
9943 |
> |
cgal_makefile=auto |
9944 |
> |
|
9945 |
> |
# Check whether --with-cgal-makefile or --without-cgal-makefile was given. |
9946 |
> |
if test "${with_cgal_makefile+set}" = set; then |
9947 |
> |
withval="$with_cgal_makefile" |
9948 |
> |
cgal_makefile="$withval" |
9949 |
> |
fi; |
9950 |
> |
|
9951 |
> |
if test "x$cgal_makefile" != xno; then |
9952 |
> |
|
9953 |
> |
if test "x$cgal_makefile" = xauto -a "x$CGAL_MAKEFILE" != x; then |
9954 |
> |
cgal_makefile="$CGAL_MAKEFILE" |
9955 |
> |
fi |
9956 |
> |
|
9957 |
> |
echo "$as_me:$LINENO: checking for cgal_makefile: $cgal_makefile" >&5 |
9958 |
> |
echo $ECHO_N "checking for cgal_makefile: $cgal_makefile... $ECHO_C" >&6 |
9959 |
> |
|
9960 |
> |
if test -f "$cgal_makefile"; then |
9961 |
> |
|
9962 |
> |
cat >config.tmp.Makefile <<EOF |
9963 |
> |
include $cgal_makefile |
9964 |
> |
default: |
9965 |
> |
@echo CGAL_OS_COMPILER=\"\${CGAL_OS_COMPILER}\" >config.tmp.cgalvariables |
9966 |
> |
@echo CGAL_INCLDIR=\"\${CGAL_INCL_DIR}\" >>config.tmp.cgalvariables |
9967 |
> |
@echo CGAL_INCLCONFDIR=\"\${CGAL_INCL_CONF_DIR}\" >>config.tmp.cgalvariables |
9968 |
> |
@echo CGAL_LIBDIR=\"\${CGAL_LIB_DIR}/\${CGAL_OS_COMPILER}\" >>config.tmp.cgalvariables |
9969 |
> |
@echo CGAL_RLIBDIR=\"\${CGAL_LIB_DIR}/\${CGAL_OS_COMPILER}\" >>config.tmp.cgalvariables |
9970 |
> |
@echo CGAL_CXXFLAGS=\"\${CGAL_CXXFLAGS}\" >>config.tmp.cgalvariables |
9971 |
> |
@echo GMP_INCLDIR=\"\${GMP_INCL_DIR}\" >>config.tmp.cgalvariables |
9972 |
> |
@echo GMP_LIBDIR=\"\${GMP_LIB_DIR}\" >>config.tmp.cgalvariables |
9973 |
> |
@echo GMP_RLIBDIR=\"\${GMP_LIB_DIR}\" >>config.tmp.cgalvariables |
9974 |
> |
@echo LEDA_INCLDIR=\"\${LEDA_INCL_DIR}\" >>config.tmp.cgalvariables |
9975 |
> |
@echo LEDA_LIBDIR=\"\${LEDA_LIB_DIR}\" >>config.tmp.cgalvariables |
9976 |
> |
@echo LEDA_RLIBDIR=\"\${LEDA_LIB_DIR}\" >>config.tmp.cgalvariables |
9977 |
> |
EOF |
9978 |
> |
|
9979 |
> |
make -s -f config.tmp.Makefile |
9980 |
> |
. config.tmp.cgalvariables |
9981 |
> |
|
9982 |
> |
rm -f config.tmp.Makefile config.tmp.cgalvariables |
9983 |
> |
|
9984 |
> |
if test "x$CGAL_INCLDIR" = "x"; then |
9985 |
> |
CGAL_INCLDIR="" |
9986 |
|
fi |
9987 |
|
|
9988 |
+ |
if test "x$CGAL_LIBDIR" = "x"; then |
9989 |
+ |
CGAL_LIBDIR="" |
9990 |
+ |
fi |
9991 |
|
|
9992 |
+ |
if test "x$CGAL_RLIBDIR" = "x"; then |
9993 |
+ |
CGAL_RLIBDIR="" |
9994 |
+ |
fi |
9995 |
|
|
9996 |
< |
ac_ext=c |
9997 |
< |
ac_cpp='$CPP $CPPFLAGS' |
9998 |
< |
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 |
9996 |
> |
if test "x$LEDA_INCLDIR" = "x"; then |
9997 |
> |
LEDA_INCLDIR="" |
9998 |
> |
fi |
9999 |
|
|
10000 |
< |
ac_save_CPPFLAGS=$CPPFLAGS |
10001 |
< |
CPPFLAGS="${CPPFLAGS} -I${mkldir}/include" |
10002 |
< |
ac_save_LDFLAGS=$LDFLAGS |
10003 |
< |
LDFLAGS="${LDFLAGS} -L${mkldir}/lib/32 -lmkl -lvml -lguide" |
10004 |
< |
if test "${ac_cv_header_mkl_h+set}" = set; then |
10005 |
< |
echo "$as_me:$LINENO: checking for mkl.h" >&5 |
10006 |
< |
echo $ECHO_N "checking for mkl.h... $ECHO_C" >&6 |
10007 |
< |
if test "${ac_cv_header_mkl_h+set}" = set; then |
10000 |
> |
if test "x$LEDA_LIBDIR" = "x"; then |
10001 |
> |
LEDA_LIBDIR="" |
10002 |
> |
fi |
10003 |
> |
|
10004 |
> |
if test "x$LEDA_RLIBDIR" = "x"; then |
10005 |
> |
LEDA_RLIBDIR="" |
10006 |
> |
fi |
10007 |
> |
|
10008 |
> |
if test "x$GMP_INCLDIR" = "x"; then |
10009 |
> |
GMP_INCLDIR="" |
10010 |
> |
fi |
10011 |
> |
|
10012 |
> |
if test "x$GMP_LIBDIR" = "x"; then |
10013 |
> |
GMP_LIBDIR="" |
10014 |
> |
fi |
10015 |
> |
|
10016 |
> |
if test "x$GMP_RLIBDIR" = "x"; then |
10017 |
> |
GMP_RLIBDIR="" |
10018 |
> |
fi |
10019 |
> |
|
10020 |
> |
echo "$as_me:$LINENO: result: CGAL_OS_COMPILER= $CGAL_OS_COMPILER" >&5 |
10021 |
> |
echo "${ECHO_T}CGAL_OS_COMPILER= $CGAL_OS_COMPILER" >&6 |
10022 |
> |
echo "$as_me:$LINENO: result: CGAL_INCLDIR= $CGAL_INCLDIR" >&5 |
10023 |
> |
echo "${ECHO_T}CGAL_INCLDIR= $CGAL_INCLDIR" >&6 |
10024 |
> |
echo "$as_me:$LINENO: result: CGAL_INCLCONFDIR= $CGAL_INCLCONFDIR" >&5 |
10025 |
> |
echo "${ECHO_T}CGAL_INCLCONFDIR= $CGAL_INCLCONFDIR" >&6 |
10026 |
> |
echo "$as_me:$LINENO: result: CGAL_LIBDIR= $CGAL_LIBDIR" >&5 |
10027 |
> |
echo "${ECHO_T}CGAL_LIBDIR= $CGAL_LIBDIR" >&6 |
10028 |
> |
echo "$as_me:$LINENO: result: CGAL_CXXFLAGS= $CGAL_CXXFLAGS" >&5 |
10029 |
> |
echo "${ECHO_T}CGAL_CXXFLAGS= $CGAL_CXXFLAGS" >&6 |
10030 |
> |
echo "$as_me:$LINENO: result: LEDA_INCLDIR= $LEDA_INCLDIR" >&5 |
10031 |
> |
echo "${ECHO_T}LEDA_INCLDIR= $LEDA_INCLDIR" >&6 |
10032 |
> |
echo "$as_me:$LINENO: result: LEDA_LIBDIR= $LEDA_LIBDIR" >&5 |
10033 |
> |
echo "${ECHO_T}LEDA_LIBDIR= $LEDA_LIBDIR" >&6 |
10034 |
> |
echo "$as_me:$LINENO: result: GMP_INCLDIR= $GMP_INCLDIR" >&5 |
10035 |
> |
echo "${ECHO_T}GMP_INCLDIR= $GMP_INCLDIR" >&6 |
10036 |
> |
echo "$as_me:$LINENO: result: GMP_LIBDIR= $GMP_LIBDIR" >&5 |
10037 |
> |
echo "${ECHO_T}GMP_LIBDIR= $GMP_LIBDIR" >&6 |
10038 |
> |
|
10039 |
> |
ac_ext=cc |
10040 |
> |
ac_cpp='$CXXCPP $CPPFLAGS' |
10041 |
> |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
10042 |
> |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
10043 |
> |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
10044 |
> |
|
10045 |
> |
save_CXXFLAGS="$CXXFLAGS" |
10046 |
> |
CXXFLAGS="$CXXFLAGS -I$CGAL_INCLDIR -I$CGAL_INCLCONFDIR" |
10047 |
> |
if test "${ac_cv_header_CGAL_Cartesian_h+set}" = set; then |
10048 |
> |
echo "$as_me:$LINENO: checking for CGAL/Cartesian.h" >&5 |
10049 |
> |
echo $ECHO_N "checking for CGAL/Cartesian.h... $ECHO_C" >&6 |
10050 |
> |
if test "${ac_cv_header_CGAL_Cartesian_h+set}" = set; then |
10051 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
10052 |
|
fi |
10053 |
< |
echo "$as_me:$LINENO: result: $ac_cv_header_mkl_h" >&5 |
10054 |
< |
echo "${ECHO_T}$ac_cv_header_mkl_h" >&6 |
10053 |
> |
echo "$as_me:$LINENO: result: $ac_cv_header_CGAL_Cartesian_h" >&5 |
10054 |
> |
echo "${ECHO_T}$ac_cv_header_CGAL_Cartesian_h" >&6 |
10055 |
|
else |
10056 |
|
# Is the header compilable? |
10057 |
< |
echo "$as_me:$LINENO: checking mkl.h usability" >&5 |
10058 |
< |
echo $ECHO_N "checking mkl.h usability... $ECHO_C" >&6 |
10057 |
> |
echo "$as_me:$LINENO: checking CGAL/Cartesian.h usability" >&5 |
10058 |
> |
echo $ECHO_N "checking CGAL/Cartesian.h usability... $ECHO_C" >&6 |
10059 |
|
cat >conftest.$ac_ext <<_ACEOF |
10060 |
|
/* confdefs.h. */ |
10061 |
|
_ACEOF |
10063 |
|
cat >>conftest.$ac_ext <<_ACEOF |
10064 |
|
/* end confdefs.h. */ |
10065 |
|
$ac_includes_default |
10066 |
< |
#include <mkl.h> |
10066 |
> |
#include <CGAL/Cartesian.h> |
10067 |
|
_ACEOF |
10068 |
|
rm -f conftest.$ac_objext |
10069 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
10074 |
|
cat conftest.err >&5 |
10075 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10076 |
|
(exit $ac_status); } && |
10077 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
10077 |
> |
{ ac_try='test -z "$ac_cxx_werror_flag" |
10078 |
|
|| test ! -s conftest.err' |
10079 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10080 |
|
(eval $ac_try) 2>&5 |
10099 |
|
echo "${ECHO_T}$ac_header_compiler" >&6 |
10100 |
|
|
10101 |
|
# Is the header present? |
10102 |
< |
echo "$as_me:$LINENO: checking mkl.h presence" >&5 |
10103 |
< |
echo $ECHO_N "checking mkl.h presence... $ECHO_C" >&6 |
10102 |
> |
echo "$as_me:$LINENO: checking CGAL/Cartesian.h presence" >&5 |
10103 |
> |
echo $ECHO_N "checking CGAL/Cartesian.h presence... $ECHO_C" >&6 |
10104 |
|
cat >conftest.$ac_ext <<_ACEOF |
10105 |
|
/* confdefs.h. */ |
10106 |
|
_ACEOF |
10107 |
|
cat confdefs.h >>conftest.$ac_ext |
10108 |
|
cat >>conftest.$ac_ext <<_ACEOF |
10109 |
|
/* end confdefs.h. */ |
10110 |
< |
#include <mkl.h> |
10110 |
> |
#include <CGAL/Cartesian.h> |
10111 |
|
_ACEOF |
10112 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
10113 |
|
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
10118 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10119 |
|
(exit $ac_status); } >/dev/null; then |
10120 |
|
if test -s conftest.err; then |
10121 |
< |
ac_cpp_err=$ac_c_preproc_warn_flag |
10122 |
< |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
10121 |
> |
ac_cpp_err=$ac_cxx_preproc_warn_flag |
10122 |
> |
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
10123 |
|
else |
10124 |
|
ac_cpp_err= |
10125 |
|
fi |
10139 |
|
echo "${ECHO_T}$ac_header_preproc" >&6 |
10140 |
|
|
10141 |
|
# So? What about this header? |
10142 |
< |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10142 |
> |
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
10143 |
|
yes:no: ) |
10144 |
< |
{ echo "$as_me:$LINENO: WARNING: mkl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
10145 |
< |
echo "$as_me: WARNING: mkl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
10146 |
< |
{ echo "$as_me:$LINENO: WARNING: mkl.h: proceeding with the compiler's result" >&5 |
10147 |
< |
echo "$as_me: WARNING: mkl.h: proceeding with the compiler's result" >&2;} |
10144 |
> |
{ echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
10145 |
> |
echo "$as_me: WARNING: CGAL/Cartesian.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
10146 |
> |
{ echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: proceeding with the compiler's result" >&5 |
10147 |
> |
echo "$as_me: WARNING: CGAL/Cartesian.h: proceeding with the compiler's result" >&2;} |
10148 |
|
ac_header_preproc=yes |
10149 |
|
;; |
10150 |
|
no:yes:* ) |
10151 |
< |
{ echo "$as_me:$LINENO: WARNING: mkl.h: present but cannot be compiled" >&5 |
10152 |
< |
echo "$as_me: WARNING: mkl.h: present but cannot be compiled" >&2;} |
10153 |
< |
{ echo "$as_me:$LINENO: WARNING: mkl.h: check for missing prerequisite headers?" >&5 |
10154 |
< |
echo "$as_me: WARNING: mkl.h: check for missing prerequisite headers?" >&2;} |
10155 |
< |
{ echo "$as_me:$LINENO: WARNING: mkl.h: see the Autoconf documentation" >&5 |
10156 |
< |
echo "$as_me: WARNING: mkl.h: see the Autoconf documentation" >&2;} |
10157 |
< |
{ echo "$as_me:$LINENO: WARNING: mkl.h: section \"Present But Cannot Be Compiled\"" >&5 |
10158 |
< |
echo "$as_me: WARNING: mkl.h: section \"Present But Cannot Be Compiled\"" >&2;} |
10159 |
< |
{ echo "$as_me:$LINENO: WARNING: mkl.h: proceeding with the preprocessor's result" >&5 |
10160 |
< |
echo "$as_me: WARNING: mkl.h: proceeding with the preprocessor's result" >&2;} |
10161 |
< |
{ echo "$as_me:$LINENO: WARNING: mkl.h: in the future, the compiler will take precedence" >&5 |
10162 |
< |
echo "$as_me: WARNING: mkl.h: in the future, the compiler will take precedence" >&2;} |
10151 |
> |
{ echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: present but cannot be compiled" >&5 |
10152 |
> |
echo "$as_me: WARNING: CGAL/Cartesian.h: present but cannot be compiled" >&2;} |
10153 |
> |
{ echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: check for missing prerequisite headers?" >&5 |
10154 |
> |
echo "$as_me: WARNING: CGAL/Cartesian.h: check for missing prerequisite headers?" >&2;} |
10155 |
> |
{ echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: see the Autoconf documentation" >&5 |
10156 |
> |
echo "$as_me: WARNING: CGAL/Cartesian.h: see the Autoconf documentation" >&2;} |
10157 |
> |
{ echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: section \"Present But Cannot Be Compiled\"" >&5 |
10158 |
> |
echo "$as_me: WARNING: CGAL/Cartesian.h: section \"Present But Cannot Be Compiled\"" >&2;} |
10159 |
> |
{ echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: proceeding with the preprocessor's result" >&5 |
10160 |
> |
echo "$as_me: WARNING: CGAL/Cartesian.h: proceeding with the preprocessor's result" >&2;} |
10161 |
> |
{ echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: in the future, the compiler will take precedence" >&5 |
10162 |
> |
echo "$as_me: WARNING: CGAL/Cartesian.h: in the future, the compiler will take precedence" >&2;} |
10163 |
|
( |
10164 |
|
cat <<\_ASBOX |
10165 |
|
## ------------------------------ ## |
10170 |
|
sed "s/^/$as_me: WARNING: /" >&2 |
10171 |
|
;; |
10172 |
|
esac |
10173 |
< |
echo "$as_me:$LINENO: checking for mkl.h" >&5 |
10174 |
< |
echo $ECHO_N "checking for mkl.h... $ECHO_C" >&6 |
10175 |
< |
if test "${ac_cv_header_mkl_h+set}" = set; then |
10173 |
> |
echo "$as_me:$LINENO: checking for CGAL/Cartesian.h" >&5 |
10174 |
> |
echo $ECHO_N "checking for CGAL/Cartesian.h... $ECHO_C" >&6 |
10175 |
> |
if test "${ac_cv_header_CGAL_Cartesian_h+set}" = set; then |
10176 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
10177 |
|
else |
10178 |
< |
ac_cv_header_mkl_h=$ac_header_preproc |
10178 |
> |
ac_cv_header_CGAL_Cartesian_h=$ac_header_preproc |
10179 |
|
fi |
10180 |
< |
echo "$as_me:$LINENO: result: $ac_cv_header_mkl_h" >&5 |
10181 |
< |
echo "${ECHO_T}$ac_cv_header_mkl_h" >&6 |
10180 |
> |
echo "$as_me:$LINENO: result: $ac_cv_header_CGAL_Cartesian_h" >&5 |
10181 |
> |
echo "${ECHO_T}$ac_cv_header_CGAL_Cartesian_h" >&6 |
10182 |
|
|
10183 |
|
fi |
10184 |
< |
if test $ac_cv_header_mkl_h = yes; then |
10185 |
< |
|
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 |
10184 |
> |
if test $ac_cv_header_CGAL_Cartesian_h = yes; then |
10185 |
> |
cgal=yes |
10186 |
|
else |
10187 |
< |
ac_check_lib_save_LIBS=$LIBS |
10188 |
< |
LIBS="-lmkl $LIBS" |
10187 |
> |
cgal=no |
10188 |
> |
fi |
10189 |
> |
|
10190 |
> |
|
10191 |
> |
CXXFLAGS="$save_CXXFLAGS" |
10192 |
> |
|
10193 |
> |
if test "x$cgal" = xyes; then |
10194 |
> |
echo "$as_me:$LINENO: checking for CGAL version" >&5 |
10195 |
> |
echo $ECHO_N "checking for CGAL version... $ECHO_C" >&6 |
10196 |
> |
LOCATION=${CGAL_INCLDIR} |
10197 |
> |
LOCATION=${LOCATION:-/usr/include} |
10198 |
> |
if test -f $LOCATION/CGAL/version.h; then |
10199 |
> |
CGAL_VERSION=`grep '#define.*\<CGAL_VERSION\>.*' $LOCATION/CGAL/version.h | sed 's/[^0-9\.]*//g'` |
10200 |
> |
else |
10201 |
> |
CGAL_VERSION=`grep '#define.*\<CGAL_VERSION\>.*' $LOCATION/CGAL/config.h | sed 's/[^0-9\.]*//g'` |
10202 |
> |
fi |
10203 |
> |
if echo $CGAL_VERSION | grep -q "^[3456789]"; then |
10204 |
> |
echo "$as_me:$LINENO: result: ($CGAL_VERSION) yes" >&5 |
10205 |
> |
echo "${ECHO_T}($CGAL_VERSION) yes" >&6 |
10206 |
> |
else |
10207 |
> |
echo "$as_me:$LINENO: result: ($CGAL_VERSION) no" >&5 |
10208 |
> |
echo "${ECHO_T}($CGAL_VERSION) no" >&6 |
10209 |
> |
cgal=no |
10210 |
> |
fi |
10211 |
> |
fi |
10212 |
> |
|
10213 |
> |
if test "x$cgal" = xyes; then |
10214 |
> |
CGAL_LIBS="-lCGAL" |
10215 |
> |
echo "$as_me:$LINENO: checking whether CGAL uses LEDA" >&5 |
10216 |
> |
echo $ECHO_N "checking whether CGAL uses LEDA... $ECHO_C" >&6 |
10217 |
> |
if echo $CGAL_CXXFLAGS | grep -q -- -DCGAL_USE_LEDA; then |
10218 |
> |
CGAL_USES_LEDA=yes |
10219 |
> |
echo "$as_me:$LINENO: result: yes" >&5 |
10220 |
> |
echo "${ECHO_T}yes" >&6 |
10221 |
> |
CGAL_DEFINES="-DCGAL_USE_LEDA -DLEDA_PREFIX" |
10222 |
> |
else |
10223 |
> |
echo "$as_me:$LINENO: result: no" >&5 |
10224 |
> |
echo "${ECHO_T}no" >&6 |
10225 |
> |
CGAL_USES_LEDA=no |
10226 |
> |
fi |
10227 |
> |
|
10228 |
> |
echo "$as_me:$LINENO: checking whether CGAL uses GMP" >&5 |
10229 |
> |
echo $ECHO_N "checking whether CGAL uses GMP... $ECHO_C" >&6 |
10230 |
> |
if echo $CGAL_CXXFLAGS | grep -q -- -DCGAL_USE_GMP; then |
10231 |
> |
CGAL_USES_GMP=yes |
10232 |
> |
echo "$as_me:$LINENO: result: yes" >&5 |
10233 |
> |
echo "${ECHO_T}yes" >&6 |
10234 |
> |
CGAL_DEFINES="-DCGAL_USE_GMP $CGAL_DEFINES" |
10235 |
> |
else |
10236 |
> |
echo "$as_me:$LINENO: result: no" >&5 |
10237 |
> |
echo "${ECHO_T}no" >&6 |
10238 |
> |
CGAL_USES_GMP=no |
10239 |
> |
fi |
10240 |
> |
|
10241 |
> |
CGAL_LIBS="$CGAL_LIBS -lm" |
10242 |
> |
|
10243 |
> |
CGAL_CXXFLAGS="-ftemplate-depth-50" |
10244 |
> |
|
10245 |
> |
echo "$as_me:$LINENO: result: CGAL_USES_LEDA= $CGAL_USES_LEDA" >&5 |
10246 |
> |
echo "${ECHO_T}CGAL_USES_LEDA= $CGAL_USES_LEDA" >&6 |
10247 |
> |
echo "$as_me:$LINENO: result: CGAL_USES_GMP = $CGAL_USES_GMP" >&5 |
10248 |
> |
echo "${ECHO_T}CGAL_USES_GMP = $CGAL_USES_GMP" >&6 |
10249 |
> |
echo "$as_me:$LINENO: result: CGAL_INCLDIR = $CGAL_INCLDIR" >&5 |
10250 |
> |
echo "${ECHO_T}CGAL_INCLDIR = $CGAL_INCLDIR" >&6 |
10251 |
> |
echo "$as_me:$LINENO: result: CGAL_LIBDIR = $CGAL_LIBDIR" >&5 |
10252 |
> |
echo "${ECHO_T}CGAL_LIBDIR = $CGAL_LIBDIR" >&6 |
10253 |
> |
echo "$as_me:$LINENO: result: CGAL_DEFINES = $CGAL_DEFINES" >&5 |
10254 |
> |
echo "${ECHO_T}CGAL_DEFINES = $CGAL_DEFINES" >&6 |
10255 |
> |
echo "$as_me:$LINENO: result: CGAL_CXXFLAGS = $CGAL_CXXFLAGS" >&5 |
10256 |
> |
echo "${ECHO_T}CGAL_CXXFLAGS = $CGAL_CXXFLAGS" >&6 |
10257 |
> |
echo "$as_me:$LINENO: result: CGAL_LIBS = $CGAL_LIBS" >&5 |
10258 |
> |
echo "${ECHO_T}CGAL_LIBS = $CGAL_LIBS" >&6 |
10259 |
> |
fi |
10260 |
> |
|
10261 |
> |
if test "x$cgal" = xyes; then |
10262 |
> |
save_LIBS="$LIBS" |
10263 |
> |
LIBS="$LIBS -L$CGAL_LIBDIR" |
10264 |
> |
if test "x$CGAL_USES_LEDA" = xyes; then |
10265 |
> |
LIBS="-lL $LIBS -L$LEDA_LIBDIR" |
10266 |
> |
fi |
10267 |
> |
# if test "x$CGAL_USES_GMP" = xyes; then |
10268 |
> |
# LIBS="-lgmp $LIBS $GMP_LIBDIR" |
10269 |
> |
# fi |
10270 |
> |
echo "$as_me:$LINENO: checking for ::CGAL::Cartesian<int>::Point_2 in -lCGAL" >&5 |
10271 |
> |
echo $ECHO_N "checking for ::CGAL::Cartesian<int>::Point_2 in -lCGAL... $ECHO_C" >&6 |
10272 |
> |
save_CXXFLAGS_CHECK_CXX_LIB="$CXXFLAGS" |
10273 |
> |
CXXFLAGS="$CXXFLAGS -I$CGAL_INCLDIR -I$CGAL_INCLCONFDIR" |
10274 |
> |
save_LIBS_CHECK_CXX_LIB="$LIBS" |
10275 |
> |
LIBS="-lCGAL $LIBS" |
10276 |
|
cat >conftest.$ac_ext <<_ACEOF |
10277 |
|
/* confdefs.h. */ |
10278 |
|
_ACEOF |
10279 |
|
cat confdefs.h >>conftest.$ac_ext |
10280 |
|
cat >>conftest.$ac_ext <<_ACEOF |
10281 |
|
/* end confdefs.h. */ |
10282 |
< |
|
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 (); |
10282 |
> |
#include <CGAL/Cartesian.h> |
10283 |
|
int |
10284 |
|
main () |
10285 |
|
{ |
10286 |
< |
vslNewStream (); |
10286 |
> |
::CGAL::Cartesian<int>::Point_2 P |
10287 |
|
; |
10288 |
|
return 0; |
10289 |
|
} |
10297 |
|
cat conftest.err >&5 |
10298 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10299 |
|
(exit $ac_status); } && |
10300 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
10300 |
> |
{ ac_try='test -z "$ac_cxx_werror_flag" |
10301 |
|
|| test ! -s conftest.err' |
10302 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10303 |
|
(eval $ac_try) 2>&5 |
10310 |
|
ac_status=$? |
10311 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10312 |
|
(exit $ac_status); }; }; then |
10313 |
< |
ac_cv_lib_mkl_vslNewStream=yes |
10313 |
> |
echo "$as_me:$LINENO: result: yes" >&5 |
10314 |
> |
echo "${ECHO_T}yes" >&6 |
10315 |
> |
cgal=yes |
10316 |
|
else |
10317 |
|
echo "$as_me: failed program was:" >&5 |
10318 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
10319 |
|
|
10320 |
< |
ac_cv_lib_mkl_vslNewStream=no |
10320 |
> |
echo "$as_me:$LINENO: result: no" >&5 |
10321 |
> |
echo "${ECHO_T}no" >&6 |
10322 |
> |
cgal=no |
10323 |
|
fi |
10324 |
|
rm -f conftest.err conftest.$ac_objext \ |
10325 |
|
conftest$ac_exeext conftest.$ac_ext |
10326 |
< |
LIBS=$ac_check_lib_save_LIBS |
10327 |
< |
fi |
10328 |
< |
echo "$as_me:$LINENO: result: $ac_cv_lib_mkl_vslNewStream" >&5 |
10329 |
< |
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 |
10326 |
> |
CXXFLAGS="$save_CXXFLAGS_CHECK_CXX_LIB" |
10327 |
> |
LIBS="$save_LIBS_CHECK_CXX_LIB" |
10328 |
> |
LIBS="$save_LIBS" |
10329 |
> |
fi |
10330 |
|
|
10331 |
< |
|
7482 |
< |
else |
7483 |
< |
MKL_INC="-I${mkldir}/include" |
7484 |
< |
fi |
7485 |
< |
|
7486 |
< |
|
7487 |
< |
CPPFLAGS=$ac_save_CPPFLAGS |
7488 |
< |
LDFLAGS=$ac_save_LDFLAGS |
10331 |
> |
fi |
10332 |
|
ac_ext=c |
10333 |
|
ac_cpp='$CPP $CPPFLAGS' |
10334 |
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
10336 |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
10337 |
|
|
10338 |
|
|
10339 |
< |
if test x_$HAVE_MKL != x_yes; then |
10340 |
< |
{ { echo "$as_me:$LINENO: error: Can't build with MKL" >&5 |
10341 |
< |
echo "$as_me: error: Can't build with MKL" >&2;} |
10342 |
< |
{ (exit 1); exit 1; }; } |
10339 |
> |
fi |
10340 |
> |
|
10341 |
> |
if test "x$cgal" = xyes; then |
10342 |
> |
USE_CGAL=yes |
10343 |
> |
|
10344 |
> |
cat >>confdefs.h <<\_ACEOF |
10345 |
> |
#define HAVE_CGAL 1 |
10346 |
> |
_ACEOF |
10347 |
> |
|
10348 |
> |
|
10349 |
> |
cat >>confdefs.h <<_ACEOF |
10350 |
> |
#define CGAL_VERSION $CGAL_VERSION |
10351 |
> |
_ACEOF |
10352 |
> |
|
10353 |
> |
if ! echo $CGAL_VERSION | grep -q "^3.0"; then |
10354 |
> |
{ echo "$as_me:$LINENO: WARNING: *****************************************************" >&5 |
10355 |
> |
echo "$as_me: WARNING: *****************************************************" >&2;} |
10356 |
> |
{ echo "$as_me:$LINENO: WARNING: *** Warning: Your CGAL version is newer than the ***" >&5 |
10357 |
> |
echo "$as_me: WARNING: *** Warning: Your CGAL version is newer than the ***" >&2;} |
10358 |
> |
{ echo "$as_me:$LINENO: WARNING: *** supported versions. It may still work though. ***" >&5 |
10359 |
> |
echo "$as_me: WARNING: *** supported versions. It may still work though. ***" >&2;} |
10360 |
> |
{ echo "$as_me:$LINENO: WARNING: *****************************************************" >&5 |
10361 |
> |
echo "$as_me: WARNING: *****************************************************" >&2;} |
10362 |
|
fi |
10363 |
+ |
else |
10364 |
+ |
if test "x$cgal_makefile" != xno; then |
10365 |
+ |
echo "$as_me:$LINENO: result: No CGAL support. These are not the droids you want." >&5 |
10366 |
+ |
echo "${ECHO_T}No CGAL support. These are not the droids you want." >&6 |
10367 |
+ |
fi |
10368 |
+ |
CGAL_INCLDIR= |
10369 |
+ |
CGAL_LIBDIR= |
10370 |
+ |
CGAL_RLIBDIR= |
10371 |
+ |
CGAL_DEFINES= |
10372 |
+ |
CGAL_CXXFLAGS= |
10373 |
+ |
CGAL_LIBS= |
10374 |
+ |
fi |
10375 |
|
|
10376 |
|
|
10377 |
+ |
CGAL_INC_DIR="${CGAL_INCLDIR} ${CGAL_INCLCONFDIR}" |
10378 |
|
|
10379 |
+ |
CGAL_LIB_DIR=${CGAL_LIBDIR} |
10380 |
|
|
10381 |
+ |
CGAL_RLIB_DIR=${CGAL_RLIBDIR} |
10382 |
|
|
10383 |
+ |
|
10384 |
+ |
|
10385 |
+ |
|
10386 |
+ |
|
10387 |
+ |
|
10388 |
+ |
|
10389 |
+ |
# Check whether --enable-doxygen or --disable-doxygen was given. |
10390 |
+ |
if test "${enable_doxygen+set}" = set; then |
10391 |
+ |
enableval="$enable_doxygen" |
10392 |
+ |
|
10393 |
+ |
fi; |
10394 |
+ |
# Check whether --enable-dot or --disable-dot was given. |
10395 |
+ |
if test "${enable_dot+set}" = set; then |
10396 |
+ |
enableval="$enable_dot" |
10397 |
+ |
|
10398 |
+ |
fi; |
10399 |
+ |
# Check whether --enable-html-docs or --disable-html-docs was given. |
10400 |
+ |
if test "${enable_html_docs+set}" = set; then |
10401 |
+ |
enableval="$enable_html_docs" |
10402 |
+ |
|
10403 |
|
else |
10404 |
+ |
enable_html_docs=yes |
10405 |
+ |
fi; |
10406 |
+ |
# Check whether --enable-latex-docs or --disable-latex-docs was given. |
10407 |
+ |
if test "${enable_latex_docs+set}" = set; then |
10408 |
+ |
enableval="$enable_latex_docs" |
10409 |
|
|
10410 |
< |
echo "$as_me:$LINENO: result: no" >&5 |
10410 |
> |
else |
10411 |
> |
enable_latex_docs=no |
10412 |
> |
fi; |
10413 |
> |
if test "x$enable_doxygen" = xno; then |
10414 |
> |
enable_doc=no |
10415 |
> |
else |
10416 |
> |
# Extract the first word of "doxygen", so it can be a program name with args. |
10417 |
> |
set dummy doxygen; ac_word=$2 |
10418 |
> |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10419 |
> |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
10420 |
> |
if test "${ac_cv_path_DOXYGEN+set}" = set; then |
10421 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
10422 |
> |
else |
10423 |
> |
case $DOXYGEN in |
10424 |
> |
[\\/]* | ?:[\\/]*) |
10425 |
> |
ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. |
10426 |
> |
;; |
10427 |
> |
*) |
10428 |
> |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10429 |
> |
for as_dir in $PATH |
10430 |
> |
do |
10431 |
> |
IFS=$as_save_IFS |
10432 |
> |
test -z "$as_dir" && as_dir=. |
10433 |
> |
for ac_exec_ext in '' $ac_executable_extensions; do |
10434 |
> |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
10435 |
> |
ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" |
10436 |
> |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
10437 |
> |
break 2 |
10438 |
> |
fi |
10439 |
> |
done |
10440 |
> |
done |
10441 |
> |
|
10442 |
> |
;; |
10443 |
> |
esac |
10444 |
> |
fi |
10445 |
> |
DOXYGEN=$ac_cv_path_DOXYGEN |
10446 |
> |
|
10447 |
> |
if test -n "$DOXYGEN"; then |
10448 |
> |
echo "$as_me:$LINENO: result: $DOXYGEN" >&5 |
10449 |
> |
echo "${ECHO_T}$DOXYGEN" >&6 |
10450 |
> |
else |
10451 |
> |
echo "$as_me:$LINENO: result: no" >&5 |
10452 |
|
echo "${ECHO_T}no" >&6 |
10453 |
+ |
fi |
10454 |
|
|
10455 |
< |
fi; |
10455 |
> |
if test "x$DOXYGEN" = x; then |
10456 |
> |
if test "x$enable_doxygen" = xyes; then |
10457 |
> |
{ { echo "$as_me:$LINENO: error: could not find doxygen" >&5 |
10458 |
> |
echo "$as_me: error: could not find doxygen" >&2;} |
10459 |
> |
{ (exit 1); exit 1; }; } |
10460 |
> |
fi |
10461 |
> |
enable_doc=no |
10462 |
> |
else |
10463 |
> |
enable_doc=yes |
10464 |
> |
# Extract the first word of "dot", so it can be a program name with args. |
10465 |
> |
set dummy dot; ac_word=$2 |
10466 |
> |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10467 |
> |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
10468 |
> |
if test "${ac_cv_path_DOT+set}" = set; then |
10469 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
10470 |
> |
else |
10471 |
> |
case $DOT in |
10472 |
> |
[\\/]* | ?:[\\/]*) |
10473 |
> |
ac_cv_path_DOT="$DOT" # Let the user override the test with a path. |
10474 |
> |
;; |
10475 |
> |
*) |
10476 |
> |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10477 |
> |
for as_dir in $PATH |
10478 |
> |
do |
10479 |
> |
IFS=$as_save_IFS |
10480 |
> |
test -z "$as_dir" && as_dir=. |
10481 |
> |
for ac_exec_ext in '' $ac_executable_extensions; do |
10482 |
> |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
10483 |
> |
ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" |
10484 |
> |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
10485 |
> |
break 2 |
10486 |
> |
fi |
10487 |
> |
done |
10488 |
> |
done |
10489 |
|
|
10490 |
+ |
;; |
10491 |
+ |
esac |
10492 |
+ |
fi |
10493 |
+ |
DOT=$ac_cv_path_DOT |
10494 |
|
|
10495 |
+ |
if test -n "$DOT"; then |
10496 |
+ |
echo "$as_me:$LINENO: result: $DOT" >&5 |
10497 |
+ |
echo "${ECHO_T}$DOT" >&6 |
10498 |
+ |
else |
10499 |
+ |
echo "$as_me:$LINENO: result: no" >&5 |
10500 |
+ |
echo "${ECHO_T}no" >&6 |
10501 |
+ |
fi |
10502 |
|
|
10503 |
+ |
fi |
10504 |
+ |
fi |
10505 |
|
|
10506 |
+ |
if test "x$enable_doc" = xyes; then |
10507 |
+ |
DOC=1 |
10508 |
+ |
else |
10509 |
+ |
DOC=0 |
10510 |
+ |
fi |
10511 |
|
|
10512 |
+ |
|
10513 |
+ |
if test x$DOT = x; then |
10514 |
+ |
if test "x$enable_dot" = xyes; then |
10515 |
+ |
{ { echo "$as_me:$LINENO: error: could not find dot" >&5 |
10516 |
+ |
echo "$as_me: error: could not find dot" >&2;} |
10517 |
+ |
{ (exit 1); exit 1; }; } |
10518 |
+ |
fi |
10519 |
+ |
enable_dot=no |
10520 |
+ |
else |
10521 |
+ |
enable_dot=yes |
10522 |
+ |
fi |
10523 |
+ |
|
10524 |
+ |
|
10525 |
+ |
|
10526 |
+ |
|
10527 |
+ |
|
10528 |
+ |
|
10529 |
+ |
|
10530 |
|
OBJEXT=".$OBJEXT" |
10531 |
|
|
10532 |
|
OOPSE=oopse |
10550 |
|
|
10551 |
|
MKINSTALLDIRS=`pwd`/ac-tools/"shtool mkdir -p -f" |
10552 |
|
|
7540 |
– |
SUBDIRS="libBASS libmdtools src forceFields samples utils utils/sysbuilder third-party " |
7541 |
– |
|
10553 |
|
CFLAGS=${CFLAGS-""} |
10554 |
|
CXXFLAGS=${CXXFLAGS-""} |
10555 |
|
CPPFLAGS=${CPPFLAGS-""} |
10583 |
|
|
10584 |
|
|
10585 |
|
|
7575 |
– |
ac_config_headers="$ac_config_headers libBASS/config.h libmdtools/config.h" |
10586 |
|
|
10587 |
< |
ac_config_files="$ac_config_files Makefile libBASS/Makefile libmdtools/Makefile src/Makefile utils/Makefile utils/sysbuilder/Makefile forceFields/Makefile samples/Makefile third-party/Makefile samples/alkane/Makefile samples/argon/Makefile samples/lipid/Makefile samples/minimizer/Makefile samples/metals/Makefile samples/water/Makefile samples/water/dimer/Makefile samples/water/spce/Makefile samples/water/ssd/Makefile samples/water/ssde/Makefile samples/water/tip4p/Makefile samples/water/tip3p_ice/Makefile samples/zcons/Makefile" |
10587 |
> |
ac_config_headers="$ac_config_headers src/config.h" |
10588 |
> |
|
10589 |
> |
ac_config_files="$ac_config_files make/Makefile src/utils/Makefile src/applications/nanoRodBuilder/Makefile scripts/filepp" |
10590 |
|
|
10591 |
|
|
10592 |
|
cat >confcache <<\_ACEOF |
10951 |
|
} >&5 |
10952 |
|
cat >&5 <<_CSEOF |
10953 |
|
|
10954 |
< |
This file was extended by OOPSE $as_me 1.0, which was |
10954 |
> |
This file was extended by OOPSE $as_me 2.0, which was |
10955 |
|
generated by GNU Autoconf 2.59. Invocation command line was |
10956 |
|
|
10957 |
|
CONFIG_FILES = $CONFIG_FILES |
11014 |
|
|
11015 |
|
cat >>$CONFIG_STATUS <<_ACEOF |
11016 |
|
ac_cs_version="\\ |
11017 |
< |
OOPSE config.status 1.0 |
11017 |
> |
OOPSE config.status 2.0 |
11018 |
|
configured by $0, generated by GNU Autoconf 2.59, |
11019 |
|
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
11020 |
|
|
11117 |
|
do |
11118 |
|
case "$ac_config_target" in |
11119 |
|
# Handling of arguments. |
11120 |
< |
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
11121 |
< |
"libBASS/Makefile" ) CONFIG_FILES="$CONFIG_FILES libBASS/Makefile" ;; |
11122 |
< |
"libmdtools/Makefile" ) CONFIG_FILES="$CONFIG_FILES libmdtools/Makefile" ;; |
11123 |
< |
"src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
11124 |
< |
"utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;; |
11125 |
< |
"utils/sysbuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/sysbuilder/Makefile" ;; |
8114 |
< |
"forceFields/Makefile" ) CONFIG_FILES="$CONFIG_FILES forceFields/Makefile" ;; |
8115 |
< |
"samples/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/Makefile" ;; |
8116 |
< |
"third-party/Makefile" ) CONFIG_FILES="$CONFIG_FILES third-party/Makefile" ;; |
8117 |
< |
"samples/alkane/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/alkane/Makefile" ;; |
8118 |
< |
"samples/argon/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/argon/Makefile" ;; |
8119 |
< |
"samples/lipid/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/lipid/Makefile" ;; |
8120 |
< |
"samples/minimizer/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/minimizer/Makefile" ;; |
8121 |
< |
"samples/metals/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/metals/Makefile" ;; |
8122 |
< |
"samples/water/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/water/Makefile" ;; |
8123 |
< |
"samples/water/dimer/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/water/dimer/Makefile" ;; |
8124 |
< |
"samples/water/spce/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/water/spce/Makefile" ;; |
8125 |
< |
"samples/water/ssd/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/water/ssd/Makefile" ;; |
8126 |
< |
"samples/water/ssde/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/water/ssde/Makefile" ;; |
8127 |
< |
"samples/water/tip4p/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/water/tip4p/Makefile" ;; |
8128 |
< |
"samples/water/tip3p_ice/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/water/tip3p_ice/Makefile" ;; |
8129 |
< |
"samples/zcons/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/zcons/Makefile" ;; |
8130 |
< |
"utils/getopt.h" ) CONFIG_LINKS="$CONFIG_LINKS utils/getopt.h:utils/gnugetopt.h" ;; |
8131 |
< |
"libBASS/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS libBASS/config.h" ;; |
8132 |
< |
"libmdtools/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS libmdtools/config.h" ;; |
11120 |
> |
"make/Makefile" ) CONFIG_FILES="$CONFIG_FILES make/Makefile" ;; |
11121 |
> |
"src/utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/Makefile" ;; |
11122 |
> |
"src/applications/nanoRodBuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/applications/nanoRodBuilder/Makefile" ;; |
11123 |
> |
"scripts/filepp" ) CONFIG_FILES="$CONFIG_FILES scripts/filepp" ;; |
11124 |
> |
"src/getopt.h" ) CONFIG_LINKS="$CONFIG_LINKS src/getopt.h:src/utils/gnugetopt.h" ;; |
11125 |
> |
"src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; |
11126 |
|
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
11127 |
|
echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
11128 |
|
{ (exit 1); exit 1; }; };; |
11228 |
|
s,@CXX@,$CXX,;t t |
11229 |
|
s,@CXXFLAGS@,$CXXFLAGS,;t t |
11230 |
|
s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
11231 |
+ |
s,@CPP@,$CPP,;t t |
11232 |
+ |
s,@EGREP@,$EGREP,;t t |
11233 |
|
s,@OOPSE_TEMPLATE_FLAGS@,$OOPSE_TEMPLATE_FLAGS,;t t |
11234 |
|
s,@EXTRA_CC_FLAG@,$EXTRA_CC_FLAG,;t t |
11235 |
|
s,@F90@,$F90,;t t |
11244 |
|
s,@F90_WORK_FILES_ARG@,$F90_WORK_FILES_ARG,;t t |
11245 |
|
s,@MODDIRFLAG@,$MODDIRFLAG,;t t |
11246 |
|
s,@F90MODINCSPEC@,$F90MODINCSPEC,;t t |
11247 |
< |
s,@CPP@,$CPP,;t t |
11248 |
< |
s,@EGREP@,$EGREP,;t t |
11247 |
> |
s,@F90_MODULE_NAMES@,$F90_MODULE_NAMES,;t t |
11248 |
> |
s,@CXXCPP@,$CXXCPP,;t t |
11249 |
|
s,@LIBOBJS@,$LIBOBJS,;t t |
11250 |
|
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
11251 |
|
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
11258 |
|
s,@LEX@,$LEX,;t t |
11259 |
|
s,@LEXLIB@,$LEXLIB,;t t |
11260 |
|
s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t |
11261 |
+ |
s,@PERLINTERP@,$PERLINTERP,;t t |
11262 |
+ |
s,@PERL_SHEBANG@,$PERL_SHEBANG,;t t |
11263 |
|
s,@AR@,$AR,;t t |
11264 |
+ |
s,@PS@,$PS,;t t |
11265 |
|
s,@MPI_LIB_DIR@,$MPI_LIB_DIR,;t t |
11266 |
|
s,@MPI_INC_DIR@,$MPI_INC_DIR,;t t |
11267 |
|
s,@MPI_F90_INC@,$MPI_F90_INC,;t t |
11268 |
|
s,@MPI_LIB@,$MPI_LIB,;t t |
11269 |
|
s,@MPI_F90_LIB@,$MPI_F90_LIB,;t t |
11270 |
|
s,@USE_MPI@,$USE_MPI,;t t |
11271 |
< |
s,@SPRNG_LIB_DIR@,$SPRNG_LIB_DIR,;t t |
11272 |
< |
s,@SPRNG_INC_DIR@,$SPRNG_INC_DIR,;t t |
11273 |
< |
s,@SPRNG_LIB@,$SPRNG_LIB,;t t |
11274 |
< |
s,@USE_SPRNG@,$USE_SPRNG,;t t |
11275 |
< |
s,@MKL_LIBDIR@,$MKL_LIBDIR,;t t |
11276 |
< |
s,@MKL_LIB@,$MKL_LIB,;t t |
11277 |
< |
s,@MKL_INC@,$MKL_INC,;t t |
11278 |
< |
s,@HAVE_MKL@,$HAVE_MKL,;t t |
11271 |
> |
s,@USE_CGAL@,$USE_CGAL,;t t |
11272 |
> |
s,@CGAL_INC_DIR@,$CGAL_INC_DIR,;t t |
11273 |
> |
s,@CGAL_LIB_DIR@,$CGAL_LIB_DIR,;t t |
11274 |
> |
s,@CGAL_RLIB_DIR@,$CGAL_RLIB_DIR,;t t |
11275 |
> |
s,@CGAL_DEFINES@,$CGAL_DEFINES,;t t |
11276 |
> |
s,@CGAL_CXXFLAGS@,$CGAL_CXXFLAGS,;t t |
11277 |
> |
s,@CGAL_LIBS@,$CGAL_LIBS,;t t |
11278 |
> |
s,@DOXYGEN@,$DOXYGEN,;t t |
11279 |
> |
s,@DOT@,$DOT,;t t |
11280 |
> |
s,@DOC@,$DOC,;t t |
11281 |
> |
s,@enable_dot@,$enable_dot,;t t |
11282 |
> |
s,@enable_html_docs@,$enable_html_docs,;t t |
11283 |
> |
s,@enable_latex_docs@,$enable_latex_docs,;t t |
11284 |
|
s,@BATEXT@,$BATEXT,;t t |
11285 |
|
s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t |
11286 |
|
s,@OOPSE@,$OOPSE,;t t |
11524 |
|
rm -f $tmp/out |
11525 |
|
fi |
11526 |
|
|
11527 |
+ |
# Run the commands associated with the file. |
11528 |
+ |
case $ac_file in |
11529 |
+ |
make/Makefile ) chmod 0755 scripts/* ;; |
11530 |
+ |
src/utils/Makefile ) chmod 0755 scripts/* ;; |
11531 |
+ |
src/applications/nanoRodBuilder/Makefile ) chmod 0755 scripts/* ;; |
11532 |
+ |
scripts/filepp ) chmod 0755 scripts/* ;; |
11533 |
+ |
esac |
11534 |
|
done |
11535 |
|
_ACEOF |
11536 |
|
cat >>$CONFIG_STATUS <<\_ACEOF |