Annotation of parser3/src/sql/oracle/acinclude.m4, revision 1.3
1.1 parser 1: dnl acinclude.m4(
2:
3: AC_DEFUN(CALC_ARGS,[
4:
1.2 parser 5: AC_ARG_WITH(oracleoci_inc,[ --with-oracleoci_inc[=DIR] DIR is the Oracle OCI includes directory],,
1.3 ! parser 6: withval="$ORACLE_HOME/rdbms/demo"
1.1 parser 7: )
1.2 parser 8: ORACLEOCI_INC=$withval
9: AC_SUBST(ORACLEOCI_INC)
1.3 ! parser 10:
! 11: AC_ARG_WITH(oraclepublic_inc,[ --with-oraclepublic_inc[=DIR] DIR is the Oracle public includes directory],,
! 12: withval="$ORACLE_HOME/network/public"
! 13: )
! 14: ORACLEPUBLIC_INC=$withval
! 15: AC_SUBST(ORACLEPUBLIC_INC)
1.1 parser 16:
17: ])
18:
19: dnl acinclude.m4)
20:
21:
22: ## libtool.m4 - Configure libtool for the target system. -*-Shell-script-*-
23: ## Copyright (C) 1996-1999, 2000 Free Software Foundation, Inc.
24: ## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
25: ##
26: ## This program is free software; you can redistribute it and/or modify
27: ## it under the terms of the GNU General Public License as published by
28: ## the Free Software Foundation; either version 2 of the License, or
29: ## (at your option) any later version.
30: ##
31: ## This program is distributed in the hope that it will be useful, but
32: ## WITHOUT ANY WARRANTY; without even the implied warranty of
33: ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
34: ## General Public License for more details.
35: ##
36: ## You should have received a copy of the GNU General Public License
37: ## along with this program; if not, write to the Free Software
38: ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
39: ##
40: ## As a special exception to the GNU General Public License, if you
41: ## distribute this file as part of a program that contains a
42: ## configuration script generated by Autoconf, you may include it under
43: ## the same distribution terms that you use for the rest of that program.
44:
45: # serial 40 AC_PROG_LIBTOOL
46: AC_DEFUN(AC_PROG_LIBTOOL,
47: [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
48:
49: # Save cache, so that ltconfig can load it
50: AC_CACHE_SAVE
51:
52: # Actually configure libtool. ac_aux_dir is where install-sh is found.
53: CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
54: LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
55: LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
56: DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
57: ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
58: $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
59: || AC_MSG_ERROR([libtool configure failed])
60:
61: # Reload cache, that may have been modified by ltconfig
62: AC_CACHE_LOAD
63:
64: # This can be used to rebuild libtool when needed
65: LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
66:
67: # Always use our own libtool.
68: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
69: AC_SUBST(LIBTOOL)dnl
70:
71: # Redirect the config.log output again, so that the ltconfig log is not
72: # clobbered by the next message.
73: exec 5>>./config.log
74: ])
75:
76: AC_DEFUN(AC_LIBTOOL_SETUP,
77: [AC_PREREQ(2.13)dnl
78: AC_REQUIRE([AC_ENABLE_SHARED])dnl
79: AC_REQUIRE([AC_ENABLE_STATIC])dnl
80: AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
81: AC_REQUIRE([AC_CANONICAL_HOST])dnl
82: AC_REQUIRE([AC_CANONICAL_BUILD])dnl
83: AC_REQUIRE([AC_PROG_RANLIB])dnl
84: AC_REQUIRE([AC_PROG_CC])dnl
85: AC_REQUIRE([AC_PROG_LD])dnl
86: AC_REQUIRE([AC_PROG_NM])dnl
87: AC_REQUIRE([AC_PROG_LN_S])dnl
88: dnl
89:
90: case "$target" in
91: NONE) lt_target="$host" ;;
92: *) lt_target="$target" ;;
93: esac
94:
95: # Check for any special flags to pass to ltconfig.
96: libtool_flags="--cache-file=$cache_file"
97: test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
98: test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
99: test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
100: test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
101: test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
102: ifdef([AC_PROVIDE_AC_LIBTOOL_DLOPEN],
103: [libtool_flags="$libtool_flags --enable-dlopen"])
104: ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
105: [libtool_flags="$libtool_flags --enable-win32-dll"])
106: AC_ARG_ENABLE(libtool-lock,
107: [ --disable-libtool-lock avoid locking (might break parallel builds)])
108: test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
109: test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
110:
111: # Some flags need to be propagated to the compiler or linker for good
112: # libtool support.
113: case "$lt_target" in
114: *-*-irix6*)
115: # Find out which ABI we are using.
116: echo '[#]line __oline__ "configure"' > conftest.$ac_ext
117: if AC_TRY_EVAL(ac_compile); then
118: case "`/usr/bin/file conftest.o`" in
119: *32-bit*)
120: LD="${LD-ld} -32"
121: ;;
122: *N32*)
123: LD="${LD-ld} -n32"
124: ;;
125: *64-bit*)
126: LD="${LD-ld} -64"
127: ;;
128: esac
129: fi
130: rm -rf conftest*
131: ;;
132:
133: *-*-sco3.2v5*)
134: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
135: SAVE_CFLAGS="$CFLAGS"
136: CFLAGS="$CFLAGS -belf"
137: AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
138: [AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])])
139: if test x"$lt_cv_cc_needs_belf" != x"yes"; then
140: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
141: CFLAGS="$SAVE_CFLAGS"
142: fi
143: ;;
144:
145: ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
146: [*-*-cygwin* | *-*-mingw*)
147: AC_CHECK_TOOL(DLLTOOL, dlltool, false)
148: AC_CHECK_TOOL(AS, as, false)
149: AC_CHECK_TOOL(OBJDUMP, objdump, false)
150: ;;
151: ])
152: esac
153: ])
154:
155: # AC_LIBTOOL_DLOPEN - enable checks for dlopen support
156: AC_DEFUN(AC_LIBTOOL_DLOPEN, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])])
157:
158: # AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
159: AC_DEFUN(AC_LIBTOOL_WIN32_DLL, [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])])
160:
161: # AC_ENABLE_SHARED - implement the --enable-shared flag
162: # Usage: AC_ENABLE_SHARED[(DEFAULT)]
163: # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
164: # `yes'.
165: AC_DEFUN(AC_ENABLE_SHARED, [dnl
166: define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
167: AC_ARG_ENABLE(shared,
168: changequote(<<, >>)dnl
169: << --enable-shared[=PKGS] build shared libraries [default=>>AC_ENABLE_SHARED_DEFAULT],
170: changequote([, ])dnl
171: [p=${PACKAGE-default}
172: case "$enableval" in
173: yes) enable_shared=yes ;;
174: no) enable_shared=no ;;
175: *)
176: enable_shared=no
177: # Look at the argument we got. We use all the common list separators.
178: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
179: for pkg in $enableval; do
180: if test "X$pkg" = "X$p"; then
181: enable_shared=yes
182: fi
183: done
184: IFS="$ac_save_ifs"
185: ;;
186: esac],
187: enable_shared=AC_ENABLE_SHARED_DEFAULT)dnl
188: ])
189:
190: # AC_DISABLE_SHARED - set the default shared flag to --disable-shared
191: AC_DEFUN(AC_DISABLE_SHARED, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
192: AC_ENABLE_SHARED(no)])
193:
194: # AC_ENABLE_STATIC - implement the --enable-static flag
195: # Usage: AC_ENABLE_STATIC[(DEFAULT)]
196: # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
197: # `yes'.
198: AC_DEFUN(AC_ENABLE_STATIC, [dnl
199: define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
200: AC_ARG_ENABLE(static,
201: changequote(<<, >>)dnl
202: << --enable-static[=PKGS] build static libraries [default=>>AC_ENABLE_STATIC_DEFAULT],
203: changequote([, ])dnl
204: [p=${PACKAGE-default}
205: case "$enableval" in
206: yes) enable_static=yes ;;
207: no) enable_static=no ;;
208: *)
209: enable_static=no
210: # Look at the argument we got. We use all the common list separators.
211: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
212: for pkg in $enableval; do
213: if test "X$pkg" = "X$p"; then
214: enable_static=yes
215: fi
216: done
217: IFS="$ac_save_ifs"
218: ;;
219: esac],
220: enable_static=AC_ENABLE_STATIC_DEFAULT)dnl
221: ])
222:
223: # AC_DISABLE_STATIC - set the default static flag to --disable-static
224: AC_DEFUN(AC_DISABLE_STATIC, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
225: AC_ENABLE_STATIC(no)])
226:
227:
228: # AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
229: # Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
230: # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
231: # `yes'.
232: AC_DEFUN(AC_ENABLE_FAST_INSTALL, [dnl
233: define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
234: AC_ARG_ENABLE(fast-install,
235: changequote(<<, >>)dnl
236: << --enable-fast-install[=PKGS] optimize for fast installation [default=>>AC_ENABLE_FAST_INSTALL_DEFAULT],
237: changequote([, ])dnl
238: [p=${PACKAGE-default}
239: case "$enableval" in
240: yes) enable_fast_install=yes ;;
241: no) enable_fast_install=no ;;
242: *)
243: enable_fast_install=no
244: # Look at the argument we got. We use all the common list separators.
245: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
246: for pkg in $enableval; do
247: if test "X$pkg" = "X$p"; then
248: enable_fast_install=yes
249: fi
250: done
251: IFS="$ac_save_ifs"
252: ;;
253: esac],
254: enable_fast_install=AC_ENABLE_FAST_INSTALL_DEFAULT)dnl
255: ])
256:
257: # AC_ENABLE_FAST_INSTALL - set the default to --disable-fast-install
258: AC_DEFUN(AC_DISABLE_FAST_INSTALL, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
259: AC_ENABLE_FAST_INSTALL(no)])
260:
261: # AC_PROG_LD - find the path to the GNU or non-GNU linker
262: AC_DEFUN(AC_PROG_LD,
263: [AC_ARG_WITH(gnu-ld,
264: [ --with-gnu-ld assume the C compiler uses GNU ld [default=no]],
265: test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
266: AC_REQUIRE([AC_PROG_CC])dnl
267: AC_REQUIRE([AC_CANONICAL_HOST])dnl
268: AC_REQUIRE([AC_CANONICAL_BUILD])dnl
269: ac_prog=ld
270: if test "$ac_cv_prog_gcc" = yes; then
271: # Check if gcc -print-prog-name=ld gives a path.
272: AC_MSG_CHECKING([for ld used by GCC])
273: ac_prog=`($CC -print-prog-name=ld) 2>&5`
274: case "$ac_prog" in
275: # Accept absolute paths.
276: changequote(,)dnl
277: [\\/]* | [A-Za-z]:[\\/]*)
278: re_direlt='/[^/][^/]*/\.\./'
279: changequote([,])dnl
280: # Canonicalize the path of ld
281: ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
282: while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
283: ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
284: done
285: test -z "$LD" && LD="$ac_prog"
286: ;;
287: "")
288: # If it fails, then pretend we aren't using GCC.
289: ac_prog=ld
290: ;;
291: *)
292: # If it is relative, then search for the first ld in PATH.
293: with_gnu_ld=unknown
294: ;;
295: esac
296: elif test "$with_gnu_ld" = yes; then
297: AC_MSG_CHECKING([for GNU ld])
298: else
299: AC_MSG_CHECKING([for non-GNU ld])
300: fi
301: AC_CACHE_VAL(ac_cv_path_LD,
302: [if test -z "$LD"; then
303: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
304: for ac_dir in $PATH; do
305: test -z "$ac_dir" && ac_dir=.
306: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
307: ac_cv_path_LD="$ac_dir/$ac_prog"
308: # Check to see if the program is GNU ld. I'd rather use --version,
309: # but apparently some GNU ld's only accept -v.
310: # Break only if it was the GNU/non-GNU ld that we prefer.
311: if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
312: test "$with_gnu_ld" != no && break
313: else
314: test "$with_gnu_ld" != yes && break
315: fi
316: fi
317: done
318: IFS="$ac_save_ifs"
319: else
320: ac_cv_path_LD="$LD" # Let the user override the test with a path.
321: fi])
322: LD="$ac_cv_path_LD"
323: if test -n "$LD"; then
324: AC_MSG_RESULT($LD)
325: else
326: AC_MSG_RESULT(no)
327: fi
328: test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
329: AC_PROG_LD_GNU
330: ])
331:
332: AC_DEFUN(AC_PROG_LD_GNU,
333: [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], ac_cv_prog_gnu_ld,
334: [# I'd rather use --version here, but apparently some GNU ld's only accept -v.
335: if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
336: ac_cv_prog_gnu_ld=yes
337: else
338: ac_cv_prog_gnu_ld=no
339: fi])
340: ])
341:
342: # AC_PROG_NM - find the path to a BSD-compatible name lister
343: AC_DEFUN(AC_PROG_NM,
344: [AC_MSG_CHECKING([for BSD-compatible nm])
345: AC_CACHE_VAL(ac_cv_path_NM,
346: [if test -n "$NM"; then
347: # Let the user override the test.
348: ac_cv_path_NM="$NM"
349: else
350: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
351: for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
352: test -z "$ac_dir" && ac_dir=.
353: if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
354: # Check to see if the nm accepts a BSD-compat flag.
355: # Adding the `sed 1q' prevents false positives on HP-UX, which says:
356: # nm: unknown option "B" ignored
357: if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
358: ac_cv_path_NM="$ac_dir/nm -B"
359: break
360: elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
361: ac_cv_path_NM="$ac_dir/nm -p"
362: break
363: else
364: ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
365: continue # so that we can try to find one that supports BSD flags
366: fi
367: fi
368: done
369: IFS="$ac_save_ifs"
370: test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
371: fi])
372: NM="$ac_cv_path_NM"
373: AC_MSG_RESULT([$NM])
374: ])
375:
376: # AC_CHECK_LIBM - check for math library
377: AC_DEFUN(AC_CHECK_LIBM,
378: [AC_REQUIRE([AC_CANONICAL_HOST])dnl
379: LIBM=
380: case "$lt_target" in
381: *-*-beos* | *-*-cygwin*)
382: # These system don't have libm
383: ;;
384: *-ncr-sysv4.3*)
385: AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
386: AC_CHECK_LIB(m, main, LIBM="$LIBM -lm")
387: ;;
388: *)
389: AC_CHECK_LIB(m, main, LIBM="-lm")
390: ;;
391: esac
392: ])
393:
394: # AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
395: # the libltdl convenience library and INCLTDL to the include flags for
396: # the libltdl header and adds --enable-ltdl-convenience to the
397: # configure arguments. Note that LIBLTDL and INCLTDL are not
398: # AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If DIR is not
399: # provided, it is assumed to be `libltdl'. LIBLTDL will be prefixed
400: # with '${top_builddir}/' and INCLTDL will be prefixed with
401: # '${top_srcdir}/' (note the single quotes!). If your package is not
402: # flat and you're not using automake, define top_builddir and
403: # top_srcdir appropriately in the Makefiles.
404: AC_DEFUN(AC_LIBLTDL_CONVENIENCE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
405: LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
406: INCLTDL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
407: ])
408:
409: # AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
410: # the libltdl installable library and INCLTDL to the include flags for
411: # the libltdl header and adds --enable-ltdl-install to the configure
412: # arguments. Note that LIBLTDL and INCLTDL are not AC_SUBSTed, nor is
413: # AC_CONFIG_SUBDIRS called. If DIR is not provided and an installed
414: # libltdl is not found, it is assumed to be `libltdl'. LIBLTDL will
415: # be prefixed with '${top_builddir}/' and INCLTDL will be prefixed
416: # with '${top_srcdir}/' (note the single quotes!). If your package is
417: # not flat and you're not using automake, define top_builddir and
418: # top_srcdir appropriately in the Makefiles.
419: # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
420: AC_DEFUN(AC_LIBLTDL_INSTALLABLE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
421: AC_CHECK_LIB(ltdl, main,
422: [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
423: [if test x"$enable_ltdl_install" = xno; then
424: AC_MSG_WARN([libltdl not installed, but installation disabled])
425: else
426: enable_ltdl_install=yes
427: fi
428: ])
429: if test x"$enable_ltdl_install" = x"yes"; then
430: ac_configure_args="$ac_configure_args --enable-ltdl-install"
431: LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
432: INCLTDL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
433: else
434: ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
435: LIBLTDL="-lltdl"
436: INCLTDL=
437: fi
438: ])
439:
440: dnl old names
441: AC_DEFUN(AM_PROG_LIBTOOL, [indir([AC_PROG_LIBTOOL])])dnl
442: AC_DEFUN(AM_ENABLE_SHARED, [indir([AC_ENABLE_SHARED], $@)])dnl
443: AC_DEFUN(AM_ENABLE_STATIC, [indir([AC_ENABLE_STATIC], $@)])dnl
444: AC_DEFUN(AM_DISABLE_SHARED, [indir([AC_DISABLE_SHARED], $@)])dnl
445: AC_DEFUN(AM_DISABLE_STATIC, [indir([AC_DISABLE_STATIC], $@)])dnl
446: AC_DEFUN(AM_PROG_LD, [indir([AC_PROG_LD])])dnl
447: AC_DEFUN(AM_PROG_NM, [indir([AC_PROG_NM])])dnl
448:
449: dnl This is just to silence aclocal about the macro not being used
450: ifelse([AC_DISABLE_FAST_INSTALL])dnl
E-mail: