Changeset 18214 for gsdl/trunk/build-src
- Timestamp:
- 2008-12-16T15:52:32+13:00 (15 years ago)
- Location:
- gsdl/trunk/build-src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
gsdl/trunk/build-src/configure
r16594 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 … … 1407 1406 1408 1407 1409 1410 # Check whether --with-gdbm or --without-gdbm was given.1411 if test "${with_gdbm+set}" = set; then1412 withval="$with_gdbm"1413 gdbmdir=$withval1414 fi;1415 1416 1408 # Check whether --enable-accentfold or --disable-accentfold was given. 1417 1409 if test "${enable_accentfold+set}" = set; then … … 6813 6805 6814 6806 6815 6816 echo "$as_me:$LINENO: checking that the GDBM library is available" >&56817 echo $ECHO_N "checking that the GDBM library is available... $ECHO_C" >&66818 if test ! -z "$gdbmdir" ; then6819 # look in given directory for header file6820 if test -r $gdbmdir/include/gdbm.h ; then6821 GDBM_INCLUDE="-I$gdbmdir/include" ;6822 elif test -r $gdbmdir/gdbm.h ; then6823 GDBM_INCLUDE="-I$gdbmdir" ;6824 fi6825 6826 # look in given directory for library6827 if test -r $gdbmdir/libgdbm.a ; then6828 GDBM_LIBPATH="-L$gdbmdir" ;6829 elif test -r $gdbmdir/lib/libgdbm.a ; then6830 GDBM_LIBPATH="-L$gdbmdir/lib" ;6831 elif test -r $gdbmdir/.libs/libgdbm.a ; then6832 GDBM_LIBPATH="-L$gdbmdir/.libs" ;6833 fi6834 6835 if test ! -z "$GDBM_LIBPATH" -a ! -z "$GDBM_INCLUDE" ; then6836 echo "$as_me:$LINENO: result: $gdbmdir" >&56837 echo "${ECHO_T}$gdbmdir" >&6 ;6838 else6839 echo "$as_me:$LINENO: result: can't find gdbm.h and libgdbm.a in $gdbmdir" >&56840 echo "${ECHO_T}can't find gdbm.h and libgdbm.a in $gdbmdir" >&6;6841 echo "$as_me:$LINENO: checking looking for GDBM library in default locations" >&56842 echo $ECHO_N "checking looking for GDBM library in default locations... $ECHO_C" >&66843 fi6844 fi6845 6846 # look in default path and in /usr/local6847 if test -z "$GDBM_INCLUDE" ; then6848 # try in system directory6849 6850 cat >conftest.$ac_ext <<_ACEOF6851 /* confdefs.h. */6852 _ACEOF6853 cat confdefs.h >>conftest.$ac_ext6854 cat >>conftest.$ac_ext <<_ACEOF6855 /* end confdefs.h. */6856 #include <gdbm.h>6857 6858 int6859 main ()6860 {6861 6862 ;6863 return 0;6864 }6865 _ACEOF6866 rm -f conftest.$ac_objext6867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&56868 (eval $ac_compile) 2>conftest.er16869 ac_status=$?6870 grep -v '^ *+' conftest.er1 >conftest.err6871 rm -f conftest.er16872 cat conftest.err >&56873 echo "$as_me:$LINENO: \$? = $ac_status" >&56874 (exit $ac_status); } &&6875 { ac_try='test -z "$ac_cxx_werror_flag"6876 || test ! -s conftest.err'6877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&56878 (eval $ac_try) 2>&56879 ac_status=$?6880 echo "$as_me:$LINENO: \$? = $ac_status" >&56881 (exit $ac_status); }; } &&6882 { ac_try='test -s conftest.$ac_objext'6883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&56884 (eval $ac_try) 2>&56885 ac_status=$?6886 echo "$as_me:$LINENO: \$? = $ac_status" >&56887 (exit $ac_status); }; }; then6888 success=yes6889 else6890 echo "$as_me: failed program was:" >&56891 sed 's/^/| /' conftest.$ac_ext >&56892 6893 success=no6894 6895 fi6896 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext6897 6898 if test $success = "no"; then6899 # last chance - look in /usr/local (eg FreeBSD)6900 GDBM_LIBPATH=-L/usr/local/lib6901 GDBM_INCLUDE=-I/usr/local/include6902 ac_save_CXXFLAGS="$CXXFLAGS"6903 ac_save_LIBS="$LIBS"6904 CXXFLAGS="$CXXFLAGS -I/usr/local/include"6905 LIBS="$LIBS -L/usr/local/lib -lgdbm"6906 cat >conftest.$ac_ext <<_ACEOF6907 /* confdefs.h. */6908 _ACEOF6909 cat confdefs.h >>conftest.$ac_ext6910 cat >>conftest.$ac_ext <<_ACEOF6911 /* end confdefs.h. */6912 #include <gdbm.h>6913 #include <stdio.h>6914 6915 int6916 main ()6917 {6918 printf("%s",gdbm_version);6919 ;6920 return 0;6921 }6922 _ACEOF6923 rm -f conftest.$ac_objext conftest$ac_exeext6924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&56925 (eval $ac_link) 2>conftest.er16926 ac_status=$?6927 grep -v '^ *+' conftest.er1 >conftest.err6928 rm -f conftest.er16929 cat conftest.err >&56930 echo "$as_me:$LINENO: \$? = $ac_status" >&56931 (exit $ac_status); } &&6932 { ac_try='test -z "$ac_cxx_werror_flag"6933 || test ! -s conftest.err'6934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&56935 (eval $ac_try) 2>&56936 ac_status=$?6937 echo "$as_me:$LINENO: \$? = $ac_status" >&56938 (exit $ac_status); }; } &&6939 { ac_try='test -s conftest$ac_exeext'6940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&56941 (eval $ac_try) 2>&56942 ac_status=$?6943 echo "$as_me:$LINENO: \$? = $ac_status" >&56944 (exit $ac_status); }; }; then6945 success=/usr/local6946 else6947 echo "$as_me: failed program was:" >&56948 sed 's/^/| /' conftest.$ac_ext >&56949 6950 success=no6951 6952 fi6953 rm -f conftest.err conftest.$ac_objext \6954 conftest$ac_exeext conftest.$ac_ext6955 CXXFLAGS=$ac_save_CXXFLAGS6956 LIBS=$ac_save_LIBS6957 fi6958 6959 echo "$as_me:$LINENO: result: $success" >&56960 echo "${ECHO_T}$success" >&66961 if test $success = "no"; then6962 { { echo "$as_me:$LINENO: error: GDBM Library not available - cannot install" >&56963 echo "$as_me: error: GDBM Library not available - cannot install" >&2;}6964 { (exit 1); exit 1; }; }6965 fi6966 fi6967 cat >>confdefs.h <<\_ACEOF6968 #define HAVE_LIBGDBM 16969 _ACEOF6970 6971 6972 6973 6974 6975 6807 echo "$as_me:$LINENO: checking that Perl 5 is available" >&5 6976 6808 echo $ECHO_N "checking that Perl 5 is available... $ECHO_C" >&6 … … 7009 6841 echo "$as_me:$LINENO: checking \"whether STL library has known faults\"" >&5 7010 6842 echo $ECHO_N "checking \"whether STL library has known faults\"... $ECHO_C" >&6 6843 7011 6844 7012 6845 cat >conftest.$ac_ext <<_ACEOF … … 8116 7949 s,@LIBOBJS@,$LIBOBJS,;t t 8117 7950 s,@STATIC@,$STATIC,;t t 8118 s,@GDBM_LIBPATH@,$GDBM_LIBPATH,;t t8119 s,@GDBM_INCLUDE@,$GDBM_INCLUDE,;t t8120 7951 s,@gsdlos@,$gsdlos,;t t 8121 7952 s,@MODULEDIRS@,$MODULEDIRS,;t t -
gsdl/trunk/build-src/configure.in
r16594 r18214 59 59 AC_SUBST(USE_YAZ) 60 60 dnl fi 61 62 dnl63 dnl look for libgdbm if not in standard location64 dnl65 AC_ARG_WITH(gdbm, [ --with-gdbm=dir Use local gdbm library and headers], gdbmdir=$withval)66 61 67 62 dnl … … 249 244 dnl 250 245 AC_LANG_CPLUSPLUS 251 252 dnl253 dnl Check that the GDBM library is available254 dnl255 dnl check libgdbm manually, in case it's not in the standard location.256 257 AC_MSG_CHECKING(that the GDBM library is available)258 if test ! -z "$gdbmdir" ; then259 # look in given directory for header file260 if test -r $gdbmdir/include/gdbm.h ; then261 GDBM_INCLUDE="-I$gdbmdir/include" ;262 elif test -r $gdbmdir/gdbm.h ; then263 GDBM_INCLUDE="-I$gdbmdir" ;264 fi265 266 # look in given directory for library267 if test -r $gdbmdir/libgdbm.a ; then268 GDBM_LIBPATH="-L$gdbmdir" ;269 elif test -r $gdbmdir/lib/libgdbm.a ; then270 GDBM_LIBPATH="-L$gdbmdir/lib" ;271 elif test -r $gdbmdir/.libs/libgdbm.a ; then272 GDBM_LIBPATH="-L$gdbmdir/.libs" ;273 fi274 275 if test ! -z "$GDBM_LIBPATH" -a ! -z "$GDBM_INCLUDE" ; then276 AC_MSG_RESULT($gdbmdir) ;277 else278 AC_MSG_RESULT(can't find gdbm.h and libgdbm.a in $gdbmdir);279 AC_MSG_CHECKING( looking for GDBM library in default locations)280 fi281 fi282 283 # look in default path and in /usr/local284 if test -z "$GDBM_INCLUDE" ; then285 # try in system directory286 AC_TRY_COMPILE(287 [#include <gdbm.h>288 ],289 [],290 success=yes,291 success=no292 )293 294 if test $success = "no"; then295 # last chance - look in /usr/local (eg FreeBSD)296 GDBM_LIBPATH=-L/usr/local/lib297 GDBM_INCLUDE=-I/usr/local/include298 ac_save_CXXFLAGS="$CXXFLAGS"299 ac_save_LIBS="$LIBS"300 CXXFLAGS="$CXXFLAGS -I/usr/local/include"301 LIBS="$LIBS -L/usr/local/lib -lgdbm"302 AC_TRY_LINK(303 [#include <gdbm.h>304 #include <stdio.h>305 ],306 [printf("%s",gdbm_version);],307 success=/usr/local,308 success=no309 )310 CXXFLAGS=$ac_save_CXXFLAGS311 LIBS=$ac_save_LIBS312 fi313 314 AC_MSG_RESULT($success)315 if test $success = "no"; then316 AC_MSG_ERROR(GDBM Library not available - cannot install)317 fi318 fi319 dnl I don't think anything actually checks this define, but...320 AC_DEFINE(HAVE_LIBGDBM , 1)321 322 AC_SUBST(GDBM_LIBPATH)323 AC_SUBST(GDBM_INCLUDE)324 246 325 247 dnl
Note:
See TracChangeset
for help on using the changeset viewer.