Changeset 21366
- Timestamp:
- 2009-12-16T14:11:07+13:00 (13 years ago)
- Location:
- main/trunk/greenstone2
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/Makefile.in
r19262 r21366 55 55 MODULEDIRS = @MODULEDIRS@ 56 56 57 ENABLE_JNI=@ENABLE_JNI@ 58 ifeq ($(ENABLE_JNI), 1) 59 COMPILE_TARGET=with-jni 60 else 61 COMPILE_TARGET=without-jni 62 endif 57 63 58 # we don't want to compile the jni stuff in indexers for gs2 59 all: 64 65 # with some compilers, just calling another target is insufficient 66 # so an extra echo stmt is added after each call to another target 67 all: $(COMPILE_TARGET) 68 @echo "Compile done" 69 70 install: install-$(COMPILE_TARGET) 71 @echo "Install done" 72 73 74 with-jni without-jni: 60 75 for odir in $(SPECIAL_COMPILEDIRS); do \ 61 echo making gs2 in $$odir; \ 62 (cd $$odir && $(MAKE) $(MDEFINES) gs2) || exit 1; \ 76 if test -d $$odir; then \ 77 echo making $(COMPILE_TARGET) in $$odir; \ 78 (cd $$odir && $(MAKE) $(MDEFINES) $(COMPILE_TARGET)) || exit 1; \ 79 fi; \ 63 80 done 64 81 for odir in $(COMPILEDIRS) $(MODULEDIRS); do \ 65 echo making $@ in $$odir; \ 66 (cd $$odir && $(MAKE) $(MDEFINES) $@) || exit 1; \ 82 if test -d $$odir; then \ 83 echo making all in $$odir; \ 84 (cd $$odir && $(MAKE) $(MDEFINES) all) || exit 1; \ 85 fi; \ 67 86 done 68 87 69 install : all88 install-with-jni install-without-jni: all 70 89 for idir in $(SPECIAL_INSTALLDIRS); do \ 71 echo installing $$idir; \ 72 (cd $$idir && $(MAKE) install-gs2) || exit 1; \ 90 if test -d $$idir; then \ 91 echo installing $$idir $(COMPILE_TARGET); \ 92 (cd $$idir && $(MAKE) install-$(COMPILE_TARGET)) || exit 1; \ 93 fi; \ 73 94 done 74 95 for idir in $(INSTALLDIRS); do \ 75 echo installing $$idir; \ 76 (cd $$idir && $(MAKE) install) || exit 1; \ 96 if test -d $$idir; then \ 97 echo installing $$idir; \ 98 (cd $$idir && $(MAKE) install) || exit 1; \ 99 fi; \ 77 100 done 78 101 79 102 apache-for-dist: 80 (cd runtime-src/packages && $(MAKE) apache-for-dist) || exit 1; 103 if test -d runtime-src; then \ 104 (cd runtime-src/packages && $(MAKE) apache-for-dist) || exit 1; \ 105 fi 81 106 82 # include the Greenstone Server Interface Makefile here 83 include GSI-Makefile 107 # For GS2: include the Greenstone Server Interface Makefile here 108 # http://www.makelinux.net/make3/make3-CHP-3-SECT-7.html 109 sinclude GSI-Makefile 84 110 85 111 distclean: clean 86 112 rm -f Makefile config.cache config.h config.log stamp-h config.status 87 113 for subdir in $(SPECIAL_COMPILEDIRS) $(COMPILEDIRS); do \ 88 echo cleaning $@ in $$subdir; \ 89 (cd $$subdir && $(MAKE) distclean) || exit 1; \ 114 if test -d $$subdir; then \ 115 echo cleaning $@ in $$subdir; \ 116 (cd $$subdir && $(MAKE) distclean) || exit 1; \ 117 fi; \ 90 118 done 91 119 92 120 clean: 93 121 for subdir in $(SPECIAL_COMPILEDIRS) $(COMPILEDIRS); do \ 94 echo cleaning $@ in $$subdir; \ 95 (cd $$subdir && $(MAKE) clean) || exit 1; \ 122 if test -d $$subdir; then \ 123 echo cleaning $@ in $$subdir; \ 124 (cd $$subdir && $(MAKE) clean) || exit 1; \ 125 fi; \ 96 126 done 97 127 -
main/trunk/greenstone2/configure
r21330 r21366 310 310 311 311 ac_subdirs_all="$ac_subdirs_all common-src build-src runtime-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 USE_APACHE_HTTPD 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'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 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 313 ac_subst_files='' 314 314 … … 860 860 --disable-sqlite Disable SQLite support 861 861 --enable-apache-httpd Enable Apache httpd support 862 --enable-jni Enable JNI compilation 862 863 --disable-mg Disable MG compilation 863 864 --disable-mgpp Disable MGPP compilation … … 1449 1450 1450 1451 1452 # Check whether --enable-jni or --disable-jni was given. 1453 if test "${enable_jni+set}" = set; then 1454 enableval="$enable_jni" 1455 ENABLE_JNI=$enableval 1456 else 1457 ENABLE_JNI=no 1458 fi; 1459 if test $ENABLE_JNI = "yes" -o $ENABLE_JNI = "1" ; then 1460 ENABLE_JNI=1 1461 cat >>confdefs.h <<\_ACEOF 1462 #define ENABLE_JNI 1463 _ACEOF 1464 1465 else 1466 ENABLE_JNI=0 1467 fi 1468 1451 1469 1452 1470 # Check whether --enable-mg or --disable-mg was given. … … 7920 7938 s,@USE_SQLITE@,$USE_SQLITE,;t t 7921 7939 s,@USE_APACHE_HTTPD@,$USE_APACHE_HTTPD,;t t 7940 s,@ENABLE_JNI@,$ENABLE_JNI,;t t 7922 7941 s,@ENABLE_MG@,$ENABLE_MG,;t t 7923 7942 s,@ENABLE_MGPP@,$ENABLE_MGPP,;t t -
main/trunk/greenstone2/configure.in
r21330 r21366 81 81 AC_SUBST(USE_APACHE_HTTPD) 82 82 83 dnl 84 dnl Set compilation of JNI parts of MG and MGPP indexers (disabled by default, which is GS2's default behaviour) 85 dnl 86 AC_ARG_ENABLE(jni, [ --enable-jni Enable JNI compilation], ENABLE_JNI=$enableval, ENABLE_JNI=no) 87 if test $ENABLE_JNI = "yes" -o $ENABLE_JNI = "1" ; then 88 ENABLE_JNI=1 89 AC_DEFINE(ENABLE_JNI,[]) 90 else 91 ENABLE_JNI=0 92 fi 93 AC_SUBST(ENABLE_JNI) 83 94 84 95 dnl -
main/trunk/greenstone2/win32.mak
r21330 r21366 40 40 ENABLE_MGPP = 1 41 41 ENABLE_LUCENE = 1 42 # jni is disabled by default as this is the default for GS2 43 ENABLE_JNI = 0 42 44 43 45 … … 77 79 !IF $(USE_Z3950) 78 80 MAKECMD = $(MAKECMD) USE_Z3950=1 81 !ENDIF 82 !IF "$(ENABLE_JNI)" == "" 83 MAKECMD = $(MAKECMD) ENABLE_JNI=0 84 !ELSE 85 MAKECMD = $(MAKECMD) ENABLE_JNI=$(ENABLE_JNI) 79 86 !ENDIF 80 87 !IF "$(ENABLE_MG)" == ""
Note:
See TracChangeset
for help on using the changeset viewer.