Changeset 77 for trunk/zoo-kernel
- Timestamp:
- Jan 16, 2011, 12:28:46 AM (14 years ago)
- Location:
- trunk/zoo-kernel
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-kernel/Makefile.in
r50 r77 1 OS:=$(shell uname -s) 2 ifeq ($(OS),Darwin) 3 MACOS_LD_FLAGS=-lintl -framework SystemConfiguration -framework CoreFoundation 4 MACOS_CFLAGS=-arch i386 -arch ppc -arch x86_64 5 endif 6 1 7 JAVACFLAGS=@JAVA_CPPFLAGS@ 2 8 JAVALDFLAGS=@JAVA_LDFLAGS@ … … 4 10 JAVA_FILE=@JAVA_FILE@ 5 11 6 CFLAGS= -I../thirds/cgic206 -I. -DLINUX_FREE_ISSUE #-DDEBUG #-DDEBUG_SERVICE_CONF12 CFLAGS=${MACOS_CFLAGS} -I../thirds/cgic206 -I. -DLINUX_FREE_ISSUE #-DDEBUG #-DDEBUG_SERVICE_CONF 7 13 8 14 PHPCFLAGS=@PHP_CPPFLAGS@ … … 91 97 zoo_loader.cgi: zoo_loader.c zoo_service_loader.o ulinet.o service.h lex.sr.o service_conf.tab.o service_conf.y ulinet.o main_conf_read.tab.o lex.cr.o service_internal.o ${PYTHON_FILE} ${PHP_FILE} ${JAVA_FILE} ${JS_FILE} ${PERL_FILE} 92 98 g++ -g -O2 -Wall ${JSCFLAGS} ${PHPCFLAGS} ${PERLCFLAGS} ${JAVACFLAGS} ${XML2CFLAGS} ${PYTHONCFLAGS} ${CFLAGS} -c zoo_loader.c -fno-common -DPIC -o zoo_loader.o 93 g++ ${JSCFLAGS} ${GDAL_CFLAGS} ${XML2CFLAGS} ${PHPCFLAGS} ${PERLCFLAGS} ${JAVACFLAGS} ${PYTHONCFLAGS} ${CFLAGS} zoo_loader.o zoo_service_loader.o service_internal.o ${PYTHON_FILE} ${PERL_FILE} ${PHP_FILE} ${JS_FILE} ${JAVA_FILE} ulinet.o lex.cr.o lex.sr.o service_conf.tab.o main_conf_read.tab.o -o zoo_loader.cgi -lcurl -L../thirds/cgic206 -lcgic -lcurl ${GDAL_LIBS} ${XML2LDFLAGS} ${PYTHONLDFLAGS} ${PERLLDFLAGS} ${PHPLDFLAGS} ${JAVALDFLAGS} ${JSLDFLAGS} -lfcgi -lcrypto 99 g++ ${JSCFLAGS} ${GDAL_CFLAGS} ${XML2CFLAGS} ${PHPCFLAGS} ${PERLCFLAGS} ${JAVACFLAGS} ${PYTHONCFLAGS} ${CFLAGS} zoo_loader.o zoo_service_loader.o service_internal.o ${PYTHON_FILE} ${PERL_FILE} ${PHP_FILE} ${JS_FILE} ${JAVA_FILE} ulinet.o lex.cr.o lex.sr.o service_conf.tab.o main_conf_read.tab.o -o zoo_loader.cgi -lcurl -L../thirds/cgic206 -lcgic -lcurl ${GDAL_LIBS} ${XML2LDFLAGS} ${PYTHONLDFLAGS} ${PERLLDFLAGS} ${PHPLDFLAGS} ${JAVALDFLAGS} ${JSLDFLAGS} -lfcgi -lcrypto ${MACOS_LD_FLAGS} 94 100 95 101 install: -
trunk/zoo-kernel/configure.ac
r75 r77 1 #AC_PREREQ([2.63]) 2 AC_INIT([ZOO Kernel], [0.0.1], [bugs@zoo-project.org]) 3 #AM_INIT_AUTOMAKE 4 #AC_CONFIG_HEADERS([config.h]) 1 AC_INIT([ZOO Kernel], [1.2.0], [bugs@zoo-project.org]) 5 2 6 3 # Checks for programs. … … 70 67 AC_SUBST([GDAL_LIBS]) 71 68 72 73 74 75 69 # =========================================================================== 76 70 # Detect if libxml2 is installed … … 102 96 fi 103 97 104 105 98 # Extract the linker and include flags 106 99 XML2_LDFLAGS=`$XML2CONFIG --libs` … … 121 114 AC_SUBST([XML2_LDFLAGS]) 122 115 123 124 125 126 116 # =========================================================================== 127 117 # Detect if python is installed 128 118 # =========================================================================== 129 130 131 132 119 133 120 AC_ARG_WITH([python], … … 176 163 # =========================================================================== 177 164 178 179 180 181 165 AC_ARG_WITH([php], 182 166 [AS_HELP_STRING([--with-php=PATH], [To enabled php support or specify an alternative directory for php installation, disabled by default])], … … 220 204 AC_SUBST([PHP_FILE]) 221 205 222 223 206 # =========================================================================== 224 207 # Detect if perl is installed 225 208 # =========================================================================== 226 227 209 228 210 AC_ARG_WITH([perl], … … 266 248 # =========================================================================== 267 249 268 269 270 250 AC_ARG_WITH([java], 271 251 [AS_HELP_STRING([--with-java=PATH], [To enabled java support, specify a JDK_HOME, disabled by default])], … … 285 265 AC_MSG_ERROR([you must specify a parameter to --with-java, e.g. --with-java=/path/to/java]) 286 266 fi 267 287 268 # Extract the linker and include flags 288 if test -d "$JDKHOME/jre/lib/i386"; 289 then 290 JAVA_LDFLAGS="-L$JDKHOME/jre/lib/i386/client/ -ljvm -lpthread" 291 JAVA_CPPFLAGS="-I$JDKHOME/include -I$JDKHOME/include/linux" 292 else 293 JAVA_LDFLAGS="-L$JDKHOME/jre/lib/amd64/client/ -ljvm -lpthread" 294 JAVA_CPPFLAGS="-I$JDKHOME/include -I$JDKHOME/include/linux" 269 if test "x$JDKHOME" = "xmacos"; 270 then 271 JAVA_LDFLAGS="-framework JavaVM" 272 JAVA_CPPFLAGS="-I/Developer//SDKs/MacOSX10.6.sdk/System/Library/Frameworks/JavaVM.framework/Versions/A/Headers/" 273 else 274 if test -d "$JDKHOME/jre/lib/i386"; 275 then 276 JAVA_LDFLAGS="-L$JDKHOME/jre/lib/i386/client/ -ljvm -lpthread" 277 JAVA_CPPFLAGS="-I$JDKHOME/include -I$JDKHOME/include/linux" 278 else 279 JAVA_LDFLAGS="-L$JDKHOME/jre/lib/amd64/client/ -ljvm -lpthread" 280 JAVA_CPPFLAGS="-I$JDKHOME/include -I$JDKHOME/include/linux" 281 fi 295 282 fi 296 283 … … 304 291 LIBS_SAVE="$LIBS" 305 292 LIBS="$JAVA_LDFLAGS" 306 # Shouldn't we get java here rather than java5 :) ?? 307 AC_CHECK_LIB([jvm], [JNI_CreateJavaVM], [], [AC_MSG_ERROR([could not find libjava])], []) 308 #AC_CHECK_LIB([jvm], [main], [], [AC_MSG_ERROR([could not find libjava])], []) 293 if test "x$JDKHOME" != "xmacos"; 294 then 295 AC_CHECK_LIB([jvm], [JNI_CreateJavaVM], [], [AC_MSG_ERROR([could not find libjava])], []) 296 fi 309 297 310 298 AC_SUBST([JAVA_CPPFLAGS]) … … 314 302 AC_SUBST([JAVA_ENABLED]) 315 303 AC_SUBST([JAVA_FILE]) 316 317 318 319 320 304 321 305 # =========================================================================== … … 359 343 CPPFLAGS="$JS_CPPFLAGS" 360 344 361 362 345 #AC_CHECK_HEADERS([jsapi.h], 363 346 # [], [AC_MSG_ERROR([could not find headers include related to libjs])]) … … 376 359 AC_SUBST([JS_FILE]) 377 360 378 379 380 381 382 383 361 AC_CONFIG_FILES([Makefile]) 384 362 AC_OUTPUT
Note: See TracChangeset
for help on using the changeset viewer.