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

version 1.14, 2003/08/18 08:27:30 version 1.26, 2009/08/23 05:39:04
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(parser3oracle, 3.1.HEAD, nodefine)  AM_INIT_AUTOMAKE(parser3oracle, 10.0, nodefine)
   
 AM_CONFIG_HEADER(config_auto.h)  AM_CONFIG_HEADER(config_auto.h)
   
Line 28  if test \! -f "$ORACLE_PUBLIC_INC/nzt.h" Line 28  if test \! -f "$ORACLE_PUBLIC_INC/nzt.h"
 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"
   ])
   
   AC_SUBST(LDFLAGS)
   
   
 dnl Checks for programs.  dnl Checks for programs.
 AC_PROG_INSTALL  AC_PROG_INSTALL
 AC_PROG_MAKE_SET  AC_PROG_MAKE_SET
 AC_PROG_AWK  AC_PROG_AWK
   
 AC_LANG_CPLUSPLUS   
 AC_PROG_CXX  AC_PROG_CXX
   AC_PROG_CC
   
   dnl most tests should be compiled with C compiler [especially qsort test]
   AC_LANG_C 
   
   
 dnl Enable building of the convenience library  dnl Enable building of the convenience library
 dnl and set LIBLTDL accordingly  dnl and set LIBLTDL accordingly
Line 64  setjmp.h Line 77  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 82  if(strcmp(getenv_value, TEST_VALUE)!=0) Line 95  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.

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


E-mail: