ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/trunk/configure
(Generate patch)

Comparing trunk/configure (file contents):
Revision 1396 by gezelter, Sat Dec 5 02:57:05 2009 UTC vs.
Revision 1487 by gezelter, Mon Aug 2 14:22:55 2010 UTC

# Line 613 | Line 613 | OPENBABEL_INC_DIR
613   OPENBABEL_LIB
614   OPENBABEL_LIB_DIR
615   OPENBABEL_INC_DIR
616 CXXCPP
616   USE_QHULL
617   QHULL
618   QHULL_LIB_DIR
619   QHULL_INC_DIR
620 + CXXCPP
621   FFTW_LIBS
622   FFTW_LIB_DIR
623   FFTW_INC_DIR
# Line 653 | Line 653 | MPICXX
653   MPICC
654   MPILIBS
655   MPICXX
656 + LIBDL
657   ac_ct_FC
658   FCFLAGS
659   FC
# Line 4099 | Line 4100 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4100   ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4101  
4102  
4103 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
4104 + $as_echo_n "checking for dlopen in -lc... " >&6; }
4105 + if test "${ac_cv_lib_c_dlopen+set}" = set; then :
4106 +  $as_echo_n "(cached) " >&6
4107 + else
4108 +  ac_check_lib_save_LIBS=$LIBS
4109 + LIBS="-lc  $LIBS"
4110 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4111 + /* end confdefs.h.  */
4112  
4113 + /* Override any GCC internal prototype to avoid an error.
4114 +   Use char because int might match the return type of a GCC
4115 +   builtin and then its argument prototype would still apply.  */
4116 + #ifdef __cplusplus
4117 + extern "C"
4118 + #endif
4119 + char dlopen ();
4120 + int
4121 + main ()
4122 + {
4123 + return dlopen ();
4124 +  ;
4125 +  return 0;
4126 + }
4127 + _ACEOF
4128 + if ac_fn_cxx_try_link "$LINENO"; then :
4129 +  ac_cv_lib_c_dlopen=yes
4130 + else
4131 +  ac_cv_lib_c_dlopen=no
4132 + fi
4133 + rm -f core conftest.err conftest.$ac_objext \
4134 +    conftest$ac_exeext conftest.$ac_ext
4135 + LIBS=$ac_check_lib_save_LIBS
4136 + fi
4137 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
4138 + $as_echo "$ac_cv_lib_c_dlopen" >&6; }
4139 + if test "x$ac_cv_lib_c_dlopen" = x""yes; then :
4140 +  LIBDL=""
4141 + else
4142 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
4143 + $as_echo_n "checking for dlopen in -ldl... " >&6; }
4144 + if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
4145 +  $as_echo_n "(cached) " >&6
4146 + else
4147 +  ac_check_lib_save_LIBS=$LIBS
4148 + LIBS="-ldl  $LIBS"
4149 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4150 + /* end confdefs.h.  */
4151 +
4152 + /* Override any GCC internal prototype to avoid an error.
4153 +   Use char because int might match the return type of a GCC
4154 +   builtin and then its argument prototype would still apply.  */
4155 + #ifdef __cplusplus
4156 + extern "C"
4157 + #endif
4158 + char dlopen ();
4159 + int
4160 + main ()
4161 + {
4162 + return dlopen ();
4163 +  ;
4164 +  return 0;
4165 + }
4166 + _ACEOF
4167 + if ac_fn_cxx_try_link "$LINENO"; then :
4168 +  ac_cv_lib_dl_dlopen=yes
4169 + else
4170 +  ac_cv_lib_dl_dlopen=no
4171 + fi
4172 + rm -f core conftest.err conftest.$ac_objext \
4173 +    conftest$ac_exeext conftest.$ac_ext
4174 + LIBS=$ac_check_lib_save_LIBS
4175 + fi
4176 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
4177 + $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
4178 + if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
4179 +  LIBDL="-ldl"
4180 + fi
4181 +
4182 + fi
4183 +
4184 +
4185 +
4186  
4187  
4188  
# Line 7680 | Line 7763 | fi
7763    fi
7764   fi
7765  
7766 + ac_ext=cpp
7767 + ac_cpp='$CXXCPP $CPPFLAGS'
7768 + ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7769 + ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7770 + ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7771 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
7772 + $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
7773 + if test -z "$CXXCPP"; then
7774 +  if test "${ac_cv_prog_CXXCPP+set}" = set; then :
7775 +  $as_echo_n "(cached) " >&6
7776 + else
7777 +      # Double quotes because CXXCPP needs to be expanded
7778 +    for CXXCPP in "$CXX -E" "/lib/cpp"
7779 +    do
7780 +      ac_preproc_ok=false
7781 + for ac_cxx_preproc_warn_flag in '' yes
7782 + do
7783 +  # Use a header file that comes with gcc, so configuring glibc
7784 +  # with a fresh cross-compiler works.
7785 +  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7786 +  # <limits.h> exists even on freestanding compilers.
7787 +  # On the NeXT, cc -E runs the code through the compiler's parser,
7788 +  # not just through cpp. "Syntax error" is here to catch this case.
7789 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7790 + /* end confdefs.h.  */
7791 + #ifdef __STDC__
7792 + # include <limits.h>
7793 + #else
7794 + # include <assert.h>
7795 + #endif
7796 +                     Syntax error
7797 + _ACEOF
7798 + if ac_fn_cxx_try_cpp "$LINENO"; then :
7799 +
7800 + else
7801 +  # Broken: fails on valid input.
7802 + continue
7803 + fi
7804 + rm -f conftest.err conftest.$ac_ext
7805 +
7806 +  # OK, works on sane cases.  Now check whether nonexistent headers
7807 +  # can be detected and how.
7808 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7809 + /* end confdefs.h.  */
7810 + #include <ac_nonexistent.h>
7811 + _ACEOF
7812 + if ac_fn_cxx_try_cpp "$LINENO"; then :
7813 +  # Broken: success on invalid input.
7814 + continue
7815 + else
7816 +  # Passes both tests.
7817 + ac_preproc_ok=:
7818 + break
7819 + fi
7820 + rm -f conftest.err conftest.$ac_ext
7821 +
7822 + done
7823 + # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7824 + rm -f conftest.err conftest.$ac_ext
7825 + if $ac_preproc_ok; then :
7826 +  break
7827 + fi
7828 +
7829 +    done
7830 +    ac_cv_prog_CXXCPP=$CXXCPP
7831 +
7832 + fi
7833 +  CXXCPP=$ac_cv_prog_CXXCPP
7834 + else
7835 +  ac_cv_prog_CXXCPP=$CXXCPP
7836 + fi
7837 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
7838 + $as_echo "$CXXCPP" >&6; }
7839 + ac_preproc_ok=false
7840 + for ac_cxx_preproc_warn_flag in '' yes
7841 + do
7842 +  # Use a header file that comes with gcc, so configuring glibc
7843 +  # with a fresh cross-compiler works.
7844 +  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7845 +  # <limits.h> exists even on freestanding compilers.
7846 +  # On the NeXT, cc -E runs the code through the compiler's parser,
7847 +  # not just through cpp. "Syntax error" is here to catch this case.
7848 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7849 + /* end confdefs.h.  */
7850 + #ifdef __STDC__
7851 + # include <limits.h>
7852 + #else
7853 + # include <assert.h>
7854 + #endif
7855 +                     Syntax error
7856 + _ACEOF
7857 + if ac_fn_cxx_try_cpp "$LINENO"; then :
7858 +
7859 + else
7860 +  # Broken: fails on valid input.
7861 + continue
7862 + fi
7863 + rm -f conftest.err conftest.$ac_ext
7864 +
7865 +  # OK, works on sane cases.  Now check whether nonexistent headers
7866 +  # can be detected and how.
7867 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7868 + /* end confdefs.h.  */
7869 + #include <ac_nonexistent.h>
7870 + _ACEOF
7871 + if ac_fn_cxx_try_cpp "$LINENO"; then :
7872 +  # Broken: success on invalid input.
7873 + continue
7874 + else
7875 +  # Passes both tests.
7876 + ac_preproc_ok=:
7877 + break
7878 + fi
7879 + rm -f conftest.err conftest.$ac_ext
7880 +
7881 + done
7882 + # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7883 + rm -f conftest.err conftest.$ac_ext
7884 + if $ac_preproc_ok; then :
7885 +
7886 + else
7887 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7888 + $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7889 + as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
7890 + See \`config.log' for more details." "$LINENO" 5; }
7891 + fi
7892 +
7893 + ac_ext=cpp
7894 + ac_cpp='$CXXCPP $CPPFLAGS'
7895 + ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7896 + ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7897 + ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7898 +
7899 +
7900   #
7901   # Handle user hints
7902   #
# Line 7716 | Line 7933 | $as_echo "$as_me: Checking for qhull in ${QHULL_HOME}"
7933          { $as_echo "$as_me:${as_lineno-$LINENO}: Checking for qhull in ${QHULL_HOME}" >&5
7934   $as_echo "$as_me: Checking for qhull in ${QHULL_HOME}" >&6;}
7935  
7936 <        ac_ext=c
7937 < ac_cpp='$CPP $CPPFLAGS'
7938 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7939 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7940 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
7936 >        ac_ext=cpp
7937 > ac_cpp='$CXXCPP $CPPFLAGS'
7938 > ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7939 > ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7940 > ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7941  
7942          QHULL_OLD_LDFLAGS=$LDFLAGS
7943 <        QHULL_OLD_CFLAGS=$CFLAGS
7943 >        QHULL_OLD_CXXFLAGS=$CXXFLAGS
7944          QHULL_OLD_CPPFLAGS=$CPPFLAGS
7945          LDFLAGS="$LDFLAGS -L${QHULL_HOME}/lib"
7946 <        CFLAGS="$CFLAGS -I${QHULL_HOME}/include"
7946 >        CXXFLAGS="$CXXFLAGS -I${QHULL_HOME}/include"
7947          CPPFLAGS="$CPPFLAGS -I${QHULL_HOME}/include"
7948 <        ac_fn_c_check_header_mongrel "$LINENO" "qhull/qhull.h" "ac_cv_header_qhull_qhull_h" "$ac_includes_default"
7948 >        ac_fn_cxx_check_header_mongrel "$LINENO" "qhull/qhull.h" "ac_cv_header_qhull_qhull_h" "$ac_includes_default"
7949   if test "x$ac_cv_header_qhull_qhull_h" = x""yes; then :
7950    qhull_cv_qhull_h=yes
7951   else
# Line 7769 | Line 7986 | _ACEOF
7986    return 0;
7987   }
7988   _ACEOF
7989 < if ac_fn_c_try_link "$LINENO"; then :
7989 > if ac_fn_cxx_try_link "$LINENO"; then :
7990    ac_cv_lib_qhull_qh_qhull=yes
7991   else
7992    ac_cv_lib_qhull_qh_qhull=no
# Line 7787 | Line 8004 | fi
8004   fi
8005  
8006          LDFLAGS="$QHULL_OLD_LDFLAGS"
8007 <        CFLAGS="$QHULL_OLD_CFLAGS"
8007 >        CXXFLAGS="$QHULL_OLD_CXXFLAGS"
8008          CPPFLAGS="$QHULL_OLD_CPPFLAGS"
8009          ac_ext=c
8010   ac_cpp='$CPP $CPPFLAGS'
# Line 7834 | Line 8051 | fi
8051  
8052  
8053  
7837 ac_ext=cpp
7838 ac_cpp='$CXXCPP $CPPFLAGS'
7839 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7840 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7841 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
7843 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
7844 if test -z "$CXXCPP"; then
7845  if test "${ac_cv_prog_CXXCPP+set}" = set; then :
7846  $as_echo_n "(cached) " >&6
7847 else
7848      # Double quotes because CXXCPP needs to be expanded
7849    for CXXCPP in "$CXX -E" "/lib/cpp"
7850    do
7851      ac_preproc_ok=false
7852 for ac_cxx_preproc_warn_flag in '' yes
7853 do
7854  # Use a header file that comes with gcc, so configuring glibc
7855  # with a fresh cross-compiler works.
7856  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7857  # <limits.h> exists even on freestanding compilers.
7858  # On the NeXT, cc -E runs the code through the compiler's parser,
7859  # not just through cpp. "Syntax error" is here to catch this case.
7860  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7861 /* end confdefs.h.  */
7862 #ifdef __STDC__
7863 # include <limits.h>
7864 #else
7865 # include <assert.h>
7866 #endif
7867                     Syntax error
7868 _ACEOF
7869 if ac_fn_cxx_try_cpp "$LINENO"; then :
7870
7871 else
7872  # Broken: fails on valid input.
7873 continue
7874 fi
7875 rm -f conftest.err conftest.$ac_ext
7876
7877  # OK, works on sane cases.  Now check whether nonexistent headers
7878  # can be detected and how.
7879  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7880 /* end confdefs.h.  */
7881 #include <ac_nonexistent.h>
7882 _ACEOF
7883 if ac_fn_cxx_try_cpp "$LINENO"; then :
7884  # Broken: success on invalid input.
7885 continue
7886 else
7887  # Passes both tests.
7888 ac_preproc_ok=:
7889 break
7890 fi
7891 rm -f conftest.err conftest.$ac_ext
7892
7893 done
7894 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7895 rm -f conftest.err conftest.$ac_ext
7896 if $ac_preproc_ok; then :
7897  break
7898 fi
7899
7900    done
7901    ac_cv_prog_CXXCPP=$CXXCPP
7902
7903 fi
7904  CXXCPP=$ac_cv_prog_CXXCPP
7905 else
7906  ac_cv_prog_CXXCPP=$CXXCPP
7907 fi
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
7909 $as_echo "$CXXCPP" >&6; }
7910 ac_preproc_ok=false
7911 for ac_cxx_preproc_warn_flag in '' yes
7912 do
7913  # Use a header file that comes with gcc, so configuring glibc
7914  # with a fresh cross-compiler works.
7915  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7916  # <limits.h> exists even on freestanding compilers.
7917  # On the NeXT, cc -E runs the code through the compiler's parser,
7918  # not just through cpp. "Syntax error" is here to catch this case.
7919  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7920 /* end confdefs.h.  */
7921 #ifdef __STDC__
7922 # include <limits.h>
7923 #else
7924 # include <assert.h>
7925 #endif
7926                     Syntax error
7927 _ACEOF
7928 if ac_fn_cxx_try_cpp "$LINENO"; then :
7929
7930 else
7931  # Broken: fails on valid input.
7932 continue
7933 fi
7934 rm -f conftest.err conftest.$ac_ext
7935
7936  # OK, works on sane cases.  Now check whether nonexistent headers
7937  # can be detected and how.
7938  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7939 /* end confdefs.h.  */
7940 #include <ac_nonexistent.h>
7941 _ACEOF
7942 if ac_fn_cxx_try_cpp "$LINENO"; then :
7943  # Broken: success on invalid input.
7944 continue
7945 else
7946  # Passes both tests.
7947 ac_preproc_ok=:
7948 break
7949 fi
7950 rm -f conftest.err conftest.$ac_ext
7951
7952 done
7953 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7954 rm -f conftest.err conftest.$ac_ext
7955 if $ac_preproc_ok; then :
7956
7957 else
7958  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7959 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7960 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
7961 See \`config.log' for more details." "$LINENO" 5; }
7962 fi
7963
7964 ac_ext=cpp
7965 ac_cpp='$CXXCPP $CPPFLAGS'
7966 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7967 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7968 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7969
7970
8054   #
8055   # Handle user hints
8056   #

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines