Changeset 18214 for gsdl/trunk/runtime-src
- Timestamp:
- 2008-12-16T15:52:32+13:00 (15 years ago)
- Location:
- gsdl/trunk/runtime-src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
gsdl/trunk/runtime-src/configure
r16572 r18214 310 310 311 311 ac_subdirs_all="$ac_subdirs_all packages" 312 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 PACKAGE VERSION USE_FASTCGI USE_LANGACTION USE_CORBA MICO_DIR USE_Z3950 USE_YAZ ENABLE_ACCENTFOLD USE_SQLITE LDFLAGS CFLAGS CC CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX AWK YACC build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB COMPAT32BITFLAGS MICO_VER CPP EGREP U ANSI2KNR ALLOCA LIBOBJS STATIC GDBM_LIBPATH GDBM_INCLUDEgsdlos MODULEDIRS subdirs LTLIBOBJS'312 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 PACKAGE VERSION USE_FASTCGI USE_LANGACTION USE_CORBA MICO_DIR USE_Z3950 USE_YAZ ENABLE_ACCENTFOLD USE_SQLITE LDFLAGS CFLAGS CC CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX AWK YACC build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB COMPAT32BITFLAGS MICO_VER CPP EGREP U ANSI2KNR ALLOCA LIBOBJS STATIC gsdlos MODULEDIRS subdirs LTLIBOBJS' 313 313 ac_subst_files='' 314 314 … … 864 864 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 865 865 --with-micodir Use installed MICO directory 866 --with-gdbm=dir Use local gdbm library and headers867 866 --with-dmalloc use dmalloc, as in 868 867 ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz … … 1408 1407 1409 1408 1410 1411 # Check whether --with-gdbm or --without-gdbm was given.1412 if test "${with_gdbm+set}" = set; then1413 withval="$with_gdbm"1414 gdbmdir=$withval1415 fi;1416 1417 1409 # Check whether --enable-accentfold or --disable-accentfold was given. 1418 1410 if test "${enable_accentfold+set}" = set; then … … 6814 6806 6815 6807 6816 6817 echo "$as_me:$LINENO: checking that the GDBM library is available" >&56818 echo $ECHO_N "checking that the GDBM library is available... $ECHO_C" >&66819 if test ! -z "$gdbmdir" ; then6820 # look in given directory for header file6821 if test -r $gdbmdir/include/gdbm.h ; then6822 GDBM_INCLUDE="-I$gdbmdir/include" ;6823 elif test -r $gdbmdir/gdbm.h ; then6824 GDBM_INCLUDE="-I$gdbmdir" ;6825 fi6826 6827 # look in given directory for library6828 if test -r $gdbmdir/libgdbm.a ; then6829 GDBM_LIBPATH="-L$gdbmdir" ;6830 elif test -r $gdbmdir/lib/libgdbm.a ; then6831 GDBM_LIBPATH="-L$gdbmdir/lib" ;6832 elif test -r $gdbmdir/.libs/libgdbm.a ; then6833 GDBM_LIBPATH="-L$gdbmdir/.libs" ;6834 fi6835 6836 if test ! -z "$GDBM_LIBPATH" -a ! -z "$GDBM_INCLUDE" ; then6837 echo "$as_me:$LINENO: result: $gdbmdir" >&56838 echo "${ECHO_T}$gdbmdir" >&6 ;6839 else6840 echo "$as_me:$LINENO: result: can't find gdbm.h and libgdbm.a in $gdbmdir" >&56841 echo "${ECHO_T}can't find gdbm.h and libgdbm.a in $gdbmdir" >&6;6842 echo "$as_me:$LINENO: checking looking for GDBM library in default locations" >&56843 echo $ECHO_N "checking looking for GDBM library in default locations... $ECHO_C" >&66844 fi6845 fi6846 6847 # look in default path and in /usr/local6848 if test -z "$GDBM_INCLUDE" ; then6849 # try in system directory6850 6851 cat >conftest.$ac_ext <<_ACEOF6852 /* confdefs.h. */6853 _ACEOF6854 cat confdefs.h >>conftest.$ac_ext6855 cat >>conftest.$ac_ext <<_ACEOF6856 /* end confdefs.h. */6857 #include <gdbm.h>6858 6859 int6860 main ()6861 {6862 6863 ;6864 return 0;6865 }6866 _ACEOF6867 rm -f conftest.$ac_objext6868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&56869 (eval $ac_compile) 2>conftest.er16870 ac_status=$?6871 grep -v '^ *+' conftest.er1 >conftest.err6872 rm -f conftest.er16873 cat conftest.err >&56874 echo "$as_me:$LINENO: \$? = $ac_status" >&56875 (exit $ac_status); } &&6876 { ac_try='test -z "$ac_cxx_werror_flag"6877 || test ! -s conftest.err'6878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&56879 (eval $ac_try) 2>&56880 ac_status=$?6881 echo "$as_me:$LINENO: \$? = $ac_status" >&56882 (exit $ac_status); }; } &&6883 { ac_try='test -s conftest.$ac_objext'6884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&56885 (eval $ac_try) 2>&56886 ac_status=$?6887 echo "$as_me:$LINENO: \$? = $ac_status" >&56888 (exit $ac_status); }; }; then6889 success=yes6890 else6891 echo "$as_me: failed program was:" >&56892 sed 's/^/| /' conftest.$ac_ext >&56893 6894 success=no6895 6896 fi6897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext6898 6899 if test $success = "no"; then6900 # last chance - look in /usr/local (eg FreeBSD)6901 GDBM_LIBPATH=-L/usr/local/lib6902 GDBM_INCLUDE=-I/usr/local/include6903 ac_save_CXXFLAGS="$CXXFLAGS"6904 ac_save_LIBS="$LIBS"6905 CXXFLAGS="$CXXFLAGS -I/usr/local/include"6906 LIBS="$LIBS -L/usr/local/lib -lgdbm"6907 cat >conftest.$ac_ext <<_ACEOF6908 /* confdefs.h. */6909 _ACEOF6910 cat confdefs.h >>conftest.$ac_ext6911 cat >>conftest.$ac_ext <<_ACEOF6912 /* end confdefs.h. */6913 #include <gdbm.h>6914 #include <stdio.h>6915 6916 int6917 main ()6918 {6919 printf("%s",gdbm_version);6920 ;6921 return 0;6922 }6923 _ACEOF6924 rm -f conftest.$ac_objext conftest$ac_exeext6925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&56926 (eval $ac_link) 2>conftest.er16927 ac_status=$?6928 grep -v '^ *+' conftest.er1 >conftest.err6929 rm -f conftest.er16930 cat conftest.err >&56931 echo "$as_me:$LINENO: \$? = $ac_status" >&56932 (exit $ac_status); } &&6933 { ac_try='test -z "$ac_cxx_werror_flag"6934 || test ! -s conftest.err'6935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&56936 (eval $ac_try) 2>&56937 ac_status=$?6938 echo "$as_me:$LINENO: \$? = $ac_status" >&56939 (exit $ac_status); }; } &&6940 { ac_try='test -s conftest$ac_exeext'6941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&56942 (eval $ac_try) 2>&56943 ac_status=$?6944 echo "$as_me:$LINENO: \$? = $ac_status" >&56945 (exit $ac_status); }; }; then6946 success=/usr/local6947 else6948 echo "$as_me: failed program was:" >&56949 sed 's/^/| /' conftest.$ac_ext >&56950 6951 success=no6952 6953 fi6954 rm -f conftest.err conftest.$ac_objext \6955 conftest$ac_exeext conftest.$ac_ext6956 CXXFLAGS=$ac_save_CXXFLAGS6957 LIBS=$ac_save_LIBS6958 fi6959 6960 echo "$as_me:$LINENO: result: $success" >&56961 echo "${ECHO_T}$success" >&66962 if test $success = "no"; then6963 { { echo "$as_me:$LINENO: error: GDBM Library not available - cannot install" >&56964 echo "$as_me: error: GDBM Library not available - cannot install" >&2;}6965 { (exit 1); exit 1; }; }6966 fi6967 fi6968 cat >>confdefs.h <<\_ACEOF6969 #define HAVE_LIBGDBM 16970 _ACEOF6971 6972 6973 6974 6975 6976 6808 echo "$as_me:$LINENO: checking that Perl 5 is available" >&5 6977 6809 echo $ECHO_N "checking that Perl 5 is available... $ECHO_C" >&6 … … 6991 6823 echo "$as_me:$LINENO: checking \"whether STL library has known faults\"" >&5 6992 6824 echo $ECHO_N "checking \"whether STL library has known faults\"... $ECHO_C" >&6 6825 6993 6826 6994 6827 cat >conftest.$ac_ext <<_ACEOF … … 8102 7935 s,@LIBOBJS@,$LIBOBJS,;t t 8103 7936 s,@STATIC@,$STATIC,;t t 8104 s,@GDBM_LIBPATH@,$GDBM_LIBPATH,;t t8105 s,@GDBM_INCLUDE@,$GDBM_INCLUDE,;t t8106 7937 s,@gsdlos@,$gsdlos,;t t 8107 7938 s,@MODULEDIRS@,$MODULEDIRS,;t t -
gsdl/trunk/runtime-src/configure.in
r16571 r18214 60 60 AC_SUBST(USE_YAZ) 61 61 dnl fi 62 63 dnl64 dnl look for libgdbm if not in standard location65 dnl66 AC_ARG_WITH(gdbm, [ --with-gdbm=dir Use local gdbm library and headers], gdbmdir=$withval)67 62 68 63 dnl … … 250 245 dnl 251 246 AC_LANG_CPLUSPLUS 252 253 dnl254 dnl Check that the GDBM library is available255 dnl256 dnl check libgdbm manually, in case it's not in the standard location.257 258 AC_MSG_CHECKING(that the GDBM library is available)259 if test ! -z "$gdbmdir" ; then260 # look in given directory for header file261 if test -r $gdbmdir/include/gdbm.h ; then262 GDBM_INCLUDE="-I$gdbmdir/include" ;263 elif test -r $gdbmdir/gdbm.h ; then264 GDBM_INCLUDE="-I$gdbmdir" ;265 fi266 267 # look in given directory for library268 if test -r $gdbmdir/libgdbm.a ; then269 GDBM_LIBPATH="-L$gdbmdir" ;270 elif test -r $gdbmdir/lib/libgdbm.a ; then271 GDBM_LIBPATH="-L$gdbmdir/lib" ;272 elif test -r $gdbmdir/.libs/libgdbm.a ; then273 GDBM_LIBPATH="-L$gdbmdir/.libs" ;274 fi275 276 if test ! -z "$GDBM_LIBPATH" -a ! -z "$GDBM_INCLUDE" ; then277 AC_MSG_RESULT($gdbmdir) ;278 else279 AC_MSG_RESULT(can't find gdbm.h and libgdbm.a in $gdbmdir);280 AC_MSG_CHECKING( looking for GDBM library in default locations)281 fi282 fi283 284 # look in default path and in /usr/local285 if test -z "$GDBM_INCLUDE" ; then286 # try in system directory287 AC_TRY_COMPILE(288 [#include <gdbm.h>289 ],290 [],291 success=yes,292 success=no293 )294 295 if test $success = "no"; then296 # last chance - look in /usr/local (eg FreeBSD)297 GDBM_LIBPATH=-L/usr/local/lib298 GDBM_INCLUDE=-I/usr/local/include299 ac_save_CXXFLAGS="$CXXFLAGS"300 ac_save_LIBS="$LIBS"301 CXXFLAGS="$CXXFLAGS -I/usr/local/include"302 LIBS="$LIBS -L/usr/local/lib -lgdbm"303 AC_TRY_LINK(304 [#include <gdbm.h>305 #include <stdio.h>306 ],307 [printf("%s",gdbm_version);],308 success=/usr/local,309 success=no310 )311 CXXFLAGS=$ac_save_CXXFLAGS312 LIBS=$ac_save_LIBS313 fi314 315 AC_MSG_RESULT($success)316 if test $success = "no"; then317 AC_MSG_ERROR(GDBM Library not available - cannot install)318 fi319 fi320 dnl I don't think anything actually checks this define, but...321 AC_DEFINE(HAVE_LIBGDBM , 1)322 323 AC_SUBST(GDBM_LIBPATH)324 AC_SUBST(GDBM_INCLUDE)325 247 326 248 dnl
Note:
See TracChangeset
for help on using the changeset viewer.