|
|
| version 1.2, 2002/01/31 11:11:43 | version 1.9, 2002/02/13 13:04:33 |
|---|---|
| Line 2 dnl Process this file with autoconf to p | Line 2 dnl Process this file with autoconf to p |
| AC_INIT(README) | AC_INIT(README) |
| AM_INIT_AUTOMAKE(parser, 3.0b, nodefine) | AM_INIT_AUTOMAKE(parser, 3.0b, nodefine) |
| dnl not perfect, but would do | dnl expand srcdir |
| P3S=`pwd` | P3S=`cd $srcdir ; pwd` |
| AC_SUBST(P3S) | AC_SUBST(P3S) |
| PARSER_VERSION=$VERSION | PARSER_VERSION=$VERSION |
| echo "/* automatically generated by configure */" > src/include/pa_version.h.new | echo "/* automatically generated by configure */" > $srcdir/src/include/pa_version.h.new |
| echo "/* edit configure.in to change version number */" >> src/include/pa_version.h.new | echo "/* edit configure.in to change version number */" >> $srcdir/src/include/pa_version.h.new |
| echo "#define PARSER_VERSION \"$PARSER_VERSION\"" >> src/include/pa_version.h.new | echo "#define PARSER_VERSION \"$PARSER_VERSION\"" >> $srcdir/src/include/pa_version.h.new |
| cmp src/include/pa_version.h.new src/include/pa_version.h >/dev/null 2>&1 | cmp $srcdir/src/include/pa_version.h.new $srcdir/src/include/pa_version.h >/dev/null 2>&1 |
| if test $? -ne 0 ; then | if test $? -ne 0 ; then |
| rm -f src/include/pa_version.h && mv src/include/pa_version.h.new src/include/pa_version.h && \ | rm -f $srcdir/src/include/pa_version.h && mv $srcdir/src/include/pa_version.h.new $srcdir/src/include/pa_version.h && \ |
| echo 'Updated src/include/pa_version.h' | echo Updated $srcdir/src/include/pa_version.h |
| else | else |
| rm -f src/include/pa_version.h.new | rm -f $srcdir/src/include/pa_version.h.new |
| fi | fi |
| AC_PROG_INSTALL | AC_PROG_INSTALL |
| Line 35 fi | Line 35 fi |
| ] | ] |
| ) | ) |
| AC_ARG_WITH(apache13,[ --with-apache13[=D] D is the Apache13 source distribution directory | AC_ARG_WITH(apache13,[ --with-apache13=D D is the Apache13 source distribution directory |
| builds library for apache_module using that dir | builds library for apache_module using that dir |
| (do not add /src)], | (do not add /src)], |
| APACHE13=$withval | APACHE13=$withval |
| Line 47 AC_SUBST(APACHE13) | Line 47 AC_SUBST(APACHE13) |
| AM_CONDITIONAL(COMPILE_APACHE13_MODULE, test -n "$APACHE13") | AM_CONDITIONAL(COMPILE_APACHE13_MODULE, test -n "$APACHE13") |
| AC_ARG_WITH(pathlink,[ --with-pathlink[=LKEY] put dynamic libraries paths to binary | AC_ARG_WITH(pathlink,[ --with-pathlink=LKEY put dynamic libraries paths to binary |
| using linker key (-R, -rpath-link)], | using linker key (-R, -rpath-link)], |
| LD_PATHLINK=$withval | LD_PATHLINK=$withval |
| ) | ) |
| AC_ARG_WITH(gnome-xml,[ --with-gnome-xml[=D] D is the directory where | AC_ARG_WITH(glib-config,[ --with-glib-config=FILE FILE is glib library |
| configuration file (search for glib*-config)], | |
| GLIB_CONFIG=$withval | |
| ) | |
| AC_ARG_WITH(gnome-xml,[ --with-gnome-xml=D D is the directory where | |
| Gnome XML libraries are installed],[ | Gnome XML libraries are installed],[ |
| GNOME_XML=$withval | GNOME_XML=$withval |
| XMLBIN_DIR="$GNOME_XML/bin" | XMLBIN_DIR="$GNOME_XML/bin" |
| Line 81 AC_ARG_WITH(gnome-xml,[ --with-gnome-xm | Line 86 AC_ARG_WITH(gnome-xml,[ --with-gnome-xm |
| if test -z "$LIBEXSLT_SO_NAME"; then | if test -z "$LIBEXSLT_SO_NAME"; then |
| AC_MSG_ERROR($LIBXML_DIR does not containt EXSLT dynamic library) | AC_MSG_ERROR($LIBXML_DIR does not containt EXSLT dynamic library) |
| fi | fi |
| GLIB_CONFIG=$XMLBIN_DIR/glib-config | if test -z "$GLIB_CONFIG"; then |
| if test \! -x $GLIB_CONFIG; then | GLIB_CONFIG=$XMLBIN_DIR/glib-config |
| GLIB_CONFIG=glib-config | if test \! -x $GLIB_CONFIG; then |
| GLIB_CONFIG=glib-config | |
| fi | |
| fi | fi |
| GLIB_CFLAGS=`$GLIB_CONFIG --cflags` | GLIB_CFLAGS=`$GLIB_CONFIG --cflags` |
| GLIB_LIBS=`$GLIB_CONFIG --libs` | GLIB_LIBS=`$GLIB_CONFIG --libs` |
| XML_INCLUDES="$GLIB_CFLAGS -I$XMLINC_DIR -I$XMLINC_DIR/libgdome -I$XMLINC_DIR/libxml2" | XML_INCLUDES="$GLIB_CFLAGS -I$XMLINC_DIR -I$XMLINC_DIR/libgdome -I$XMLINC_DIR/libxml2" |
| XML_LIBS="-L$XMLLIB_DIR -lglib -l$LIBXML2_SO_NAME -l$LIBGDOME_SO_NAME -l$LIBXSLT_SO_NAME -l$LIBEXSLT_SO_NAME" | XML_LIBS="$GLIB_LIBS -L$XMLLIB_DIR -l$LIBXML2_SO_NAME -l$LIBGDOME_SO_NAME -l$LIBXSLT_SO_NAME -l$LIBEXSLT_SO_NAME" |
| if test \! -z "$LD_PATHLINK"; then | if test \! -z "$LD_PATHLINK"; then |
| XML_LIBS="$XML_LIBS -Wl,$LD_PATHLINK -Wl,$XMLLIB_DIR" | XML_LIBS="$XML_LIBS -Wl,$LD_PATHLINK -Wl,$XMLLIB_DIR" |
| fi | fi |
| Line 188 stdio.h \ | Line 195 stdio.h \ |
| errno.h \ | errno.h \ |
| ctype.h \ | ctype.h \ |
| math.h \ | math.h \ |
| time.h \ | time.h sys/time.h \ |
| stdlib.h \ | stdlib.h \ |
| string.h \ | string.h \ |
| direct.h \ | direct.h \ |
| Line 197 memory.h \ | Line 204 memory.h \ |
| new \ | new \ |
| sys/file.h \ | sys/file.h \ |
| sys/locking.h \ | sys/locking.h \ |
| sys/types.h | sys/types.h \ |
| sys/select.h \ | |
| sys/resource.h | |
| ) | ) |
| dnl Checks for libraries. | dnl Checks for libraries. |
| Line 231 round \ | Line 240 round \ |
| sign \ | sign \ |
| flock \ | flock \ |
| _locking \ | _locking \ |
| lockf | fcntl \ |
| lockf \ | |
| getrusage | |
| ) | ) |
| dnl We require qsort(3) and select(2). | |
| AC_CHECK_FUNCS(qsort, , AC_MSG_ERROR([No qsort library function.])) | |
| AC_CHECK_FUNCS(select, , AC_MSG_ERROR([No select library function.])) | |
| AC_MSG_CHECKING(whether compiler supports pragma pack) | AC_MSG_CHECKING(whether compiler supports pragma pack) |
| AC_TRY_COMPILE( | AC_TRY_COMPILE( |
| , | , |
| Line 278 dnl ) | Line 294 dnl ) |
| dnl Apache libs | dnl Apache libs |
| APACHE_LIBS=$LIBS | APACHE_LIBS=$LIBS |
| AC_CHECK_LIB(stdc++, __builtin_new, | dnl append stdc++ to libs list commented |
| APACHE_LIBS="$APACHE_LIBS -lstdc++" | dnl 1. because binary seem to work without it |
| ) | dnl purpose of this: remove strange name dependance |
| dnl for linker creates reference not for libstc++.xx but | |
| dnl for something specific to local system, | |
| dnl thus reducing binary compatibility | |
| dnl 2. for same reason linker of targets/cgi/parser3 changed to | |
| dnl "C" compiler from "C++" compiler | |
| dnl AC_CHECK_LIB(stdc++, __builtin_new, | |
| dnl APACHE_LIBS="$APACHE_LIBS -lstdc++" | |
| dnl ) | |
| AC_SUBST(APACHE_LIBS) | AC_SUBST(APACHE_LIBS) |
| dnl install directories | dnl install directories |
| # expand apostrophed | # expand apostrophed |
| e_prefix=$prefix | |
| test "x$e_prefix" = xNONE && e_prefix=$ac_default_prefix | |
| e_sysconfdir=$sysconfdir | e_sysconfdir=$sysconfdir |
| test "$e_sysconfdir" = "\${prefix}/etc" && e_sysconfdir="${prefix}/etc" | test "$e_sysconfdir" = "\${prefix}/etc" && e_sysconfdir="${e_prefix}/etc" |
| dnl this is used in targets/cgi/parser3.C to load root config | dnl this is used in targets/cgi/parser3.C to load root config |
| Line 319 AC_SUBST(sqldriversdir) | Line 346 AC_SUBST(sqldriversdir) |
| dnl Output makefiles | dnl Output makefiles |
| AM_CONFIG_HEADER(src/include/pa_config_auto.h) | AM_CONFIG_HEADER(src/include/pa_config_auto.h) |
| AC_OUTPUT(Makefile src/Makefile src/libltdl/Makefile src/types/Makefile src/classes/Makefile src/classes/gd/Makefile src/main/Makefile src/pcre/Makefile src/targets/Makefile src/targets/cgi/pa_config_paths.h src/targets/cgi/Makefile src/targets/apache13/Makefile src/targets/apache13/p3runConfigure etc/parser3.charsets/Makefile etc/parser3.conf etc/Makefile) | AC_OUTPUT(Makefile src/Makefile src/libltdl/Makefile src/types/Makefile src/classes/Makefile src/classes/gd/Makefile src/classes/smtp/Makefile src/include/Makefile src/main/Makefile src/sql/Makefile src/patches/Makefile src/pcre/Makefile src/targets/Makefile src/targets/cgi/pa_config_paths.h src/targets/cgi/Makefile src/targets/apache13/Makefile src/targets/apache13/p3runConfigure src/targets/isapi/Makefile etc/parser3.charsets/Makefile etc/parser3.conf etc/Makefile) |