Diff for /sql/oracle/Attic/configure.in between versions 1.12 and 1.30

version 1.12, 2002/12/16 10:36:27 version 1.30, 2012/06/09 22:40:21
Line 1 Line 1
 dnl Process this file with autoconf to produce a configure script.  dnl Autoconf initialisation
 AC_INIT(parser3oracle.C)  AC_PREREQ(2.59)
 AM_INIT_AUTOMAKE(parser3oracle, 3.0.HEAD, nodefine)  AC_INIT(parser3, 10.2)
   AC_CONFIG_SRCDIR(parser3oracle.C)
 AM_CONFIG_HEADER(config_auto.h)  AM_CONFIG_HEADER(config_auto.h)
   
 dnl Arguments  dnl Automake Initialisation
   AM_INIT_AUTOMAKE
   
   dnl Arguments
 AC_ARG_WITH(oracleoci-inc,[  --with-oracleoci-inc[=DIR]      DIR is the Oracle OCI includes directory],,  AC_ARG_WITH(oracleoci-inc,[  --with-oracleoci-inc[=DIR]      DIR is the Oracle OCI includes directory],,
         withval="$ORACLE_HOME/rdbms/demo"          withval="$ORACLE_HOME/rdbms/demo"
 )  )
   
 ORACLE_OCI_INC=$withval  ORACLE_OCI_INC=$withval
 AC_SUBST(ORACLE_OCI_INC)  AC_SUBST(ORACLE_OCI_INC)
   
Line 16  if test \! -f "$ORACLE_OCI_INC/oci.h"; t Line 19  if test \! -f "$ORACLE_OCI_INC/oci.h"; t
         AC_MSG_ERROR($ORACLE_OCI_INC does not seem to be valid Oracle OCI includes directory)          AC_MSG_ERROR($ORACLE_OCI_INC does not seem to be valid Oracle OCI includes directory)
 fi  fi
   
   
 AC_ARG_WITH(oraclepublic-inc,[  --with-oraclepublic-inc[=DIR]      DIR is the Oracle public includes directory],,  AC_ARG_WITH(oraclepublic-inc,[  --with-oraclepublic-inc[=DIR]      DIR is the Oracle public includes directory],,
         withval="$ORACLE_HOME/network/public"          withval="$ORACLE_HOME/network/public"
 )  )
   
 ORACLE_PUBLIC_INC=$withval  ORACLE_PUBLIC_INC=$withval
 AC_SUBST(ORACLE_PUBLIC_INC)  AC_SUBST(ORACLE_PUBLIC_INC)
   
Line 27  if test \! -f "$ORACLE_PUBLIC_INC/nzt.h" Line 30  if test \! -f "$ORACLE_PUBLIC_INC/nzt.h"
         AC_MSG_ERROR($ORACLE_PUBLIC_INC does not seem to be valid Oracle public includes directory)          AC_MSG_ERROR($ORACLE_PUBLIC_INC does not seem to be valid Oracle public includes directory)
 fi  fi
   
   AC_ARG_WITH(dynamic-stdcpp, [  --with-dynamic-stdcpp   link libstdc++ dynamically
                             by default, libstdc++ is linked statically],[
                   LDFLAGS="-lstdc++"
   ],[
                   LDFLAGS="-Wl,-Bstatic -Wl,-lstdc++ -Wl,-Bdynamic"
   ])
   
 dnl Checks for programs.  AC_SUBST(LDFLAGS)
 AC_PROG_INSTALL  
 AC_PROG_MAKE_SET  
 AC_PROG_AWK  
   
 AC_LANG_CPLUSPLUS   dnl Checks for programs
   AC_PROG_INSTALL
 AC_PROG_CXX  AC_PROG_CXX
   AC_PROG_CC
   
 dnl Enable building of the convenience library  dnl Enable building of the convenience library
 dnl and set LIBLTDL accordingly  LT_CONFIG_LTDL_DIR(libltdl)
 AC_LIBLTDL_CONVENIENCE  LT_INIT(dlopen win32-dll)
 dnl Substitute INCLTDL and LIBLTDL in the Makefiles  LTDL_INIT
 AC_SUBST(INCLTDL)  
 AC_SUBST(LIBLTDL)  
 AC_SUBST(LIBADD_DL)  
 dnl Check for dlopen support  
 AC_LIBTOOL_DLOPEN  
 dnl Configure libtool  dnl Configure libtool
 AC_DISABLE_STATIC  AC_DISABLE_STATIC
 AC_LIBTOOL_WIN32_DLL  
 AM_PROG_LIBTOOL  
 dnl Configure libltdl  
 AC_CONFIG_SUBDIRS(libltdl)  
   
 dnl Checks for libraries.  dnl Checks for libraries
   
 dnl Checks for header files.  
   
   dnl Checks for header files
 AC_CHECK_HEADERS(  AC_CHECK_HEADERS(
 stdio.h \  stdio.h \
 stdlib.h \  stdlib.h \
Line 66  setjmp.h Line 65  setjmp.h
 )  )
   
 AC_MSG_CHECKING(for BSD setenv/getenv/unsetenv)  AC_MSG_CHECKING(for BSD setenv/getenv/unsetenv)
 AC_TRY_COMPILE(  AC_TRY_LINK(
 #ifdef HAVE_STDLIB_H  #ifdef HAVE_STDLIB_H
 #       include <stdlib.h>  #       include <stdlib.h>
 #endif  #endif
Line 84  if(strcmp(getenv_value, TEST_VALUE)!=0) Line 83  if(strcmp(getenv_value, TEST_VALUE)!=0)
         return 2;          return 2;
 unsetenv(TEST_NAME);  unsetenv(TEST_NAME);
 ,[  ,[
     AC_MSG_RESULT(yes)          AC_MSG_RESULT(yes)
         AC_DEFINE(HAVE_SETENV,,library has BSD setenv/unsetenv)          AC_DEFINE(HAVE_SETENV,,library has BSD setenv/unsetenv)
 ],                ],              
     AC_MSG_RESULT(no)          AC_MSG_RESULT(no)
   
     AC_MSG_CHECKING(for POSIX putenv/getenv)          AC_MSG_CHECKING(for POSIX putenv/getenv)
     AC_TRY_COMPILE(          AC_TRY_LINK(
     #ifdef HAVE_STDLIB_H          #ifdef HAVE_STDLIB_H
     #   include <stdlib.h>          #       include <stdlib.h>
     #endif          #endif
     #ifdef HAVE_STRING_H          #ifdef HAVE_STRING_H
     #   include <string.h>          #       include <string.h>
     #endif          #endif
     ,          ,
     #define TEST_NAME "oracle-configure-test-var"          #define TEST_NAME "oracle-configure-test-var"
     #define TEST_VALUE "oracle-configure-test-value"          #define TEST_VALUE "oracle-configure-test-value"
     int result=putenv(TEST_NAME"="TEST_VALUE);          int result=putenv(TEST_NAME"="TEST_VALUE);
     char *getenv_value=getenv(TEST_NAME);          char *getenv_value=getenv(TEST_NAME);
     if(!getenv_value)          if(!getenv_value)
         return 1;                  return 1;
     if(strcmp(getenv_value, TEST_NAME)!=0)          if(strcmp(getenv_value, TEST_NAME)!=0)
         return 2;                  return 2;
     ,[          ,[
         AC_MSG_RESULT(yes)                  AC_MSG_RESULT(yes)
         AC_DEFINE(HAVE_PUTENV,,library has POSIX putenv)                  AC_DEFINE(HAVE_PUTENV,,library has POSIX putenv)
     ],                    ],              
         AC_MSG_RESULT(no)                  AC_MSG_RESULT(no)
         AC_MSG_ERROR("there must be some function to modify environment")                  AC_MSG_ERROR("there must be some function to modify environment")
     )          )
 )  )
   
 dnl Checks for typedefs, structures, and compiler characteristics.  dnl Checks for typedefs, structures, and compiler characteristics
   
 AC_TYPE_SIZE_T  AC_TYPE_SIZE_T
   
 dnl Checks for library functions.  dnl Checks for library functions
   
 dnl Output makefiles  dnl Output makefiles
   
 AC_OUTPUT(Makefile)  AC_OUTPUT(Makefile)

Removed from v.1.12  
changed lines
  Added in v.1.30


E-mail: