--- parser3/configure 2012/06/11 23:12:49 1.134 +++ parser3/configure 2012/06/14 20:31:17 1.145 @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.59 for parser 3.4.2b. +# Generated by GNU Autoconf 2.59 for parser 3.4.2 RC. # # Copyright (C) 2003 Free Software Foundation, Inc. # This configure script is free software; the Free Software Foundation @@ -273,8 +273,8 @@ SHELL=${CONFIG_SHELL-/bin/sh} # Identity of this package. PACKAGE_NAME='parser' PACKAGE_TARNAME='parser' -PACKAGE_VERSION='3.4.2b' -PACKAGE_STRING='parser 3.4.2b' +PACKAGE_VERSION='3.4.2 RC' +PACKAGE_STRING='parser 3.4.2 RC' PACKAGE_BUGREPORT='' ac_unique_file="README" @@ -797,7 +797,7 @@ if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures parser 3.4.2b to adapt to many kinds of systems. +\`configure' configures parser 3.4.2 RC to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -863,7 +863,7 @@ fi if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of parser 3.4.2b:";; + short | recursive ) echo "Configuration of parser 3.4.2 RC:";; esac cat <<\_ACEOF @@ -895,16 +895,12 @@ Optional Packages: --with-pathlink=LKEY put dynamic libraries paths to binary using linker key (-R, -rpath-link) --with-sjlj-exceptions enable simple 'throw' from dynamic library - --with-shared-gc=D D is the directory where - Boehm garbage collecting library is installed (shared lib) - --with-static-gc=D D is the directory where - Boehm garbage collecting library is installed (static lib) - --with-static-pcre=D D is the directory where - PCRE library is installed (static lib) - --with-shared-xml=D D is the directory where - Gnome XML libraries are installed (shared libs) - --with-static-xml=D D is the directory where - Gnome XML libraries are installed (static libs) + --with-gc=D D is the directory where + Boehm garbage collecting library is installed + --with-pcre=D D is the directory where + PCRE library is installed + --with-xml=D D is the directory where + Gnome XML libraries are installed --with-glib-config=FILE FILE is glib library configuration file (search for glib*-config) --with-shared-mailreceive=D is the directory where @@ -1035,7 +1031,7 @@ fi test -n "$ac_init_help" && exit 0 if $ac_init_version; then cat <<\_ACEOF -parser configure 3.4.2b +parser configure 3.4.2 RC generated by GNU Autoconf 2.59 Copyright (C) 2003 Free Software Foundation, Inc. @@ -1049,7 +1045,7 @@ cat >&5 <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by parser $as_me 3.4.2b, which was +It was created by parser $as_me 3.4.2 RC, which was generated by GNU Autoconf 2.59. Invocation command line was $ $0 $@ @@ -1695,7 +1691,7 @@ fi # Define the identity of the package. PACKAGE='parser' - VERSION='3.4.2b' + VERSION='3.4.2 RC' cat >>confdefs.h <<_ACEOF @@ -1892,8 +1888,9 @@ echo "/* edit configure.in to change ver echo "#define PARSER_VERSION \"$PARSER_VERSION\"" >> $srcdir/src/include/pa_version.h.new cmp $srcdir/src/include/pa_version.h.new $srcdir/src/include/pa_version.h >/dev/null 2>&1 if test $? -ne 0 ; then - rm -f $srcdir/src/include/pa_version.h && mv $srcdir/src/include/pa_version.h.new $srcdir/src/include/pa_version.h && \ - echo Updated $srcdir/src/include/pa_version.h + mv $srcdir/src/include/pa_version.h.new $srcdir/src/include/pa_version.h + { echo "$as_me:$LINENO: WARNING: Updated $srcdir/src/include/pa_version.h" >&5 +echo "$as_me: WARNING: Updated $srcdir/src/include/pa_version.h" >&2;} else rm -f $srcdir/src/include/pa_version.h.new fi @@ -3781,34 +3778,34 @@ fi fi; -GC_LIB_NAME=gc -# Check whether --with-shared-gc or --without-shared-gc was given. -if test "${with_shared_gc+set}" = set; then - withval="$with_shared_gc" +# Check whether --with-gc or --without-gc was given. +if test "${with_gc+set}" = set; then + withval="$with_gc" - GC_LIBS="-L$withval -l$GC_LIB_NAME" -fi; + GC=$withval + GC_LIBS="$GC/libgc.la" -# Check whether --with-static-gc or --without-static-gc was given. -if test "${with_static_gc+set}" = set; then - withval="$with_static_gc" + if test -f $GC_LIBS; then + GC_OK="yes" + else + GC_LIBS="-L$GC -lgc" + fi - GC_LIBS="$withval/lib$GC_LIB_NAME.a" +else + + GC_LIBS="-lgc" + { echo "$as_me:$LINENO: WARNING: --with-gc was not specified, hoping linker would find it" >&5 +echo "$as_me: WARNING: --with-gc was not specified, hoping linker would find it" >&2;} fi; -if test -z "$GC_LIBS"; then - #undefined? use any found in system - GC_LIBS="-l$GC_LIB_NAME" - { echo "$as_me:$LINENO: WARNING: neither --with-shared/static-gc were specified, hoping linker would find it" >&5 -echo "$as_me: WARNING: neither --with-shared/static-gc were specified, hoping linker would find it" >&2;} -fi -echo "$as_me:$LINENO: checking for libgc" >&5 +if test -z "$GC_OK"; then + echo "$as_me:$LINENO: checking for libgc" >&5 echo $ECHO_N "checking for libgc... $ECHO_C" >&6 -SAVE_LIBS=$LIBS -LIBS="$LIBS $GC_LIBS" + SAVE_LIBS=$LIBS + LIBS="$LIBS $GC_LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ @@ -3816,15 +3813,11 @@ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ - - extern int GC_dont_gc; - + extern int GC_dont_gc; int main () { - - GC_dont_gc=0; - + GC_dont_gc=0; ; return 0; } @@ -3860,103 +3853,222 @@ sed 's/^/| /' conftest.$ac_ext >&5 echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 - { { echo "$as_me:$LINENO: error: please specify path to libgc: --with-shared-gc OR --with-static-gc" >&5 -echo "$as_me: error: please specify path to libgc: --with-shared-gc OR --with-static-gc" >&2;} + if test -z "$GC"; then + { { echo "$as_me:$LINENO: error: please specify path to libgc: --with-gc" >&5 +echo "$as_me: error: please specify path to libgc: --with-gc" >&2;} { (exit 1); exit 1; }; } + else + { { echo "$as_me:$LINENO: error: $GC does not seem to be valid libgc installation directory" >&5 +echo "$as_me: error: $GC does not seem to be valid libgc installation directory" >&2;} + { (exit 1); exit 1; }; } + fi fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext + LIBS=$SAVE_LIBS +fi -LIBS=$SAVE_LIBS -# Check whether --with-static-pcre or --without-static-pcre was given. -if test "${with_static_pcre+set}" = set; then - withval="$with_static_pcre" + +# Check whether --with-pcre or --without-pcre was given. +if test "${with_pcre+set}" = set; then + withval="$with_pcre" PCRE=$withval - PCREINC="$PCRE/include" - PCRELIB="$PCRE/lib" + PCRE_INCLUDES="-I$PCRE/include" + PCRE_LIBS="$PCRE/lib/libpcre.la" - if test \! -d $PCREINC -o \! -d $PCRELIB; then - { { echo "$as_me:$LINENO: error: $PCRE does not seem to be valid PCRE installation directory" >&5 -echo "$as_me: error: $PCRE does not seem to be valid PCRE installation directory" >&2;} - { (exit 1); exit 1; }; } + if test -f $PCRE/include/pcre.h -a -f $PCRE_LIBS; then + PCRE_OK="yes" + else + PCRE_LIBS="-L$PCRE -lpcre" fi - PCRE_INCLUDES="-I$PCREINC" - PCRE_LIBS="$PCRELIB/libpcre.a" -fi; +else + PCRE_LIBS="-lpcre" + { echo "$as_me:$LINENO: WARNING: --with-pcre was not specified, hoping linker would find it" >&5 +echo "$as_me: WARNING: --with-pcre was not specified, hoping linker would find it" >&2;} +fi; +if test -z "$PCRE_OK"; then + echo "$as_me:$LINENO: checking for prce" >&5 +echo $ECHO_N "checking for prce... $ECHO_C" >&6 + SAVE_LIBS=$LIBS + LIBS="$LIBS $PCRE_LIBS $PCRE_INCLUDES" + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + #include +int +main () +{ + const char *v=pcre_version(); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6 +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 -# Check whether --with-shared-xml or --without-shared-xml was given. -if test "${with_shared_xml+set}" = set; then - withval="$with_shared_xml" - - GNOME_XML=$withval - XMLBIN="$GNOME_XML/bin" - XMLINC="$GNOME_XML/include" - XMLLIB="$GNOME_XML/lib" - - if test \! -d $XMLBIN -o \! -d $XMLINC -o \! -d $XMLLIB; then - { { echo "$as_me:$LINENO: error: $GNOME_XML does not seem to be valid Gnome installation directory" >&5 -echo "$as_me: error: $GNOME_XML does not seem to be valid Gnome installation directory" >&2;} +echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 + if test -z "$PCRE"; then + { { echo "$as_me:$LINENO: error: please specify path to PCRE: --with-pcre" >&5 +echo "$as_me: error: please specify path to PCRE: --with-pcre" >&2;} { (exit 1); exit 1; }; } - fi + else + { { echo "$as_me:$LINENO: error: $PCRE does not seem to be valid PCRE installation directory" >&5 +echo "$as_me: error: $PCRE does not seem to be valid PCRE installation directory" >&2;} + { (exit 1); exit 1; }; } + fi +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LIBS=$SAVE_LIBS +fi -cat >>confdefs.h <<\_ACEOF -#define XML -_ACEOF - LIBXML2_SO_NAME=`cd $XMLLIB ; ls libxml2.?? libxml2.??? 2>/dev/null | grep -v \.la$ | sed 's/lib//' | sed 's/\..*//'` - LIBXSLT_SO_NAME=`cd $XMLLIB ; ls libxslt.?? libxslt.??? 2>/dev/null | grep -v \.la$ | sed 's/lib//' | sed 's/\..*//'` - LIBEXSLT_SO_NAME=`cd $XMLLIB ; ls libexslt.?? libexslt.??? 2>/dev/null | grep -v \.la$ | sed 's/lib//' | sed 's/\..*//'` - XML_INCLUDES="$GLIB_CFLAGS -I$XMLINC -I$XMLINC/libxml2" - XML_LIBS="-L$XMLLIB -l$LIBXML2_SO_NAME -l$LIBXSLT_SO_NAME -l$LIBEXSLT_SO_NAME" - if test \! -z "$LD_PATHLINK"; then - XML_LIBS="$XML_LIBS -Wl,$LD_PATHLINK -Wl,$XMLLIB" + + +# Check whether --with-xml or --without-xml was given. +if test "${with_xml+set}" = set; then + withval="$with_xml" + + + XML=$withval + XML_LIBS="-lxml2 -lxslt -lexslt" + + if test -z "$XML" -o "$XML" = "yes"; then + XML="" + XML_INCLUDES="-I/usr/include/libxml2" + { echo "$as_me:$LINENO: WARNING: --with-xml value was not specified, hoping linker would find it" >&5 +echo "$as_me: WARNING: --with-xml value was not specified, hoping linker would find it" >&2;} + else + XML_INCLUDES="-I$XML/include -I$XML/include/libxml2" + + if test -f $XML/include/libxslt/xslt.h -a -f $XML/lib/libxml2.la \ + -a -f $XML/lib/libxslt.la -a -f $XML/lib/libexslt.la; then + XML_LIBS="$XML/lib/libxml2.la $XML/lib/libxslt.la $XML/lib/libexslt.la" + XML_OK="yes" + fi fi -fi; + if test -z "$XML_OK"; then + echo "$as_me:$LINENO: checking for xml" >&5 +echo $ECHO_N "checking for xml... $ECHO_C" >&6 + SAVE_LIBS=$LIBS + LIBS="$LIBS $XML_LIBS $XML_INCLUDES" + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + #include +int +main () +{ + const char *v=xsltEngineVersion; + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6 + +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 -# Check whether --with-static-xml or --without-static-xml was given. -if test "${with_static_xml+set}" = set; then - withval="$with_static_xml" - - GNOME_XML=$withval - XMLBIN="$GNOME_XML/bin" - XMLINC="$GNOME_XML/include" - XMLLIB="$GNOME_XML/lib" - - if test \! -d $XMLBIN -o \! -d $XMLINC -o \! -d $XMLLIB; then - { { echo "$as_me:$LINENO: error: $GNOME_XML does not seem to be valid Gnome installation directory" >&5 -echo "$as_me: error: $GNOME_XML does not seem to be valid Gnome installation directory" >&2;} +echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 + if test -z "$XML"; then + { { echo "$as_me:$LINENO: error: please specify path to Gnome XML libraries: --with-xml" >&5 +echo "$as_me: error: please specify path to Gnome XML libraries: --with-xml" >&2;} { (exit 1); exit 1; }; } - fi + else + { { echo "$as_me:$LINENO: error: $XML does not seem to be valid Gnome XML installation directory" >&5 +echo "$as_me: error: $XML does not seem to be valid Gnome XML installation directory" >&2;} + { (exit 1); exit 1; }; } + fi +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LIBS=$SAVE_LIBS + fi cat >>confdefs.h <<\_ACEOF #define XML _ACEOF - XML_INCLUDES="$GLIB_CFLAGS -I$XMLINC -I$XMLINC/libxml2" - XML_LIBS="$XMLLIB/libxslt.a $XMLLIB/libexslt.a $XMLLIB/libxml2.a" - fi; + # Check whether --with-glib-config or --without-glib-config was given. if test "${with_glib_config+set}" = set; then withval="$with_glib_config" @@ -4043,7 +4155,7 @@ _ACEOF GLIB_DIR=`$GLIB_CONFIG --libs | sed 's/.*-L\([^ ]*\).*/\1/'` GLIB_NAME=`$GLIB_CONFIG --libs | sed 's/.*-l\([^ ]*\).*/\1/'` MIME_INCLUDES="$GLIB_CFLAGS -I$MIMEINC/gmime" - MIME_LIBS="$MIMELIB/libgmime.a $GLIB_DIR/lib$GLIB_NAME.a" + MIME_LIBS="$MIMELIB/libgmime.la $GLIB_DIR/lib$GLIB_NAME.la" fi; @@ -4072,19 +4184,17 @@ if test "${with_apache+set}" = set; then if test -z "$APXS" -o "$APXS" = "yes"; then APXS=`which apxs 2>/dev/null` - fi; + if test -z "$APXS"; then + APXS=`which apxs2 2>/dev/null` + fi + fi APACHE=`$APXS -q TARGET 2>/dev/null` if test -z "$APACHE"; then - APXS=`which apxs2 2>/dev/null` - APACHE=`$APXS -q TARGET 2>/dev/null` - - if test -z "$APACHE"; then - { { echo "$as_me:$LINENO: error: $APXS does not seem to be valid apache apxs utility path" >&5 + { { echo "$as_me:$LINENO: error: $APXS does not seem to be valid apache apxs utility path" >&5 echo "$as_me: error: $APXS does not seem to be valid apache apxs utility path" >&2;} { (exit 1); exit 1; }; } - fi fi APACHE_MAIN_INC=`$APXS -q INCLUDEDIR` @@ -7913,6 +8023,36 @@ test -z "$OBJDUMP" && OBJDUMP=objdump +# Check whether --with-pic or --without-pic was given. +if test "${with_pic+set}" = set; then + withval="$with_pic" + lt_p=${PACKAGE-default} + case $withval in + yes|no) pic_mode=$withval ;; + *) + pic_mode=default + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for lt_pkg in $withval; do + IFS="$lt_save_ifs" + if test "X$lt_pkg" = "X$lt_p"; then + pic_mode=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac +else + pic_mode=default +fi; + +test -z "$pic_mode" && pic_mode=no + + + + + + @@ -7980,37 +8120,6 @@ fi; -# Check whether --with-pic or --without-pic was given. -if test "${with_pic+set}" = set; then - withval="$with_pic" - lt_p=${PACKAGE-default} - case $withval in - yes|no) pic_mode=$withval ;; - *) - pic_mode=default - # Look at the argument we got. We use all the common list separators. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," - for lt_pkg in $withval; do - IFS="$lt_save_ifs" - if test "X$lt_pkg" = "X$lt_p"; then - pic_mode=yes - fi - done - IFS="$lt_save_ifs" - ;; - esac -else - pic_mode=default -fi; - -test -z "$pic_mode" && pic_mode=default - - - - - - - # Check whether --enable-fast-install or --disable-fast-install was given. if test "${enable_fast_install+set}" = set; then enableval="$enable_fast_install" @@ -20300,7 +20409,7 @@ _ASBOX } >&5 cat >&5 <<_CSEOF -This file was extended by parser $as_me 3.4.2b, which was +This file was extended by parser $as_me 3.4.2 RC, which was generated by GNU Autoconf 2.59. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -20363,7 +20472,7 @@ _ACEOF cat >>$CONFIG_STATUS <<_ACEOF ac_cs_version="\\ -parser config.status 3.4.2b +parser config.status 3.4.2 RC configured by $0, generated by GNU Autoconf 2.59, with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" @@ -20477,9 +20586,9 @@ macro_revision='`$ECHO "$macro_revision" AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' +pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' -pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' @@ -21841,15 +21950,15 @@ DLLTOOL=$lt_DLLTOOL # Object dumper program. OBJDUMP=$lt_OBJDUMP +# What type of objects to build. +pic_mode=$pic_mode + # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static -# What type of objects to build. -pic_mode=$pic_mode - # Whether or not to optimize for fast installation. fast_install=$enable_fast_install