Diff for /sql/oracle/Attic/configure.in between versions 1.4 and 1.14

version 1.4, 2001/10/29 08:36:57 version 1.14, 2003/08/18 08:27:30
Line 1 Line 1
 dnl Process this file with autoconf to produce a configure script.  dnl Process this file with autoconf to produce a configure script.
 AC_INIT(parser3oracle.C)  AC_INIT(parser3oracle.C)
 AM_INIT_AUTOMAKE(parser3oracleclient, 3.0g, nodefine)  AM_INIT_AUTOMAKE(parser3oracle, 3.1.HEAD, nodefine)
   
 AM_CONFIG_HEADER(config_auto.h)  AM_CONFIG_HEADER(config_auto.h)
   
Line 36  AC_PROG_AWK Line 36  AC_PROG_AWK
 AC_LANG_CPLUSPLUS   AC_LANG_CPLUSPLUS 
 AC_PROG_CXX  AC_PROG_CXX
   
 AC_DEFUN(GCC_OPTION,  
 [  
     AC_MSG_CHECKING(whether gcc accepts $1)  
     save_CXXFLAGS=$CXXFLAGS  
     CXXFLAGS="$save_CXXFLAGS $1"  
     AC_TRY_COMPILE(,,  
         AC_MSG_RESULT(yes)  
         dnl leave CXXFLAGS  
     ,             
         AC_MSG_RESULT(no)  
         CXXFLAGS=$save_CXXFLAGS  
     )  
 ])  
   
 if test "z$GXX" = "zyes"; then  
         dnl Versions of GCC up to 2.8.0 required -fhandle-exceptions, but it is  
         dnl the default in versions 2.8.0 and after.  
     dnl GCC_OPTION(-fhandle-exceptions)  
     GCC_OPTION(-fno-rtti)  
 fi  
   
 dnl Enable building of the convenience library  dnl Enable building of the convenience library
 dnl and set LIBLTDL accordingly  dnl and set LIBLTDL accordingly
 AC_LIBLTDL_CONVENIENCE  AC_LIBLTDL_CONVENIENCE
Line 64  dnl Substitute INCLTDL and LIBLTDL in th Line 43  dnl Substitute INCLTDL and LIBLTDL in th
 AC_SUBST(INCLTDL)  AC_SUBST(INCLTDL)
 AC_SUBST(LIBLTDL)  AC_SUBST(LIBLTDL)
 AC_SUBST(LIBADD_DL)  AC_SUBST(LIBADD_DL)
 dnl Check for dlopen support  
 AC_LIBTOOL_DLOPEN  
 dnl Configure libtool  dnl Configure libtool
 AM_PROG_LIBTOOL  AC_DISABLE_STATIC
   AC_LIBTOOL_WIN32_DLL
   AC_PROG_LIBTOOL
 dnl Configure libltdl  dnl Configure libltdl
 AC_CONFIG_SUBDIRS(libltdl)  AC_CONFIG_SUBDIRS(libltdl)
   
Line 84  ctype.h \ Line 63  ctype.h \
 setjmp.h  setjmp.h
 )  )
   
   AC_MSG_CHECKING(for BSD setenv/getenv/unsetenv)
   AC_TRY_COMPILE(
   #ifdef HAVE_STDLIB_H
   #       include <stdlib.h>
   #endif
   #ifdef HAVE_STRING_H
   #       include <string.h>
   #endif
   ,
   #define TEST_NAME "oracle-configure-test-var"
   #define TEST_VALUE "oracle-configure-test-value"
   int result=setenv(TEST_NAME, TEST_VALUE, 1/*overwrite*/);
   char *getenv_value=getenv(TEST_NAME);
   if(!getenv_value)
           return 1;
   if(strcmp(getenv_value, TEST_VALUE)!=0)
           return 2;
   unsetenv(TEST_NAME);
   ,[
       AC_MSG_RESULT(yes)
           AC_DEFINE(HAVE_SETENV,,library has BSD setenv/unsetenv)
   ],              
       AC_MSG_RESULT(no)
   
       AC_MSG_CHECKING(for POSIX putenv/getenv)
       AC_TRY_COMPILE(
       #ifdef HAVE_STDLIB_H
       #   include <stdlib.h>
       #endif
       #ifdef HAVE_STRING_H
       #   include <string.h>
       #endif
       ,
       #define TEST_NAME "oracle-configure-test-var"
       #define TEST_VALUE "oracle-configure-test-value"
       int result=putenv(TEST_NAME"="TEST_VALUE);
       char *getenv_value=getenv(TEST_NAME);
       if(!getenv_value)
           return 1;
       if(strcmp(getenv_value, TEST_NAME)!=0)
           return 2;
       ,[
           AC_MSG_RESULT(yes)
           AC_DEFINE(HAVE_PUTENV,,library has POSIX putenv)
       ],          
           AC_MSG_RESULT(no)
           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
Line 92  dnl Checks for library functions. Line 121  dnl Checks for library functions.
   
 dnl Output makefiles  dnl Output makefiles
   
 AC_OUTPUT(libltdl/Makefile Makefile)  AC_OUTPUT(Makefile)

Removed from v.1.4  
changed lines
  Added in v.1.14


E-mail: