Annotation of sql/oracle/configure.in, revision 1.22
1.1 parser 1: dnl Process this file with autoconf to produce a configure script.
2: AC_INIT(parser3oracle.C)
1.22 ! paf 3: AM_INIT_AUTOMAKE(parser3oracle, 9.0, nodefine)
1.1 parser 4:
5: AM_CONFIG_HEADER(config_auto.h)
6:
7: dnl Arguments
8:
1.2 parser 9: AC_ARG_WITH(oracleoci-inc,[ --with-oracleoci-inc[=DIR] DIR is the Oracle OCI includes directory],,
1.1 parser 10: withval="$ORACLE_HOME/rdbms/demo"
11: )
1.2 parser 12: ORACLE_OCI_INC=$withval
13: AC_SUBST(ORACLE_OCI_INC)
1.1 parser 14:
1.2 parser 15: if test \! -f "$ORACLE_OCI_INC/oci.h"; then
16: AC_MSG_ERROR($ORACLE_OCI_INC does not seem to be valid Oracle OCI includes directory)
17: fi
18:
19:
20: AC_ARG_WITH(oraclepublic-inc,[ --with-oraclepublic-inc[=DIR] DIR is the Oracle public includes directory],,
1.1 parser 21: withval="$ORACLE_HOME/network/public"
22: )
1.2 parser 23: ORACLE_PUBLIC_INC=$withval
24: AC_SUBST(ORACLE_PUBLIC_INC)
25:
26: if test \! -f "$ORACLE_PUBLIC_INC/nzt.h"; then
27: AC_MSG_ERROR($ORACLE_PUBLIC_INC does not seem to be valid Oracle public includes directory)
28: fi
1.1 parser 29:
30:
31: dnl Checks for programs.
32: AC_PROG_INSTALL
33: AC_PROG_MAKE_SET
34: AC_PROG_AWK
1.17 paf 35: AC_PROG_CXX
36: AC_PROG_CC
37:
38: dnl most tests should be compiled with C compiler [especially qsort test]
39: AC_LANG_C
1.1 parser 40:
41:
42: dnl Enable building of the convenience library
43: dnl and set LIBLTDL accordingly
44: AC_LIBLTDL_CONVENIENCE
45: dnl Substitute INCLTDL and LIBLTDL in the Makefiles
46: AC_SUBST(INCLTDL)
47: AC_SUBST(LIBLTDL)
48: AC_SUBST(LIBADD_DL)
49: dnl Configure libtool
1.7 paf 50: AC_DISABLE_STATIC
1.9 paf 51: AC_LIBTOOL_WIN32_DLL
1.13 paf 52: AC_PROG_LIBTOOL
1.1 parser 53: dnl Configure libltdl
54: AC_CONFIG_SUBDIRS(libltdl)
55:
56: dnl Checks for libraries.
57:
58: dnl Checks for header files.
59:
60: AC_CHECK_HEADERS(
61: stdio.h \
62: stdlib.h \
63: string.h \
64: setjmp.h \
1.4 paf 65: ctype.h \
66: setjmp.h
1.1 parser 67: )
68:
1.6 paf 69: AC_MSG_CHECKING(for BSD setenv/getenv/unsetenv)
1.19 paf 70: AC_TRY_LINK(
1.6 paf 71: #ifdef HAVE_STDLIB_H
72: # include <stdlib.h>
73: #endif
74: #ifdef HAVE_STRING_H
75: # include <string.h>
76: #endif
77: ,
78: #define TEST_NAME "oracle-configure-test-var"
79: #define TEST_VALUE "oracle-configure-test-value"
80: int result=setenv(TEST_NAME, TEST_VALUE, 1/*overwrite*/);
81: char *getenv_value=getenv(TEST_NAME);
82: if(!getenv_value)
83: return 1;
84: if(strcmp(getenv_value, TEST_VALUE)!=0)
85: return 2;
86: unsetenv(TEST_NAME);
87: ,[
88: AC_MSG_RESULT(yes)
89: AC_DEFINE(HAVE_SETENV,,library has BSD setenv/unsetenv)
90: ],
91: AC_MSG_RESULT(no)
92:
93: AC_MSG_CHECKING(for POSIX putenv/getenv)
1.19 paf 94: AC_TRY_LINK(
1.6 paf 95: #ifdef HAVE_STDLIB_H
96: # include <stdlib.h>
97: #endif
98: #ifdef HAVE_STRING_H
99: # include <string.h>
100: #endif
101: ,
102: #define TEST_NAME "oracle-configure-test-var"
103: #define TEST_VALUE "oracle-configure-test-value"
104: int result=putenv(TEST_NAME"="TEST_VALUE);
105: char *getenv_value=getenv(TEST_NAME);
106: if(!getenv_value)
107: return 1;
108: if(strcmp(getenv_value, TEST_NAME)!=0)
109: return 2;
110: ,[
111: AC_MSG_RESULT(yes)
112: AC_DEFINE(HAVE_PUTENV,,library has POSIX putenv)
113: ],
114: AC_MSG_RESULT(no)
115: AC_MSG_ERROR("there must be some function to modify environment")
116: )
117: )
118:
1.1 parser 119: dnl Checks for typedefs, structures, and compiler characteristics.
120:
121: AC_TYPE_SIZE_T
122:
123: dnl Checks for library functions.
124:
125: dnl Output makefiles
126:
1.11 paf 127: AC_OUTPUT(Makefile)
E-mail: