Changeset 21376
- Timestamp:
- 2009-12-18T14:28:14+13:00 (13 years ago)
- Location:
- main/trunk/gs2build
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/gs2build/Makefile.in
r21373 r21376 105 105 fi 106 106 107 # For GS2: include the Greenstone Server Interface Makefile here108 # http://www.makelinux.net/make3/make3-CHP-3-SECT-7.html109 sinclude GSI-Makefile110 111 107 distclean: clean 112 108 rm -f Makefile config.cache config.h config.log stamp-h config.status -
main/trunk/gs2build/config.h.in
r21374 r21376 115 115 #undef ENABLE_LUCENE 116 116 117 /* Define ENABLE_JNI */ 118 #undef ENABLE_JNI 119 117 120 /* Define MICO_DIR if needsbe */ 118 121 #undef MICO_DIR -
main/trunk/gs2build/configure
r21371 r21376 309 309 #endif" 310 310 311 ac_subdirs_all="$ac_subdirs_all common-src build-src" 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 ENABLE_JNI ENABLE_MG ENABLE_MGPP ENABLE_LUCENE 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' 311 ac_subdirs_all="$ac_subdirs_all common-src" 312 ac_subdirs_all="$ac_subdirs_all build-src" 313 ac_subdirs_all="$ac_subdirs_all runtime-src" 314 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 USE_APACHE_HTTPD ENABLE_JNI ENABLE_MG ENABLE_MGPP ENABLE_LUCENE 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 315 ac_subst_files='' 314 316 … … 859 861 --disable-accentfold Disable Accent Folding for MGPP 860 862 --disable-sqlite Disable SQLite support 863 --enable-apache-httpd Enable Apache httpd support 861 864 --enable-jni Enable JNI compilation 862 865 --disable-mg Disable MG compilation … … 1435 1438 1436 1439 1440 if test -d runtime-src; then 1441 # Check whether --enable-apache-httpd or --disable-apache-httpd was given. 1442 if test "${enable_apache_httpd+set}" = set; then 1443 enableval="$enable_apache_httpd" 1444 USE_APACHE_HTTPD=1 1445 else 1446 USE_APACHE_HTTPD=0 1447 fi; 1448 cat >>confdefs.h <<\_ACEOF 1449 #define USE_APACHE_HTTPD $USE_APACHE_HTTPD 1450 _ACEOF 1451 1452 1453 fi 1454 1437 1455 # Check whether --enable-jni or --disable-jni was given. 1438 1456 if test "${enable_jni+set}" = set; then … … 4770 4788 ac_cv_lib_crypt=ac_cv_lib_crypt_main 4771 4789 4772 if test $ENABLE_ACCENTFOLD = 1; then 4773 4774 echo "$as_me:$LINENO: checking for main in -liconv" >&5 4775 echo $ECHO_N "checking for main in -liconv... $ECHO_C" >&6 4776 if test "${ac_cv_lib_iconv_main+set}" = set; then 4777 echo $ECHO_N "(cached) $ECHO_C" >&6 4778 else 4779 ac_check_lib_save_LIBS=$LIBS 4780 LIBS="-liconv $LIBS" 4781 cat >conftest.$ac_ext <<_ACEOF 4782 /* confdefs.h. */ 4783 _ACEOF 4784 cat confdefs.h >>conftest.$ac_ext 4785 cat >>conftest.$ac_ext <<_ACEOF 4786 /* end confdefs.h. */ 4787 4788 4789 int 4790 main () 4791 { 4792 main (); 4793 ; 4794 return 0; 4795 } 4796 _ACEOF 4797 rm -f conftest.$ac_objext conftest$ac_exeext 4798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4799 (eval $ac_link) 2>conftest.er1 4800 ac_status=$? 4801 grep -v '^ *+' conftest.er1 >conftest.err 4802 rm -f conftest.er1 4803 cat conftest.err >&5 4804 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4805 (exit $ac_status); } && 4806 { ac_try='test -z "$ac_c_werror_flag" 4807 || test ! -s conftest.err' 4808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4809 (eval $ac_try) 2>&5 4810 ac_status=$? 4811 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4812 (exit $ac_status); }; } && 4813 { ac_try='test -s conftest$ac_exeext' 4814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4815 (eval $ac_try) 2>&5 4816 ac_status=$? 4817 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4818 (exit $ac_status); }; }; then 4819 ac_cv_lib_iconv_main=yes 4820 else 4821 echo "$as_me: failed program was:" >&5 4822 sed 's/^/| /' conftest.$ac_ext >&5 4823 4824 ac_cv_lib_iconv_main=no 4825 fi 4826 rm -f conftest.err conftest.$ac_objext \ 4827 conftest$ac_exeext conftest.$ac_ext 4828 LIBS=$ac_check_lib_save_LIBS 4829 fi 4830 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_main" >&5 4831 echo "${ECHO_T}$ac_cv_lib_iconv_main" >&6 4832 if test $ac_cv_lib_iconv_main = yes; then 4833 cat >>confdefs.h <<_ACEOF 4834 #define HAVE_LIBICONV 1 4835 _ACEOF 4836 4837 LIBS="-liconv $LIBS" 4838 4839 fi 4840 ac_cv_lib_iconv=ac_cv_lib_iconv_main 4841 4842 fi 4790 #if test $ENABLE_ACCENTFOLD = 1; then 4791 #AC_HAVE_LIBRARY(iconv) 4792 #fi 4843 4793 4844 4794 … … 6881 6831 6882 6832 6833 echo "$as_me:$LINENO: checking that Perl 5 is available" >&5 6834 echo $ECHO_N "checking that Perl 5 is available... $ECHO_C" >&6 6835 success="no" 6836 pl_path="$PATH" 6837 IFS="${IFS= }"; pl_save_ifs="$IFS"; IFS=":" 6838 for pl_dir in $pl_path; do 6839 test -z "$pl_dir" && pl_dir=. 6840 if test -x $pl_dir/perl; then 6841 success="yes" 6842 break 6843 fi 6844 done 6845 IFS="$pl_save_ifs" 6846 6847 if test $success = "yes"; then 6848 try=`perl configtest.pl` || try="0" 6849 try=`expr $try \> 5.000` 6850 if test $try = "1"; then 6851 echo "$as_me:$LINENO: result: \"yes\"" >&5 6852 echo "${ECHO_T}\"yes\"" >&6 6853 else 6854 success="no" 6855 fi 6856 fi 6857 6858 if test $success = "no"; then 6859 echo "$as_me:$LINENO: result: \"no\"" >&5 6860 echo "${ECHO_T}\"no\"" >&6 6861 { { echo "$as_me:$LINENO: error: \"Perl 5 not available - cannot install\"" >&5 6862 echo "$as_me: error: \"Perl 5 not available - cannot install\"" >&2;} 6863 { (exit 1); exit 1; }; } 6864 fi 6865 6883 6866 success=no 6884 6867 echo "$as_me:$LINENO: checking \"whether STL library has known faults\"" >&5 … … 7321 7304 # indexers needs a bindir option to get the binaries into the right place 7322 7305 gsdlprefix=`pwd` 7323 ac_configure_args="$ac_configure_args --bindir=$gsdlprefix/bin/$gsdlos " 7324 7325 7326 subdirs="$subdirs common-src build-src" 7306 ac_configure_args="$ac_configure_args --bindir=$gsdlprefix/bin/$gsdlos --libdir=$gsdlprefix/lib/$gsdlos" 7307 7308 7309 subdirs="$subdirs common-src" 7310 7311 7312 7313 subdirs="$subdirs build-src" 7327 7314 7328 7315 … … 7330 7317 srclist="common-src/Makefile \ 7331 7318 build-src/Makefile" 7319 7320 if test -d runtime-src; then 7321 7322 7323 subdirs="$subdirs runtime-src" 7324 7325 srclist="$srclist \ 7326 runtime-src/Makefile" 7327 fi 7332 7328 7333 7329 ac_config_files="$ac_config_files Makefile $srclist $moduleDirs" … … 7955 7951 s,@ENABLE_ACCENTFOLD@,$ENABLE_ACCENTFOLD,;t t 7956 7952 s,@USE_SQLITE@,$USE_SQLITE,;t t 7953 s,@USE_APACHE_HTTPD@,$USE_APACHE_HTTPD,;t t 7957 7954 s,@ENABLE_JNI@,$ENABLE_JNI,;t t 7958 7955 s,@ENABLE_MG@,$ENABLE_MG,;t t -
main/trunk/gs2build/configure.in
r21371 r21376 72 72 AC_DEFINE(USE_SQLITE, $USE_SQLITE) 73 73 AC_SUBST(USE_SQLITE) 74 75 dnl 76 dnl Set use of Apache httpd (disabled by default) 77 dnl 78 if test -d runtime-src; then 79 AC_ARG_ENABLE(apache-httpd, [ --enable-apache-httpd Enable Apache httpd support], USE_APACHE_HTTPD=1, USE_APACHE_HTTPD=0) 80 AC_DEFINE(USE_APACHE_HTTPD, $USE_APACHE_HTTPD) 81 AC_SUBST(USE_APACHE_HTTPD) 82 fi 74 83 75 84 dnl … … 229 238 dnl check for -lcrypt: 230 239 AC_HAVE_LIBRARY(crypt) 231 if test $ENABLE_ACCENTFOLD = 1; then232 AC_HAVE_LIBRARY(iconv)233 fi240 #if test $ENABLE_ACCENTFOLD = 1; then 241 #AC_HAVE_LIBRARY(iconv) 242 #fi 234 243 235 244 dnl Checks for header files. … … 292 301 dnl 293 302 AC_LANG_CPLUSPLUS 303 304 dnl 305 dnl Now check that Perl is actually around, and can be found 306 dnl 307 AC_MSG_CHECKING(that Perl 5 is available) 308 success="no" 309 pl_path="$PATH" 310 IFS="${IFS= }"; pl_save_ifs="$IFS"; IFS=":" 311 for pl_dir in $pl_path; do 312 test -z "$pl_dir" && pl_dir=. 313 if test -x $pl_dir/perl; then 314 success="yes" 315 break 316 fi 317 done 318 IFS="$pl_save_ifs" 319 320 dnl 321 dnl Perl actually can be run; now we see if it is version 5 by 322 dnl running a sample script (which returns a "clean" version number 323 dnl and then tests the result using expr. If perl errors in some 324 dnl way (eg. broken Perl executable, missing script), we set a failure 325 dnl value ("0") and then proceed as best we can 326 dnl 327 if test $success = "yes"; then 328 try=`perl configtest.pl` || try="0" 329 try=`expr $try \> 5.000` 330 if test $try = "1"; then 331 AC_MSG_RESULT("yes") 332 else 333 success="no" 334 fi 335 fi 336 337 if test $success = "no"; then 338 AC_MSG_RESULT("no") 339 AC_MSG_ERROR("Perl 5 not available - cannot install") 340 fi 294 341 295 342 dnl … … 386 433 # indexers needs a bindir option to get the binaries into the right place 387 434 gsdlprefix=`pwd` 388 ac_configure_args="$ac_configure_args --bindir=$gsdlprefix/bin/$gsdlos " 389 AC_CONFIG_SUBDIRS(common-src build-src) 435 ac_configure_args="$ac_configure_args --bindir=$gsdlprefix/bin/$gsdlos --libdir=$gsdlprefix/lib/$gsdlos" 436 AC_CONFIG_SUBDIRS(common-src) 437 AC_CONFIG_SUBDIRS(build-src) 390 438 391 439 # the list of folders in the src folder … … 393 441 build-src/Makefile" 394 442 443 if test -d runtime-src; then 444 AC_CONFIG_SUBDIRS(runtime-src) 445 srclist="$srclist \ 446 runtime-src/Makefile" 447 fi 448 395 449 AC_OUTPUT(Makefile $srclist $moduleDirs) 396 450
Note:
See TracChangeset
for help on using the changeset viewer.