cvs: php-gtk /docs configure.in
| From: | James Moore | Date: | Fri, 13 Apr 2001 21:11:47 +0000 |
| Subject: | cvs: php-gtk /docs configure.in | ||
| Groups: | php.gtk | ||
| Request: | Send a blank email to php-gtk+get-1376@lists.php.net to get a copy of this message | ||
jmoore Fri Apr 13 14:11:47 2001 EDT
Modified files:
/php-gtk/docs configure.in
Log:
- Add tests for java and saxon.jar when saxon.exe is not found
The system will now build under linux too
# - K people this should compile everywhere now.
# If you are under windows:
# autoconf; ./configure; make
# will make the docs as long as saxon or java and saxon.jar are
# avalible. THere is no saxon.exe under linux so you need to make
# sure java is in your path and saxon.jar is in your classpath
Index: php-gtk/docs/configure.in
diff -u php-gtk/docs/configure.in:1.7 php-gtk/docs/configure.in:1.8
--- php-gtk/docs/configure.in:1.7 Fri Apr 13 12:28:21 2001
+++ php-gtk/docs/configure.in Fri Apr 13 14:11:47 2001
@@ -1,4 +1,4 @@
-dnl $Id: configure.in,v 1.7 2001/04/13 19:28:21 jmoore Exp $
+dnl $Id: configure.in,v 1.8 2001/04/13 21:11:47 jmoore Exp $
AC_INIT(global.ent)
@@ -57,6 +57,22 @@
PHP_GTK_DOC_BUILD_DATE=
date
AC_SUBST(PHP_GTK_DOC_BUILD_DATE)
+
+if test "$SAXON" = "no"; then
+ AC_PATH_PROG(JAVA, java, no)
+ if test "$JAVA" = "no"; then
+ AC_MSG_ERROR(unable to locate either Saxon or Java)
+ else
+ AC_MSG_CHECKING(for Saxon.jar)
+ if [echo $CLASSPATH | grep "saxon.jar" > /dev/null]; then
+ AC_MSG_RESULT("yes")
+ SAXON="$JAVA com.icl.saxon.stylesheet"
+ AC_SUBST(SAXON)
+ else
+ AC_MSG_ERROR(unable to locate saxon.jar in your classpath)
+ fi
+ fi
+ fi
AC_MSG_CHECKING(for language)
AC_ARG_WITH(lang,