--- parser3/configure 2012/06/12 20:18:20 1.136 +++ parser3/configure 2012/06/13 21:47:39 1.143 @@ -878,10 +878,10 @@ Optional Features: (file::exec, file::cgi, unix mail:send) --disable-stringstream to disable stringstream usage. when disabled table.save use more memory but it's safer on freebsd 4.x - --enable-static[=PKGS] - build static libraries [default=no] --enable-shared[=PKGS] build shared libraries [default=yes] + --enable-static[=PKGS] + build static libraries [default=yes] --enable-fast-install[=PKGS] optimize for fast installation [default=yes] --disable-libtool-lock avoid locking (might break parallel builds) @@ -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 @@ -3781,34 +3777,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 + +else - GC_LIBS="$withval/lib$GC_LIB_NAME.a" + 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 +3812,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 +3852,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 -# 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;} +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +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 +4154,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 +4183,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` @@ -7647,35 +7756,6 @@ func_stripname_cnf () # Set options -# Check whether --enable-static or --disable-static was given. -if test "${enable_static+set}" = set; then - enableval="$enable_static" - p=${PACKAGE-default} - case $enableval in - yes) enable_static=yes ;; - no) enable_static=no ;; - *) - enable_static=no - # Look at the argument we got. We use all the common list separators. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," - for pkg in $enableval; do - IFS="$lt_save_ifs" - if test "X$pkg" = "X$p"; then - enable_static=yes - fi - done - IFS="$lt_save_ifs" - ;; - esac -else - enable_static=no -fi; - - - - - - enable_dlopen=yes enable_win32_dll=yes @@ -7977,6 +8057,36 @@ fi; + # Check whether --enable-static or --disable-static was given. +if test "${enable_static+set}" = set; then + enableval="$enable_static" + p=${PACKAGE-default} + case $enableval in + yes) enable_static=yes ;; + no) enable_static=no ;; + *) + enable_static=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_static=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac +else + enable_static=yes +fi; + + + + + + + # Check whether --with-pic or --without-pic was given. @@ -15719,6 +15829,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu # Only expand once: +#LT_INIT(disable-shared dlopen win32-dll) echo "$as_me:$LINENO: checking which extension is used for runtime loadable modules" >&5 echo $ECHO_N "checking which extension is used for runtime loadable modules... $ECHO_C" >&6 if test "${libltdl_cv_shlibext+set}" = set; then @@ -20473,11 +20584,11 @@ double_quote_subst='$double_quote_subst' delay_variable_subst='$delay_variable_subst' macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' -enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' OBJDUMP='`$ECHO "$OBJDUMP" | $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"`' @@ -21831,9 +21942,6 @@ available_tags="CXX " macro_version=$macro_version macro_revision=$macro_revision -# Whether or not to build static libraries. -build_old_libs=$enable_static - # Assembler program. AS=$lt_AS @@ -21846,6 +21954,9 @@ OBJDUMP=$lt_OBJDUMP # 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