Develop and Download Open Source Software

Browse CVS Repository

Diff of /xoonips/AL/configure

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.7 by orrisroot, Wed Jul 6 10:50:51 2005 UTC revision 1.8 by orrisroot, Wed Jul 6 13:40:09 2005 UTC
# Line 1041  Optional Features: Line 1041  Optional Features:
1041    --disable-libtool-lock  avoid locking (might break parallel builds)    --disable-libtool-lock  avoid locking (might break parallel builds)
1042    --disable-xmltest       Do not try to compile and run a test LIBXML program    --disable-xmltest       Do not try to compile and run a test LIBXML program
1043    --disable-xml-query-bug-version-check    --disable-xml-query-bug-version-check
1044                            disable version check of GET query bug for                            disable library version check for GET query bug in
1045                            libxml2-2.6.19                            libxml2-2.6.19
1046    --enable-syslog         Enable logging to syslog    --enable-syslog         Enable logging to syslog
1047    
# Line 18768  LIBTOOL='$(SHELL) $(top_builddir)/libtoo Line 18768  LIBTOOL='$(SHELL) $(top_builddir)/libtoo
18768    
18769    
18770    
18771    
18772    
18773  # Check whether --with-xml-prefix or --without-xml-prefix was given.  # Check whether --with-xml-prefix or --without-xml-prefix was given.
18774  if test "${with_xml_prefix+set}" = set; then  if test "${with_xml_prefix+set}" = set; then
18775    withval="$with_xml_prefix"    withval="$with_xml_prefix"
# Line 18844  else Line 18846  else
18846  echo "${ECHO_T}no" >&6  echo "${ECHO_T}no" >&6
18847  fi  fi
18848    
18849    min_xml_version=2.0.0    min_xml_version=2.6.17
18850    echo "$as_me:$LINENO: checking for libxml - version >= $min_xml_version" >&5    echo "$as_me:$LINENO: checking for libxml - version >= $min_xml_version" >&5
18851  echo $ECHO_N "checking for libxml - version >= $min_xml_version... $ECHO_C" >&6  echo $ECHO_N "checking for libxml - version >= $min_xml_version... $ECHO_C" >&6
18852    no_xml=""    no_xml=""
# Line 19066  rm -f conftest.$ac_objext conftest$ac_ex Line 19068  rm -f conftest.$ac_objext conftest$ac_ex
19068  if test "${enable_xml_query_bug_version_check+set}" = set; then  if test "${enable_xml_query_bug_version_check+set}" = set; then
19069    enableval="$enable_xml_query_bug_version_check"    enableval="$enable_xml_query_bug_version_check"
19070    
 else  
   disable_xml_query_bug_version_check="yes"  
 fi;  
   
 if  x"$disable_xml_query_bug_version_check" = x"" ; then  
   disable_xml_query_bug_version_check="no"  
 fi  
   
 echo $disable_xml_query_bug_version_check;  
   
   
 # Check whether --with-xml-prefix or --without-xml-prefix was given.  
 if test "${with_xml_prefix+set}" = set; then  
   withval="$with_xml_prefix"  
   xml_config_prefix="$withval"  
 else  
   xml_config_prefix=""  
 fi;  
   
 # Check whether --with-xml-exec-prefix or --without-xml-exec-prefix was given.  
 if test "${with_xml_exec_prefix+set}" = set; then  
   withval="$with_xml_exec_prefix"  
   xml_config_exec_prefix="$withval"  
 else  
   xml_config_exec_prefix=""  
 fi;  
 # Check whether --enable-xmltest or --disable-xmltest was given.  
 if test "${enable_xmltest+set}" = set; then  
   enableval="$enable_xmltest"  
   
 else  
   enable_xmltest=yes  
19071  fi;  fi;
19072    test "x$enable_xml_query_bug_version_check" = "x" && enable_xml_query_bug_version_check=yes
19073    
19074    if test x$xml_config_exec_prefix != x ; then  if test "x$enable_xml_query_bug_version_check" = "xyes" ; then
19075       xml_config_args="$xml_config_args"    xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
      if test x${XML2_CONFIG+set} != xset ; then  
         XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config  
      fi  
   fi  
   if test x$xml_config_prefix != x ; then  
      xml_config_args="$xml_config_args --prefix=$xml_config_prefix"  
      if test x${XML2_CONFIG+set} != xset ; then  
         XML2_CONFIG=$xml_config_prefix/bin/xml2-config  
      fi  
   fi  
   
   # Extract the first word of "xml2-config", so it can be a program name with args.  
 set dummy xml2-config; ac_word=$2  
 echo "$as_me:$LINENO: checking for $ac_word" >&5  
 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6  
 if test "${ac_cv_path_XML2_CONFIG+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
   case $XML2_CONFIG in  
   [\\/]* | ?:[\\/]*)  
   ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.  
   ;;  
   *)  
   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR  
 for as_dir in $PATH  
 do  
   IFS=$as_save_IFS  
   test -z "$as_dir" && as_dir=.  
   for ac_exec_ext in '' $ac_executable_extensions; do  
   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then  
     ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"  
     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5  
     break 2  
   fi  
 done  
 done  
   
   test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"  
   ;;  
 esac  
 fi  
 XML2_CONFIG=$ac_cv_path_XML2_CONFIG  
   
 if test -n "$XML2_CONFIG"; then  
   echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5  
 echo "${ECHO_T}$XML2_CONFIG" >&6  
 else  
   echo "$as_me:$LINENO: result: no" >&5  
 echo "${ECHO_T}no" >&6  
 fi  
   
   min_xml_version=2.6.17  
   echo "$as_me:$LINENO: checking for libxml - version >= $min_xml_version" >&5  
 echo $ECHO_N "checking for libxml - version >= $min_xml_version... $ECHO_C" >&6  
   no_xml=""  
   if test "$XML2_CONFIG" = "no" ; then  
     no_xml=yes  
   else  
     XML_CPPFLAGS=`$XML2_CONFIG $xml_config_args --cflags`  
     XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`  
     xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \  
            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`  
     xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \  
            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`  
     xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \  
            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`  
     if test "x$enable_xmltest" = "xyes" ; then  
       ac_save_CPPFLAGS="$CPPFLAGS"  
       ac_save_LIBS="$LIBS"  
       CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"  
       LIBS="$XML_LIBS $LIBS"  
       rm -f conf.xmltest  
       if test "$cross_compiling" = yes; then  
   echo $ac_n "cross compiling; assumed OK... $ac_c"  
 else  
   cat >conftest.$ac_ext <<_ACEOF  
 #line $LINENO "configure"  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
   
 #include <stdlib.h>  
 #include <stdio.h>  
 #include <string.h>  
 #include <libxml/xmlversion.h>  
   
 int  
 main()  
 {  
   int xml_major_version, xml_minor_version, xml_micro_version;  
   int major, minor, micro;  
   char *tmp_version;  
   
   system("touch conf.xmltest");  
   
   /* Capture xml2-config output via autoconf/configure variables */  
   /* HP/UX 9 (%@#!) writes to sscanf strings */  
   tmp_version = (char *)strdup("$min_xml_version");  
   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {  
      printf("%s, bad version string from xml2-config\n", "$min_xml_version");  
      exit(1);  
    }  
    free(tmp_version);  
   
    /* Capture the version information from the header files */  
    tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);  
    if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {  
      printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");  
      exit(1);  
    }  
    free(tmp_version);  
   
  /* Compare xml2-config output to the libxml headers */  
   if ((xml_major_version != $xml_config_major_version) ||  
       (xml_minor_version != $xml_config_minor_version) ||  
       (xml_micro_version != $xml_config_micro_version))  
     {  
       printf("*** libxml header files (version %d.%d.%d) do not match\n",  
          xml_major_version, xml_minor_version, xml_micro_version);  
       printf("*** xml2-config (version %d.%d.%d)\n",  
          $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);  
       return 1;  
     }  
 /* Compare the headers to the library to make sure we match */  
   /* Less than ideal -- doesn't provide us with return value feedback,  
    * only exits if there's a serious mismatch between header and library.  
    */  
     LIBXML_TEST_VERSION;  
   
     /* Test that the library is greater than our minimum version */  
     if ((xml_major_version > major) ||  
         ((xml_major_version == major) && (xml_minor_version > minor)) ||  
         ((xml_major_version == major) && (xml_minor_version == minor) &&  
         (xml_micro_version >= micro)))  
       {  
         return 0;  
        }  
      else  
       {  
         printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",  
                xml_major_version, xml_minor_version, xml_micro_version);  
         printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",  
            major, minor, micro);  
         printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");  
         printf("***\n");  
         printf("*** If you have already installed a sufficiently new version, this error\n");  
         printf("*** probably means that the wrong copy of the xml2-config shell script is\n");  
         printf("*** being found. The easiest way to fix this is to remove the old version\n");  
         printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");  
         printf("*** correct copy of xml2-config. (In this case, you will have to\n");  
         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");  
         printf("*** so that the correct libraries are found at run-time))\n");  
     }  
   return 1;  
 }  
   
 _ACEOF  
 rm -f conftest$ac_exeext  
 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  
   (eval $ac_link) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } && { ac_try='./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  
   :  
 else  
   echo "$as_me: program exited with status $ac_status" >&5  
 echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ( exit $ac_status )  
 no_xml=yes  
 fi  
 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext  
 fi  
        CPPFLAGS="$ac_save_CPPFLAGS"  
        LIBS="$ac_save_LIBS"  
      fi  
   fi  
   
   if test "x$no_xml" = x ; then  
      echo "$as_me:$LINENO: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5  
 echo "${ECHO_T}yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6  
      :  
   else  
      echo "$as_me:$LINENO: result: no" >&5  
 echo "${ECHO_T}no" >&6  
      if test "$XML2_CONFIG" = "no" ; then  
        echo "*** The xml2-config script installed by LIBXML could not be found"  
        echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"  
        echo "*** your path, or set the XML2_CONFIG environment variable to the"  
        echo "*** full path to xml2-config."  
      else  
        if test -f conf.xmltest ; then  
         :  
        else  
           echo "*** Could not run libxml test program, checking why..."  
           CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"  
           LIBS="$LIBS $XML_LIBS"  
           cat >conftest.$ac_ext <<_ACEOF  
 #line $LINENO "configure"  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
   
 #include <libxml/xmlversion.h>  
 #include <stdio.h>  
   
 int  
 main ()  
 {  
  LIBXML_TEST_VERSION; return 0;  
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext conftest$ac_exeext  
 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  
   (eval $ac_link) 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 "*** The test program compiled, but did not run. This usually means"  
           echo "*** that the run-time linker is not finding LIBXML or finding the wrong"  
           echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"  
           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"  
           echo "*** to the installed location  Also, make sure you have run ldconfig if that"  
           echo "*** is required on your system"  
           echo "***"  
           echo "*** If you have an old version installed, it is best to remove it, although"  
           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
  echo "*** The test program failed to compile or link. See the file config.log for the"  
           echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"  
           echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"  
           echo "*** may want to edit the xml2-config script: $XML2_CONFIG"  
 fi  
 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext  
           CPPFLAGS="$ac_save_CPPFLAGS"  
           LIBS="$ac_save_LIBS"  
        fi  
      fi  
   
      XML_CPPFLAGS=""  
      XML_LIBS=""  
      :  
   fi  
   
   
   rm -f conf.xmltest  
   
   
 xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \  
19076         sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`         sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
19077  xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \    xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
19078         sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`         sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
19079  xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \    xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
19080         sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`         sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
   
 if test "$disable_xml_query_bug_version_check" != "yes"; then  
19081    if test $xml_config_major_version -eq 2 && \    if test $xml_config_major_version -eq 2 && \
19082       test $xml_config_minor_version -eq 6 && \       test $xml_config_minor_version -eq 6 && \
19083       test $xml_config_micro_version -eq 19 ; then       test $xml_config_micro_version -eq 19 ; then

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26