Annotation of sql/pgsql/configure, revision 1.25
1.1 parser 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.23 moko 3: # Generated by GNU Autoconf 2.59 for parser3pgsql.C 10.3.
1.1 parser 4: #
1.16 paf 5: # Copyright (C) 2003 Free Software Foundation, Inc.
1.1 parser 6: # This configure script is free software; the Free Software Foundation
7: # gives unlimited permission to copy, distribute and modify it.
1.10 paf 8: ## --------------------- ##
9: ## M4sh Initialization. ##
10: ## --------------------- ##
11:
12: # Be Bourne compatible
13: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14: emulate sh
15: NULLCMD=:
16: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17: # is contrary to our usage. Disable this feature.
18: alias -g '${1+"$@"}'='"$@"'
19: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20: set -o posix
21: fi
1.16 paf 22: DUALCASE=1; export DUALCASE # for MKS sh
1.10 paf 23:
24: # Support unset when possible.
1.16 paf 25: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
1.10 paf 26: as_unset=unset
27: else
28: as_unset=false
29: fi
30:
31:
32: # Work around bugs in pre-3.0 UWIN ksh.
33: $as_unset ENV MAIL MAILPATH
34: PS1='$ '
35: PS2='> '
36: PS4='+ '
37:
38: # NLS nuisances.
39: for as_var in \
40: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42: LC_TELEPHONE LC_TIME
43: do
1.16 paf 44: if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
1.10 paf 45: eval $as_var=C; export $as_var
46: else
47: $as_unset $as_var
48: fi
49: done
50:
51: # Required to use basename.
52: if expr a : '\(a\)' >/dev/null 2>&1; then
53: as_expr=expr
54: else
55: as_expr=false
56: fi
57:
58: if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59: as_basename=basename
60: else
61: as_basename=false
62: fi
63:
64:
65: # Name of the executable.
66: as_me=`$as_basename "$0" ||
67: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68: X"$0" : 'X\(//\)$' \| \
69: X"$0" : 'X\(/\)$' \| \
70: . : '\(.\)' 2>/dev/null ||
71: echo X/"$0" |
72: sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73: /^X\/\(\/\/\)$/{ s//\1/; q; }
74: /^X\/\(\/\).*/{ s//\1/; q; }
75: s/.*/./; q'`
76:
77:
78: # PATH needs CR, and LINENO needs CR and PATH.
79: # Avoid depending upon Character Ranges.
80: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83: as_cr_digits='0123456789'
84: as_cr_alnum=$as_cr_Letters$as_cr_digits
85:
86: # The user is always right.
87: if test "${PATH_SEPARATOR+set}" != set; then
88: echo "#! /bin/sh" >conf$$.sh
89: echo "exit 0" >>conf$$.sh
90: chmod +x conf$$.sh
91: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92: PATH_SEPARATOR=';'
93: else
94: PATH_SEPARATOR=:
95: fi
96: rm -f conf$$.sh
97: fi
98:
99:
100: as_lineno_1=$LINENO
101: as_lineno_2=$LINENO
102: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103: test "x$as_lineno_1" != "x$as_lineno_2" &&
104: test "x$as_lineno_3" = "x$as_lineno_2" || {
105: # Find who we are. Look in the path if we contain no path at all
106: # relative or not.
107: case $0 in
108: *[\\/]* ) as_myself=$0 ;;
109: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110: for as_dir in $PATH
111: do
112: IFS=$as_save_IFS
113: test -z "$as_dir" && as_dir=.
114: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115: done
116:
117: ;;
118: esac
119: # We did not find ourselves, most probably we were run as `sh COMMAND'
120: # in which case we are not to be found in the path.
121: if test "x$as_myself" = x; then
122: as_myself=$0
123: fi
124: if test ! -f "$as_myself"; then
125: { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126: { (exit 1); exit 1; }; }
127: fi
128: case $CONFIG_SHELL in
129: '')
130: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132: do
133: IFS=$as_save_IFS
134: test -z "$as_dir" && as_dir=.
135: for as_base in sh bash ksh sh5; do
136: case $as_dir in
137: /*)
138: if ("$as_dir/$as_base" -c '
139: as_lineno_1=$LINENO
140: as_lineno_2=$LINENO
141: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142: test "x$as_lineno_1" != "x$as_lineno_2" &&
143: test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144: $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145: $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146: CONFIG_SHELL=$as_dir/$as_base
147: export CONFIG_SHELL
148: exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149: fi;;
150: esac
151: done
152: done
153: ;;
154: esac
155:
156: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157: # uniformly replaced by the line number. The first 'sed' inserts a
158: # line-number line before each line; the second 'sed' does the real
159: # work. The second script uses 'N' to pair each line-number line
160: # with the numbered line, and appends trailing '-' during
161: # substitution so that $LINENO is not a special case at line end.
162: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163: # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164: sed '=' <$as_myself |
165: sed '
166: N
167: s,$,-,
168: : loop
169: s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170: t loop
171: s,-$,,
172: s,^['$as_cr_digits']*\n,,
173: ' >$as_me.lineno &&
174: chmod +x $as_me.lineno ||
175: { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176: { (exit 1); exit 1; }; }
177:
178: # Don't try to exec as it changes $[0], causing all sort of problems
179: # (the dirname of $[0] is not the place where we might find the
180: # original and so on. Autoconf is especially sensible to this).
181: . ./$as_me.lineno
182: # Exit status is that of the last command.
183: exit
184: }
185:
186:
187: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188: *c*,-n*) ECHO_N= ECHO_C='
189: ' ECHO_T=' ' ;;
190: *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191: *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192: esac
193:
194: if expr a : '\(a\)' >/dev/null 2>&1; then
195: as_expr=expr
196: else
197: as_expr=false
198: fi
199:
200: rm -f conf$$ conf$$.exe conf$$.file
201: echo >conf$$.file
202: if ln -s conf$$.file conf$$ 2>/dev/null; then
203: # We could just check for DJGPP; but this test a) works b) is more generic
204: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205: if test -f conf$$.exe; then
206: # Don't use ln at all; we don't have any links
207: as_ln_s='cp -p'
208: else
209: as_ln_s='ln -s'
210: fi
211: elif ln conf$$.file conf$$ 2>/dev/null; then
212: as_ln_s=ln
213: else
214: as_ln_s='cp -p'
215: fi
216: rm -f conf$$ conf$$.exe conf$$.file
217:
218: if mkdir -p . 2>/dev/null; then
219: as_mkdir_p=:
220: else
1.16 paf 221: test -d ./-p && rmdir ./-p
1.10 paf 222: as_mkdir_p=false
223: fi
224:
225: as_executable_p="test -f"
226:
227: # Sed expression to map a string onto a valid CPP name.
1.16 paf 228: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.10 paf 229:
230: # Sed expression to map a string onto a valid variable name.
1.16 paf 231: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.10 paf 232:
233:
234: # IFS
235: # We need space, tab and new line, in precisely that order.
236: as_nl='
237: '
238: IFS=" $as_nl"
239:
240: # CDPATH.
241: $as_unset CDPATH
242:
1.23 moko 243: lt_ltdl_dir='libltdl'
1.10 paf 244:
245: SHELL=${CONFIG_SHELL-/bin/sh}
246:
1.23 moko 247: lt_dlopen_dir="$lt_ltdl_dir"
1.10 paf 248:
249:
250: # Name of the host.
251: # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
252: # so uname gets run too.
253: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
1.1 parser 254:
1.10 paf 255: exec 6>&1
256:
257: #
258: # Initializations.
259: #
1.1 parser 260: ac_default_prefix=/usr/local
1.10 paf 261: ac_config_libobj_dir=.
262: cross_compiling=no
263: subdirs=
264: MFLAGS=
265: MAKEFLAGS=
266: SHELL=${CONFIG_SHELL-/bin/sh}
267:
268: # Maximum number of lines to put in a shell here document.
269: # This variable seems obsolete. It should probably be removed, and
270: # only ac_max_sed_lines should be used.
271: : ${ac_max_here_lines=38}
272:
273: # Identity of this package.
1.23 moko 274: PACKAGE_NAME='parser3pgsql.C'
275: PACKAGE_TARNAME='parser3pgsql-c'
276: PACKAGE_VERSION='10.3'
277: PACKAGE_STRING='parser3pgsql.C 10.3'
278: PACKAGE_BUGREPORT=''
1.10 paf 279:
280: ac_unique_file="parser3pgsql.C"
281: # Factoring default headers for most tests.
282: ac_includes_default="\
283: #include <stdio.h>
284: #if HAVE_SYS_TYPES_H
285: # include <sys/types.h>
286: #endif
287: #if HAVE_SYS_STAT_H
288: # include <sys/stat.h>
289: #endif
290: #if STDC_HEADERS
291: # include <stdlib.h>
292: # include <stddef.h>
293: #else
294: # if HAVE_STDLIB_H
295: # include <stdlib.h>
296: # endif
297: #endif
298: #if HAVE_STRING_H
299: # if !STDC_HEADERS && HAVE_MEMORY_H
300: # include <memory.h>
301: # endif
302: # include <string.h>
303: #endif
304: #if HAVE_STRINGS_H
305: # include <strings.h>
306: #endif
307: #if HAVE_INTTYPES_H
308: # include <inttypes.h>
309: #else
310: # if HAVE_STDINT_H
311: # include <stdint.h>
312: # endif
313: #endif
314: #if HAVE_UNISTD_H
315: # include <unistd.h>
316: #endif"
317:
318: ac_subdirs_all="$ac_subdirs_all libltdl"
1.23 moko 319: ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar PGSQL_INC LDFLAGS CXX CXXFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE AS ac_ct_AS DLLTOOL ac_ct_DLLTOOL OBJDUMP ac_ct_OBJDUMP LIBTOOL build build_cpu build_vendor build_os host host_cpu host_vendor host_os SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S AR ac_ct_AR RANLIB ac_ct_RANLIB MANIFEST_TOOL ac_ct_MANIFEST_TOOL DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT LIPO ac_ct_LIPO OTOOL ac_ct_OTOOL OTOOL64 ac_ct_OTOOL64 CPP CXXCPP LIBLTDL LTDLDEPS LTDLINCL INCLTDL LT_DLLOADERS LIBADD_DLOPEN LIBADD_SHL_LOAD LIBADD_DLD_LINK LT_DLPREOPEN LIBADD_DL sys_symbol_underscore ARGZ_H INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE subdirs LT_CONFIG_H LTDLOPEN LIBOBJS LTLIBOBJS ltdl_LIBOBJS ltdl_LTLIBOBJS'
1.10 paf 320: ac_subst_files=''
1.1 parser 321:
322: # Initialize some variables set by options.
1.10 paf 323: ac_init_help=
324: ac_init_version=false
1.1 parser 325: # The variables have the same names as the options, with
326: # dashes changed to underlines.
1.10 paf 327: cache_file=/dev/null
1.1 parser 328: exec_prefix=NONE
329: no_create=
330: no_recursion=
331: prefix=NONE
332: program_prefix=NONE
333: program_suffix=NONE
334: program_transform_name=s,x,x,
335: silent=
336: site=
337: srcdir=
338: verbose=
339: x_includes=NONE
340: x_libraries=NONE
1.10 paf 341:
342: # Installation directory options.
343: # These are left unexpanded so users can "make install exec_prefix=/foo"
344: # and all the variables that are supposed to be based on exec_prefix
345: # by default will actually change.
346: # Use braces instead of parens because sh, perl, etc. also accept them.
1.1 parser 347: bindir='${exec_prefix}/bin'
348: sbindir='${exec_prefix}/sbin'
349: libexecdir='${exec_prefix}/libexec'
350: datadir='${prefix}/share'
351: sysconfdir='${prefix}/etc'
352: sharedstatedir='${prefix}/com'
353: localstatedir='${prefix}/var'
354: libdir='${exec_prefix}/lib'
355: includedir='${prefix}/include'
356: oldincludedir='/usr/include'
357: infodir='${prefix}/info'
358: mandir='${prefix}/man'
359:
360: ac_prev=
361: for ac_option
362: do
363: # If the previous option needs an argument, assign it.
364: if test -n "$ac_prev"; then
365: eval "$ac_prev=\$ac_option"
366: ac_prev=
367: continue
368: fi
369:
1.10 paf 370: ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
1.1 parser 371:
372: # Accept the important Cygnus configure options, so we can diagnose typos.
373:
1.10 paf 374: case $ac_option in
1.1 parser 375:
376: -bindir | --bindir | --bindi | --bind | --bin | --bi)
377: ac_prev=bindir ;;
378: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1.10 paf 379: bindir=$ac_optarg ;;
1.1 parser 380:
381: -build | --build | --buil | --bui | --bu)
1.10 paf 382: ac_prev=build_alias ;;
1.1 parser 383: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1.10 paf 384: build_alias=$ac_optarg ;;
1.1 parser 385:
386: -cache-file | --cache-file | --cache-fil | --cache-fi \
387: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
388: ac_prev=cache_file ;;
389: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
390: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1.10 paf 391: cache_file=$ac_optarg ;;
392:
393: --config-cache | -C)
394: cache_file=config.cache ;;
1.1 parser 395:
396: -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
397: ac_prev=datadir ;;
398: -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
399: | --da=*)
1.10 paf 400: datadir=$ac_optarg ;;
1.1 parser 401:
402: -disable-* | --disable-*)
1.10 paf 403: ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1 parser 404: # Reject names that are not valid shell variable names.
1.10 paf 405: expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
406: { echo "$as_me: error: invalid feature name: $ac_feature" >&2
407: { (exit 1); exit 1; }; }
408: ac_feature=`echo $ac_feature | sed 's/-/_/g'`
409: eval "enable_$ac_feature=no" ;;
1.1 parser 410:
411: -enable-* | --enable-*)
1.10 paf 412: ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1 parser 413: # Reject names that are not valid shell variable names.
1.10 paf 414: expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
415: { echo "$as_me: error: invalid feature name: $ac_feature" >&2
416: { (exit 1); exit 1; }; }
417: ac_feature=`echo $ac_feature | sed 's/-/_/g'`
418: case $ac_option in
419: *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
1.1 parser 420: *) ac_optarg=yes ;;
421: esac
1.10 paf 422: eval "enable_$ac_feature='$ac_optarg'" ;;
1.1 parser 423:
424: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
425: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
426: | --exec | --exe | --ex)
427: ac_prev=exec_prefix ;;
428: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
429: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
430: | --exec=* | --exe=* | --ex=*)
1.10 paf 431: exec_prefix=$ac_optarg ;;
1.1 parser 432:
433: -gas | --gas | --ga | --g)
434: # Obsolete; use --with-gas.
435: with_gas=yes ;;
436:
1.10 paf 437: -help | --help | --hel | --he | -h)
438: ac_init_help=long ;;
439: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
440: ac_init_help=recursive ;;
441: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
442: ac_init_help=short ;;
1.1 parser 443:
444: -host | --host | --hos | --ho)
1.10 paf 445: ac_prev=host_alias ;;
1.1 parser 446: -host=* | --host=* | --hos=* | --ho=*)
1.10 paf 447: host_alias=$ac_optarg ;;
1.1 parser 448:
449: -includedir | --includedir | --includedi | --included | --include \
450: | --includ | --inclu | --incl | --inc)
451: ac_prev=includedir ;;
452: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
453: | --includ=* | --inclu=* | --incl=* | --inc=*)
1.10 paf 454: includedir=$ac_optarg ;;
1.1 parser 455:
456: -infodir | --infodir | --infodi | --infod | --info | --inf)
457: ac_prev=infodir ;;
458: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1.10 paf 459: infodir=$ac_optarg ;;
1.1 parser 460:
461: -libdir | --libdir | --libdi | --libd)
462: ac_prev=libdir ;;
463: -libdir=* | --libdir=* | --libdi=* | --libd=*)
1.10 paf 464: libdir=$ac_optarg ;;
1.1 parser 465:
466: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
467: | --libexe | --libex | --libe)
468: ac_prev=libexecdir ;;
469: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
470: | --libexe=* | --libex=* | --libe=*)
1.10 paf 471: libexecdir=$ac_optarg ;;
1.1 parser 472:
473: -localstatedir | --localstatedir | --localstatedi | --localstated \
474: | --localstate | --localstat | --localsta | --localst \
475: | --locals | --local | --loca | --loc | --lo)
476: ac_prev=localstatedir ;;
477: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
478: | --localstate=* | --localstat=* | --localsta=* | --localst=* \
479: | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
1.10 paf 480: localstatedir=$ac_optarg ;;
1.1 parser 481:
482: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
483: ac_prev=mandir ;;
484: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1.10 paf 485: mandir=$ac_optarg ;;
1.1 parser 486:
487: -nfp | --nfp | --nf)
488: # Obsolete; use --without-fp.
489: with_fp=no ;;
490:
491: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1.10 paf 492: | --no-cr | --no-c | -n)
1.1 parser 493: no_create=yes ;;
494:
495: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
496: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
497: no_recursion=yes ;;
498:
499: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
500: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
501: | --oldin | --oldi | --old | --ol | --o)
502: ac_prev=oldincludedir ;;
503: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
504: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
505: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1.10 paf 506: oldincludedir=$ac_optarg ;;
1.1 parser 507:
508: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
509: ac_prev=prefix ;;
510: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1.10 paf 511: prefix=$ac_optarg ;;
1.1 parser 512:
513: -program-prefix | --program-prefix | --program-prefi | --program-pref \
514: | --program-pre | --program-pr | --program-p)
515: ac_prev=program_prefix ;;
516: -program-prefix=* | --program-prefix=* | --program-prefi=* \
517: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1.10 paf 518: program_prefix=$ac_optarg ;;
1.1 parser 519:
520: -program-suffix | --program-suffix | --program-suffi | --program-suff \
521: | --program-suf | --program-su | --program-s)
522: ac_prev=program_suffix ;;
523: -program-suffix=* | --program-suffix=* | --program-suffi=* \
524: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1.10 paf 525: program_suffix=$ac_optarg ;;
1.1 parser 526:
527: -program-transform-name | --program-transform-name \
528: | --program-transform-nam | --program-transform-na \
529: | --program-transform-n | --program-transform- \
530: | --program-transform | --program-transfor \
531: | --program-transfo | --program-transf \
532: | --program-trans | --program-tran \
533: | --progr-tra | --program-tr | --program-t)
534: ac_prev=program_transform_name ;;
535: -program-transform-name=* | --program-transform-name=* \
536: | --program-transform-nam=* | --program-transform-na=* \
537: | --program-transform-n=* | --program-transform-=* \
538: | --program-transform=* | --program-transfor=* \
539: | --program-transfo=* | --program-transf=* \
540: | --program-trans=* | --program-tran=* \
541: | --progr-tra=* | --program-tr=* | --program-t=*)
1.10 paf 542: program_transform_name=$ac_optarg ;;
1.1 parser 543:
544: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
545: | -silent | --silent | --silen | --sile | --sil)
546: silent=yes ;;
547:
548: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
549: ac_prev=sbindir ;;
550: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
551: | --sbi=* | --sb=*)
1.10 paf 552: sbindir=$ac_optarg ;;
1.1 parser 553:
554: -sharedstatedir | --sharedstatedir | --sharedstatedi \
555: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
556: | --sharedst | --shareds | --shared | --share | --shar \
557: | --sha | --sh)
558: ac_prev=sharedstatedir ;;
559: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
560: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
561: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
562: | --sha=* | --sh=*)
1.10 paf 563: sharedstatedir=$ac_optarg ;;
1.1 parser 564:
565: -site | --site | --sit)
566: ac_prev=site ;;
567: -site=* | --site=* | --sit=*)
1.10 paf 568: site=$ac_optarg ;;
1.1 parser 569:
570: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
571: ac_prev=srcdir ;;
572: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1.10 paf 573: srcdir=$ac_optarg ;;
1.1 parser 574:
575: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
576: | --syscon | --sysco | --sysc | --sys | --sy)
577: ac_prev=sysconfdir ;;
578: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
579: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1.10 paf 580: sysconfdir=$ac_optarg ;;
1.1 parser 581:
582: -target | --target | --targe | --targ | --tar | --ta | --t)
1.10 paf 583: ac_prev=target_alias ;;
1.1 parser 584: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1.10 paf 585: target_alias=$ac_optarg ;;
1.1 parser 586:
587: -v | -verbose | --verbose | --verbos | --verbo | --verb)
588: verbose=yes ;;
589:
1.10 paf 590: -version | --version | --versio | --versi | --vers | -V)
591: ac_init_version=: ;;
1.1 parser 592:
593: -with-* | --with-*)
1.10 paf 594: ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1 parser 595: # Reject names that are not valid shell variable names.
1.10 paf 596: expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
597: { echo "$as_me: error: invalid package name: $ac_package" >&2
598: { (exit 1); exit 1; }; }
1.1 parser 599: ac_package=`echo $ac_package| sed 's/-/_/g'`
1.10 paf 600: case $ac_option in
601: *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
1.1 parser 602: *) ac_optarg=yes ;;
603: esac
1.10 paf 604: eval "with_$ac_package='$ac_optarg'" ;;
1.1 parser 605:
606: -without-* | --without-*)
1.10 paf 607: ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1 parser 608: # Reject names that are not valid shell variable names.
1.10 paf 609: expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
610: { echo "$as_me: error: invalid package name: $ac_package" >&2
611: { (exit 1); exit 1; }; }
612: ac_package=`echo $ac_package | sed 's/-/_/g'`
613: eval "with_$ac_package=no" ;;
1.1 parser 614:
615: --x)
616: # Obsolete; use --with-x.
617: with_x=yes ;;
618:
619: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
620: | --x-incl | --x-inc | --x-in | --x-i)
621: ac_prev=x_includes ;;
622: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
623: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1.10 paf 624: x_includes=$ac_optarg ;;
1.1 parser 625:
626: -x-libraries | --x-libraries | --x-librarie | --x-librari \
627: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
628: ac_prev=x_libraries ;;
629: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
630: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1.10 paf 631: x_libraries=$ac_optarg ;;
1.1 parser 632:
1.10 paf 633: -*) { echo "$as_me: error: unrecognized option: $ac_option
634: Try \`$0 --help' for more information." >&2
635: { (exit 1); exit 1; }; }
1.1 parser 636: ;;
637:
1.10 paf 638: *=*)
639: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
640: # Reject names that are not valid shell variable names.
641: expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
642: { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
643: { (exit 1); exit 1; }; }
644: ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
645: eval "$ac_envvar='$ac_optarg'"
646: export $ac_envvar ;;
647:
1.1 parser 648: *)
1.10 paf 649: # FIXME: should be removed in autoconf 3.0.
650: echo "$as_me: WARNING: you should use --build, --host, --target" >&2
651: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
652: echo "$as_me: WARNING: invalid host type: $ac_option" >&2
653: : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1.1 parser 654: ;;
655:
656: esac
657: done
658:
659: if test -n "$ac_prev"; then
1.10 paf 660: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
661: { echo "$as_me: error: missing argument to $ac_option" >&2
662: { (exit 1); exit 1; }; }
1.1 parser 663: fi
664:
1.10 paf 665: # Be sure to have absolute paths.
666: for ac_var in exec_prefix prefix
667: do
668: eval ac_val=$`echo $ac_var`
669: case $ac_val in
670: [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
671: *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
672: { (exit 1); exit 1; }; };;
673: esac
674: done
1.1 parser 675:
1.10 paf 676: # Be sure to have absolute paths.
677: for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
1.16 paf 678: localstatedir libdir includedir oldincludedir infodir mandir
1.1 parser 679: do
1.10 paf 680: eval ac_val=$`echo $ac_var`
681: case $ac_val in
682: [\\/$]* | ?:[\\/]* ) ;;
683: *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
684: { (exit 1); exit 1; }; };;
1.1 parser 685: esac
686: done
687:
1.10 paf 688: # There might be people who depend on the old broken behavior: `$host'
689: # used to hold the argument of --host etc.
690: # FIXME: To remove some day.
691: build=$build_alias
692: host=$host_alias
693: target=$target_alias
694:
695: # FIXME: To remove some day.
696: if test "x$host_alias" != x; then
697: if test "x$build_alias" = x; then
698: cross_compiling=maybe
699: echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
700: If a cross compiler is detected then cross compile mode will be used." >&2
701: elif test "x$build_alias" != "x$host_alias"; then
702: cross_compiling=yes
703: fi
704: fi
705:
706: ac_tool_prefix=
707: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1.1 parser 708:
1.10 paf 709: test "$silent" = yes && exec 6>/dev/null
1.1 parser 710:
711:
712: # Find the source files, if location was not specified.
713: if test -z "$srcdir"; then
714: ac_srcdir_defaulted=yes
715: # Try the directory containing this script, then its parent.
1.10 paf 716: ac_confdir=`(dirname "$0") 2>/dev/null ||
717: $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.16 paf 718: X"$0" : 'X\(//\)[^/]' \| \
719: X"$0" : 'X\(//\)$' \| \
720: X"$0" : 'X\(/\)' \| \
721: . : '\(.\)' 2>/dev/null ||
1.10 paf 722: echo X"$0" |
723: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
724: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
725: /^X\(\/\/\)$/{ s//\1/; q; }
726: /^X\(\/\).*/{ s//\1/; q; }
727: s/.*/./; q'`
1.1 parser 728: srcdir=$ac_confdir
729: if test ! -r $srcdir/$ac_unique_file; then
730: srcdir=..
731: fi
732: else
733: ac_srcdir_defaulted=no
734: fi
735: if test ! -r $srcdir/$ac_unique_file; then
736: if test "$ac_srcdir_defaulted" = yes; then
1.10 paf 737: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
738: { (exit 1); exit 1; }; }
1.1 parser 739: else
1.10 paf 740: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
741: { (exit 1); exit 1; }; }
1.1 parser 742: fi
743: fi
1.10 paf 744: (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
745: { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
746: { (exit 1); exit 1; }; }
747: srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
748: ac_env_build_alias_set=${build_alias+set}
749: ac_env_build_alias_value=$build_alias
750: ac_cv_env_build_alias_set=${build_alias+set}
751: ac_cv_env_build_alias_value=$build_alias
752: ac_env_host_alias_set=${host_alias+set}
753: ac_env_host_alias_value=$host_alias
754: ac_cv_env_host_alias_set=${host_alias+set}
755: ac_cv_env_host_alias_value=$host_alias
756: ac_env_target_alias_set=${target_alias+set}
757: ac_env_target_alias_value=$target_alias
758: ac_cv_env_target_alias_set=${target_alias+set}
759: ac_cv_env_target_alias_value=$target_alias
760: ac_env_CXX_set=${CXX+set}
761: ac_env_CXX_value=$CXX
762: ac_cv_env_CXX_set=${CXX+set}
763: ac_cv_env_CXX_value=$CXX
764: ac_env_CXXFLAGS_set=${CXXFLAGS+set}
765: ac_env_CXXFLAGS_value=$CXXFLAGS
766: ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
767: ac_cv_env_CXXFLAGS_value=$CXXFLAGS
768: ac_env_LDFLAGS_set=${LDFLAGS+set}
769: ac_env_LDFLAGS_value=$LDFLAGS
770: ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
771: ac_cv_env_LDFLAGS_value=$LDFLAGS
772: ac_env_CPPFLAGS_set=${CPPFLAGS+set}
773: ac_env_CPPFLAGS_value=$CPPFLAGS
774: ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
775: ac_cv_env_CPPFLAGS_value=$CPPFLAGS
776: ac_env_CC_set=${CC+set}
777: ac_env_CC_value=$CC
778: ac_cv_env_CC_set=${CC+set}
779: ac_cv_env_CC_value=$CC
780: ac_env_CFLAGS_set=${CFLAGS+set}
781: ac_env_CFLAGS_value=$CFLAGS
782: ac_cv_env_CFLAGS_set=${CFLAGS+set}
783: ac_cv_env_CFLAGS_value=$CFLAGS
1.15 paf 784: ac_env_CPP_set=${CPP+set}
785: ac_env_CPP_value=$CPP
786: ac_cv_env_CPP_set=${CPP+set}
787: ac_cv_env_CPP_value=$CPP
1.23 moko 788: ac_env_CXXCPP_set=${CXXCPP+set}
789: ac_env_CXXCPP_value=$CXXCPP
790: ac_cv_env_CXXCPP_set=${CXXCPP+set}
791: ac_cv_env_CXXCPP_value=$CXXCPP
1.10 paf 792:
793: #
794: # Report the --help message.
795: #
796: if test "$ac_init_help" = "long"; then
797: # Omit some internal or obsolete options to make the list less imposing.
798: # This message is too long to be a string in the A/UX 3.1 sh.
799: cat <<_ACEOF
1.23 moko 800: \`configure' configures parser3pgsql.C 10.3 to adapt to many kinds of systems.
1.10 paf 801:
802: Usage: $0 [OPTION]... [VAR=VALUE]...
803:
804: To assign environment variables (e.g., CC, CFLAGS...), specify them as
805: VAR=VALUE. See below for descriptions of some of the useful variables.
806:
807: Defaults for the options are specified in brackets.
808:
809: Configuration:
810: -h, --help display this help and exit
811: --help=short display options specific to this package
812: --help=recursive display the short help of all the included packages
813: -V, --version display version information and exit
814: -q, --quiet, --silent do not print \`checking...' messages
815: --cache-file=FILE cache test results in FILE [disabled]
816: -C, --config-cache alias for \`--cache-file=config.cache'
817: -n, --no-create do not create output files
818: --srcdir=DIR find the sources in DIR [configure dir or \`..']
819:
820: _ACEOF
821:
822: cat <<_ACEOF
823: Installation directories:
824: --prefix=PREFIX install architecture-independent files in PREFIX
1.16 paf 825: [$ac_default_prefix]
1.10 paf 826: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1.16 paf 827: [PREFIX]
1.10 paf 828:
829: By default, \`make install' will install all the files in
830: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
831: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
832: for instance \`--prefix=\$HOME'.
833:
834: For better control, use the options below.
835:
836: Fine tuning of the installation directories:
837: --bindir=DIR user executables [EPREFIX/bin]
838: --sbindir=DIR system admin executables [EPREFIX/sbin]
839: --libexecdir=DIR program executables [EPREFIX/libexec]
840: --datadir=DIR read-only architecture-independent data [PREFIX/share]
841: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
842: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
843: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
844: --libdir=DIR object code libraries [EPREFIX/lib]
845: --includedir=DIR C header files [PREFIX/include]
846: --oldincludedir=DIR C header files for non-gcc [/usr/include]
847: --infodir=DIR info documentation [PREFIX/info]
848: --mandir=DIR man documentation [PREFIX/man]
849: _ACEOF
850:
851: cat <<\_ACEOF
852:
853: Program names:
854: --program-prefix=PREFIX prepend PREFIX to installed program names
855: --program-suffix=SUFFIX append SUFFIX to installed program names
856: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
857:
858: System types:
859: --build=BUILD configure for building on BUILD [guessed]
860: --host=HOST cross-compile to build programs to run on HOST [BUILD]
861: _ACEOF
862: fi
863:
864: if test -n "$ac_init_help"; then
1.23 moko 865: case $ac_init_help in
866: short | recursive ) echo "Configuration of parser3pgsql.C 10.3:";;
867: esac
1.10 paf 868: cat <<\_ACEOF
869:
870: Optional Features:
871: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
872: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1.16 paf 873: --disable-dependency-tracking speeds up one-time build
874: --enable-dependency-tracking do not reject slow dependency extractors
1.23 moko 875: --enable-shared[=PKGS]
876: build shared libraries [default=yes]
877: --enable-static[=PKGS]
878: build static libraries [default=yes]
879: --enable-fast-install[=PKGS]
880: optimize for fast installation [default=yes]
1.10 paf 881: --disable-libtool-lock avoid locking (might break parallel builds)
1.23 moko 882: --enable-ltdl-install install libltdl
1.10 paf 883:
884: Optional Packages:
885: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
886: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1.23 moko 887: --with-pgsql-inc=DIR DIR is the PgSql includes directory
1.21 misha 888: --with-dynamic-stdcpp link libstdc++ dynamically
889: by default, libstdc++ is linked statically
1.23 moko 890: --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
891: both]
892: --with-gnu-ld assume the C compiler uses GNU ld [default=no]
893: --with-sysroot=DIR Search for dependent libraries within DIR
894: (or the compiler's sysroot if not specified).
895: --with-included-ltdl use the GNU ltdl sources included here
896: --with-ltdl-include=DIR use the ltdl headers installed in DIR
897: --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1.10 paf 898:
899: Some influential environment variables:
900: CXX C++ compiler command
901: CXXFLAGS C++ compiler flags
902: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
903: nonstandard directory <lib dir>
904: CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
905: headers in a nonstandard directory <include dir>
906: CC C compiler command
907: CFLAGS C compiler flags
1.15 paf 908: CPP C preprocessor
1.23 moko 909: CXXCPP C++ preprocessor
1.10 paf 910:
911: Use these variables to override the choices made by `configure' or to help
912: it to find libraries and programs with nonstandard names/locations.
913:
914: _ACEOF
915: fi
916:
917: if test "$ac_init_help" = "recursive"; then
918: # If there are subdirs, report their specific --help.
919: ac_popdir=`pwd`
920: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
921: test -d $ac_dir || continue
922: ac_builddir=.
923:
924: if test "$ac_dir" != .; then
925: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
926: # A "../" for each directory in $ac_dir_suffix.
927: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
928: else
929: ac_dir_suffix= ac_top_builddir=
930: fi
931:
932: case $srcdir in
933: .) # No --srcdir option. We are building in place.
934: ac_srcdir=.
935: if test -z "$ac_top_builddir"; then
936: ac_top_srcdir=.
937: else
938: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
939: fi ;;
940: [\\/]* | ?:[\\/]* ) # Absolute path.
941: ac_srcdir=$srcdir$ac_dir_suffix;
942: ac_top_srcdir=$srcdir ;;
943: *) # Relative path.
944: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
945: ac_top_srcdir=$ac_top_builddir$srcdir ;;
946: esac
1.16 paf 947:
948: # Do not use `cd foo && pwd` to compute absolute paths, because
949: # the directories may not exist.
950: case `pwd` in
951: .) ac_abs_builddir="$ac_dir";;
952: *)
953: case "$ac_dir" in
954: .) ac_abs_builddir=`pwd`;;
955: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
956: *) ac_abs_builddir=`pwd`/"$ac_dir";;
957: esac;;
958: esac
959: case $ac_abs_builddir in
960: .) ac_abs_top_builddir=${ac_top_builddir}.;;
961: *)
962: case ${ac_top_builddir}. in
963: .) ac_abs_top_builddir=$ac_abs_builddir;;
964: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
965: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
966: esac;;
967: esac
968: case $ac_abs_builddir in
969: .) ac_abs_srcdir=$ac_srcdir;;
970: *)
971: case $ac_srcdir in
972: .) ac_abs_srcdir=$ac_abs_builddir;;
973: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
974: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
975: esac;;
976: esac
977: case $ac_abs_builddir in
978: .) ac_abs_top_srcdir=$ac_top_srcdir;;
979: *)
980: case $ac_top_srcdir in
981: .) ac_abs_top_srcdir=$ac_abs_builddir;;
982: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
983: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
984: esac;;
985: esac
1.10 paf 986:
987: cd $ac_dir
988: # Check for guested configure; otherwise get Cygnus style configure.
989: if test -f $ac_srcdir/configure.gnu; then
990: echo
991: $SHELL $ac_srcdir/configure.gnu --help=recursive
992: elif test -f $ac_srcdir/configure; then
993: echo
994: $SHELL $ac_srcdir/configure --help=recursive
995: elif test -f $ac_srcdir/configure.ac ||
1.16 paf 996: test -f $ac_srcdir/configure.in; then
1.10 paf 997: echo
998: $ac_configure --help
999: else
1000: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1001: fi
1002: cd $ac_popdir
1003: done
1004: fi
1.1 parser 1005:
1.10 paf 1006: test -n "$ac_init_help" && exit 0
1007: if $ac_init_version; then
1008: cat <<\_ACEOF
1.23 moko 1009: parser3pgsql.C configure 10.3
1010: generated by GNU Autoconf 2.59
1.10 paf 1011:
1.16 paf 1012: Copyright (C) 2003 Free Software Foundation, Inc.
1.10 paf 1013: This configure script is free software; the Free Software Foundation
1014: gives unlimited permission to copy, distribute and modify it.
1015: _ACEOF
1016: exit 0
1017: fi
1018: exec 5>config.log
1019: cat >&5 <<_ACEOF
1020: This file contains any messages produced by compilers while
1021: running configure, to aid debugging if configure makes a mistake.
1022:
1.23 moko 1023: It was created by parser3pgsql.C $as_me 10.3, which was
1.16 paf 1024: generated by GNU Autoconf 2.59. Invocation command line was
1.10 paf 1025:
1026: $ $0 $@
1027:
1028: _ACEOF
1029: {
1030: cat <<_ASUNAME
1031: ## --------- ##
1032: ## Platform. ##
1033: ## --------- ##
1034:
1035: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1036: uname -m = `(uname -m) 2>/dev/null || echo unknown`
1037: uname -r = `(uname -r) 2>/dev/null || echo unknown`
1038: uname -s = `(uname -s) 2>/dev/null || echo unknown`
1039: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1040:
1041: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1042: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1043:
1044: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1045: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1046: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1047: hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1048: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1049: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1050: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1051:
1052: _ASUNAME
1053:
1054: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1055: for as_dir in $PATH
1056: do
1057: IFS=$as_save_IFS
1058: test -z "$as_dir" && as_dir=.
1059: echo "PATH: $as_dir"
1060: done
1061:
1062: } >&5
1063:
1064: cat >&5 <<_ACEOF
1065:
1066:
1067: ## ----------- ##
1068: ## Core tests. ##
1069: ## ----------- ##
1070:
1071: _ACEOF
1072:
1073:
1074: # Keep a trace of the command line.
1075: # Strip out --no-create and --no-recursion so they do not pile up.
1076: # Strip out --silent because we don't want to record it for future runs.
1077: # Also quote any args containing shell meta-characters.
1078: # Make two passes to allow for proper duplicate-argument suppression.
1079: ac_configure_args=
1080: ac_configure_args0=
1081: ac_configure_args1=
1082: ac_sep=
1083: ac_must_keep_next=false
1084: for ac_pass in 1 2
1085: do
1086: for ac_arg
1087: do
1088: case $ac_arg in
1089: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1090: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1091: | -silent | --silent | --silen | --sile | --sil)
1092: continue ;;
1093: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1094: ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1095: esac
1096: case $ac_pass in
1097: 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1098: 2)
1099: ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1100: if test $ac_must_keep_next = true; then
1.16 paf 1101: ac_must_keep_next=false # Got value, back to normal.
1.10 paf 1102: else
1.16 paf 1103: case $ac_arg in
1104: *=* | --config-cache | -C | -disable-* | --disable-* \
1105: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1106: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1107: | -with-* | --with-* | -without-* | --without-* | --x)
1108: case "$ac_configure_args0 " in
1109: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1110: esac
1111: ;;
1112: -* ) ac_must_keep_next=true ;;
1113: esac
1.10 paf 1114: fi
1115: ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1116: # Get rid of the leading space.
1117: ac_sep=" "
1118: ;;
1119: esac
1120: done
1121: done
1122: $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1123: $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1124:
1125: # When interrupted or exit'd, cleanup temporary files, and complete
1126: # config.log. We remove comments because anyway the quotes in there
1127: # would cause problems or look ugly.
1128: # WARNING: Be sure not to use single quotes in there, as some shells,
1129: # such as our DU 5.0 friend, will then `close' the trap.
1130: trap 'exit_status=$?
1131: # Save into config.log some information that might help in debugging.
1132: {
1133: echo
1134:
1135: cat <<\_ASBOX
1136: ## ---------------- ##
1137: ## Cache variables. ##
1138: ## ---------------- ##
1139: _ASBOX
1140: echo
1141: # The following way of writing the cache mishandles newlines in values,
1142: {
1143: (set) 2>&1 |
1144: case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1145: *ac_space=\ *)
1146: sed -n \
1.16 paf 1147: "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1148: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1.10 paf 1149: ;;
1150: *)
1151: sed -n \
1.16 paf 1152: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1.10 paf 1153: ;;
1154: esac;
1155: }
1156: echo
1157:
1158: cat <<\_ASBOX
1159: ## ----------------- ##
1160: ## Output variables. ##
1161: ## ----------------- ##
1162: _ASBOX
1163: echo
1164: for ac_var in $ac_subst_vars
1165: do
1166: eval ac_val=$`echo $ac_var`
1167: echo "$ac_var='"'"'$ac_val'"'"'"
1168: done | sort
1169: echo
1170:
1171: if test -n "$ac_subst_files"; then
1172: cat <<\_ASBOX
1173: ## ------------- ##
1174: ## Output files. ##
1175: ## ------------- ##
1176: _ASBOX
1177: echo
1178: for ac_var in $ac_subst_files
1179: do
1180: eval ac_val=$`echo $ac_var`
1.16 paf 1181: echo "$ac_var='"'"'$ac_val'"'"'"
1.10 paf 1182: done | sort
1183: echo
1184: fi
1185:
1186: if test -s confdefs.h; then
1187: cat <<\_ASBOX
1188: ## ----------- ##
1189: ## confdefs.h. ##
1190: ## ----------- ##
1191: _ASBOX
1192: echo
1193: sed "/^$/d" confdefs.h | sort
1194: echo
1195: fi
1196: test "$ac_signal" != 0 &&
1197: echo "$as_me: caught signal $ac_signal"
1198: echo "$as_me: exit $exit_status"
1199: } >&5
1.16 paf 1200: rm -f core *.core &&
1.10 paf 1201: rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1202: exit $exit_status
1203: ' 0
1204: for ac_signal in 1 2 13 15; do
1205: trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1206: done
1207: ac_signal=0
1208:
1209: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1210: rm -rf conftest* confdefs.h
1211: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1212: echo >confdefs.h
1213:
1214: # Predefined preprocessor variables.
1215:
1216: cat >>confdefs.h <<_ACEOF
1217: #define PACKAGE_NAME "$PACKAGE_NAME"
1218: _ACEOF
1219:
1220:
1221: cat >>confdefs.h <<_ACEOF
1222: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1223: _ACEOF
1224:
1225:
1226: cat >>confdefs.h <<_ACEOF
1227: #define PACKAGE_VERSION "$PACKAGE_VERSION"
1228: _ACEOF
1229:
1230:
1231: cat >>confdefs.h <<_ACEOF
1232: #define PACKAGE_STRING "$PACKAGE_STRING"
1233: _ACEOF
1234:
1235:
1236: cat >>confdefs.h <<_ACEOF
1237: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1238: _ACEOF
1239:
1240:
1241: # Let the site file select an alternate cache file if it wants to.
1.1 parser 1242: # Prefer explicitly selected file to automatically selected ones.
1243: if test -z "$CONFIG_SITE"; then
1244: if test "x$prefix" != xNONE; then
1245: CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1246: else
1247: CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1248: fi
1249: fi
1250: for ac_site_file in $CONFIG_SITE; do
1251: if test -r "$ac_site_file"; then
1.10 paf 1252: { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1253: echo "$as_me: loading site script $ac_site_file" >&6;}
1254: sed 's/^/| /' "$ac_site_file" >&5
1.1 parser 1255: . "$ac_site_file"
1256: fi
1257: done
1258:
1259: if test -r "$cache_file"; then
1.10 paf 1260: # Some versions of bash will fail to source /dev/null (special
1261: # files actually), so we avoid doing that.
1262: if test -f "$cache_file"; then
1263: { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1264: echo "$as_me: loading cache $cache_file" >&6;}
1265: case $cache_file in
1266: [\\/]* | ?:[\\/]* ) . $cache_file;;
1267: *) . ./$cache_file;;
1268: esac
1269: fi
1.1 parser 1270: else
1.10 paf 1271: { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1272: echo "$as_me: creating cache $cache_file" >&6;}
1273: >$cache_file
1274: fi
1275:
1276: # Check that the precious variables saved in the cache have kept the same
1277: # value.
1278: ac_cache_corrupted=false
1279: for ac_var in `(set) 2>&1 |
1.16 paf 1280: sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1.10 paf 1281: eval ac_old_set=\$ac_cv_env_${ac_var}_set
1282: eval ac_new_set=\$ac_env_${ac_var}_set
1283: eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1284: eval ac_new_val="\$ac_env_${ac_var}_value"
1285: case $ac_old_set,$ac_new_set in
1286: set,)
1287: { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1288: echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1289: ac_cache_corrupted=: ;;
1290: ,set)
1291: { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1292: echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1293: ac_cache_corrupted=: ;;
1294: ,);;
1295: *)
1296: if test "x$ac_old_val" != "x$ac_new_val"; then
1.16 paf 1297: { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1.10 paf 1298: echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1.16 paf 1299: { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1.10 paf 1300: echo "$as_me: former value: $ac_old_val" >&2;}
1.16 paf 1301: { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1.10 paf 1302: echo "$as_me: current value: $ac_new_val" >&2;}
1.16 paf 1303: ac_cache_corrupted=:
1.10 paf 1304: fi;;
1305: esac
1306: # Pass precious variables to config.status.
1307: if test "$ac_new_set" = set; then
1308: case $ac_new_val in
1309: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1310: ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1311: *) ac_arg=$ac_var=$ac_new_val ;;
1312: esac
1313: case " $ac_configure_args " in
1314: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1315: *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1316: esac
1317: fi
1318: done
1319: if $ac_cache_corrupted; then
1320: { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1321: echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1322: { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1323: echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1324: { (exit 1); exit 1; }; }
1.1 parser 1325: fi
1326:
1327: ac_ext=c
1328: ac_cpp='$CPP $CPPFLAGS'
1.10 paf 1329: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1330: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1331: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1 parser 1332:
1333:
1.10 paf 1334:
1335:
1336:
1337:
1338:
1339:
1340:
1341:
1342:
1343:
1344:
1345:
1346:
1347:
1348:
1349:
1350:
1.23 moko 1351:
1352:
1353:
1354:
1355:
1356:
1357:
1358:
1359:
1360: ac_config_headers="$ac_config_headers config_auto.h"
1361:
1362:
1.16 paf 1363: am__api_version="1.9"
1.1 parser 1364: ac_aux_dir=
1365: for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1366: if test -f $ac_dir/install-sh; then
1367: ac_aux_dir=$ac_dir
1368: ac_install_sh="$ac_aux_dir/install-sh -c"
1369: break
1370: elif test -f $ac_dir/install.sh; then
1371: ac_aux_dir=$ac_dir
1372: ac_install_sh="$ac_aux_dir/install.sh -c"
1373: break
1.10 paf 1374: elif test -f $ac_dir/shtool; then
1375: ac_aux_dir=$ac_dir
1376: ac_install_sh="$ac_aux_dir/shtool install -c"
1377: break
1.1 parser 1378: fi
1379: done
1380: if test -z "$ac_aux_dir"; then
1.10 paf 1381: { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1382: echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1383: { (exit 1); exit 1; }; }
1384: fi
1385: ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1386: ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1387: ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1.1 parser 1388:
1389: # Find a good install program. We prefer a C program (faster),
1390: # so one script is as good as another. But avoid the broken or
1391: # incompatible versions:
1392: # SysV /etc/install, /usr/sbin/install
1393: # SunOS /usr/etc/install
1394: # IRIX /sbin/install
1395: # AIX /bin/install
1.10 paf 1396: # AmigaOS /C/install, which installs bootblocks on floppy discs
1.1 parser 1397: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1398: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1399: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1.16 paf 1400: # OS/2's system install, which has a completely different semantic
1.1 parser 1401: # ./install, which can be erroneously created by make from ./install.sh.
1.10 paf 1402: echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1403: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1.1 parser 1404: if test -z "$INSTALL"; then
1.10 paf 1405: if test "${ac_cv_path_install+set}" = set; then
1406: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 1407: else
1.10 paf 1408: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1409: for as_dir in $PATH
1410: do
1411: IFS=$as_save_IFS
1412: test -z "$as_dir" && as_dir=.
1413: # Account for people who put trailing slashes in PATH elements.
1414: case $as_dir/ in
1415: ./ | .// | /cC/* | \
1416: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.16 paf 1417: ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1.10 paf 1418: /usr/ucb/* ) ;;
1419: *)
1420: # OSF1 and SCO ODT 3.0 have their own names for install.
1421: # Don't use installbsd from OSF since it installs stuff as root
1422: # by default.
1423: for ac_prog in ginstall scoinst install; do
1424: for ac_exec_ext in '' $ac_executable_extensions; do
1.16 paf 1425: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1426: if test $ac_prog = install &&
1427: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1428: # AIX install. It has an incompatible calling convention.
1429: :
1430: elif test $ac_prog = install &&
1431: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1432: # program-specific install script used by HP pwplus--don't use.
1433: :
1434: else
1435: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1436: break 3
1437: fi
1438: fi
1.1 parser 1439: done
1.10 paf 1440: done
1441: ;;
1442: esac
1443: done
1444:
1.1 parser 1445:
1446: fi
1447: if test "${ac_cv_path_install+set}" = set; then
1.10 paf 1448: INSTALL=$ac_cv_path_install
1.1 parser 1449: else
1450: # As a last resort, use the slow shell script. We don't cache a
1451: # path for INSTALL within a source directory, because that will
1452: # break other packages using the cache if that directory is
1453: # removed, or if the path is relative.
1.10 paf 1454: INSTALL=$ac_install_sh
1.1 parser 1455: fi
1456: fi
1.10 paf 1457: echo "$as_me:$LINENO: result: $INSTALL" >&5
1458: echo "${ECHO_T}$INSTALL" >&6
1.1 parser 1459:
1460: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1461: # It thinks the first close brace ends the variable substitution.
1462: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1463:
1.10 paf 1464: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.1 parser 1465:
1466: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1467:
1.10 paf 1468: echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1469: echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1.1 parser 1470: # Just in case
1471: sleep 1
1.10 paf 1472: echo timestamp > conftest.file
1.1 parser 1473: # Do `set' in a subshell so we don't clobber the current shell's
1474: # arguments. Must try -L first in case configure is actually a
1475: # symlink; some systems play weird games with the mod time of symlinks
1476: # (eg FreeBSD returns the mod time of the symlink's containing
1477: # directory).
1478: if (
1.10 paf 1479: set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1.1 parser 1480: if test "$*" = "X"; then
1481: # -L didn't work.
1.10 paf 1482: set X `ls -t $srcdir/configure conftest.file`
1.1 parser 1483: fi
1.10 paf 1484: rm -f conftest.file
1485: if test "$*" != "X $srcdir/configure conftest.file" \
1486: && test "$*" != "X conftest.file $srcdir/configure"; then
1.1 parser 1487:
1488: # If neither matched, then we have a broken ls. This can happen
1489: # if, for instance, CONFIG_SHELL is bash and it inherits a
1490: # broken ls alias from the environment. This has actually
1491: # happened. Such a system could not be considered "sane".
1.10 paf 1492: { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1493: alias in your environment" >&5
1494: echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1495: alias in your environment" >&2;}
1496: { (exit 1); exit 1; }; }
1.1 parser 1497: fi
1498:
1.10 paf 1499: test "$2" = conftest.file
1.1 parser 1500: )
1501: then
1502: # Ok.
1503: :
1504: else
1.10 paf 1505: { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1506: Check your system clock" >&5
1507: echo "$as_me: error: newly created file is older than distributed files!
1508: Check your system clock" >&2;}
1509: { (exit 1); exit 1; }; }
1.1 parser 1510: fi
1.10 paf 1511: echo "$as_me:$LINENO: result: yes" >&5
1512: echo "${ECHO_T}yes" >&6
1.1 parser 1513: test "$program_prefix" != NONE &&
1.10 paf 1514: program_transform_name="s,^,$program_prefix,;$program_transform_name"
1.1 parser 1515: # Use a double $ so make ignores it.
1516: test "$program_suffix" != NONE &&
1.10 paf 1517: program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1518: # Double any \ or $. echo might interpret backslashes.
1519: # By default was `s,x,x', remove it if useless.
1520: cat <<\_ACEOF >conftest.sed
1521: s/[\\$]/&&/g;s/;s,x,x,$//
1522: _ACEOF
1523: program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1524: rm conftest.sed
1525:
1526: # expand $ac_aux_dir to an absolute path
1527: am_aux_dir=`cd $ac_aux_dir && pwd`
1528:
1529: test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1530: # Use eval to expand $SHELL
1531: if eval "$MISSING --run true"; then
1532: am_missing_run="$MISSING --run "
1533: else
1534: am_missing_run=
1535: { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1536: echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1537: fi
1538:
1.16 paf 1539: if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1540: # We used to keeping the `.' as first argument, in order to
1541: # allow $(mkdir_p) to be used without argument. As in
1542: # $(mkdir_p) $(somedir)
1543: # where $(somedir) is conditionally defined. However this is wrong
1544: # for two reasons:
1545: # 1. if the package is installed by a user who cannot write `.'
1546: # make install will fail,
1547: # 2. the above comment should most certainly read
1548: # $(mkdir_p) $(DESTDIR)$(somedir)
1549: # so it does not work when $(somedir) is undefined and
1550: # $(DESTDIR) is not.
1551: # To support the latter case, we have to write
1552: # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1553: # so the `.' trick is pointless.
1554: mkdir_p='mkdir -p --'
1555: else
1556: # On NextStep and OpenStep, the `mkdir' command does not
1557: # recognize any option. It will interpret all options as
1558: # directories to create, and then abort because `.' already
1559: # exists.
1560: for d in ./-p ./--version;
1561: do
1562: test -d $d && rmdir $d
1563: done
1564: # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1565: if test -f "$ac_aux_dir/mkinstalldirs"; then
1566: mkdir_p='$(mkinstalldirs)'
1567: else
1568: mkdir_p='$(install_sh) -d'
1569: fi
1570: fi
1571:
1.10 paf 1572: for ac_prog in gawk mawk nawk awk
1573: do
1574: # Extract the first word of "$ac_prog", so it can be a program name with args.
1575: set dummy $ac_prog; ac_word=$2
1576: echo "$as_me:$LINENO: checking for $ac_word" >&5
1577: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1578: if test "${ac_cv_prog_AWK+set}" = set; then
1579: echo $ECHO_N "(cached) $ECHO_C" >&6
1580: else
1581: if test -n "$AWK"; then
1582: ac_cv_prog_AWK="$AWK" # Let the user override the test.
1583: else
1584: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1585: for as_dir in $PATH
1586: do
1587: IFS=$as_save_IFS
1588: test -z "$as_dir" && as_dir=.
1589: for ac_exec_ext in '' $ac_executable_extensions; do
1590: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1591: ac_cv_prog_AWK="$ac_prog"
1592: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1593: break 2
1594: fi
1595: done
1596: done
1597:
1598: fi
1599: fi
1600: AWK=$ac_cv_prog_AWK
1601: if test -n "$AWK"; then
1602: echo "$as_me:$LINENO: result: $AWK" >&5
1603: echo "${ECHO_T}$AWK" >&6
1604: else
1605: echo "$as_me:$LINENO: result: no" >&5
1606: echo "${ECHO_T}no" >&6
1607: fi
1.1 parser 1608:
1.10 paf 1609: test -n "$AWK" && break
1610: done
1.1 parser 1611:
1.10 paf 1612: echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1613: echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1.16 paf 1614: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1.10 paf 1615: if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1616: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 1617: else
1.10 paf 1618: cat >conftest.make <<\_ACEOF
1.1 parser 1619: all:
1.10 paf 1620: @echo 'ac_maketemp="$(MAKE)"'
1621: _ACEOF
1.1 parser 1622: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1.10 paf 1623: eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1.1 parser 1624: if test -n "$ac_maketemp"; then
1625: eval ac_cv_prog_make_${ac_make}_set=yes
1626: else
1627: eval ac_cv_prog_make_${ac_make}_set=no
1628: fi
1.10 paf 1629: rm -f conftest.make
1.1 parser 1630: fi
1631: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1.10 paf 1632: echo "$as_me:$LINENO: result: yes" >&5
1633: echo "${ECHO_T}yes" >&6
1.1 parser 1634: SET_MAKE=
1635: else
1.10 paf 1636: echo "$as_me:$LINENO: result: no" >&5
1637: echo "${ECHO_T}no" >&6
1.1 parser 1638: SET_MAKE="MAKE=${MAKE-make}"
1639: fi
1640:
1.16 paf 1641: rm -rf .tst 2>/dev/null
1642: mkdir .tst 2>/dev/null
1643: if test -d .tst; then
1644: am__leading_dot=.
1645: else
1646: am__leading_dot=_
1647: fi
1648: rmdir .tst 2>/dev/null
1649:
1650: # test to see if srcdir already configured
1.10 paf 1651: if test "`cd $srcdir && pwd`" != "`pwd`" &&
1652: test -f $srcdir/config.status; then
1653: { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1654: echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1655: { (exit 1); exit 1; }; }
1656: fi
1657:
1658: # test whether we have cygpath
1659: if test -z "$CYGPATH_W"; then
1660: if (cygpath --version) >/dev/null 2>/dev/null; then
1661: CYGPATH_W='cygpath -w'
1662: else
1663: CYGPATH_W=echo
1664: fi
1665: fi
1666:
1667:
1668: # Define the identity of the package.
1.23 moko 1669: PACKAGE='parser3pgsql-c'
1670: VERSION='10.3'
1671:
1672:
1673: cat >>confdefs.h <<_ACEOF
1674: #define PACKAGE "$PACKAGE"
1675: _ACEOF
1676:
1.1 parser 1677:
1.23 moko 1678: cat >>confdefs.h <<_ACEOF
1679: #define VERSION "$VERSION"
1680: _ACEOF
1.1 parser 1681:
1.10 paf 1682: # Some tools Automake needs.
1683:
1684: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1685:
1686:
1687: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1688:
1689:
1690: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1691:
1692:
1693: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1694:
1695:
1696: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1.1 parser 1697:
1.10 paf 1698: install_sh=${install_sh-"$am_aux_dir/install-sh"}
1.1 parser 1699:
1.10 paf 1700: # Installed binaries are usually stripped using `strip' when the user
1701: # run `make install-strip'. However `strip' might not be the right
1702: # tool to use in cross-compilation environments, therefore Automake
1703: # will honor the `STRIP' environment variable to overrule this program.
1704: if test "$cross_compiling" != no; then
1705: if test -n "$ac_tool_prefix"; then
1706: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1707: set dummy ${ac_tool_prefix}strip; ac_word=$2
1708: echo "$as_me:$LINENO: checking for $ac_word" >&5
1709: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1710: if test "${ac_cv_prog_STRIP+set}" = set; then
1711: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 1712: else
1.10 paf 1713: if test -n "$STRIP"; then
1714: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1715: else
1716: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1717: for as_dir in $PATH
1718: do
1719: IFS=$as_save_IFS
1720: test -z "$as_dir" && as_dir=.
1721: for ac_exec_ext in '' $ac_executable_extensions; do
1722: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1723: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1724: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1725: break 2
1726: fi
1727: done
1728: done
1729:
1730: fi
1731: fi
1732: STRIP=$ac_cv_prog_STRIP
1733: if test -n "$STRIP"; then
1734: echo "$as_me:$LINENO: result: $STRIP" >&5
1735: echo "${ECHO_T}$STRIP" >&6
1736: else
1737: echo "$as_me:$LINENO: result: no" >&5
1738: echo "${ECHO_T}no" >&6
1.1 parser 1739: fi
1740:
1.10 paf 1741: fi
1742: if test -z "$ac_cv_prog_STRIP"; then
1743: ac_ct_STRIP=$STRIP
1744: # Extract the first word of "strip", so it can be a program name with args.
1745: set dummy strip; ac_word=$2
1746: echo "$as_me:$LINENO: checking for $ac_word" >&5
1747: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1748: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1749: echo $ECHO_N "(cached) $ECHO_C" >&6
1750: else
1751: if test -n "$ac_ct_STRIP"; then
1752: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1.1 parser 1753: else
1.10 paf 1754: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1755: for as_dir in $PATH
1756: do
1757: IFS=$as_save_IFS
1758: test -z "$as_dir" && as_dir=.
1759: for ac_exec_ext in '' $ac_executable_extensions; do
1760: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1761: ac_cv_prog_ac_ct_STRIP="strip"
1762: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1763: break 2
1764: fi
1765: done
1766: done
1767:
1768: test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1769: fi
1.1 parser 1770: fi
1.10 paf 1771: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1772: if test -n "$ac_ct_STRIP"; then
1773: echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1774: echo "${ECHO_T}$ac_ct_STRIP" >&6
1.1 parser 1775: else
1.10 paf 1776: echo "$as_me:$LINENO: result: no" >&5
1777: echo "${ECHO_T}no" >&6
1.1 parser 1778: fi
1779:
1.10 paf 1780: STRIP=$ac_ct_STRIP
1.1 parser 1781: else
1.10 paf 1782: STRIP="$ac_cv_prog_STRIP"
1.1 parser 1783: fi
1784:
1785: fi
1.10 paf 1786: INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1.1 parser 1787:
1.10 paf 1788: # We need awk for the "check" target. The system "awk" is bad on
1789: # some platforms.
1.16 paf 1790: # Always define AMTAR for backward compatibility.
1791:
1792: AMTAR=${AMTAR-"${am_missing_run}tar"}
1793:
1794: am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1795:
1796:
1.1 parser 1797:
1798:
1799:
1800:
1.23 moko 1801:
1.10 paf 1802:
1.1 parser 1803:
1.2 parser 1804: # Check whether --with-pgsql-inc or --without-pgsql-inc was given.
1.1 parser 1805: if test "${with_pgsql_inc+set}" = set; then
1806: withval="$with_pgsql_inc"
1.10 paf 1807:
1.23 moko 1808: if test -r "$withval/libpq-fe.h"; then
1809: PGSQL_INC=$withval
1810: fi
1811:
1812:
1813: if test -z "$PGSQL_INC"; then
1814: { { echo "$as_me:$LINENO: error: $PGSQL_INC does not seem to be valid PgSql includes directory" >&5
1815: echo "$as_me: error: $PGSQL_INC does not seem to be valid PgSql includes directory" >&2;}
1816: { (exit 1); exit 1; }; }
1817: fi
1818:
1.1 parser 1819: else
1.23 moko 1820: echo "$as_me:$LINENO: checking for PGSQL_INC directory" >&5
1821: echo $ECHO_N "checking for PGSQL_INC directory... $ECHO_C" >&6
1822: for d in \
1823: /usr/local/include/postgresql \
1824: /usr/include/postgresql \
1825: /usr/local/pgsql/include ; do
1.1 parser 1826:
1.23 moko 1827: if test -r "$d/libpq-fe.h"; then
1828: PGSQL_INC=$d
1829: fi
1.1 parser 1830:
1.23 moko 1831: done
1.1 parser 1832:
1.23 moko 1833: if test -z "$PGSQL_INC"; then
1834: { { echo "$as_me:$LINENO: error: use --with-pgsql-inc=DIR to specify PgSql includes directory" >&5
1835: echo "$as_me: error: use --with-pgsql-inc=DIR to specify PgSql includes directory" >&2;}
1.10 paf 1836: { (exit 1); exit 1; }; }
1.23 moko 1837: fi
1838:
1839: echo "$as_me:$LINENO: result: $PGSQL_INC" >&5
1840: echo "${ECHO_T}$PGSQL_INC" >&6
1841:
1842: fi;
1843:
1.1 parser 1844:
1.21 misha 1845:
1846:
1847: # Check whether --with-dynamic-stdcpp or --without-dynamic-stdcpp was given.
1848: if test "${with_dynamic_stdcpp+set}" = set; then
1849: withval="$with_dynamic_stdcpp"
1850:
1851: LDFLAGS="-lstdc++"
1852:
1853: else
1854:
1855: LDFLAGS="-Wl,-Bstatic -Wl,-lstdc++ -Wl,-Bdynamic"
1856:
1857: fi;
1858:
1859:
1860:
1.1 parser 1861: # Find a good install program. We prefer a C program (faster),
1862: # so one script is as good as another. But avoid the broken or
1863: # incompatible versions:
1864: # SysV /etc/install, /usr/sbin/install
1865: # SunOS /usr/etc/install
1866: # IRIX /sbin/install
1867: # AIX /bin/install
1.10 paf 1868: # AmigaOS /C/install, which installs bootblocks on floppy discs
1.1 parser 1869: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1870: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1871: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1.16 paf 1872: # OS/2's system install, which has a completely different semantic
1.1 parser 1873: # ./install, which can be erroneously created by make from ./install.sh.
1.10 paf 1874: echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1875: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1.1 parser 1876: if test -z "$INSTALL"; then
1.10 paf 1877: if test "${ac_cv_path_install+set}" = set; then
1878: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 1879: else
1.10 paf 1880: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1881: for as_dir in $PATH
1882: do
1883: IFS=$as_save_IFS
1884: test -z "$as_dir" && as_dir=.
1885: # Account for people who put trailing slashes in PATH elements.
1886: case $as_dir/ in
1887: ./ | .// | /cC/* | \
1888: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.16 paf 1889: ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1.10 paf 1890: /usr/ucb/* ) ;;
1891: *)
1892: # OSF1 and SCO ODT 3.0 have their own names for install.
1893: # Don't use installbsd from OSF since it installs stuff as root
1894: # by default.
1895: for ac_prog in ginstall scoinst install; do
1896: for ac_exec_ext in '' $ac_executable_extensions; do
1.16 paf 1897: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1898: if test $ac_prog = install &&
1899: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1900: # AIX install. It has an incompatible calling convention.
1901: :
1902: elif test $ac_prog = install &&
1903: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1904: # program-specific install script used by HP pwplus--don't use.
1905: :
1906: else
1907: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1908: break 3
1909: fi
1910: fi
1.1 parser 1911: done
1.10 paf 1912: done
1913: ;;
1914: esac
1915: done
1916:
1.1 parser 1917:
1918: fi
1919: if test "${ac_cv_path_install+set}" = set; then
1.10 paf 1920: INSTALL=$ac_cv_path_install
1.1 parser 1921: else
1922: # As a last resort, use the slow shell script. We don't cache a
1923: # path for INSTALL within a source directory, because that will
1924: # break other packages using the cache if that directory is
1925: # removed, or if the path is relative.
1.10 paf 1926: INSTALL=$ac_install_sh
1.1 parser 1927: fi
1928: fi
1.10 paf 1929: echo "$as_me:$LINENO: result: $INSTALL" >&5
1930: echo "${ECHO_T}$INSTALL" >&6
1.1 parser 1931:
1932: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1933: # It thinks the first close brace ends the variable substitution.
1934: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1935:
1.10 paf 1936: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.1 parser 1937:
1938: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1939:
1.10 paf 1940: ac_ext=cc
1941: ac_cpp='$CXXCPP $CPPFLAGS'
1942: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1943: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1944: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1945: if test -n "$ac_tool_prefix"; then
1946: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1947: do
1948: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1949: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1950: echo "$as_me:$LINENO: checking for $ac_word" >&5
1951: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1952: if test "${ac_cv_prog_CXX+set}" = set; then
1953: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 1954: else
1955: if test -n "$CXX"; then
1956: ac_cv_prog_CXX="$CXX" # Let the user override the test.
1957: else
1.10 paf 1958: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1959: for as_dir in $PATH
1960: do
1961: IFS=$as_save_IFS
1962: test -z "$as_dir" && as_dir=.
1963: for ac_exec_ext in '' $ac_executable_extensions; do
1964: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1965: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1966: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1967: break 2
1968: fi
1969: done
1970: done
1971:
1.1 parser 1972: fi
1973: fi
1.10 paf 1974: CXX=$ac_cv_prog_CXX
1.1 parser 1975: if test -n "$CXX"; then
1.10 paf 1976: echo "$as_me:$LINENO: result: $CXX" >&5
1977: echo "${ECHO_T}$CXX" >&6
1.1 parser 1978: else
1.10 paf 1979: echo "$as_me:$LINENO: result: no" >&5
1980: echo "${ECHO_T}no" >&6
1.1 parser 1981: fi
1982:
1.10 paf 1983: test -n "$CXX" && break
1984: done
1985: fi
1986: if test -z "$CXX"; then
1987: ac_ct_CXX=$CXX
1988: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1989: do
1990: # Extract the first word of "$ac_prog", so it can be a program name with args.
1991: set dummy $ac_prog; ac_word=$2
1992: echo "$as_me:$LINENO: checking for $ac_word" >&5
1993: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1994: if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1995: echo $ECHO_N "(cached) $ECHO_C" >&6
1996: else
1997: if test -n "$ac_ct_CXX"; then
1998: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1999: else
2000: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2001: for as_dir in $PATH
2002: do
2003: IFS=$as_save_IFS
2004: test -z "$as_dir" && as_dir=.
2005: for ac_exec_ext in '' $ac_executable_extensions; do
2006: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2007: ac_cv_prog_ac_ct_CXX="$ac_prog"
2008: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2009: break 2
2010: fi
2011: done
1.1 parser 2012: done
2013:
1.10 paf 2014: fi
2015: fi
2016: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2017: if test -n "$ac_ct_CXX"; then
2018: echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2019: echo "${ECHO_T}$ac_ct_CXX" >&6
2020: else
2021: echo "$as_me:$LINENO: result: no" >&5
2022: echo "${ECHO_T}no" >&6
2023: fi
1.1 parser 2024:
1.10 paf 2025: test -n "$ac_ct_CXX" && break
2026: done
2027: test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1.1 parser 2028:
1.10 paf 2029: CXX=$ac_ct_CXX
2030: fi
1.1 parser 2031:
2032:
1.10 paf 2033: # Provide some information about the compiler.
2034: echo "$as_me:$LINENO:" \
2035: "checking for C++ compiler version" >&5
2036: ac_compiler=`set X $ac_compile; echo $2`
2037: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2038: (eval $ac_compiler --version </dev/null >&5) 2>&5
2039: ac_status=$?
2040: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2041: (exit $ac_status); }
2042: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2043: (eval $ac_compiler -v </dev/null >&5) 2>&5
2044: ac_status=$?
2045: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2046: (exit $ac_status); }
2047: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2048: (eval $ac_compiler -V </dev/null >&5) 2>&5
2049: ac_status=$?
2050: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2051: (exit $ac_status); }
2052:
2053: cat >conftest.$ac_ext <<_ACEOF
2054: /* confdefs.h. */
2055: _ACEOF
2056: cat confdefs.h >>conftest.$ac_ext
2057: cat >>conftest.$ac_ext <<_ACEOF
2058: /* end confdefs.h. */
2059:
2060: int
2061: main ()
2062: {
2063:
2064: ;
2065: return 0;
2066: }
2067: _ACEOF
2068: ac_clean_files_save=$ac_clean_files
2069: ac_clean_files="$ac_clean_files a.out a.exe b.out"
2070: # Try to create an executable without -o first, disregard a.out.
2071: # It will help us diagnose broken compilers, and finding out an intuition
2072: # of exeext.
1.16 paf 2073: echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2074: echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
1.10 paf 2075: ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2076: if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2077: (eval $ac_link_default) 2>&5
2078: ac_status=$?
2079: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2080: (exit $ac_status); }; then
2081: # Find the output, starting from the most likely. This scheme is
2082: # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2083: # resort.
2084:
2085: # Be careful to initialize this variable, since it used to be cached.
2086: # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2087: ac_cv_exeext=
2088: # b.out is created by i960 compilers.
2089: for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2090: do
2091: test -f "$ac_file" || continue
2092: case $ac_file in
2093: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1.16 paf 2094: ;;
1.10 paf 2095: conftest.$ac_ext )
1.16 paf 2096: # This is the source file.
2097: ;;
1.10 paf 2098: [ab].out )
1.16 paf 2099: # We found the default executable, but exeext='' is most
2100: # certainly right.
2101: break;;
1.10 paf 2102: *.* )
1.16 paf 2103: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2104: # FIXME: I believe we export ac_cv_exeext for Libtool,
2105: # but it would be cool to find out if it's true. Does anybody
2106: # maintain Libtool? --akim.
2107: export ac_cv_exeext
2108: break;;
1.10 paf 2109: * )
1.16 paf 2110: break;;
1.10 paf 2111: esac
2112: done
2113: else
2114: echo "$as_me: failed program was:" >&5
2115: sed 's/^/| /' conftest.$ac_ext >&5
1.1 parser 2116:
1.10 paf 2117: { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2118: See \`config.log' for more details." >&5
2119: echo "$as_me: error: C++ compiler cannot create executables
2120: See \`config.log' for more details." >&2;}
2121: { (exit 77); exit 77; }; }
2122: fi
2123:
2124: ac_exeext=$ac_cv_exeext
2125: echo "$as_me:$LINENO: result: $ac_file" >&5
2126: echo "${ECHO_T}$ac_file" >&6
2127:
2128: # Check the compiler produces executables we can run. If not, either
2129: # the compiler is broken, or we cross compile.
2130: echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2131: echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2132: # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2133: # If not cross compiling, check that we can run a simple program.
2134: if test "$cross_compiling" != yes; then
2135: if { ac_try='./$ac_file'
2136: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2137: (eval $ac_try) 2>&5
2138: ac_status=$?
2139: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2140: (exit $ac_status); }; }; then
2141: cross_compiling=no
2142: else
2143: if test "$cross_compiling" = maybe; then
2144: cross_compiling=yes
2145: else
2146: { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2147: If you meant to cross compile, use \`--host'.
2148: See \`config.log' for more details." >&5
2149: echo "$as_me: error: cannot run C++ compiled programs.
2150: If you meant to cross compile, use \`--host'.
2151: See \`config.log' for more details." >&2;}
2152: { (exit 1); exit 1; }; }
2153: fi
1.1 parser 2154: fi
1.10 paf 2155: fi
2156: echo "$as_me:$LINENO: result: yes" >&5
2157: echo "${ECHO_T}yes" >&6
2158:
2159: rm -f a.out a.exe conftest$ac_cv_exeext b.out
2160: ac_clean_files=$ac_clean_files_save
2161: # Check the compiler produces executables we can run. If not, either
2162: # the compiler is broken, or we cross compile.
2163: echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2164: echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2165: echo "$as_me:$LINENO: result: $cross_compiling" >&5
2166: echo "${ECHO_T}$cross_compiling" >&6
2167:
2168: echo "$as_me:$LINENO: checking for suffix of executables" >&5
2169: echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2170: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2171: (eval $ac_link) 2>&5
2172: ac_status=$?
2173: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174: (exit $ac_status); }; then
2175: # If both `conftest.exe' and `conftest' are `present' (well, observable)
2176: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2177: # work properly (i.e., refer to `conftest.exe'), while it won't with
2178: # `rm'.
2179: for ac_file in conftest.exe conftest conftest.*; do
2180: test -f "$ac_file" || continue
2181: case $ac_file in
2182: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2183: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1.16 paf 2184: export ac_cv_exeext
2185: break;;
1.10 paf 2186: * ) break;;
2187: esac
2188: done
1.1 parser 2189: else
1.10 paf 2190: { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2191: See \`config.log' for more details." >&5
2192: echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2193: See \`config.log' for more details." >&2;}
2194: { (exit 1); exit 1; }; }
2195: fi
2196:
2197: rm -f conftest$ac_cv_exeext
2198: echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2199: echo "${ECHO_T}$ac_cv_exeext" >&6
2200:
2201: rm -f conftest.$ac_ext
2202: EXEEXT=$ac_cv_exeext
2203: ac_exeext=$EXEEXT
2204: echo "$as_me:$LINENO: checking for suffix of object files" >&5
2205: echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2206: if test "${ac_cv_objext+set}" = set; then
2207: echo $ECHO_N "(cached) $ECHO_C" >&6
2208: else
2209: cat >conftest.$ac_ext <<_ACEOF
2210: /* confdefs.h. */
2211: _ACEOF
2212: cat confdefs.h >>conftest.$ac_ext
2213: cat >>conftest.$ac_ext <<_ACEOF
2214: /* end confdefs.h. */
2215:
2216: int
2217: main ()
2218: {
2219:
2220: ;
2221: return 0;
2222: }
2223: _ACEOF
2224: rm -f conftest.o conftest.obj
2225: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2226: (eval $ac_compile) 2>&5
2227: ac_status=$?
2228: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229: (exit $ac_status); }; then
2230: for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2231: case $ac_file in
2232: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2233: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2234: break;;
2235: esac
2236: done
1.1 parser 2237: else
1.10 paf 2238: echo "$as_me: failed program was:" >&5
2239: sed 's/^/| /' conftest.$ac_ext >&5
1.1 parser 2240:
1.10 paf 2241: { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2242: See \`config.log' for more details." >&5
2243: echo "$as_me: error: cannot compute suffix of object files: cannot compile
2244: See \`config.log' for more details." >&2;}
2245: { (exit 1); exit 1; }; }
2246: fi
2247:
2248: rm -f conftest.$ac_cv_objext conftest.$ac_ext
2249: fi
2250: echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2251: echo "${ECHO_T}$ac_cv_objext" >&6
2252: OBJEXT=$ac_cv_objext
2253: ac_objext=$OBJEXT
2254: echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2255: echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2256: if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2257: echo $ECHO_N "(cached) $ECHO_C" >&6
2258: else
2259: cat >conftest.$ac_ext <<_ACEOF
2260: /* confdefs.h. */
2261: _ACEOF
2262: cat confdefs.h >>conftest.$ac_ext
2263: cat >>conftest.$ac_ext <<_ACEOF
2264: /* end confdefs.h. */
2265:
2266: int
2267: main ()
2268: {
2269: #ifndef __GNUC__
2270: choke me
2271: #endif
1.1 parser 2272:
1.10 paf 2273: ;
2274: return 0;
2275: }
2276: _ACEOF
2277: rm -f conftest.$ac_objext
2278: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.16 paf 2279: (eval $ac_compile) 2>conftest.er1
1.10 paf 2280: ac_status=$?
1.16 paf 2281: grep -v '^ *+' conftest.er1 >conftest.err
2282: rm -f conftest.er1
2283: cat conftest.err >&5
1.10 paf 2284: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2285: (exit $ac_status); } &&
1.16 paf 2286: { ac_try='test -z "$ac_cxx_werror_flag"
2287: || test ! -s conftest.err'
2288: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2289: (eval $ac_try) 2>&5
2290: ac_status=$?
2291: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2292: (exit $ac_status); }; } &&
2293: { ac_try='test -s conftest.$ac_objext'
1.10 paf 2294: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2295: (eval $ac_try) 2>&5
2296: ac_status=$?
2297: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2298: (exit $ac_status); }; }; then
2299: ac_compiler_gnu=yes
2300: else
2301: echo "$as_me: failed program was:" >&5
2302: sed 's/^/| /' conftest.$ac_ext >&5
2303:
2304: ac_compiler_gnu=no
2305: fi
1.16 paf 2306: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.10 paf 2307: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2308:
2309: fi
2310: echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2311: echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2312: GXX=`test $ac_compiler_gnu = yes && echo yes`
2313: ac_test_CXXFLAGS=${CXXFLAGS+set}
2314: ac_save_CXXFLAGS=$CXXFLAGS
2315: CXXFLAGS="-g"
2316: echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2317: echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2318: if test "${ac_cv_prog_cxx_g+set}" = set; then
2319: echo $ECHO_N "(cached) $ECHO_C" >&6
2320: else
2321: cat >conftest.$ac_ext <<_ACEOF
2322: /* confdefs.h. */
2323: _ACEOF
2324: cat confdefs.h >>conftest.$ac_ext
2325: cat >>conftest.$ac_ext <<_ACEOF
2326: /* end confdefs.h. */
2327:
2328: int
2329: main ()
2330: {
2331:
2332: ;
2333: return 0;
2334: }
2335: _ACEOF
2336: rm -f conftest.$ac_objext
2337: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.16 paf 2338: (eval $ac_compile) 2>conftest.er1
1.10 paf 2339: ac_status=$?
1.16 paf 2340: grep -v '^ *+' conftest.er1 >conftest.err
2341: rm -f conftest.er1
2342: cat conftest.err >&5
1.10 paf 2343: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344: (exit $ac_status); } &&
1.16 paf 2345: { ac_try='test -z "$ac_cxx_werror_flag"
2346: || test ! -s conftest.err'
2347: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2348: (eval $ac_try) 2>&5
2349: ac_status=$?
2350: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351: (exit $ac_status); }; } &&
2352: { ac_try='test -s conftest.$ac_objext'
1.10 paf 2353: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2354: (eval $ac_try) 2>&5
2355: ac_status=$?
2356: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357: (exit $ac_status); }; }; then
2358: ac_cv_prog_cxx_g=yes
1.1 parser 2359: else
1.10 paf 2360: echo "$as_me: failed program was:" >&5
2361: sed 's/^/| /' conftest.$ac_ext >&5
1.1 parser 2362:
1.10 paf 2363: ac_cv_prog_cxx_g=no
1.1 parser 2364: fi
1.16 paf 2365: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 parser 2366: fi
1.10 paf 2367: echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2368: echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
1.1 parser 2369: if test "$ac_test_CXXFLAGS" = set; then
1.10 paf 2370: CXXFLAGS=$ac_save_CXXFLAGS
1.1 parser 2371: elif test $ac_cv_prog_cxx_g = yes; then
2372: if test "$GXX" = yes; then
2373: CXXFLAGS="-g -O2"
2374: else
2375: CXXFLAGS="-g"
2376: fi
2377: else
2378: if test "$GXX" = yes; then
2379: CXXFLAGS="-O2"
2380: else
2381: CXXFLAGS=
2382: fi
2383: fi
1.10 paf 2384: for ac_declaration in \
1.16 paf 2385: '' \
1.10 paf 2386: 'extern "C" void std::exit (int) throw (); using std::exit;' \
2387: 'extern "C" void std::exit (int); using std::exit;' \
2388: 'extern "C" void exit (int) throw ();' \
2389: 'extern "C" void exit (int);' \
2390: 'void exit (int);'
2391: do
2392: cat >conftest.$ac_ext <<_ACEOF
2393: /* confdefs.h. */
2394: _ACEOF
2395: cat confdefs.h >>conftest.$ac_ext
2396: cat >>conftest.$ac_ext <<_ACEOF
2397: /* end confdefs.h. */
1.16 paf 2398: $ac_declaration
1.10 paf 2399: #include <stdlib.h>
2400: int
2401: main ()
2402: {
2403: exit (42);
2404: ;
2405: return 0;
2406: }
2407: _ACEOF
2408: rm -f conftest.$ac_objext
2409: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.16 paf 2410: (eval $ac_compile) 2>conftest.er1
1.10 paf 2411: ac_status=$?
1.16 paf 2412: grep -v '^ *+' conftest.er1 >conftest.err
2413: rm -f conftest.er1
2414: cat conftest.err >&5
1.10 paf 2415: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416: (exit $ac_status); } &&
1.16 paf 2417: { ac_try='test -z "$ac_cxx_werror_flag"
2418: || test ! -s conftest.err'
2419: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2420: (eval $ac_try) 2>&5
2421: ac_status=$?
2422: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423: (exit $ac_status); }; } &&
2424: { ac_try='test -s conftest.$ac_objext'
1.10 paf 2425: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2426: (eval $ac_try) 2>&5
2427: ac_status=$?
2428: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429: (exit $ac_status); }; }; then
2430: :
2431: else
2432: echo "$as_me: failed program was:" >&5
2433: sed 's/^/| /' conftest.$ac_ext >&5
2434:
2435: continue
2436: fi
1.16 paf 2437: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.10 paf 2438: cat >conftest.$ac_ext <<_ACEOF
2439: /* confdefs.h. */
2440: _ACEOF
2441: cat confdefs.h >>conftest.$ac_ext
2442: cat >>conftest.$ac_ext <<_ACEOF
2443: /* end confdefs.h. */
2444: $ac_declaration
2445: int
2446: main ()
2447: {
2448: exit (42);
2449: ;
2450: return 0;
2451: }
2452: _ACEOF
2453: rm -f conftest.$ac_objext
2454: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.16 paf 2455: (eval $ac_compile) 2>conftest.er1
1.10 paf 2456: ac_status=$?
1.16 paf 2457: grep -v '^ *+' conftest.er1 >conftest.err
2458: rm -f conftest.er1
2459: cat conftest.err >&5
1.10 paf 2460: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461: (exit $ac_status); } &&
1.16 paf 2462: { ac_try='test -z "$ac_cxx_werror_flag"
2463: || test ! -s conftest.err'
2464: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2465: (eval $ac_try) 2>&5
2466: ac_status=$?
2467: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468: (exit $ac_status); }; } &&
2469: { ac_try='test -s conftest.$ac_objext'
1.10 paf 2470: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2471: (eval $ac_try) 2>&5
2472: ac_status=$?
2473: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474: (exit $ac_status); }; }; then
2475: break
2476: else
2477: echo "$as_me: failed program was:" >&5
2478: sed 's/^/| /' conftest.$ac_ext >&5
2479:
2480: fi
1.16 paf 2481: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.10 paf 2482: done
2483: rm -f conftest*
2484: if test -n "$ac_declaration"; then
2485: echo '#ifdef __cplusplus' >>confdefs.h
2486: echo $ac_declaration >>confdefs.h
2487: echo '#endif' >>confdefs.h
2488: fi
2489:
1.15 paf 2490: ac_ext=c
2491: ac_cpp='$CPP $CPPFLAGS'
2492: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2493: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2494: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.16 paf 2495: DEPDIR="${am__leading_dot}deps"
1.10 paf 2496:
2497: ac_config_commands="$ac_config_commands depfiles"
2498:
2499:
2500: am_make=${MAKE-make}
2501: cat > confinc << 'END'
1.16 paf 2502: am__doit:
1.10 paf 2503: @echo done
1.16 paf 2504: .PHONY: am__doit
1.10 paf 2505: END
2506: # If we don't find an include directive, just comment out the code.
2507: echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2508: echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2509: am__include="#"
2510: am__quote=
2511: _am_result=none
2512: # First try GNU make style include.
2513: echo "include confinc" > confmf
2514: # We grep out `Entering directory' and `Leaving directory'
2515: # messages which can occur if `w' ends up in MAKEFLAGS.
2516: # In particular we don't look at `^make:' because GNU make might
2517: # be invoked under some other name (usually "gmake"), in which
2518: # case it prints its new name instead of `make'.
2519: if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2520: am__include=include
2521: am__quote=
2522: _am_result=GNU
2523: fi
2524: # Now try BSD make style include.
2525: if test "$am__include" = "#"; then
2526: echo '.include "confinc"' > confmf
2527: if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2528: am__include=.include
2529: am__quote="\""
2530: _am_result=BSD
2531: fi
2532: fi
2533:
2534:
2535: echo "$as_me:$LINENO: result: $_am_result" >&5
2536: echo "${ECHO_T}$_am_result" >&6
2537: rm -f confinc confmf
2538:
2539: # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2540: if test "${enable_dependency_tracking+set}" = set; then
2541: enableval="$enable_dependency_tracking"
2542:
2543: fi;
2544: if test "x$enable_dependency_tracking" != xno; then
2545: am_depcomp="$ac_aux_dir/depcomp"
2546: AMDEPBACKSLASH='\'
2547: fi
2548:
2549:
2550: if test "x$enable_dependency_tracking" != xno; then
2551: AMDEP_TRUE=
2552: AMDEP_FALSE='#'
2553: else
2554: AMDEP_TRUE='#'
2555: AMDEP_FALSE=
2556: fi
2557:
2558:
2559:
2560:
2561: depcc="$CXX" am_compiler_list=
2562:
2563: echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2564: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2565: if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2566: echo $ECHO_N "(cached) $ECHO_C" >&6
2567: else
2568: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2569: # We make a subdir and do the tests there. Otherwise we can end up
2570: # making bogus files that we don't know about and never remove. For
2571: # instance it was reported that on HP-UX the gcc test will end up
2572: # making a dummy file named `D' -- because `-MD' means `put the output
2573: # in D'.
2574: mkdir conftest.dir
2575: # Copy depcomp to subdir because otherwise we won't find it if we're
2576: # using a relative directory.
2577: cp "$am_depcomp" conftest.dir
2578: cd conftest.dir
1.16 paf 2579: # We will build objects and dependencies in a subdirectory because
2580: # it helps to detect inapplicable dependency modes. For instance
2581: # both Tru64's cc and ICC support -MD to output dependencies as a
2582: # side effect of compilation, but ICC will put the dependencies in
2583: # the current directory while Tru64 will put them in the object
2584: # directory.
2585: mkdir sub
1.10 paf 2586:
2587: am_cv_CXX_dependencies_compiler_type=none
2588: if test "$am_compiler_list" = ""; then
2589: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2590: fi
2591: for depmode in $am_compiler_list; do
1.16 paf 2592: # Setup a source with many dependencies, because some compilers
2593: # like to wrap large dependency lists on column 80 (with \), and
2594: # we should not choose a depcomp mode which is confused by this.
2595: #
1.10 paf 2596: # We need to recreate these files for each test, as the compiler may
2597: # overwrite some of them when testing with obscure command lines.
2598: # This happens at least with the AIX C compiler.
1.16 paf 2599: : > sub/conftest.c
2600: for i in 1 2 3 4 5 6; do
2601: echo '#include "conftst'$i'.h"' >> sub/conftest.c
2602: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2603: # Solaris 8's {/usr,}/bin/sh.
2604: touch sub/conftst$i.h
2605: done
2606: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.10 paf 2607:
2608: case $depmode in
2609: nosideeffect)
2610: # after this tag, mechanisms are not by side-effect, so they'll
2611: # only be used when explicitly requested
2612: if test "x$enable_dependency_tracking" = xyes; then
2613: continue
2614: else
2615: break
2616: fi
2617: ;;
2618: none) break ;;
2619: esac
2620: # We check with `-c' and `-o' for the sake of the "dashmstdout"
2621: # mode. It turns out that the SunPro C++ compiler does not properly
2622: # handle `-M -o', and we need to detect this.
2623: if depmode=$depmode \
1.16 paf 2624: source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2625: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2626: $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2627: >/dev/null 2>conftest.err &&
2628: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2629: grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
1.10 paf 2630: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.16 paf 2631: # icc doesn't choke on unknown options, it will just issue warnings
2632: # or remarks (even with -Werror). So we grep stderr for any message
2633: # that says an option was ignored or not supported.
2634: # When given -MP, icc 7.0 and 7.1 complain thusly:
2635: # icc: Command line warning: ignoring option '-M'; no argument required
2636: # The diagnosis changed in icc 8.0:
2637: # icc: Command line remark: option '-MP' not supported
2638: if (grep 'ignoring option' conftest.err ||
2639: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2640: am_cv_CXX_dependencies_compiler_type=$depmode
2641: break
2642: fi
1.10 paf 2643: fi
2644: done
2645:
2646: cd ..
2647: rm -rf conftest.dir
2648: else
2649: am_cv_CXX_dependencies_compiler_type=none
2650: fi
2651:
2652: fi
2653: echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2654: echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2655: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2656:
2657:
2658:
2659: if
2660: test "x$enable_dependency_tracking" != xno \
2661: && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2662: am__fastdepCXX_TRUE=
2663: am__fastdepCXX_FALSE='#'
2664: else
2665: am__fastdepCXX_TRUE='#'
2666: am__fastdepCXX_FALSE=
2667: fi
2668:
1.1 parser 2669:
1.10 paf 2670: ac_ext=c
2671: ac_cpp='$CPP $CPPFLAGS'
2672: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2673: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2674: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2675: if test -n "$ac_tool_prefix"; then
2676: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2677: set dummy ${ac_tool_prefix}gcc; ac_word=$2
2678: echo "$as_me:$LINENO: checking for $ac_word" >&5
2679: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2680: if test "${ac_cv_prog_CC+set}" = set; then
2681: echo $ECHO_N "(cached) $ECHO_C" >&6
2682: else
2683: if test -n "$CC"; then
2684: ac_cv_prog_CC="$CC" # Let the user override the test.
2685: else
2686: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2687: for as_dir in $PATH
2688: do
2689: IFS=$as_save_IFS
2690: test -z "$as_dir" && as_dir=.
2691: for ac_exec_ext in '' $ac_executable_extensions; do
2692: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2693: ac_cv_prog_CC="${ac_tool_prefix}gcc"
2694: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2695: break 2
2696: fi
2697: done
2698: done
1.1 parser 2699:
1.10 paf 2700: fi
2701: fi
2702: CC=$ac_cv_prog_CC
2703: if test -n "$CC"; then
2704: echo "$as_me:$LINENO: result: $CC" >&5
2705: echo "${ECHO_T}$CC" >&6
2706: else
2707: echo "$as_me:$LINENO: result: no" >&5
2708: echo "${ECHO_T}no" >&6
2709: fi
1.1 parser 2710:
1.10 paf 2711: fi
2712: if test -z "$ac_cv_prog_CC"; then
2713: ac_ct_CC=$CC
2714: # Extract the first word of "gcc", so it can be a program name with args.
2715: set dummy gcc; ac_word=$2
2716: echo "$as_me:$LINENO: checking for $ac_word" >&5
2717: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2718: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2719: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 2720: else
1.10 paf 2721: if test -n "$ac_ct_CC"; then
2722: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.1 parser 2723: else
1.10 paf 2724: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2725: for as_dir in $PATH
2726: do
2727: IFS=$as_save_IFS
2728: test -z "$as_dir" && as_dir=.
2729: for ac_exec_ext in '' $ac_executable_extensions; do
2730: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2731: ac_cv_prog_ac_ct_CC="gcc"
2732: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2733: break 2
2734: fi
2735: done
2736: done
2737:
2738: fi
1.1 parser 2739: fi
1.10 paf 2740: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2741: if test -n "$ac_ct_CC"; then
2742: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2743: echo "${ECHO_T}$ac_ct_CC" >&6
2744: else
2745: echo "$as_me:$LINENO: result: no" >&5
2746: echo "${ECHO_T}no" >&6
1.1 parser 2747: fi
1.10 paf 2748:
2749: CC=$ac_ct_CC
1.1 parser 2750: else
1.10 paf 2751: CC="$ac_cv_prog_CC"
1.1 parser 2752: fi
2753:
1.10 paf 2754: if test -z "$CC"; then
2755: if test -n "$ac_tool_prefix"; then
2756: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2757: set dummy ${ac_tool_prefix}cc; ac_word=$2
2758: echo "$as_me:$LINENO: checking for $ac_word" >&5
2759: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2760: if test "${ac_cv_prog_CC+set}" = set; then
2761: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 2762: else
2763: if test -n "$CC"; then
2764: ac_cv_prog_CC="$CC" # Let the user override the test.
2765: else
1.10 paf 2766: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2767: for as_dir in $PATH
2768: do
2769: IFS=$as_save_IFS
2770: test -z "$as_dir" && as_dir=.
2771: for ac_exec_ext in '' $ac_executable_extensions; do
2772: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2773: ac_cv_prog_CC="${ac_tool_prefix}cc"
2774: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2775: break 2
2776: fi
2777: done
2778: done
2779:
1.1 parser 2780: fi
2781: fi
1.10 paf 2782: CC=$ac_cv_prog_CC
1.1 parser 2783: if test -n "$CC"; then
1.10 paf 2784: echo "$as_me:$LINENO: result: $CC" >&5
2785: echo "${ECHO_T}$CC" >&6
2786: else
2787: echo "$as_me:$LINENO: result: no" >&5
2788: echo "${ECHO_T}no" >&6
2789: fi
2790:
2791: fi
2792: if test -z "$ac_cv_prog_CC"; then
2793: ac_ct_CC=$CC
2794: # Extract the first word of "cc", so it can be a program name with args.
2795: set dummy cc; ac_word=$2
2796: echo "$as_me:$LINENO: checking for $ac_word" >&5
2797: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2798: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2799: echo $ECHO_N "(cached) $ECHO_C" >&6
2800: else
2801: if test -n "$ac_ct_CC"; then
2802: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2803: else
2804: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2805: for as_dir in $PATH
2806: do
2807: IFS=$as_save_IFS
2808: test -z "$as_dir" && as_dir=.
2809: for ac_exec_ext in '' $ac_executable_extensions; do
2810: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2811: ac_cv_prog_ac_ct_CC="cc"
2812: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2813: break 2
2814: fi
2815: done
2816: done
2817:
2818: fi
2819: fi
2820: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2821: if test -n "$ac_ct_CC"; then
2822: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2823: echo "${ECHO_T}$ac_ct_CC" >&6
1.1 parser 2824: else
1.10 paf 2825: echo "$as_me:$LINENO: result: no" >&5
2826: echo "${ECHO_T}no" >&6
1.1 parser 2827: fi
2828:
1.10 paf 2829: CC=$ac_ct_CC
2830: else
2831: CC="$ac_cv_prog_CC"
2832: fi
2833:
2834: fi
1.1 parser 2835: if test -z "$CC"; then
2836: # Extract the first word of "cc", so it can be a program name with args.
2837: set dummy cc; ac_word=$2
1.10 paf 2838: echo "$as_me:$LINENO: checking for $ac_word" >&5
2839: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2840: if test "${ac_cv_prog_CC+set}" = set; then
2841: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 2842: else
2843: if test -n "$CC"; then
2844: ac_cv_prog_CC="$CC" # Let the user override the test.
2845: else
2846: ac_prog_rejected=no
1.10 paf 2847: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2848: for as_dir in $PATH
2849: do
2850: IFS=$as_save_IFS
2851: test -z "$as_dir" && as_dir=.
2852: for ac_exec_ext in '' $ac_executable_extensions; do
2853: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2854: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2855: ac_prog_rejected=yes
2856: continue
2857: fi
2858: ac_cv_prog_CC="cc"
2859: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2860: break 2
2861: fi
2862: done
2863: done
2864:
1.1 parser 2865: if test $ac_prog_rejected = yes; then
2866: # We found a bogon in the path, so make sure we never use it.
2867: set dummy $ac_cv_prog_CC
2868: shift
1.10 paf 2869: if test $# != 0; then
1.1 parser 2870: # We chose a different compiler from the bogus one.
2871: # However, it has the same basename, so the bogon will be chosen
2872: # first if we set CC to just the basename; use the full file name.
2873: shift
1.10 paf 2874: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1.1 parser 2875: fi
2876: fi
2877: fi
2878: fi
1.10 paf 2879: CC=$ac_cv_prog_CC
1.1 parser 2880: if test -n "$CC"; then
1.10 paf 2881: echo "$as_me:$LINENO: result: $CC" >&5
2882: echo "${ECHO_T}$CC" >&6
1.1 parser 2883: else
1.10 paf 2884: echo "$as_me:$LINENO: result: no" >&5
2885: echo "${ECHO_T}no" >&6
1.1 parser 2886: fi
2887:
1.10 paf 2888: fi
2889: if test -z "$CC"; then
2890: if test -n "$ac_tool_prefix"; then
2891: for ac_prog in cl
2892: do
2893: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2894: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2895: echo "$as_me:$LINENO: checking for $ac_word" >&5
2896: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2897: if test "${ac_cv_prog_CC+set}" = set; then
2898: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 2899: else
2900: if test -n "$CC"; then
2901: ac_cv_prog_CC="$CC" # Let the user override the test.
2902: else
1.10 paf 2903: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2904: for as_dir in $PATH
2905: do
2906: IFS=$as_save_IFS
2907: test -z "$as_dir" && as_dir=.
2908: for ac_exec_ext in '' $ac_executable_extensions; do
2909: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2910: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2911: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2912: break 2
2913: fi
2914: done
2915: done
2916:
1.1 parser 2917: fi
2918: fi
1.10 paf 2919: CC=$ac_cv_prog_CC
1.1 parser 2920: if test -n "$CC"; then
1.10 paf 2921: echo "$as_me:$LINENO: result: $CC" >&5
2922: echo "${ECHO_T}$CC" >&6
1.1 parser 2923: else
1.10 paf 2924: echo "$as_me:$LINENO: result: no" >&5
2925: echo "${ECHO_T}no" >&6
2926: fi
2927:
2928: test -n "$CC" && break
2929: done
1.1 parser 2930: fi
1.10 paf 2931: if test -z "$CC"; then
2932: ac_ct_CC=$CC
2933: for ac_prog in cl
2934: do
2935: # Extract the first word of "$ac_prog", so it can be a program name with args.
2936: set dummy $ac_prog; ac_word=$2
2937: echo "$as_me:$LINENO: checking for $ac_word" >&5
2938: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2939: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2940: echo $ECHO_N "(cached) $ECHO_C" >&6
2941: else
2942: if test -n "$ac_ct_CC"; then
2943: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2944: else
2945: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2946: for as_dir in $PATH
2947: do
2948: IFS=$as_save_IFS
2949: test -z "$as_dir" && as_dir=.
2950: for ac_exec_ext in '' $ac_executable_extensions; do
2951: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2952: ac_cv_prog_ac_ct_CC="$ac_prog"
2953: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2954: break 2
1.1 parser 2955: fi
1.10 paf 2956: done
2957: done
2958:
2959: fi
2960: fi
2961: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2962: if test -n "$ac_ct_CC"; then
2963: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2964: echo "${ECHO_T}$ac_ct_CC" >&6
2965: else
2966: echo "$as_me:$LINENO: result: no" >&5
2967: echo "${ECHO_T}no" >&6
1.1 parser 2968: fi
2969:
1.10 paf 2970: test -n "$ac_ct_CC" && break
2971: done
1.1 parser 2972:
1.10 paf 2973: CC=$ac_ct_CC
2974: fi
1.1 parser 2975:
1.10 paf 2976: fi
1.1 parser 2977:
2978:
1.10 paf 2979: test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2980: See \`config.log' for more details." >&5
2981: echo "$as_me: error: no acceptable C compiler found in \$PATH
2982: See \`config.log' for more details." >&2;}
2983: { (exit 1); exit 1; }; }
2984:
2985: # Provide some information about the compiler.
2986: echo "$as_me:$LINENO:" \
2987: "checking for C compiler version" >&5
2988: ac_compiler=`set X $ac_compile; echo $2`
2989: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2990: (eval $ac_compiler --version </dev/null >&5) 2>&5
2991: ac_status=$?
2992: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993: (exit $ac_status); }
2994: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2995: (eval $ac_compiler -v </dev/null >&5) 2>&5
2996: ac_status=$?
2997: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998: (exit $ac_status); }
2999: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3000: (eval $ac_compiler -V </dev/null >&5) 2>&5
3001: ac_status=$?
3002: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003: (exit $ac_status); }
3004:
3005: echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3006: echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3007: if test "${ac_cv_c_compiler_gnu+set}" = set; then
3008: echo $ECHO_N "(cached) $ECHO_C" >&6
3009: else
3010: cat >conftest.$ac_ext <<_ACEOF
3011: /* confdefs.h. */
3012: _ACEOF
3013: cat confdefs.h >>conftest.$ac_ext
3014: cat >>conftest.$ac_ext <<_ACEOF
3015: /* end confdefs.h. */
3016:
3017: int
3018: main ()
3019: {
3020: #ifndef __GNUC__
3021: choke me
1.1 parser 3022: #endif
3023:
1.10 paf 3024: ;
3025: return 0;
3026: }
3027: _ACEOF
3028: rm -f conftest.$ac_objext
3029: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.16 paf 3030: (eval $ac_compile) 2>conftest.er1
1.10 paf 3031: ac_status=$?
1.16 paf 3032: grep -v '^ *+' conftest.er1 >conftest.err
3033: rm -f conftest.er1
3034: cat conftest.err >&5
1.10 paf 3035: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036: (exit $ac_status); } &&
1.16 paf 3037: { ac_try='test -z "$ac_c_werror_flag"
3038: || test ! -s conftest.err'
3039: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3040: (eval $ac_try) 2>&5
3041: ac_status=$?
3042: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043: (exit $ac_status); }; } &&
3044: { ac_try='test -s conftest.$ac_objext'
1.10 paf 3045: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3046: (eval $ac_try) 2>&5
3047: ac_status=$?
3048: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049: (exit $ac_status); }; }; then
3050: ac_compiler_gnu=yes
3051: else
3052: echo "$as_me: failed program was:" >&5
3053: sed 's/^/| /' conftest.$ac_ext >&5
3054:
3055: ac_compiler_gnu=no
3056: fi
1.16 paf 3057: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.10 paf 3058: ac_cv_c_compiler_gnu=$ac_compiler_gnu
3059:
3060: fi
3061: echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3062: echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3063: GCC=`test $ac_compiler_gnu = yes && echo yes`
3064: ac_test_CFLAGS=${CFLAGS+set}
3065: ac_save_CFLAGS=$CFLAGS
3066: CFLAGS="-g"
3067: echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3068: echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3069: if test "${ac_cv_prog_cc_g+set}" = set; then
3070: echo $ECHO_N "(cached) $ECHO_C" >&6
3071: else
3072: cat >conftest.$ac_ext <<_ACEOF
3073: /* confdefs.h. */
3074: _ACEOF
3075: cat confdefs.h >>conftest.$ac_ext
3076: cat >>conftest.$ac_ext <<_ACEOF
3077: /* end confdefs.h. */
3078:
3079: int
3080: main ()
3081: {
3082:
3083: ;
3084: return 0;
3085: }
3086: _ACEOF
3087: rm -f conftest.$ac_objext
3088: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.16 paf 3089: (eval $ac_compile) 2>conftest.er1
1.10 paf 3090: ac_status=$?
1.16 paf 3091: grep -v '^ *+' conftest.er1 >conftest.err
3092: rm -f conftest.er1
3093: cat conftest.err >&5
1.10 paf 3094: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095: (exit $ac_status); } &&
1.16 paf 3096: { ac_try='test -z "$ac_c_werror_flag"
3097: || test ! -s conftest.err'
3098: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3099: (eval $ac_try) 2>&5
3100: ac_status=$?
3101: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102: (exit $ac_status); }; } &&
3103: { ac_try='test -s conftest.$ac_objext'
1.10 paf 3104: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3105: (eval $ac_try) 2>&5
3106: ac_status=$?
3107: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108: (exit $ac_status); }; }; then
3109: ac_cv_prog_cc_g=yes
1.1 parser 3110: else
1.10 paf 3111: echo "$as_me: failed program was:" >&5
3112: sed 's/^/| /' conftest.$ac_ext >&5
1.1 parser 3113:
1.10 paf 3114: ac_cv_prog_cc_g=no
1.1 parser 3115: fi
1.16 paf 3116: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 parser 3117: fi
1.10 paf 3118: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3119: echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1.1 parser 3120: if test "$ac_test_CFLAGS" = set; then
1.10 paf 3121: CFLAGS=$ac_save_CFLAGS
1.1 parser 3122: elif test $ac_cv_prog_cc_g = yes; then
3123: if test "$GCC" = yes; then
3124: CFLAGS="-g -O2"
3125: else
3126: CFLAGS="-g"
3127: fi
3128: else
3129: if test "$GCC" = yes; then
3130: CFLAGS="-O2"
3131: else
3132: CFLAGS=
3133: fi
3134: fi
1.10 paf 3135: echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3136: echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3137: if test "${ac_cv_prog_cc_stdc+set}" = set; then
3138: echo $ECHO_N "(cached) $ECHO_C" >&6
3139: else
3140: ac_cv_prog_cc_stdc=no
3141: ac_save_CC=$CC
3142: cat >conftest.$ac_ext <<_ACEOF
3143: /* confdefs.h. */
3144: _ACEOF
3145: cat confdefs.h >>conftest.$ac_ext
3146: cat >>conftest.$ac_ext <<_ACEOF
3147: /* end confdefs.h. */
3148: #include <stdarg.h>
3149: #include <stdio.h>
3150: #include <sys/types.h>
3151: #include <sys/stat.h>
3152: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3153: struct buf { int x; };
3154: FILE * (*rcsopen) (struct buf *, struct stat *, int);
3155: static char *e (p, i)
3156: char **p;
3157: int i;
3158: {
3159: return p[i];
3160: }
3161: static char *f (char * (*g) (char **, int), char **p, ...)
3162: {
3163: char *s;
3164: va_list v;
3165: va_start (v,p);
3166: s = g (p, va_arg (v,int));
3167: va_end (v);
3168: return s;
3169: }
1.16 paf 3170:
3171: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3172: function prototypes and stuff, but not '\xHH' hex character constants.
3173: These don't provoke an error unfortunately, instead are silently treated
3174: as 'x'. The following induces an error, until -std1 is added to get
3175: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3176: array size at least. It's necessary to write '\x00'==0 to get something
3177: that's true only with -std1. */
3178: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3179:
1.10 paf 3180: int test (int i, double x);
3181: struct s1 {int (*f) (int a);};
3182: struct s2 {int (*f) (double a);};
3183: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3184: int argc;
3185: char **argv;
3186: int
3187: main ()
3188: {
3189: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3190: ;
3191: return 0;
3192: }
3193: _ACEOF
3194: # Don't try gcc -ansi; that turns off useful extensions and
3195: # breaks some systems' header files.
3196: # AIX -qlanglvl=ansi
3197: # Ultrix and OSF/1 -std1
3198: # HP-UX 10.20 and later -Ae
3199: # HP-UX older versions -Aa -D_HPUX_SOURCE
3200: # SVR4 -Xc -D__EXTENSIONS__
3201: for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3202: do
3203: CC="$ac_save_CC $ac_arg"
3204: rm -f conftest.$ac_objext
3205: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.16 paf 3206: (eval $ac_compile) 2>conftest.er1
1.10 paf 3207: ac_status=$?
1.16 paf 3208: grep -v '^ *+' conftest.er1 >conftest.err
3209: rm -f conftest.er1
3210: cat conftest.err >&5
1.10 paf 3211: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212: (exit $ac_status); } &&
1.16 paf 3213: { ac_try='test -z "$ac_c_werror_flag"
3214: || test ! -s conftest.err'
3215: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3216: (eval $ac_try) 2>&5
3217: ac_status=$?
3218: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219: (exit $ac_status); }; } &&
3220: { ac_try='test -s conftest.$ac_objext'
1.10 paf 3221: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3222: (eval $ac_try) 2>&5
3223: ac_status=$?
3224: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3225: (exit $ac_status); }; }; then
3226: ac_cv_prog_cc_stdc=$ac_arg
3227: break
3228: else
3229: echo "$as_me: failed program was:" >&5
3230: sed 's/^/| /' conftest.$ac_ext >&5
3231:
3232: fi
1.16 paf 3233: rm -f conftest.err conftest.$ac_objext
1.10 paf 3234: done
3235: rm -f conftest.$ac_ext conftest.$ac_objext
3236: CC=$ac_save_CC
3237:
3238: fi
3239:
3240: case "x$ac_cv_prog_cc_stdc" in
3241: x|xno)
3242: echo "$as_me:$LINENO: result: none needed" >&5
3243: echo "${ECHO_T}none needed" >&6 ;;
3244: *)
3245: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3246: echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3247: CC="$CC $ac_cv_prog_cc_stdc" ;;
3248: esac
3249:
3250: # Some people use a C++ compiler to compile C. Since we use `exit',
3251: # in C++ we need to declare it. In case someone uses the same compiler
3252: # for both compiling C and C++ we need to have the C++ compiler decide
3253: # the declaration of exit, since it's the most demanding environment.
3254: cat >conftest.$ac_ext <<_ACEOF
3255: #ifndef __cplusplus
3256: choke me
3257: #endif
3258: _ACEOF
3259: rm -f conftest.$ac_objext
3260: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.16 paf 3261: (eval $ac_compile) 2>conftest.er1
1.10 paf 3262: ac_status=$?
1.16 paf 3263: grep -v '^ *+' conftest.er1 >conftest.err
3264: rm -f conftest.er1
3265: cat conftest.err >&5
1.10 paf 3266: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267: (exit $ac_status); } &&
1.16 paf 3268: { ac_try='test -z "$ac_c_werror_flag"
3269: || test ! -s conftest.err'
3270: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3271: (eval $ac_try) 2>&5
3272: ac_status=$?
3273: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274: (exit $ac_status); }; } &&
3275: { ac_try='test -s conftest.$ac_objext'
1.10 paf 3276: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3277: (eval $ac_try) 2>&5
3278: ac_status=$?
3279: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280: (exit $ac_status); }; }; then
3281: for ac_declaration in \
1.16 paf 3282: '' \
1.10 paf 3283: 'extern "C" void std::exit (int) throw (); using std::exit;' \
3284: 'extern "C" void std::exit (int); using std::exit;' \
3285: 'extern "C" void exit (int) throw ();' \
3286: 'extern "C" void exit (int);' \
3287: 'void exit (int);'
3288: do
3289: cat >conftest.$ac_ext <<_ACEOF
3290: /* confdefs.h. */
3291: _ACEOF
3292: cat confdefs.h >>conftest.$ac_ext
3293: cat >>conftest.$ac_ext <<_ACEOF
3294: /* end confdefs.h. */
1.16 paf 3295: $ac_declaration
1.10 paf 3296: #include <stdlib.h>
3297: int
3298: main ()
3299: {
3300: exit (42);
3301: ;
3302: return 0;
3303: }
3304: _ACEOF
3305: rm -f conftest.$ac_objext
3306: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.16 paf 3307: (eval $ac_compile) 2>conftest.er1
1.10 paf 3308: ac_status=$?
1.16 paf 3309: grep -v '^ *+' conftest.er1 >conftest.err
3310: rm -f conftest.er1
3311: cat conftest.err >&5
1.10 paf 3312: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313: (exit $ac_status); } &&
1.16 paf 3314: { ac_try='test -z "$ac_c_werror_flag"
3315: || test ! -s conftest.err'
3316: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3317: (eval $ac_try) 2>&5
3318: ac_status=$?
3319: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320: (exit $ac_status); }; } &&
3321: { ac_try='test -s conftest.$ac_objext'
1.10 paf 3322: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3323: (eval $ac_try) 2>&5
3324: ac_status=$?
3325: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3326: (exit $ac_status); }; }; then
3327: :
3328: else
3329: echo "$as_me: failed program was:" >&5
3330: sed 's/^/| /' conftest.$ac_ext >&5
3331:
3332: continue
3333: fi
1.16 paf 3334: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.10 paf 3335: cat >conftest.$ac_ext <<_ACEOF
3336: /* confdefs.h. */
3337: _ACEOF
3338: cat confdefs.h >>conftest.$ac_ext
3339: cat >>conftest.$ac_ext <<_ACEOF
3340: /* end confdefs.h. */
3341: $ac_declaration
3342: int
3343: main ()
3344: {
3345: exit (42);
3346: ;
3347: return 0;
3348: }
3349: _ACEOF
3350: rm -f conftest.$ac_objext
3351: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.16 paf 3352: (eval $ac_compile) 2>conftest.er1
1.10 paf 3353: ac_status=$?
1.16 paf 3354: grep -v '^ *+' conftest.er1 >conftest.err
3355: rm -f conftest.er1
3356: cat conftest.err >&5
1.10 paf 3357: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358: (exit $ac_status); } &&
1.16 paf 3359: { ac_try='test -z "$ac_c_werror_flag"
3360: || test ! -s conftest.err'
3361: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3362: (eval $ac_try) 2>&5
3363: ac_status=$?
3364: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365: (exit $ac_status); }; } &&
3366: { ac_try='test -s conftest.$ac_objext'
1.10 paf 3367: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3368: (eval $ac_try) 2>&5
3369: ac_status=$?
3370: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371: (exit $ac_status); }; }; then
3372: break
3373: else
3374: echo "$as_me: failed program was:" >&5
3375: sed 's/^/| /' conftest.$ac_ext >&5
3376:
3377: fi
1.16 paf 3378: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.10 paf 3379: done
3380: rm -f conftest*
3381: if test -n "$ac_declaration"; then
3382: echo '#ifdef __cplusplus' >>confdefs.h
3383: echo $ac_declaration >>confdefs.h
3384: echo '#endif' >>confdefs.h
3385: fi
3386:
3387: else
3388: echo "$as_me: failed program was:" >&5
3389: sed 's/^/| /' conftest.$ac_ext >&5
3390:
3391: fi
1.16 paf 3392: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 paf 3393: ac_ext=c
3394: ac_cpp='$CPP $CPPFLAGS'
3395: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3396: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3397: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.10 paf 3398:
3399: depcc="$CC" am_compiler_list=
3400:
3401: echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3402: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3403: if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3404: echo $ECHO_N "(cached) $ECHO_C" >&6
3405: else
3406: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3407: # We make a subdir and do the tests there. Otherwise we can end up
3408: # making bogus files that we don't know about and never remove. For
3409: # instance it was reported that on HP-UX the gcc test will end up
3410: # making a dummy file named `D' -- because `-MD' means `put the output
3411: # in D'.
3412: mkdir conftest.dir
3413: # Copy depcomp to subdir because otherwise we won't find it if we're
3414: # using a relative directory.
3415: cp "$am_depcomp" conftest.dir
3416: cd conftest.dir
1.16 paf 3417: # We will build objects and dependencies in a subdirectory because
3418: # it helps to detect inapplicable dependency modes. For instance
3419: # both Tru64's cc and ICC support -MD to output dependencies as a
3420: # side effect of compilation, but ICC will put the dependencies in
3421: # the current directory while Tru64 will put them in the object
3422: # directory.
3423: mkdir sub
1.10 paf 3424:
3425: am_cv_CC_dependencies_compiler_type=none
3426: if test "$am_compiler_list" = ""; then
3427: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3428: fi
3429: for depmode in $am_compiler_list; do
1.16 paf 3430: # Setup a source with many dependencies, because some compilers
3431: # like to wrap large dependency lists on column 80 (with \), and
3432: # we should not choose a depcomp mode which is confused by this.
3433: #
1.10 paf 3434: # We need to recreate these files for each test, as the compiler may
3435: # overwrite some of them when testing with obscure command lines.
3436: # This happens at least with the AIX C compiler.
1.16 paf 3437: : > sub/conftest.c
3438: for i in 1 2 3 4 5 6; do
3439: echo '#include "conftst'$i'.h"' >> sub/conftest.c
3440: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3441: # Solaris 8's {/usr,}/bin/sh.
3442: touch sub/conftst$i.h
3443: done
3444: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.10 paf 3445:
3446: case $depmode in
3447: nosideeffect)
3448: # after this tag, mechanisms are not by side-effect, so they'll
3449: # only be used when explicitly requested
3450: if test "x$enable_dependency_tracking" = xyes; then
3451: continue
3452: else
3453: break
3454: fi
3455: ;;
3456: none) break ;;
3457: esac
3458: # We check with `-c' and `-o' for the sake of the "dashmstdout"
3459: # mode. It turns out that the SunPro C++ compiler does not properly
3460: # handle `-M -o', and we need to detect this.
3461: if depmode=$depmode \
1.16 paf 3462: source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3463: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3464: $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3465: >/dev/null 2>conftest.err &&
3466: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3467: grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
1.10 paf 3468: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.16 paf 3469: # icc doesn't choke on unknown options, it will just issue warnings
3470: # or remarks (even with -Werror). So we grep stderr for any message
3471: # that says an option was ignored or not supported.
3472: # When given -MP, icc 7.0 and 7.1 complain thusly:
3473: # icc: Command line warning: ignoring option '-M'; no argument required
3474: # The diagnosis changed in icc 8.0:
3475: # icc: Command line remark: option '-MP' not supported
3476: if (grep 'ignoring option' conftest.err ||
3477: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3478: am_cv_CC_dependencies_compiler_type=$depmode
3479: break
3480: fi
1.10 paf 3481: fi
3482: done
3483:
3484: cd ..
3485: rm -rf conftest.dir
3486: else
3487: am_cv_CC_dependencies_compiler_type=none
3488: fi
3489:
3490: fi
3491: echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3492: echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3493: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3494:
3495:
3496:
3497: if
3498: test "x$enable_dependency_tracking" != xno \
3499: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3500: am__fastdepCC_TRUE=
3501: am__fastdepCC_FALSE='#'
3502: else
3503: am__fastdepCC_TRUE='#'
3504: am__fastdepCC_FALSE=
3505: fi
3506:
3507:
1.15 paf 3508:
3509:
3510:
3511:
3512:
3513:
3514:
1.23 moko 3515:
3516: case `pwd` in
3517: *\ * | *\ *)
3518: { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3519: echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
1.15 paf 3520: esac
3521:
1.23 moko 3522:
3523:
3524: macro_version='2.4.2'
3525: macro_revision='1.3337'
3526:
3527:
3528:
3529:
3530:
3531:
3532:
3533:
3534:
3535:
3536:
3537:
3538:
3539: ltmain="$ac_aux_dir/ltmain.sh"
3540:
1.15 paf 3541: # Make sure we can run config.sub.
3542: $ac_config_sub sun4 >/dev/null 2>&1 ||
3543: { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3544: echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3545: { (exit 1); exit 1; }; }
3546:
3547: echo "$as_me:$LINENO: checking build system type" >&5
3548: echo $ECHO_N "checking build system type... $ECHO_C" >&6
3549: if test "${ac_cv_build+set}" = set; then
3550: echo $ECHO_N "(cached) $ECHO_C" >&6
3551: else
3552: ac_cv_build_alias=$build_alias
3553: test -z "$ac_cv_build_alias" &&
3554: ac_cv_build_alias=`$ac_config_guess`
3555: test -z "$ac_cv_build_alias" &&
3556: { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3557: echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3558: { (exit 1); exit 1; }; }
3559: ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3560: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3561: echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3562: { (exit 1); exit 1; }; }
3563:
3564: fi
3565: echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3566: echo "${ECHO_T}$ac_cv_build" >&6
3567: build=$ac_cv_build
3568: build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3569: build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3570: build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3571:
3572:
3573: echo "$as_me:$LINENO: checking host system type" >&5
3574: echo $ECHO_N "checking host system type... $ECHO_C" >&6
3575: if test "${ac_cv_host+set}" = set; then
3576: echo $ECHO_N "(cached) $ECHO_C" >&6
3577: else
3578: ac_cv_host_alias=$host_alias
3579: test -z "$ac_cv_host_alias" &&
3580: ac_cv_host_alias=$ac_cv_build_alias
3581: ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3582: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3583: echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3584: { (exit 1); exit 1; }; }
3585:
3586: fi
3587: echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3588: echo "${ECHO_T}$ac_cv_host" >&6
3589: host=$ac_cv_host
3590: host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3591: host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3592: host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3593:
3594:
1.23 moko 3595: # Backslashify metacharacters that are still active within
3596: # double-quoted strings.
3597: sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3598:
3599: # Same as above, but do not quote variable references.
3600: double_quote_subst='s/\(["`\\]\)/\\\1/g'
3601:
3602: # Sed substitution to delay expansion of an escaped shell variable in a
3603: # double_quote_subst'ed string.
3604: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3605:
3606: # Sed substitution to delay expansion of an escaped single quote.
3607: delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3608:
3609: # Sed substitution to avoid accidental globbing in evaled expressions
3610: no_glob_subst='s/\*/\\\*/g'
3611:
3612: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3613: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3614: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3615:
3616: echo "$as_me:$LINENO: checking how to print strings" >&5
3617: echo $ECHO_N "checking how to print strings... $ECHO_C" >&6
3618: # Test print first, because it will be a builtin if present.
3619: if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3620: test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3621: ECHO='print -r --'
3622: elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3623: ECHO='printf %s\n'
3624: else
3625: # Use this function as a fallback that always works.
3626: func_fallback_echo ()
3627: {
3628: eval 'cat <<_LTECHO_EOF
3629: $1
3630: _LTECHO_EOF'
3631: }
3632: ECHO='func_fallback_echo'
1.10 paf 3633: fi
3634:
1.23 moko 3635: # func_echo_all arg...
3636: # Invoke $ECHO with all args, space-separated.
3637: func_echo_all ()
3638: {
3639: $ECHO ""
3640: }
3641:
3642: case "$ECHO" in
3643: printf*) echo "$as_me:$LINENO: result: printf" >&5
3644: echo "${ECHO_T}printf" >&6 ;;
3645: print*) echo "$as_me:$LINENO: result: print -r" >&5
3646: echo "${ECHO_T}print -r" >&6 ;;
3647: *) echo "$as_me:$LINENO: result: cat" >&5
3648: echo "${ECHO_T}cat" >&6 ;;
3649: esac
3650:
3651:
3652:
3653:
3654:
3655:
3656:
3657:
3658:
3659:
3660:
3661:
3662:
3663:
3664: echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3665: echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3666: if test "${lt_cv_path_SED+set}" = set; then
3667: echo $ECHO_N "(cached) $ECHO_C" >&6
3668: else
3669: # Loop through the user's path and test for sed and gsed.
3670: # Then use that list of sed's as ones to test for truncation.
3671: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3672: for as_dir in $PATH
3673: do
3674: IFS=$as_save_IFS
3675: test -z "$as_dir" && as_dir=.
3676: for lt_ac_prog in sed gsed; do
3677: for ac_exec_ext in '' $ac_executable_extensions; do
3678: if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3679: lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3680: fi
3681: done
3682: done
3683: done
3684: IFS=$as_save_IFS
3685: lt_ac_max=0
3686: lt_ac_count=0
3687: # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3688: # along with /bin/sed that truncates output.
3689: for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3690: test ! -f $lt_ac_sed && continue
3691: cat /dev/null > conftest.in
3692: lt_ac_count=0
3693: echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3694: # Check for GNU sed and select it if it is found.
3695: if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3696: lt_cv_path_SED=$lt_ac_sed
3697: break
3698: fi
3699: while true; do
3700: cat conftest.in conftest.in >conftest.tmp
3701: mv conftest.tmp conftest.in
3702: cp conftest.in conftest.nl
3703: echo >>conftest.nl
3704: $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3705: cmp -s conftest.out conftest.nl || break
3706: # 10000 chars as input seems more than enough
3707: test $lt_ac_count -gt 10 && break
3708: lt_ac_count=`expr $lt_ac_count + 1`
3709: if test $lt_ac_count -gt $lt_ac_max; then
3710: lt_ac_max=$lt_ac_count
3711: lt_cv_path_SED=$lt_ac_sed
3712: fi
3713: done
3714: done
3715:
3716: fi
3717:
3718: SED=$lt_cv_path_SED
3719:
3720: echo "$as_me:$LINENO: result: $SED" >&5
3721: echo "${ECHO_T}$SED" >&6
3722:
3723: test -z "$SED" && SED=sed
3724: Xsed="$SED -e 1s/^X//"
3725:
3726:
3727:
3728:
3729:
3730:
3731:
3732:
3733:
3734:
3735:
3736: echo "$as_me:$LINENO: checking for egrep" >&5
3737: echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3738: if test "${ac_cv_prog_egrep+set}" = set; then
3739: echo $ECHO_N "(cached) $ECHO_C" >&6
3740: else
3741: if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3742: then ac_cv_prog_egrep='grep -E'
3743: else ac_cv_prog_egrep='egrep'
3744: fi
3745: fi
3746: echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3747: echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3748: EGREP=$ac_cv_prog_egrep
3749:
3750:
3751: echo "$as_me:$LINENO: checking for fgrep" >&5
3752: echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
3753: if test "${ac_cv_prog_fgrep+set}" = set; then
3754: echo $ECHO_N "(cached) $ECHO_C" >&6
3755: else
3756: if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
3757: then ac_cv_prog_fgrep='grep -F'
3758: else ac_cv_prog_fgrep='fgrep'
3759: fi
3760: fi
3761: echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
3762: echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
3763: FGREP=$ac_cv_prog_fgrep
3764:
3765:
3766: test -z "$GREP" && GREP=grep
3767:
3768:
3769:
3770:
3771:
3772:
3773:
3774:
3775:
3776:
3777:
3778:
3779:
3780:
3781:
3782:
3783:
3784:
1.1 parser 3785:
3786: # Check whether --with-gnu-ld or --without-gnu-ld was given.
3787: if test "${with_gnu_ld+set}" = set; then
3788: withval="$with_gnu_ld"
3789: test "$withval" = no || with_gnu_ld=yes
3790: else
3791: with_gnu_ld=no
1.10 paf 3792: fi;
1.1 parser 3793: ac_prog=ld
1.10 paf 3794: if test "$GCC" = yes; then
1.1 parser 3795: # Check if gcc -print-prog-name=ld gives a path.
1.23 moko 3796: echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3797: echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
1.10 paf 3798: case $host in
3799: *-*-mingw*)
3800: # gcc leaves a trailing carriage return which upsets mingw
3801: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3802: *)
3803: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3804: esac
3805: case $ac_prog in
1.1 parser 3806: # Accept absolute paths.
1.23 moko 3807: [\\/]* | ?:[\\/]*)
1.1 parser 3808: re_direlt='/[^/][^/]*/\.\./'
1.23 moko 3809: # Canonicalize the pathname of ld
3810: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3811: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3812: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
1.1 parser 3813: done
3814: test -z "$LD" && LD="$ac_prog"
3815: ;;
3816: "")
3817: # If it fails, then pretend we aren't using GCC.
3818: ac_prog=ld
3819: ;;
3820: *)
3821: # If it is relative, then search for the first ld in PATH.
3822: with_gnu_ld=unknown
3823: ;;
3824: esac
3825: elif test "$with_gnu_ld" = yes; then
1.10 paf 3826: echo "$as_me:$LINENO: checking for GNU ld" >&5
3827: echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
1.1 parser 3828: else
1.10 paf 3829: echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3830: echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
1.1 parser 3831: fi
1.10 paf 3832: if test "${lt_cv_path_LD+set}" = set; then
3833: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 3834: else
3835: if test -z "$LD"; then
1.23 moko 3836: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1.1 parser 3837: for ac_dir in $PATH; do
1.23 moko 3838: IFS="$lt_save_ifs"
1.1 parser 3839: test -z "$ac_dir" && ac_dir=.
3840: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1.10 paf 3841: lt_cv_path_LD="$ac_dir/$ac_prog"
1.1 parser 3842: # Check to see if the program is GNU ld. I'd rather use --version,
1.23 moko 3843: # but apparently some variants of GNU ld only accept -v.
1.1 parser 3844: # Break only if it was the GNU/non-GNU ld that we prefer.
1.23 moko 3845: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3846: *GNU* | *'with BFD'*)
1.1 parser 3847: test "$with_gnu_ld" != no && break
1.23 moko 3848: ;;
3849: *)
1.1 parser 3850: test "$with_gnu_ld" != yes && break
1.23 moko 3851: ;;
3852: esac
1.1 parser 3853: fi
3854: done
1.23 moko 3855: IFS="$lt_save_ifs"
1.1 parser 3856: else
1.10 paf 3857: lt_cv_path_LD="$LD" # Let the user override the test with a path.
1.1 parser 3858: fi
3859: fi
3860:
1.10 paf 3861: LD="$lt_cv_path_LD"
1.1 parser 3862: if test -n "$LD"; then
1.10 paf 3863: echo "$as_me:$LINENO: result: $LD" >&5
3864: echo "${ECHO_T}$LD" >&6
1.1 parser 3865: else
1.10 paf 3866: echo "$as_me:$LINENO: result: no" >&5
3867: echo "${ECHO_T}no" >&6
1.1 parser 3868: fi
1.10 paf 3869: test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3870: echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3871: { (exit 1); exit 1; }; }
3872: echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3873: echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3874: if test "${lt_cv_prog_gnu_ld+set}" = set; then
3875: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 3876: else
1.23 moko 3877: # I'd rather use --version here, but apparently some GNU lds only accept -v.
3878: case `$LD -v 2>&1 </dev/null` in
3879: *GNU* | *'with BFD'*)
1.10 paf 3880: lt_cv_prog_gnu_ld=yes
1.23 moko 3881: ;;
3882: *)
1.10 paf 3883: lt_cv_prog_gnu_ld=no
1.23 moko 3884: ;;
3885: esac
1.1 parser 3886: fi
1.10 paf 3887: echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3888: echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3889: with_gnu_ld=$lt_cv_prog_gnu_ld
1.1 parser 3890:
3891:
3892:
1.23 moko 3893:
3894:
3895:
3896:
3897:
3898:
3899: echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
3900: echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
1.10 paf 3901: if test "${lt_cv_path_NM+set}" = set; then
3902: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 3903: else
3904: if test -n "$NM"; then
3905: # Let the user override the test.
1.10 paf 3906: lt_cv_path_NM="$NM"
1.1 parser 3907: else
1.23 moko 3908: lt_nm_to_check="${ac_tool_prefix}nm"
3909: if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3910: lt_nm_to_check="$lt_nm_to_check nm"
3911: fi
3912: for lt_tmp_nm in $lt_nm_to_check; do
3913: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3914: for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3915: IFS="$lt_save_ifs"
3916: test -z "$ac_dir" && ac_dir=.
3917: tmp_nm="$ac_dir/$lt_tmp_nm"
3918: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3919: # Check to see if the nm accepts a BSD-compat flag.
3920: # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3921: # nm: unknown option "B" ignored
3922: # Tru64's nm complains that /dev/null is an invalid object file
3923: case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3924: */dev/null* | *'Invalid file or object type'*)
3925: lt_cv_path_NM="$tmp_nm -B"
3926: break
3927: ;;
3928: *)
3929: case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3930: */dev/null*)
3931: lt_cv_path_NM="$tmp_nm -p"
3932: break
3933: ;;
3934: *)
3935: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3936: continue # so that we can try to find one that supports BSD flags
3937: ;;
3938: esac
3939: ;;
3940: esac
1.1 parser 3941: fi
1.23 moko 3942: done
3943: IFS="$lt_save_ifs"
1.1 parser 3944: done
1.23 moko 3945: : ${lt_cv_path_NM=no}
1.1 parser 3946: fi
3947: fi
1.23 moko 3948: echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3949: echo "${ECHO_T}$lt_cv_path_NM" >&6
3950: if test "$lt_cv_path_NM" != "no"; then
3951: NM="$lt_cv_path_NM"
3952: else
3953: # Didn't find any BSD compatible name lister, look for dumpbin.
3954: if test -n "$DUMPBIN"; then :
3955: # Let the user override the test.
3956: else
3957: if test -n "$ac_tool_prefix"; then
3958: for ac_prog in dumpbin "link -dump"
3959: do
3960: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3961: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3962: echo "$as_me:$LINENO: checking for $ac_word" >&5
3963: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3964: if test "${ac_cv_prog_DUMPBIN+set}" = set; then
3965: echo $ECHO_N "(cached) $ECHO_C" >&6
3966: else
3967: if test -n "$DUMPBIN"; then
3968: ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3969: else
3970: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3971: for as_dir in $PATH
3972: do
3973: IFS=$as_save_IFS
3974: test -z "$as_dir" && as_dir=.
3975: for ac_exec_ext in '' $ac_executable_extensions; do
3976: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3977: ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3978: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3979: break 2
3980: fi
3981: done
3982: done
1.1 parser 3983:
1.23 moko 3984: fi
3985: fi
3986: DUMPBIN=$ac_cv_prog_DUMPBIN
3987: if test -n "$DUMPBIN"; then
3988: echo "$as_me:$LINENO: result: $DUMPBIN" >&5
3989: echo "${ECHO_T}$DUMPBIN" >&6
3990: else
3991: echo "$as_me:$LINENO: result: no" >&5
3992: echo "${ECHO_T}no" >&6
3993: fi
1.1 parser 3994:
1.23 moko 3995: test -n "$DUMPBIN" && break
3996: done
3997: fi
3998: if test -z "$DUMPBIN"; then
3999: ac_ct_DUMPBIN=$DUMPBIN
4000: for ac_prog in dumpbin "link -dump"
4001: do
4002: # Extract the first word of "$ac_prog", so it can be a program name with args.
4003: set dummy $ac_prog; ac_word=$2
4004: echo "$as_me:$LINENO: checking for $ac_word" >&5
4005: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4006: if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
1.10 paf 4007: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 4008: else
1.23 moko 4009: if test -n "$ac_ct_DUMPBIN"; then
4010: ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4011: else
1.10 paf 4012: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4013: for as_dir in $PATH
4014: do
4015: IFS=$as_save_IFS
4016: test -z "$as_dir" && as_dir=.
1.23 moko 4017: for ac_exec_ext in '' $ac_executable_extensions; do
4018: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4019: ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4020: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4021: break 2
4022: fi
4023: done
4024: done
4025:
4026: fi
4027: fi
4028: ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4029: if test -n "$ac_ct_DUMPBIN"; then
4030: echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4031: echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4032: else
4033: echo "$as_me:$LINENO: result: no" >&5
4034: echo "${ECHO_T}no" >&6
4035: fi
4036:
4037: test -n "$ac_ct_DUMPBIN" && break
1.10 paf 4038: done
1.23 moko 4039: test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
1.10 paf 4040:
1.23 moko 4041: DUMPBIN=$ac_ct_DUMPBIN
4042: fi
1.10 paf 4043:
1.23 moko 4044: case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4045: *COFF*)
4046: DUMPBIN="$DUMPBIN -symbols"
4047: ;;
4048: *)
4049: DUMPBIN=:
4050: ;;
4051: esac
4052: fi
1.10 paf 4053:
1.23 moko 4054: if test "$DUMPBIN" != ":"; then
4055: NM="$DUMPBIN"
4056: fi
1.1 parser 4057: fi
1.23 moko 4058: test -z "$NM" && NM=nm
4059:
1.1 parser 4060:
1.23 moko 4061:
4062:
4063:
4064:
4065: echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4066: echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4067: if test "${lt_cv_nm_interface+set}" = set; then
4068: echo $ECHO_N "(cached) $ECHO_C" >&6
1.6 paf 4069: else
1.23 moko 4070: lt_cv_nm_interface="BSD nm"
4071: echo "int some_variable = 0;" > conftest.$ac_ext
4072: (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4073: (eval "$ac_compile" 2>conftest.err)
4074: cat conftest.err >&5
4075: (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4076: (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4077: cat conftest.err >&5
4078: (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4079: cat conftest.out >&5
4080: if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4081: lt_cv_nm_interface="MS dumpbin"
4082: fi
4083: rm -f conftest*
1.6 paf 4084: fi
1.23 moko 4085: echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4086: echo "${ECHO_T}$lt_cv_nm_interface" >&6
1.10 paf 4087:
4088: echo "$as_me:$LINENO: checking whether ln -s works" >&5
4089: echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4090: LN_S=$as_ln_s
4091: if test "$LN_S" = "ln -s"; then
4092: echo "$as_me:$LINENO: result: yes" >&5
4093: echo "${ECHO_T}yes" >&6
4094: else
4095: echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4096: echo "${ECHO_T}no, using $LN_S" >&6
4097: fi
4098:
1.23 moko 4099: # find the maximum length of command line arguments
4100: echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4101: echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4102: if test "${lt_cv_sys_max_cmd_len+set}" = set; then
1.10 paf 4103: echo $ECHO_N "(cached) $ECHO_C" >&6
4104: else
1.23 moko 4105: i=0
4106: teststring="ABCD"
1.10 paf 4107:
1.23 moko 4108: case $build_os in
4109: msdosdjgpp*)
4110: # On DJGPP, this test can blow up pretty badly due to problems in libc
4111: # (any single argument exceeding 2000 bytes causes a buffer overrun
4112: # during glob expansion). Even if it were fixed, the result of this
4113: # check would be larger than it should be.
4114: lt_cv_sys_max_cmd_len=12288; # 12K is about right
4115: ;;
1.6 paf 4116:
1.23 moko 4117: gnu*)
4118: # Under GNU Hurd, this test is not required because there is
4119: # no limit to the length of command line arguments.
4120: # Libtool will interpret -1 as no limit whatsoever
4121: lt_cv_sys_max_cmd_len=-1;
4122: ;;
1.1 parser 4123:
1.23 moko 4124: cygwin* | mingw* | cegcc*)
4125: # On Win9x/ME, this test blows up -- it succeeds, but takes
4126: # about 5 minutes as the teststring grows exponentially.
4127: # Worse, since 9x/ME are not pre-emptively multitasking,
4128: # you end up with a "frozen" computer, even though with patience
4129: # the test eventually succeeds (with a max line length of 256k).
4130: # Instead, let's just punt: use the minimum linelength reported by
4131: # all of the supported platforms: 8192 (on NT/2K/XP).
4132: lt_cv_sys_max_cmd_len=8192;
4133: ;;
1.1 parser 4134:
1.23 moko 4135: mint*)
4136: # On MiNT this can take a long time and run out of memory.
4137: lt_cv_sys_max_cmd_len=8192;
4138: ;;
1.1 parser 4139:
1.23 moko 4140: amigaos*)
4141: # On AmigaOS with pdksh, this test takes hours, literally.
4142: # So we just punt and use a minimum line length of 8192.
4143: lt_cv_sys_max_cmd_len=8192;
1.10 paf 4144: ;;
1.23 moko 4145:
4146: netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4147: # This has been around since 386BSD, at least. Likely further.
4148: if test -x /sbin/sysctl; then
4149: lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4150: elif test -x /usr/sbin/sysctl; then
4151: lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4152: else
4153: lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4154: fi
4155: # And add a safety zone
4156: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4157: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4158: ;;
4159:
4160: interix*)
4161: # We know the value 262144 and hardcode it with a safety zone (like BSD)
4162: lt_cv_sys_max_cmd_len=196608
4163: ;;
4164:
4165: os2*)
4166: # The test takes a long time on OS/2.
4167: lt_cv_sys_max_cmd_len=8192
4168: ;;
4169:
4170: osf*)
4171: # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4172: # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4173: # nice to cause kernel panics so lets avoid the loop below.
4174: # First set a reasonable default.
4175: lt_cv_sys_max_cmd_len=16384
4176: #
4177: if test -x /sbin/sysconfig; then
4178: case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4179: *1*) lt_cv_sys_max_cmd_len=-1 ;;
4180: esac
4181: fi
4182: ;;
4183: sco3.2v5*)
4184: lt_cv_sys_max_cmd_len=102400
4185: ;;
4186: sysv5* | sco5v6* | sysv4.2uw2*)
4187: kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4188: if test -n "$kargmax"; then
4189: lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4190: else
4191: lt_cv_sys_max_cmd_len=32768
4192: fi
4193: ;;
4194: *)
4195: lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4196: if test -n "$lt_cv_sys_max_cmd_len"; then
4197: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4198: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4199: else
4200: # Make teststring a little bigger before we do anything with it.
4201: # a 1K string should be a reasonable start.
4202: for i in 1 2 3 4 5 6 7 8 ; do
4203: teststring=$teststring$teststring
4204: done
4205: SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4206: # If test is not a shell built-in, we'll probably end up computing a
4207: # maximum length that is only half of the actual maximum length, but
4208: # we can't tell.
4209: while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4210: = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4211: test $i != 17 # 1/2 MB should be enough
4212: do
4213: i=`expr $i + 1`
4214: teststring=$teststring$teststring
4215: done
4216: # Only check the string length outside the loop.
4217: lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4218: teststring=
4219: # Add a significant safety factor because C++ compilers can tack on
4220: # massive amounts of additional arguments before passing them to the
4221: # linker. It appears as though 1/2 is a usable value.
4222: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4223: fi
1.10 paf 4224: ;;
4225: esac
1.23 moko 4226:
4227: fi
4228:
4229: if test -n $lt_cv_sys_max_cmd_len ; then
4230: echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4231: echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4232: else
4233: echo "$as_me:$LINENO: result: none" >&5
4234: echo "${ECHO_T}none" >&6
4235: fi
4236: max_cmd_len=$lt_cv_sys_max_cmd_len
4237:
4238:
4239:
4240:
4241:
4242:
4243: : ${CP="cp -f"}
4244: : ${MV="mv -f"}
4245: : ${RM="rm -f"}
4246:
4247: echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4248: echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4249: # Try some XSI features
4250: xsi_shell=no
4251: ( _lt_dummy="a/b/c"
4252: test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4253: = c,a/b,b/c, \
4254: && eval 'test $(( 1 + 1 )) -eq 2 \
4255: && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4256: && xsi_shell=yes
4257: echo "$as_me:$LINENO: result: $xsi_shell" >&5
4258: echo "${ECHO_T}$xsi_shell" >&6
4259:
4260:
4261: echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4262: echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4263: lt_shell_append=no
4264: ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4265: >/dev/null 2>&1 \
4266: && lt_shell_append=yes
4267: echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4268: echo "${ECHO_T}$lt_shell_append" >&6
4269:
4270:
4271: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4272: lt_unset=unset
4273: else
4274: lt_unset=false
4275: fi
4276:
4277:
4278:
4279:
4280:
4281: # test EBCDIC or ASCII
4282: case `echo X|tr X '\101'` in
4283: A) # ASCII based system
4284: # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4285: lt_SP2NL='tr \040 \012'
4286: lt_NL2SP='tr \015\012 \040\040'
4287: ;;
4288: *) # EBCDIC based system
4289: lt_SP2NL='tr \100 \n'
4290: lt_NL2SP='tr \r\n \100\100'
4291: ;;
4292: esac
4293:
4294:
4295:
4296:
4297:
4298:
4299:
4300:
4301:
4302: echo "$as_me:$LINENO: checking how to convert $build file names to $host format" >&5
4303: echo $ECHO_N "checking how to convert $build file names to $host format... $ECHO_C" >&6
4304: if test "${lt_cv_to_host_file_cmd+set}" = set; then
4305: echo $ECHO_N "(cached) $ECHO_C" >&6
4306: else
4307: case $host in
4308: *-*-mingw* )
4309: case $build in
4310: *-*-mingw* ) # actually msys
4311: lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4312: ;;
4313: *-*-cygwin* )
4314: lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4315: ;;
4316: * ) # otherwise, assume *nix
4317: lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4318: ;;
4319: esac
4320: ;;
4321: *-*-cygwin* )
4322: case $build in
4323: *-*-mingw* ) # actually msys
4324: lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4325: ;;
4326: *-*-cygwin* )
4327: lt_cv_to_host_file_cmd=func_convert_file_noop
4328: ;;
4329: * ) # otherwise, assume *nix
4330: lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4331: ;;
4332: esac
4333: ;;
4334: * ) # unhandled hosts (and "normal" native builds)
4335: lt_cv_to_host_file_cmd=func_convert_file_noop
4336: ;;
4337: esac
4338:
4339: fi
4340:
4341: to_host_file_cmd=$lt_cv_to_host_file_cmd
4342: echo "$as_me:$LINENO: result: $lt_cv_to_host_file_cmd" >&5
4343: echo "${ECHO_T}$lt_cv_to_host_file_cmd" >&6
4344:
4345:
4346:
4347:
4348:
4349: echo "$as_me:$LINENO: checking how to convert $build file names to toolchain format" >&5
4350: echo $ECHO_N "checking how to convert $build file names to toolchain format... $ECHO_C" >&6
4351: if test "${lt_cv_to_tool_file_cmd+set}" = set; then
4352: echo $ECHO_N "(cached) $ECHO_C" >&6
4353: else
4354: #assume ordinary cross tools, or native build.
4355: lt_cv_to_tool_file_cmd=func_convert_file_noop
4356: case $host in
4357: *-*-mingw* )
4358: case $build in
4359: *-*-mingw* ) # actually msys
4360: lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4361: ;;
4362: esac
4363: ;;
4364: esac
4365:
4366: fi
4367:
4368: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4369: echo "$as_me:$LINENO: result: $lt_cv_to_tool_file_cmd" >&5
4370: echo "${ECHO_T}$lt_cv_to_tool_file_cmd" >&6
4371:
4372:
4373:
4374:
4375:
4376: echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4377: echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4378: if test "${lt_cv_ld_reload_flag+set}" = set; then
4379: echo $ECHO_N "(cached) $ECHO_C" >&6
4380: else
4381: lt_cv_ld_reload_flag='-r'
4382: fi
4383: echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4384: echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4385: reload_flag=$lt_cv_ld_reload_flag
4386: case $reload_flag in
4387: "" | " "*) ;;
4388: *) reload_flag=" $reload_flag" ;;
4389: esac
4390: reload_cmds='$LD$reload_flag -o $output$reload_objs'
4391: case $host_os in
4392: cygwin* | mingw* | pw32* | cegcc*)
4393: if test "$GCC" != yes; then
4394: reload_cmds=false
4395: fi
4396: ;;
4397: darwin*)
4398: if test "$GCC" = yes; then
4399: reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4400: else
4401: reload_cmds='$LD$reload_flag -o $output$reload_objs'
4402: fi
4403: ;;
4404: esac
4405:
4406:
4407:
4408:
4409:
4410:
4411:
4412:
4413:
4414: if test -n "$ac_tool_prefix"; then
4415: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4416: set dummy ${ac_tool_prefix}objdump; ac_word=$2
4417: echo "$as_me:$LINENO: checking for $ac_word" >&5
4418: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4419: if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4420: echo $ECHO_N "(cached) $ECHO_C" >&6
4421: else
4422: if test -n "$OBJDUMP"; then
4423: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4424: else
4425: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4426: for as_dir in $PATH
4427: do
4428: IFS=$as_save_IFS
4429: test -z "$as_dir" && as_dir=.
4430: for ac_exec_ext in '' $ac_executable_extensions; do
4431: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4432: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4433: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4434: break 2
4435: fi
4436: done
4437: done
4438:
4439: fi
4440: fi
4441: OBJDUMP=$ac_cv_prog_OBJDUMP
4442: if test -n "$OBJDUMP"; then
4443: echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4444: echo "${ECHO_T}$OBJDUMP" >&6
4445: else
4446: echo "$as_me:$LINENO: result: no" >&5
4447: echo "${ECHO_T}no" >&6
4448: fi
4449:
4450: fi
4451: if test -z "$ac_cv_prog_OBJDUMP"; then
4452: ac_ct_OBJDUMP=$OBJDUMP
4453: # Extract the first word of "objdump", so it can be a program name with args.
4454: set dummy objdump; ac_word=$2
4455: echo "$as_me:$LINENO: checking for $ac_word" >&5
4456: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4457: if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4458: echo $ECHO_N "(cached) $ECHO_C" >&6
4459: else
4460: if test -n "$ac_ct_OBJDUMP"; then
4461: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4462: else
4463: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4464: for as_dir in $PATH
4465: do
4466: IFS=$as_save_IFS
4467: test -z "$as_dir" && as_dir=.
4468: for ac_exec_ext in '' $ac_executable_extensions; do
4469: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4470: ac_cv_prog_ac_ct_OBJDUMP="objdump"
4471: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4472: break 2
4473: fi
4474: done
4475: done
4476:
4477: test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
4478: fi
4479: fi
4480: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4481: if test -n "$ac_ct_OBJDUMP"; then
4482: echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4483: echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
4484: else
4485: echo "$as_me:$LINENO: result: no" >&5
4486: echo "${ECHO_T}no" >&6
4487: fi
4488:
4489: OBJDUMP=$ac_ct_OBJDUMP
4490: else
4491: OBJDUMP="$ac_cv_prog_OBJDUMP"
4492: fi
4493:
4494: test -z "$OBJDUMP" && OBJDUMP=objdump
4495:
4496:
4497:
4498:
4499:
4500:
4501: echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4502: echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4503: if test "${lt_cv_deplibs_check_method+set}" = set; then
4504: echo $ECHO_N "(cached) $ECHO_C" >&6
4505: else
4506: lt_cv_file_magic_cmd='$MAGIC_CMD'
4507: lt_cv_file_magic_test_file=
4508: lt_cv_deplibs_check_method='unknown'
4509: # Need to set the preceding variable on all platforms that support
4510: # interlibrary dependencies.
4511: # 'none' -- dependencies not supported.
4512: # `unknown' -- same as none, but documents that we really don't know.
4513: # 'pass_all' -- all dependencies passed with no checks.
4514: # 'test_compile' -- check by making test program.
4515: # 'file_magic [[regex]]' -- check by looking for files in library path
4516: # which responds to the $file_magic_cmd with a given extended regex.
4517: # If you have `file' or equivalent on your system and you're not sure
4518: # whether `pass_all' will *always* work, you probably want this one.
4519:
4520: case $host_os in
4521: aix[4-9]*)
4522: lt_cv_deplibs_check_method=pass_all
4523: ;;
4524:
4525: beos*)
4526: lt_cv_deplibs_check_method=pass_all
4527: ;;
4528:
4529: bsdi[45]*)
4530: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4531: lt_cv_file_magic_cmd='/usr/bin/file -L'
4532: lt_cv_file_magic_test_file=/shlib/libc.so
4533: ;;
4534:
4535: cygwin*)
4536: # func_win32_libid is a shell function defined in ltmain.sh
4537: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4538: lt_cv_file_magic_cmd='func_win32_libid'
4539: ;;
4540:
4541: mingw* | pw32*)
4542: # Base MSYS/MinGW do not provide the 'file' command needed by
4543: # func_win32_libid shell function, so use a weaker test based on 'objdump',
4544: # unless we find 'file', for example because we are cross-compiling.
4545: # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4546: if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4547: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4548: lt_cv_file_magic_cmd='func_win32_libid'
4549: else
4550: # Keep this pattern in sync with the one in func_win32_libid.
4551: lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4552: lt_cv_file_magic_cmd='$OBJDUMP -f'
4553: fi
4554: ;;
4555:
4556: cegcc*)
4557: # use the weaker test based on 'objdump'. See mingw*.
4558: lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4559: lt_cv_file_magic_cmd='$OBJDUMP -f'
1.10 paf 4560: ;;
1.1 parser 4561:
1.23 moko 4562: darwin* | rhapsody*)
4563: lt_cv_deplibs_check_method=pass_all
4564: ;;
4565:
4566: freebsd* | dragonfly*)
4567: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
1.10 paf 4568: case $host_cpu in
4569: i*86 )
4570: # Not sure whether the presence of OpenBSD here was a mistake.
4571: # Let's accept both of them until this is cleared up.
1.23 moko 4572: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
1.10 paf 4573: lt_cv_file_magic_cmd=/usr/bin/file
4574: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1.1 parser 4575: ;;
4576: esac
1.10 paf 4577: else
4578: lt_cv_deplibs_check_method=pass_all
1.1 parser 4579: fi
4580: ;;
4581:
1.10 paf 4582: gnu*)
4583: lt_cv_deplibs_check_method=pass_all
4584: ;;
4585:
1.23 moko 4586: haiku*)
4587: lt_cv_deplibs_check_method=pass_all
1.10 paf 4588: ;;
1.1 parser 4589:
1.23 moko 4590: hpux10.20* | hpux11*)
4591: lt_cv_file_magic_cmd=/usr/bin/file
4592: case $host_cpu in
4593: ia64*)
4594: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4595: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4596: ;;
4597: hppa*64*)
4598: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
4599: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
1.10 paf 4600: ;;
4601: *)
1.23 moko 4602: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4603: lt_cv_file_magic_test_file=/usr/lib/libc.sl
1.10 paf 4604: ;;
4605: esac
1.23 moko 4606: ;;
4607:
4608: interix[3-9]*)
4609: # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4610: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4611: ;;
4612:
4613: irix5* | irix6* | nonstopux*)
4614: case $LD in
4615: *-32|*"-32 ") libmagic=32-bit;;
4616: *-n32|*"-n32 ") libmagic=N32;;
4617: *-64|*"-64 ") libmagic=64-bit;;
4618: *) libmagic=never-match;;
4619: esac
1.10 paf 4620: lt_cv_deplibs_check_method=pass_all
4621: ;;
1.1 parser 4622:
1.23 moko 4623: # This must be glibc/ELF.
4624: linux* | k*bsd*-gnu | kopensolaris*-gnu)
4625: lt_cv_deplibs_check_method=pass_all
1.10 paf 4626: ;;
4627:
4628: netbsd*)
1.23 moko 4629: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4630: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
1.10 paf 4631: else
1.23 moko 4632: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
1.10 paf 4633: fi
4634: ;;
4635:
4636: newos6*)
4637: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4638: lt_cv_file_magic_cmd=/usr/bin/file
4639: lt_cv_file_magic_test_file=/usr/lib/libnls.so
4640: ;;
1.1 parser 4641:
1.23 moko 4642: *nto* | *qnx*)
4643: lt_cv_deplibs_check_method=pass_all
4644: ;;
4645:
1.10 paf 4646: openbsd*)
1.23 moko 4647: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4648: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
1.10 paf 4649: else
1.23 moko 4650: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
1.1 parser 4651: fi
4652: ;;
4653:
1.10 paf 4654: osf3* | osf4* | osf5*)
4655: lt_cv_deplibs_check_method=pass_all
4656: ;;
4657:
1.23 moko 4658: rdos*)
1.10 paf 4659: lt_cv_deplibs_check_method=pass_all
4660: ;;
4661:
4662: solaris*)
4663: lt_cv_deplibs_check_method=pass_all
4664: ;;
4665:
1.23 moko 4666: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
1.10 paf 4667: lt_cv_deplibs_check_method=pass_all
4668: ;;
4669:
1.23 moko 4670: sysv4 | sysv4.3*)
1.10 paf 4671: case $host_vendor in
4672: motorola)
4673: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
4674: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4675: ;;
4676: ncr)
4677: lt_cv_deplibs_check_method=pass_all
4678: ;;
4679: sequent)
4680: lt_cv_file_magic_cmd='/bin/file'
4681: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4682: ;;
4683: sni)
4684: lt_cv_file_magic_cmd='/bin/file'
4685: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4686: lt_cv_file_magic_test_file=/lib/libc.so
4687: ;;
4688: siemens)
4689: lt_cv_deplibs_check_method=pass_all
4690: ;;
1.23 moko 4691: pc)
4692: lt_cv_deplibs_check_method=pass_all
4693: ;;
1.10 paf 4694: esac
4695: ;;
1.23 moko 4696:
4697: tpf*)
4698: lt_cv_deplibs_check_method=pass_all
4699: ;;
4700: esac
1.10 paf 4701:
4702: fi
4703: echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4704: echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
1.23 moko 4705:
4706: file_magic_glob=
4707: want_nocaseglob=no
4708: if test "$build" = "$host"; then
4709: case $host_os in
4710: mingw* | pw32*)
4711: if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
4712: want_nocaseglob=yes
4713: else
4714: file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
4715: fi
4716: ;;
4717: esac
4718: fi
4719:
1.10 paf 4720: file_magic_cmd=$lt_cv_file_magic_cmd
4721: deplibs_check_method=$lt_cv_deplibs_check_method
1.23 moko 4722: test -z "$deplibs_check_method" && deplibs_check_method=unknown
4723:
4724:
4725:
1.10 paf 4726:
4727:
4728:
4729:
4730:
4731:
4732:
4733:
1.23 moko 4734:
4735:
4736:
4737:
4738:
4739:
4740:
4741:
4742:
4743:
4744:
4745: if test -n "$ac_tool_prefix"; then
4746: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4747: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4748: echo "$as_me:$LINENO: checking for $ac_word" >&5
4749: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4750: if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4751: echo $ECHO_N "(cached) $ECHO_C" >&6
4752: else
4753: if test -n "$DLLTOOL"; then
4754: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4755: else
4756: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4757: for as_dir in $PATH
4758: do
4759: IFS=$as_save_IFS
4760: test -z "$as_dir" && as_dir=.
4761: for ac_exec_ext in '' $ac_executable_extensions; do
4762: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4763: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4764: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4765: break 2
4766: fi
4767: done
4768: done
4769:
4770: fi
4771: fi
4772: DLLTOOL=$ac_cv_prog_DLLTOOL
4773: if test -n "$DLLTOOL"; then
4774: echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4775: echo "${ECHO_T}$DLLTOOL" >&6
4776: else
4777: echo "$as_me:$LINENO: result: no" >&5
4778: echo "${ECHO_T}no" >&6
4779: fi
4780:
4781: fi
4782: if test -z "$ac_cv_prog_DLLTOOL"; then
4783: ac_ct_DLLTOOL=$DLLTOOL
4784: # Extract the first word of "dlltool", so it can be a program name with args.
4785: set dummy dlltool; ac_word=$2
4786: echo "$as_me:$LINENO: checking for $ac_word" >&5
4787: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4788: if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
1.10 paf 4789: echo $ECHO_N "(cached) $ECHO_C" >&6
1.6 paf 4790: else
1.23 moko 4791: if test -n "$ac_ct_DLLTOOL"; then
4792: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4793: else
4794: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4795: for as_dir in $PATH
4796: do
4797: IFS=$as_save_IFS
4798: test -z "$as_dir" && as_dir=.
4799: for ac_exec_ext in '' $ac_executable_extensions; do
4800: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4801: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4802: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4803: break 2
4804: fi
4805: done
4806: done
4807:
4808: test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
4809: fi
4810: fi
4811: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4812: if test -n "$ac_ct_DLLTOOL"; then
4813: echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4814: echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
4815: else
4816: echo "$as_me:$LINENO: result: no" >&5
4817: echo "${ECHO_T}no" >&6
4818: fi
4819:
4820: DLLTOOL=$ac_ct_DLLTOOL
4821: else
4822: DLLTOOL="$ac_cv_prog_DLLTOOL"
4823: fi
4824:
4825: test -z "$DLLTOOL" && DLLTOOL=dlltool
4826:
1.10 paf 4827:
4828:
4829:
4830:
4831:
4832:
1.23 moko 4833: echo "$as_me:$LINENO: checking how to associate runtime and link libraries" >&5
4834: echo $ECHO_N "checking how to associate runtime and link libraries... $ECHO_C" >&6
4835: if test "${lt_cv_sharedlib_from_linklib_cmd+set}" = set; then
4836: echo $ECHO_N "(cached) $ECHO_C" >&6
4837: else
4838: lt_cv_sharedlib_from_linklib_cmd='unknown'
1.10 paf 4839:
4840: case $host_os in
1.23 moko 4841: cygwin* | mingw* | pw32* | cegcc*)
4842: # two different shell functions defined in ltmain.sh
4843: # decide which to use based on capabilities of $DLLTOOL
4844: case `$DLLTOOL --help 2>&1` in
4845: *--identify-strict*)
4846: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
4847: ;;
4848: *)
4849: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
4850: ;;
4851: esac
1.10 paf 4852: ;;
1.23 moko 4853: *)
4854: # fallback: assume linklib IS sharedlib
4855: lt_cv_sharedlib_from_linklib_cmd="$ECHO"
1.10 paf 4856: ;;
4857: esac
4858:
4859: fi
1.23 moko 4860: echo "$as_me:$LINENO: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
4861: echo "${ECHO_T}$lt_cv_sharedlib_from_linklib_cmd" >&6
4862: sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
4863: test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
1.10 paf 4864:
4865:
4866:
4867:
4868:
4869:
4870:
4871:
1.23 moko 4872: if test -n "$ac_tool_prefix"; then
4873: for ac_prog in ar
4874: do
4875: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4876: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4877: echo "$as_me:$LINENO: checking for $ac_word" >&5
4878: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4879: if test "${ac_cv_prog_AR+set}" = set; then
4880: echo $ECHO_N "(cached) $ECHO_C" >&6
4881: else
4882: if test -n "$AR"; then
4883: ac_cv_prog_AR="$AR" # Let the user override the test.
4884: else
4885: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4886: for as_dir in $PATH
4887: do
4888: IFS=$as_save_IFS
4889: test -z "$as_dir" && as_dir=.
4890: for ac_exec_ext in '' $ac_executable_extensions; do
4891: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4892: ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4893: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4894: break 2
1.10 paf 4895: fi
4896: done
1.23 moko 4897: done
1.10 paf 4898:
1.6 paf 4899: fi
4900: fi
1.23 moko 4901: AR=$ac_cv_prog_AR
4902: if test -n "$AR"; then
4903: echo "$as_me:$LINENO: result: $AR" >&5
4904: echo "${ECHO_T}$AR" >&6
1.6 paf 4905: else
1.23 moko 4906: echo "$as_me:$LINENO: result: no" >&5
4907: echo "${ECHO_T}no" >&6
1.6 paf 4908: fi
4909:
1.23 moko 4910: test -n "$AR" && break
4911: done
1.15 paf 4912: fi
1.23 moko 4913: if test -z "$AR"; then
4914: ac_ct_AR=$AR
4915: for ac_prog in ar
4916: do
4917: # Extract the first word of "$ac_prog", so it can be a program name with args.
4918: set dummy $ac_prog; ac_word=$2
4919: echo "$as_me:$LINENO: checking for $ac_word" >&5
4920: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4921: if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
1.10 paf 4922: echo $ECHO_N "(cached) $ECHO_C" >&6
1.6 paf 4923: else
1.23 moko 4924: if test -n "$ac_ct_AR"; then
4925: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4926: else
4927: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4928: for as_dir in $PATH
1.10 paf 4929: do
1.23 moko 4930: IFS=$as_save_IFS
4931: test -z "$as_dir" && as_dir=.
4932: for ac_exec_ext in '' $ac_executable_extensions; do
4933: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4934: ac_cv_prog_ac_ct_AR="$ac_prog"
4935: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4936: break 2
1.10 paf 4937: fi
1.23 moko 4938: done
4939: done
1.10 paf 4940:
1.6 paf 4941: fi
4942: fi
1.23 moko 4943: ac_ct_AR=$ac_cv_prog_ac_ct_AR
4944: if test -n "$ac_ct_AR"; then
4945: echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4946: echo "${ECHO_T}$ac_ct_AR" >&6
1.10 paf 4947: else
1.23 moko 4948: echo "$as_me:$LINENO: result: no" >&5
4949: echo "${ECHO_T}no" >&6
1.6 paf 4950: fi
1.10 paf 4951:
1.23 moko 4952: test -n "$ac_ct_AR" && break
1.10 paf 4953: done
1.23 moko 4954: test -n "$ac_ct_AR" || ac_ct_AR="false"
4955:
4956: AR=$ac_ct_AR
1.6 paf 4957: fi
4958:
1.23 moko 4959: : ${AR=ar}
4960: : ${AR_FLAGS=cru}
4961:
1.10 paf 4962:
4963:
1.6 paf 4964:
1.10 paf 4965:
1.6 paf 4966:
4967:
1.10 paf 4968:
4969:
4970:
4971:
1.23 moko 4972: echo "$as_me:$LINENO: checking for archiver @FILE support" >&5
4973: echo $ECHO_N "checking for archiver @FILE support... $ECHO_C" >&6
4974: if test "${lt_cv_ar_at_file+set}" = set; then
1.10 paf 4975: echo $ECHO_N "(cached) $ECHO_C" >&6
4976: else
1.23 moko 4977: lt_cv_ar_at_file=no
4978: cat >conftest.$ac_ext <<_ACEOF
1.10 paf 4979: /* confdefs.h. */
4980: _ACEOF
4981: cat confdefs.h >>conftest.$ac_ext
4982: cat >>conftest.$ac_ext <<_ACEOF
4983: /* end confdefs.h. */
4984:
4985: int
4986: main ()
4987: {
4988:
4989: ;
4990: return 0;
4991: }
4992: _ACEOF
4993: rm -f conftest.$ac_objext
4994: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.16 paf 4995: (eval $ac_compile) 2>conftest.er1
1.10 paf 4996: ac_status=$?
1.16 paf 4997: grep -v '^ *+' conftest.er1 >conftest.err
4998: rm -f conftest.er1
4999: cat conftest.err >&5
1.10 paf 5000: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001: (exit $ac_status); } &&
1.16 paf 5002: { ac_try='test -z "$ac_c_werror_flag"
5003: || test ! -s conftest.err'
5004: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5005: (eval $ac_try) 2>&5
5006: ac_status=$?
5007: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008: (exit $ac_status); }; } &&
5009: { ac_try='test -s conftest.$ac_objext'
1.10 paf 5010: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5011: (eval $ac_try) 2>&5
5012: ac_status=$?
5013: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014: (exit $ac_status); }; }; then
1.23 moko 5015: echo conftest.$ac_objext > conftest.lst
5016: lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5017: { (eval echo "$as_me:$LINENO: \"$lt_ar_try\"") >&5
5018: (eval $lt_ar_try) 2>&5
5019: ac_status=$?
5020: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021: (exit $ac_status); }
5022: if test "$ac_status" -eq 0; then
5023: # Ensure the archiver fails upon bogus file names.
5024: rm -f conftest.$ac_objext libconftest.a
5025: { (eval echo "$as_me:$LINENO: \"$lt_ar_try\"") >&5
5026: (eval $lt_ar_try) 2>&5
5027: ac_status=$?
5028: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029: (exit $ac_status); }
5030: if test "$ac_status" -ne 0; then
5031: lt_cv_ar_at_file=@
5032: fi
5033: fi
5034: rm -f conftest.* libconftest.a
5035:
1.6 paf 5036: else
1.10 paf 5037: echo "$as_me: failed program was:" >&5
5038: sed 's/^/| /' conftest.$ac_ext >&5
5039:
1.6 paf 5040: fi
1.16 paf 5041: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.6 paf 5042:
1.23 moko 5043: fi
5044: echo "$as_me:$LINENO: result: $lt_cv_ar_at_file" >&5
5045: echo "${ECHO_T}$lt_cv_ar_at_file" >&6
1.6 paf 5046:
1.23 moko 5047: if test "x$lt_cv_ar_at_file" = xno; then
5048: archiver_list_spec=
1.6 paf 5049: else
1.23 moko 5050: archiver_list_spec=$lt_cv_ar_at_file
1.6 paf 5051: fi
1.10 paf 5052:
5053:
5054:
1.23 moko 5055:
5056:
5057:
5058:
5059: if test -n "$ac_tool_prefix"; then
5060: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5061: set dummy ${ac_tool_prefix}strip; ac_word=$2
5062: echo "$as_me:$LINENO: checking for $ac_word" >&5
5063: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5064: if test "${ac_cv_prog_STRIP+set}" = set; then
5065: echo $ECHO_N "(cached) $ECHO_C" >&6
5066: else
5067: if test -n "$STRIP"; then
5068: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5069: else
5070: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5071: for as_dir in $PATH
5072: do
5073: IFS=$as_save_IFS
5074: test -z "$as_dir" && as_dir=.
5075: for ac_exec_ext in '' $ac_executable_extensions; do
5076: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5077: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5078: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5079: break 2
5080: fi
5081: done
5082: done
5083:
5084: fi
5085: fi
5086: STRIP=$ac_cv_prog_STRIP
5087: if test -n "$STRIP"; then
5088: echo "$as_me:$LINENO: result: $STRIP" >&5
5089: echo "${ECHO_T}$STRIP" >&6
1.6 paf 5090: else
1.23 moko 5091: echo "$as_me:$LINENO: result: no" >&5
5092: echo "${ECHO_T}no" >&6
1.6 paf 5093: fi
5094:
5095: fi
1.23 moko 5096: if test -z "$ac_cv_prog_STRIP"; then
5097: ac_ct_STRIP=$STRIP
5098: # Extract the first word of "strip", so it can be a program name with args.
5099: set dummy strip; ac_word=$2
5100: echo "$as_me:$LINENO: checking for $ac_word" >&5
5101: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5102: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5103: echo $ECHO_N "(cached) $ECHO_C" >&6
1.10 paf 5104: else
1.23 moko 5105: if test -n "$ac_ct_STRIP"; then
5106: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1.1 parser 5107: else
1.23 moko 5108: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5109: for as_dir in $PATH
5110: do
5111: IFS=$as_save_IFS
5112: test -z "$as_dir" && as_dir=.
5113: for ac_exec_ext in '' $ac_executable_extensions; do
5114: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5115: ac_cv_prog_ac_ct_STRIP="strip"
5116: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5117: break 2
5118: fi
5119: done
5120: done
1.10 paf 5121:
1.23 moko 5122: test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1.10 paf 5123: fi
5124: fi
1.23 moko 5125: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5126: if test -n "$ac_ct_STRIP"; then
5127: echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5128: echo "${ECHO_T}$ac_ct_STRIP" >&6
5129: else
5130: echo "$as_me:$LINENO: result: no" >&5
5131: echo "${ECHO_T}no" >&6
1.1 parser 5132: fi
5133:
1.23 moko 5134: STRIP=$ac_ct_STRIP
5135: else
5136: STRIP="$ac_cv_prog_STRIP"
1.10 paf 5137: fi
1.1 parser 5138:
1.23 moko 5139: test -z "$STRIP" && STRIP=:
1.1 parser 5140:
5141:
5142:
5143:
5144:
5145:
1.23 moko 5146: if test -n "$ac_tool_prefix"; then
5147: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5148: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5149: echo "$as_me:$LINENO: checking for $ac_word" >&5
5150: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5151: if test "${ac_cv_prog_RANLIB+set}" = set; then
1.10 paf 5152: echo $ECHO_N "(cached) $ECHO_C" >&6
5153: else
1.23 moko 5154: if test -n "$RANLIB"; then
5155: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1.10 paf 5156: else
1.23 moko 5157: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5158: for as_dir in $PATH
5159: do
5160: IFS=$as_save_IFS
5161: test -z "$as_dir" && as_dir=.
5162: for ac_exec_ext in '' $ac_executable_extensions; do
5163: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5164: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5165: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5166: break 2
5167: fi
5168: done
5169: done
1.10 paf 5170:
5171: fi
5172: fi
1.23 moko 5173: RANLIB=$ac_cv_prog_RANLIB
5174: if test -n "$RANLIB"; then
5175: echo "$as_me:$LINENO: result: $RANLIB" >&5
5176: echo "${ECHO_T}$RANLIB" >&6
5177: else
5178: echo "$as_me:$LINENO: result: no" >&5
5179: echo "${ECHO_T}no" >&6
5180: fi
1.1 parser 5181:
1.10 paf 5182: fi
1.23 moko 5183: if test -z "$ac_cv_prog_RANLIB"; then
5184: ac_ct_RANLIB=$RANLIB
5185: # Extract the first word of "ranlib", so it can be a program name with args.
5186: set dummy ranlib; ac_word=$2
5187: echo "$as_me:$LINENO: checking for $ac_word" >&5
5188: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5189: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5190: echo $ECHO_N "(cached) $ECHO_C" >&6
5191: else
5192: if test -n "$ac_ct_RANLIB"; then
5193: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5194: else
5195: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5196: for as_dir in $PATH
5197: do
5198: IFS=$as_save_IFS
5199: test -z "$as_dir" && as_dir=.
5200: for ac_exec_ext in '' $ac_executable_extensions; do
5201: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5202: ac_cv_prog_ac_ct_RANLIB="ranlib"
5203: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5204: break 2
5205: fi
5206: done
1.10 paf 5207: done
5208:
1.23 moko 5209: test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5210: fi
5211: fi
5212: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5213: if test -n "$ac_ct_RANLIB"; then
5214: echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5215: echo "${ECHO_T}$ac_ct_RANLIB" >&6
1.10 paf 5216: else
1.23 moko 5217: echo "$as_me:$LINENO: result: no" >&5
5218: echo "${ECHO_T}no" >&6
1.10 paf 5219: fi
5220:
1.23 moko 5221: RANLIB=$ac_ct_RANLIB
1.10 paf 5222: else
1.23 moko 5223: RANLIB="$ac_cv_prog_RANLIB"
1.10 paf 5224: fi
5225:
1.23 moko 5226: test -z "$RANLIB" && RANLIB=:
5227:
5228:
5229:
5230:
5231:
5232:
5233: # Determine commands to create old-style static archives.
5234: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5235: old_postinstall_cmds='chmod 644 $oldlib'
5236: old_postuninstall_cmds=
1.10 paf 5237:
1.23 moko 5238: if test -n "$RANLIB"; then
5239: case $host_os in
5240: openbsd*)
5241: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
1.10 paf 5242: ;;
1.23 moko 5243: *)
5244: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
1.10 paf 5245: ;;
1.23 moko 5246: esac
5247: old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
1.10 paf 5248: fi
5249:
1.23 moko 5250: case $host_os in
5251: darwin*)
5252: lock_old_archive_extraction=yes ;;
5253: *)
5254: lock_old_archive_extraction=no ;;
5255: esac
1.10 paf 5256:
5257:
5258:
5259:
5260:
5261:
5262:
5263:
5264:
5265:
5266:
5267:
5268:
5269:
5270:
5271:
1.1 parser 5272:
5273:
1.10 paf 5274:
5275:
5276:
5277:
5278:
1.1 parser 5279:
1.10 paf 5280:
1.1 parser 5281:
5282:
1.10 paf 5283:
5284:
5285:
5286:
5287:
5288:
1.1 parser 5289:
1.10 paf 5290:
5291:
5292:
5293:
5294:
1.23 moko 5295: # If no C compiler was specified, use CC.
5296: LTCC=${LTCC-"$CC"}
1.1 parser 5297:
1.23 moko 5298: # If no C compiler flags were specified, use CFLAGS.
5299: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1.10 paf 5300:
1.23 moko 5301: # Allow CC to be a program name with arguments.
5302: compiler=$CC
1.10 paf 5303:
1.1 parser 5304:
1.23 moko 5305: # Check for command to grab the raw symbol name followed by C symbol from nm.
5306: echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5307: echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5308: if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5309: echo $ECHO_N "(cached) $ECHO_C" >&6
5310: else
5311:
5312: # These are sane defaults that work on at least a few old systems.
5313: # [They come from Ultrix. What could be older than Ultrix?!! ;)]
1.10 paf 5314:
1.23 moko 5315: # Character class describing NM global symbol codes.
5316: symcode='[BCDEGRST]'
1.10 paf 5317:
1.23 moko 5318: # Regexp to match symbols that can be accessed directly from C.
5319: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
1.10 paf 5320:
1.23 moko 5321: # Define system-specific variables.
5322: case $host_os in
5323: aix*)
5324: symcode='[BCDT]'
5325: ;;
5326: cygwin* | mingw* | pw32* | cegcc*)
5327: symcode='[ABCDGISTW]'
5328: ;;
5329: hpux*)
5330: if test "$host_cpu" = ia64; then
5331: symcode='[ABCDEGRST]'
5332: fi
5333: ;;
5334: irix* | nonstopux*)
5335: symcode='[BCDEGRST]'
5336: ;;
5337: osf*)
5338: symcode='[BCDEGQRST]'
5339: ;;
5340: solaris*)
5341: symcode='[BDRT]'
5342: ;;
5343: sco3.2v5*)
5344: symcode='[DT]'
5345: ;;
5346: sysv4.2uw2*)
5347: symcode='[DT]'
5348: ;;
5349: sysv5* | sco5v6* | unixware* | OpenUNIX*)
5350: symcode='[ABDT]'
5351: ;;
5352: sysv4)
5353: symcode='[DFNSTU]'
5354: ;;
5355: esac
1.10 paf 5356:
1.23 moko 5357: # If we're using GNU nm, then use its standard symbol codes.
5358: case `$NM -V 2>&1` in
5359: *GNU* | *'with BFD'*)
5360: symcode='[ABCDGIRSTW]' ;;
5361: esac
1.10 paf 5362:
1.23 moko 5363: # Transform an extracted symbol line into a proper C declaration.
5364: # Some systems (esp. on ia64) link data and code symbols differently,
5365: # so use this general approach.
5366: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
1.10 paf 5367:
1.23 moko 5368: # Transform an extracted symbol line into symbol name and symbol address
5369: lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5370: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
1.10 paf 5371:
1.23 moko 5372: # Handle CRLF in mingw tool chain
5373: opt_cr=
5374: case $build_os in
5375: mingw*)
5376: opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5377: ;;
5378: esac
1.10 paf 5379:
1.23 moko 5380: # Try without a prefix underscore, then with it.
5381: for ac_symprfx in "" "_"; do
1.1 parser 5382:
1.23 moko 5383: # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5384: symxfrm="\\1 $ac_symprfx\\2 \\2"
1.10 paf 5385:
1.23 moko 5386: # Write the raw and C identifiers.
5387: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5388: # Fake it for dumpbin and say T for any non-static function
5389: # and D for any global variable.
5390: # Also find C++ and __fastcall symbols from MSVC++,
5391: # which start with @ or ?.
5392: lt_cv_sys_global_symbol_pipe="$AWK '"\
5393: " {last_section=section; section=\$ 3};"\
5394: " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5395: " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5396: " \$ 0!~/External *\|/{next};"\
5397: " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5398: " {if(hide[section]) next};"\
5399: " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5400: " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5401: " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5402: " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5403: " ' prfx=^$ac_symprfx"
5404: else
5405: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
1.10 paf 5406: fi
1.23 moko 5407: lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
1.10 paf 5408:
1.23 moko 5409: # Check to see that the pipe works correctly.
5410: pipe_works=no
1.10 paf 5411:
1.23 moko 5412: rm -f conftest*
5413: cat > conftest.$ac_ext <<_LT_EOF
5414: #ifdef __cplusplus
5415: extern "C" {
5416: #endif
5417: char nm_test_var;
5418: void nm_test_func(void);
5419: void nm_test_func(void){}
5420: #ifdef __cplusplus
5421: }
5422: #endif
5423: int main(){nm_test_var='a';nm_test_func();return(0);}
5424: _LT_EOF
1.1 parser 5425:
1.23 moko 5426: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5427: (eval $ac_compile) 2>&5
5428: ac_status=$?
5429: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430: (exit $ac_status); }; then
5431: # Now try to grab the symbols.
5432: nlist=conftest.nm
5433: if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\"") >&5
5434: (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5435: ac_status=$?
5436: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437: (exit $ac_status); } && test -s "$nlist"; then
5438: # Try sorting and uniquifying the output.
5439: if sort "$nlist" | uniq > "$nlist"T; then
5440: mv -f "$nlist"T "$nlist"
5441: else
5442: rm -f "$nlist"T
5443: fi
1.10 paf 5444:
1.23 moko 5445: # Make sure that we snagged all the symbols we need.
5446: if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5447: if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5448: cat <<_LT_EOF > conftest.$ac_ext
5449: /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5450: #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5451: /* DATA imports from DLLs on WIN32 con't be const, because runtime
5452: relocations are performed -- see ld's documentation on pseudo-relocs. */
5453: # define LT_DLSYM_CONST
5454: #elif defined(__osf__)
5455: /* This system does not cope well with relocations in const data. */
5456: # define LT_DLSYM_CONST
5457: #else
5458: # define LT_DLSYM_CONST const
5459: #endif
1.10 paf 5460:
1.23 moko 5461: #ifdef __cplusplus
5462: extern "C" {
5463: #endif
1.10 paf 5464:
1.23 moko 5465: _LT_EOF
5466: # Now generate the symbol file.
5467: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
1.10 paf 5468:
1.23 moko 5469: cat <<_LT_EOF >> conftest.$ac_ext
1.10 paf 5470:
1.23 moko 5471: /* The mapping between symbol names and symbols. */
5472: LT_DLSYM_CONST struct {
5473: const char *name;
5474: void *address;
5475: }
5476: lt__PROGRAM__LTX_preloaded_symbols[] =
5477: {
5478: { "@PROGRAM@", (void *) 0 },
5479: _LT_EOF
5480: $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5481: cat <<\_LT_EOF >> conftest.$ac_ext
5482: {0, (void *) 0}
5483: };
1.10 paf 5484:
1.23 moko 5485: /* This works around a problem in FreeBSD linker */
5486: #ifdef FREEBSD_WORKAROUND
5487: static const void *lt_preloaded_setup() {
5488: return lt__PROGRAM__LTX_preloaded_symbols;
5489: }
5490: #endif
1.1 parser 5491:
1.23 moko 5492: #ifdef __cplusplus
5493: }
5494: #endif
5495: _LT_EOF
5496: # Now try linking the two files.
5497: mv conftest.$ac_objext conftstm.$ac_objext
5498: lt_globsym_save_LIBS=$LIBS
5499: lt_globsym_save_CFLAGS=$CFLAGS
5500: LIBS="conftstm.$ac_objext"
5501: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5502: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5503: (eval $ac_link) 2>&5
5504: ac_status=$?
5505: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506: (exit $ac_status); } && test -s conftest${ac_exeext}; then
5507: pipe_works=yes
5508: fi
5509: LIBS=$lt_globsym_save_LIBS
5510: CFLAGS=$lt_globsym_save_CFLAGS
5511: else
5512: echo "cannot find nm_test_func in $nlist" >&5
5513: fi
5514: else
5515: echo "cannot find nm_test_var in $nlist" >&5
1.10 paf 5516: fi
1.23 moko 5517: else
5518: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5519: fi
5520: else
5521: echo "$progname: failed program was:" >&5
5522: cat conftest.$ac_ext >&5
5523: fi
5524: rm -rf conftest* conftst*
5525:
5526: # Do not use the global_symbol_pipe unless it works.
5527: if test "$pipe_works" = yes; then
5528: break
1.10 paf 5529: else
1.23 moko 5530: lt_cv_sys_global_symbol_pipe=
5531: fi
5532: done
5533:
5534: fi
1.10 paf 5535:
1.23 moko 5536: if test -z "$lt_cv_sys_global_symbol_pipe"; then
5537: lt_cv_sys_global_symbol_to_cdecl=
5538: fi
5539: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5540: echo "$as_me:$LINENO: result: failed" >&5
5541: echo "${ECHO_T}failed" >&6
5542: else
5543: echo "$as_me:$LINENO: result: ok" >&5
5544: echo "${ECHO_T}ok" >&6
5545: fi
1.10 paf 5546:
1.23 moko 5547: # Response file support.
5548: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5549: nm_file_list_spec='@'
5550: elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5551: nm_file_list_spec='@'
5552: fi
1.10 paf 5553:
5554:
5555:
5556:
5557:
5558:
5559:
5560:
5561:
5562:
5563:
5564:
1.23 moko 5565:
5566:
5567:
5568:
5569:
5570:
5571:
5572:
5573:
5574:
5575:
5576:
5577:
5578:
5579:
5580: echo "$as_me:$LINENO: checking for sysroot" >&5
5581: echo $ECHO_N "checking for sysroot... $ECHO_C" >&6
5582:
5583: # Check whether --with-sysroot or --without-sysroot was given.
5584: if test "${with_sysroot+set}" = set; then
5585: withval="$with_sysroot"
5586:
1.10 paf 5587: else
1.23 moko 5588: with_sysroot=no
5589: fi;
5590:
5591: lt_sysroot=
5592: case ${with_sysroot} in #(
5593: yes)
5594: if test "$GCC" = yes; then
5595: lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5596: fi
5597: ;; #(
5598: /*)
5599: lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5600: ;; #(
5601: no|'')
5602: ;; #(
5603: *)
5604: echo "$as_me:$LINENO: result: ${with_sysroot}" >&5
5605: echo "${ECHO_T}${with_sysroot}" >&6
5606: { { echo "$as_me:$LINENO: error: The sysroot must be an absolute path." >&5
5607: echo "$as_me: error: The sysroot must be an absolute path." >&2;}
5608: { (exit 1); exit 1; }; }
5609: ;;
5610: esac
5611:
5612: echo "$as_me:$LINENO: result: ${lt_sysroot:-no}" >&5
5613: echo "${ECHO_T}${lt_sysroot:-no}" >&6
5614:
5615:
1.10 paf 5616:
5617:
5618:
1.23 moko 5619: # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5620: if test "${enable_libtool_lock+set}" = set; then
5621: enableval="$enable_libtool_lock"
5622:
5623: fi;
5624: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5625:
5626: # Some flags need to be propagated to the compiler or linker for good
5627: # libtool support.
5628: case $host in
5629: ia64-*-hpux*)
5630: # Find out which ABI we are using.
5631: echo 'int i;' > conftest.$ac_ext
5632: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5633: (eval $ac_compile) 2>&5
1.10 paf 5634: ac_status=$?
5635: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.23 moko 5636: (exit $ac_status); }; then
5637: case `/usr/bin/file conftest.$ac_objext` in
5638: *ELF-32*)
5639: HPUX_IA64_MODE="32"
5640: ;;
5641: *ELF-64*)
5642: HPUX_IA64_MODE="64"
5643: ;;
5644: esac
5645: fi
5646: rm -rf conftest*
5647: ;;
5648: *-*-irix6*)
5649: # Find out which ABI we are using.
5650: echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5651: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5652: (eval $ac_compile) 2>&5
1.16 paf 5653: ac_status=$?
5654: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.23 moko 5655: (exit $ac_status); }; then
5656: if test "$lt_cv_prog_gnu_ld" = yes; then
5657: case `/usr/bin/file conftest.$ac_objext` in
5658: *32-bit*)
5659: LD="${LD-ld} -melf32bsmip"
5660: ;;
5661: *N32*)
5662: LD="${LD-ld} -melf32bmipn32"
5663: ;;
5664: *64-bit*)
5665: LD="${LD-ld} -melf64bmip"
5666: ;;
5667: esac
5668: else
5669: case `/usr/bin/file conftest.$ac_objext` in
5670: *32-bit*)
5671: LD="${LD-ld} -32"
5672: ;;
5673: *N32*)
5674: LD="${LD-ld} -n32"
5675: ;;
5676: *64-bit*)
5677: LD="${LD-ld} -64"
5678: ;;
5679: esac
5680: fi
5681: fi
5682: rm -rf conftest*
5683: ;;
5684:
5685: x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5686: s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5687: # Find out which ABI we are using.
5688: echo 'int i;' > conftest.$ac_ext
5689: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5690: (eval $ac_compile) 2>&5
1.10 paf 5691: ac_status=$?
5692: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.23 moko 5693: (exit $ac_status); }; then
5694: case `/usr/bin/file conftest.o` in
5695: *32-bit*)
5696: case $host in
5697: x86_64-*kfreebsd*-gnu)
5698: LD="${LD-ld} -m elf_i386_fbsd"
5699: ;;
5700: x86_64-*linux*)
5701: LD="${LD-ld} -m elf_i386"
5702: ;;
5703: ppc64-*linux*|powerpc64-*linux*)
5704: LD="${LD-ld} -m elf32ppclinux"
5705: ;;
5706: s390x-*linux*)
5707: LD="${LD-ld} -m elf_s390"
5708: ;;
5709: sparc64-*linux*)
5710: LD="${LD-ld} -m elf32_sparc"
5711: ;;
5712: esac
1.10 paf 5713: ;;
1.23 moko 5714: *64-bit*)
5715: case $host in
5716: x86_64-*kfreebsd*-gnu)
5717: LD="${LD-ld} -m elf_x86_64_fbsd"
5718: ;;
5719: x86_64-*linux*)
5720: LD="${LD-ld} -m elf_x86_64"
5721: ;;
5722: ppc*-*linux*|powerpc*-*linux*)
5723: LD="${LD-ld} -m elf64ppc"
5724: ;;
5725: s390*-*linux*|s390*-*tpf*)
5726: LD="${LD-ld} -m elf64_s390"
5727: ;;
5728: sparc*-*linux*)
5729: LD="${LD-ld} -m elf64_sparc"
5730: ;;
5731: esac
1.10 paf 5732: ;;
1.23 moko 5733: esac
1.10 paf 5734: fi
1.23 moko 5735: rm -rf conftest*
5736: ;;
1.10 paf 5737:
1.23 moko 5738: *-*-sco3.2v5*)
5739: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5740: SAVE_CFLAGS="$CFLAGS"
5741: CFLAGS="$CFLAGS -belf"
5742: echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5743: echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5744: if test "${lt_cv_cc_needs_belf+set}" = set; then
1.10 paf 5745: echo $ECHO_N "(cached) $ECHO_C" >&6
5746: else
1.23 moko 5747: ac_ext=c
5748: ac_cpp='$CPP $CPPFLAGS'
5749: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5750: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5751: ac_compiler_gnu=$ac_cv_c_compiler_gnu
5752:
5753: cat >conftest.$ac_ext <<_ACEOF
1.10 paf 5754: /* confdefs.h. */
5755: _ACEOF
5756: cat confdefs.h >>conftest.$ac_ext
5757: cat >>conftest.$ac_ext <<_ACEOF
5758: /* end confdefs.h. */
5759:
5760: int
5761: main ()
5762: {
5763:
5764: ;
5765: return 0;
5766: }
5767: _ACEOF
5768: rm -f conftest.$ac_objext conftest$ac_exeext
5769: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.16 paf 5770: (eval $ac_link) 2>conftest.er1
1.10 paf 5771: ac_status=$?
1.16 paf 5772: grep -v '^ *+' conftest.er1 >conftest.err
5773: rm -f conftest.er1
5774: cat conftest.err >&5
1.10 paf 5775: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5776: (exit $ac_status); } &&
1.16 paf 5777: { ac_try='test -z "$ac_c_werror_flag"
5778: || test ! -s conftest.err'
5779: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5780: (eval $ac_try) 2>&5
5781: ac_status=$?
5782: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783: (exit $ac_status); }; } &&
5784: { ac_try='test -s conftest$ac_exeext'
1.10 paf 5785: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5786: (eval $ac_try) 2>&5
5787: ac_status=$?
5788: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789: (exit $ac_status); }; }; then
1.23 moko 5790: lt_cv_cc_needs_belf=yes
1.10 paf 5791: else
5792: echo "$as_me: failed program was:" >&5
5793: sed 's/^/| /' conftest.$ac_ext >&5
5794:
1.23 moko 5795: lt_cv_cc_needs_belf=no
1.10 paf 5796: fi
1.16 paf 5797: rm -f conftest.err conftest.$ac_objext \
5798: conftest$ac_exeext conftest.$ac_ext
1.23 moko 5799: ac_ext=c
5800: ac_cpp='$CPP $CPPFLAGS'
5801: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5802: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5803: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.10 paf 5804:
5805: fi
1.23 moko 5806: echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5807: echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5808: if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5809: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5810: CFLAGS="$SAVE_CFLAGS"
5811: fi
5812: ;;
5813: *-*solaris*)
5814: # Find out which ABI we are using.
5815: echo 'int i;' > conftest.$ac_ext
5816: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5817: (eval $ac_compile) 2>&5
5818: ac_status=$?
5819: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820: (exit $ac_status); }; then
5821: case `/usr/bin/file conftest.o` in
5822: *64-bit*)
5823: case $lt_cv_prog_gnu_ld in
5824: yes*)
5825: case $host in
5826: i?86-*-solaris*)
5827: LD="${LD-ld} -m elf_x86_64"
5828: ;;
5829: sparc*-*-solaris*)
5830: LD="${LD-ld} -m elf64_sparc"
5831: ;;
5832: esac
5833: # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
5834: if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
5835: LD="${LD-ld}_sol2"
5836: fi
5837: ;;
5838: *)
5839: if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5840: LD="${LD-ld} -64"
5841: fi
5842: ;;
5843: esac
5844: ;;
5845: esac
5846: fi
5847: rm -rf conftest*
5848: ;;
5849: esac
1.10 paf 5850:
1.23 moko 5851: need_locks="$enable_libtool_lock"
1.10 paf 5852:
1.23 moko 5853: if test -n "$ac_tool_prefix"; then
5854: # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
5855: set dummy ${ac_tool_prefix}mt; ac_word=$2
5856: echo "$as_me:$LINENO: checking for $ac_word" >&5
5857: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5858: if test "${ac_cv_prog_MANIFEST_TOOL+set}" = set; then
5859: echo $ECHO_N "(cached) $ECHO_C" >&6
5860: else
5861: if test -n "$MANIFEST_TOOL"; then
5862: ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
5863: else
5864: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5865: for as_dir in $PATH
5866: do
5867: IFS=$as_save_IFS
5868: test -z "$as_dir" && as_dir=.
5869: for ac_exec_ext in '' $ac_executable_extensions; do
5870: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5871: ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
5872: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5873: break 2
5874: fi
5875: done
5876: done
1.10 paf 5877:
1.23 moko 5878: fi
5879: fi
5880: MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
5881: if test -n "$MANIFEST_TOOL"; then
5882: echo "$as_me:$LINENO: result: $MANIFEST_TOOL" >&5
5883: echo "${ECHO_T}$MANIFEST_TOOL" >&6
5884: else
5885: echo "$as_me:$LINENO: result: no" >&5
5886: echo "${ECHO_T}no" >&6
5887: fi
1.10 paf 5888:
1.23 moko 5889: fi
5890: if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
5891: ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
5892: # Extract the first word of "mt", so it can be a program name with args.
5893: set dummy mt; ac_word=$2
5894: echo "$as_me:$LINENO: checking for $ac_word" >&5
5895: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5896: if test "${ac_cv_prog_ac_ct_MANIFEST_TOOL+set}" = set; then
1.10 paf 5897: echo $ECHO_N "(cached) $ECHO_C" >&6
5898: else
1.23 moko 5899: if test -n "$ac_ct_MANIFEST_TOOL"; then
5900: ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
5901: else
5902: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5903: for as_dir in $PATH
5904: do
5905: IFS=$as_save_IFS
5906: test -z "$as_dir" && as_dir=.
5907: for ac_exec_ext in '' $ac_executable_extensions; do
5908: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5909: ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
5910: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5911: break 2
5912: fi
5913: done
5914: done
1.10 paf 5915:
1.23 moko 5916: test -z "$ac_cv_prog_ac_ct_MANIFEST_TOOL" && ac_cv_prog_ac_ct_MANIFEST_TOOL=":"
5917: fi
5918: fi
5919: ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
5920: if test -n "$ac_ct_MANIFEST_TOOL"; then
5921: echo "$as_me:$LINENO: result: $ac_ct_MANIFEST_TOOL" >&5
5922: echo "${ECHO_T}$ac_ct_MANIFEST_TOOL" >&6
1.10 paf 5923: else
1.23 moko 5924: echo "$as_me:$LINENO: result: no" >&5
5925: echo "${ECHO_T}no" >&6
1.10 paf 5926: fi
5927:
1.23 moko 5928: MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
5929: else
5930: MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
1.10 paf 5931: fi
5932:
1.23 moko 5933: test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
5934: echo "$as_me:$LINENO: checking if $MANIFEST_TOOL is a manifest tool" >&5
5935: echo $ECHO_N "checking if $MANIFEST_TOOL is a manifest tool... $ECHO_C" >&6
5936: if test "${lt_cv_path_mainfest_tool+set}" = set; then
1.10 paf 5937: echo $ECHO_N "(cached) $ECHO_C" >&6
5938: else
1.23 moko 5939: lt_cv_path_mainfest_tool=no
5940: echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
5941: $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
5942: cat conftest.err >&5
5943: if $GREP 'Manifest Tool' conftest.out > /dev/null; then
5944: lt_cv_path_mainfest_tool=yes
5945: fi
5946: rm -f conftest*
5947: fi
5948: echo "$as_me:$LINENO: result: $lt_cv_path_mainfest_tool" >&5
5949: echo "${ECHO_T}$lt_cv_path_mainfest_tool" >&6
5950: if test "x$lt_cv_path_mainfest_tool" != xyes; then
5951: MANIFEST_TOOL=:
5952: fi
5953:
5954:
5955:
5956:
1.10 paf 5957:
5958:
1.23 moko 5959: case $host_os in
5960: rhapsody* | darwin*)
5961: if test -n "$ac_tool_prefix"; then
5962: # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5963: set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5964: echo "$as_me:$LINENO: checking for $ac_word" >&5
5965: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5966: if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5967: echo $ECHO_N "(cached) $ECHO_C" >&6
5968: else
5969: if test -n "$DSYMUTIL"; then
5970: ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5971: else
5972: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5973: for as_dir in $PATH
5974: do
5975: IFS=$as_save_IFS
5976: test -z "$as_dir" && as_dir=.
5977: for ac_exec_ext in '' $ac_executable_extensions; do
5978: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5979: ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5980: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5981: break 2
5982: fi
5983: done
5984: done
1.10 paf 5985:
1.23 moko 5986: fi
5987: fi
5988: DSYMUTIL=$ac_cv_prog_DSYMUTIL
5989: if test -n "$DSYMUTIL"; then
5990: echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5991: echo "${ECHO_T}$DSYMUTIL" >&6
1.10 paf 5992: else
1.23 moko 5993: echo "$as_me:$LINENO: result: no" >&5
5994: echo "${ECHO_T}no" >&6
5995: fi
1.10 paf 5996:
5997: fi
1.23 moko 5998: if test -z "$ac_cv_prog_DSYMUTIL"; then
5999: ac_ct_DSYMUTIL=$DSYMUTIL
6000: # Extract the first word of "dsymutil", so it can be a program name with args.
6001: set dummy dsymutil; ac_word=$2
6002: echo "$as_me:$LINENO: checking for $ac_word" >&5
6003: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6004: if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6005: echo $ECHO_N "(cached) $ECHO_C" >&6
6006: else
6007: if test -n "$ac_ct_DSYMUTIL"; then
6008: ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6009: else
6010: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6011: for as_dir in $PATH
6012: do
6013: IFS=$as_save_IFS
6014: test -z "$as_dir" && as_dir=.
6015: for ac_exec_ext in '' $ac_executable_extensions; do
6016: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6017: ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6018: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6019: break 2
6020: fi
6021: done
6022: done
1.10 paf 6023:
1.23 moko 6024: test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
6025: fi
6026: fi
6027: ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6028: if test -n "$ac_ct_DSYMUTIL"; then
6029: echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6030: echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
6031: else
6032: echo "$as_me:$LINENO: result: no" >&5
6033: echo "${ECHO_T}no" >&6
1.10 paf 6034: fi
6035:
1.23 moko 6036: DSYMUTIL=$ac_ct_DSYMUTIL
1.10 paf 6037: else
1.23 moko 6038: DSYMUTIL="$ac_cv_prog_DSYMUTIL"
1.10 paf 6039: fi
6040:
1.23 moko 6041: if test -n "$ac_tool_prefix"; then
6042: # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6043: set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6044: echo "$as_me:$LINENO: checking for $ac_word" >&5
6045: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6046: if test "${ac_cv_prog_NMEDIT+set}" = set; then
6047: echo $ECHO_N "(cached) $ECHO_C" >&6
6048: else
6049: if test -n "$NMEDIT"; then
6050: ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6051: else
6052: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6053: for as_dir in $PATH
6054: do
6055: IFS=$as_save_IFS
6056: test -z "$as_dir" && as_dir=.
6057: for ac_exec_ext in '' $ac_executable_extensions; do
6058: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6059: ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6060: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6061: break 2
1.10 paf 6062: fi
1.23 moko 6063: done
6064: done
6065:
6066: fi
6067: fi
6068: NMEDIT=$ac_cv_prog_NMEDIT
6069: if test -n "$NMEDIT"; then
6070: echo "$as_me:$LINENO: result: $NMEDIT" >&5
6071: echo "${ECHO_T}$NMEDIT" >&6
1.10 paf 6072: else
1.23 moko 6073: echo "$as_me:$LINENO: result: no" >&5
6074: echo "${ECHO_T}no" >&6
1.10 paf 6075: fi
6076:
1.23 moko 6077: fi
6078: if test -z "$ac_cv_prog_NMEDIT"; then
6079: ac_ct_NMEDIT=$NMEDIT
6080: # Extract the first word of "nmedit", so it can be a program name with args.
6081: set dummy nmedit; ac_word=$2
6082: echo "$as_me:$LINENO: checking for $ac_word" >&5
6083: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6084: if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6085: echo $ECHO_N "(cached) $ECHO_C" >&6
6086: else
6087: if test -n "$ac_ct_NMEDIT"; then
6088: ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6089: else
6090: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6091: for as_dir in $PATH
6092: do
6093: IFS=$as_save_IFS
6094: test -z "$as_dir" && as_dir=.
6095: for ac_exec_ext in '' $ac_executable_extensions; do
6096: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6097: ac_cv_prog_ac_ct_NMEDIT="nmedit"
6098: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6099: break 2
6100: fi
6101: done
6102: done
1.10 paf 6103:
1.23 moko 6104: test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
6105: fi
6106: fi
6107: ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6108: if test -n "$ac_ct_NMEDIT"; then
6109: echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6110: echo "${ECHO_T}$ac_ct_NMEDIT" >&6
6111: else
6112: echo "$as_me:$LINENO: result: no" >&5
6113: echo "${ECHO_T}no" >&6
6114: fi
1.10 paf 6115:
1.23 moko 6116: NMEDIT=$ac_ct_NMEDIT
1.10 paf 6117: else
1.23 moko 6118: NMEDIT="$ac_cv_prog_NMEDIT"
1.10 paf 6119: fi
6120:
1.23 moko 6121: if test -n "$ac_tool_prefix"; then
6122: # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6123: set dummy ${ac_tool_prefix}lipo; ac_word=$2
6124: echo "$as_me:$LINENO: checking for $ac_word" >&5
6125: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6126: if test "${ac_cv_prog_LIPO+set}" = set; then
6127: echo $ECHO_N "(cached) $ECHO_C" >&6
6128: else
6129: if test -n "$LIPO"; then
6130: ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6131: else
6132: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6133: for as_dir in $PATH
6134: do
6135: IFS=$as_save_IFS
6136: test -z "$as_dir" && as_dir=.
6137: for ac_exec_ext in '' $ac_executable_extensions; do
6138: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6139: ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6140: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6141: break 2
1.10 paf 6142: fi
1.23 moko 6143: done
6144: done
6145:
6146: fi
6147: fi
6148: LIPO=$ac_cv_prog_LIPO
6149: if test -n "$LIPO"; then
6150: echo "$as_me:$LINENO: result: $LIPO" >&5
6151: echo "${ECHO_T}$LIPO" >&6
6152: else
6153: echo "$as_me:$LINENO: result: no" >&5
6154: echo "${ECHO_T}no" >&6
1.10 paf 6155: fi
6156:
1.23 moko 6157: fi
6158: if test -z "$ac_cv_prog_LIPO"; then
6159: ac_ct_LIPO=$LIPO
6160: # Extract the first word of "lipo", so it can be a program name with args.
6161: set dummy lipo; ac_word=$2
6162: echo "$as_me:$LINENO: checking for $ac_word" >&5
6163: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6164: if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6165: echo $ECHO_N "(cached) $ECHO_C" >&6
6166: else
6167: if test -n "$ac_ct_LIPO"; then
6168: ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6169: else
6170: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6171: for as_dir in $PATH
6172: do
6173: IFS=$as_save_IFS
6174: test -z "$as_dir" && as_dir=.
6175: for ac_exec_ext in '' $ac_executable_extensions; do
6176: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6177: ac_cv_prog_ac_ct_LIPO="lipo"
6178: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6179: break 2
1.10 paf 6180: fi
1.23 moko 6181: done
6182: done
1.10 paf 6183:
1.23 moko 6184: test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
6185: fi
6186: fi
6187: ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6188: if test -n "$ac_ct_LIPO"; then
6189: echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6190: echo "${ECHO_T}$ac_ct_LIPO" >&6
6191: else
6192: echo "$as_me:$LINENO: result: no" >&5
6193: echo "${ECHO_T}no" >&6
6194: fi
1.10 paf 6195:
1.23 moko 6196: LIPO=$ac_ct_LIPO
6197: else
6198: LIPO="$ac_cv_prog_LIPO"
6199: fi
1.10 paf 6200:
1.23 moko 6201: if test -n "$ac_tool_prefix"; then
6202: # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6203: set dummy ${ac_tool_prefix}otool; ac_word=$2
6204: echo "$as_me:$LINENO: checking for $ac_word" >&5
6205: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6206: if test "${ac_cv_prog_OTOOL+set}" = set; then
6207: echo $ECHO_N "(cached) $ECHO_C" >&6
6208: else
6209: if test -n "$OTOOL"; then
6210: ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6211: else
6212: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6213: for as_dir in $PATH
6214: do
6215: IFS=$as_save_IFS
6216: test -z "$as_dir" && as_dir=.
6217: for ac_exec_ext in '' $ac_executable_extensions; do
6218: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6219: ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6220: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6221: break 2
6222: fi
6223: done
6224: done
1.10 paf 6225:
1.23 moko 6226: fi
6227: fi
6228: OTOOL=$ac_cv_prog_OTOOL
6229: if test -n "$OTOOL"; then
6230: echo "$as_me:$LINENO: result: $OTOOL" >&5
6231: echo "${ECHO_T}$OTOOL" >&6
6232: else
6233: echo "$as_me:$LINENO: result: no" >&5
6234: echo "${ECHO_T}no" >&6
6235: fi
1.10 paf 6236:
1.23 moko 6237: fi
6238: if test -z "$ac_cv_prog_OTOOL"; then
6239: ac_ct_OTOOL=$OTOOL
6240: # Extract the first word of "otool", so it can be a program name with args.
6241: set dummy otool; ac_word=$2
6242: echo "$as_me:$LINENO: checking for $ac_word" >&5
6243: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6244: if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6245: echo $ECHO_N "(cached) $ECHO_C" >&6
6246: else
6247: if test -n "$ac_ct_OTOOL"; then
6248: ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6249: else
6250: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6251: for as_dir in $PATH
6252: do
6253: IFS=$as_save_IFS
6254: test -z "$as_dir" && as_dir=.
6255: for ac_exec_ext in '' $ac_executable_extensions; do
6256: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6257: ac_cv_prog_ac_ct_OTOOL="otool"
6258: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6259: break 2
6260: fi
6261: done
6262: done
1.10 paf 6263:
1.23 moko 6264: test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
6265: fi
6266: fi
6267: ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6268: if test -n "$ac_ct_OTOOL"; then
6269: echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6270: echo "${ECHO_T}$ac_ct_OTOOL" >&6
6271: else
6272: echo "$as_me:$LINENO: result: no" >&5
6273: echo "${ECHO_T}no" >&6
6274: fi
1.10 paf 6275:
1.23 moko 6276: OTOOL=$ac_ct_OTOOL
6277: else
6278: OTOOL="$ac_cv_prog_OTOOL"
6279: fi
1.10 paf 6280:
1.23 moko 6281: if test -n "$ac_tool_prefix"; then
6282: # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6283: set dummy ${ac_tool_prefix}otool64; ac_word=$2
6284: echo "$as_me:$LINENO: checking for $ac_word" >&5
6285: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6286: if test "${ac_cv_prog_OTOOL64+set}" = set; then
6287: echo $ECHO_N "(cached) $ECHO_C" >&6
6288: else
6289: if test -n "$OTOOL64"; then
6290: ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6291: else
6292: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6293: for as_dir in $PATH
6294: do
6295: IFS=$as_save_IFS
6296: test -z "$as_dir" && as_dir=.
6297: for ac_exec_ext in '' $ac_executable_extensions; do
6298: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6299: ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6300: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6301: break 2
6302: fi
6303: done
6304: done
1.10 paf 6305:
1.23 moko 6306: fi
6307: fi
6308: OTOOL64=$ac_cv_prog_OTOOL64
6309: if test -n "$OTOOL64"; then
6310: echo "$as_me:$LINENO: result: $OTOOL64" >&5
6311: echo "${ECHO_T}$OTOOL64" >&6
6312: else
6313: echo "$as_me:$LINENO: result: no" >&5
6314: echo "${ECHO_T}no" >&6
6315: fi
1.10 paf 6316:
1.23 moko 6317: fi
6318: if test -z "$ac_cv_prog_OTOOL64"; then
6319: ac_ct_OTOOL64=$OTOOL64
6320: # Extract the first word of "otool64", so it can be a program name with args.
6321: set dummy otool64; ac_word=$2
6322: echo "$as_me:$LINENO: checking for $ac_word" >&5
6323: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6324: if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6325: echo $ECHO_N "(cached) $ECHO_C" >&6
6326: else
6327: if test -n "$ac_ct_OTOOL64"; then
6328: ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6329: else
6330: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6331: for as_dir in $PATH
6332: do
6333: IFS=$as_save_IFS
6334: test -z "$as_dir" && as_dir=.
6335: for ac_exec_ext in '' $ac_executable_extensions; do
6336: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6337: ac_cv_prog_ac_ct_OTOOL64="otool64"
6338: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6339: break 2
6340: fi
6341: done
6342: done
1.10 paf 6343:
1.23 moko 6344: test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
6345: fi
6346: fi
6347: ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6348: if test -n "$ac_ct_OTOOL64"; then
6349: echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6350: echo "${ECHO_T}$ac_ct_OTOOL64" >&6
6351: else
6352: echo "$as_me:$LINENO: result: no" >&5
6353: echo "${ECHO_T}no" >&6
6354: fi
1.10 paf 6355:
1.23 moko 6356: OTOOL64=$ac_ct_OTOOL64
6357: else
6358: OTOOL64="$ac_cv_prog_OTOOL64"
6359: fi
1.10 paf 6360:
6361:
6362:
6363:
6364:
6365:
6366:
6367:
6368:
6369:
6370:
6371:
6372:
6373:
6374:
6375:
6376:
6377:
6378:
6379:
6380:
6381:
6382:
6383:
6384:
6385:
6386:
1.23 moko 6387: echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6388: echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
6389: if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6390: echo $ECHO_N "(cached) $ECHO_C" >&6
6391: else
6392: lt_cv_apple_cc_single_mod=no
6393: if test -z "${LT_MULTI_MODULE}"; then
6394: # By default we will add the -single_module flag. You can override
6395: # by either setting the environment variable LT_MULTI_MODULE
6396: # non-empty at configure time, or by adding -multi_module to the
6397: # link flags.
6398: rm -rf libconftest.dylib*
6399: echo "int foo(void){return 1;}" > conftest.c
6400: echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6401: -dynamiclib -Wl,-single_module conftest.c" >&5
6402: $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6403: -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6404: _lt_result=$?
6405: # If there is a non-empty error log, and "single_module"
6406: # appears in it, assume the flag caused a linker warning
6407: if test -s conftest.err && $GREP single_module conftest.err; then
6408: cat conftest.err >&5
6409: # Otherwise, if the output was created with a 0 exit code from
6410: # the compiler, it worked.
6411: elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6412: lt_cv_apple_cc_single_mod=yes
6413: else
6414: cat conftest.err >&5
6415: fi
6416: rm -rf libconftest.dylib*
6417: rm -f conftest.*
6418: fi
6419: fi
6420: echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6421: echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
1.10 paf 6422:
1.23 moko 6423: echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6424: echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
6425: if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6426: echo $ECHO_N "(cached) $ECHO_C" >&6
6427: else
6428: lt_cv_ld_exported_symbols_list=no
6429: save_LDFLAGS=$LDFLAGS
6430: echo "_main" > conftest.sym
6431: LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6432: cat >conftest.$ac_ext <<_ACEOF
6433: /* confdefs.h. */
6434: _ACEOF
6435: cat confdefs.h >>conftest.$ac_ext
6436: cat >>conftest.$ac_ext <<_ACEOF
6437: /* end confdefs.h. */
1.10 paf 6438:
1.23 moko 6439: int
6440: main ()
6441: {
1.10 paf 6442:
1.23 moko 6443: ;
6444: return 0;
6445: }
6446: _ACEOF
6447: rm -f conftest.$ac_objext conftest$ac_exeext
6448: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6449: (eval $ac_link) 2>conftest.er1
6450: ac_status=$?
6451: grep -v '^ *+' conftest.er1 >conftest.err
6452: rm -f conftest.er1
6453: cat conftest.err >&5
6454: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455: (exit $ac_status); } &&
6456: { ac_try='test -z "$ac_c_werror_flag"
6457: || test ! -s conftest.err'
6458: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6459: (eval $ac_try) 2>&5
6460: ac_status=$?
6461: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6462: (exit $ac_status); }; } &&
6463: { ac_try='test -s conftest$ac_exeext'
6464: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6465: (eval $ac_try) 2>&5
6466: ac_status=$?
6467: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6468: (exit $ac_status); }; }; then
6469: lt_cv_ld_exported_symbols_list=yes
6470: else
6471: echo "$as_me: failed program was:" >&5
6472: sed 's/^/| /' conftest.$ac_ext >&5
1.10 paf 6473:
1.23 moko 6474: lt_cv_ld_exported_symbols_list=no
6475: fi
6476: rm -f conftest.err conftest.$ac_objext \
6477: conftest$ac_exeext conftest.$ac_ext
6478: LDFLAGS="$save_LDFLAGS"
1.10 paf 6479:
1.23 moko 6480: fi
6481: echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6482: echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
1.10 paf 6483:
1.23 moko 6484: echo "$as_me:$LINENO: checking for -force_load linker flag" >&5
6485: echo $ECHO_N "checking for -force_load linker flag... $ECHO_C" >&6
6486: if test "${lt_cv_ld_force_load+set}" = set; then
6487: echo $ECHO_N "(cached) $ECHO_C" >&6
6488: else
6489: lt_cv_ld_force_load=no
6490: cat > conftest.c << _LT_EOF
6491: int forced_loaded() { return 2;}
6492: _LT_EOF
6493: echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6494: $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6495: echo "$AR cru libconftest.a conftest.o" >&5
6496: $AR cru libconftest.a conftest.o 2>&5
6497: echo "$RANLIB libconftest.a" >&5
6498: $RANLIB libconftest.a 2>&5
6499: cat > conftest.c << _LT_EOF
6500: int main() { return 0;}
6501: _LT_EOF
6502: echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6503: $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6504: _lt_result=$?
6505: if test -s conftest.err && $GREP force_load conftest.err; then
6506: cat conftest.err >&5
6507: elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
6508: lt_cv_ld_force_load=yes
6509: else
6510: cat conftest.err >&5
6511: fi
6512: rm -f conftest.err libconftest.a conftest conftest.c
6513: rm -rf conftest.dSYM
1.10 paf 6514:
1.23 moko 6515: fi
6516: echo "$as_me:$LINENO: result: $lt_cv_ld_force_load" >&5
6517: echo "${ECHO_T}$lt_cv_ld_force_load" >&6
6518: case $host_os in
6519: rhapsody* | darwin1.[012])
6520: _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6521: darwin1.*)
6522: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6523: darwin*) # darwin 5.x on
6524: # if running on 10.5 or later, the deployment target defaults
6525: # to the OS version, if on x86, and 10.4, the deployment
6526: # target defaults to 10.4. Don't you love it?
6527: case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6528: 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6529: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6530: 10.[012]*)
6531: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6532: 10.*)
6533: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6534: esac
1.10 paf 6535: ;;
1.23 moko 6536: esac
6537: if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6538: _lt_dar_single_mod='$single_module'
6539: fi
6540: if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6541: _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6542: else
6543: _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
1.10 paf 6544: fi
1.23 moko 6545: if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6546: _lt_dsymutil='~$DSYMUTIL $lib || :'
1.10 paf 6547: else
1.23 moko 6548: _lt_dsymutil=
1.10 paf 6549: fi
6550: ;;
1.23 moko 6551: esac
1.10 paf 6552:
1.23 moko 6553: ac_ext=c
6554: ac_cpp='$CPP $CPPFLAGS'
6555: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6556: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6557: ac_compiler_gnu=$ac_cv_c_compiler_gnu
6558: echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6559: echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6560: # On Suns, sometimes $CPP names a directory.
6561: if test -n "$CPP" && test -d "$CPP"; then
6562: CPP=
6563: fi
6564: if test -z "$CPP"; then
6565: if test "${ac_cv_prog_CPP+set}" = set; then
6566: echo $ECHO_N "(cached) $ECHO_C" >&6
6567: else
6568: # Double quotes because CPP needs to be expanded
6569: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6570: do
6571: ac_preproc_ok=false
6572: for ac_c_preproc_warn_flag in '' yes
6573: do
6574: # Use a header file that comes with gcc, so configuring glibc
6575: # with a fresh cross-compiler works.
6576: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6577: # <limits.h> exists even on freestanding compilers.
6578: # On the NeXT, cc -E runs the code through the compiler's parser,
6579: # not just through cpp. "Syntax error" is here to catch this case.
6580: cat >conftest.$ac_ext <<_ACEOF
6581: /* confdefs.h. */
6582: _ACEOF
6583: cat confdefs.h >>conftest.$ac_ext
6584: cat >>conftest.$ac_ext <<_ACEOF
6585: /* end confdefs.h. */
6586: #ifdef __STDC__
6587: # include <limits.h>
6588: #else
6589: # include <assert.h>
6590: #endif
6591: Syntax error
6592: _ACEOF
6593: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6594: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6595: ac_status=$?
6596: grep -v '^ *+' conftest.er1 >conftest.err
6597: rm -f conftest.er1
6598: cat conftest.err >&5
6599: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6600: (exit $ac_status); } >/dev/null; then
6601: if test -s conftest.err; then
6602: ac_cpp_err=$ac_c_preproc_warn_flag
6603: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6604: else
6605: ac_cpp_err=
6606: fi
6607: else
6608: ac_cpp_err=yes
1.10 paf 6609: fi
1.23 moko 6610: if test -z "$ac_cpp_err"; then
6611: :
6612: else
6613: echo "$as_me: failed program was:" >&5
6614: sed 's/^/| /' conftest.$ac_ext >&5
1.10 paf 6615:
1.23 moko 6616: # Broken: fails on valid input.
6617: continue
6618: fi
6619: rm -f conftest.err conftest.$ac_ext
1.10 paf 6620:
1.23 moko 6621: # OK, works on sane cases. Now check whether non-existent headers
6622: # can be detected and how.
6623: cat >conftest.$ac_ext <<_ACEOF
6624: /* confdefs.h. */
6625: _ACEOF
6626: cat confdefs.h >>conftest.$ac_ext
6627: cat >>conftest.$ac_ext <<_ACEOF
6628: /* end confdefs.h. */
6629: #include <ac_nonexistent.h>
6630: _ACEOF
6631: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6632: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6633: ac_status=$?
6634: grep -v '^ *+' conftest.er1 >conftest.err
6635: rm -f conftest.er1
6636: cat conftest.err >&5
6637: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6638: (exit $ac_status); } >/dev/null; then
6639: if test -s conftest.err; then
6640: ac_cpp_err=$ac_c_preproc_warn_flag
6641: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1.10 paf 6642: else
1.23 moko 6643: ac_cpp_err=
1.10 paf 6644: fi
6645: else
1.23 moko 6646: ac_cpp_err=yes
1.10 paf 6647: fi
1.23 moko 6648: if test -z "$ac_cpp_err"; then
6649: # Broken: success on invalid input.
6650: continue
6651: else
6652: echo "$as_me: failed program was:" >&5
6653: sed 's/^/| /' conftest.$ac_ext >&5
1.10 paf 6654:
1.23 moko 6655: # Passes both tests.
6656: ac_preproc_ok=:
6657: break
1.10 paf 6658: fi
1.23 moko 6659: rm -f conftest.err conftest.$ac_ext
1.10 paf 6660:
1.23 moko 6661: done
6662: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6663: rm -f conftest.err conftest.$ac_ext
6664: if $ac_preproc_ok; then
6665: break
6666: fi
1.10 paf 6667:
1.23 moko 6668: done
6669: ac_cv_prog_CPP=$CPP
1.10 paf 6670:
1.23 moko 6671: fi
6672: CPP=$ac_cv_prog_CPP
6673: else
6674: ac_cv_prog_CPP=$CPP
6675: fi
6676: echo "$as_me:$LINENO: result: $CPP" >&5
6677: echo "${ECHO_T}$CPP" >&6
6678: ac_preproc_ok=false
6679: for ac_c_preproc_warn_flag in '' yes
6680: do
6681: # Use a header file that comes with gcc, so configuring glibc
6682: # with a fresh cross-compiler works.
6683: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6684: # <limits.h> exists even on freestanding compilers.
6685: # On the NeXT, cc -E runs the code through the compiler's parser,
6686: # not just through cpp. "Syntax error" is here to catch this case.
6687: cat >conftest.$ac_ext <<_ACEOF
6688: /* confdefs.h. */
6689: _ACEOF
6690: cat confdefs.h >>conftest.$ac_ext
6691: cat >>conftest.$ac_ext <<_ACEOF
6692: /* end confdefs.h. */
6693: #ifdef __STDC__
6694: # include <limits.h>
6695: #else
6696: # include <assert.h>
6697: #endif
6698: Syntax error
6699: _ACEOF
6700: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6701: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6702: ac_status=$?
6703: grep -v '^ *+' conftest.er1 >conftest.err
6704: rm -f conftest.er1
6705: cat conftest.err >&5
6706: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6707: (exit $ac_status); } >/dev/null; then
6708: if test -s conftest.err; then
6709: ac_cpp_err=$ac_c_preproc_warn_flag
6710: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6711: else
6712: ac_cpp_err=
6713: fi
6714: else
6715: ac_cpp_err=yes
6716: fi
6717: if test -z "$ac_cpp_err"; then
6718: :
6719: else
6720: echo "$as_me: failed program was:" >&5
6721: sed 's/^/| /' conftest.$ac_ext >&5
1.10 paf 6722:
1.23 moko 6723: # Broken: fails on valid input.
6724: continue
6725: fi
6726: rm -f conftest.err conftest.$ac_ext
1.10 paf 6727:
1.23 moko 6728: # OK, works on sane cases. Now check whether non-existent headers
6729: # can be detected and how.
6730: cat >conftest.$ac_ext <<_ACEOF
6731: /* confdefs.h. */
6732: _ACEOF
6733: cat confdefs.h >>conftest.$ac_ext
6734: cat >>conftest.$ac_ext <<_ACEOF
6735: /* end confdefs.h. */
6736: #include <ac_nonexistent.h>
6737: _ACEOF
6738: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6739: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6740: ac_status=$?
6741: grep -v '^ *+' conftest.er1 >conftest.err
6742: rm -f conftest.er1
6743: cat conftest.err >&5
6744: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6745: (exit $ac_status); } >/dev/null; then
6746: if test -s conftest.err; then
6747: ac_cpp_err=$ac_c_preproc_warn_flag
6748: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1.10 paf 6749: else
1.23 moko 6750: ac_cpp_err=
1.10 paf 6751: fi
1.23 moko 6752: else
6753: ac_cpp_err=yes
6754: fi
6755: if test -z "$ac_cpp_err"; then
6756: # Broken: success on invalid input.
6757: continue
6758: else
6759: echo "$as_me: failed program was:" >&5
6760: sed 's/^/| /' conftest.$ac_ext >&5
1.10 paf 6761:
1.23 moko 6762: # Passes both tests.
6763: ac_preproc_ok=:
6764: break
6765: fi
6766: rm -f conftest.err conftest.$ac_ext
1.10 paf 6767:
1.23 moko 6768: done
6769: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6770: rm -f conftest.err conftest.$ac_ext
6771: if $ac_preproc_ok; then
6772: :
6773: else
6774: { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6775: See \`config.log' for more details." >&5
6776: echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6777: See \`config.log' for more details." >&2;}
6778: { (exit 1); exit 1; }; }
6779: fi
1.10 paf 6780:
1.23 moko 6781: ac_ext=c
6782: ac_cpp='$CPP $CPPFLAGS'
6783: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6784: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6785: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.10 paf 6786:
6787:
1.23 moko 6788: echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6789: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6790: if test "${ac_cv_header_stdc+set}" = set; then
6791: echo $ECHO_N "(cached) $ECHO_C" >&6
6792: else
6793: cat >conftest.$ac_ext <<_ACEOF
6794: /* confdefs.h. */
6795: _ACEOF
6796: cat confdefs.h >>conftest.$ac_ext
6797: cat >>conftest.$ac_ext <<_ACEOF
6798: /* end confdefs.h. */
6799: #include <stdlib.h>
6800: #include <stdarg.h>
6801: #include <string.h>
6802: #include <float.h>
1.10 paf 6803:
1.23 moko 6804: int
6805: main ()
6806: {
1.10 paf 6807:
1.23 moko 6808: ;
6809: return 0;
6810: }
6811: _ACEOF
6812: rm -f conftest.$ac_objext
6813: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6814: (eval $ac_compile) 2>conftest.er1
6815: ac_status=$?
6816: grep -v '^ *+' conftest.er1 >conftest.err
6817: rm -f conftest.er1
6818: cat conftest.err >&5
6819: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820: (exit $ac_status); } &&
6821: { ac_try='test -z "$ac_c_werror_flag"
6822: || test ! -s conftest.err'
6823: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6824: (eval $ac_try) 2>&5
6825: ac_status=$?
6826: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827: (exit $ac_status); }; } &&
6828: { ac_try='test -s conftest.$ac_objext'
6829: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6830: (eval $ac_try) 2>&5
6831: ac_status=$?
6832: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6833: (exit $ac_status); }; }; then
6834: ac_cv_header_stdc=yes
6835: else
6836: echo "$as_me: failed program was:" >&5
6837: sed 's/^/| /' conftest.$ac_ext >&5
1.10 paf 6838:
1.23 moko 6839: ac_cv_header_stdc=no
6840: fi
6841: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.10 paf 6842:
1.23 moko 6843: if test $ac_cv_header_stdc = yes; then
6844: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6845: cat >conftest.$ac_ext <<_ACEOF
6846: /* confdefs.h. */
6847: _ACEOF
6848: cat confdefs.h >>conftest.$ac_ext
6849: cat >>conftest.$ac_ext <<_ACEOF
6850: /* end confdefs.h. */
6851: #include <string.h>
1.10 paf 6852:
1.23 moko 6853: _ACEOF
6854: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6855: $EGREP "memchr" >/dev/null 2>&1; then
6856: :
6857: else
6858: ac_cv_header_stdc=no
6859: fi
6860: rm -f conftest*
6861:
6862: fi
1.10 paf 6863:
1.23 moko 6864: if test $ac_cv_header_stdc = yes; then
6865: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6866: cat >conftest.$ac_ext <<_ACEOF
6867: /* confdefs.h. */
6868: _ACEOF
6869: cat confdefs.h >>conftest.$ac_ext
6870: cat >>conftest.$ac_ext <<_ACEOF
6871: /* end confdefs.h. */
6872: #include <stdlib.h>
1.10 paf 6873:
1.23 moko 6874: _ACEOF
6875: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6876: $EGREP "free" >/dev/null 2>&1; then
6877: :
6878: else
6879: ac_cv_header_stdc=no
6880: fi
6881: rm -f conftest*
1.10 paf 6882:
1.23 moko 6883: fi
1.10 paf 6884:
1.23 moko 6885: if test $ac_cv_header_stdc = yes; then
6886: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6887: if test "$cross_compiling" = yes; then
6888: :
6889: else
6890: cat >conftest.$ac_ext <<_ACEOF
6891: /* confdefs.h. */
6892: _ACEOF
6893: cat confdefs.h >>conftest.$ac_ext
6894: cat >>conftest.$ac_ext <<_ACEOF
6895: /* end confdefs.h. */
6896: #include <ctype.h>
6897: #if ((' ' & 0x0FF) == 0x020)
6898: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6899: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6900: #else
6901: # define ISLOWER(c) \
6902: (('a' <= (c) && (c) <= 'i') \
6903: || ('j' <= (c) && (c) <= 'r') \
6904: || ('s' <= (c) && (c) <= 'z'))
6905: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6906: #endif
1.10 paf 6907:
1.23 moko 6908: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6909: int
6910: main ()
6911: {
6912: int i;
6913: for (i = 0; i < 256; i++)
6914: if (XOR (islower (i), ISLOWER (i))
6915: || toupper (i) != TOUPPER (i))
6916: exit(2);
6917: exit (0);
6918: }
6919: _ACEOF
6920: rm -f conftest$ac_exeext
6921: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6922: (eval $ac_link) 2>&5
6923: ac_status=$?
6924: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6925: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6926: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6927: (eval $ac_try) 2>&5
6928: ac_status=$?
6929: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6930: (exit $ac_status); }; }; then
6931: :
6932: else
6933: echo "$as_me: program exited with status $ac_status" >&5
6934: echo "$as_me: failed program was:" >&5
6935: sed 's/^/| /' conftest.$ac_ext >&5
1.10 paf 6936:
1.23 moko 6937: ( exit $ac_status )
6938: ac_cv_header_stdc=no
6939: fi
6940: rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6941: fi
6942: fi
6943: fi
6944: echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6945: echo "${ECHO_T}$ac_cv_header_stdc" >&6
6946: if test $ac_cv_header_stdc = yes; then
1.10 paf 6947:
1.23 moko 6948: cat >>confdefs.h <<\_ACEOF
6949: #define STDC_HEADERS 1
6950: _ACEOF
1.10 paf 6951:
1.23 moko 6952: fi
1.10 paf 6953:
1.23 moko 6954: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
1.10 paf 6955:
6956:
6957:
6958:
6959:
6960:
6961:
6962:
6963:
1.23 moko 6964: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6965: inttypes.h stdint.h unistd.h
6966: do
6967: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6968: echo "$as_me:$LINENO: checking for $ac_header" >&5
6969: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6970: if eval "test \"\${$as_ac_Header+set}\" = set"; then
6971: echo $ECHO_N "(cached) $ECHO_C" >&6
6972: else
6973: cat >conftest.$ac_ext <<_ACEOF
6974: /* confdefs.h. */
6975: _ACEOF
6976: cat confdefs.h >>conftest.$ac_ext
6977: cat >>conftest.$ac_ext <<_ACEOF
6978: /* end confdefs.h. */
6979: $ac_includes_default
1.10 paf 6980:
1.23 moko 6981: #include <$ac_header>
6982: _ACEOF
6983: rm -f conftest.$ac_objext
6984: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6985: (eval $ac_compile) 2>conftest.er1
1.10 paf 6986: ac_status=$?
1.16 paf 6987: grep -v '^ *+' conftest.er1 >conftest.err
6988: rm -f conftest.er1
6989: cat conftest.err >&5
1.10 paf 6990: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991: (exit $ac_status); } &&
1.16 paf 6992: { ac_try='test -z "$ac_c_werror_flag"
6993: || test ! -s conftest.err'
6994: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6995: (eval $ac_try) 2>&5
6996: ac_status=$?
6997: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6998: (exit $ac_status); }; } &&
1.23 moko 6999: { ac_try='test -s conftest.$ac_objext'
1.10 paf 7000: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7001: (eval $ac_try) 2>&5
7002: ac_status=$?
7003: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7004: (exit $ac_status); }; }; then
1.23 moko 7005: eval "$as_ac_Header=yes"
1.10 paf 7006: else
7007: echo "$as_me: failed program was:" >&5
7008: sed 's/^/| /' conftest.$ac_ext >&5
7009:
1.23 moko 7010: eval "$as_ac_Header=no"
7011: fi
7012: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.10 paf 7013: fi
1.23 moko 7014: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7015: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7016: if test `eval echo '${'$as_ac_Header'}'` = yes; then
7017: cat >>confdefs.h <<_ACEOF
7018: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7019: _ACEOF
7020:
1.10 paf 7021: fi
1.23 moko 7022:
7023: done
7024:
7025:
7026:
7027: for ac_header in dlfcn.h
7028: do
7029: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7030: echo "$as_me:$LINENO: checking for $ac_header" >&5
7031: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7032: if eval "test \"\${$as_ac_Header+set}\" = set"; then
1.10 paf 7033: echo $ECHO_N "(cached) $ECHO_C" >&6
7034: else
1.23 moko 7035: cat >conftest.$ac_ext <<_ACEOF
1.10 paf 7036: /* confdefs.h. */
7037: _ACEOF
7038: cat confdefs.h >>conftest.$ac_ext
7039: cat >>conftest.$ac_ext <<_ACEOF
7040: /* end confdefs.h. */
1.23 moko 7041: $ac_includes_default
1.10 paf 7042:
1.23 moko 7043: #include <$ac_header>
1.10 paf 7044: _ACEOF
1.23 moko 7045: rm -f conftest.$ac_objext
7046: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7047: (eval $ac_compile) 2>conftest.er1
1.10 paf 7048: ac_status=$?
1.16 paf 7049: grep -v '^ *+' conftest.er1 >conftest.err
7050: rm -f conftest.er1
7051: cat conftest.err >&5
1.10 paf 7052: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7053: (exit $ac_status); } &&
1.16 paf 7054: { ac_try='test -z "$ac_c_werror_flag"
7055: || test ! -s conftest.err'
7056: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7057: (eval $ac_try) 2>&5
7058: ac_status=$?
7059: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060: (exit $ac_status); }; } &&
1.23 moko 7061: { ac_try='test -s conftest.$ac_objext'
1.10 paf 7062: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7063: (eval $ac_try) 2>&5
7064: ac_status=$?
7065: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7066: (exit $ac_status); }; }; then
1.23 moko 7067: eval "$as_ac_Header=yes"
1.10 paf 7068: else
7069: echo "$as_me: failed program was:" >&5
7070: sed 's/^/| /' conftest.$ac_ext >&5
7071:
1.23 moko 7072: eval "$as_ac_Header=no"
1.10 paf 7073: fi
1.23 moko 7074: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.10 paf 7075: fi
1.23 moko 7076: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7077: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7078: if test `eval echo '${'$as_ac_Header'}'` = yes; then
7079: cat >>confdefs.h <<_ACEOF
7080: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.10 paf 7081: _ACEOF
1.16 paf 7082:
1.23 moko 7083: fi
7084:
7085: done
7086:
1.16 paf 7087:
7088:
7089:
1.23 moko 7090: func_stripname_cnf ()
1.10 paf 7091: {
1.23 moko 7092: case ${2} in
7093: .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
7094: *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
7095: esac
7096: } # func_stripname_cnf
7097:
7098:
7099:
7100:
7101:
7102: # Set options
7103: enable_dlopen=yes
7104: enable_win32_dll=yes
1.10 paf 7105:
1.23 moko 7106: case $host in
7107: *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7108: if test -n "$ac_tool_prefix"; then
7109: # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7110: set dummy ${ac_tool_prefix}as; ac_word=$2
7111: echo "$as_me:$LINENO: checking for $ac_word" >&5
7112: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7113: if test "${ac_cv_prog_AS+set}" = set; then
7114: echo $ECHO_N "(cached) $ECHO_C" >&6
7115: else
7116: if test -n "$AS"; then
7117: ac_cv_prog_AS="$AS" # Let the user override the test.
7118: else
7119: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7120: for as_dir in $PATH
7121: do
7122: IFS=$as_save_IFS
7123: test -z "$as_dir" && as_dir=.
7124: for ac_exec_ext in '' $ac_executable_extensions; do
7125: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7126: ac_cv_prog_AS="${ac_tool_prefix}as"
7127: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7128: break 2
7129: fi
7130: done
7131: done
7132:
7133: fi
7134: fi
7135: AS=$ac_cv_prog_AS
7136: if test -n "$AS"; then
7137: echo "$as_me:$LINENO: result: $AS" >&5
7138: echo "${ECHO_T}$AS" >&6
7139: else
7140: echo "$as_me:$LINENO: result: no" >&5
7141: echo "${ECHO_T}no" >&6
7142: fi
7143:
7144: fi
7145: if test -z "$ac_cv_prog_AS"; then
7146: ac_ct_AS=$AS
7147: # Extract the first word of "as", so it can be a program name with args.
7148: set dummy as; ac_word=$2
7149: echo "$as_me:$LINENO: checking for $ac_word" >&5
7150: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7151: if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
7152: echo $ECHO_N "(cached) $ECHO_C" >&6
7153: else
7154: if test -n "$ac_ct_AS"; then
7155: ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
1.10 paf 7156: else
1.23 moko 7157: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7158: for as_dir in $PATH
7159: do
7160: IFS=$as_save_IFS
7161: test -z "$as_dir" && as_dir=.
7162: for ac_exec_ext in '' $ac_executable_extensions; do
7163: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7164: ac_cv_prog_ac_ct_AS="as"
7165: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7166: break 2
7167: fi
7168: done
7169: done
1.10 paf 7170:
1.23 moko 7171: test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
7172: fi
1.10 paf 7173: fi
1.23 moko 7174: ac_ct_AS=$ac_cv_prog_ac_ct_AS
7175: if test -n "$ac_ct_AS"; then
7176: echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
7177: echo "${ECHO_T}$ac_ct_AS" >&6
7178: else
7179: echo "$as_me:$LINENO: result: no" >&5
7180: echo "${ECHO_T}no" >&6
1.10 paf 7181: fi
1.23 moko 7182:
7183: AS=$ac_ct_AS
1.10 paf 7184: else
1.23 moko 7185: AS="$ac_cv_prog_AS"
7186: fi
7187:
7188: if test -n "$ac_tool_prefix"; then
7189: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7190: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7191: echo "$as_me:$LINENO: checking for $ac_word" >&5
7192: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7193: if test "${ac_cv_prog_DLLTOOL+set}" = set; then
1.10 paf 7194: echo $ECHO_N "(cached) $ECHO_C" >&6
7195: else
1.23 moko 7196: if test -n "$DLLTOOL"; then
7197: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
1.10 paf 7198: else
1.23 moko 7199: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7200: for as_dir in $PATH
7201: do
7202: IFS=$as_save_IFS
7203: test -z "$as_dir" && as_dir=.
7204: for ac_exec_ext in '' $ac_executable_extensions; do
7205: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7206: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7207: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7208: break 2
7209: fi
7210: done
7211: done
1.10 paf 7212:
7213: fi
7214: fi
1.23 moko 7215: DLLTOOL=$ac_cv_prog_DLLTOOL
7216: if test -n "$DLLTOOL"; then
7217: echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7218: echo "${ECHO_T}$DLLTOOL" >&6
1.10 paf 7219: else
1.23 moko 7220: echo "$as_me:$LINENO: result: no" >&5
7221: echo "${ECHO_T}no" >&6
7222: fi
7223:
7224: fi
7225: if test -z "$ac_cv_prog_DLLTOOL"; then
7226: ac_ct_DLLTOOL=$DLLTOOL
7227: # Extract the first word of "dlltool", so it can be a program name with args.
7228: set dummy dlltool; ac_word=$2
7229: echo "$as_me:$LINENO: checking for $ac_word" >&5
7230: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7231: if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
1.10 paf 7232: echo $ECHO_N "(cached) $ECHO_C" >&6
7233: else
1.23 moko 7234: if test -n "$ac_ct_DLLTOOL"; then
7235: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
1.10 paf 7236: else
1.23 moko 7237: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7238: for as_dir in $PATH
7239: do
7240: IFS=$as_save_IFS
7241: test -z "$as_dir" && as_dir=.
7242: for ac_exec_ext in '' $ac_executable_extensions; do
7243: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7244: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7245: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7246: break 2
7247: fi
7248: done
7249: done
1.10 paf 7250:
1.23 moko 7251: test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
7252: fi
1.10 paf 7253: fi
1.23 moko 7254: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7255: if test -n "$ac_ct_DLLTOOL"; then
7256: echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
7257: echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
7258: else
7259: echo "$as_me:$LINENO: result: no" >&5
7260: echo "${ECHO_T}no" >&6
1.10 paf 7261: fi
1.23 moko 7262:
7263: DLLTOOL=$ac_ct_DLLTOOL
1.10 paf 7264: else
1.23 moko 7265: DLLTOOL="$ac_cv_prog_DLLTOOL"
7266: fi
7267:
7268: if test -n "$ac_tool_prefix"; then
7269: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7270: set dummy ${ac_tool_prefix}objdump; ac_word=$2
7271: echo "$as_me:$LINENO: checking for $ac_word" >&5
7272: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7273: if test "${ac_cv_prog_OBJDUMP+set}" = set; then
1.10 paf 7274: echo $ECHO_N "(cached) $ECHO_C" >&6
7275: else
1.23 moko 7276: if test -n "$OBJDUMP"; then
7277: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7278: else
7279: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7280: for as_dir in $PATH
7281: do
7282: IFS=$as_save_IFS
7283: test -z "$as_dir" && as_dir=.
7284: for ac_exec_ext in '' $ac_executable_extensions; do
7285: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7286: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7287: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7288: break 2
7289: fi
7290: done
7291: done
7292:
7293: fi
7294: fi
7295: OBJDUMP=$ac_cv_prog_OBJDUMP
7296: if test -n "$OBJDUMP"; then
7297: echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7298: echo "${ECHO_T}$OBJDUMP" >&6
7299: else
7300: echo "$as_me:$LINENO: result: no" >&5
7301: echo "${ECHO_T}no" >&6
7302: fi
1.10 paf 7303:
1.23 moko 7304: fi
7305: if test -z "$ac_cv_prog_OBJDUMP"; then
7306: ac_ct_OBJDUMP=$OBJDUMP
7307: # Extract the first word of "objdump", so it can be a program name with args.
7308: set dummy objdump; ac_word=$2
7309: echo "$as_me:$LINENO: checking for $ac_word" >&5
7310: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7311: if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
7312: echo $ECHO_N "(cached) $ECHO_C" >&6
7313: else
7314: if test -n "$ac_ct_OBJDUMP"; then
7315: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
1.10 paf 7316: else
1.23 moko 7317: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7318: for as_dir in $PATH
7319: do
7320: IFS=$as_save_IFS
7321: test -z "$as_dir" && as_dir=.
7322: for ac_exec_ext in '' $ac_executable_extensions; do
7323: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7324: ac_cv_prog_ac_ct_OBJDUMP="objdump"
7325: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7326: break 2
7327: fi
7328: done
7329: done
1.10 paf 7330:
1.23 moko 7331: test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
7332: fi
1.10 paf 7333: fi
1.23 moko 7334: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7335: if test -n "$ac_ct_OBJDUMP"; then
7336: echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
7337: echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
7338: else
7339: echo "$as_me:$LINENO: result: no" >&5
7340: echo "${ECHO_T}no" >&6
1.10 paf 7341: fi
1.23 moko 7342:
7343: OBJDUMP=$ac_ct_OBJDUMP
7344: else
7345: OBJDUMP="$ac_cv_prog_OBJDUMP"
1.10 paf 7346: fi
7347:
1.23 moko 7348: ;;
7349: esac
7350:
7351: test -z "$AS" && AS=as
7352:
7353:
7354:
7355:
1.10 paf 7356:
1.23 moko 7357: test -z "$DLLTOOL" && DLLTOOL=dlltool
1.10 paf 7358:
7359:
7360:
7361:
7362:
1.23 moko 7363: test -z "$OBJDUMP" && OBJDUMP=objdump
1.10 paf 7364:
7365:
7366:
7367:
7368:
7369:
7370:
7371:
7372:
1.23 moko 7373: # Check whether --enable-shared or --disable-shared was given.
7374: if test "${enable_shared+set}" = set; then
7375: enableval="$enable_shared"
7376: p=${PACKAGE-default}
7377: case $enableval in
7378: yes) enable_shared=yes ;;
7379: no) enable_shared=no ;;
7380: *)
7381: enable_shared=no
7382: # Look at the argument we got. We use all the common list separators.
7383: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7384: for pkg in $enableval; do
7385: IFS="$lt_save_ifs"
7386: if test "X$pkg" = "X$p"; then
7387: enable_shared=yes
7388: fi
7389: done
7390: IFS="$lt_save_ifs"
7391: ;;
7392: esac
1.10 paf 7393: else
1.23 moko 7394: enable_shared=yes
7395: fi;
1.10 paf 7396:
7397:
7398:
7399:
7400:
7401:
7402:
7403:
1.23 moko 7404: # Check whether --enable-static or --disable-static was given.
7405: if test "${enable_static+set}" = set; then
7406: enableval="$enable_static"
7407: p=${PACKAGE-default}
7408: case $enableval in
7409: yes) enable_static=yes ;;
7410: no) enable_static=no ;;
7411: *)
7412: enable_static=no
7413: # Look at the argument we got. We use all the common list separators.
7414: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7415: for pkg in $enableval; do
7416: IFS="$lt_save_ifs"
7417: if test "X$pkg" = "X$p"; then
7418: enable_static=yes
7419: fi
7420: done
7421: IFS="$lt_save_ifs"
7422: ;;
1.10 paf 7423: esac
1.23 moko 7424: else
7425: enable_static=yes
7426: fi;
1.10 paf 7427:
7428:
7429:
7430:
7431:
7432:
7433:
7434:
7435:
1.23 moko 7436: # Check whether --with-pic or --without-pic was given.
7437: if test "${with_pic+set}" = set; then
7438: withval="$with_pic"
7439: lt_p=${PACKAGE-default}
7440: case $withval in
7441: yes|no) pic_mode=$withval ;;
7442: *)
7443: pic_mode=default
7444: # Look at the argument we got. We use all the common list separators.
7445: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7446: for lt_pkg in $withval; do
7447: IFS="$lt_save_ifs"
7448: if test "X$lt_pkg" = "X$lt_p"; then
7449: pic_mode=yes
7450: fi
7451: done
7452: IFS="$lt_save_ifs"
7453: ;;
1.10 paf 7454: esac
1.23 moko 7455: else
7456: pic_mode=default
7457: fi;
1.10 paf 7458:
1.23 moko 7459: test -z "$pic_mode" && pic_mode=default
1.10 paf 7460:
7461:
7462:
7463:
7464:
7465:
7466:
1.23 moko 7467: # Check whether --enable-fast-install or --disable-fast-install was given.
7468: if test "${enable_fast_install+set}" = set; then
7469: enableval="$enable_fast_install"
7470: p=${PACKAGE-default}
7471: case $enableval in
7472: yes) enable_fast_install=yes ;;
7473: no) enable_fast_install=no ;;
1.10 paf 7474: *)
1.23 moko 7475: enable_fast_install=no
7476: # Look at the argument we got. We use all the common list separators.
7477: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7478: for pkg in $enableval; do
7479: IFS="$lt_save_ifs"
7480: if test "X$pkg" = "X$p"; then
7481: enable_fast_install=yes
7482: fi
7483: done
7484: IFS="$lt_save_ifs"
1.10 paf 7485: ;;
7486: esac
1.23 moko 7487: else
7488: enable_fast_install=yes
7489: fi;
1.10 paf 7490:
7491:
7492:
7493:
7494:
7495:
7496:
7497:
7498:
7499:
1.23 moko 7500: # This can be used to rebuild libtool when needed
7501: LIBTOOL_DEPS="$ltmain"
1.10 paf 7502:
1.23 moko 7503: # Always use our own libtool.
7504: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1.10 paf 7505:
7506:
7507:
7508:
7509:
7510:
7511:
7512:
7513:
7514:
7515:
7516:
7517:
7518:
7519:
7520:
7521:
7522:
7523:
7524:
7525:
7526:
7527:
7528:
7529:
7530:
7531:
7532:
7533:
7534:
1.23 moko 7535: test -z "$LN_S" && LN_S="ln -s"
1.10 paf 7536:
7537:
7538:
7539:
7540:
7541:
7542:
7543:
7544:
7545:
7546:
7547:
7548:
7549:
1.23 moko 7550: if test -n "${ZSH_VERSION+set}" ; then
7551: setopt NO_GLOB_SUBST
7552: fi
1.10 paf 7553:
1.23 moko 7554: echo "$as_me:$LINENO: checking for objdir" >&5
7555: echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7556: if test "${lt_cv_objdir+set}" = set; then
7557: echo $ECHO_N "(cached) $ECHO_C" >&6
7558: else
7559: rm -f .libs 2>/dev/null
7560: mkdir .libs 2>/dev/null
7561: if test -d .libs; then
7562: lt_cv_objdir=.libs
7563: else
7564: # MS-DOS does not allow filenames that begin with a dot.
7565: lt_cv_objdir=_libs
7566: fi
7567: rmdir .libs 2>/dev/null
7568: fi
7569: echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7570: echo "${ECHO_T}$lt_cv_objdir" >&6
7571: objdir=$lt_cv_objdir
1.10 paf 7572:
7573:
7574:
7575:
7576:
1.23 moko 7577: cat >>confdefs.h <<_ACEOF
7578: #define LT_OBJDIR "$lt_cv_objdir/"
7579: _ACEOF
1.10 paf 7580:
7581:
7582:
7583:
1.23 moko 7584: case $host_os in
7585: aix3*)
7586: # AIX sometimes has problems with the GCC collect2 program. For some
7587: # reason, if we set the COLLECT_NAMES environment variable, the problems
7588: # vanish in a puff of smoke.
7589: if test "X${COLLECT_NAMES+set}" != Xset; then
7590: COLLECT_NAMES=
7591: export COLLECT_NAMES
7592: fi
7593: ;;
7594: esac
1.10 paf 7595:
1.23 moko 7596: # Global variables:
7597: ofile=libtool
7598: can_build_shared=yes
1.10 paf 7599:
1.23 moko 7600: # All known linkers require a `.a' archive for static linking (except MSVC,
7601: # which needs '.lib').
7602: libext=a
1.10 paf 7603:
1.23 moko 7604: with_gnu_ld="$lt_cv_prog_gnu_ld"
1.10 paf 7605:
1.23 moko 7606: old_CC="$CC"
7607: old_CFLAGS="$CFLAGS"
1.10 paf 7608:
1.23 moko 7609: # Set sane defaults for various variables
7610: test -z "$CC" && CC=cc
7611: test -z "$LTCC" && LTCC=$CC
7612: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7613: test -z "$LD" && LD=ld
7614: test -z "$ac_objext" && ac_objext=o
1.10 paf 7615:
1.23 moko 7616: for cc_temp in $compiler""; do
7617: case $cc_temp in
7618: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7619: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7620: \-*) ;;
7621: *) break;;
7622: esac
7623: done
7624: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
1.10 paf 7625:
7626:
1.23 moko 7627: # Only perform the check for file, if the check method requires it
7628: test -z "$MAGIC_CMD" && MAGIC_CMD=file
7629: case $deplibs_check_method in
7630: file_magic*)
7631: if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7632: echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7633: echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7634: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7635: echo $ECHO_N "(cached) $ECHO_C" >&6
7636: else
7637: case $MAGIC_CMD in
7638: [\\/*] | ?:[\\/]*)
7639: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7640: ;;
7641: *)
7642: lt_save_MAGIC_CMD="$MAGIC_CMD"
7643: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7644: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7645: for ac_dir in $ac_dummy; do
7646: IFS="$lt_save_ifs"
7647: test -z "$ac_dir" && ac_dir=.
7648: if test -f $ac_dir/${ac_tool_prefix}file; then
7649: lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7650: if test -n "$file_magic_test_file"; then
7651: case $deplibs_check_method in
7652: "file_magic "*)
7653: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7654: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7655: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7656: $EGREP "$file_magic_regex" > /dev/null; then
7657: :
7658: else
7659: cat <<_LT_EOF 1>&2
1.10 paf 7660:
1.23 moko 7661: *** Warning: the command libtool uses to detect shared libraries,
7662: *** $file_magic_cmd, produces output that libtool cannot recognize.
7663: *** The result is that libtool may fail to recognize shared libraries
7664: *** as such. This will affect the creation of libtool libraries that
7665: *** depend on shared libraries, but programs linked with such libtool
7666: *** libraries will work regardless of this problem. Nevertheless, you
7667: *** may want to report the problem to your system manager and/or to
7668: *** bug-libtool@gnu.org
1.10 paf 7669:
1.23 moko 7670: _LT_EOF
7671: fi ;;
7672: esac
7673: fi
7674: break
7675: fi
7676: done
7677: IFS="$lt_save_ifs"
7678: MAGIC_CMD="$lt_save_MAGIC_CMD"
7679: ;;
7680: esac
7681: fi
1.10 paf 7682:
1.23 moko 7683: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7684: if test -n "$MAGIC_CMD"; then
7685: echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7686: echo "${ECHO_T}$MAGIC_CMD" >&6
7687: else
7688: echo "$as_me:$LINENO: result: no" >&5
7689: echo "${ECHO_T}no" >&6
7690: fi
1.10 paf 7691:
7692:
7693:
7694:
7695:
1.23 moko 7696: if test -z "$lt_cv_path_MAGIC_CMD"; then
7697: if test -n "$ac_tool_prefix"; then
7698: echo "$as_me:$LINENO: checking for file" >&5
7699: echo $ECHO_N "checking for file... $ECHO_C" >&6
7700: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7701: echo $ECHO_N "(cached) $ECHO_C" >&6
7702: else
7703: case $MAGIC_CMD in
7704: [\\/*] | ?:[\\/]*)
7705: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7706: ;;
7707: *)
7708: lt_save_MAGIC_CMD="$MAGIC_CMD"
7709: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7710: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7711: for ac_dir in $ac_dummy; do
7712: IFS="$lt_save_ifs"
7713: test -z "$ac_dir" && ac_dir=.
7714: if test -f $ac_dir/file; then
7715: lt_cv_path_MAGIC_CMD="$ac_dir/file"
7716: if test -n "$file_magic_test_file"; then
7717: case $deplibs_check_method in
7718: "file_magic "*)
7719: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7720: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7721: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7722: $EGREP "$file_magic_regex" > /dev/null; then
7723: :
7724: else
7725: cat <<_LT_EOF 1>&2
1.10 paf 7726:
1.23 moko 7727: *** Warning: the command libtool uses to detect shared libraries,
7728: *** $file_magic_cmd, produces output that libtool cannot recognize.
7729: *** The result is that libtool may fail to recognize shared libraries
7730: *** as such. This will affect the creation of libtool libraries that
7731: *** depend on shared libraries, but programs linked with such libtool
7732: *** libraries will work regardless of this problem. Nevertheless, you
7733: *** may want to report the problem to your system manager and/or to
7734: *** bug-libtool@gnu.org
1.10 paf 7735:
1.23 moko 7736: _LT_EOF
7737: fi ;;
7738: esac
7739: fi
7740: break
7741: fi
7742: done
7743: IFS="$lt_save_ifs"
7744: MAGIC_CMD="$lt_save_MAGIC_CMD"
7745: ;;
7746: esac
7747: fi
1.10 paf 7748:
1.23 moko 7749: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7750: if test -n "$MAGIC_CMD"; then
7751: echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7752: echo "${ECHO_T}$MAGIC_CMD" >&6
7753: else
7754: echo "$as_me:$LINENO: result: no" >&5
7755: echo "${ECHO_T}no" >&6
1.10 paf 7756: fi
7757:
7758:
1.23 moko 7759: else
7760: MAGIC_CMD=:
7761: fi
1.10 paf 7762: fi
7763:
1.23 moko 7764: fi
7765: ;;
7766: esac
1.10 paf 7767:
1.23 moko 7768: # Use C for the default configuration in the libtool script
1.10 paf 7769:
1.23 moko 7770: lt_save_CC="$CC"
7771: ac_ext=c
7772: ac_cpp='$CPP $CPPFLAGS'
7773: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7774: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7775: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.10 paf 7776:
7777:
1.23 moko 7778: # Source file extension for C test sources.
7779: ac_ext=c
1.10 paf 7780:
1.23 moko 7781: # Object file extension for compiled C test sources.
7782: objext=o
7783: objext=$objext
1.10 paf 7784:
1.23 moko 7785: # Code to be used in simple compile tests
7786: lt_simple_compile_test_code="int some_variable = 0;"
1.10 paf 7787:
1.23 moko 7788: # Code to be used in simple link tests
7789: lt_simple_link_test_code='int main(){return(0);}'
1.10 paf 7790:
7791:
7792:
7793:
7794:
7795:
7796:
1.23 moko 7797: # If no C compiler was specified, use CC.
7798: LTCC=${LTCC-"$CC"}
1.10 paf 7799:
1.23 moko 7800: # If no C compiler flags were specified, use CFLAGS.
7801: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1.10 paf 7802:
1.23 moko 7803: # Allow CC to be a program name with arguments.
7804: compiler=$CC
1.10 paf 7805:
1.23 moko 7806: # Save the default compiler, since it gets overwritten when the other
7807: # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7808: compiler_DEFAULT=$CC
7809:
7810: # save warnings/boilerplate of simple test code
7811: ac_outfile=conftest.$ac_objext
7812: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7813: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7814: _lt_compiler_boilerplate=`cat conftest.err`
7815: $RM conftest*
7816:
7817: ac_outfile=conftest.$ac_objext
7818: echo "$lt_simple_link_test_code" >conftest.$ac_ext
7819: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7820: _lt_linker_boilerplate=`cat conftest.err`
7821: $RM -r conftest*
7822:
7823:
7824: ## CAVEAT EMPTOR:
7825: ## There is no encapsulation within the following macros, do not change
7826: ## the running order or otherwise move them around unless you know exactly
7827: ## what you are doing...
7828: if test -n "$compiler"; then
1.10 paf 7829:
1.23 moko 7830: lt_prog_compiler_no_builtin_flag=
1.13 paf 7831:
1.23 moko 7832: if test "$GCC" = yes; then
7833: case $cc_basename in
7834: nvcc*)
7835: lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7836: *)
7837: lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7838: esac
1.10 paf 7839:
1.23 moko 7840: echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7841: echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7842: if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
1.10 paf 7843: echo $ECHO_N "(cached) $ECHO_C" >&6
7844: else
1.23 moko 7845: lt_cv_prog_compiler_rtti_exceptions=no
7846: ac_outfile=conftest.$ac_objext
7847: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7848: lt_compiler_flag="-fno-rtti -fno-exceptions"
7849: # Insert the option either (1) after the last *FLAGS variable, or
7850: # (2) before a word containing "conftest.", or (3) at the end.
7851: # Note that $ac_compile itself does not contain backslashes and begins
7852: # with a dollar sign (not a hyphen), so the echo should work correctly.
7853: # The option is referenced via a variable to avoid confusing sed.
7854: lt_compile=`echo "$ac_compile" | $SED \
7855: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7856: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7857: -e 's:$: $lt_compiler_flag:'`
7858: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7859: (eval "$lt_compile" 2>conftest.err)
7860: ac_status=$?
7861: cat conftest.err >&5
7862: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7863: if (exit $ac_status) && test -s "$ac_outfile"; then
7864: # The compiler can only warn and ignore the option if not recognized
7865: # So say no if there are warnings other than the usual output.
7866: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7867: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7868: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7869: lt_cv_prog_compiler_rtti_exceptions=yes
7870: fi
7871: fi
7872: $RM conftest*
1.10 paf 7873:
7874: fi
1.23 moko 7875: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7876: echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
1.10 paf 7877:
1.23 moko 7878: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7879: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
1.10 paf 7880: else
1.23 moko 7881: :
1.10 paf 7882: fi
7883:
7884: fi
7885:
1.23 moko 7886:
7887:
7888:
7889:
7890:
7891: lt_prog_compiler_wl=
7892: lt_prog_compiler_pic=
7893: lt_prog_compiler_static=
7894:
7895:
7896: if test "$GCC" = yes; then
7897: lt_prog_compiler_wl='-Wl,'
7898: lt_prog_compiler_static='-static'
7899:
7900: case $host_os in
7901: aix*)
7902: # All AIX code is PIC.
7903: if test "$host_cpu" = ia64; then
7904: # AIX 5 now supports IA64 processor
7905: lt_prog_compiler_static='-Bstatic'
7906: fi
7907: ;;
7908:
7909: amigaos*)
7910: case $host_cpu in
7911: powerpc)
7912: # see comment about AmigaOS4 .so support
7913: lt_prog_compiler_pic='-fPIC'
7914: ;;
7915: m68k)
7916: # FIXME: we need at least 68020 code to build shared libraries, but
7917: # adding the `-m68020' flag to GCC prevents building anything better,
7918: # like `-m68040'.
7919: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7920: ;;
7921: esac
7922: ;;
7923:
7924: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7925: # PIC is the default for these OSes.
7926: ;;
7927:
7928: mingw* | cygwin* | pw32* | os2* | cegcc*)
7929: # This hack is so that the source file can tell whether it is being
7930: # built for inclusion in a dll (and should export symbols for example).
7931: # Although the cygwin gcc ignores -fPIC, still need this for old-style
7932: # (--disable-auto-import) libraries
7933: lt_prog_compiler_pic='-DDLL_EXPORT'
7934: ;;
7935:
7936: darwin* | rhapsody*)
7937: # PIC is the default on this platform
7938: # Common symbols not allowed in MH_DYLIB files
7939: lt_prog_compiler_pic='-fno-common'
7940: ;;
7941:
7942: haiku*)
7943: # PIC is the default for Haiku.
7944: # The "-static" flag exists, but is broken.
7945: lt_prog_compiler_static=
7946: ;;
7947:
7948: hpux*)
7949: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7950: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7951: # sets the default TLS model and affects inlining.
7952: case $host_cpu in
7953: hppa*64*)
7954: # +Z the default
7955: ;;
7956: *)
7957: lt_prog_compiler_pic='-fPIC'
7958: ;;
7959: esac
7960: ;;
7961:
7962: interix[3-9]*)
7963: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7964: # Instead, we relocate shared libraries at runtime.
7965: ;;
7966:
7967: msdosdjgpp*)
7968: # Just because we use GCC doesn't mean we suddenly get shared libraries
7969: # on systems that don't support them.
7970: lt_prog_compiler_can_build_shared=no
7971: enable_shared=no
7972: ;;
7973:
7974: *nto* | *qnx*)
7975: # QNX uses GNU C++, but need to define -shared option too, otherwise
7976: # it will coredump.
7977: lt_prog_compiler_pic='-fPIC -shared'
7978: ;;
7979:
7980: sysv4*MP*)
7981: if test -d /usr/nec; then
7982: lt_prog_compiler_pic=-Kconform_pic
7983: fi
7984: ;;
7985:
7986: *)
7987: lt_prog_compiler_pic='-fPIC'
7988: ;;
7989: esac
7990:
7991: case $cc_basename in
7992: nvcc*) # Cuda Compiler Driver 2.2
7993: lt_prog_compiler_wl='-Xlinker '
7994: if test -n "$lt_prog_compiler_pic"; then
7995: lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7996: fi
7997: ;;
7998: esac
7999: else
8000: # PORTME Check for flag to pass linker flags through the system compiler.
8001: case $host_os in
8002: aix*)
8003: lt_prog_compiler_wl='-Wl,'
8004: if test "$host_cpu" = ia64; then
8005: # AIX 5 now supports IA64 processor
8006: lt_prog_compiler_static='-Bstatic'
8007: else
8008: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8009: fi
8010: ;;
8011:
8012: mingw* | cygwin* | pw32* | os2* | cegcc*)
8013: # This hack is so that the source file can tell whether it is being
8014: # built for inclusion in a dll (and should export symbols for example).
8015: lt_prog_compiler_pic='-DDLL_EXPORT'
8016: ;;
8017:
8018: hpux9* | hpux10* | hpux11*)
8019: lt_prog_compiler_wl='-Wl,'
8020: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8021: # not for PA HP-UX.
8022: case $host_cpu in
8023: hppa*64*|ia64*)
8024: # +Z the default
8025: ;;
8026: *)
8027: lt_prog_compiler_pic='+Z'
8028: ;;
8029: esac
8030: # Is there a better lt_prog_compiler_static that works with the bundled CC?
8031: lt_prog_compiler_static='${wl}-a ${wl}archive'
8032: ;;
8033:
8034: irix5* | irix6* | nonstopux*)
8035: lt_prog_compiler_wl='-Wl,'
8036: # PIC (with -KPIC) is the default.
8037: lt_prog_compiler_static='-non_shared'
8038: ;;
8039:
8040: linux* | k*bsd*-gnu | kopensolaris*-gnu)
8041: case $cc_basename in
8042: # old Intel for x86_64 which still supported -KPIC.
8043: ecc*)
8044: lt_prog_compiler_wl='-Wl,'
8045: lt_prog_compiler_pic='-KPIC'
8046: lt_prog_compiler_static='-static'
8047: ;;
8048: # icc used to be incompatible with GCC.
8049: # ICC 10 doesn't accept -KPIC any more.
8050: icc* | ifort*)
8051: lt_prog_compiler_wl='-Wl,'
8052: lt_prog_compiler_pic='-fPIC'
8053: lt_prog_compiler_static='-static'
8054: ;;
8055: # Lahey Fortran 8.1.
8056: lf95*)
8057: lt_prog_compiler_wl='-Wl,'
8058: lt_prog_compiler_pic='--shared'
8059: lt_prog_compiler_static='--static'
8060: ;;
8061: nagfor*)
8062: # NAG Fortran compiler
8063: lt_prog_compiler_wl='-Wl,-Wl,,'
8064: lt_prog_compiler_pic='-PIC'
8065: lt_prog_compiler_static='-Bstatic'
8066: ;;
8067: pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8068: # Portland Group compilers (*not* the Pentium gcc compiler,
8069: # which looks to be a dead project)
8070: lt_prog_compiler_wl='-Wl,'
8071: lt_prog_compiler_pic='-fpic'
8072: lt_prog_compiler_static='-Bstatic'
8073: ;;
8074: ccc*)
8075: lt_prog_compiler_wl='-Wl,'
8076: # All Alpha code is PIC.
8077: lt_prog_compiler_static='-non_shared'
8078: ;;
8079: xl* | bgxl* | bgf* | mpixl*)
8080: # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8081: lt_prog_compiler_wl='-Wl,'
8082: lt_prog_compiler_pic='-qpic'
8083: lt_prog_compiler_static='-qstaticlink'
8084: ;;
8085: *)
8086: case `$CC -V 2>&1 | sed 5q` in
8087: *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8088: # Sun Fortran 8.3 passes all unrecognized flags to the linker
8089: lt_prog_compiler_pic='-KPIC'
8090: lt_prog_compiler_static='-Bstatic'
8091: lt_prog_compiler_wl=''
8092: ;;
8093: *Sun\ F* | *Sun*Fortran*)
8094: lt_prog_compiler_pic='-KPIC'
8095: lt_prog_compiler_static='-Bstatic'
8096: lt_prog_compiler_wl='-Qoption ld '
8097: ;;
8098: *Sun\ C*)
8099: # Sun C 5.9
8100: lt_prog_compiler_pic='-KPIC'
8101: lt_prog_compiler_static='-Bstatic'
8102: lt_prog_compiler_wl='-Wl,'
8103: ;;
8104: *Intel*\ [CF]*Compiler*)
8105: lt_prog_compiler_wl='-Wl,'
8106: lt_prog_compiler_pic='-fPIC'
8107: lt_prog_compiler_static='-static'
8108: ;;
8109: *Portland\ Group*)
8110: lt_prog_compiler_wl='-Wl,'
8111: lt_prog_compiler_pic='-fpic'
8112: lt_prog_compiler_static='-Bstatic'
8113: ;;
8114: esac
8115: ;;
8116: esac
8117: ;;
8118:
8119: newsos6)
8120: lt_prog_compiler_pic='-KPIC'
8121: lt_prog_compiler_static='-Bstatic'
8122: ;;
8123:
8124: *nto* | *qnx*)
8125: # QNX uses GNU C++, but need to define -shared option too, otherwise
8126: # it will coredump.
8127: lt_prog_compiler_pic='-fPIC -shared'
8128: ;;
8129:
8130: osf3* | osf4* | osf5*)
8131: lt_prog_compiler_wl='-Wl,'
8132: # All OSF/1 code is PIC.
8133: lt_prog_compiler_static='-non_shared'
8134: ;;
8135:
8136: rdos*)
8137: lt_prog_compiler_static='-non_shared'
8138: ;;
8139:
8140: solaris*)
8141: lt_prog_compiler_pic='-KPIC'
8142: lt_prog_compiler_static='-Bstatic'
8143: case $cc_basename in
8144: f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8145: lt_prog_compiler_wl='-Qoption ld ';;
8146: *)
8147: lt_prog_compiler_wl='-Wl,';;
8148: esac
8149: ;;
8150:
8151: sunos4*)
8152: lt_prog_compiler_wl='-Qoption ld '
8153: lt_prog_compiler_pic='-PIC'
8154: lt_prog_compiler_static='-Bstatic'
8155: ;;
8156:
8157: sysv4 | sysv4.2uw2* | sysv4.3*)
8158: lt_prog_compiler_wl='-Wl,'
8159: lt_prog_compiler_pic='-KPIC'
8160: lt_prog_compiler_static='-Bstatic'
8161: ;;
8162:
8163: sysv4*MP*)
8164: if test -d /usr/nec ;then
8165: lt_prog_compiler_pic='-Kconform_pic'
8166: lt_prog_compiler_static='-Bstatic'
8167: fi
8168: ;;
8169:
8170: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8171: lt_prog_compiler_wl='-Wl,'
8172: lt_prog_compiler_pic='-KPIC'
8173: lt_prog_compiler_static='-Bstatic'
8174: ;;
8175:
8176: unicos*)
8177: lt_prog_compiler_wl='-Wl,'
8178: lt_prog_compiler_can_build_shared=no
8179: ;;
8180:
8181: uts4*)
8182: lt_prog_compiler_pic='-pic'
8183: lt_prog_compiler_static='-Bstatic'
8184: ;;
8185:
8186: *)
8187: lt_prog_compiler_can_build_shared=no
8188: ;;
8189: esac
8190: fi
8191:
8192: case $host_os in
8193: # For platforms which do not support PIC, -DPIC is meaningless:
8194: *djgpp*)
8195: lt_prog_compiler_pic=
1.10 paf 8196: ;;
1.23 moko 8197: *)
8198: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
1.10 paf 8199: ;;
8200: esac
1.23 moko 8201:
8202: echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8203: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8204: if test "${lt_cv_prog_compiler_pic+set}" = set; then
8205: echo $ECHO_N "(cached) $ECHO_C" >&6
8206: else
8207: lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8208: fi
8209: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic" >&5
8210: echo "${ECHO_T}$lt_cv_prog_compiler_pic" >&6
8211: lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8212:
8213: #
8214: # Check to make sure the PIC flag actually works.
8215: #
8216: if test -n "$lt_prog_compiler_pic"; then
8217: echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8218: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8219: if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
1.10 paf 8220: echo $ECHO_N "(cached) $ECHO_C" >&6
8221: else
1.23 moko 8222: lt_cv_prog_compiler_pic_works=no
8223: ac_outfile=conftest.$ac_objext
8224: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8225: lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8226: # Insert the option either (1) after the last *FLAGS variable, or
8227: # (2) before a word containing "conftest.", or (3) at the end.
8228: # Note that $ac_compile itself does not contain backslashes and begins
8229: # with a dollar sign (not a hyphen), so the echo should work correctly.
8230: # The option is referenced via a variable to avoid confusing sed.
8231: lt_compile=`echo "$ac_compile" | $SED \
8232: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8233: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8234: -e 's:$: $lt_compiler_flag:'`
8235: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8236: (eval "$lt_compile" 2>conftest.err)
8237: ac_status=$?
8238: cat conftest.err >&5
8239: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8240: if (exit $ac_status) && test -s "$ac_outfile"; then
8241: # The compiler can only warn and ignore the option if not recognized
8242: # So say no if there are warnings other than the usual output.
8243: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8244: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8245: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8246: lt_cv_prog_compiler_pic_works=yes
8247: fi
8248: fi
8249: $RM conftest*
8250:
1.1 parser 8251: fi
1.23 moko 8252: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8253: echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
1.10 paf 8254:
1.23 moko 8255: if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8256: case $lt_prog_compiler_pic in
8257: "" | " "*) ;;
8258: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8259: esac
8260: else
8261: lt_prog_compiler_pic=
8262: lt_prog_compiler_can_build_shared=no
1.1 parser 8263: fi
8264:
8265: fi
8266:
1.10 paf 8267:
1.1 parser 8268:
8269:
1.10 paf 8270:
1.1 parser 8271:
8272:
8273:
8274:
8275:
8276:
1.23 moko 8277: #
8278: # Check to make sure the static flag actually works.
8279: #
8280: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8281: echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8282: echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8283: if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8284: echo $ECHO_N "(cached) $ECHO_C" >&6
8285: else
8286: lt_cv_prog_compiler_static_works=no
8287: save_LDFLAGS="$LDFLAGS"
8288: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8289: echo "$lt_simple_link_test_code" > conftest.$ac_ext
8290: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8291: # The linker can only warn and ignore the option if not recognized
8292: # So say no if there are warnings
8293: if test -s conftest.err; then
8294: # Append any errors to the config.log.
8295: cat conftest.err 1>&5
8296: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8297: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8298: if diff conftest.exp conftest.er2 >/dev/null; then
8299: lt_cv_prog_compiler_static_works=yes
8300: fi
8301: else
8302: lt_cv_prog_compiler_static_works=yes
8303: fi
8304: fi
8305: $RM -r conftest*
8306: LDFLAGS="$save_LDFLAGS"
1.10 paf 8307:
1.23 moko 8308: fi
8309: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8310: echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
1.10 paf 8311:
1.23 moko 8312: if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8313: :
8314: else
8315: lt_prog_compiler_static=
1.1 parser 8316: fi
8317:
8318:
8319:
1.10 paf 8320:
8321:
8322:
1.1 parser 8323:
1.23 moko 8324: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8325: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8326: if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8327: echo $ECHO_N "(cached) $ECHO_C" >&6
8328: else
8329: lt_cv_prog_compiler_c_o=no
8330: $RM -r conftest 2>/dev/null
8331: mkdir conftest
8332: cd conftest
8333: mkdir out
8334: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8335:
8336: lt_compiler_flag="-o out/conftest2.$ac_objext"
8337: # Insert the option either (1) after the last *FLAGS variable, or
8338: # (2) before a word containing "conftest.", or (3) at the end.
8339: # Note that $ac_compile itself does not contain backslashes and begins
8340: # with a dollar sign (not a hyphen), so the echo should work correctly.
8341: lt_compile=`echo "$ac_compile" | $SED \
8342: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8343: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8344: -e 's:$: $lt_compiler_flag:'`
8345: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8346: (eval "$lt_compile" 2>out/conftest.err)
8347: ac_status=$?
8348: cat out/conftest.err >&5
8349: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8350: if (exit $ac_status) && test -s out/conftest2.$ac_objext
8351: then
8352: # The compiler can only warn and ignore the option if not recognized
8353: # So say no if there are warnings
8354: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8355: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8356: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8357: lt_cv_prog_compiler_c_o=yes
8358: fi
8359: fi
8360: chmod u+w . 2>&5
8361: $RM conftest*
8362: # SGI C++ compiler will create directory out/ii_files/ for
8363: # template instantiation
8364: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8365: $RM out/* && rmdir out
8366: cd ..
8367: $RM -r conftest
8368: $RM conftest*
8369:
1.10 paf 8370: fi
1.23 moko 8371: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8372: echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8373:
1.1 parser 8374:
1.10 paf 8375:
8376:
8377:
8378:
1.23 moko 8379: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8380: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8381: if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8382: echo $ECHO_N "(cached) $ECHO_C" >&6
1.10 paf 8383: else
1.23 moko 8384: lt_cv_prog_compiler_c_o=no
8385: $RM -r conftest 2>/dev/null
8386: mkdir conftest
8387: cd conftest
8388: mkdir out
8389: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8390:
8391: lt_compiler_flag="-o out/conftest2.$ac_objext"
8392: # Insert the option either (1) after the last *FLAGS variable, or
8393: # (2) before a word containing "conftest.", or (3) at the end.
8394: # Note that $ac_compile itself does not contain backslashes and begins
8395: # with a dollar sign (not a hyphen), so the echo should work correctly.
8396: lt_compile=`echo "$ac_compile" | $SED \
8397: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8398: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8399: -e 's:$: $lt_compiler_flag:'`
8400: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8401: (eval "$lt_compile" 2>out/conftest.err)
8402: ac_status=$?
8403: cat out/conftest.err >&5
8404: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405: if (exit $ac_status) && test -s out/conftest2.$ac_objext
8406: then
8407: # The compiler can only warn and ignore the option if not recognized
8408: # So say no if there are warnings
8409: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8410: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8411: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8412: lt_cv_prog_compiler_c_o=yes
8413: fi
8414: fi
8415: chmod u+w . 2>&5
8416: $RM conftest*
8417: # SGI C++ compiler will create directory out/ii_files/ for
8418: # template instantiation
8419: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8420: $RM out/* && rmdir out
8421: cd ..
8422: $RM -r conftest
8423: $RM conftest*
8424:
1.10 paf 8425: fi
1.23 moko 8426: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8427: echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8428:
1.10 paf 8429:
8430:
8431:
1.23 moko 8432: hard_links="nottested"
8433: if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8434: # do not overwrite the value of need_locks provided by the user
8435: echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8436: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8437: hard_links=yes
8438: $RM conftest*
8439: ln conftest.a conftest.b 2>/dev/null && hard_links=no
8440: touch conftest.a
8441: ln conftest.a conftest.b 2>&5 || hard_links=no
8442: ln conftest.a conftest.b 2>/dev/null && hard_links=no
8443: echo "$as_me:$LINENO: result: $hard_links" >&5
8444: echo "${ECHO_T}$hard_links" >&6
8445: if test "$hard_links" = no; then
8446: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8447: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8448: need_locks=warn
1.10 paf 8449: fi
8450: else
1.23 moko 8451: need_locks=no
1.10 paf 8452: fi
8453:
8454:
8455:
8456:
8457:
8458:
1.23 moko 8459: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8460: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8461:
8462: runpath_var=
8463: allow_undefined_flag=
8464: always_export_symbols=no
8465: archive_cmds=
8466: archive_expsym_cmds=
8467: compiler_needs_object=no
8468: enable_shared_with_static_runtimes=no
8469: export_dynamic_flag_spec=
8470: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8471: hardcode_automatic=no
8472: hardcode_direct=no
8473: hardcode_direct_absolute=no
8474: hardcode_libdir_flag_spec=
8475: hardcode_libdir_separator=
8476: hardcode_minus_L=no
8477: hardcode_shlibpath_var=unsupported
8478: inherit_rpath=no
8479: link_all_deplibs=unknown
8480: module_cmds=
8481: module_expsym_cmds=
8482: old_archive_from_new_cmds=
8483: old_archive_from_expsyms_cmds=
8484: thread_safe_flag_spec=
8485: whole_archive_flag_spec=
8486: # include_expsyms should be a list of space-separated symbols to be *always*
8487: # included in the symbol list
8488: include_expsyms=
8489: # exclude_expsyms can be an extended regexp of symbols to exclude
8490: # it will be wrapped by ` (' and `)$', so one must not match beginning or
8491: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8492: # as well as any symbol that contains `d'.
8493: exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8494: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8495: # platforms (ab)use it in PIC code, but their linkers get confused if
8496: # the symbol is explicitly referenced. Since portable code cannot
8497: # rely on this symbol name, it's probably fine to never include it in
8498: # preloaded symbol tables.
8499: # Exclude shared library initialization/finalization symbols.
8500: extract_expsyms_cmds=
8501:
8502: case $host_os in
8503: cygwin* | mingw* | pw32* | cegcc*)
8504: # FIXME: the MSVC++ port hasn't been tested in a loooong time
8505: # When not using gcc, we currently assume that we are using
8506: # Microsoft Visual C++.
8507: if test "$GCC" != yes; then
8508: with_gnu_ld=no
8509: fi
8510: ;;
8511: interix*)
8512: # we just hope/assume this is gcc and not c89 (= MSVC++)
8513: with_gnu_ld=yes
8514: ;;
8515: openbsd*)
8516: with_gnu_ld=no
8517: ;;
8518: esac
8519:
8520: ld_shlibs=yes
8521:
8522: # On some targets, GNU ld is compatible enough with the native linker
8523: # that we're better off using the native interface for both.
8524: lt_use_gnu_ld_interface=no
8525: if test "$with_gnu_ld" = yes; then
8526: case $host_os in
8527: aix*)
8528: # The AIX port of GNU ld has always aspired to compatibility
8529: # with the native linker. However, as the warning in the GNU ld
8530: # block says, versions before 2.19.5* couldn't really create working
8531: # shared libraries, regardless of the interface used.
8532: case `$LD -v 2>&1` in
8533: *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8534: *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8535: *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8536: *)
8537: lt_use_gnu_ld_interface=yes
8538: ;;
8539: esac
8540: ;;
8541: *)
8542: lt_use_gnu_ld_interface=yes
8543: ;;
8544: esac
1.10 paf 8545: fi
8546:
1.23 moko 8547: if test "$lt_use_gnu_ld_interface" = yes; then
8548: # If archive_cmds runs LD, not CC, wlarc should be empty
8549: wlarc='${wl}'
8550:
8551: # Set some defaults for GNU ld with shared library support. These
8552: # are reset later if shared libraries are not supported. Putting them
8553: # here allows them to be overridden if necessary.
8554: runpath_var=LD_RUN_PATH
8555: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8556: export_dynamic_flag_spec='${wl}--export-dynamic'
8557: # ancient GNU ld didn't support --whole-archive et. al.
8558: if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8559: whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8560: else
8561: whole_archive_flag_spec=
8562: fi
8563: supports_anon_versioning=no
8564: case `$LD -v 2>&1` in
8565: *GNU\ gold*) supports_anon_versioning=yes ;;
8566: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8567: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8568: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8569: *\ 2.11.*) ;; # other 2.11 versions
8570: *) supports_anon_versioning=yes ;;
8571: esac
8572:
8573: # See if GNU ld supports shared libraries.
8574: case $host_os in
8575: aix[3-9]*)
8576: # On AIX/PPC, the GNU linker is very broken
8577: if test "$host_cpu" != ia64; then
8578: ld_shlibs=no
8579: cat <<_LT_EOF 1>&2
1.10 paf 8580:
1.23 moko 8581: *** Warning: the GNU linker, at least up to release 2.19, is reported
8582: *** to be unable to reliably create shared libraries on AIX.
8583: *** Therefore, libtool is disabling shared libraries support. If you
8584: *** really care for shared libraries, you may want to install binutils
8585: *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8586: *** You will then need to restart the configuration process.
1.10 paf 8587:
1.23 moko 8588: _LT_EOF
8589: fi
8590: ;;
1.10 paf 8591:
1.23 moko 8592: amigaos*)
8593: case $host_cpu in
8594: powerpc)
8595: # see comment about AmigaOS4 .so support
8596: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8597: archive_expsym_cmds=''
8598: ;;
8599: m68k)
8600: archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8601: hardcode_libdir_flag_spec='-L$libdir'
8602: hardcode_minus_L=yes
8603: ;;
8604: esac
8605: ;;
1.10 paf 8606:
1.23 moko 8607: beos*)
8608: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8609: allow_undefined_flag=unsupported
8610: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8611: # support --undefined. This deserves some investigation. FIXME
8612: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8613: else
8614: ld_shlibs=no
8615: fi
8616: ;;
1.10 paf 8617:
1.23 moko 8618: cygwin* | mingw* | pw32* | cegcc*)
8619: # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8620: # as there is no search path for DLLs.
8621: hardcode_libdir_flag_spec='-L$libdir'
8622: export_dynamic_flag_spec='${wl}--export-all-symbols'
8623: allow_undefined_flag=unsupported
8624: always_export_symbols=no
8625: enable_shared_with_static_runtimes=yes
8626: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
8627: exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8628:
8629: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8630: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8631: # If the export-symbols file already is a .def file (1st line
8632: # is EXPORTS), use it as is; otherwise, prepend...
8633: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8634: cp $export_symbols $output_objdir/$soname.def;
8635: else
8636: echo EXPORTS > $output_objdir/$soname.def;
8637: cat $export_symbols >> $output_objdir/$soname.def;
8638: fi~
8639: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8640: else
8641: ld_shlibs=no
8642: fi
8643: ;;
1.10 paf 8644:
1.23 moko 8645: haiku*)
8646: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8647: link_all_deplibs=yes
8648: ;;
1.10 paf 8649:
1.23 moko 8650: interix[3-9]*)
8651: hardcode_direct=no
8652: hardcode_shlibpath_var=no
8653: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8654: export_dynamic_flag_spec='${wl}-E'
8655: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8656: # Instead, shared libraries are loaded at an image base (0x10000000 by
8657: # default) and relocated if they conflict, which is a slow very memory
8658: # consuming and fragmenting process. To avoid this, we pick a random,
8659: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8660: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8661: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8662: archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8663: ;;
1.10 paf 8664:
1.23 moko 8665: gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8666: tmp_diet=no
8667: if test "$host_os" = linux-dietlibc; then
8668: case $cc_basename in
8669: diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8670: esac
8671: fi
8672: if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8673: && test "$tmp_diet" = no
8674: then
8675: tmp_addflag=' $pic_flag'
8676: tmp_sharedflag='-shared'
8677: case $cc_basename,$host_cpu in
8678: pgcc*) # Portland Group C compiler
8679: whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8680: tmp_addflag=' $pic_flag'
8681: ;;
8682: pgf77* | pgf90* | pgf95* | pgfortran*)
8683: # Portland Group f77 and f90 compilers
8684: whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8685: tmp_addflag=' $pic_flag -Mnomain' ;;
8686: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8687: tmp_addflag=' -i_dynamic' ;;
8688: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8689: tmp_addflag=' -i_dynamic -nofor_main' ;;
8690: ifc* | ifort*) # Intel Fortran compiler
8691: tmp_addflag=' -nofor_main' ;;
8692: lf95*) # Lahey Fortran 8.1
8693: whole_archive_flag_spec=
8694: tmp_sharedflag='--shared' ;;
8695: xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8696: tmp_sharedflag='-qmkshrobj'
8697: tmp_addflag= ;;
8698: nvcc*) # Cuda Compiler Driver 2.2
8699: whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8700: compiler_needs_object=yes
8701: ;;
8702: esac
8703: case `$CC -V 2>&1 | sed 5q` in
8704: *Sun\ C*) # Sun C 5.9
8705: whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8706: compiler_needs_object=yes
8707: tmp_sharedflag='-G' ;;
8708: *Sun\ F*) # Sun Fortran 8.3
8709: tmp_sharedflag='-G' ;;
8710: esac
8711: archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1.10 paf 8712:
1.23 moko 8713: if test "x$supports_anon_versioning" = xyes; then
8714: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8715: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8716: echo "local: *; };" >> $output_objdir/$libname.ver~
8717: $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8718: fi
8719:
8720: case $cc_basename in
8721: xlf* | bgf* | bgxlf* | mpixlf*)
8722: # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8723: whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8724: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8725: archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8726: if test "x$supports_anon_versioning" = xyes; then
8727: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8728: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8729: echo "local: *; };" >> $output_objdir/$libname.ver~
8730: $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8731: fi
8732: ;;
8733: esac
8734: else
8735: ld_shlibs=no
8736: fi
8737: ;;
1.10 paf 8738:
1.23 moko 8739: netbsd*)
8740: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8741: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8742: wlarc=
8743: else
8744: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8745: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8746: fi
8747: ;;
1.10 paf 8748:
1.23 moko 8749: solaris*)
8750: if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8751: ld_shlibs=no
8752: cat <<_LT_EOF 1>&2
1.10 paf 8753:
1.23 moko 8754: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8755: *** create shared libraries on Solaris systems. Therefore, libtool
8756: *** is disabling shared libraries support. We urge you to upgrade GNU
8757: *** binutils to release 2.9.1 or newer. Another option is to modify
8758: *** your PATH or compiler configuration so that the native linker is
8759: *** used, and then restart.
1.10 paf 8760:
1.23 moko 8761: _LT_EOF
8762: elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8763: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8764: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8765: else
8766: ld_shlibs=no
8767: fi
8768: ;;
1.10 paf 8769:
1.23 moko 8770: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8771: case `$LD -v 2>&1` in
8772: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8773: ld_shlibs=no
8774: cat <<_LT_EOF 1>&2
1.10 paf 8775:
1.23 moko 8776: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8777: *** reliably create shared libraries on SCO systems. Therefore, libtool
8778: *** is disabling shared libraries support. We urge you to upgrade GNU
8779: *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8780: *** your PATH or compiler configuration so that the native linker is
8781: *** used, and then restart.
1.10 paf 8782:
1.23 moko 8783: _LT_EOF
8784: ;;
8785: *)
8786: # For security reasons, it is highly recommended that you always
8787: # use absolute paths for naming shared libraries, and exclude the
8788: # DT_RUNPATH tag from executables and libraries. But doing so
8789: # requires that you compile everything twice, which is a pain.
8790: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8791: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8792: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8793: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8794: else
8795: ld_shlibs=no
8796: fi
8797: ;;
8798: esac
8799: ;;
1.10 paf 8800:
1.23 moko 8801: sunos4*)
8802: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8803: wlarc=
8804: hardcode_direct=yes
8805: hardcode_shlibpath_var=no
8806: ;;
1.10 paf 8807:
1.23 moko 8808: *)
8809: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8810: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8811: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8812: else
8813: ld_shlibs=no
8814: fi
8815: ;;
8816: esac
1.10 paf 8817:
1.23 moko 8818: if test "$ld_shlibs" = no; then
8819: runpath_var=
8820: hardcode_libdir_flag_spec=
8821: export_dynamic_flag_spec=
8822: whole_archive_flag_spec=
8823: fi
8824: else
8825: # PORTME fill in a description of your system's linker (not GNU ld)
8826: case $host_os in
8827: aix3*)
8828: allow_undefined_flag=unsupported
8829: always_export_symbols=yes
8830: archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
8831: # Note: this linker hardcodes the directories in LIBPATH if there
8832: # are no directories specified by -L.
8833: hardcode_minus_L=yes
8834: if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8835: # Neither direct hardcoding nor static linking is supported with a
8836: # broken collect2.
8837: hardcode_direct=unsupported
8838: fi
8839: ;;
1.10 paf 8840:
1.23 moko 8841: aix[4-9]*)
8842: if test "$host_cpu" = ia64; then
8843: # On IA64, the linker does run time linking by default, so we don't
8844: # have to do anything special.
8845: aix_use_runtimelinking=no
8846: exp_sym_flag='-Bexport'
8847: no_entry_flag=""
8848: else
8849: # If we're using GNU nm, then we don't want the "-C" option.
8850: # -C means demangle to AIX nm, but means don't demangle with GNU nm
8851: # Also, AIX nm treats weak defined symbols like other global
8852: # defined symbols, whereas GNU nm marks them as "W".
8853: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8854: export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8855: else
8856: export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8857: fi
8858: aix_use_runtimelinking=no
1.10 paf 8859:
1.23 moko 8860: # Test if we are trying to use run time linking or normal
8861: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8862: # need to do runtime linking.
8863: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8864: for ld_flag in $LDFLAGS; do
8865: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8866: aix_use_runtimelinking=yes
8867: break
8868: fi
8869: done
8870: ;;
8871: esac
1.10 paf 8872:
1.23 moko 8873: exp_sym_flag='-bexport'
8874: no_entry_flag='-bnoentry'
8875: fi
1.10 paf 8876:
1.23 moko 8877: # When large executables or shared objects are built, AIX ld can
8878: # have problems creating the table of contents. If linking a library
8879: # or program results in "error TOC overflow" add -mminimal-toc to
8880: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8881: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8882:
8883: archive_cmds=''
8884: hardcode_direct=yes
8885: hardcode_direct_absolute=yes
8886: hardcode_libdir_separator=':'
8887: link_all_deplibs=yes
8888: file_list_spec='${wl}-f,'
8889:
8890: if test "$GCC" = yes; then
8891: case $host_os in aix4.[012]|aix4.[012].*)
8892: # We only want to do this on AIX 4.2 and lower, the check
8893: # below for broken collect2 doesn't work under 4.3+
8894: collect2name=`${CC} -print-prog-name=collect2`
8895: if test -f "$collect2name" &&
8896: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8897: then
8898: # We have reworked collect2
8899: :
8900: else
8901: # We have old collect2
8902: hardcode_direct=unsupported
8903: # It fails to find uninstalled libraries when the uninstalled
8904: # path is not listed in the libpath. Setting hardcode_minus_L
8905: # to unsupported forces relinking
8906: hardcode_minus_L=yes
8907: hardcode_libdir_flag_spec='-L$libdir'
8908: hardcode_libdir_separator=
8909: fi
8910: ;;
8911: esac
8912: shared_flag='-shared'
8913: if test "$aix_use_runtimelinking" = yes; then
8914: shared_flag="$shared_flag "'${wl}-G'
8915: fi
8916: else
8917: # not using gcc
8918: if test "$host_cpu" = ia64; then
8919: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8920: # chokes on -Wl,-G. The following line is correct:
8921: shared_flag='-G'
8922: else
8923: if test "$aix_use_runtimelinking" = yes; then
8924: shared_flag='${wl}-G'
8925: else
8926: shared_flag='${wl}-bM:SRE'
8927: fi
8928: fi
8929: fi
8930:
8931: export_dynamic_flag_spec='${wl}-bexpall'
8932: # It seems that -bexpall does not export symbols beginning with
8933: # underscore (_), so it is better to generate a list of symbols to export.
8934: always_export_symbols=yes
8935: if test "$aix_use_runtimelinking" = yes; then
8936: # Warning - without using the other runtime loading flags (-brtl),
8937: # -berok will link without error, but may produce a broken library.
8938: allow_undefined_flag='-berok'
8939: # Determine the default libpath from the value encoded in an
8940: # empty executable.
8941: if test "${lt_cv_aix_libpath+set}" = set; then
8942: aix_libpath=$lt_cv_aix_libpath
8943: else
8944: if test "${lt_cv_aix_libpath_+set}" = set; then
8945: echo $ECHO_N "(cached) $ECHO_C" >&6
8946: else
8947: cat >conftest.$ac_ext <<_ACEOF
8948: /* confdefs.h. */
8949: _ACEOF
8950: cat confdefs.h >>conftest.$ac_ext
8951: cat >>conftest.$ac_ext <<_ACEOF
8952: /* end confdefs.h. */
1.10 paf 8953:
1.23 moko 8954: int
8955: main ()
8956: {
1.10 paf 8957:
1.23 moko 8958: ;
8959: return 0;
8960: }
8961: _ACEOF
8962: rm -f conftest.$ac_objext conftest$ac_exeext
8963: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8964: (eval $ac_link) 2>conftest.er1
8965: ac_status=$?
8966: grep -v '^ *+' conftest.er1 >conftest.err
8967: rm -f conftest.er1
8968: cat conftest.err >&5
8969: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8970: (exit $ac_status); } &&
8971: { ac_try='test -z "$ac_c_werror_flag"
8972: || test ! -s conftest.err'
8973: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8974: (eval $ac_try) 2>&5
8975: ac_status=$?
8976: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8977: (exit $ac_status); }; } &&
8978: { ac_try='test -s conftest$ac_exeext'
8979: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8980: (eval $ac_try) 2>&5
8981: ac_status=$?
8982: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983: (exit $ac_status); }; }; then
1.10 paf 8984:
1.23 moko 8985: lt_aix_libpath_sed='
8986: /Import File Strings/,/^$/ {
8987: /^0/ {
8988: s/^0 *\([^ ]*\) *$/\1/
8989: p
8990: }
8991: }'
8992: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8993: # Check for a 64-bit object if we didn't find anything.
8994: if test -z "$lt_cv_aix_libpath_"; then
8995: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8996: fi
8997: else
8998: echo "$as_me: failed program was:" >&5
8999: sed 's/^/| /' conftest.$ac_ext >&5
1.10 paf 9000:
1.23 moko 9001: fi
9002: rm -f conftest.err conftest.$ac_objext \
9003: conftest$ac_exeext conftest.$ac_ext
9004: if test -z "$lt_cv_aix_libpath_"; then
9005: lt_cv_aix_libpath_="/usr/lib:/lib"
9006: fi
1.10 paf 9007:
1.23 moko 9008: fi
1.10 paf 9009:
1.23 moko 9010: aix_libpath=$lt_cv_aix_libpath_
9011: fi
1.10 paf 9012:
1.23 moko 9013: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9014: archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9015: else
9016: if test "$host_cpu" = ia64; then
9017: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9018: allow_undefined_flag="-z nodefs"
9019: archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
9020: else
9021: # Determine the default libpath from the value encoded in an
9022: # empty executable.
9023: if test "${lt_cv_aix_libpath+set}" = set; then
9024: aix_libpath=$lt_cv_aix_libpath
9025: else
9026: if test "${lt_cv_aix_libpath_+set}" = set; then
9027: echo $ECHO_N "(cached) $ECHO_C" >&6
9028: else
9029: cat >conftest.$ac_ext <<_ACEOF
9030: /* confdefs.h. */
9031: _ACEOF
9032: cat confdefs.h >>conftest.$ac_ext
9033: cat >>conftest.$ac_ext <<_ACEOF
9034: /* end confdefs.h. */
1.10 paf 9035:
1.23 moko 9036: int
9037: main ()
9038: {
1.10 paf 9039:
1.23 moko 9040: ;
9041: return 0;
9042: }
1.10 paf 9043: _ACEOF
1.23 moko 9044: rm -f conftest.$ac_objext conftest$ac_exeext
9045: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9046: (eval $ac_link) 2>conftest.er1
9047: ac_status=$?
9048: grep -v '^ *+' conftest.er1 >conftest.err
9049: rm -f conftest.er1
9050: cat conftest.err >&5
9051: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052: (exit $ac_status); } &&
9053: { ac_try='test -z "$ac_c_werror_flag"
9054: || test ! -s conftest.err'
9055: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9056: (eval $ac_try) 2>&5
9057: ac_status=$?
9058: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059: (exit $ac_status); }; } &&
9060: { ac_try='test -s conftest$ac_exeext'
9061: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9062: (eval $ac_try) 2>&5
9063: ac_status=$?
9064: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065: (exit $ac_status); }; }; then
9066:
9067: lt_aix_libpath_sed='
9068: /Import File Strings/,/^$/ {
9069: /^0/ {
9070: s/^0 *\([^ ]*\) *$/\1/
9071: p
9072: }
9073: }'
9074: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9075: # Check for a 64-bit object if we didn't find anything.
9076: if test -z "$lt_cv_aix_libpath_"; then
9077: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9078: fi
9079: else
9080: echo "$as_me: failed program was:" >&5
9081: sed 's/^/| /' conftest.$ac_ext >&5
1.10 paf 9082:
1.23 moko 9083: fi
9084: rm -f conftest.err conftest.$ac_objext \
9085: conftest$ac_exeext conftest.$ac_ext
9086: if test -z "$lt_cv_aix_libpath_"; then
9087: lt_cv_aix_libpath_="/usr/lib:/lib"
9088: fi
1.10 paf 9089:
1.23 moko 9090: fi
1.10 paf 9091:
1.23 moko 9092: aix_libpath=$lt_cv_aix_libpath_
9093: fi
1.10 paf 9094:
1.23 moko 9095: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9096: # Warning - without using the other run time loading flags,
9097: # -berok will link without error, but may produce a broken library.
9098: no_undefined_flag=' ${wl}-bernotok'
9099: allow_undefined_flag=' ${wl}-berok'
9100: if test "$with_gnu_ld" = yes; then
9101: # We only use this code for GNU lds that support --whole-archive.
9102: whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9103: else
9104: # Exported symbols can be pulled into shared objects from archives
9105: whole_archive_flag_spec='$convenience'
9106: fi
9107: archive_cmds_need_lc=yes
9108: # This is similar to how AIX traditionally builds its shared libraries.
9109: archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9110: fi
9111: fi
9112: ;;
1.10 paf 9113:
1.23 moko 9114: amigaos*)
9115: case $host_cpu in
9116: powerpc)
9117: # see comment about AmigaOS4 .so support
9118: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9119: archive_expsym_cmds=''
9120: ;;
9121: m68k)
9122: archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9123: hardcode_libdir_flag_spec='-L$libdir'
9124: hardcode_minus_L=yes
9125: ;;
9126: esac
9127: ;;
1.10 paf 9128:
1.23 moko 9129: bsdi[45]*)
9130: export_dynamic_flag_spec=-rdynamic
9131: ;;
1.1 parser 9132:
1.23 moko 9133: cygwin* | mingw* | pw32* | cegcc*)
9134: # When not using gcc, we currently assume that we are using
9135: # Microsoft Visual C++.
9136: # hardcode_libdir_flag_spec is actually meaningless, as there is
9137: # no search path for DLLs.
9138: case $cc_basename in
9139: cl*)
9140: # Native MSVC
9141: hardcode_libdir_flag_spec=' '
9142: allow_undefined_flag=unsupported
9143: always_export_symbols=yes
9144: file_list_spec='@'
9145: # Tell ltmain to make .lib files, not .a files.
9146: libext=lib
9147: # Tell ltmain to make .dll files, not .so files.
9148: shrext_cmds=".dll"
9149: # FIXME: Setting linknames here is a bad hack.
9150: archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9151: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9152: sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9153: else
9154: sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9155: fi~
9156: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9157: linknames='
9158: # The linker will not automatically build a static lib if we build a DLL.
9159: # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9160: enable_shared_with_static_runtimes=yes
9161: exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9162: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9163: # Don't use ranlib
9164: old_postinstall_cmds='chmod 644 $oldlib'
9165: postlink_cmds='lt_outputfile="@OUTPUT@"~
9166: lt_tool_outputfile="@TOOL_OUTPUT@"~
9167: case $lt_outputfile in
9168: *.exe|*.EXE) ;;
9169: *)
9170: lt_outputfile="$lt_outputfile.exe"
9171: lt_tool_outputfile="$lt_tool_outputfile.exe"
9172: ;;
9173: esac~
9174: if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9175: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9176: $RM "$lt_outputfile.manifest";
9177: fi'
9178: ;;
9179: *)
9180: # Assume MSVC wrapper
9181: hardcode_libdir_flag_spec=' '
9182: allow_undefined_flag=unsupported
9183: # Tell ltmain to make .lib files, not .a files.
9184: libext=lib
9185: # Tell ltmain to make .dll files, not .so files.
9186: shrext_cmds=".dll"
9187: # FIXME: Setting linknames here is a bad hack.
9188: archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9189: # The linker will automatically build a .lib file if we build a DLL.
9190: old_archive_from_new_cmds='true'
9191: # FIXME: Should let the user specify the lib program.
9192: old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9193: enable_shared_with_static_runtimes=yes
9194: ;;
9195: esac
9196: ;;
1.10 paf 9197:
1.23 moko 9198: darwin* | rhapsody*)
1.10 paf 9199:
9200:
1.23 moko 9201: archive_cmds_need_lc=no
9202: hardcode_direct=no
9203: hardcode_automatic=yes
9204: hardcode_shlibpath_var=unsupported
9205: if test "$lt_cv_ld_force_load" = "yes"; then
9206: whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
1.10 paf 9207:
1.23 moko 9208: else
9209: whole_archive_flag_spec=''
9210: fi
9211: link_all_deplibs=yes
9212: allow_undefined_flag="$_lt_dar_allow_undefined"
9213: case $cc_basename in
9214: ifort*) _lt_dar_can_shared=yes ;;
9215: *) _lt_dar_can_shared=$GCC ;;
9216: esac
9217: if test "$_lt_dar_can_shared" = "yes"; then
9218: output_verbose_link_cmd=func_echo_all
9219: archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9220: module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9221: archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9222: module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
1.10 paf 9223:
1.23 moko 9224: else
9225: ld_shlibs=no
9226: fi
1.1 parser 9227:
1.23 moko 9228: ;;
1.10 paf 9229:
1.23 moko 9230: dgux*)
9231: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9232: hardcode_libdir_flag_spec='-L$libdir'
9233: hardcode_shlibpath_var=no
9234: ;;
1.10 paf 9235:
1.23 moko 9236: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9237: # support. Future versions do this automatically, but an explicit c++rt0.o
9238: # does not break anything, and helps significantly (at the cost of a little
9239: # extra space).
9240: freebsd2.2*)
9241: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9242: hardcode_libdir_flag_spec='-R$libdir'
9243: hardcode_direct=yes
9244: hardcode_shlibpath_var=no
9245: ;;
1.10 paf 9246:
1.23 moko 9247: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9248: freebsd2.*)
9249: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9250: hardcode_direct=yes
9251: hardcode_minus_L=yes
9252: hardcode_shlibpath_var=no
9253: ;;
1.10 paf 9254:
1.23 moko 9255: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9256: freebsd* | dragonfly*)
9257: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9258: hardcode_libdir_flag_spec='-R$libdir'
9259: hardcode_direct=yes
9260: hardcode_shlibpath_var=no
9261: ;;
1.1 parser 9262:
1.23 moko 9263: hpux9*)
9264: if test "$GCC" = yes; then
9265: archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9266: else
9267: archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9268: fi
9269: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9270: hardcode_libdir_separator=:
9271: hardcode_direct=yes
9272:
9273: # hardcode_minus_L: Not really in the search PATH,
9274: # but as the default location of the library.
9275: hardcode_minus_L=yes
9276: export_dynamic_flag_spec='${wl}-E'
9277: ;;
1.10 paf 9278:
1.23 moko 9279: hpux10*)
9280: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9281: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9282: else
9283: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9284: fi
9285: if test "$with_gnu_ld" = no; then
9286: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9287: hardcode_libdir_separator=:
9288: hardcode_direct=yes
9289: hardcode_direct_absolute=yes
9290: export_dynamic_flag_spec='${wl}-E'
9291: # hardcode_minus_L: Not really in the search PATH,
9292: # but as the default location of the library.
9293: hardcode_minus_L=yes
9294: fi
9295: ;;
1.10 paf 9296:
1.23 moko 9297: hpux11*)
9298: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9299: case $host_cpu in
9300: hppa*64*)
9301: archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9302: ;;
9303: ia64*)
9304: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9305: ;;
9306: *)
9307: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9308: ;;
9309: esac
9310: else
9311: case $host_cpu in
9312: hppa*64*)
9313: archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9314: ;;
9315: ia64*)
9316: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9317: ;;
9318: *)
1.10 paf 9319:
1.23 moko 9320: # Older versions of the 11.00 compiler do not understand -b yet
9321: # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9322: echo "$as_me:$LINENO: checking if $CC understands -b" >&5
9323: echo $ECHO_N "checking if $CC understands -b... $ECHO_C" >&6
9324: if test "${lt_cv_prog_compiler__b+set}" = set; then
9325: echo $ECHO_N "(cached) $ECHO_C" >&6
9326: else
9327: lt_cv_prog_compiler__b=no
9328: save_LDFLAGS="$LDFLAGS"
9329: LDFLAGS="$LDFLAGS -b"
9330: echo "$lt_simple_link_test_code" > conftest.$ac_ext
9331: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9332: # The linker can only warn and ignore the option if not recognized
9333: # So say no if there are warnings
9334: if test -s conftest.err; then
9335: # Append any errors to the config.log.
9336: cat conftest.err 1>&5
9337: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9338: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9339: if diff conftest.exp conftest.er2 >/dev/null; then
9340: lt_cv_prog_compiler__b=yes
9341: fi
9342: else
9343: lt_cv_prog_compiler__b=yes
9344: fi
9345: fi
9346: $RM -r conftest*
9347: LDFLAGS="$save_LDFLAGS"
1.10 paf 9348:
1.23 moko 9349: fi
9350: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler__b" >&5
9351: echo "${ECHO_T}$lt_cv_prog_compiler__b" >&6
1.1 parser 9352:
1.23 moko 9353: if test x"$lt_cv_prog_compiler__b" = xyes; then
9354: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9355: else
9356: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9357: fi
1.1 parser 9358:
1.23 moko 9359: ;;
9360: esac
9361: fi
9362: if test "$with_gnu_ld" = no; then
9363: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9364: hardcode_libdir_separator=:
9365:
9366: case $host_cpu in
9367: hppa*64*|ia64*)
9368: hardcode_direct=no
9369: hardcode_shlibpath_var=no
9370: ;;
9371: *)
9372: hardcode_direct=yes
9373: hardcode_direct_absolute=yes
9374: export_dynamic_flag_spec='${wl}-E'
1.1 parser 9375:
1.23 moko 9376: # hardcode_minus_L: Not really in the search PATH,
9377: # but as the default location of the library.
9378: hardcode_minus_L=yes
9379: ;;
9380: esac
9381: fi
9382: ;;
1.1 parser 9383:
1.23 moko 9384: irix5* | irix6* | nonstopux*)
9385: if test "$GCC" = yes; then
9386: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9387: # Try to use the -exported_symbol ld option, if it does not
9388: # work, assume that -exports_file does not work either and
9389: # implicitly export all symbols.
9390: # This should be the same for all languages, so no per-tag cache variable.
9391: echo "$as_me:$LINENO: checking whether the $host_os linker accepts -exported_symbol" >&5
9392: echo $ECHO_N "checking whether the $host_os linker accepts -exported_symbol... $ECHO_C" >&6
9393: if test "${lt_cv_irix_exported_symbol+set}" = set; then
9394: echo $ECHO_N "(cached) $ECHO_C" >&6
9395: else
9396: save_LDFLAGS="$LDFLAGS"
9397: LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9398: cat >conftest.$ac_ext <<_ACEOF
9399: /* confdefs.h. */
9400: _ACEOF
9401: cat confdefs.h >>conftest.$ac_ext
9402: cat >>conftest.$ac_ext <<_ACEOF
9403: /* end confdefs.h. */
9404: int foo (void) { return 0; }
1.10 paf 9405: _ACEOF
1.23 moko 9406: rm -f conftest.$ac_objext conftest$ac_exeext
9407: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9408: (eval $ac_link) 2>conftest.er1
9409: ac_status=$?
9410: grep -v '^ *+' conftest.er1 >conftest.err
9411: rm -f conftest.er1
9412: cat conftest.err >&5
9413: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9414: (exit $ac_status); } &&
9415: { ac_try='test -z "$ac_c_werror_flag"
9416: || test ! -s conftest.err'
9417: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9418: (eval $ac_try) 2>&5
9419: ac_status=$?
9420: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9421: (exit $ac_status); }; } &&
9422: { ac_try='test -s conftest$ac_exeext'
9423: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9424: (eval $ac_try) 2>&5
9425: ac_status=$?
9426: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9427: (exit $ac_status); }; }; then
9428: lt_cv_irix_exported_symbol=yes
9429: else
9430: echo "$as_me: failed program was:" >&5
9431: sed 's/^/| /' conftest.$ac_ext >&5
1.1 parser 9432:
1.23 moko 9433: lt_cv_irix_exported_symbol=no
9434: fi
9435: rm -f conftest.err conftest.$ac_objext \
9436: conftest$ac_exeext conftest.$ac_ext
9437: LDFLAGS="$save_LDFLAGS"
9438: fi
9439: echo "$as_me:$LINENO: result: $lt_cv_irix_exported_symbol" >&5
9440: echo "${ECHO_T}$lt_cv_irix_exported_symbol" >&6
9441: if test "$lt_cv_irix_exported_symbol" = yes; then
9442: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9443: fi
1.10 paf 9444: else
1.23 moko 9445: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9446: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
1.10 paf 9447: fi
1.23 moko 9448: archive_cmds_need_lc='no'
9449: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9450: hardcode_libdir_separator=:
9451: inherit_rpath=yes
9452: link_all_deplibs=yes
9453: ;;
9454:
9455: netbsd*)
9456: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9457: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9458: else
9459: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9460: fi
9461: hardcode_libdir_flag_spec='-R$libdir'
9462: hardcode_direct=yes
9463: hardcode_shlibpath_var=no
9464: ;;
1.1 parser 9465:
1.23 moko 9466: newsos6)
9467: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9468: hardcode_direct=yes
9469: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9470: hardcode_libdir_separator=:
9471: hardcode_shlibpath_var=no
9472: ;;
1.1 parser 9473:
1.23 moko 9474: *nto* | *qnx*)
9475: ;;
1.10 paf 9476:
1.23 moko 9477: openbsd*)
9478: if test -f /usr/libexec/ld.so; then
9479: hardcode_direct=yes
9480: hardcode_shlibpath_var=no
9481: hardcode_direct_absolute=yes
9482: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9483: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9484: archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9485: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9486: export_dynamic_flag_spec='${wl}-E'
9487: else
9488: case $host_os in
9489: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9490: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9491: hardcode_libdir_flag_spec='-R$libdir'
9492: ;;
9493: *)
9494: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9495: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9496: ;;
9497: esac
9498: fi
9499: else
9500: ld_shlibs=no
9501: fi
9502: ;;
1.10 paf 9503:
1.23 moko 9504: os2*)
9505: hardcode_libdir_flag_spec='-L$libdir'
9506: hardcode_minus_L=yes
9507: allow_undefined_flag=unsupported
9508: archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9509: old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9510: ;;
1.10 paf 9511:
1.23 moko 9512: osf3*)
9513: if test "$GCC" = yes; then
9514: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9515: archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9516: else
9517: allow_undefined_flag=' -expect_unresolved \*'
9518: archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9519: fi
9520: archive_cmds_need_lc='no'
9521: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9522: hardcode_libdir_separator=:
9523: ;;
1.16 paf 9524:
1.23 moko 9525: osf4* | osf5*) # as osf3* with the addition of -msym flag
9526: if test "$GCC" = yes; then
9527: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9528: archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9529: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9530: else
9531: allow_undefined_flag=' -expect_unresolved \*'
9532: archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9533: archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9534: $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
1.10 paf 9535:
1.23 moko 9536: # Both c and cxx compiler support -rpath directly
9537: hardcode_libdir_flag_spec='-rpath $libdir'
9538: fi
9539: archive_cmds_need_lc='no'
9540: hardcode_libdir_separator=:
9541: ;;
1.10 paf 9542:
1.23 moko 9543: solaris*)
9544: no_undefined_flag=' -z defs'
9545: if test "$GCC" = yes; then
9546: wlarc='${wl}'
9547: archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9548: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9549: $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9550: else
9551: case `$CC -V 2>&1` in
9552: *"Compilers 5.0"*)
9553: wlarc=''
9554: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9555: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9556: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9557: ;;
9558: *)
9559: wlarc='${wl}'
9560: archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9561: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9562: $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9563: ;;
9564: esac
9565: fi
9566: hardcode_libdir_flag_spec='-R$libdir'
9567: hardcode_shlibpath_var=no
9568: case $host_os in
9569: solaris2.[0-5] | solaris2.[0-5].*) ;;
9570: *)
9571: # The compiler driver will combine and reorder linker options,
9572: # but understands `-z linker_flag'. GCC discards it without `$wl',
9573: # but is careful enough not to reorder.
9574: # Supported since Solaris 2.6 (maybe 2.5.1?)
9575: if test "$GCC" = yes; then
9576: whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9577: else
9578: whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9579: fi
9580: ;;
9581: esac
9582: link_all_deplibs=yes
9583: ;;
1.1 parser 9584:
1.23 moko 9585: sunos4*)
9586: if test "x$host_vendor" = xsequent; then
9587: # Use $CC to link under sequent, because it throws in some extra .o
9588: # files that make .init and .fini sections work.
9589: archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9590: else
9591: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9592: fi
9593: hardcode_libdir_flag_spec='-L$libdir'
9594: hardcode_direct=yes
9595: hardcode_minus_L=yes
9596: hardcode_shlibpath_var=no
9597: ;;
1.10 paf 9598:
1.23 moko 9599: sysv4)
9600: case $host_vendor in
9601: sni)
9602: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9603: hardcode_direct=yes # is this really true???
9604: ;;
9605: siemens)
9606: ## LD is ld it makes a PLAMLIB
9607: ## CC just makes a GrossModule.
9608: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9609: reload_cmds='$CC -r -o $output$reload_objs'
9610: hardcode_direct=no
9611: ;;
9612: motorola)
9613: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9614: hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9615: ;;
1.10 paf 9616: esac
1.23 moko 9617: runpath_var='LD_RUN_PATH'
9618: hardcode_shlibpath_var=no
9619: ;;
9620:
9621: sysv4.3*)
9622: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9623: hardcode_shlibpath_var=no
9624: export_dynamic_flag_spec='-Bexport'
9625: ;;
1.10 paf 9626:
1.23 moko 9627: sysv4*MP*)
9628: if test -d /usr/nec; then
9629: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9630: hardcode_shlibpath_var=no
9631: runpath_var=LD_RUN_PATH
9632: hardcode_runpath_var=yes
9633: ld_shlibs=yes
9634: fi
9635: ;;
1.10 paf 9636:
1.23 moko 9637: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9638: no_undefined_flag='${wl}-z,text'
9639: archive_cmds_need_lc=no
9640: hardcode_shlibpath_var=no
9641: runpath_var='LD_RUN_PATH'
1.1 parser 9642:
1.23 moko 9643: if test "$GCC" = yes; then
9644: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9645: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9646: else
9647: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9648: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9649: fi
9650: ;;
9651:
9652: sysv5* | sco3.2v5* | sco5v6*)
9653: # Note: We can NOT use -z defs as we might desire, because we do not
9654: # link with -lc, and that would cause any symbols used from libc to
9655: # always be unresolved, which means just about no library would
9656: # ever link correctly. If we're not using GNU ld we use -z text
9657: # though, which does catch some bad symbols but isn't as heavy-handed
9658: # as -z defs.
9659: no_undefined_flag='${wl}-z,text'
9660: allow_undefined_flag='${wl}-z,nodefs'
9661: archive_cmds_need_lc=no
9662: hardcode_shlibpath_var=no
9663: hardcode_libdir_flag_spec='${wl}-R,$libdir'
9664: hardcode_libdir_separator=':'
9665: link_all_deplibs=yes
9666: export_dynamic_flag_spec='${wl}-Bexport'
9667: runpath_var='LD_RUN_PATH'
9668:
9669: if test "$GCC" = yes; then
9670: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9671: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9672: else
9673: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9674: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9675: fi
9676: ;;
1.1 parser 9677:
1.23 moko 9678: uts4*)
9679: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9680: hardcode_libdir_flag_spec='-L$libdir'
9681: hardcode_shlibpath_var=no
9682: ;;
1.1 parser 9683:
1.23 moko 9684: *)
9685: ld_shlibs=no
9686: ;;
9687: esac
1.1 parser 9688:
1.23 moko 9689: if test x$host_vendor = xsni; then
9690: case $host in
9691: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9692: export_dynamic_flag_spec='${wl}-Blargedynsym'
9693: ;;
1.10 paf 9694: esac
1.23 moko 9695: fi
9696: fi
9697:
9698: echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9699: echo "${ECHO_T}$ld_shlibs" >&6
9700: test "$ld_shlibs" = no && can_build_shared=no
9701:
9702: with_gnu_ld=$with_gnu_ld
9703:
9704:
9705:
9706:
9707:
9708:
9709:
9710:
9711:
9712:
9713:
9714:
9715:
1.10 paf 9716:
9717:
9718: #
1.23 moko 9719: # Do we need to explicitly link libc?
9720: #
9721: case "x$archive_cmds_need_lc" in
9722: x|xyes)
9723: # Assume -lc should be added
9724: archive_cmds_need_lc=yes
9725:
9726: if test "$enable_shared" = yes && test "$GCC" = yes; then
9727: case $archive_cmds in
9728: *'~'*)
9729: # FIXME: we may have to deal with multi-command sequences.
9730: ;;
9731: '$CC '*)
9732: # Test whether the compiler implicitly links with -lc since on some
9733: # systems, -lgcc has to come before -lc. If gcc already passes -lc
9734: # to ld, don't add -lc before -lgcc.
9735: echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9736: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9737: if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
9738: echo $ECHO_N "(cached) $ECHO_C" >&6
9739: else
9740: $RM conftest*
9741: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9742:
9743: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9744: (eval $ac_compile) 2>&5
9745: ac_status=$?
9746: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747: (exit $ac_status); } 2>conftest.err; then
9748: soname=conftest
9749: lib=conftest
9750: libobjs=conftest.$ac_objext
9751: deplibs=
9752: wl=$lt_prog_compiler_wl
9753: pic_flag=$lt_prog_compiler_pic
9754: compiler_flags=-v
9755: linker_flags=-v
9756: verstring=
9757: output_objdir=.
9758: libname=conftest
9759: lt_save_allow_undefined_flag=$allow_undefined_flag
9760: allow_undefined_flag=
9761: if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9762: (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9763: ac_status=$?
9764: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765: (exit $ac_status); }
9766: then
9767: lt_cv_archive_cmds_need_lc=no
9768: else
9769: lt_cv_archive_cmds_need_lc=yes
9770: fi
9771: allow_undefined_flag=$lt_save_allow_undefined_flag
9772: else
9773: cat conftest.err 1>&5
9774: fi
9775: $RM conftest*
9776:
9777: fi
9778: echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
9779: echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
9780: archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9781: ;;
9782: esac
9783: fi
9784: ;;
9785: esac
9786:
1.1 parser 9787:
1.10 paf 9788:
9789:
9790:
9791:
1.23 moko 9792:
9793:
9794:
9795:
9796:
9797:
9798:
9799:
9800:
9801:
9802:
9803:
9804:
9805:
9806:
9807:
9808:
9809:
9810:
9811:
9812:
9813:
9814:
9815:
9816:
9817:
9818:
9819:
9820:
9821:
9822:
9823:
9824:
9825:
9826:
9827:
9828:
9829:
9830:
9831:
9832:
9833:
9834:
9835:
9836:
9837:
9838:
9839:
9840:
9841:
9842:
9843:
9844:
9845:
9846:
9847:
9848:
9849:
9850:
9851:
9852:
9853:
9854:
9855:
9856:
9857:
9858:
9859:
9860:
9861:
9862:
9863:
9864:
9865:
9866:
9867:
9868:
9869:
9870:
9871:
9872:
9873:
9874:
9875:
9876:
9877:
9878:
9879:
9880:
9881:
9882:
9883:
9884:
9885:
9886:
9887:
9888:
9889:
9890:
9891:
9892:
9893:
9894:
9895:
9896:
9897:
9898:
9899:
9900:
9901:
9902:
9903:
9904:
9905:
9906:
9907:
9908:
9909:
9910:
9911:
9912:
9913:
9914:
9915:
9916:
9917:
9918:
9919:
9920:
9921:
9922:
9923:
9924:
9925:
9926:
9927:
9928:
9929:
9930:
9931:
9932:
9933:
9934:
9935:
9936:
9937:
9938: echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9939: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9940:
9941: if test "$GCC" = yes; then
9942: case $host_os in
9943: darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9944: *) lt_awk_arg="/^libraries:/" ;;
9945: esac
9946: case $host_os in
9947: mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9948: *) lt_sed_strip_eq="s,=/,/,g" ;;
9949: esac
9950: lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9951: case $lt_search_path_spec in
9952: *\;*)
9953: # if the path contains ";" then we assume it to be the separator
9954: # otherwise default to the standard path separator (i.e. ":") - it is
9955: # assumed that no part of a normal pathname contains ";" but that should
9956: # okay in the real world where ";" in dirpaths is itself problematic.
9957: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9958: ;;
9959: *)
9960: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9961: ;;
9962: esac
9963: # Ok, now we have the path, separated by spaces, we can step through it
9964: # and add multilib dir if necessary.
9965: lt_tmp_lt_search_path_spec=
9966: lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9967: for lt_sys_path in $lt_search_path_spec; do
9968: if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9969: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9970: else
9971: test -d "$lt_sys_path" && \
9972: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
1.1 parser 9973: fi
1.23 moko 9974: done
9975: lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9976: BEGIN {RS=" "; FS="/|\n";} {
9977: lt_foo="";
9978: lt_count=0;
9979: for (lt_i = NF; lt_i > 0; lt_i--) {
9980: if ($lt_i != "" && $lt_i != ".") {
9981: if ($lt_i == "..") {
9982: lt_count++;
9983: } else {
9984: if (lt_count == 0) {
9985: lt_foo="/" $lt_i lt_foo;
9986: } else {
9987: lt_count--;
9988: }
9989: }
9990: }
9991: }
9992: if (lt_foo != "") { lt_freq[lt_foo]++; }
9993: if (lt_freq[lt_foo] == 1) { print lt_foo; }
9994: }'`
9995: # AWK program above erroneously prepends '/' to C:/dos/paths
9996: # for these hosts.
9997: case $host_os in
9998: mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9999: $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10000: esac
10001: sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10002: else
10003: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10004: fi
10005: library_names_spec=
10006: libname_spec='lib$name'
10007: soname_spec=
10008: shrext_cmds=".so"
10009: postinstall_cmds=
10010: postuninstall_cmds=
10011: finish_cmds=
10012: finish_eval=
10013: shlibpath_var=
10014: shlibpath_overrides_runpath=unknown
10015: version_type=none
10016: dynamic_linker="$host_os ld.so"
10017: sys_lib_dlsearch_path_spec="/lib /usr/lib"
10018: need_lib_prefix=unknown
10019: hardcode_into_libs=no
10020:
10021: # when you set need_version to no, make sure it does not cause -set_version
10022: # flags to be left without arguments
10023: need_version=unknown
10024:
10025: case $host_os in
10026: aix3*)
10027: version_type=linux # correct to gnu/linux during the next big refactor
10028: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10029: shlibpath_var=LIBPATH
10030:
10031: # AIX 3 has no versioning support, so we append a major version to the name.
10032: soname_spec='${libname}${release}${shared_ext}$major'
10033: ;;
10034:
10035: aix[4-9]*)
10036: version_type=linux # correct to gnu/linux during the next big refactor
10037: need_lib_prefix=no
10038: need_version=no
10039: hardcode_into_libs=yes
10040: if test "$host_cpu" = ia64; then
10041: # AIX 5 supports IA64
10042: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10043: shlibpath_var=LD_LIBRARY_PATH
1.10 paf 10044: else
1.23 moko 10045: # With GCC up to 2.95.x, collect2 would create an import file
10046: # for dependence libraries. The import file would start with
10047: # the line `#! .'. This would cause the generated library to
10048: # depend on `.', always an invalid library. This was fixed in
10049: # development snapshots of GCC prior to 3.0.
10050: case $host_os in
10051: aix4 | aix4.[01] | aix4.[01].*)
10052: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10053: echo ' yes '
10054: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10055: :
10056: else
10057: can_build_shared=no
10058: fi
10059: ;;
10060: esac
10061: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10062: # soname into executable. Probably we can add versioning support to
10063: # collect2, so additional links can be useful in future.
10064: if test "$aix_use_runtimelinking" = yes; then
10065: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10066: # instead of lib<name>.a to let people know that these are not
10067: # typical AIX shared libraries.
10068: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10069: else
10070: # We preserve .a as extension for shared libraries through AIX4.2
10071: # and later when we are not doing run time linking.
10072: library_names_spec='${libname}${release}.a $libname.a'
10073: soname_spec='${libname}${release}${shared_ext}$major'
10074: fi
10075: shlibpath_var=LIBPATH
1.1 parser 10076: fi
1.23 moko 10077: ;;
10078:
10079: amigaos*)
10080: case $host_cpu in
10081: powerpc)
10082: # Since July 2007 AmigaOS4 officially supports .so libraries.
10083: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10084: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10085: ;;
10086: m68k)
10087: library_names_spec='$libname.ixlibrary $libname.a'
10088: # Create ${libname}_ixlibrary.a entries in /sys/libs.
10089: finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10090: ;;
1.16 paf 10091: esac
1.23 moko 10092: ;;
10093:
10094: beos*)
10095: library_names_spec='${libname}${shared_ext}'
10096: dynamic_linker="$host_os ld.so"
10097: shlibpath_var=LIBRARY_PATH
10098: ;;
10099:
10100: bsdi[45]*)
10101: version_type=linux # correct to gnu/linux during the next big refactor
10102: need_version=no
10103: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10104: soname_spec='${libname}${release}${shared_ext}$major'
10105: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10106: shlibpath_var=LD_LIBRARY_PATH
10107: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10108: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10109: # the default ld.so.conf also contains /usr/contrib/lib and
10110: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10111: # libtool to hard-code these into programs
10112: ;;
10113:
10114: cygwin* | mingw* | pw32* | cegcc*)
10115: version_type=windows
10116: shrext_cmds=".dll"
10117: need_version=no
10118: need_lib_prefix=no
10119:
10120: case $GCC,$cc_basename in
10121: yes,*)
10122: # gcc
10123: library_names_spec='$libname.dll.a'
10124: # DLL is installed to $(libdir)/../bin by postinstall_cmds
10125: postinstall_cmds='base_file=`basename \${file}`~
10126: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10127: dldir=$destdir/`dirname \$dlpath`~
10128: test -d \$dldir || mkdir -p \$dldir~
10129: $install_prog $dir/$dlname \$dldir/$dlname~
10130: chmod a+x \$dldir/$dlname~
10131: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10132: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10133: fi'
10134: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10135: dlpath=$dir/\$dldll~
10136: $RM \$dlpath'
10137: shlibpath_overrides_runpath=yes
10138:
10139: case $host_os in
10140: cygwin*)
10141: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10142: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10143:
10144: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10145: ;;
10146: mingw* | cegcc*)
10147: # MinGW DLLs use traditional 'lib' prefix
10148: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10149: ;;
10150: pw32*)
10151: # pw32 DLLs use 'pw' prefix rather than 'lib'
10152: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10153: ;;
10154: esac
10155: dynamic_linker='Win32 ld.exe'
10156: ;;
10157:
10158: *,cl*)
10159: # Native MSVC
10160: libname_spec='$name'
10161: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10162: library_names_spec='${libname}.dll.lib'
10163:
10164: case $build_os in
10165: mingw*)
10166: sys_lib_search_path_spec=
10167: lt_save_ifs=$IFS
10168: IFS=';'
10169: for lt_path in $LIB
10170: do
10171: IFS=$lt_save_ifs
10172: # Let DOS variable expansion print the short 8.3 style file name.
10173: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10174: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10175: done
10176: IFS=$lt_save_ifs
10177: # Convert to MSYS style.
10178: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10179: ;;
10180: cygwin*)
10181: # Convert to unix form, then to dos form, then back to unix form
10182: # but this time dos style (no spaces!) so that the unix form looks
10183: # like /cygdrive/c/PROGRA~1:/cygdr...
10184: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10185: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10186: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10187: ;;
10188: *)
10189: sys_lib_search_path_spec="$LIB"
10190: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10191: # It is most probably a Windows format PATH.
10192: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10193: else
10194: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10195: fi
10196: # FIXME: find the short name or the path components, as spaces are
10197: # common. (e.g. "Program Files" -> "PROGRA~1")
10198: ;;
10199: esac
10200:
10201: # DLL is installed to $(libdir)/../bin by postinstall_cmds
10202: postinstall_cmds='base_file=`basename \${file}`~
10203: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10204: dldir=$destdir/`dirname \$dlpath`~
10205: test -d \$dldir || mkdir -p \$dldir~
10206: $install_prog $dir/$dlname \$dldir/$dlname'
10207: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10208: dlpath=$dir/\$dldll~
10209: $RM \$dlpath'
10210: shlibpath_overrides_runpath=yes
10211: dynamic_linker='Win32 link.exe'
10212: ;;
10213:
10214: *)
10215: # Assume MSVC wrapper
10216: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10217: dynamic_linker='Win32 ld.exe'
10218: ;;
10219: esac
10220: # FIXME: first we should search . and the directory the executable is in
10221: shlibpath_var=PATH
10222: ;;
10223:
10224: darwin* | rhapsody*)
10225: dynamic_linker="$host_os dyld"
10226: version_type=darwin
10227: need_lib_prefix=no
10228: need_version=no
10229: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10230: soname_spec='${libname}${release}${major}$shared_ext'
10231: shlibpath_overrides_runpath=yes
10232: shlibpath_var=DYLD_LIBRARY_PATH
10233: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10234:
10235: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10236: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10237: ;;
10238:
10239: dgux*)
10240: version_type=linux # correct to gnu/linux during the next big refactor
10241: need_lib_prefix=no
10242: need_version=no
10243: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10244: soname_spec='${libname}${release}${shared_ext}$major'
10245: shlibpath_var=LD_LIBRARY_PATH
10246: ;;
10247:
10248: freebsd* | dragonfly*)
10249: # DragonFly does not have aout. When/if they implement a new
10250: # versioning mechanism, adjust this.
10251: if test -x /usr/bin/objformat; then
10252: objformat=`/usr/bin/objformat`
10253: else
10254: case $host_os in
10255: freebsd[23].*) objformat=aout ;;
10256: *) objformat=elf ;;
10257: esac
10258: fi
10259: version_type=freebsd-$objformat
10260: case $version_type in
10261: freebsd-elf*)
10262: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10263: need_version=no
10264: need_lib_prefix=no
10265: ;;
10266: freebsd-*)
10267: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10268: need_version=yes
10269: ;;
10270: esac
10271: shlibpath_var=LD_LIBRARY_PATH
10272: case $host_os in
10273: freebsd2.*)
10274: shlibpath_overrides_runpath=yes
10275: ;;
10276: freebsd3.[01]* | freebsdelf3.[01]*)
10277: shlibpath_overrides_runpath=yes
10278: hardcode_into_libs=yes
10279: ;;
10280: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10281: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10282: shlibpath_overrides_runpath=no
10283: hardcode_into_libs=yes
10284: ;;
10285: *) # from 4.6 on, and DragonFly
10286: shlibpath_overrides_runpath=yes
10287: hardcode_into_libs=yes
10288: ;;
10289: esac
10290: ;;
10291:
10292: gnu*)
10293: version_type=linux # correct to gnu/linux during the next big refactor
10294: need_lib_prefix=no
10295: need_version=no
10296: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10297: soname_spec='${libname}${release}${shared_ext}$major'
10298: shlibpath_var=LD_LIBRARY_PATH
10299: shlibpath_overrides_runpath=no
10300: hardcode_into_libs=yes
10301: ;;
10302:
10303: haiku*)
10304: version_type=linux # correct to gnu/linux during the next big refactor
10305: need_lib_prefix=no
10306: need_version=no
10307: dynamic_linker="$host_os runtime_loader"
10308: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10309: soname_spec='${libname}${release}${shared_ext}$major'
10310: shlibpath_var=LIBRARY_PATH
10311: shlibpath_overrides_runpath=yes
10312: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10313: hardcode_into_libs=yes
10314: ;;
10315:
10316: hpux9* | hpux10* | hpux11*)
10317: # Give a soname corresponding to the major version so that dld.sl refuses to
10318: # link against other versions.
10319: version_type=sunos
10320: need_lib_prefix=no
10321: need_version=no
10322: case $host_cpu in
10323: ia64*)
10324: shrext_cmds='.so'
10325: hardcode_into_libs=yes
10326: dynamic_linker="$host_os dld.so"
10327: shlibpath_var=LD_LIBRARY_PATH
10328: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10329: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10330: soname_spec='${libname}${release}${shared_ext}$major'
10331: if test "X$HPUX_IA64_MODE" = X32; then
10332: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10333: else
10334: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10335: fi
10336: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10337: ;;
10338: hppa*64*)
10339: shrext_cmds='.sl'
10340: hardcode_into_libs=yes
10341: dynamic_linker="$host_os dld.sl"
10342: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10343: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10344: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10345: soname_spec='${libname}${release}${shared_ext}$major'
10346: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10347: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10348: ;;
10349: *)
10350: shrext_cmds='.sl'
10351: dynamic_linker="$host_os dld.sl"
10352: shlibpath_var=SHLIB_PATH
10353: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10354: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10355: soname_spec='${libname}${release}${shared_ext}$major'
10356: ;;
10357: esac
10358: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10359: postinstall_cmds='chmod 555 $lib'
10360: # or fails outright, so override atomically:
10361: install_override_mode=555
10362: ;;
10363:
10364: interix[3-9]*)
10365: version_type=linux # correct to gnu/linux during the next big refactor
10366: need_lib_prefix=no
10367: need_version=no
10368: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10369: soname_spec='${libname}${release}${shared_ext}$major'
10370: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10371: shlibpath_var=LD_LIBRARY_PATH
10372: shlibpath_overrides_runpath=no
10373: hardcode_into_libs=yes
10374: ;;
10375:
10376: irix5* | irix6* | nonstopux*)
10377: case $host_os in
10378: nonstopux*) version_type=nonstopux ;;
10379: *)
10380: if test "$lt_cv_prog_gnu_ld" = yes; then
10381: version_type=linux # correct to gnu/linux during the next big refactor
10382: else
10383: version_type=irix
10384: fi ;;
10385: esac
10386: need_lib_prefix=no
10387: need_version=no
10388: soname_spec='${libname}${release}${shared_ext}$major'
10389: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10390: case $host_os in
10391: irix5* | nonstopux*)
10392: libsuff= shlibsuff=
10393: ;;
10394: *)
10395: case $LD in # libtool.m4 will add one of these switches to LD
10396: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10397: libsuff= shlibsuff= libmagic=32-bit;;
10398: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10399: libsuff=32 shlibsuff=N32 libmagic=N32;;
10400: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10401: libsuff=64 shlibsuff=64 libmagic=64-bit;;
10402: *) libsuff= shlibsuff= libmagic=never-match;;
10403: esac
10404: ;;
10405: esac
10406: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10407: shlibpath_overrides_runpath=no
10408: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10409: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10410: hardcode_into_libs=yes
10411: ;;
10412:
10413: # No shared lib support for Linux oldld, aout, or coff.
10414: linux*oldld* | linux*aout* | linux*coff*)
10415: dynamic_linker=no
10416: ;;
10417:
10418: # This must be glibc/ELF.
10419: linux* | k*bsd*-gnu | kopensolaris*-gnu)
10420: version_type=linux # correct to gnu/linux during the next big refactor
10421: need_lib_prefix=no
10422: need_version=no
10423: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10424: soname_spec='${libname}${release}${shared_ext}$major'
10425: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10426: shlibpath_var=LD_LIBRARY_PATH
10427: shlibpath_overrides_runpath=no
10428:
10429: # Some binutils ld are patched to set DT_RUNPATH
10430: if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
10431: echo $ECHO_N "(cached) $ECHO_C" >&6
10432: else
10433: lt_cv_shlibpath_overrides_runpath=no
10434: save_LDFLAGS=$LDFLAGS
10435: save_libdir=$libdir
10436: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10437: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10438: cat >conftest.$ac_ext <<_ACEOF
10439: /* confdefs.h. */
10440: _ACEOF
10441: cat confdefs.h >>conftest.$ac_ext
10442: cat >>conftest.$ac_ext <<_ACEOF
10443: /* end confdefs.h. */
10444:
10445: int
10446: main ()
10447: {
10448:
10449: ;
10450: return 0;
10451: }
10452: _ACEOF
10453: rm -f conftest.$ac_objext conftest$ac_exeext
10454: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10455: (eval $ac_link) 2>conftest.er1
10456: ac_status=$?
10457: grep -v '^ *+' conftest.er1 >conftest.err
10458: rm -f conftest.er1
10459: cat conftest.err >&5
10460: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10461: (exit $ac_status); } &&
10462: { ac_try='test -z "$ac_c_werror_flag"
10463: || test ! -s conftest.err'
10464: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10465: (eval $ac_try) 2>&5
10466: ac_status=$?
10467: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10468: (exit $ac_status); }; } &&
10469: { ac_try='test -s conftest$ac_exeext'
10470: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10471: (eval $ac_try) 2>&5
10472: ac_status=$?
10473: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474: (exit $ac_status); }; }; then
10475: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10476: lt_cv_shlibpath_overrides_runpath=yes
10477: fi
10478:
10479: else
10480: echo "$as_me: failed program was:" >&5
10481: sed 's/^/| /' conftest.$ac_ext >&5
10482:
10483: fi
10484: rm -f conftest.err conftest.$ac_objext \
10485: conftest$ac_exeext conftest.$ac_ext
10486: LDFLAGS=$save_LDFLAGS
10487: libdir=$save_libdir
10488:
10489: fi
10490:
10491: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10492:
10493: # This implies no fast_install, which is unacceptable.
10494: # Some rework will be needed to allow for fast_install
10495: # before this can be enabled.
10496: hardcode_into_libs=yes
10497:
10498: # Append ld.so.conf contents to the search path
10499: if test -f /etc/ld.so.conf; then
10500: lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10501: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10502: fi
10503:
10504: # We used to test for /lib/ld.so.1 and disable shared libraries on
10505: # powerpc, because MkLinux only supported shared libraries with the
10506: # GNU dynamic linker. Since this was broken with cross compilers,
10507: # most powerpc-linux boxes support dynamic linking these days and
10508: # people can always --disable-shared, the test was removed, and we
10509: # assume the GNU/Linux dynamic linker is in use.
10510: dynamic_linker='GNU/Linux ld.so'
10511: ;;
10512:
10513: netbsd*)
10514: version_type=sunos
10515: need_lib_prefix=no
10516: need_version=no
10517: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10518: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10519: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10520: dynamic_linker='NetBSD (a.out) ld.so'
10521: else
10522: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10523: soname_spec='${libname}${release}${shared_ext}$major'
10524: dynamic_linker='NetBSD ld.elf_so'
10525: fi
10526: shlibpath_var=LD_LIBRARY_PATH
10527: shlibpath_overrides_runpath=yes
10528: hardcode_into_libs=yes
10529: ;;
10530:
10531: newsos6)
10532: version_type=linux # correct to gnu/linux during the next big refactor
10533: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10534: shlibpath_var=LD_LIBRARY_PATH
10535: shlibpath_overrides_runpath=yes
10536: ;;
10537:
10538: *nto* | *qnx*)
10539: version_type=qnx
10540: need_lib_prefix=no
10541: need_version=no
10542: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10543: soname_spec='${libname}${release}${shared_ext}$major'
10544: shlibpath_var=LD_LIBRARY_PATH
10545: shlibpath_overrides_runpath=no
10546: hardcode_into_libs=yes
10547: dynamic_linker='ldqnx.so'
10548: ;;
10549:
10550: openbsd*)
10551: version_type=sunos
10552: sys_lib_dlsearch_path_spec="/usr/lib"
10553: need_lib_prefix=no
10554: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10555: case $host_os in
10556: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10557: *) need_version=no ;;
10558: esac
10559: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10560: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10561: shlibpath_var=LD_LIBRARY_PATH
10562: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10563: case $host_os in
10564: openbsd2.[89] | openbsd2.[89].*)
10565: shlibpath_overrides_runpath=no
10566: ;;
10567: *)
10568: shlibpath_overrides_runpath=yes
10569: ;;
10570: esac
10571: else
10572: shlibpath_overrides_runpath=yes
10573: fi
10574: ;;
10575:
10576: os2*)
10577: libname_spec='$name'
10578: shrext_cmds=".dll"
10579: need_lib_prefix=no
10580: library_names_spec='$libname${shared_ext} $libname.a'
10581: dynamic_linker='OS/2 ld.exe'
10582: shlibpath_var=LIBPATH
10583: ;;
10584:
10585: osf3* | osf4* | osf5*)
10586: version_type=osf
10587: need_lib_prefix=no
10588: need_version=no
10589: soname_spec='${libname}${release}${shared_ext}$major'
10590: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10591: shlibpath_var=LD_LIBRARY_PATH
10592: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10593: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10594: ;;
10595:
10596: rdos*)
10597: dynamic_linker=no
10598: ;;
10599:
10600: solaris*)
10601: version_type=linux # correct to gnu/linux during the next big refactor
10602: need_lib_prefix=no
10603: need_version=no
10604: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10605: soname_spec='${libname}${release}${shared_ext}$major'
10606: shlibpath_var=LD_LIBRARY_PATH
10607: shlibpath_overrides_runpath=yes
10608: hardcode_into_libs=yes
10609: # ldd complains unless libraries are executable
10610: postinstall_cmds='chmod +x $lib'
10611: ;;
10612:
10613: sunos4*)
10614: version_type=sunos
10615: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10616: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10617: shlibpath_var=LD_LIBRARY_PATH
10618: shlibpath_overrides_runpath=yes
10619: if test "$with_gnu_ld" = yes; then
10620: need_lib_prefix=no
10621: fi
10622: need_version=yes
10623: ;;
10624:
10625: sysv4 | sysv4.3*)
10626: version_type=linux # correct to gnu/linux during the next big refactor
10627: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10628: soname_spec='${libname}${release}${shared_ext}$major'
10629: shlibpath_var=LD_LIBRARY_PATH
10630: case $host_vendor in
10631: sni)
10632: shlibpath_overrides_runpath=no
10633: need_lib_prefix=no
10634: runpath_var=LD_RUN_PATH
10635: ;;
10636: siemens)
10637: need_lib_prefix=no
10638: ;;
10639: motorola)
10640: need_lib_prefix=no
10641: need_version=no
10642: shlibpath_overrides_runpath=no
10643: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10644: ;;
10645: esac
10646: ;;
10647:
10648: sysv4*MP*)
10649: if test -d /usr/nec ;then
10650: version_type=linux # correct to gnu/linux during the next big refactor
10651: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10652: soname_spec='$libname${shared_ext}.$major'
10653: shlibpath_var=LD_LIBRARY_PATH
10654: fi
10655: ;;
10656:
10657: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10658: version_type=freebsd-elf
10659: need_lib_prefix=no
10660: need_version=no
10661: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10662: soname_spec='${libname}${release}${shared_ext}$major'
10663: shlibpath_var=LD_LIBRARY_PATH
10664: shlibpath_overrides_runpath=yes
10665: hardcode_into_libs=yes
10666: if test "$with_gnu_ld" = yes; then
10667: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10668: else
10669: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10670: case $host_os in
10671: sco3.2v5*)
10672: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10673: ;;
10674: esac
10675: fi
10676: sys_lib_dlsearch_path_spec='/usr/lib'
10677: ;;
10678:
10679: tpf*)
10680: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10681: version_type=linux # correct to gnu/linux during the next big refactor
10682: need_lib_prefix=no
10683: need_version=no
10684: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10685: shlibpath_var=LD_LIBRARY_PATH
10686: shlibpath_overrides_runpath=no
10687: hardcode_into_libs=yes
10688: ;;
10689:
10690: uts4*)
10691: version_type=linux # correct to gnu/linux during the next big refactor
10692: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10693: soname_spec='${libname}${release}${shared_ext}$major'
10694: shlibpath_var=LD_LIBRARY_PATH
10695: ;;
10696:
10697: *)
10698: dynamic_linker=no
10699: ;;
10700: esac
10701: echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10702: echo "${ECHO_T}$dynamic_linker" >&6
10703: test "$dynamic_linker" = no && can_build_shared=no
10704:
10705: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10706: if test "$GCC" = yes; then
10707: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10708: fi
10709:
10710: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10711: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10712: fi
10713: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10714: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10715: fi
10716:
10717:
10718:
10719:
10720:
10721:
10722:
10723:
10724:
10725:
10726:
10727:
10728:
10729:
10730:
10731:
10732:
10733:
10734:
10735:
10736:
10737:
10738:
10739:
10740:
10741:
10742:
10743:
10744:
10745:
10746:
10747:
10748:
10749:
10750:
10751:
10752:
10753:
10754:
10755:
10756:
10757:
10758:
10759:
10760:
10761:
10762:
10763:
10764:
10765:
10766:
10767:
10768:
10769:
10770:
10771:
10772:
10773:
10774:
10775:
10776:
10777:
10778:
10779:
10780:
10781:
10782:
10783:
10784:
10785:
10786:
10787:
10788:
10789:
10790:
10791:
10792:
10793:
10794:
10795:
10796:
10797:
10798:
10799:
10800:
10801:
10802:
10803:
10804:
10805:
10806:
10807:
10808: echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10809: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10810: hardcode_action=
10811: if test -n "$hardcode_libdir_flag_spec" ||
10812: test -n "$runpath_var" ||
10813: test "X$hardcode_automatic" = "Xyes" ; then
10814:
10815: # We can hardcode non-existent directories.
10816: if test "$hardcode_direct" != no &&
10817: # If the only mechanism to avoid hardcoding is shlibpath_var, we
10818: # have to relink, otherwise we might link with an installed library
10819: # when we should be linking with a yet-to-be-installed one
10820: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10821: test "$hardcode_minus_L" != no; then
10822: # Linking always hardcodes the temporary library directory.
10823: hardcode_action=relink
10824: else
10825: # We can link without hardcoding, and we can hardcode nonexisting dirs.
10826: hardcode_action=immediate
10827: fi
10828: else
10829: # We cannot hardcode anything, or else we can only hardcode existing
10830: # directories.
10831: hardcode_action=unsupported
10832: fi
10833: echo "$as_me:$LINENO: result: $hardcode_action" >&5
10834: echo "${ECHO_T}$hardcode_action" >&6
10835:
10836: if test "$hardcode_action" = relink ||
10837: test "$inherit_rpath" = yes; then
10838: # Fast installation is not supported
10839: enable_fast_install=no
10840: elif test "$shlibpath_overrides_runpath" = yes ||
10841: test "$enable_shared" = no; then
10842: # Fast installation is not necessary
10843: enable_fast_install=needless
10844: fi
10845:
10846:
10847:
10848:
10849:
10850:
10851: if test "x$enable_dlopen" != xyes; then
10852: enable_dlopen=unknown
10853: enable_dlopen_self=unknown
10854: enable_dlopen_self_static=unknown
10855: else
10856: lt_cv_dlopen=no
10857: lt_cv_dlopen_libs=
10858:
10859: case $host_os in
10860: beos*)
10861: lt_cv_dlopen="load_add_on"
10862: lt_cv_dlopen_libs=
10863: lt_cv_dlopen_self=yes
10864: ;;
10865:
10866: mingw* | pw32* | cegcc*)
10867: lt_cv_dlopen="LoadLibrary"
10868: lt_cv_dlopen_libs=
10869: ;;
10870:
10871: cygwin*)
10872: lt_cv_dlopen="dlopen"
10873: lt_cv_dlopen_libs=
10874: ;;
10875:
10876: darwin*)
10877: # if libdl is installed we need to link against it
10878: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10879: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10880: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10881: echo $ECHO_N "(cached) $ECHO_C" >&6
10882: else
10883: ac_check_lib_save_LIBS=$LIBS
10884: LIBS="-ldl $LIBS"
10885: cat >conftest.$ac_ext <<_ACEOF
10886: /* confdefs.h. */
10887: _ACEOF
10888: cat confdefs.h >>conftest.$ac_ext
10889: cat >>conftest.$ac_ext <<_ACEOF
10890: /* end confdefs.h. */
10891:
10892: /* Override any gcc2 internal prototype to avoid an error. */
10893: #ifdef __cplusplus
10894: extern "C"
10895: #endif
10896: /* We use char because int might match the return type of a gcc2
10897: builtin and then its argument prototype would still apply. */
10898: char dlopen ();
10899: int
10900: main ()
10901: {
10902: dlopen ();
10903: ;
10904: return 0;
10905: }
10906: _ACEOF
10907: rm -f conftest.$ac_objext conftest$ac_exeext
10908: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10909: (eval $ac_link) 2>conftest.er1
10910: ac_status=$?
10911: grep -v '^ *+' conftest.er1 >conftest.err
10912: rm -f conftest.er1
10913: cat conftest.err >&5
10914: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10915: (exit $ac_status); } &&
10916: { ac_try='test -z "$ac_c_werror_flag"
10917: || test ! -s conftest.err'
10918: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10919: (eval $ac_try) 2>&5
10920: ac_status=$?
10921: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922: (exit $ac_status); }; } &&
10923: { ac_try='test -s conftest$ac_exeext'
10924: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10925: (eval $ac_try) 2>&5
10926: ac_status=$?
10927: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10928: (exit $ac_status); }; }; then
10929: ac_cv_lib_dl_dlopen=yes
10930: else
10931: echo "$as_me: failed program was:" >&5
10932: sed 's/^/| /' conftest.$ac_ext >&5
10933:
10934: ac_cv_lib_dl_dlopen=no
10935: fi
10936: rm -f conftest.err conftest.$ac_objext \
10937: conftest$ac_exeext conftest.$ac_ext
10938: LIBS=$ac_check_lib_save_LIBS
10939: fi
10940: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10941: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10942: if test $ac_cv_lib_dl_dlopen = yes; then
10943: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10944: else
10945:
10946: lt_cv_dlopen="dyld"
10947: lt_cv_dlopen_libs=
10948: lt_cv_dlopen_self=yes
10949:
10950: fi
10951:
10952: ;;
10953:
10954: *)
10955: echo "$as_me:$LINENO: checking for shl_load" >&5
10956: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10957: if test "${ac_cv_func_shl_load+set}" = set; then
10958: echo $ECHO_N "(cached) $ECHO_C" >&6
10959: else
10960: cat >conftest.$ac_ext <<_ACEOF
10961: /* confdefs.h. */
10962: _ACEOF
10963: cat confdefs.h >>conftest.$ac_ext
10964: cat >>conftest.$ac_ext <<_ACEOF
10965: /* end confdefs.h. */
10966: /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10967: For example, HP-UX 11i <limits.h> declares gettimeofday. */
10968: #define shl_load innocuous_shl_load
10969:
10970: /* System header to define __stub macros and hopefully few prototypes,
10971: which can conflict with char shl_load (); below.
10972: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10973: <limits.h> exists even on freestanding compilers. */
10974:
10975: #ifdef __STDC__
10976: # include <limits.h>
10977: #else
10978: # include <assert.h>
10979: #endif
10980:
10981: #undef shl_load
10982:
10983: /* Override any gcc2 internal prototype to avoid an error. */
10984: #ifdef __cplusplus
10985: extern "C"
10986: {
10987: #endif
10988: /* We use char because int might match the return type of a gcc2
10989: builtin and then its argument prototype would still apply. */
10990: char shl_load ();
10991: /* The GNU C library defines this for functions which it implements
10992: to always fail with ENOSYS. Some functions are actually named
10993: something starting with __ and the normal name is an alias. */
10994: #if defined (__stub_shl_load) || defined (__stub___shl_load)
10995: choke me
10996: #else
10997: char (*f) () = shl_load;
10998: #endif
10999: #ifdef __cplusplus
11000: }
11001: #endif
11002:
11003: int
11004: main ()
11005: {
11006: return f != shl_load;
11007: ;
11008: return 0;
11009: }
11010: _ACEOF
11011: rm -f conftest.$ac_objext conftest$ac_exeext
11012: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11013: (eval $ac_link) 2>conftest.er1
11014: ac_status=$?
11015: grep -v '^ *+' conftest.er1 >conftest.err
11016: rm -f conftest.er1
11017: cat conftest.err >&5
11018: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11019: (exit $ac_status); } &&
11020: { ac_try='test -z "$ac_c_werror_flag"
11021: || test ! -s conftest.err'
11022: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11023: (eval $ac_try) 2>&5
11024: ac_status=$?
11025: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026: (exit $ac_status); }; } &&
11027: { ac_try='test -s conftest$ac_exeext'
11028: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11029: (eval $ac_try) 2>&5
11030: ac_status=$?
11031: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11032: (exit $ac_status); }; }; then
11033: ac_cv_func_shl_load=yes
11034: else
11035: echo "$as_me: failed program was:" >&5
11036: sed 's/^/| /' conftest.$ac_ext >&5
11037:
11038: ac_cv_func_shl_load=no
11039: fi
11040: rm -f conftest.err conftest.$ac_objext \
11041: conftest$ac_exeext conftest.$ac_ext
11042: fi
11043: echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11044: echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11045: if test $ac_cv_func_shl_load = yes; then
11046: lt_cv_dlopen="shl_load"
11047: else
11048: echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11049: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11050: if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11051: echo $ECHO_N "(cached) $ECHO_C" >&6
11052: else
11053: ac_check_lib_save_LIBS=$LIBS
11054: LIBS="-ldld $LIBS"
11055: cat >conftest.$ac_ext <<_ACEOF
11056: /* confdefs.h. */
11057: _ACEOF
11058: cat confdefs.h >>conftest.$ac_ext
11059: cat >>conftest.$ac_ext <<_ACEOF
11060: /* end confdefs.h. */
11061:
11062: /* Override any gcc2 internal prototype to avoid an error. */
11063: #ifdef __cplusplus
11064: extern "C"
11065: #endif
11066: /* We use char because int might match the return type of a gcc2
11067: builtin and then its argument prototype would still apply. */
11068: char shl_load ();
11069: int
11070: main ()
11071: {
11072: shl_load ();
11073: ;
11074: return 0;
11075: }
11076: _ACEOF
11077: rm -f conftest.$ac_objext conftest$ac_exeext
11078: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11079: (eval $ac_link) 2>conftest.er1
11080: ac_status=$?
11081: grep -v '^ *+' conftest.er1 >conftest.err
11082: rm -f conftest.er1
11083: cat conftest.err >&5
11084: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11085: (exit $ac_status); } &&
11086: { ac_try='test -z "$ac_c_werror_flag"
11087: || test ! -s conftest.err'
11088: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11089: (eval $ac_try) 2>&5
11090: ac_status=$?
11091: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11092: (exit $ac_status); }; } &&
11093: { ac_try='test -s conftest$ac_exeext'
11094: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11095: (eval $ac_try) 2>&5
11096: ac_status=$?
11097: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11098: (exit $ac_status); }; }; then
11099: ac_cv_lib_dld_shl_load=yes
11100: else
11101: echo "$as_me: failed program was:" >&5
11102: sed 's/^/| /' conftest.$ac_ext >&5
11103:
11104: ac_cv_lib_dld_shl_load=no
11105: fi
11106: rm -f conftest.err conftest.$ac_objext \
11107: conftest$ac_exeext conftest.$ac_ext
11108: LIBS=$ac_check_lib_save_LIBS
11109: fi
11110: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11111: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11112: if test $ac_cv_lib_dld_shl_load = yes; then
11113: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11114: else
11115: echo "$as_me:$LINENO: checking for dlopen" >&5
11116: echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11117: if test "${ac_cv_func_dlopen+set}" = set; then
11118: echo $ECHO_N "(cached) $ECHO_C" >&6
11119: else
11120: cat >conftest.$ac_ext <<_ACEOF
11121: /* confdefs.h. */
11122: _ACEOF
11123: cat confdefs.h >>conftest.$ac_ext
11124: cat >>conftest.$ac_ext <<_ACEOF
11125: /* end confdefs.h. */
11126: /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11127: For example, HP-UX 11i <limits.h> declares gettimeofday. */
11128: #define dlopen innocuous_dlopen
11129:
11130: /* System header to define __stub macros and hopefully few prototypes,
11131: which can conflict with char dlopen (); below.
11132: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11133: <limits.h> exists even on freestanding compilers. */
11134:
11135: #ifdef __STDC__
11136: # include <limits.h>
11137: #else
11138: # include <assert.h>
11139: #endif
11140:
11141: #undef dlopen
11142:
11143: /* Override any gcc2 internal prototype to avoid an error. */
11144: #ifdef __cplusplus
11145: extern "C"
11146: {
11147: #endif
11148: /* We use char because int might match the return type of a gcc2
11149: builtin and then its argument prototype would still apply. */
11150: char dlopen ();
11151: /* The GNU C library defines this for functions which it implements
11152: to always fail with ENOSYS. Some functions are actually named
11153: something starting with __ and the normal name is an alias. */
11154: #if defined (__stub_dlopen) || defined (__stub___dlopen)
11155: choke me
11156: #else
11157: char (*f) () = dlopen;
11158: #endif
11159: #ifdef __cplusplus
11160: }
11161: #endif
11162:
11163: int
11164: main ()
11165: {
11166: return f != dlopen;
11167: ;
11168: return 0;
11169: }
11170: _ACEOF
11171: rm -f conftest.$ac_objext conftest$ac_exeext
11172: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11173: (eval $ac_link) 2>conftest.er1
11174: ac_status=$?
11175: grep -v '^ *+' conftest.er1 >conftest.err
11176: rm -f conftest.er1
11177: cat conftest.err >&5
11178: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179: (exit $ac_status); } &&
11180: { ac_try='test -z "$ac_c_werror_flag"
11181: || test ! -s conftest.err'
11182: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11183: (eval $ac_try) 2>&5
11184: ac_status=$?
11185: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186: (exit $ac_status); }; } &&
11187: { ac_try='test -s conftest$ac_exeext'
11188: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11189: (eval $ac_try) 2>&5
11190: ac_status=$?
11191: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11192: (exit $ac_status); }; }; then
11193: ac_cv_func_dlopen=yes
11194: else
11195: echo "$as_me: failed program was:" >&5
11196: sed 's/^/| /' conftest.$ac_ext >&5
11197:
11198: ac_cv_func_dlopen=no
11199: fi
11200: rm -f conftest.err conftest.$ac_objext \
11201: conftest$ac_exeext conftest.$ac_ext
11202: fi
11203: echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11204: echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11205: if test $ac_cv_func_dlopen = yes; then
11206: lt_cv_dlopen="dlopen"
11207: else
11208: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11209: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11210: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11211: echo $ECHO_N "(cached) $ECHO_C" >&6
11212: else
11213: ac_check_lib_save_LIBS=$LIBS
11214: LIBS="-ldl $LIBS"
11215: cat >conftest.$ac_ext <<_ACEOF
11216: /* confdefs.h. */
11217: _ACEOF
11218: cat confdefs.h >>conftest.$ac_ext
11219: cat >>conftest.$ac_ext <<_ACEOF
11220: /* end confdefs.h. */
11221:
11222: /* Override any gcc2 internal prototype to avoid an error. */
11223: #ifdef __cplusplus
11224: extern "C"
11225: #endif
11226: /* We use char because int might match the return type of a gcc2
11227: builtin and then its argument prototype would still apply. */
11228: char dlopen ();
11229: int
11230: main ()
11231: {
11232: dlopen ();
11233: ;
11234: return 0;
11235: }
11236: _ACEOF
11237: rm -f conftest.$ac_objext conftest$ac_exeext
11238: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11239: (eval $ac_link) 2>conftest.er1
11240: ac_status=$?
11241: grep -v '^ *+' conftest.er1 >conftest.err
11242: rm -f conftest.er1
11243: cat conftest.err >&5
11244: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11245: (exit $ac_status); } &&
11246: { ac_try='test -z "$ac_c_werror_flag"
11247: || test ! -s conftest.err'
11248: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11249: (eval $ac_try) 2>&5
11250: ac_status=$?
11251: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11252: (exit $ac_status); }; } &&
11253: { ac_try='test -s conftest$ac_exeext'
11254: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11255: (eval $ac_try) 2>&5
11256: ac_status=$?
11257: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11258: (exit $ac_status); }; }; then
11259: ac_cv_lib_dl_dlopen=yes
11260: else
11261: echo "$as_me: failed program was:" >&5
11262: sed 's/^/| /' conftest.$ac_ext >&5
11263:
11264: ac_cv_lib_dl_dlopen=no
11265: fi
11266: rm -f conftest.err conftest.$ac_objext \
11267: conftest$ac_exeext conftest.$ac_ext
11268: LIBS=$ac_check_lib_save_LIBS
11269: fi
11270: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11271: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11272: if test $ac_cv_lib_dl_dlopen = yes; then
11273: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11274: else
11275: echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11276: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11277: if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11278: echo $ECHO_N "(cached) $ECHO_C" >&6
11279: else
11280: ac_check_lib_save_LIBS=$LIBS
11281: LIBS="-lsvld $LIBS"
11282: cat >conftest.$ac_ext <<_ACEOF
11283: /* confdefs.h. */
11284: _ACEOF
11285: cat confdefs.h >>conftest.$ac_ext
11286: cat >>conftest.$ac_ext <<_ACEOF
11287: /* end confdefs.h. */
11288:
11289: /* Override any gcc2 internal prototype to avoid an error. */
11290: #ifdef __cplusplus
11291: extern "C"
11292: #endif
11293: /* We use char because int might match the return type of a gcc2
11294: builtin and then its argument prototype would still apply. */
11295: char dlopen ();
11296: int
11297: main ()
11298: {
11299: dlopen ();
11300: ;
11301: return 0;
11302: }
11303: _ACEOF
11304: rm -f conftest.$ac_objext conftest$ac_exeext
11305: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11306: (eval $ac_link) 2>conftest.er1
11307: ac_status=$?
11308: grep -v '^ *+' conftest.er1 >conftest.err
11309: rm -f conftest.er1
11310: cat conftest.err >&5
11311: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312: (exit $ac_status); } &&
11313: { ac_try='test -z "$ac_c_werror_flag"
11314: || test ! -s conftest.err'
11315: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11316: (eval $ac_try) 2>&5
11317: ac_status=$?
11318: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11319: (exit $ac_status); }; } &&
11320: { ac_try='test -s conftest$ac_exeext'
11321: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11322: (eval $ac_try) 2>&5
11323: ac_status=$?
11324: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11325: (exit $ac_status); }; }; then
11326: ac_cv_lib_svld_dlopen=yes
11327: else
11328: echo "$as_me: failed program was:" >&5
11329: sed 's/^/| /' conftest.$ac_ext >&5
11330:
11331: ac_cv_lib_svld_dlopen=no
11332: fi
11333: rm -f conftest.err conftest.$ac_objext \
11334: conftest$ac_exeext conftest.$ac_ext
11335: LIBS=$ac_check_lib_save_LIBS
11336: fi
11337: echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11338: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11339: if test $ac_cv_lib_svld_dlopen = yes; then
11340: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11341: else
11342: echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11343: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11344: if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11345: echo $ECHO_N "(cached) $ECHO_C" >&6
11346: else
11347: ac_check_lib_save_LIBS=$LIBS
11348: LIBS="-ldld $LIBS"
11349: cat >conftest.$ac_ext <<_ACEOF
11350: /* confdefs.h. */
11351: _ACEOF
11352: cat confdefs.h >>conftest.$ac_ext
11353: cat >>conftest.$ac_ext <<_ACEOF
11354: /* end confdefs.h. */
11355:
11356: /* Override any gcc2 internal prototype to avoid an error. */
11357: #ifdef __cplusplus
11358: extern "C"
11359: #endif
11360: /* We use char because int might match the return type of a gcc2
11361: builtin and then its argument prototype would still apply. */
11362: char dld_link ();
11363: int
11364: main ()
11365: {
11366: dld_link ();
11367: ;
11368: return 0;
11369: }
11370: _ACEOF
11371: rm -f conftest.$ac_objext conftest$ac_exeext
11372: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11373: (eval $ac_link) 2>conftest.er1
11374: ac_status=$?
11375: grep -v '^ *+' conftest.er1 >conftest.err
11376: rm -f conftest.er1
11377: cat conftest.err >&5
11378: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11379: (exit $ac_status); } &&
11380: { ac_try='test -z "$ac_c_werror_flag"
11381: || test ! -s conftest.err'
11382: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11383: (eval $ac_try) 2>&5
11384: ac_status=$?
11385: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11386: (exit $ac_status); }; } &&
11387: { ac_try='test -s conftest$ac_exeext'
11388: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11389: (eval $ac_try) 2>&5
11390: ac_status=$?
11391: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11392: (exit $ac_status); }; }; then
11393: ac_cv_lib_dld_dld_link=yes
11394: else
11395: echo "$as_me: failed program was:" >&5
11396: sed 's/^/| /' conftest.$ac_ext >&5
11397:
11398: ac_cv_lib_dld_dld_link=no
11399: fi
11400: rm -f conftest.err conftest.$ac_objext \
11401: conftest$ac_exeext conftest.$ac_ext
11402: LIBS=$ac_check_lib_save_LIBS
11403: fi
11404: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11405: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11406: if test $ac_cv_lib_dld_dld_link = yes; then
11407: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11408: fi
11409:
11410:
11411: fi
11412:
11413:
11414: fi
11415:
11416:
11417: fi
11418:
11419:
11420: fi
11421:
11422:
11423: fi
11424:
11425: ;;
11426: esac
11427:
11428: if test "x$lt_cv_dlopen" != xno; then
11429: enable_dlopen=yes
11430: else
11431: enable_dlopen=no
11432: fi
11433:
11434: case $lt_cv_dlopen in
11435: dlopen)
11436: save_CPPFLAGS="$CPPFLAGS"
11437: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11438:
11439: save_LDFLAGS="$LDFLAGS"
11440: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11441:
11442: save_LIBS="$LIBS"
11443: LIBS="$lt_cv_dlopen_libs $LIBS"
11444:
11445: echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11446: echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11447: if test "${lt_cv_dlopen_self+set}" = set; then
11448: echo $ECHO_N "(cached) $ECHO_C" >&6
11449: else
11450: if test "$cross_compiling" = yes; then :
11451: lt_cv_dlopen_self=cross
11452: else
11453: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11454: lt_status=$lt_dlunknown
11455: cat > conftest.$ac_ext <<_LT_EOF
11456: #line $LINENO "configure"
11457: #include "confdefs.h"
11458:
11459: #if HAVE_DLFCN_H
11460: #include <dlfcn.h>
11461: #endif
11462:
11463: #include <stdio.h>
11464:
11465: #ifdef RTLD_GLOBAL
11466: # define LT_DLGLOBAL RTLD_GLOBAL
11467: #else
11468: # ifdef DL_GLOBAL
11469: # define LT_DLGLOBAL DL_GLOBAL
11470: # else
11471: # define LT_DLGLOBAL 0
11472: # endif
11473: #endif
11474:
11475: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11476: find out it does not work in some platform. */
11477: #ifndef LT_DLLAZY_OR_NOW
11478: # ifdef RTLD_LAZY
11479: # define LT_DLLAZY_OR_NOW RTLD_LAZY
11480: # else
11481: # ifdef DL_LAZY
11482: # define LT_DLLAZY_OR_NOW DL_LAZY
11483: # else
11484: # ifdef RTLD_NOW
11485: # define LT_DLLAZY_OR_NOW RTLD_NOW
11486: # else
11487: # ifdef DL_NOW
11488: # define LT_DLLAZY_OR_NOW DL_NOW
11489: # else
11490: # define LT_DLLAZY_OR_NOW 0
11491: # endif
11492: # endif
11493: # endif
11494: # endif
11495: #endif
11496:
11497: /* When -fvisbility=hidden is used, assume the code has been annotated
11498: correspondingly for the symbols needed. */
11499: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11500: int fnord () __attribute__((visibility("default")));
11501: #endif
11502:
11503: int fnord () { return 42; }
11504: int main ()
11505: {
11506: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11507: int status = $lt_dlunknown;
11508:
11509: if (self)
11510: {
11511: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11512: else
11513: {
11514: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11515: else puts (dlerror ());
11516: }
11517: /* dlclose (self); */
11518: }
11519: else
11520: puts (dlerror ());
11521:
11522: return status;
11523: }
11524: _LT_EOF
11525: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11526: (eval $ac_link) 2>&5
11527: ac_status=$?
11528: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11530: (./conftest; exit; ) >&5 2>/dev/null
11531: lt_status=$?
11532: case x$lt_status in
11533: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11534: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11535: x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11536: esac
11537: else :
11538: # compilation failed
11539: lt_cv_dlopen_self=no
11540: fi
11541: fi
11542: rm -fr conftest*
11543:
11544:
11545: fi
11546: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11547: echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11548:
11549: if test "x$lt_cv_dlopen_self" = xyes; then
11550: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11551: echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11552: echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11553: if test "${lt_cv_dlopen_self_static+set}" = set; then
11554: echo $ECHO_N "(cached) $ECHO_C" >&6
11555: else
11556: if test "$cross_compiling" = yes; then :
11557: lt_cv_dlopen_self_static=cross
11558: else
11559: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11560: lt_status=$lt_dlunknown
11561: cat > conftest.$ac_ext <<_LT_EOF
11562: #line $LINENO "configure"
11563: #include "confdefs.h"
11564:
11565: #if HAVE_DLFCN_H
11566: #include <dlfcn.h>
11567: #endif
11568:
11569: #include <stdio.h>
11570:
11571: #ifdef RTLD_GLOBAL
11572: # define LT_DLGLOBAL RTLD_GLOBAL
11573: #else
11574: # ifdef DL_GLOBAL
11575: # define LT_DLGLOBAL DL_GLOBAL
11576: # else
11577: # define LT_DLGLOBAL 0
11578: # endif
11579: #endif
11580:
11581: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11582: find out it does not work in some platform. */
11583: #ifndef LT_DLLAZY_OR_NOW
11584: # ifdef RTLD_LAZY
11585: # define LT_DLLAZY_OR_NOW RTLD_LAZY
11586: # else
11587: # ifdef DL_LAZY
11588: # define LT_DLLAZY_OR_NOW DL_LAZY
11589: # else
11590: # ifdef RTLD_NOW
11591: # define LT_DLLAZY_OR_NOW RTLD_NOW
11592: # else
11593: # ifdef DL_NOW
11594: # define LT_DLLAZY_OR_NOW DL_NOW
11595: # else
11596: # define LT_DLLAZY_OR_NOW 0
11597: # endif
11598: # endif
11599: # endif
11600: # endif
11601: #endif
11602:
11603: /* When -fvisbility=hidden is used, assume the code has been annotated
11604: correspondingly for the symbols needed. */
11605: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11606: int fnord () __attribute__((visibility("default")));
11607: #endif
11608:
11609: int fnord () { return 42; }
11610: int main ()
11611: {
11612: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11613: int status = $lt_dlunknown;
11614:
11615: if (self)
11616: {
11617: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11618: else
11619: {
11620: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11621: else puts (dlerror ());
11622: }
11623: /* dlclose (self); */
11624: }
11625: else
11626: puts (dlerror ());
11627:
11628: return status;
11629: }
11630: _LT_EOF
11631: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11632: (eval $ac_link) 2>&5
11633: ac_status=$?
11634: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11635: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11636: (./conftest; exit; ) >&5 2>/dev/null
11637: lt_status=$?
11638: case x$lt_status in
11639: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11640: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11641: x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11642: esac
11643: else :
11644: # compilation failed
11645: lt_cv_dlopen_self_static=no
11646: fi
11647: fi
11648: rm -fr conftest*
11649:
11650:
11651: fi
11652: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11653: echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11654: fi
11655:
11656: CPPFLAGS="$save_CPPFLAGS"
11657: LDFLAGS="$save_LDFLAGS"
11658: LIBS="$save_LIBS"
11659: ;;
11660: esac
11661:
11662: case $lt_cv_dlopen_self in
11663: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11664: *) enable_dlopen_self=unknown ;;
11665: esac
11666:
11667: case $lt_cv_dlopen_self_static in
11668: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11669: *) enable_dlopen_self_static=unknown ;;
11670: esac
11671: fi
11672:
11673:
11674:
11675:
11676:
11677:
11678:
11679:
11680:
11681:
11682:
11683:
11684:
11685:
11686:
11687:
11688:
11689: striplib=
11690: old_striplib=
11691: echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11692: echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11693: if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11694: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11695: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11696: echo "$as_me:$LINENO: result: yes" >&5
11697: echo "${ECHO_T}yes" >&6
11698: else
11699: # FIXME - insert some real tests, host_os isn't really good enough
11700: case $host_os in
11701: darwin*)
11702: if test -n "$STRIP" ; then
11703: striplib="$STRIP -x"
11704: old_striplib="$STRIP -S"
11705: echo "$as_me:$LINENO: result: yes" >&5
11706: echo "${ECHO_T}yes" >&6
11707: else
11708: echo "$as_me:$LINENO: result: no" >&5
11709: echo "${ECHO_T}no" >&6
11710: fi
11711: ;;
11712: *)
11713: echo "$as_me:$LINENO: result: no" >&5
11714: echo "${ECHO_T}no" >&6
11715: ;;
11716: esac
11717: fi
11718:
11719:
11720:
11721:
11722:
11723:
11724:
11725:
11726:
11727:
11728:
11729:
11730: # Report which library types will actually be built
11731: echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11732: echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11733: echo "$as_me:$LINENO: result: $can_build_shared" >&5
11734: echo "${ECHO_T}$can_build_shared" >&6
11735:
11736: echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11737: echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11738: test "$can_build_shared" = "no" && enable_shared=no
11739:
11740: # On AIX, shared libraries and static libraries use the same namespace, and
11741: # are all built from PIC.
11742: case $host_os in
11743: aix3*)
11744: test "$enable_shared" = yes && enable_static=no
11745: if test -n "$RANLIB"; then
11746: archive_cmds="$archive_cmds~\$RANLIB \$lib"
11747: postinstall_cmds='$RANLIB $lib'
11748: fi
11749: ;;
11750:
11751: aix[4-9]*)
11752: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11753: test "$enable_shared" = yes && enable_static=no
11754: fi
11755: ;;
11756: esac
11757: echo "$as_me:$LINENO: result: $enable_shared" >&5
11758: echo "${ECHO_T}$enable_shared" >&6
11759:
11760: echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11761: echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11762: # Make sure either enable_shared or enable_static is yes.
11763: test "$enable_shared" = yes || enable_static=yes
11764: echo "$as_me:$LINENO: result: $enable_static" >&5
11765: echo "${ECHO_T}$enable_static" >&6
11766:
11767:
11768:
11769:
11770: fi
11771: ac_ext=c
11772: ac_cpp='$CPP $CPPFLAGS'
11773: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11774: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11775: ac_compiler_gnu=$ac_cv_c_compiler_gnu
11776:
11777: CC="$lt_save_CC"
11778:
11779: if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11780: ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11781: (test "X$CXX" != "Xg++"))) ; then
11782: ac_ext=cc
11783: ac_cpp='$CXXCPP $CPPFLAGS'
11784: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11785: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11786: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11787: echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
11788: echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
11789: if test -z "$CXXCPP"; then
11790: if test "${ac_cv_prog_CXXCPP+set}" = set; then
11791: echo $ECHO_N "(cached) $ECHO_C" >&6
11792: else
11793: # Double quotes because CXXCPP needs to be expanded
11794: for CXXCPP in "$CXX -E" "/lib/cpp"
11795: do
11796: ac_preproc_ok=false
11797: for ac_cxx_preproc_warn_flag in '' yes
11798: do
11799: # Use a header file that comes with gcc, so configuring glibc
11800: # with a fresh cross-compiler works.
11801: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11802: # <limits.h> exists even on freestanding compilers.
11803: # On the NeXT, cc -E runs the code through the compiler's parser,
11804: # not just through cpp. "Syntax error" is here to catch this case.
11805: cat >conftest.$ac_ext <<_ACEOF
11806: /* confdefs.h. */
11807: _ACEOF
11808: cat confdefs.h >>conftest.$ac_ext
11809: cat >>conftest.$ac_ext <<_ACEOF
11810: /* end confdefs.h. */
11811: #ifdef __STDC__
11812: # include <limits.h>
11813: #else
11814: # include <assert.h>
11815: #endif
11816: Syntax error
11817: _ACEOF
11818: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11819: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11820: ac_status=$?
11821: grep -v '^ *+' conftest.er1 >conftest.err
11822: rm -f conftest.er1
11823: cat conftest.err >&5
11824: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11825: (exit $ac_status); } >/dev/null; then
11826: if test -s conftest.err; then
11827: ac_cpp_err=$ac_cxx_preproc_warn_flag
11828: ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11829: else
11830: ac_cpp_err=
11831: fi
11832: else
11833: ac_cpp_err=yes
11834: fi
11835: if test -z "$ac_cpp_err"; then
11836: :
11837: else
11838: echo "$as_me: failed program was:" >&5
11839: sed 's/^/| /' conftest.$ac_ext >&5
11840:
11841: # Broken: fails on valid input.
11842: continue
11843: fi
11844: rm -f conftest.err conftest.$ac_ext
11845:
11846: # OK, works on sane cases. Now check whether non-existent headers
11847: # can be detected and how.
11848: cat >conftest.$ac_ext <<_ACEOF
11849: /* confdefs.h. */
11850: _ACEOF
11851: cat confdefs.h >>conftest.$ac_ext
11852: cat >>conftest.$ac_ext <<_ACEOF
11853: /* end confdefs.h. */
11854: #include <ac_nonexistent.h>
11855: _ACEOF
11856: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11857: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11858: ac_status=$?
11859: grep -v '^ *+' conftest.er1 >conftest.err
11860: rm -f conftest.er1
11861: cat conftest.err >&5
11862: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11863: (exit $ac_status); } >/dev/null; then
11864: if test -s conftest.err; then
11865: ac_cpp_err=$ac_cxx_preproc_warn_flag
11866: ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11867: else
11868: ac_cpp_err=
11869: fi
11870: else
11871: ac_cpp_err=yes
11872: fi
11873: if test -z "$ac_cpp_err"; then
11874: # Broken: success on invalid input.
11875: continue
11876: else
11877: echo "$as_me: failed program was:" >&5
11878: sed 's/^/| /' conftest.$ac_ext >&5
11879:
11880: # Passes both tests.
11881: ac_preproc_ok=:
11882: break
11883: fi
11884: rm -f conftest.err conftest.$ac_ext
11885:
11886: done
11887: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11888: rm -f conftest.err conftest.$ac_ext
11889: if $ac_preproc_ok; then
11890: break
11891: fi
11892:
11893: done
11894: ac_cv_prog_CXXCPP=$CXXCPP
11895:
11896: fi
11897: CXXCPP=$ac_cv_prog_CXXCPP
11898: else
11899: ac_cv_prog_CXXCPP=$CXXCPP
11900: fi
11901: echo "$as_me:$LINENO: result: $CXXCPP" >&5
11902: echo "${ECHO_T}$CXXCPP" >&6
11903: ac_preproc_ok=false
11904: for ac_cxx_preproc_warn_flag in '' yes
11905: do
11906: # Use a header file that comes with gcc, so configuring glibc
11907: # with a fresh cross-compiler works.
11908: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11909: # <limits.h> exists even on freestanding compilers.
11910: # On the NeXT, cc -E runs the code through the compiler's parser,
11911: # not just through cpp. "Syntax error" is here to catch this case.
11912: cat >conftest.$ac_ext <<_ACEOF
11913: /* confdefs.h. */
11914: _ACEOF
11915: cat confdefs.h >>conftest.$ac_ext
11916: cat >>conftest.$ac_ext <<_ACEOF
11917: /* end confdefs.h. */
11918: #ifdef __STDC__
11919: # include <limits.h>
11920: #else
11921: # include <assert.h>
11922: #endif
11923: Syntax error
11924: _ACEOF
11925: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11926: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11927: ac_status=$?
11928: grep -v '^ *+' conftest.er1 >conftest.err
11929: rm -f conftest.er1
11930: cat conftest.err >&5
11931: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932: (exit $ac_status); } >/dev/null; then
11933: if test -s conftest.err; then
11934: ac_cpp_err=$ac_cxx_preproc_warn_flag
11935: ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11936: else
11937: ac_cpp_err=
11938: fi
11939: else
11940: ac_cpp_err=yes
11941: fi
11942: if test -z "$ac_cpp_err"; then
11943: :
11944: else
11945: echo "$as_me: failed program was:" >&5
11946: sed 's/^/| /' conftest.$ac_ext >&5
11947:
11948: # Broken: fails on valid input.
11949: continue
11950: fi
11951: rm -f conftest.err conftest.$ac_ext
11952:
11953: # OK, works on sane cases. Now check whether non-existent headers
11954: # can be detected and how.
11955: cat >conftest.$ac_ext <<_ACEOF
11956: /* confdefs.h. */
11957: _ACEOF
11958: cat confdefs.h >>conftest.$ac_ext
11959: cat >>conftest.$ac_ext <<_ACEOF
11960: /* end confdefs.h. */
11961: #include <ac_nonexistent.h>
11962: _ACEOF
11963: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11964: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11965: ac_status=$?
11966: grep -v '^ *+' conftest.er1 >conftest.err
11967: rm -f conftest.er1
11968: cat conftest.err >&5
11969: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11970: (exit $ac_status); } >/dev/null; then
11971: if test -s conftest.err; then
11972: ac_cpp_err=$ac_cxx_preproc_warn_flag
11973: ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11974: else
11975: ac_cpp_err=
11976: fi
11977: else
11978: ac_cpp_err=yes
11979: fi
11980: if test -z "$ac_cpp_err"; then
11981: # Broken: success on invalid input.
11982: continue
11983: else
11984: echo "$as_me: failed program was:" >&5
11985: sed 's/^/| /' conftest.$ac_ext >&5
11986:
11987: # Passes both tests.
11988: ac_preproc_ok=:
11989: break
11990: fi
11991: rm -f conftest.err conftest.$ac_ext
11992:
11993: done
11994: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11995: rm -f conftest.err conftest.$ac_ext
11996: if $ac_preproc_ok; then
11997: :
11998: else
11999: { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12000: See \`config.log' for more details." >&5
12001: echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12002: See \`config.log' for more details." >&2;}
12003: { (exit 1); exit 1; }; }
12004: fi
12005:
12006: ac_ext=c
12007: ac_cpp='$CPP $CPPFLAGS'
12008: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12009: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12010: ac_compiler_gnu=$ac_cv_c_compiler_gnu
12011:
12012: else
12013: _lt_caught_CXX_error=yes
12014: fi
12015:
12016: ac_ext=cc
12017: ac_cpp='$CXXCPP $CPPFLAGS'
12018: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12019: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12020: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12021:
12022: archive_cmds_need_lc_CXX=no
12023: allow_undefined_flag_CXX=
12024: always_export_symbols_CXX=no
12025: archive_expsym_cmds_CXX=
12026: compiler_needs_object_CXX=no
12027: export_dynamic_flag_spec_CXX=
12028: hardcode_direct_CXX=no
12029: hardcode_direct_absolute_CXX=no
12030: hardcode_libdir_flag_spec_CXX=
12031: hardcode_libdir_separator_CXX=
12032: hardcode_minus_L_CXX=no
12033: hardcode_shlibpath_var_CXX=unsupported
12034: hardcode_automatic_CXX=no
12035: inherit_rpath_CXX=no
12036: module_cmds_CXX=
12037: module_expsym_cmds_CXX=
12038: link_all_deplibs_CXX=unknown
12039: old_archive_cmds_CXX=$old_archive_cmds
12040: reload_flag_CXX=$reload_flag
12041: reload_cmds_CXX=$reload_cmds
12042: no_undefined_flag_CXX=
12043: whole_archive_flag_spec_CXX=
12044: enable_shared_with_static_runtimes_CXX=no
12045:
12046: # Source file extension for C++ test sources.
12047: ac_ext=cpp
12048:
12049: # Object file extension for compiled C++ test sources.
12050: objext=o
12051: objext_CXX=$objext
12052:
12053: # No sense in running all these tests if we already determined that
12054: # the CXX compiler isn't working. Some variables (like enable_shared)
12055: # are currently assumed to apply to all compilers on this platform,
12056: # and will be corrupted by setting them based on a non-working compiler.
12057: if test "$_lt_caught_CXX_error" != yes; then
12058: # Code to be used in simple compile tests
12059: lt_simple_compile_test_code="int some_variable = 0;"
12060:
12061: # Code to be used in simple link tests
12062: lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12063:
12064: # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12065:
12066:
12067:
12068:
12069:
12070:
12071: # If no C compiler was specified, use CC.
12072: LTCC=${LTCC-"$CC"}
12073:
12074: # If no C compiler flags were specified, use CFLAGS.
12075: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12076:
12077: # Allow CC to be a program name with arguments.
12078: compiler=$CC
12079:
12080:
12081: # save warnings/boilerplate of simple test code
12082: ac_outfile=conftest.$ac_objext
12083: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12084: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12085: _lt_compiler_boilerplate=`cat conftest.err`
12086: $RM conftest*
12087:
12088: ac_outfile=conftest.$ac_objext
12089: echo "$lt_simple_link_test_code" >conftest.$ac_ext
12090: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12091: _lt_linker_boilerplate=`cat conftest.err`
12092: $RM -r conftest*
12093:
12094:
12095: # Allow CC to be a program name with arguments.
12096: lt_save_CC=$CC
12097: lt_save_CFLAGS=$CFLAGS
12098: lt_save_LD=$LD
12099: lt_save_GCC=$GCC
12100: GCC=$GXX
12101: lt_save_with_gnu_ld=$with_gnu_ld
12102: lt_save_path_LD=$lt_cv_path_LD
12103: if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12104: lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12105: else
12106: $as_unset lt_cv_prog_gnu_ld
12107: fi
12108: if test -n "${lt_cv_path_LDCXX+set}"; then
12109: lt_cv_path_LD=$lt_cv_path_LDCXX
12110: else
12111: $as_unset lt_cv_path_LD
12112: fi
12113: test -z "${LDCXX+set}" || LD=$LDCXX
12114: CC=${CXX-"c++"}
12115: CFLAGS=$CXXFLAGS
12116: compiler=$CC
12117: compiler_CXX=$CC
12118: for cc_temp in $compiler""; do
12119: case $cc_temp in
12120: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12121: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12122: \-*) ;;
12123: *) break;;
12124: esac
12125: done
12126: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12127:
12128:
12129: if test -n "$compiler"; then
12130: # We don't want -fno-exception when compiling C++ code, so set the
12131: # no_builtin_flag separately
12132: if test "$GXX" = yes; then
12133: lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12134: else
12135: lt_prog_compiler_no_builtin_flag_CXX=
12136: fi
12137:
12138: if test "$GXX" = yes; then
12139: # Set up default GNU C++ configuration
12140:
12141:
12142:
12143: # Check whether --with-gnu-ld or --without-gnu-ld was given.
12144: if test "${with_gnu_ld+set}" = set; then
12145: withval="$with_gnu_ld"
12146: test "$withval" = no || with_gnu_ld=yes
12147: else
12148: with_gnu_ld=no
12149: fi;
12150: ac_prog=ld
12151: if test "$GCC" = yes; then
12152: # Check if gcc -print-prog-name=ld gives a path.
12153: echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12154: echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
12155: case $host in
12156: *-*-mingw*)
12157: # gcc leaves a trailing carriage return which upsets mingw
12158: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12159: *)
12160: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12161: esac
12162: case $ac_prog in
12163: # Accept absolute paths.
12164: [\\/]* | ?:[\\/]*)
12165: re_direlt='/[^/][^/]*/\.\./'
12166: # Canonicalize the pathname of ld
12167: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12168: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12169: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12170: done
12171: test -z "$LD" && LD="$ac_prog"
12172: ;;
12173: "")
12174: # If it fails, then pretend we aren't using GCC.
12175: ac_prog=ld
12176: ;;
12177: *)
12178: # If it is relative, then search for the first ld in PATH.
12179: with_gnu_ld=unknown
12180: ;;
12181: esac
12182: elif test "$with_gnu_ld" = yes; then
12183: echo "$as_me:$LINENO: checking for GNU ld" >&5
12184: echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
12185: else
12186: echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12187: echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
12188: fi
12189: if test "${lt_cv_path_LD+set}" = set; then
12190: echo $ECHO_N "(cached) $ECHO_C" >&6
12191: else
12192: if test -z "$LD"; then
12193: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12194: for ac_dir in $PATH; do
12195: IFS="$lt_save_ifs"
12196: test -z "$ac_dir" && ac_dir=.
12197: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12198: lt_cv_path_LD="$ac_dir/$ac_prog"
12199: # Check to see if the program is GNU ld. I'd rather use --version,
12200: # but apparently some variants of GNU ld only accept -v.
12201: # Break only if it was the GNU/non-GNU ld that we prefer.
12202: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12203: *GNU* | *'with BFD'*)
12204: test "$with_gnu_ld" != no && break
12205: ;;
12206: *)
12207: test "$with_gnu_ld" != yes && break
12208: ;;
12209: esac
12210: fi
12211: done
12212: IFS="$lt_save_ifs"
12213: else
12214: lt_cv_path_LD="$LD" # Let the user override the test with a path.
12215: fi
12216: fi
12217:
12218: LD="$lt_cv_path_LD"
12219: if test -n "$LD"; then
12220: echo "$as_me:$LINENO: result: $LD" >&5
12221: echo "${ECHO_T}$LD" >&6
12222: else
12223: echo "$as_me:$LINENO: result: no" >&5
12224: echo "${ECHO_T}no" >&6
12225: fi
12226: test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12227: echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12228: { (exit 1); exit 1; }; }
12229: echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12230: echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
12231: if test "${lt_cv_prog_gnu_ld+set}" = set; then
12232: echo $ECHO_N "(cached) $ECHO_C" >&6
12233: else
12234: # I'd rather use --version here, but apparently some GNU lds only accept -v.
12235: case `$LD -v 2>&1 </dev/null` in
12236: *GNU* | *'with BFD'*)
12237: lt_cv_prog_gnu_ld=yes
12238: ;;
12239: *)
12240: lt_cv_prog_gnu_ld=no
12241: ;;
12242: esac
12243: fi
12244: echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12245: echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
12246: with_gnu_ld=$lt_cv_prog_gnu_ld
12247:
12248:
12249:
12250:
12251:
12252:
12253:
12254: # Check if GNU C++ uses GNU ld as the underlying linker, since the
12255: # archiving commands below assume that GNU ld is being used.
12256: if test "$with_gnu_ld" = yes; then
12257: archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12258: archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12259:
12260: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12261: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12262:
12263: # If archive_cmds runs LD, not CC, wlarc should be empty
12264: # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12265: # investigate it a little bit more. (MM)
12266: wlarc='${wl}'
12267:
12268: # ancient GNU ld didn't support --whole-archive et. al.
12269: if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12270: $GREP 'no-whole-archive' > /dev/null; then
12271: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12272: else
12273: whole_archive_flag_spec_CXX=
12274: fi
12275: else
12276: with_gnu_ld=no
12277: wlarc=
12278:
12279: # A generic and very simple default shared library creation
12280: # command for GNU C++ for the case where it uses the native
12281: # linker, instead of GNU ld. If possible, this setting should
12282: # overridden to take advantage of the native linker features on
12283: # the platform it is being used on.
12284: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12285: fi
12286:
12287: # Commands to make compiler produce verbose output that lists
12288: # what "hidden" libraries, object files and flags are used when
12289: # linking a shared library.
12290: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12291:
12292: else
12293: GXX=no
12294: with_gnu_ld=no
12295: wlarc=
12296: fi
12297:
12298: # PORTME: fill in a description of your system's C++ link characteristics
12299: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12300: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12301: ld_shlibs_CXX=yes
12302: case $host_os in
12303: aix3*)
12304: # FIXME: insert proper C++ library support
12305: ld_shlibs_CXX=no
12306: ;;
12307: aix[4-9]*)
12308: if test "$host_cpu" = ia64; then
12309: # On IA64, the linker does run time linking by default, so we don't
12310: # have to do anything special.
12311: aix_use_runtimelinking=no
12312: exp_sym_flag='-Bexport'
12313: no_entry_flag=""
12314: else
12315: aix_use_runtimelinking=no
12316:
12317: # Test if we are trying to use run time linking or normal
12318: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12319: # need to do runtime linking.
12320: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12321: for ld_flag in $LDFLAGS; do
12322: case $ld_flag in
12323: *-brtl*)
12324: aix_use_runtimelinking=yes
12325: break
12326: ;;
12327: esac
12328: done
12329: ;;
12330: esac
12331:
12332: exp_sym_flag='-bexport'
12333: no_entry_flag='-bnoentry'
12334: fi
12335:
12336: # When large executables or shared objects are built, AIX ld can
12337: # have problems creating the table of contents. If linking a library
12338: # or program results in "error TOC overflow" add -mminimal-toc to
12339: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12340: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12341:
12342: archive_cmds_CXX=''
12343: hardcode_direct_CXX=yes
12344: hardcode_direct_absolute_CXX=yes
12345: hardcode_libdir_separator_CXX=':'
12346: link_all_deplibs_CXX=yes
12347: file_list_spec_CXX='${wl}-f,'
12348:
12349: if test "$GXX" = yes; then
12350: case $host_os in aix4.[012]|aix4.[012].*)
12351: # We only want to do this on AIX 4.2 and lower, the check
12352: # below for broken collect2 doesn't work under 4.3+
12353: collect2name=`${CC} -print-prog-name=collect2`
12354: if test -f "$collect2name" &&
12355: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12356: then
12357: # We have reworked collect2
12358: :
12359: else
12360: # We have old collect2
12361: hardcode_direct_CXX=unsupported
12362: # It fails to find uninstalled libraries when the uninstalled
12363: # path is not listed in the libpath. Setting hardcode_minus_L
12364: # to unsupported forces relinking
12365: hardcode_minus_L_CXX=yes
12366: hardcode_libdir_flag_spec_CXX='-L$libdir'
12367: hardcode_libdir_separator_CXX=
12368: fi
12369: esac
12370: shared_flag='-shared'
12371: if test "$aix_use_runtimelinking" = yes; then
12372: shared_flag="$shared_flag "'${wl}-G'
12373: fi
12374: else
12375: # not using gcc
12376: if test "$host_cpu" = ia64; then
12377: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12378: # chokes on -Wl,-G. The following line is correct:
12379: shared_flag='-G'
12380: else
12381: if test "$aix_use_runtimelinking" = yes; then
12382: shared_flag='${wl}-G'
12383: else
12384: shared_flag='${wl}-bM:SRE'
12385: fi
12386: fi
12387: fi
12388:
12389: export_dynamic_flag_spec_CXX='${wl}-bexpall'
12390: # It seems that -bexpall does not export symbols beginning with
12391: # underscore (_), so it is better to generate a list of symbols to
12392: # export.
12393: always_export_symbols_CXX=yes
12394: if test "$aix_use_runtimelinking" = yes; then
12395: # Warning - without using the other runtime loading flags (-brtl),
12396: # -berok will link without error, but may produce a broken library.
12397: allow_undefined_flag_CXX='-berok'
12398: # Determine the default libpath from the value encoded in an empty
12399: # executable.
12400: if test "${lt_cv_aix_libpath+set}" = set; then
12401: aix_libpath=$lt_cv_aix_libpath
12402: else
12403: if test "${lt_cv_aix_libpath__CXX+set}" = set; then
12404: echo $ECHO_N "(cached) $ECHO_C" >&6
12405: else
12406: cat >conftest.$ac_ext <<_ACEOF
12407: /* confdefs.h. */
12408: _ACEOF
12409: cat confdefs.h >>conftest.$ac_ext
12410: cat >>conftest.$ac_ext <<_ACEOF
12411: /* end confdefs.h. */
12412:
12413: int
12414: main ()
12415: {
12416:
12417: ;
12418: return 0;
12419: }
12420: _ACEOF
12421: rm -f conftest.$ac_objext conftest$ac_exeext
12422: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12423: (eval $ac_link) 2>conftest.er1
12424: ac_status=$?
12425: grep -v '^ *+' conftest.er1 >conftest.err
12426: rm -f conftest.er1
12427: cat conftest.err >&5
12428: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12429: (exit $ac_status); } &&
12430: { ac_try='test -z "$ac_cxx_werror_flag"
12431: || test ! -s conftest.err'
12432: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12433: (eval $ac_try) 2>&5
12434: ac_status=$?
12435: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436: (exit $ac_status); }; } &&
12437: { ac_try='test -s conftest$ac_exeext'
12438: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12439: (eval $ac_try) 2>&5
12440: ac_status=$?
12441: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12442: (exit $ac_status); }; }; then
12443:
12444: lt_aix_libpath_sed='
12445: /Import File Strings/,/^$/ {
12446: /^0/ {
12447: s/^0 *\([^ ]*\) *$/\1/
12448: p
12449: }
12450: }'
12451: lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12452: # Check for a 64-bit object if we didn't find anything.
12453: if test -z "$lt_cv_aix_libpath__CXX"; then
12454: lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12455: fi
12456: else
12457: echo "$as_me: failed program was:" >&5
12458: sed 's/^/| /' conftest.$ac_ext >&5
12459:
12460: fi
12461: rm -f conftest.err conftest.$ac_objext \
12462: conftest$ac_exeext conftest.$ac_ext
12463: if test -z "$lt_cv_aix_libpath__CXX"; then
12464: lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12465: fi
12466:
12467: fi
12468:
12469: aix_libpath=$lt_cv_aix_libpath__CXX
12470: fi
12471:
12472: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12473:
12474: archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12475: else
12476: if test "$host_cpu" = ia64; then
12477: hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12478: allow_undefined_flag_CXX="-z nodefs"
12479: archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
12480: else
12481: # Determine the default libpath from the value encoded in an
12482: # empty executable.
12483: if test "${lt_cv_aix_libpath+set}" = set; then
12484: aix_libpath=$lt_cv_aix_libpath
12485: else
12486: if test "${lt_cv_aix_libpath__CXX+set}" = set; then
12487: echo $ECHO_N "(cached) $ECHO_C" >&6
12488: else
12489: cat >conftest.$ac_ext <<_ACEOF
12490: /* confdefs.h. */
12491: _ACEOF
12492: cat confdefs.h >>conftest.$ac_ext
12493: cat >>conftest.$ac_ext <<_ACEOF
12494: /* end confdefs.h. */
12495:
12496: int
12497: main ()
12498: {
12499:
12500: ;
12501: return 0;
12502: }
12503: _ACEOF
12504: rm -f conftest.$ac_objext conftest$ac_exeext
12505: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12506: (eval $ac_link) 2>conftest.er1
12507: ac_status=$?
12508: grep -v '^ *+' conftest.er1 >conftest.err
12509: rm -f conftest.er1
12510: cat conftest.err >&5
12511: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12512: (exit $ac_status); } &&
12513: { ac_try='test -z "$ac_cxx_werror_flag"
12514: || test ! -s conftest.err'
12515: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12516: (eval $ac_try) 2>&5
12517: ac_status=$?
12518: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519: (exit $ac_status); }; } &&
12520: { ac_try='test -s conftest$ac_exeext'
12521: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12522: (eval $ac_try) 2>&5
12523: ac_status=$?
12524: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525: (exit $ac_status); }; }; then
12526:
12527: lt_aix_libpath_sed='
12528: /Import File Strings/,/^$/ {
12529: /^0/ {
12530: s/^0 *\([^ ]*\) *$/\1/
12531: p
12532: }
12533: }'
12534: lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12535: # Check for a 64-bit object if we didn't find anything.
12536: if test -z "$lt_cv_aix_libpath__CXX"; then
12537: lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12538: fi
12539: else
12540: echo "$as_me: failed program was:" >&5
12541: sed 's/^/| /' conftest.$ac_ext >&5
12542:
12543: fi
12544: rm -f conftest.err conftest.$ac_objext \
12545: conftest$ac_exeext conftest.$ac_ext
12546: if test -z "$lt_cv_aix_libpath__CXX"; then
12547: lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12548: fi
12549:
12550: fi
12551:
12552: aix_libpath=$lt_cv_aix_libpath__CXX
12553: fi
12554:
12555: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12556: # Warning - without using the other run time loading flags,
12557: # -berok will link without error, but may produce a broken library.
12558: no_undefined_flag_CXX=' ${wl}-bernotok'
12559: allow_undefined_flag_CXX=' ${wl}-berok'
12560: if test "$with_gnu_ld" = yes; then
12561: # We only use this code for GNU lds that support --whole-archive.
12562: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12563: else
12564: # Exported symbols can be pulled into shared objects from archives
12565: whole_archive_flag_spec_CXX='$convenience'
12566: fi
12567: archive_cmds_need_lc_CXX=yes
12568: # This is similar to how AIX traditionally builds its shared
12569: # libraries.
12570: archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12571: fi
12572: fi
12573: ;;
12574:
12575: beos*)
12576: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12577: allow_undefined_flag_CXX=unsupported
12578: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12579: # support --undefined. This deserves some investigation. FIXME
12580: archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12581: else
12582: ld_shlibs_CXX=no
12583: fi
12584: ;;
12585:
12586: chorus*)
12587: case $cc_basename in
12588: *)
12589: # FIXME: insert proper C++ library support
12590: ld_shlibs_CXX=no
12591: ;;
12592: esac
12593: ;;
12594:
12595: cygwin* | mingw* | pw32* | cegcc*)
12596: case $GXX,$cc_basename in
12597: ,cl* | no,cl*)
12598: # Native MSVC
12599: # hardcode_libdir_flag_spec is actually meaningless, as there is
12600: # no search path for DLLs.
12601: hardcode_libdir_flag_spec_CXX=' '
12602: allow_undefined_flag_CXX=unsupported
12603: always_export_symbols_CXX=yes
12604: file_list_spec_CXX='@'
12605: # Tell ltmain to make .lib files, not .a files.
12606: libext=lib
12607: # Tell ltmain to make .dll files, not .so files.
12608: shrext_cmds=".dll"
12609: # FIXME: Setting linknames here is a bad hack.
12610: archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12611: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12612: $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12613: else
12614: $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12615: fi~
12616: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12617: linknames='
12618: # The linker will not automatically build a static lib if we build a DLL.
12619: # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12620: enable_shared_with_static_runtimes_CXX=yes
12621: # Don't use ranlib
12622: old_postinstall_cmds_CXX='chmod 644 $oldlib'
12623: postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12624: lt_tool_outputfile="@TOOL_OUTPUT@"~
12625: case $lt_outputfile in
12626: *.exe|*.EXE) ;;
12627: *)
12628: lt_outputfile="$lt_outputfile.exe"
12629: lt_tool_outputfile="$lt_tool_outputfile.exe"
12630: ;;
12631: esac~
12632: func_to_tool_file "$lt_outputfile"~
12633: if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12634: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12635: $RM "$lt_outputfile.manifest";
12636: fi'
12637: ;;
12638: *)
12639: # g++
12640: # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12641: # as there is no search path for DLLs.
12642: hardcode_libdir_flag_spec_CXX='-L$libdir'
12643: export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12644: allow_undefined_flag_CXX=unsupported
12645: always_export_symbols_CXX=no
12646: enable_shared_with_static_runtimes_CXX=yes
12647:
12648: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12649: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12650: # If the export-symbols file already is a .def file (1st line
12651: # is EXPORTS), use it as is; otherwise, prepend...
12652: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12653: cp $export_symbols $output_objdir/$soname.def;
12654: else
12655: echo EXPORTS > $output_objdir/$soname.def;
12656: cat $export_symbols >> $output_objdir/$soname.def;
12657: fi~
12658: $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12659: else
12660: ld_shlibs_CXX=no
12661: fi
12662: ;;
12663: esac
12664: ;;
12665: darwin* | rhapsody*)
12666:
12667:
12668: archive_cmds_need_lc_CXX=no
12669: hardcode_direct_CXX=no
12670: hardcode_automatic_CXX=yes
12671: hardcode_shlibpath_var_CXX=unsupported
12672: if test "$lt_cv_ld_force_load" = "yes"; then
12673: whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12674:
12675: else
12676: whole_archive_flag_spec_CXX=''
12677: fi
12678: link_all_deplibs_CXX=yes
12679: allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12680: case $cc_basename in
12681: ifort*) _lt_dar_can_shared=yes ;;
12682: *) _lt_dar_can_shared=$GCC ;;
12683: esac
12684: if test "$_lt_dar_can_shared" = "yes"; then
12685: output_verbose_link_cmd=func_echo_all
12686: archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12687: module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12688: archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
12689: module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
12690: if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12691: archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
12692: archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
12693: fi
12694:
12695: else
12696: ld_shlibs_CXX=no
12697: fi
12698:
12699: ;;
12700:
12701: dgux*)
12702: case $cc_basename in
12703: ec++*)
12704: # FIXME: insert proper C++ library support
12705: ld_shlibs_CXX=no
12706: ;;
12707: ghcx*)
12708: # Green Hills C++ Compiler
12709: # FIXME: insert proper C++ library support
12710: ld_shlibs_CXX=no
12711: ;;
12712: *)
12713: # FIXME: insert proper C++ library support
12714: ld_shlibs_CXX=no
12715: ;;
12716: esac
12717: ;;
12718:
12719: freebsd2.*)
12720: # C++ shared libraries reported to be fairly broken before
12721: # switch to ELF
12722: ld_shlibs_CXX=no
12723: ;;
12724:
12725: freebsd-elf*)
12726: archive_cmds_need_lc_CXX=no
12727: ;;
12728:
12729: freebsd* | dragonfly*)
12730: # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12731: # conventions
12732: ld_shlibs_CXX=yes
12733: ;;
12734:
12735: gnu*)
12736: ;;
12737:
12738: haiku*)
12739: archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12740: link_all_deplibs_CXX=yes
12741: ;;
12742:
12743: hpux9*)
12744: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12745: hardcode_libdir_separator_CXX=:
12746: export_dynamic_flag_spec_CXX='${wl}-E'
12747: hardcode_direct_CXX=yes
12748: hardcode_minus_L_CXX=yes # Not in the search PATH,
12749: # but as the default
12750: # location of the library.
12751:
12752: case $cc_basename in
12753: CC*)
12754: # FIXME: insert proper C++ library support
12755: ld_shlibs_CXX=no
12756: ;;
12757: aCC*)
12758: archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12759: # Commands to make compiler produce verbose output that lists
12760: # what "hidden" libraries, object files and flags are used when
12761: # linking a shared library.
12762: #
12763: # There doesn't appear to be a way to prevent this compiler from
12764: # explicitly linking system object files so we need to strip them
12765: # from the output so that they don't get included in the library
12766: # dependencies.
12767: output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12768: ;;
12769: *)
12770: if test "$GXX" = yes; then
12771: archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12772: else
12773: # FIXME: insert proper C++ library support
12774: ld_shlibs_CXX=no
12775: fi
12776: ;;
12777: esac
12778: ;;
12779:
12780: hpux10*|hpux11*)
12781: if test $with_gnu_ld = no; then
12782: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12783: hardcode_libdir_separator_CXX=:
12784:
12785: case $host_cpu in
12786: hppa*64*|ia64*)
12787: ;;
12788: *)
12789: export_dynamic_flag_spec_CXX='${wl}-E'
12790: ;;
12791: esac
12792: fi
12793: case $host_cpu in
12794: hppa*64*|ia64*)
12795: hardcode_direct_CXX=no
12796: hardcode_shlibpath_var_CXX=no
12797: ;;
12798: *)
12799: hardcode_direct_CXX=yes
12800: hardcode_direct_absolute_CXX=yes
12801: hardcode_minus_L_CXX=yes # Not in the search PATH,
12802: # but as the default
12803: # location of the library.
12804: ;;
12805: esac
12806:
12807: case $cc_basename in
12808: CC*)
12809: # FIXME: insert proper C++ library support
12810: ld_shlibs_CXX=no
12811: ;;
12812: aCC*)
12813: case $host_cpu in
12814: hppa*64*)
12815: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12816: ;;
12817: ia64*)
12818: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12819: ;;
12820: *)
12821: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12822: ;;
12823: esac
12824: # Commands to make compiler produce verbose output that lists
12825: # what "hidden" libraries, object files and flags are used when
12826: # linking a shared library.
12827: #
12828: # There doesn't appear to be a way to prevent this compiler from
12829: # explicitly linking system object files so we need to strip them
12830: # from the output so that they don't get included in the library
12831: # dependencies.
12832: output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12833: ;;
12834: *)
12835: if test "$GXX" = yes; then
12836: if test $with_gnu_ld = no; then
12837: case $host_cpu in
12838: hppa*64*)
12839: archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12840: ;;
12841: ia64*)
12842: archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12843: ;;
12844: *)
12845: archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12846: ;;
12847: esac
12848: fi
12849: else
12850: # FIXME: insert proper C++ library support
12851: ld_shlibs_CXX=no
12852: fi
12853: ;;
12854: esac
12855: ;;
12856:
12857: interix[3-9]*)
12858: hardcode_direct_CXX=no
12859: hardcode_shlibpath_var_CXX=no
12860: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12861: export_dynamic_flag_spec_CXX='${wl}-E'
12862: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12863: # Instead, shared libraries are loaded at an image base (0x10000000 by
12864: # default) and relocated if they conflict, which is a slow very memory
12865: # consuming and fragmenting process. To avoid this, we pick a random,
12866: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12867: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12868: archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12869: archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12870: ;;
12871: irix5* | irix6*)
12872: case $cc_basename in
12873: CC*)
12874: # SGI C++
12875: archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12876:
12877: # Archives containing C++ object files must be created using
12878: # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12879: # necessary to make sure instantiated templates are included
12880: # in the archive.
12881: old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12882: ;;
12883: *)
12884: if test "$GXX" = yes; then
12885: if test "$with_gnu_ld" = no; then
12886: archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12887: else
12888: archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
12889: fi
12890: fi
12891: link_all_deplibs_CXX=yes
12892: ;;
12893: esac
12894: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12895: hardcode_libdir_separator_CXX=:
12896: inherit_rpath_CXX=yes
12897: ;;
12898:
12899: linux* | k*bsd*-gnu | kopensolaris*-gnu)
12900: case $cc_basename in
12901: KCC*)
12902: # Kuck and Associates, Inc. (KAI) C++ Compiler
12903:
12904: # KCC will only create a shared library if the output file
12905: # ends with ".so" (or ".sl" for HP-UX), so rename the library
12906: # to its proper name (with version) after linking.
12907: archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12908: archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
12909: # Commands to make compiler produce verbose output that lists
12910: # what "hidden" libraries, object files and flags are used when
12911: # linking a shared library.
12912: #
12913: # There doesn't appear to be a way to prevent this compiler from
12914: # explicitly linking system object files so we need to strip them
12915: # from the output so that they don't get included in the library
12916: # dependencies.
12917: output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12918:
12919: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12920: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12921:
12922: # Archives containing C++ object files must be created using
12923: # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12924: old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12925: ;;
12926: icpc* | ecpc* )
12927: # Intel C++
12928: with_gnu_ld=yes
12929: # version 8.0 and above of icpc choke on multiply defined symbols
12930: # if we add $predep_objects and $postdep_objects, however 7.1 and
12931: # earlier do not add the objects themselves.
12932: case `$CC -V 2>&1` in
12933: *"Version 7."*)
12934: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12935: archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12936: ;;
12937: *) # Version 8.0 or newer
12938: tmp_idyn=
12939: case $host_cpu in
12940: ia64*) tmp_idyn=' -i_dynamic';;
12941: esac
12942: archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12943: archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12944: ;;
12945: esac
12946: archive_cmds_need_lc_CXX=no
12947: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12948: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12949: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12950: ;;
12951: pgCC* | pgcpp*)
12952: # Portland Group C++ compiler
12953: case `$CC -V` in
12954: *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12955: prelink_cmds_CXX='tpldir=Template.dir~
12956: rm -rf $tpldir~
12957: $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12958: compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12959: old_archive_cmds_CXX='tpldir=Template.dir~
12960: rm -rf $tpldir~
12961: $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12962: $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12963: $RANLIB $oldlib'
12964: archive_cmds_CXX='tpldir=Template.dir~
12965: rm -rf $tpldir~
12966: $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12967: $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12968: archive_expsym_cmds_CXX='tpldir=Template.dir~
12969: rm -rf $tpldir~
12970: $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12971: $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12972: ;;
12973: *) # Version 6 and above use weak symbols
12974: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12975: archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12976: ;;
12977: esac
12978:
12979: hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12980: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12981: whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12982: ;;
12983: cxx*)
12984: # Compaq C++
12985: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12986: archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
12987:
12988: runpath_var=LD_RUN_PATH
12989: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12990: hardcode_libdir_separator_CXX=:
12991:
12992: # Commands to make compiler produce verbose output that lists
12993: # what "hidden" libraries, object files and flags are used when
12994: # linking a shared library.
12995: #
12996: # There doesn't appear to be a way to prevent this compiler from
12997: # explicitly linking system object files so we need to strip them
12998: # from the output so that they don't get included in the library
12999: # dependencies.
13000: output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
13001: ;;
13002: xl* | mpixl* | bgxl*)
13003: # IBM XL 8.0 on PPC, with GNU ld
13004: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13005: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13006: archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13007: if test "x$supports_anon_versioning" = xyes; then
13008: archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13009: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13010: echo "local: *; };" >> $output_objdir/$libname.ver~
13011: $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13012: fi
13013: ;;
13014: *)
13015: case `$CC -V 2>&1 | sed 5q` in
13016: *Sun\ C*)
13017: # Sun C++ 5.9
13018: no_undefined_flag_CXX=' -zdefs'
13019: archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13020: archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13021: hardcode_libdir_flag_spec_CXX='-R$libdir'
13022: whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13023: compiler_needs_object_CXX=yes
13024:
13025: # Not sure whether something based on
13026: # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13027: # would be better.
13028: output_verbose_link_cmd='func_echo_all'
13029:
13030: # Archives containing C++ object files must be created using
13031: # "CC -xar", where "CC" is the Sun C++ compiler. This is
13032: # necessary to make sure instantiated templates are included
13033: # in the archive.
13034: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13035: ;;
13036: esac
13037: ;;
13038: esac
13039: ;;
13040:
13041: lynxos*)
13042: # FIXME: insert proper C++ library support
13043: ld_shlibs_CXX=no
13044: ;;
13045:
13046: m88k*)
13047: # FIXME: insert proper C++ library support
13048: ld_shlibs_CXX=no
13049: ;;
13050:
13051: mvs*)
13052: case $cc_basename in
13053: cxx*)
13054: # FIXME: insert proper C++ library support
13055: ld_shlibs_CXX=no
13056: ;;
13057: *)
13058: # FIXME: insert proper C++ library support
13059: ld_shlibs_CXX=no
13060: ;;
13061: esac
13062: ;;
13063:
13064: netbsd*)
13065: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13066: archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13067: wlarc=
13068: hardcode_libdir_flag_spec_CXX='-R$libdir'
13069: hardcode_direct_CXX=yes
13070: hardcode_shlibpath_var_CXX=no
13071: fi
13072: # Workaround some broken pre-1.5 toolchains
13073: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13074: ;;
13075:
13076: *nto* | *qnx*)
13077: ld_shlibs_CXX=yes
13078: ;;
13079:
13080: openbsd2*)
13081: # C++ shared libraries are fairly broken
13082: ld_shlibs_CXX=no
13083: ;;
13084:
13085: openbsd*)
13086: if test -f /usr/libexec/ld.so; then
13087: hardcode_direct_CXX=yes
13088: hardcode_shlibpath_var_CXX=no
13089: hardcode_direct_absolute_CXX=yes
13090: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13091: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13092: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13093: archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13094: export_dynamic_flag_spec_CXX='${wl}-E'
13095: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13096: fi
13097: output_verbose_link_cmd=func_echo_all
13098: else
13099: ld_shlibs_CXX=no
13100: fi
13101: ;;
13102:
13103: osf3* | osf4* | osf5*)
13104: case $cc_basename in
13105: KCC*)
13106: # Kuck and Associates, Inc. (KAI) C++ Compiler
13107:
13108: # KCC will only create a shared library if the output file
13109: # ends with ".so" (or ".sl" for HP-UX), so rename the library
13110: # to its proper name (with version) after linking.
13111: archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13112:
13113: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13114: hardcode_libdir_separator_CXX=:
13115:
13116: # Archives containing C++ object files must be created using
13117: # the KAI C++ compiler.
13118: case $host in
13119: osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13120: *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13121: esac
13122: ;;
13123: RCC*)
13124: # Rational C++ 2.4.1
13125: # FIXME: insert proper C++ library support
13126: ld_shlibs_CXX=no
13127: ;;
13128: cxx*)
13129: case $host in
13130: osf3*)
13131: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13132: archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13133: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13134: ;;
13135: *)
13136: allow_undefined_flag_CXX=' -expect_unresolved \*'
13137: archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13138: archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13139: echo "-hidden">> $lib.exp~
13140: $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
13141: $RM $lib.exp'
13142: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13143: ;;
13144: esac
13145:
13146: hardcode_libdir_separator_CXX=:
13147:
13148: # Commands to make compiler produce verbose output that lists
13149: # what "hidden" libraries, object files and flags are used when
13150: # linking a shared library.
13151: #
13152: # There doesn't appear to be a way to prevent this compiler from
13153: # explicitly linking system object files so we need to strip them
13154: # from the output so that they don't get included in the library
13155: # dependencies.
13156: output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13157: ;;
13158: *)
13159: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13160: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13161: case $host in
13162: osf3*)
13163: archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13164: ;;
13165: *)
13166: archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13167: ;;
13168: esac
13169:
13170: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13171: hardcode_libdir_separator_CXX=:
13172:
13173: # Commands to make compiler produce verbose output that lists
13174: # what "hidden" libraries, object files and flags are used when
13175: # linking a shared library.
13176: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13177:
13178: else
13179: # FIXME: insert proper C++ library support
13180: ld_shlibs_CXX=no
13181: fi
13182: ;;
13183: esac
13184: ;;
13185:
13186: psos*)
13187: # FIXME: insert proper C++ library support
13188: ld_shlibs_CXX=no
13189: ;;
13190:
13191: sunos4*)
13192: case $cc_basename in
13193: CC*)
13194: # Sun C++ 4.x
13195: # FIXME: insert proper C++ library support
13196: ld_shlibs_CXX=no
13197: ;;
13198: lcc*)
13199: # Lucid
13200: # FIXME: insert proper C++ library support
13201: ld_shlibs_CXX=no
13202: ;;
13203: *)
13204: # FIXME: insert proper C++ library support
13205: ld_shlibs_CXX=no
13206: ;;
13207: esac
13208: ;;
13209:
13210: solaris*)
13211: case $cc_basename in
13212: CC* | sunCC*)
13213: # Sun C++ 4.2, 5.x and Centerline C++
13214: archive_cmds_need_lc_CXX=yes
13215: no_undefined_flag_CXX=' -zdefs'
13216: archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13217: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13218: $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13219:
13220: hardcode_libdir_flag_spec_CXX='-R$libdir'
13221: hardcode_shlibpath_var_CXX=no
13222: case $host_os in
13223: solaris2.[0-5] | solaris2.[0-5].*) ;;
13224: *)
13225: # The compiler driver will combine and reorder linker options,
13226: # but understands `-z linker_flag'.
13227: # Supported since Solaris 2.6 (maybe 2.5.1?)
13228: whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13229: ;;
13230: esac
13231: link_all_deplibs_CXX=yes
13232:
13233: output_verbose_link_cmd='func_echo_all'
13234:
13235: # Archives containing C++ object files must be created using
13236: # "CC -xar", where "CC" is the Sun C++ compiler. This is
13237: # necessary to make sure instantiated templates are included
13238: # in the archive.
13239: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13240: ;;
13241: gcx*)
13242: # Green Hills C++ Compiler
13243: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13244:
13245: # The C++ compiler must be used to create the archive.
13246: old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13247: ;;
13248: *)
13249: # GNU C++ compiler with Solaris linker
13250: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13251: no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13252: if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13253: archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13254: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13255: $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13256:
13257: # Commands to make compiler produce verbose output that lists
13258: # what "hidden" libraries, object files and flags are used when
13259: # linking a shared library.
13260: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13261: else
13262: # g++ 2.7 appears to require `-G' NOT `-shared' on this
13263: # platform.
13264: archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13265: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13266: $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13267:
13268: # Commands to make compiler produce verbose output that lists
13269: # what "hidden" libraries, object files and flags are used when
13270: # linking a shared library.
13271: output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13272: fi
13273:
13274: hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13275: case $host_os in
13276: solaris2.[0-5] | solaris2.[0-5].*) ;;
13277: *)
13278: whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13279: ;;
13280: esac
13281: fi
13282: ;;
13283: esac
13284: ;;
13285:
13286: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13287: no_undefined_flag_CXX='${wl}-z,text'
13288: archive_cmds_need_lc_CXX=no
13289: hardcode_shlibpath_var_CXX=no
13290: runpath_var='LD_RUN_PATH'
13291:
13292: case $cc_basename in
13293: CC*)
13294: archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13295: archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13296: ;;
13297: *)
13298: archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13299: archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13300: ;;
13301: esac
13302: ;;
13303:
13304: sysv5* | sco3.2v5* | sco5v6*)
13305: # Note: We can NOT use -z defs as we might desire, because we do not
13306: # link with -lc, and that would cause any symbols used from libc to
13307: # always be unresolved, which means just about no library would
13308: # ever link correctly. If we're not using GNU ld we use -z text
13309: # though, which does catch some bad symbols but isn't as heavy-handed
13310: # as -z defs.
13311: no_undefined_flag_CXX='${wl}-z,text'
13312: allow_undefined_flag_CXX='${wl}-z,nodefs'
13313: archive_cmds_need_lc_CXX=no
13314: hardcode_shlibpath_var_CXX=no
13315: hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13316: hardcode_libdir_separator_CXX=':'
13317: link_all_deplibs_CXX=yes
13318: export_dynamic_flag_spec_CXX='${wl}-Bexport'
13319: runpath_var='LD_RUN_PATH'
13320:
13321: case $cc_basename in
13322: CC*)
13323: archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13324: archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13325: old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13326: '"$old_archive_cmds_CXX"
13327: reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13328: '"$reload_cmds_CXX"
13329: ;;
13330: *)
13331: archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13332: archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13333: ;;
13334: esac
13335: ;;
13336:
13337: tandem*)
13338: case $cc_basename in
13339: NCC*)
13340: # NonStop-UX NCC 3.20
13341: # FIXME: insert proper C++ library support
13342: ld_shlibs_CXX=no
13343: ;;
13344: *)
13345: # FIXME: insert proper C++ library support
13346: ld_shlibs_CXX=no
13347: ;;
13348: esac
13349: ;;
13350:
13351: vxworks*)
13352: # FIXME: insert proper C++ library support
13353: ld_shlibs_CXX=no
13354: ;;
13355:
13356: *)
13357: # FIXME: insert proper C++ library support
13358: ld_shlibs_CXX=no
13359: ;;
13360: esac
13361:
13362: echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13363: echo "${ECHO_T}$ld_shlibs_CXX" >&6
13364: test "$ld_shlibs_CXX" = no && can_build_shared=no
13365:
13366: GCC_CXX="$GXX"
13367: LD_CXX="$LD"
13368:
13369: ## CAVEAT EMPTOR:
13370: ## There is no encapsulation within the following macros, do not change
13371: ## the running order or otherwise move them around unless you know exactly
13372: ## what you are doing...
13373: # Dependencies to place before and after the object being linked:
13374: predep_objects_CXX=
13375: postdep_objects_CXX=
13376: predeps_CXX=
13377: postdeps_CXX=
13378: compiler_lib_search_path_CXX=
13379:
13380: cat > conftest.$ac_ext <<_LT_EOF
13381: class Foo
13382: {
13383: public:
13384: Foo (void) { a = 0; }
13385: private:
13386: int a;
13387: };
13388: _LT_EOF
13389:
13390:
13391: _lt_libdeps_save_CFLAGS=$CFLAGS
13392: case "$CC $CFLAGS " in #(
13393: *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13394: *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13395: *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13396: esac
13397:
13398: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13399: (eval $ac_compile) 2>&5
13400: ac_status=$?
13401: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13402: (exit $ac_status); }; then
13403: # Parse the compiler output and extract the necessary
13404: # objects, libraries and library flags.
13405:
13406: # Sentinel used to keep track of whether or not we are before
13407: # the conftest object file.
13408: pre_test_object_deps_done=no
13409:
13410: for p in `eval "$output_verbose_link_cmd"`; do
13411: case ${prev}${p} in
13412:
13413: -L* | -R* | -l*)
13414: # Some compilers place space between "-{L,R}" and the path.
13415: # Remove the space.
13416: if test $p = "-L" ||
13417: test $p = "-R"; then
13418: prev=$p
13419: continue
13420: fi
13421:
13422: # Expand the sysroot to ease extracting the directories later.
13423: if test -z "$prev"; then
13424: case $p in
13425: -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13426: -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13427: -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13428: esac
13429: fi
13430: case $p in
13431: =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13432: esac
13433: if test "$pre_test_object_deps_done" = no; then
13434: case ${prev} in
13435: -L | -R)
13436: # Internal compiler library paths should come after those
13437: # provided the user. The postdeps already come after the
13438: # user supplied libs so there is no need to process them.
13439: if test -z "$compiler_lib_search_path_CXX"; then
13440: compiler_lib_search_path_CXX="${prev}${p}"
13441: else
13442: compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13443: fi
13444: ;;
13445: # The "-l" case would never come before the object being
13446: # linked, so don't bother handling this case.
13447: esac
13448: else
13449: if test -z "$postdeps_CXX"; then
13450: postdeps_CXX="${prev}${p}"
13451: else
13452: postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13453: fi
13454: fi
13455: prev=
13456: ;;
13457:
13458: *.lto.$objext) ;; # Ignore GCC LTO objects
13459: *.$objext)
13460: # This assumes that the test object file only shows up
13461: # once in the compiler output.
13462: if test "$p" = "conftest.$objext"; then
13463: pre_test_object_deps_done=yes
13464: continue
13465: fi
13466:
13467: if test "$pre_test_object_deps_done" = no; then
13468: if test -z "$predep_objects_CXX"; then
13469: predep_objects_CXX="$p"
13470: else
13471: predep_objects_CXX="$predep_objects_CXX $p"
13472: fi
13473: else
13474: if test -z "$postdep_objects_CXX"; then
13475: postdep_objects_CXX="$p"
13476: else
13477: postdep_objects_CXX="$postdep_objects_CXX $p"
13478: fi
13479: fi
13480: ;;
13481:
13482: *) ;; # Ignore the rest.
13483:
13484: esac
13485: done
13486:
13487: # Clean up.
13488: rm -f a.out a.exe
13489: else
13490: echo "libtool.m4: error: problem compiling CXX test program"
13491: fi
13492:
13493: $RM -f confest.$objext
13494: CFLAGS=$_lt_libdeps_save_CFLAGS
13495:
13496: # PORTME: override above test on systems where it is broken
13497: case $host_os in
13498: interix[3-9]*)
13499: # Interix 3.5 installs completely hosed .la files for C++, so rather than
13500: # hack all around it, let's just trust "g++" to DTRT.
13501: predep_objects_CXX=
13502: postdep_objects_CXX=
13503: postdeps_CXX=
13504: ;;
13505:
13506: linux*)
13507: case `$CC -V 2>&1 | sed 5q` in
13508: *Sun\ C*)
13509: # Sun C++ 5.9
13510:
13511: # The more standards-conforming stlport4 library is
13512: # incompatible with the Cstd library. Avoid specifying
13513: # it if it's in CXXFLAGS. Ignore libCrun as
13514: # -library=stlport4 depends on it.
13515: case " $CXX $CXXFLAGS " in
13516: *" -library=stlport4 "*)
13517: solaris_use_stlport4=yes
13518: ;;
13519: esac
13520:
13521: if test "$solaris_use_stlport4" != yes; then
13522: postdeps_CXX='-library=Cstd -library=Crun'
13523: fi
13524: ;;
13525: esac
13526: ;;
13527:
13528: solaris*)
13529: case $cc_basename in
13530: CC* | sunCC*)
13531: # The more standards-conforming stlport4 library is
13532: # incompatible with the Cstd library. Avoid specifying
13533: # it if it's in CXXFLAGS. Ignore libCrun as
13534: # -library=stlport4 depends on it.
13535: case " $CXX $CXXFLAGS " in
13536: *" -library=stlport4 "*)
13537: solaris_use_stlport4=yes
13538: ;;
13539: esac
13540:
13541: # Adding this requires a known-good setup of shared libraries for
13542: # Sun compiler versions before 5.6, else PIC objects from an old
13543: # archive will be linked into the output, leading to subtle bugs.
13544: if test "$solaris_use_stlport4" != yes; then
13545: postdeps_CXX='-library=Cstd -library=Crun'
13546: fi
13547: ;;
13548: esac
13549: ;;
13550: esac
13551:
13552:
13553: case " $postdeps_CXX " in
13554: *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13555: esac
13556: compiler_lib_search_dirs_CXX=
13557: if test -n "${compiler_lib_search_path_CXX}"; then
13558: compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13559: fi
13560:
13561:
13562:
13563:
13564:
13565:
13566:
13567:
13568:
13569:
13570:
13571:
13572:
13573:
13574:
13575:
13576:
13577:
13578:
13579:
13580:
13581:
13582:
13583:
13584:
13585:
13586:
13587:
13588:
13589:
13590:
13591: lt_prog_compiler_wl_CXX=
13592: lt_prog_compiler_pic_CXX=
13593: lt_prog_compiler_static_CXX=
13594:
13595:
13596: # C++ specific cases for pic, static, wl, etc.
13597: if test "$GXX" = yes; then
13598: lt_prog_compiler_wl_CXX='-Wl,'
13599: lt_prog_compiler_static_CXX='-static'
13600:
13601: case $host_os in
13602: aix*)
13603: # All AIX code is PIC.
13604: if test "$host_cpu" = ia64; then
13605: # AIX 5 now supports IA64 processor
13606: lt_prog_compiler_static_CXX='-Bstatic'
13607: fi
13608: ;;
13609:
13610: amigaos*)
13611: case $host_cpu in
13612: powerpc)
13613: # see comment about AmigaOS4 .so support
13614: lt_prog_compiler_pic_CXX='-fPIC'
13615: ;;
13616: m68k)
13617: # FIXME: we need at least 68020 code to build shared libraries, but
13618: # adding the `-m68020' flag to GCC prevents building anything better,
13619: # like `-m68040'.
13620: lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13621: ;;
13622: esac
13623: ;;
13624:
13625: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13626: # PIC is the default for these OSes.
13627: ;;
13628: mingw* | cygwin* | os2* | pw32* | cegcc*)
13629: # This hack is so that the source file can tell whether it is being
13630: # built for inclusion in a dll (and should export symbols for example).
13631: # Although the cygwin gcc ignores -fPIC, still need this for old-style
13632: # (--disable-auto-import) libraries
13633: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13634: ;;
13635: darwin* | rhapsody*)
13636: # PIC is the default on this platform
13637: # Common symbols not allowed in MH_DYLIB files
13638: lt_prog_compiler_pic_CXX='-fno-common'
13639: ;;
13640: *djgpp*)
13641: # DJGPP does not support shared libraries at all
13642: lt_prog_compiler_pic_CXX=
13643: ;;
13644: haiku*)
13645: # PIC is the default for Haiku.
13646: # The "-static" flag exists, but is broken.
13647: lt_prog_compiler_static_CXX=
13648: ;;
13649: interix[3-9]*)
13650: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13651: # Instead, we relocate shared libraries at runtime.
13652: ;;
13653: sysv4*MP*)
13654: if test -d /usr/nec; then
13655: lt_prog_compiler_pic_CXX=-Kconform_pic
13656: fi
13657: ;;
13658: hpux*)
13659: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13660: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13661: # sets the default TLS model and affects inlining.
13662: case $host_cpu in
13663: hppa*64*)
13664: ;;
13665: *)
13666: lt_prog_compiler_pic_CXX='-fPIC'
13667: ;;
13668: esac
13669: ;;
13670: *qnx* | *nto*)
13671: # QNX uses GNU C++, but need to define -shared option too, otherwise
13672: # it will coredump.
13673: lt_prog_compiler_pic_CXX='-fPIC -shared'
13674: ;;
13675: *)
13676: lt_prog_compiler_pic_CXX='-fPIC'
13677: ;;
13678: esac
13679: else
13680: case $host_os in
13681: aix[4-9]*)
13682: # All AIX code is PIC.
13683: if test "$host_cpu" = ia64; then
13684: # AIX 5 now supports IA64 processor
13685: lt_prog_compiler_static_CXX='-Bstatic'
13686: else
13687: lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13688: fi
13689: ;;
13690: chorus*)
13691: case $cc_basename in
13692: cxch68*)
13693: # Green Hills C++ Compiler
13694: # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
13695: ;;
13696: esac
13697: ;;
13698: mingw* | cygwin* | os2* | pw32* | cegcc*)
13699: # This hack is so that the source file can tell whether it is being
13700: # built for inclusion in a dll (and should export symbols for example).
13701: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13702: ;;
13703: dgux*)
13704: case $cc_basename in
13705: ec++*)
13706: lt_prog_compiler_pic_CXX='-KPIC'
13707: ;;
13708: ghcx*)
13709: # Green Hills C++ Compiler
13710: lt_prog_compiler_pic_CXX='-pic'
13711: ;;
13712: *)
13713: ;;
13714: esac
13715: ;;
13716: freebsd* | dragonfly*)
13717: # FreeBSD uses GNU C++
13718: ;;
13719: hpux9* | hpux10* | hpux11*)
13720: case $cc_basename in
13721: CC*)
13722: lt_prog_compiler_wl_CXX='-Wl,'
13723: lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13724: if test "$host_cpu" != ia64; then
13725: lt_prog_compiler_pic_CXX='+Z'
13726: fi
13727: ;;
13728: aCC*)
13729: lt_prog_compiler_wl_CXX='-Wl,'
13730: lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13731: case $host_cpu in
13732: hppa*64*|ia64*)
13733: # +Z the default
13734: ;;
13735: *)
13736: lt_prog_compiler_pic_CXX='+Z'
13737: ;;
13738: esac
13739: ;;
13740: *)
13741: ;;
13742: esac
13743: ;;
13744: interix*)
13745: # This is c89, which is MS Visual C++ (no shared libs)
13746: # Anyone wants to do a port?
13747: ;;
13748: irix5* | irix6* | nonstopux*)
13749: case $cc_basename in
13750: CC*)
13751: lt_prog_compiler_wl_CXX='-Wl,'
13752: lt_prog_compiler_static_CXX='-non_shared'
13753: # CC pic flag -KPIC is the default.
13754: ;;
13755: *)
13756: ;;
13757: esac
13758: ;;
13759: linux* | k*bsd*-gnu | kopensolaris*-gnu)
13760: case $cc_basename in
13761: KCC*)
13762: # KAI C++ Compiler
13763: lt_prog_compiler_wl_CXX='--backend -Wl,'
13764: lt_prog_compiler_pic_CXX='-fPIC'
13765: ;;
13766: ecpc* )
13767: # old Intel C++ for x86_64 which still supported -KPIC.
13768: lt_prog_compiler_wl_CXX='-Wl,'
13769: lt_prog_compiler_pic_CXX='-KPIC'
13770: lt_prog_compiler_static_CXX='-static'
13771: ;;
13772: icpc* )
13773: # Intel C++, used to be incompatible with GCC.
13774: # ICC 10 doesn't accept -KPIC any more.
13775: lt_prog_compiler_wl_CXX='-Wl,'
13776: lt_prog_compiler_pic_CXX='-fPIC'
13777: lt_prog_compiler_static_CXX='-static'
13778: ;;
13779: pgCC* | pgcpp*)
13780: # Portland Group C++ compiler
13781: lt_prog_compiler_wl_CXX='-Wl,'
13782: lt_prog_compiler_pic_CXX='-fpic'
13783: lt_prog_compiler_static_CXX='-Bstatic'
13784: ;;
13785: cxx*)
13786: # Compaq C++
13787: # Make sure the PIC flag is empty. It appears that all Alpha
13788: # Linux and Compaq Tru64 Unix objects are PIC.
13789: lt_prog_compiler_pic_CXX=
13790: lt_prog_compiler_static_CXX='-non_shared'
13791: ;;
13792: xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13793: # IBM XL 8.0, 9.0 on PPC and BlueGene
13794: lt_prog_compiler_wl_CXX='-Wl,'
13795: lt_prog_compiler_pic_CXX='-qpic'
13796: lt_prog_compiler_static_CXX='-qstaticlink'
13797: ;;
13798: *)
13799: case `$CC -V 2>&1 | sed 5q` in
13800: *Sun\ C*)
13801: # Sun C++ 5.9
13802: lt_prog_compiler_pic_CXX='-KPIC'
13803: lt_prog_compiler_static_CXX='-Bstatic'
13804: lt_prog_compiler_wl_CXX='-Qoption ld '
13805: ;;
13806: esac
13807: ;;
13808: esac
13809: ;;
13810: lynxos*)
13811: ;;
13812: m88k*)
13813: ;;
13814: mvs*)
13815: case $cc_basename in
13816: cxx*)
13817: lt_prog_compiler_pic_CXX='-W c,exportall'
13818: ;;
13819: *)
13820: ;;
13821: esac
13822: ;;
13823: netbsd*)
13824: ;;
13825: *qnx* | *nto*)
13826: # QNX uses GNU C++, but need to define -shared option too, otherwise
13827: # it will coredump.
13828: lt_prog_compiler_pic_CXX='-fPIC -shared'
13829: ;;
13830: osf3* | osf4* | osf5*)
13831: case $cc_basename in
13832: KCC*)
13833: lt_prog_compiler_wl_CXX='--backend -Wl,'
13834: ;;
13835: RCC*)
13836: # Rational C++ 2.4.1
13837: lt_prog_compiler_pic_CXX='-pic'
13838: ;;
13839: cxx*)
13840: # Digital/Compaq C++
13841: lt_prog_compiler_wl_CXX='-Wl,'
13842: # Make sure the PIC flag is empty. It appears that all Alpha
13843: # Linux and Compaq Tru64 Unix objects are PIC.
13844: lt_prog_compiler_pic_CXX=
13845: lt_prog_compiler_static_CXX='-non_shared'
13846: ;;
13847: *)
13848: ;;
13849: esac
13850: ;;
13851: psos*)
13852: ;;
13853: solaris*)
13854: case $cc_basename in
13855: CC* | sunCC*)
13856: # Sun C++ 4.2, 5.x and Centerline C++
13857: lt_prog_compiler_pic_CXX='-KPIC'
13858: lt_prog_compiler_static_CXX='-Bstatic'
13859: lt_prog_compiler_wl_CXX='-Qoption ld '
13860: ;;
13861: gcx*)
13862: # Green Hills C++ Compiler
13863: lt_prog_compiler_pic_CXX='-PIC'
13864: ;;
13865: *)
13866: ;;
13867: esac
13868: ;;
13869: sunos4*)
13870: case $cc_basename in
13871: CC*)
13872: # Sun C++ 4.x
13873: lt_prog_compiler_pic_CXX='-pic'
13874: lt_prog_compiler_static_CXX='-Bstatic'
13875: ;;
13876: lcc*)
13877: # Lucid
13878: lt_prog_compiler_pic_CXX='-pic'
13879: ;;
13880: *)
13881: ;;
13882: esac
13883: ;;
13884: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13885: case $cc_basename in
13886: CC*)
13887: lt_prog_compiler_wl_CXX='-Wl,'
13888: lt_prog_compiler_pic_CXX='-KPIC'
13889: lt_prog_compiler_static_CXX='-Bstatic'
13890: ;;
13891: esac
13892: ;;
13893: tandem*)
13894: case $cc_basename in
13895: NCC*)
13896: # NonStop-UX NCC 3.20
13897: lt_prog_compiler_pic_CXX='-KPIC'
13898: ;;
13899: *)
13900: ;;
13901: esac
13902: ;;
13903: vxworks*)
13904: ;;
13905: *)
13906: lt_prog_compiler_can_build_shared_CXX=no
13907: ;;
13908: esac
13909: fi
13910:
13911: case $host_os in
13912: # For platforms which do not support PIC, -DPIC is meaningless:
13913: *djgpp*)
13914: lt_prog_compiler_pic_CXX=
13915: ;;
13916: *)
13917: lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13918: ;;
13919: esac
13920:
13921: echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13922: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13923: if test "${lt_cv_prog_compiler_pic_CXX+set}" = set; then
13924: echo $ECHO_N "(cached) $ECHO_C" >&6
13925: else
13926: lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
13927: fi
13928: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_CXX" >&5
13929: echo "${ECHO_T}$lt_cv_prog_compiler_pic_CXX" >&6
13930: lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
13931:
13932: #
13933: # Check to make sure the PIC flag actually works.
13934: #
13935: if test -n "$lt_prog_compiler_pic_CXX"; then
13936: echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13937: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
13938: if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
13939: echo $ECHO_N "(cached) $ECHO_C" >&6
13940: else
13941: lt_cv_prog_compiler_pic_works_CXX=no
13942: ac_outfile=conftest.$ac_objext
13943: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13944: lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13945: # Insert the option either (1) after the last *FLAGS variable, or
13946: # (2) before a word containing "conftest.", or (3) at the end.
13947: # Note that $ac_compile itself does not contain backslashes and begins
13948: # with a dollar sign (not a hyphen), so the echo should work correctly.
13949: # The option is referenced via a variable to avoid confusing sed.
13950: lt_compile=`echo "$ac_compile" | $SED \
13951: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13952: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13953: -e 's:$: $lt_compiler_flag:'`
13954: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13955: (eval "$lt_compile" 2>conftest.err)
13956: ac_status=$?
13957: cat conftest.err >&5
13958: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959: if (exit $ac_status) && test -s "$ac_outfile"; then
13960: # The compiler can only warn and ignore the option if not recognized
13961: # So say no if there are warnings other than the usual output.
13962: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13963: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13964: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13965: lt_cv_prog_compiler_pic_works_CXX=yes
13966: fi
13967: fi
13968: $RM conftest*
13969:
13970: fi
13971: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13972: echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6
13973:
13974: if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13975: case $lt_prog_compiler_pic_CXX in
13976: "" | " "*) ;;
13977: *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13978: esac
13979: else
13980: lt_prog_compiler_pic_CXX=
13981: lt_prog_compiler_can_build_shared_CXX=no
13982: fi
13983:
13984: fi
13985:
13986:
13987:
13988:
13989:
13990: #
13991: # Check to make sure the static flag actually works.
13992: #
13993: wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13994: echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13995: echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13996: if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
13997: echo $ECHO_N "(cached) $ECHO_C" >&6
13998: else
13999: lt_cv_prog_compiler_static_works_CXX=no
14000: save_LDFLAGS="$LDFLAGS"
14001: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14002: echo "$lt_simple_link_test_code" > conftest.$ac_ext
14003: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14004: # The linker can only warn and ignore the option if not recognized
14005: # So say no if there are warnings
14006: if test -s conftest.err; then
14007: # Append any errors to the config.log.
14008: cat conftest.err 1>&5
14009: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14010: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14011: if diff conftest.exp conftest.er2 >/dev/null; then
14012: lt_cv_prog_compiler_static_works_CXX=yes
14013: fi
14014: else
14015: lt_cv_prog_compiler_static_works_CXX=yes
14016: fi
14017: fi
14018: $RM -r conftest*
14019: LDFLAGS="$save_LDFLAGS"
14020:
14021: fi
14022: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14023: echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6
14024:
14025: if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14026: :
14027: else
14028: lt_prog_compiler_static_CXX=
14029: fi
14030:
14031:
14032:
14033:
14034: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14035: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14036: if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14037: echo $ECHO_N "(cached) $ECHO_C" >&6
14038: else
14039: lt_cv_prog_compiler_c_o_CXX=no
14040: $RM -r conftest 2>/dev/null
14041: mkdir conftest
14042: cd conftest
14043: mkdir out
14044: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14045:
14046: lt_compiler_flag="-o out/conftest2.$ac_objext"
14047: # Insert the option either (1) after the last *FLAGS variable, or
14048: # (2) before a word containing "conftest.", or (3) at the end.
14049: # Note that $ac_compile itself does not contain backslashes and begins
14050: # with a dollar sign (not a hyphen), so the echo should work correctly.
14051: lt_compile=`echo "$ac_compile" | $SED \
14052: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14053: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14054: -e 's:$: $lt_compiler_flag:'`
14055: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14056: (eval "$lt_compile" 2>out/conftest.err)
14057: ac_status=$?
14058: cat out/conftest.err >&5
14059: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14060: if (exit $ac_status) && test -s out/conftest2.$ac_objext
14061: then
14062: # The compiler can only warn and ignore the option if not recognized
14063: # So say no if there are warnings
14064: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14065: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14066: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14067: lt_cv_prog_compiler_c_o_CXX=yes
14068: fi
14069: fi
14070: chmod u+w . 2>&5
14071: $RM conftest*
14072: # SGI C++ compiler will create directory out/ii_files/ for
14073: # template instantiation
14074: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14075: $RM out/* && rmdir out
14076: cd ..
14077: $RM -r conftest
14078: $RM conftest*
14079:
14080: fi
14081: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14082: echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
14083:
14084:
14085:
14086: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14087: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14088: if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14089: echo $ECHO_N "(cached) $ECHO_C" >&6
14090: else
14091: lt_cv_prog_compiler_c_o_CXX=no
14092: $RM -r conftest 2>/dev/null
14093: mkdir conftest
14094: cd conftest
14095: mkdir out
14096: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14097:
14098: lt_compiler_flag="-o out/conftest2.$ac_objext"
14099: # Insert the option either (1) after the last *FLAGS variable, or
14100: # (2) before a word containing "conftest.", or (3) at the end.
14101: # Note that $ac_compile itself does not contain backslashes and begins
14102: # with a dollar sign (not a hyphen), so the echo should work correctly.
14103: lt_compile=`echo "$ac_compile" | $SED \
14104: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14105: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14106: -e 's:$: $lt_compiler_flag:'`
14107: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14108: (eval "$lt_compile" 2>out/conftest.err)
14109: ac_status=$?
14110: cat out/conftest.err >&5
14111: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14112: if (exit $ac_status) && test -s out/conftest2.$ac_objext
14113: then
14114: # The compiler can only warn and ignore the option if not recognized
14115: # So say no if there are warnings
14116: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14117: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14118: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14119: lt_cv_prog_compiler_c_o_CXX=yes
14120: fi
14121: fi
14122: chmod u+w . 2>&5
14123: $RM conftest*
14124: # SGI C++ compiler will create directory out/ii_files/ for
14125: # template instantiation
14126: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14127: $RM out/* && rmdir out
14128: cd ..
14129: $RM -r conftest
14130: $RM conftest*
14131:
14132: fi
14133: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14134: echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
14135:
14136:
14137:
14138:
14139: hard_links="nottested"
14140: if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14141: # do not overwrite the value of need_locks provided by the user
14142: echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14143: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14144: hard_links=yes
14145: $RM conftest*
14146: ln conftest.a conftest.b 2>/dev/null && hard_links=no
14147: touch conftest.a
14148: ln conftest.a conftest.b 2>&5 || hard_links=no
14149: ln conftest.a conftest.b 2>/dev/null && hard_links=no
14150: echo "$as_me:$LINENO: result: $hard_links" >&5
14151: echo "${ECHO_T}$hard_links" >&6
14152: if test "$hard_links" = no; then
14153: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14154: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14155: need_locks=warn
14156: fi
14157: else
14158: need_locks=no
14159: fi
14160:
14161:
14162:
14163: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14164: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14165:
14166: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14167: exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14168: case $host_os in
14169: aix[4-9]*)
14170: # If we're using GNU nm, then we don't want the "-C" option.
14171: # -C means demangle to AIX nm, but means don't demangle with GNU nm
14172: # Also, AIX nm treats weak defined symbols like other global defined
14173: # symbols, whereas GNU nm marks them as "W".
14174: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14175: export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14176: else
14177: export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14178: fi
14179: ;;
14180: pw32*)
14181: export_symbols_cmds_CXX="$ltdll_cmds"
14182: ;;
14183: cygwin* | mingw* | cegcc*)
14184: case $cc_basename in
14185: cl*)
14186: exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14187: ;;
14188: *)
14189: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14190: exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14191: ;;
14192: esac
14193: ;;
14194: *)
14195: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14196: ;;
14197: esac
14198:
14199: echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14200: echo "${ECHO_T}$ld_shlibs_CXX" >&6
14201: test "$ld_shlibs_CXX" = no && can_build_shared=no
14202:
14203: with_gnu_ld_CXX=$with_gnu_ld
14204:
14205:
14206:
14207:
14208:
14209:
14210: #
14211: # Do we need to explicitly link libc?
14212: #
14213: case "x$archive_cmds_need_lc_CXX" in
14214: x|xyes)
14215: # Assume -lc should be added
14216: archive_cmds_need_lc_CXX=yes
14217:
14218: if test "$enable_shared" = yes && test "$GCC" = yes; then
14219: case $archive_cmds_CXX in
14220: *'~'*)
14221: # FIXME: we may have to deal with multi-command sequences.
14222: ;;
14223: '$CC '*)
14224: # Test whether the compiler implicitly links with -lc since on some
14225: # systems, -lgcc has to come before -lc. If gcc already passes -lc
14226: # to ld, don't add -lc before -lgcc.
14227: echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14228: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14229: if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then
14230: echo $ECHO_N "(cached) $ECHO_C" >&6
14231: else
14232: $RM conftest*
14233: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14234:
14235: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14236: (eval $ac_compile) 2>&5
14237: ac_status=$?
14238: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239: (exit $ac_status); } 2>conftest.err; then
14240: soname=conftest
14241: lib=conftest
14242: libobjs=conftest.$ac_objext
14243: deplibs=
14244: wl=$lt_prog_compiler_wl_CXX
14245: pic_flag=$lt_prog_compiler_pic_CXX
14246: compiler_flags=-v
14247: linker_flags=-v
14248: verstring=
14249: output_objdir=.
14250: libname=conftest
14251: lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14252: allow_undefined_flag_CXX=
14253: if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
14254: (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14255: ac_status=$?
14256: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257: (exit $ac_status); }
14258: then
14259: lt_cv_archive_cmds_need_lc_CXX=no
14260: else
14261: lt_cv_archive_cmds_need_lc_CXX=yes
14262: fi
14263: allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14264: else
14265: cat conftest.err 1>&5
14266: fi
14267: $RM conftest*
14268:
14269: fi
14270: echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14271: echo "${ECHO_T}$lt_cv_archive_cmds_need_lc_CXX" >&6
14272: archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14273: ;;
14274: esac
14275: fi
14276: ;;
14277: esac
14278:
14279:
14280:
14281:
14282:
14283:
14284:
14285:
14286:
14287:
14288:
14289:
14290:
14291:
14292:
14293:
14294:
14295:
14296:
14297:
14298:
14299:
14300:
14301:
14302:
14303:
14304:
14305:
14306:
14307:
14308:
14309:
14310:
14311:
14312:
14313:
14314:
14315:
14316:
14317:
14318:
14319:
14320:
14321:
14322:
14323:
14324:
14325:
14326:
14327:
14328:
14329:
14330:
14331:
14332:
14333:
14334:
14335:
14336:
14337:
14338:
14339:
14340: echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14341: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14342:
14343: library_names_spec=
14344: libname_spec='lib$name'
14345: soname_spec=
14346: shrext_cmds=".so"
14347: postinstall_cmds=
14348: postuninstall_cmds=
14349: finish_cmds=
14350: finish_eval=
14351: shlibpath_var=
14352: shlibpath_overrides_runpath=unknown
14353: version_type=none
14354: dynamic_linker="$host_os ld.so"
14355: sys_lib_dlsearch_path_spec="/lib /usr/lib"
14356: need_lib_prefix=unknown
14357: hardcode_into_libs=no
14358:
14359: # when you set need_version to no, make sure it does not cause -set_version
14360: # flags to be left without arguments
14361: need_version=unknown
14362:
14363: case $host_os in
14364: aix3*)
14365: version_type=linux # correct to gnu/linux during the next big refactor
14366: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14367: shlibpath_var=LIBPATH
14368:
14369: # AIX 3 has no versioning support, so we append a major version to the name.
14370: soname_spec='${libname}${release}${shared_ext}$major'
14371: ;;
14372:
14373: aix[4-9]*)
14374: version_type=linux # correct to gnu/linux during the next big refactor
14375: need_lib_prefix=no
14376: need_version=no
14377: hardcode_into_libs=yes
14378: if test "$host_cpu" = ia64; then
14379: # AIX 5 supports IA64
14380: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14381: shlibpath_var=LD_LIBRARY_PATH
14382: else
14383: # With GCC up to 2.95.x, collect2 would create an import file
14384: # for dependence libraries. The import file would start with
14385: # the line `#! .'. This would cause the generated library to
14386: # depend on `.', always an invalid library. This was fixed in
14387: # development snapshots of GCC prior to 3.0.
14388: case $host_os in
14389: aix4 | aix4.[01] | aix4.[01].*)
14390: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14391: echo ' yes '
14392: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14393: :
14394: else
14395: can_build_shared=no
14396: fi
14397: ;;
14398: esac
14399: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14400: # soname into executable. Probably we can add versioning support to
14401: # collect2, so additional links can be useful in future.
14402: if test "$aix_use_runtimelinking" = yes; then
14403: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14404: # instead of lib<name>.a to let people know that these are not
14405: # typical AIX shared libraries.
14406: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14407: else
14408: # We preserve .a as extension for shared libraries through AIX4.2
14409: # and later when we are not doing run time linking.
14410: library_names_spec='${libname}${release}.a $libname.a'
14411: soname_spec='${libname}${release}${shared_ext}$major'
14412: fi
14413: shlibpath_var=LIBPATH
14414: fi
14415: ;;
14416:
14417: amigaos*)
14418: case $host_cpu in
14419: powerpc)
14420: # Since July 2007 AmigaOS4 officially supports .so libraries.
14421: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14422: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14423: ;;
14424: m68k)
14425: library_names_spec='$libname.ixlibrary $libname.a'
14426: # Create ${libname}_ixlibrary.a entries in /sys/libs.
14427: finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14428: ;;
14429: esac
14430: ;;
14431:
14432: beos*)
14433: library_names_spec='${libname}${shared_ext}'
14434: dynamic_linker="$host_os ld.so"
14435: shlibpath_var=LIBRARY_PATH
14436: ;;
14437:
14438: bsdi[45]*)
14439: version_type=linux # correct to gnu/linux during the next big refactor
14440: need_version=no
14441: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14442: soname_spec='${libname}${release}${shared_ext}$major'
14443: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14444: shlibpath_var=LD_LIBRARY_PATH
14445: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14446: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14447: # the default ld.so.conf also contains /usr/contrib/lib and
14448: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14449: # libtool to hard-code these into programs
14450: ;;
14451:
14452: cygwin* | mingw* | pw32* | cegcc*)
14453: version_type=windows
14454: shrext_cmds=".dll"
14455: need_version=no
14456: need_lib_prefix=no
14457:
14458: case $GCC,$cc_basename in
14459: yes,*)
14460: # gcc
14461: library_names_spec='$libname.dll.a'
14462: # DLL is installed to $(libdir)/../bin by postinstall_cmds
14463: postinstall_cmds='base_file=`basename \${file}`~
14464: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14465: dldir=$destdir/`dirname \$dlpath`~
14466: test -d \$dldir || mkdir -p \$dldir~
14467: $install_prog $dir/$dlname \$dldir/$dlname~
14468: chmod a+x \$dldir/$dlname~
14469: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14470: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14471: fi'
14472: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14473: dlpath=$dir/\$dldll~
14474: $RM \$dlpath'
14475: shlibpath_overrides_runpath=yes
14476:
14477: case $host_os in
14478: cygwin*)
14479: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14480: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14481:
14482: ;;
14483: mingw* | cegcc*)
14484: # MinGW DLLs use traditional 'lib' prefix
14485: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14486: ;;
14487: pw32*)
14488: # pw32 DLLs use 'pw' prefix rather than 'lib'
14489: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14490: ;;
14491: esac
14492: dynamic_linker='Win32 ld.exe'
14493: ;;
14494:
14495: *,cl*)
14496: # Native MSVC
14497: libname_spec='$name'
14498: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14499: library_names_spec='${libname}.dll.lib'
14500:
14501: case $build_os in
14502: mingw*)
14503: sys_lib_search_path_spec=
14504: lt_save_ifs=$IFS
14505: IFS=';'
14506: for lt_path in $LIB
14507: do
14508: IFS=$lt_save_ifs
14509: # Let DOS variable expansion print the short 8.3 style file name.
14510: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14511: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14512: done
14513: IFS=$lt_save_ifs
14514: # Convert to MSYS style.
14515: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14516: ;;
14517: cygwin*)
14518: # Convert to unix form, then to dos form, then back to unix form
14519: # but this time dos style (no spaces!) so that the unix form looks
14520: # like /cygdrive/c/PROGRA~1:/cygdr...
14521: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14522: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14523: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14524: ;;
14525: *)
14526: sys_lib_search_path_spec="$LIB"
14527: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14528: # It is most probably a Windows format PATH.
14529: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14530: else
14531: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14532: fi
14533: # FIXME: find the short name or the path components, as spaces are
14534: # common. (e.g. "Program Files" -> "PROGRA~1")
14535: ;;
14536: esac
14537:
14538: # DLL is installed to $(libdir)/../bin by postinstall_cmds
14539: postinstall_cmds='base_file=`basename \${file}`~
14540: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14541: dldir=$destdir/`dirname \$dlpath`~
14542: test -d \$dldir || mkdir -p \$dldir~
14543: $install_prog $dir/$dlname \$dldir/$dlname'
14544: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14545: dlpath=$dir/\$dldll~
14546: $RM \$dlpath'
14547: shlibpath_overrides_runpath=yes
14548: dynamic_linker='Win32 link.exe'
14549: ;;
14550:
14551: *)
14552: # Assume MSVC wrapper
14553: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14554: dynamic_linker='Win32 ld.exe'
14555: ;;
14556: esac
14557: # FIXME: first we should search . and the directory the executable is in
14558: shlibpath_var=PATH
14559: ;;
14560:
14561: darwin* | rhapsody*)
14562: dynamic_linker="$host_os dyld"
14563: version_type=darwin
14564: need_lib_prefix=no
14565: need_version=no
14566: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14567: soname_spec='${libname}${release}${major}$shared_ext'
14568: shlibpath_overrides_runpath=yes
14569: shlibpath_var=DYLD_LIBRARY_PATH
14570: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14571:
14572: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14573: ;;
14574:
14575: dgux*)
14576: version_type=linux # correct to gnu/linux during the next big refactor
14577: need_lib_prefix=no
14578: need_version=no
14579: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14580: soname_spec='${libname}${release}${shared_ext}$major'
14581: shlibpath_var=LD_LIBRARY_PATH
14582: ;;
14583:
14584: freebsd* | dragonfly*)
14585: # DragonFly does not have aout. When/if they implement a new
14586: # versioning mechanism, adjust this.
14587: if test -x /usr/bin/objformat; then
14588: objformat=`/usr/bin/objformat`
14589: else
14590: case $host_os in
14591: freebsd[23].*) objformat=aout ;;
14592: *) objformat=elf ;;
14593: esac
14594: fi
14595: version_type=freebsd-$objformat
14596: case $version_type in
14597: freebsd-elf*)
14598: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14599: need_version=no
14600: need_lib_prefix=no
14601: ;;
14602: freebsd-*)
14603: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14604: need_version=yes
14605: ;;
14606: esac
14607: shlibpath_var=LD_LIBRARY_PATH
14608: case $host_os in
14609: freebsd2.*)
14610: shlibpath_overrides_runpath=yes
14611: ;;
14612: freebsd3.[01]* | freebsdelf3.[01]*)
14613: shlibpath_overrides_runpath=yes
14614: hardcode_into_libs=yes
14615: ;;
14616: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14617: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14618: shlibpath_overrides_runpath=no
14619: hardcode_into_libs=yes
14620: ;;
14621: *) # from 4.6 on, and DragonFly
14622: shlibpath_overrides_runpath=yes
14623: hardcode_into_libs=yes
14624: ;;
14625: esac
14626: ;;
14627:
14628: gnu*)
14629: version_type=linux # correct to gnu/linux during the next big refactor
14630: need_lib_prefix=no
14631: need_version=no
14632: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14633: soname_spec='${libname}${release}${shared_ext}$major'
14634: shlibpath_var=LD_LIBRARY_PATH
14635: shlibpath_overrides_runpath=no
14636: hardcode_into_libs=yes
14637: ;;
14638:
14639: haiku*)
14640: version_type=linux # correct to gnu/linux during the next big refactor
14641: need_lib_prefix=no
14642: need_version=no
14643: dynamic_linker="$host_os runtime_loader"
14644: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14645: soname_spec='${libname}${release}${shared_ext}$major'
14646: shlibpath_var=LIBRARY_PATH
14647: shlibpath_overrides_runpath=yes
14648: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14649: hardcode_into_libs=yes
14650: ;;
14651:
14652: hpux9* | hpux10* | hpux11*)
14653: # Give a soname corresponding to the major version so that dld.sl refuses to
14654: # link against other versions.
14655: version_type=sunos
14656: need_lib_prefix=no
14657: need_version=no
14658: case $host_cpu in
14659: ia64*)
14660: shrext_cmds='.so'
14661: hardcode_into_libs=yes
14662: dynamic_linker="$host_os dld.so"
14663: shlibpath_var=LD_LIBRARY_PATH
14664: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14665: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14666: soname_spec='${libname}${release}${shared_ext}$major'
14667: if test "X$HPUX_IA64_MODE" = X32; then
14668: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14669: else
14670: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14671: fi
14672: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14673: ;;
14674: hppa*64*)
14675: shrext_cmds='.sl'
14676: hardcode_into_libs=yes
14677: dynamic_linker="$host_os dld.sl"
14678: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14679: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14680: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14681: soname_spec='${libname}${release}${shared_ext}$major'
14682: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14683: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14684: ;;
14685: *)
14686: shrext_cmds='.sl'
14687: dynamic_linker="$host_os dld.sl"
14688: shlibpath_var=SHLIB_PATH
14689: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14690: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14691: soname_spec='${libname}${release}${shared_ext}$major'
14692: ;;
14693: esac
14694: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14695: postinstall_cmds='chmod 555 $lib'
14696: # or fails outright, so override atomically:
14697: install_override_mode=555
14698: ;;
14699:
14700: interix[3-9]*)
14701: version_type=linux # correct to gnu/linux during the next big refactor
14702: need_lib_prefix=no
14703: need_version=no
14704: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14705: soname_spec='${libname}${release}${shared_ext}$major'
14706: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14707: shlibpath_var=LD_LIBRARY_PATH
14708: shlibpath_overrides_runpath=no
14709: hardcode_into_libs=yes
14710: ;;
14711:
14712: irix5* | irix6* | nonstopux*)
14713: case $host_os in
14714: nonstopux*) version_type=nonstopux ;;
14715: *)
14716: if test "$lt_cv_prog_gnu_ld" = yes; then
14717: version_type=linux # correct to gnu/linux during the next big refactor
14718: else
14719: version_type=irix
14720: fi ;;
14721: esac
14722: need_lib_prefix=no
14723: need_version=no
14724: soname_spec='${libname}${release}${shared_ext}$major'
14725: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14726: case $host_os in
14727: irix5* | nonstopux*)
14728: libsuff= shlibsuff=
14729: ;;
14730: *)
14731: case $LD in # libtool.m4 will add one of these switches to LD
14732: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14733: libsuff= shlibsuff= libmagic=32-bit;;
14734: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14735: libsuff=32 shlibsuff=N32 libmagic=N32;;
14736: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14737: libsuff=64 shlibsuff=64 libmagic=64-bit;;
14738: *) libsuff= shlibsuff= libmagic=never-match;;
14739: esac
14740: ;;
14741: esac
14742: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14743: shlibpath_overrides_runpath=no
14744: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14745: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14746: hardcode_into_libs=yes
14747: ;;
14748:
14749: # No shared lib support for Linux oldld, aout, or coff.
14750: linux*oldld* | linux*aout* | linux*coff*)
14751: dynamic_linker=no
14752: ;;
14753:
14754: # This must be glibc/ELF.
14755: linux* | k*bsd*-gnu | kopensolaris*-gnu)
14756: version_type=linux # correct to gnu/linux during the next big refactor
14757: need_lib_prefix=no
14758: need_version=no
14759: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14760: soname_spec='${libname}${release}${shared_ext}$major'
14761: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14762: shlibpath_var=LD_LIBRARY_PATH
14763: shlibpath_overrides_runpath=no
14764:
14765: # Some binutils ld are patched to set DT_RUNPATH
14766: if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
14767: echo $ECHO_N "(cached) $ECHO_C" >&6
14768: else
14769: lt_cv_shlibpath_overrides_runpath=no
14770: save_LDFLAGS=$LDFLAGS
14771: save_libdir=$libdir
14772: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14773: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14774: cat >conftest.$ac_ext <<_ACEOF
14775: /* confdefs.h. */
14776: _ACEOF
14777: cat confdefs.h >>conftest.$ac_ext
14778: cat >>conftest.$ac_ext <<_ACEOF
14779: /* end confdefs.h. */
14780:
14781: int
14782: main ()
14783: {
14784:
14785: ;
14786: return 0;
14787: }
14788: _ACEOF
14789: rm -f conftest.$ac_objext conftest$ac_exeext
14790: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14791: (eval $ac_link) 2>conftest.er1
14792: ac_status=$?
14793: grep -v '^ *+' conftest.er1 >conftest.err
14794: rm -f conftest.er1
14795: cat conftest.err >&5
14796: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797: (exit $ac_status); } &&
14798: { ac_try='test -z "$ac_cxx_werror_flag"
14799: || test ! -s conftest.err'
14800: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14801: (eval $ac_try) 2>&5
14802: ac_status=$?
14803: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14804: (exit $ac_status); }; } &&
14805: { ac_try='test -s conftest$ac_exeext'
14806: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14807: (eval $ac_try) 2>&5
14808: ac_status=$?
14809: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14810: (exit $ac_status); }; }; then
14811: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
14812: lt_cv_shlibpath_overrides_runpath=yes
14813: fi
14814:
14815: else
14816: echo "$as_me: failed program was:" >&5
14817: sed 's/^/| /' conftest.$ac_ext >&5
14818:
14819: fi
14820: rm -f conftest.err conftest.$ac_objext \
14821: conftest$ac_exeext conftest.$ac_ext
14822: LDFLAGS=$save_LDFLAGS
14823: libdir=$save_libdir
14824:
14825: fi
14826:
14827: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14828:
14829: # This implies no fast_install, which is unacceptable.
14830: # Some rework will be needed to allow for fast_install
14831: # before this can be enabled.
14832: hardcode_into_libs=yes
14833:
14834: # Append ld.so.conf contents to the search path
14835: if test -f /etc/ld.so.conf; then
14836: lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
14837: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14838: fi
14839:
14840: # We used to test for /lib/ld.so.1 and disable shared libraries on
14841: # powerpc, because MkLinux only supported shared libraries with the
14842: # GNU dynamic linker. Since this was broken with cross compilers,
14843: # most powerpc-linux boxes support dynamic linking these days and
14844: # people can always --disable-shared, the test was removed, and we
14845: # assume the GNU/Linux dynamic linker is in use.
14846: dynamic_linker='GNU/Linux ld.so'
14847: ;;
14848:
14849: netbsd*)
14850: version_type=sunos
14851: need_lib_prefix=no
14852: need_version=no
14853: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14854: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14855: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14856: dynamic_linker='NetBSD (a.out) ld.so'
14857: else
14858: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14859: soname_spec='${libname}${release}${shared_ext}$major'
14860: dynamic_linker='NetBSD ld.elf_so'
14861: fi
14862: shlibpath_var=LD_LIBRARY_PATH
14863: shlibpath_overrides_runpath=yes
14864: hardcode_into_libs=yes
14865: ;;
14866:
14867: newsos6)
14868: version_type=linux # correct to gnu/linux during the next big refactor
14869: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14870: shlibpath_var=LD_LIBRARY_PATH
14871: shlibpath_overrides_runpath=yes
14872: ;;
14873:
14874: *nto* | *qnx*)
14875: version_type=qnx
14876: need_lib_prefix=no
14877: need_version=no
14878: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14879: soname_spec='${libname}${release}${shared_ext}$major'
14880: shlibpath_var=LD_LIBRARY_PATH
14881: shlibpath_overrides_runpath=no
14882: hardcode_into_libs=yes
14883: dynamic_linker='ldqnx.so'
14884: ;;
14885:
14886: openbsd*)
14887: version_type=sunos
14888: sys_lib_dlsearch_path_spec="/usr/lib"
14889: need_lib_prefix=no
14890: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14891: case $host_os in
14892: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14893: *) need_version=no ;;
14894: esac
14895: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14896: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14897: shlibpath_var=LD_LIBRARY_PATH
14898: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14899: case $host_os in
14900: openbsd2.[89] | openbsd2.[89].*)
14901: shlibpath_overrides_runpath=no
14902: ;;
14903: *)
14904: shlibpath_overrides_runpath=yes
14905: ;;
14906: esac
14907: else
14908: shlibpath_overrides_runpath=yes
14909: fi
14910: ;;
14911:
14912: os2*)
14913: libname_spec='$name'
14914: shrext_cmds=".dll"
14915: need_lib_prefix=no
14916: library_names_spec='$libname${shared_ext} $libname.a'
14917: dynamic_linker='OS/2 ld.exe'
14918: shlibpath_var=LIBPATH
14919: ;;
14920:
14921: osf3* | osf4* | osf5*)
14922: version_type=osf
14923: need_lib_prefix=no
14924: need_version=no
14925: soname_spec='${libname}${release}${shared_ext}$major'
14926: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14927: shlibpath_var=LD_LIBRARY_PATH
14928: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14929: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14930: ;;
14931:
14932: rdos*)
14933: dynamic_linker=no
14934: ;;
14935:
14936: solaris*)
14937: version_type=linux # correct to gnu/linux during the next big refactor
14938: need_lib_prefix=no
14939: need_version=no
14940: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14941: soname_spec='${libname}${release}${shared_ext}$major'
14942: shlibpath_var=LD_LIBRARY_PATH
14943: shlibpath_overrides_runpath=yes
14944: hardcode_into_libs=yes
14945: # ldd complains unless libraries are executable
14946: postinstall_cmds='chmod +x $lib'
14947: ;;
14948:
14949: sunos4*)
14950: version_type=sunos
14951: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14952: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14953: shlibpath_var=LD_LIBRARY_PATH
14954: shlibpath_overrides_runpath=yes
14955: if test "$with_gnu_ld" = yes; then
14956: need_lib_prefix=no
14957: fi
14958: need_version=yes
14959: ;;
14960:
14961: sysv4 | sysv4.3*)
14962: version_type=linux # correct to gnu/linux during the next big refactor
14963: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14964: soname_spec='${libname}${release}${shared_ext}$major'
14965: shlibpath_var=LD_LIBRARY_PATH
14966: case $host_vendor in
14967: sni)
14968: shlibpath_overrides_runpath=no
14969: need_lib_prefix=no
14970: runpath_var=LD_RUN_PATH
14971: ;;
14972: siemens)
14973: need_lib_prefix=no
14974: ;;
14975: motorola)
14976: need_lib_prefix=no
14977: need_version=no
14978: shlibpath_overrides_runpath=no
14979: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14980: ;;
14981: esac
14982: ;;
14983:
14984: sysv4*MP*)
14985: if test -d /usr/nec ;then
14986: version_type=linux # correct to gnu/linux during the next big refactor
14987: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14988: soname_spec='$libname${shared_ext}.$major'
14989: shlibpath_var=LD_LIBRARY_PATH
14990: fi
14991: ;;
14992:
14993: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14994: version_type=freebsd-elf
14995: need_lib_prefix=no
14996: need_version=no
14997: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14998: soname_spec='${libname}${release}${shared_ext}$major'
14999: shlibpath_var=LD_LIBRARY_PATH
15000: shlibpath_overrides_runpath=yes
15001: hardcode_into_libs=yes
15002: if test "$with_gnu_ld" = yes; then
15003: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15004: else
15005: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15006: case $host_os in
15007: sco3.2v5*)
15008: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15009: ;;
15010: esac
15011: fi
15012: sys_lib_dlsearch_path_spec='/usr/lib'
15013: ;;
15014:
15015: tpf*)
15016: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15017: version_type=linux # correct to gnu/linux during the next big refactor
15018: need_lib_prefix=no
15019: need_version=no
15020: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15021: shlibpath_var=LD_LIBRARY_PATH
15022: shlibpath_overrides_runpath=no
15023: hardcode_into_libs=yes
15024: ;;
15025:
15026: uts4*)
15027: version_type=linux # correct to gnu/linux during the next big refactor
15028: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15029: soname_spec='${libname}${release}${shared_ext}$major'
15030: shlibpath_var=LD_LIBRARY_PATH
15031: ;;
15032:
15033: *)
15034: dynamic_linker=no
15035: ;;
15036: esac
15037: echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15038: echo "${ECHO_T}$dynamic_linker" >&6
15039: test "$dynamic_linker" = no && can_build_shared=no
15040:
15041: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15042: if test "$GCC" = yes; then
15043: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15044: fi
15045:
15046: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15047: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15048: fi
15049: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15050: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15051: fi
15052:
15053:
15054:
15055:
15056:
15057:
15058:
15059:
15060:
15061:
15062:
15063:
15064:
15065:
15066:
15067:
15068:
15069:
15070:
15071:
15072:
15073:
15074:
15075:
15076:
15077:
15078:
15079:
15080:
15081:
15082:
15083:
15084:
15085:
15086:
15087:
15088:
15089:
15090: echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15091: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15092: hardcode_action_CXX=
15093: if test -n "$hardcode_libdir_flag_spec_CXX" ||
15094: test -n "$runpath_var_CXX" ||
15095: test "X$hardcode_automatic_CXX" = "Xyes" ; then
15096:
15097: # We can hardcode non-existent directories.
15098: if test "$hardcode_direct_CXX" != no &&
15099: # If the only mechanism to avoid hardcoding is shlibpath_var, we
15100: # have to relink, otherwise we might link with an installed library
15101: # when we should be linking with a yet-to-be-installed one
15102: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15103: test "$hardcode_minus_L_CXX" != no; then
15104: # Linking always hardcodes the temporary library directory.
15105: hardcode_action_CXX=relink
15106: else
15107: # We can link without hardcoding, and we can hardcode nonexisting dirs.
15108: hardcode_action_CXX=immediate
15109: fi
15110: else
15111: # We cannot hardcode anything, or else we can only hardcode existing
15112: # directories.
15113: hardcode_action_CXX=unsupported
15114: fi
15115: echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15116: echo "${ECHO_T}$hardcode_action_CXX" >&6
15117:
15118: if test "$hardcode_action_CXX" = relink ||
15119: test "$inherit_rpath_CXX" = yes; then
15120: # Fast installation is not supported
15121: enable_fast_install=no
15122: elif test "$shlibpath_overrides_runpath" = yes ||
15123: test "$enable_shared" = no; then
15124: # Fast installation is not necessary
15125: enable_fast_install=needless
15126: fi
15127:
15128:
15129:
15130:
15131:
15132:
15133:
15134: fi # test -n "$compiler"
15135:
15136: CC=$lt_save_CC
15137: CFLAGS=$lt_save_CFLAGS
15138: LDCXX=$LD
15139: LD=$lt_save_LD
15140: GCC=$lt_save_GCC
15141: with_gnu_ld=$lt_save_with_gnu_ld
15142: lt_cv_path_LDCXX=$lt_cv_path_LD
15143: lt_cv_path_LD=$lt_save_path_LD
15144: lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15145: lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15146: fi # test "$_lt_caught_CXX_error" != yes
15147:
15148: ac_ext=c
15149: ac_cpp='$CPP $CPPFLAGS'
15150: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15151: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15152: ac_compiler_gnu=$ac_cv_c_compiler_gnu
15153:
15154:
15155:
15156:
15157:
15158:
15159:
15160:
15161:
15162:
15163:
15164:
15165:
15166:
15167:
15168: ac_config_commands="$ac_config_commands libtool"
15169:
15170:
15171:
15172:
15173: # Only expand once:
15174:
15175:
15176: echo "$as_me:$LINENO: checking which extension is used for runtime loadable modules" >&5
15177: echo $ECHO_N "checking which extension is used for runtime loadable modules... $ECHO_C" >&6
15178: if test "${libltdl_cv_shlibext+set}" = set; then
15179: echo $ECHO_N "(cached) $ECHO_C" >&6
15180: else
15181:
15182: module=yes
15183: eval libltdl_cv_shlibext=$shrext_cmds
15184: module=no
15185: eval libltdl_cv_shrext=$shrext_cmds
15186:
15187: fi
15188: echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
15189: echo "${ECHO_T}$libltdl_cv_shlibext" >&6
15190: if test -n "$libltdl_cv_shlibext"; then
15191:
15192: cat >>confdefs.h <<_ACEOF
15193: #define LT_MODULE_EXT "$libltdl_cv_shlibext"
15194: _ACEOF
15195:
15196: fi
15197: if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
15198:
15199: cat >>confdefs.h <<_ACEOF
15200: #define LT_SHARED_EXT "$libltdl_cv_shrext"
15201: _ACEOF
15202:
15203: fi
15204:
15205: echo "$as_me:$LINENO: checking which variable specifies run-time module search path" >&5
15206: echo $ECHO_N "checking which variable specifies run-time module search path... $ECHO_C" >&6
15207: if test "${lt_cv_module_path_var+set}" = set; then
15208: echo $ECHO_N "(cached) $ECHO_C" >&6
15209: else
15210: lt_cv_module_path_var="$shlibpath_var"
15211: fi
15212: echo "$as_me:$LINENO: result: $lt_cv_module_path_var" >&5
15213: echo "${ECHO_T}$lt_cv_module_path_var" >&6
15214: if test -n "$lt_cv_module_path_var"; then
15215:
15216: cat >>confdefs.h <<_ACEOF
15217: #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
15218: _ACEOF
15219:
15220: fi
15221:
15222: echo "$as_me:$LINENO: checking for the default library search path" >&5
15223: echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
15224: if test "${lt_cv_sys_dlsearch_path+set}" = set; then
15225: echo $ECHO_N "(cached) $ECHO_C" >&6
15226: else
15227: lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
15228: fi
15229: echo "$as_me:$LINENO: result: $lt_cv_sys_dlsearch_path" >&5
15230: echo "${ECHO_T}$lt_cv_sys_dlsearch_path" >&6
15231: if test -n "$lt_cv_sys_dlsearch_path"; then
15232: sys_dlsearch_path=
15233: for dir in $lt_cv_sys_dlsearch_path; do
15234: if test -z "$sys_dlsearch_path"; then
15235: sys_dlsearch_path="$dir"
15236: else
15237: sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
15238: fi
15239: done
15240:
15241: cat >>confdefs.h <<_ACEOF
15242: #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
15243: _ACEOF
15244:
15245: fi
15246:
15247:
15248: LT_DLLOADERS=
15249:
15250:
15251: ac_ext=c
15252: ac_cpp='$CPP $CPPFLAGS'
15253: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15254: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15255: ac_compiler_gnu=$ac_cv_c_compiler_gnu
15256:
15257:
15258: LIBADD_DLOPEN=
15259: echo "$as_me:$LINENO: checking for library containing dlopen" >&5
15260: echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
15261: if test "${ac_cv_search_dlopen+set}" = set; then
15262: echo $ECHO_N "(cached) $ECHO_C" >&6
15263: else
15264: ac_func_search_save_LIBS=$LIBS
15265: ac_cv_search_dlopen=no
15266: cat >conftest.$ac_ext <<_ACEOF
15267: /* confdefs.h. */
15268: _ACEOF
15269: cat confdefs.h >>conftest.$ac_ext
15270: cat >>conftest.$ac_ext <<_ACEOF
15271: /* end confdefs.h. */
15272:
15273: /* Override any gcc2 internal prototype to avoid an error. */
15274: #ifdef __cplusplus
15275: extern "C"
15276: #endif
15277: /* We use char because int might match the return type of a gcc2
15278: builtin and then its argument prototype would still apply. */
15279: char dlopen ();
15280: int
15281: main ()
15282: {
15283: dlopen ();
15284: ;
15285: return 0;
15286: }
15287: _ACEOF
15288: rm -f conftest.$ac_objext conftest$ac_exeext
15289: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15290: (eval $ac_link) 2>conftest.er1
15291: ac_status=$?
15292: grep -v '^ *+' conftest.er1 >conftest.err
15293: rm -f conftest.er1
15294: cat conftest.err >&5
15295: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15296: (exit $ac_status); } &&
15297: { ac_try='test -z "$ac_c_werror_flag"
15298: || test ! -s conftest.err'
15299: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15300: (eval $ac_try) 2>&5
15301: ac_status=$?
15302: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15303: (exit $ac_status); }; } &&
15304: { ac_try='test -s conftest$ac_exeext'
15305: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15306: (eval $ac_try) 2>&5
15307: ac_status=$?
15308: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15309: (exit $ac_status); }; }; then
15310: ac_cv_search_dlopen="none required"
15311: else
15312: echo "$as_me: failed program was:" >&5
15313: sed 's/^/| /' conftest.$ac_ext >&5
15314:
15315: fi
15316: rm -f conftest.err conftest.$ac_objext \
15317: conftest$ac_exeext conftest.$ac_ext
15318: if test "$ac_cv_search_dlopen" = no; then
15319: for ac_lib in dl; do
15320: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15321: cat >conftest.$ac_ext <<_ACEOF
15322: /* confdefs.h. */
15323: _ACEOF
15324: cat confdefs.h >>conftest.$ac_ext
15325: cat >>conftest.$ac_ext <<_ACEOF
15326: /* end confdefs.h. */
15327:
15328: /* Override any gcc2 internal prototype to avoid an error. */
15329: #ifdef __cplusplus
15330: extern "C"
15331: #endif
15332: /* We use char because int might match the return type of a gcc2
15333: builtin and then its argument prototype would still apply. */
15334: char dlopen ();
15335: int
15336: main ()
15337: {
15338: dlopen ();
15339: ;
15340: return 0;
15341: }
15342: _ACEOF
15343: rm -f conftest.$ac_objext conftest$ac_exeext
15344: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15345: (eval $ac_link) 2>conftest.er1
15346: ac_status=$?
15347: grep -v '^ *+' conftest.er1 >conftest.err
15348: rm -f conftest.er1
15349: cat conftest.err >&5
15350: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15351: (exit $ac_status); } &&
15352: { ac_try='test -z "$ac_c_werror_flag"
15353: || test ! -s conftest.err'
15354: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15355: (eval $ac_try) 2>&5
15356: ac_status=$?
15357: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15358: (exit $ac_status); }; } &&
15359: { ac_try='test -s conftest$ac_exeext'
15360: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15361: (eval $ac_try) 2>&5
15362: ac_status=$?
15363: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15364: (exit $ac_status); }; }; then
15365: ac_cv_search_dlopen="-l$ac_lib"
15366: break
15367: else
15368: echo "$as_me: failed program was:" >&5
15369: sed 's/^/| /' conftest.$ac_ext >&5
15370:
15371: fi
15372: rm -f conftest.err conftest.$ac_objext \
15373: conftest$ac_exeext conftest.$ac_ext
15374: done
15375: fi
15376: LIBS=$ac_func_search_save_LIBS
15377: fi
15378: echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
15379: echo "${ECHO_T}$ac_cv_search_dlopen" >&6
15380: if test "$ac_cv_search_dlopen" != no; then
15381: test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
15382:
15383: cat >>confdefs.h <<\_ACEOF
15384: #define HAVE_LIBDL 1
15385: _ACEOF
15386:
15387: if test "$ac_cv_search_dlopen" != "none required" ; then
15388: LIBADD_DLOPEN="-ldl"
15389: fi
15390: libltdl_cv_lib_dl_dlopen="yes"
15391: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
15392: else
15393: cat >conftest.$ac_ext <<_ACEOF
15394: /* confdefs.h. */
15395: _ACEOF
15396: cat confdefs.h >>conftest.$ac_ext
15397: cat >>conftest.$ac_ext <<_ACEOF
15398: /* end confdefs.h. */
15399: #if HAVE_DLFCN_H
15400: # include <dlfcn.h>
15401: #endif
15402:
15403: int
15404: main ()
15405: {
15406: dlopen(0, 0);
15407: ;
15408: return 0;
15409: }
15410: _ACEOF
15411: rm -f conftest.$ac_objext conftest$ac_exeext
15412: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15413: (eval $ac_link) 2>conftest.er1
15414: ac_status=$?
15415: grep -v '^ *+' conftest.er1 >conftest.err
15416: rm -f conftest.er1
15417: cat conftest.err >&5
15418: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15419: (exit $ac_status); } &&
15420: { ac_try='test -z "$ac_c_werror_flag"
15421: || test ! -s conftest.err'
15422: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15423: (eval $ac_try) 2>&5
15424: ac_status=$?
15425: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15426: (exit $ac_status); }; } &&
15427: { ac_try='test -s conftest$ac_exeext'
15428: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15429: (eval $ac_try) 2>&5
15430: ac_status=$?
15431: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15432: (exit $ac_status); }; }; then
15433:
15434: cat >>confdefs.h <<\_ACEOF
15435: #define HAVE_LIBDL 1
15436: _ACEOF
15437:
15438: libltdl_cv_func_dlopen="yes"
15439: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
15440: else
15441: echo "$as_me: failed program was:" >&5
15442: sed 's/^/| /' conftest.$ac_ext >&5
15443:
15444: echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
15445: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
15446: if test "${ac_cv_lib_svld_dlopen+set}" = set; then
15447: echo $ECHO_N "(cached) $ECHO_C" >&6
15448: else
15449: ac_check_lib_save_LIBS=$LIBS
15450: LIBS="-lsvld $LIBS"
15451: cat >conftest.$ac_ext <<_ACEOF
15452: /* confdefs.h. */
15453: _ACEOF
15454: cat confdefs.h >>conftest.$ac_ext
15455: cat >>conftest.$ac_ext <<_ACEOF
15456: /* end confdefs.h. */
15457:
15458: /* Override any gcc2 internal prototype to avoid an error. */
15459: #ifdef __cplusplus
15460: extern "C"
15461: #endif
15462: /* We use char because int might match the return type of a gcc2
15463: builtin and then its argument prototype would still apply. */
15464: char dlopen ();
15465: int
15466: main ()
15467: {
15468: dlopen ();
15469: ;
15470: return 0;
15471: }
15472: _ACEOF
15473: rm -f conftest.$ac_objext conftest$ac_exeext
15474: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15475: (eval $ac_link) 2>conftest.er1
15476: ac_status=$?
15477: grep -v '^ *+' conftest.er1 >conftest.err
15478: rm -f conftest.er1
15479: cat conftest.err >&5
15480: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15481: (exit $ac_status); } &&
15482: { ac_try='test -z "$ac_c_werror_flag"
15483: || test ! -s conftest.err'
15484: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15485: (eval $ac_try) 2>&5
15486: ac_status=$?
15487: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15488: (exit $ac_status); }; } &&
15489: { ac_try='test -s conftest$ac_exeext'
15490: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15491: (eval $ac_try) 2>&5
15492: ac_status=$?
15493: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15494: (exit $ac_status); }; }; then
15495: ac_cv_lib_svld_dlopen=yes
15496: else
15497: echo "$as_me: failed program was:" >&5
15498: sed 's/^/| /' conftest.$ac_ext >&5
15499:
15500: ac_cv_lib_svld_dlopen=no
15501: fi
15502: rm -f conftest.err conftest.$ac_objext \
15503: conftest$ac_exeext conftest.$ac_ext
15504: LIBS=$ac_check_lib_save_LIBS
15505: fi
15506: echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
15507: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
15508: if test $ac_cv_lib_svld_dlopen = yes; then
15509:
15510: cat >>confdefs.h <<\_ACEOF
15511: #define HAVE_LIBDL 1
15512: _ACEOF
15513:
15514: LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
15515: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
15516: fi
15517:
15518: fi
15519: rm -f conftest.err conftest.$ac_objext \
15520: conftest$ac_exeext conftest.$ac_ext
15521: fi
15522:
15523: if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
15524: then
15525: lt_save_LIBS="$LIBS"
15526: LIBS="$LIBS $LIBADD_DLOPEN"
15527:
15528: for ac_func in dlerror
15529: do
15530: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15531: echo "$as_me:$LINENO: checking for $ac_func" >&5
15532: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15533: if eval "test \"\${$as_ac_var+set}\" = set"; then
15534: echo $ECHO_N "(cached) $ECHO_C" >&6
15535: else
15536: cat >conftest.$ac_ext <<_ACEOF
15537: /* confdefs.h. */
15538: _ACEOF
15539: cat confdefs.h >>conftest.$ac_ext
15540: cat >>conftest.$ac_ext <<_ACEOF
15541: /* end confdefs.h. */
15542: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15543: For example, HP-UX 11i <limits.h> declares gettimeofday. */
15544: #define $ac_func innocuous_$ac_func
15545:
15546: /* System header to define __stub macros and hopefully few prototypes,
15547: which can conflict with char $ac_func (); below.
15548: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15549: <limits.h> exists even on freestanding compilers. */
15550:
15551: #ifdef __STDC__
15552: # include <limits.h>
15553: #else
15554: # include <assert.h>
15555: #endif
15556:
15557: #undef $ac_func
15558:
15559: /* Override any gcc2 internal prototype to avoid an error. */
15560: #ifdef __cplusplus
15561: extern "C"
15562: {
15563: #endif
15564: /* We use char because int might match the return type of a gcc2
15565: builtin and then its argument prototype would still apply. */
15566: char $ac_func ();
15567: /* The GNU C library defines this for functions which it implements
15568: to always fail with ENOSYS. Some functions are actually named
15569: something starting with __ and the normal name is an alias. */
15570: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15571: choke me
15572: #else
15573: char (*f) () = $ac_func;
15574: #endif
15575: #ifdef __cplusplus
15576: }
15577: #endif
15578:
15579: int
15580: main ()
15581: {
15582: return f != $ac_func;
15583: ;
15584: return 0;
15585: }
15586: _ACEOF
15587: rm -f conftest.$ac_objext conftest$ac_exeext
15588: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15589: (eval $ac_link) 2>conftest.er1
15590: ac_status=$?
15591: grep -v '^ *+' conftest.er1 >conftest.err
15592: rm -f conftest.er1
15593: cat conftest.err >&5
15594: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15595: (exit $ac_status); } &&
15596: { ac_try='test -z "$ac_c_werror_flag"
15597: || test ! -s conftest.err'
15598: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15599: (eval $ac_try) 2>&5
15600: ac_status=$?
15601: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15602: (exit $ac_status); }; } &&
15603: { ac_try='test -s conftest$ac_exeext'
15604: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15605: (eval $ac_try) 2>&5
15606: ac_status=$?
15607: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15608: (exit $ac_status); }; }; then
15609: eval "$as_ac_var=yes"
15610: else
15611: echo "$as_me: failed program was:" >&5
15612: sed 's/^/| /' conftest.$ac_ext >&5
15613:
15614: eval "$as_ac_var=no"
15615: fi
15616: rm -f conftest.err conftest.$ac_objext \
15617: conftest$ac_exeext conftest.$ac_ext
15618: fi
15619: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15620: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15621: if test `eval echo '${'$as_ac_var'}'` = yes; then
15622: cat >>confdefs.h <<_ACEOF
15623: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15624: _ACEOF
15625:
15626: fi
15627: done
15628:
15629: LIBS="$lt_save_LIBS"
15630: fi
15631:
15632:
15633: LIBADD_SHL_LOAD=
15634: echo "$as_me:$LINENO: checking for shl_load" >&5
15635: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
15636: if test "${ac_cv_func_shl_load+set}" = set; then
15637: echo $ECHO_N "(cached) $ECHO_C" >&6
15638: else
15639: cat >conftest.$ac_ext <<_ACEOF
15640: /* confdefs.h. */
15641: _ACEOF
15642: cat confdefs.h >>conftest.$ac_ext
15643: cat >>conftest.$ac_ext <<_ACEOF
15644: /* end confdefs.h. */
15645: /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
15646: For example, HP-UX 11i <limits.h> declares gettimeofday. */
15647: #define shl_load innocuous_shl_load
15648:
15649: /* System header to define __stub macros and hopefully few prototypes,
15650: which can conflict with char shl_load (); below.
15651: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15652: <limits.h> exists even on freestanding compilers. */
15653:
15654: #ifdef __STDC__
15655: # include <limits.h>
15656: #else
15657: # include <assert.h>
15658: #endif
15659:
15660: #undef shl_load
15661:
15662: /* Override any gcc2 internal prototype to avoid an error. */
15663: #ifdef __cplusplus
15664: extern "C"
15665: {
15666: #endif
15667: /* We use char because int might match the return type of a gcc2
15668: builtin and then its argument prototype would still apply. */
15669: char shl_load ();
15670: /* The GNU C library defines this for functions which it implements
15671: to always fail with ENOSYS. Some functions are actually named
15672: something starting with __ and the normal name is an alias. */
15673: #if defined (__stub_shl_load) || defined (__stub___shl_load)
15674: choke me
15675: #else
15676: char (*f) () = shl_load;
15677: #endif
15678: #ifdef __cplusplus
15679: }
15680: #endif
15681:
15682: int
15683: main ()
15684: {
15685: return f != shl_load;
15686: ;
15687: return 0;
15688: }
15689: _ACEOF
15690: rm -f conftest.$ac_objext conftest$ac_exeext
15691: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15692: (eval $ac_link) 2>conftest.er1
15693: ac_status=$?
15694: grep -v '^ *+' conftest.er1 >conftest.err
15695: rm -f conftest.er1
15696: cat conftest.err >&5
15697: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15698: (exit $ac_status); } &&
15699: { ac_try='test -z "$ac_c_werror_flag"
15700: || test ! -s conftest.err'
15701: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15702: (eval $ac_try) 2>&5
15703: ac_status=$?
15704: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15705: (exit $ac_status); }; } &&
15706: { ac_try='test -s conftest$ac_exeext'
15707: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15708: (eval $ac_try) 2>&5
15709: ac_status=$?
15710: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15711: (exit $ac_status); }; }; then
15712: ac_cv_func_shl_load=yes
15713: else
15714: echo "$as_me: failed program was:" >&5
15715: sed 's/^/| /' conftest.$ac_ext >&5
15716:
15717: ac_cv_func_shl_load=no
15718: fi
15719: rm -f conftest.err conftest.$ac_objext \
15720: conftest$ac_exeext conftest.$ac_ext
15721: fi
15722: echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
15723: echo "${ECHO_T}$ac_cv_func_shl_load" >&6
15724: if test $ac_cv_func_shl_load = yes; then
15725:
15726: cat >>confdefs.h <<\_ACEOF
15727: #define HAVE_SHL_LOAD 1
15728: _ACEOF
15729:
15730: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
15731: else
15732: echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
15733: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
15734: if test "${ac_cv_lib_dld_shl_load+set}" = set; then
15735: echo $ECHO_N "(cached) $ECHO_C" >&6
15736: else
15737: ac_check_lib_save_LIBS=$LIBS
15738: LIBS="-ldld $LIBS"
15739: cat >conftest.$ac_ext <<_ACEOF
15740: /* confdefs.h. */
15741: _ACEOF
15742: cat confdefs.h >>conftest.$ac_ext
15743: cat >>conftest.$ac_ext <<_ACEOF
15744: /* end confdefs.h. */
15745:
15746: /* Override any gcc2 internal prototype to avoid an error. */
15747: #ifdef __cplusplus
15748: extern "C"
15749: #endif
15750: /* We use char because int might match the return type of a gcc2
15751: builtin and then its argument prototype would still apply. */
15752: char shl_load ();
15753: int
15754: main ()
15755: {
15756: shl_load ();
15757: ;
15758: return 0;
15759: }
15760: _ACEOF
15761: rm -f conftest.$ac_objext conftest$ac_exeext
15762: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15763: (eval $ac_link) 2>conftest.er1
15764: ac_status=$?
15765: grep -v '^ *+' conftest.er1 >conftest.err
15766: rm -f conftest.er1
15767: cat conftest.err >&5
15768: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15769: (exit $ac_status); } &&
15770: { ac_try='test -z "$ac_c_werror_flag"
15771: || test ! -s conftest.err'
15772: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15773: (eval $ac_try) 2>&5
15774: ac_status=$?
15775: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15776: (exit $ac_status); }; } &&
15777: { ac_try='test -s conftest$ac_exeext'
15778: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15779: (eval $ac_try) 2>&5
15780: ac_status=$?
15781: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15782: (exit $ac_status); }; }; then
15783: ac_cv_lib_dld_shl_load=yes
15784: else
15785: echo "$as_me: failed program was:" >&5
15786: sed 's/^/| /' conftest.$ac_ext >&5
15787:
15788: ac_cv_lib_dld_shl_load=no
15789: fi
15790: rm -f conftest.err conftest.$ac_objext \
15791: conftest$ac_exeext conftest.$ac_ext
15792: LIBS=$ac_check_lib_save_LIBS
15793: fi
15794: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
15795: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
15796: if test $ac_cv_lib_dld_shl_load = yes; then
15797:
15798: cat >>confdefs.h <<\_ACEOF
15799: #define HAVE_SHL_LOAD 1
15800: _ACEOF
15801:
15802: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
15803: LIBADD_SHL_LOAD="-ldld"
15804: fi
15805:
15806: fi
15807:
15808:
15809:
15810: case $host_os in
15811: darwin[1567].*)
15812: # We only want this for pre-Mac OS X 10.4.
15813: echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
15814: echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
15815: if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
15816: echo $ECHO_N "(cached) $ECHO_C" >&6
15817: else
15818: cat >conftest.$ac_ext <<_ACEOF
15819: /* confdefs.h. */
15820: _ACEOF
15821: cat confdefs.h >>conftest.$ac_ext
15822: cat >>conftest.$ac_ext <<_ACEOF
15823: /* end confdefs.h. */
15824: /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
15825: For example, HP-UX 11i <limits.h> declares gettimeofday. */
15826: #define _dyld_func_lookup innocuous__dyld_func_lookup
15827:
15828: /* System header to define __stub macros and hopefully few prototypes,
15829: which can conflict with char _dyld_func_lookup (); below.
15830: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15831: <limits.h> exists even on freestanding compilers. */
15832:
15833: #ifdef __STDC__
15834: # include <limits.h>
15835: #else
15836: # include <assert.h>
15837: #endif
15838:
15839: #undef _dyld_func_lookup
15840:
15841: /* Override any gcc2 internal prototype to avoid an error. */
15842: #ifdef __cplusplus
15843: extern "C"
15844: {
15845: #endif
15846: /* We use char because int might match the return type of a gcc2
15847: builtin and then its argument prototype would still apply. */
15848: char _dyld_func_lookup ();
15849: /* The GNU C library defines this for functions which it implements
15850: to always fail with ENOSYS. Some functions are actually named
15851: something starting with __ and the normal name is an alias. */
15852: #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
15853: choke me
15854: #else
15855: char (*f) () = _dyld_func_lookup;
15856: #endif
15857: #ifdef __cplusplus
15858: }
15859: #endif
15860:
15861: int
15862: main ()
15863: {
15864: return f != _dyld_func_lookup;
15865: ;
15866: return 0;
15867: }
15868: _ACEOF
15869: rm -f conftest.$ac_objext conftest$ac_exeext
15870: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15871: (eval $ac_link) 2>conftest.er1
15872: ac_status=$?
15873: grep -v '^ *+' conftest.er1 >conftest.err
15874: rm -f conftest.er1
15875: cat conftest.err >&5
15876: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15877: (exit $ac_status); } &&
15878: { ac_try='test -z "$ac_c_werror_flag"
15879: || test ! -s conftest.err'
15880: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15881: (eval $ac_try) 2>&5
15882: ac_status=$?
15883: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15884: (exit $ac_status); }; } &&
15885: { ac_try='test -s conftest$ac_exeext'
15886: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15887: (eval $ac_try) 2>&5
15888: ac_status=$?
15889: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15890: (exit $ac_status); }; }; then
15891: ac_cv_func__dyld_func_lookup=yes
15892: else
15893: echo "$as_me: failed program was:" >&5
15894: sed 's/^/| /' conftest.$ac_ext >&5
15895:
15896: ac_cv_func__dyld_func_lookup=no
15897: fi
15898: rm -f conftest.err conftest.$ac_objext \
15899: conftest$ac_exeext conftest.$ac_ext
15900: fi
15901: echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
15902: echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
15903: if test $ac_cv_func__dyld_func_lookup = yes; then
15904:
15905: cat >>confdefs.h <<\_ACEOF
15906: #define HAVE_DYLD 1
15907: _ACEOF
15908:
15909: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
15910: fi
15911:
15912: ;;
15913: beos*)
15914: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
15915: ;;
15916: cygwin* | mingw* | os2* | pw32*)
15917: echo "$as_me:$LINENO: checking whether cygwin_conv_path is declared" >&5
15918: echo $ECHO_N "checking whether cygwin_conv_path is declared... $ECHO_C" >&6
15919: if test "${ac_cv_have_decl_cygwin_conv_path+set}" = set; then
15920: echo $ECHO_N "(cached) $ECHO_C" >&6
15921: else
15922: cat >conftest.$ac_ext <<_ACEOF
15923: /* confdefs.h. */
15924: _ACEOF
15925: cat confdefs.h >>conftest.$ac_ext
15926: cat >>conftest.$ac_ext <<_ACEOF
15927: /* end confdefs.h. */
15928: #include <sys/cygwin.h>
15929:
15930: int
15931: main ()
15932: {
15933: #ifndef cygwin_conv_path
15934: char *p = (char *) cygwin_conv_path;
15935: #endif
15936:
15937: ;
15938: return 0;
15939: }
15940: _ACEOF
15941: rm -f conftest.$ac_objext
15942: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15943: (eval $ac_compile) 2>conftest.er1
15944: ac_status=$?
15945: grep -v '^ *+' conftest.er1 >conftest.err
15946: rm -f conftest.er1
15947: cat conftest.err >&5
15948: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15949: (exit $ac_status); } &&
15950: { ac_try='test -z "$ac_c_werror_flag"
15951: || test ! -s conftest.err'
15952: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15953: (eval $ac_try) 2>&5
15954: ac_status=$?
15955: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15956: (exit $ac_status); }; } &&
15957: { ac_try='test -s conftest.$ac_objext'
15958: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15959: (eval $ac_try) 2>&5
15960: ac_status=$?
15961: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15962: (exit $ac_status); }; }; then
15963: ac_cv_have_decl_cygwin_conv_path=yes
15964: else
15965: echo "$as_me: failed program was:" >&5
15966: sed 's/^/| /' conftest.$ac_ext >&5
15967:
15968: ac_cv_have_decl_cygwin_conv_path=no
15969: fi
15970: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15971: fi
15972: echo "$as_me:$LINENO: result: $ac_cv_have_decl_cygwin_conv_path" >&5
15973: echo "${ECHO_T}$ac_cv_have_decl_cygwin_conv_path" >&6
15974: if test $ac_cv_have_decl_cygwin_conv_path = yes; then
15975:
15976: cat >>confdefs.h <<_ACEOF
15977: #define HAVE_DECL_CYGWIN_CONV_PATH 1
15978: _ACEOF
15979:
15980:
15981: else
15982: cat >>confdefs.h <<_ACEOF
15983: #define HAVE_DECL_CYGWIN_CONV_PATH 0
15984: _ACEOF
15985:
15986:
15987: fi
15988:
15989:
15990: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
15991: ;;
15992: esac
15993:
15994: echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
15995: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
15996: if test "${ac_cv_lib_dld_dld_link+set}" = set; then
15997: echo $ECHO_N "(cached) $ECHO_C" >&6
15998: else
15999: ac_check_lib_save_LIBS=$LIBS
16000: LIBS="-ldld $LIBS"
16001: cat >conftest.$ac_ext <<_ACEOF
16002: /* confdefs.h. */
16003: _ACEOF
16004: cat confdefs.h >>conftest.$ac_ext
16005: cat >>conftest.$ac_ext <<_ACEOF
16006: /* end confdefs.h. */
16007:
16008: /* Override any gcc2 internal prototype to avoid an error. */
16009: #ifdef __cplusplus
16010: extern "C"
16011: #endif
16012: /* We use char because int might match the return type of a gcc2
16013: builtin and then its argument prototype would still apply. */
16014: char dld_link ();
16015: int
16016: main ()
16017: {
16018: dld_link ();
16019: ;
16020: return 0;
16021: }
16022: _ACEOF
16023: rm -f conftest.$ac_objext conftest$ac_exeext
16024: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16025: (eval $ac_link) 2>conftest.er1
16026: ac_status=$?
16027: grep -v '^ *+' conftest.er1 >conftest.err
16028: rm -f conftest.er1
16029: cat conftest.err >&5
16030: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16031: (exit $ac_status); } &&
16032: { ac_try='test -z "$ac_c_werror_flag"
16033: || test ! -s conftest.err'
16034: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16035: (eval $ac_try) 2>&5
16036: ac_status=$?
16037: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16038: (exit $ac_status); }; } &&
16039: { ac_try='test -s conftest$ac_exeext'
16040: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16041: (eval $ac_try) 2>&5
16042: ac_status=$?
16043: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16044: (exit $ac_status); }; }; then
16045: ac_cv_lib_dld_dld_link=yes
16046: else
16047: echo "$as_me: failed program was:" >&5
16048: sed 's/^/| /' conftest.$ac_ext >&5
16049:
16050: ac_cv_lib_dld_dld_link=no
16051: fi
16052: rm -f conftest.err conftest.$ac_objext \
16053: conftest$ac_exeext conftest.$ac_ext
16054: LIBS=$ac_check_lib_save_LIBS
16055: fi
16056: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16057: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
16058: if test $ac_cv_lib_dld_dld_link = yes; then
16059:
16060: cat >>confdefs.h <<\_ACEOF
16061: #define HAVE_DLD 1
16062: _ACEOF
16063:
16064: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
16065: fi
16066:
16067:
16068:
16069:
16070: LT_DLPREOPEN=
16071: if test -n "$LT_DLLOADERS"
16072: then
16073: for lt_loader in $LT_DLLOADERS; do
16074: LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
16075: done
16076:
16077: cat >>confdefs.h <<\_ACEOF
16078: #define HAVE_LIBDLLOADER 1
16079: _ACEOF
16080:
16081: fi
16082:
16083:
16084: LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
16085:
16086:
16087: ac_ext=c
16088: ac_cpp='$CPP $CPPFLAGS'
16089: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16090: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16091: ac_compiler_gnu=$ac_cv_c_compiler_gnu
16092:
16093:
16094: echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
16095: echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
16096: if test "${lt_cv_sys_symbol_underscore+set}" = set; then
16097: echo $ECHO_N "(cached) $ECHO_C" >&6
16098: else
16099: lt_cv_sys_symbol_underscore=no
16100: cat > conftest.$ac_ext <<_LT_EOF
16101: void nm_test_func(){}
16102: int main(){nm_test_func;return 0;}
16103: _LT_EOF
16104: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16105: (eval $ac_compile) 2>&5
16106: ac_status=$?
16107: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16108: (exit $ac_status); }; then
16109: # Now try to grab the symbols.
16110: ac_nlist=conftest.nm
16111: if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
16112: (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
16113: ac_status=$?
16114: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16115: (exit $ac_status); } && test -s "$ac_nlist"; then
16116: # See whether the symbols have a leading underscore.
16117: if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
16118: lt_cv_sys_symbol_underscore=yes
16119: else
16120: if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
16121: :
16122: else
16123: echo "configure: cannot find nm_test_func in $ac_nlist" >&5
16124: fi
16125: fi
16126: else
16127: echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
16128: fi
16129: else
16130: echo "configure: failed program was:" >&5
16131: cat conftest.c >&5
16132: fi
16133: rm -rf conftest*
16134:
16135: fi
16136: echo "$as_me:$LINENO: result: $lt_cv_sys_symbol_underscore" >&5
16137: echo "${ECHO_T}$lt_cv_sys_symbol_underscore" >&6
16138: sys_symbol_underscore=$lt_cv_sys_symbol_underscore
16139:
16140:
16141: if test x"$lt_cv_sys_symbol_underscore" = xyes; then
16142: if test x"$libltdl_cv_func_dlopen" = xyes ||
16143: test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
16144: echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
16145: echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
16146: if test "${libltdl_cv_need_uscore+set}" = set; then
16147: echo $ECHO_N "(cached) $ECHO_C" >&6
16148: else
16149: libltdl_cv_need_uscore=unknown
16150: save_LIBS="$LIBS"
16151: LIBS="$LIBS $LIBADD_DLOPEN"
16152: if test "$cross_compiling" = yes; then :
16153: libltdl_cv_need_uscore=cross
16154: else
16155: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16156: lt_status=$lt_dlunknown
16157: cat > conftest.$ac_ext <<_LT_EOF
16158: #line $LINENO "configure"
16159: #include "confdefs.h"
16160:
16161: #if HAVE_DLFCN_H
16162: #include <dlfcn.h>
16163: #endif
16164:
16165: #include <stdio.h>
16166:
16167: #ifdef RTLD_GLOBAL
16168: # define LT_DLGLOBAL RTLD_GLOBAL
16169: #else
16170: # ifdef DL_GLOBAL
16171: # define LT_DLGLOBAL DL_GLOBAL
16172: # else
16173: # define LT_DLGLOBAL 0
16174: # endif
16175: #endif
16176:
16177: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16178: find out it does not work in some platform. */
16179: #ifndef LT_DLLAZY_OR_NOW
16180: # ifdef RTLD_LAZY
16181: # define LT_DLLAZY_OR_NOW RTLD_LAZY
16182: # else
16183: # ifdef DL_LAZY
16184: # define LT_DLLAZY_OR_NOW DL_LAZY
16185: # else
16186: # ifdef RTLD_NOW
16187: # define LT_DLLAZY_OR_NOW RTLD_NOW
16188: # else
16189: # ifdef DL_NOW
16190: # define LT_DLLAZY_OR_NOW DL_NOW
16191: # else
16192: # define LT_DLLAZY_OR_NOW 0
16193: # endif
16194: # endif
16195: # endif
16196: # endif
16197: #endif
16198:
16199: /* When -fvisbility=hidden is used, assume the code has been annotated
16200: correspondingly for the symbols needed. */
16201: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16202: int fnord () __attribute__((visibility("default")));
16203: #endif
16204:
16205: int fnord () { return 42; }
16206: int main ()
16207: {
16208: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16209: int status = $lt_dlunknown;
16210:
16211: if (self)
16212: {
16213: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16214: else
16215: {
16216: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16217: else puts (dlerror ());
16218: }
16219: /* dlclose (self); */
16220: }
16221: else
16222: puts (dlerror ());
16223:
16224: return status;
16225: }
16226: _LT_EOF
16227: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16228: (eval $ac_link) 2>&5
16229: ac_status=$?
16230: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16231: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16232: (./conftest; exit; ) >&5 2>/dev/null
16233: lt_status=$?
16234: case x$lt_status in
16235: x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
16236: x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
16237: x$lt_dlunknown|x*) ;;
16238: esac
16239: else :
16240: # compilation failed
16241:
16242: fi
16243: fi
16244: rm -fr conftest*
16245:
16246: LIBS="$save_LIBS"
16247:
16248: fi
16249: echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
16250: echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
16251: fi
16252: fi
16253:
16254: if test x"$libltdl_cv_need_uscore" = xyes; then
16255:
16256: cat >>confdefs.h <<\_ACEOF
16257: #define NEED_USCORE 1
16258: _ACEOF
16259:
16260: fi
16261:
16262: echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
16263: echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
16264: if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then
16265: echo $ECHO_N "(cached) $ECHO_C" >&6
16266: else
16267: # PORTME does your system automatically load deplibs for dlopen?
16268: # or its logical equivalent (e.g. shl_load for HP-UX < 11)
16269: # For now, we just catch OSes we know something about -- in the
16270: # future, we'll try test this programmatically.
16271: lt_cv_sys_dlopen_deplibs=unknown
16272: case $host_os in
16273: aix3*|aix4.1.*|aix4.2.*)
16274: # Unknown whether this is true for these versions of AIX, but
16275: # we want this `case' here to explicitly catch those versions.
16276: lt_cv_sys_dlopen_deplibs=unknown
16277: ;;
16278: aix[4-9]*)
16279: lt_cv_sys_dlopen_deplibs=yes
16280: ;;
16281: amigaos*)
16282: case $host_cpu in
16283: powerpc)
16284: lt_cv_sys_dlopen_deplibs=no
16285: ;;
16286: esac
16287: ;;
16288: darwin*)
16289: # Assuming the user has installed a libdl from somewhere, this is true
16290: # If you are looking for one http://www.opendarwin.org/projects/dlcompat
16291: lt_cv_sys_dlopen_deplibs=yes
16292: ;;
16293: freebsd* | dragonfly*)
16294: lt_cv_sys_dlopen_deplibs=yes
16295: ;;
16296: gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
16297: # GNU and its variants, using gnu ld.so (Glibc)
16298: lt_cv_sys_dlopen_deplibs=yes
16299: ;;
16300: hpux10*|hpux11*)
16301: lt_cv_sys_dlopen_deplibs=yes
16302: ;;
16303: interix*)
16304: lt_cv_sys_dlopen_deplibs=yes
16305: ;;
16306: irix[12345]*|irix6.[01]*)
16307: # Catch all versions of IRIX before 6.2, and indicate that we don't
16308: # know how it worked for any of those versions.
16309: lt_cv_sys_dlopen_deplibs=unknown
16310: ;;
16311: irix*)
16312: # The case above catches anything before 6.2, and it's known that
16313: # at 6.2 and later dlopen does load deplibs.
16314: lt_cv_sys_dlopen_deplibs=yes
16315: ;;
16316: netbsd*)
16317: lt_cv_sys_dlopen_deplibs=yes
16318: ;;
16319: openbsd*)
16320: lt_cv_sys_dlopen_deplibs=yes
16321: ;;
16322: osf[1234]*)
16323: # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
16324: # it did *not* use an RPATH in a shared library to find objects the
16325: # library depends on, so we explicitly say `no'.
16326: lt_cv_sys_dlopen_deplibs=no
16327: ;;
16328: osf5.0|osf5.0a|osf5.1)
16329: # dlopen *does* load deplibs and with the right loader patch applied
16330: # it even uses RPATH in a shared library to search for shared objects
16331: # that the library depends on, but there's no easy way to know if that
16332: # patch is installed. Since this is the case, all we can really
16333: # say is unknown -- it depends on the patch being installed. If
16334: # it is, this changes to `yes'. Without it, it would be `no'.
16335: lt_cv_sys_dlopen_deplibs=unknown
16336: ;;
16337: osf*)
16338: # the two cases above should catch all versions of osf <= 5.1. Read
16339: # the comments above for what we know about them.
16340: # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
16341: # is used to find them so we can finally say `yes'.
16342: lt_cv_sys_dlopen_deplibs=yes
16343: ;;
16344: qnx*)
16345: lt_cv_sys_dlopen_deplibs=yes
16346: ;;
16347: solaris*)
16348: lt_cv_sys_dlopen_deplibs=yes
16349: ;;
16350: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16351: libltdl_cv_sys_dlopen_deplibs=yes
16352: ;;
16353: esac
16354:
16355: fi
16356: echo "$as_me:$LINENO: result: $lt_cv_sys_dlopen_deplibs" >&5
16357: echo "${ECHO_T}$lt_cv_sys_dlopen_deplibs" >&6
16358: if test "$lt_cv_sys_dlopen_deplibs" != yes; then
16359:
16360: cat >>confdefs.h <<\_ACEOF
16361: #define LTDL_DLOPEN_DEPLIBS 1
16362: _ACEOF
16363:
16364: fi
16365:
16366: :
16367:
16368:
16369: for ac_header in argz.h
16370: do
16371: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16372: echo "$as_me:$LINENO: checking for $ac_header" >&5
16373: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16374: if eval "test \"\${$as_ac_Header+set}\" = set"; then
16375: echo $ECHO_N "(cached) $ECHO_C" >&6
16376: else
16377: cat >conftest.$ac_ext <<_ACEOF
16378: /* confdefs.h. */
16379: _ACEOF
16380: cat confdefs.h >>conftest.$ac_ext
16381: cat >>conftest.$ac_ext <<_ACEOF
16382: /* end confdefs.h. */
16383: $ac_includes_default
16384:
16385: #include <$ac_header>
16386: _ACEOF
16387: rm -f conftest.$ac_objext
16388: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16389: (eval $ac_compile) 2>conftest.er1
16390: ac_status=$?
16391: grep -v '^ *+' conftest.er1 >conftest.err
16392: rm -f conftest.er1
16393: cat conftest.err >&5
16394: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16395: (exit $ac_status); } &&
16396: { ac_try='test -z "$ac_c_werror_flag"
16397: || test ! -s conftest.err'
16398: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16399: (eval $ac_try) 2>&5
16400: ac_status=$?
16401: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16402: (exit $ac_status); }; } &&
16403: { ac_try='test -s conftest.$ac_objext'
16404: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16405: (eval $ac_try) 2>&5
16406: ac_status=$?
16407: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16408: (exit $ac_status); }; }; then
16409: eval "$as_ac_Header=yes"
16410: else
16411: echo "$as_me: failed program was:" >&5
16412: sed 's/^/| /' conftest.$ac_ext >&5
16413:
16414: eval "$as_ac_Header=no"
16415: fi
16416: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16417: fi
16418: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16419: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16420: if test `eval echo '${'$as_ac_Header'}'` = yes; then
16421: cat >>confdefs.h <<_ACEOF
16422: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16423: _ACEOF
16424:
16425: fi
16426:
16427: done
16428:
16429:
16430: echo "$as_me:$LINENO: checking for error_t" >&5
16431: echo $ECHO_N "checking for error_t... $ECHO_C" >&6
16432: if test "${ac_cv_type_error_t+set}" = set; then
16433: echo $ECHO_N "(cached) $ECHO_C" >&6
16434: else
16435: cat >conftest.$ac_ext <<_ACEOF
16436: /* confdefs.h. */
16437: _ACEOF
16438: cat confdefs.h >>conftest.$ac_ext
16439: cat >>conftest.$ac_ext <<_ACEOF
16440: /* end confdefs.h. */
16441: #if defined(HAVE_ARGZ_H)
16442: # include <argz.h>
16443: #endif
16444:
16445: int
16446: main ()
16447: {
16448: if ((error_t *) 0)
16449: return 0;
16450: if (sizeof (error_t))
16451: return 0;
16452: ;
16453: return 0;
16454: }
16455: _ACEOF
16456: rm -f conftest.$ac_objext
16457: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16458: (eval $ac_compile) 2>conftest.er1
16459: ac_status=$?
16460: grep -v '^ *+' conftest.er1 >conftest.err
16461: rm -f conftest.er1
16462: cat conftest.err >&5
16463: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16464: (exit $ac_status); } &&
16465: { ac_try='test -z "$ac_c_werror_flag"
16466: || test ! -s conftest.err'
16467: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16468: (eval $ac_try) 2>&5
16469: ac_status=$?
16470: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16471: (exit $ac_status); }; } &&
16472: { ac_try='test -s conftest.$ac_objext'
16473: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16474: (eval $ac_try) 2>&5
16475: ac_status=$?
16476: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16477: (exit $ac_status); }; }; then
16478: ac_cv_type_error_t=yes
16479: else
16480: echo "$as_me: failed program was:" >&5
16481: sed 's/^/| /' conftest.$ac_ext >&5
16482:
16483: ac_cv_type_error_t=no
16484: fi
16485: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16486: fi
16487: echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
16488: echo "${ECHO_T}$ac_cv_type_error_t" >&6
16489: if test $ac_cv_type_error_t = yes; then
16490:
16491: cat >>confdefs.h <<_ACEOF
16492: #define HAVE_ERROR_T 1
16493: _ACEOF
16494:
16495:
16496: else
16497:
16498: cat >>confdefs.h <<\_ACEOF
16499: #define error_t int
16500: _ACEOF
16501:
16502:
16503: cat >>confdefs.h <<\_ACEOF
16504: #define __error_t_defined 1
16505: _ACEOF
16506:
16507: fi
16508:
16509:
16510: ARGZ_H=
16511:
16512:
16513:
16514:
16515:
16516:
16517:
16518: for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
16519: argz_next argz_stringify
16520: do
16521: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16522: echo "$as_me:$LINENO: checking for $ac_func" >&5
16523: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16524: if eval "test \"\${$as_ac_var+set}\" = set"; then
16525: echo $ECHO_N "(cached) $ECHO_C" >&6
16526: else
16527: cat >conftest.$ac_ext <<_ACEOF
16528: /* confdefs.h. */
16529: _ACEOF
16530: cat confdefs.h >>conftest.$ac_ext
16531: cat >>conftest.$ac_ext <<_ACEOF
16532: /* end confdefs.h. */
16533: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16534: For example, HP-UX 11i <limits.h> declares gettimeofday. */
16535: #define $ac_func innocuous_$ac_func
16536:
16537: /* System header to define __stub macros and hopefully few prototypes,
16538: which can conflict with char $ac_func (); below.
16539: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16540: <limits.h> exists even on freestanding compilers. */
16541:
16542: #ifdef __STDC__
16543: # include <limits.h>
16544: #else
16545: # include <assert.h>
16546: #endif
16547:
16548: #undef $ac_func
16549:
16550: /* Override any gcc2 internal prototype to avoid an error. */
16551: #ifdef __cplusplus
16552: extern "C"
16553: {
16554: #endif
16555: /* We use char because int might match the return type of a gcc2
16556: builtin and then its argument prototype would still apply. */
16557: char $ac_func ();
16558: /* The GNU C library defines this for functions which it implements
16559: to always fail with ENOSYS. Some functions are actually named
16560: something starting with __ and the normal name is an alias. */
16561: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16562: choke me
16563: #else
16564: char (*f) () = $ac_func;
16565: #endif
16566: #ifdef __cplusplus
16567: }
16568: #endif
16569:
16570: int
16571: main ()
16572: {
16573: return f != $ac_func;
16574: ;
16575: return 0;
16576: }
16577: _ACEOF
16578: rm -f conftest.$ac_objext conftest$ac_exeext
16579: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16580: (eval $ac_link) 2>conftest.er1
16581: ac_status=$?
16582: grep -v '^ *+' conftest.er1 >conftest.err
16583: rm -f conftest.er1
16584: cat conftest.err >&5
16585: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16586: (exit $ac_status); } &&
16587: { ac_try='test -z "$ac_c_werror_flag"
16588: || test ! -s conftest.err'
16589: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16590: (eval $ac_try) 2>&5
16591: ac_status=$?
16592: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16593: (exit $ac_status); }; } &&
16594: { ac_try='test -s conftest$ac_exeext'
16595: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16596: (eval $ac_try) 2>&5
16597: ac_status=$?
16598: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16599: (exit $ac_status); }; }; then
16600: eval "$as_ac_var=yes"
16601: else
16602: echo "$as_me: failed program was:" >&5
16603: sed 's/^/| /' conftest.$ac_ext >&5
16604:
16605: eval "$as_ac_var=no"
16606: fi
16607: rm -f conftest.err conftest.$ac_objext \
16608: conftest$ac_exeext conftest.$ac_ext
16609: fi
16610: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16611: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16612: if test `eval echo '${'$as_ac_var'}'` = yes; then
16613: cat >>confdefs.h <<_ACEOF
16614: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16615: _ACEOF
16616:
16617: else
16618: ARGZ_H=argz.h;
16619:
16620: _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
16621:
16622: fi
16623: done
16624:
16625:
16626: if test -z "$ARGZ_H"; then
16627: echo "$as_me:$LINENO: checking if argz actually works" >&5
16628: echo $ECHO_N "checking if argz actually works... $ECHO_C" >&6
16629: if test "${lt_cv_sys_argz_works+set}" = set; then
16630: echo $ECHO_N "(cached) $ECHO_C" >&6
16631: else
16632: case $host_os in #(
16633: *cygwin*)
16634: lt_cv_sys_argz_works=no
16635: if test "$cross_compiling" != no; then
16636: lt_cv_sys_argz_works="guessing no"
16637: else
16638: lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
16639: save_IFS=$IFS
16640: IFS=-.
16641: set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
16642: IFS=$save_IFS
16643: lt_os_major=${2-0}
16644: lt_os_minor=${3-0}
16645: lt_os_micro=${4-0}
16646: if test "$lt_os_major" -gt 1 \
16647: || { test "$lt_os_major" -eq 1 \
16648: && { test "$lt_os_minor" -gt 5 \
16649: || { test "$lt_os_minor" -eq 5 \
16650: && test "$lt_os_micro" -gt 24; }; }; }; then
16651: lt_cv_sys_argz_works=yes
16652: fi
16653: fi
16654: ;; #(
16655: *) lt_cv_sys_argz_works=yes ;;
16656: esac
16657: fi
16658: echo "$as_me:$LINENO: result: $lt_cv_sys_argz_works" >&5
16659: echo "${ECHO_T}$lt_cv_sys_argz_works" >&6
16660: if test "$lt_cv_sys_argz_works" = yes; then
16661:
16662: cat >>confdefs.h <<\_ACEOF
16663: #define HAVE_WORKING_ARGZ 1
16664: _ACEOF
16665:
16666: else
16667: ARGZ_H=argz.h
16668:
16669:
16670: _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
16671:
16672: fi
16673:
16674: fi
16675:
16676:
16677:
16678:
16679: echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
16680: echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
16681: if test "${libltdl_cv_preloaded_symbols+set}" = set; then
16682: echo $ECHO_N "(cached) $ECHO_C" >&6
16683: else
16684: if test -n "$lt_cv_sys_global_symbol_pipe"; then
16685: libltdl_cv_preloaded_symbols=yes
16686: else
16687: libltdl_cv_preloaded_symbols=no
16688: fi
16689:
16690: fi
16691: echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
16692: echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
16693: if test x"$libltdl_cv_preloaded_symbols" = xyes; then
16694:
16695: cat >>confdefs.h <<\_ACEOF
16696: #define HAVE_PRELOADED_SYMBOLS 1
16697: _ACEOF
16698:
16699: fi
16700:
16701: # Set options
16702:
16703:
16704:
16705:
16706:
16707:
16708:
16709:
16710:
16711:
16712:
16713:
16714: # Check whether --with-included_ltdl or --without-included_ltdl was given.
16715: if test "${with_included_ltdl+set}" = set; then
16716: withval="$with_included_ltdl"
16717:
16718: fi;
16719:
16720: if test "x$with_included_ltdl" != xyes; then
16721: # We are not being forced to use the included libltdl sources, so
16722: # decide whether there is a useful installed version we can use.
16723: echo "$as_me:$LINENO: checking for ltdl.h" >&5
16724: echo $ECHO_N "checking for ltdl.h... $ECHO_C" >&6
16725: if test "${ac_cv_header_ltdl_h+set}" = set; then
16726: echo $ECHO_N "(cached) $ECHO_C" >&6
16727: else
16728: cat >conftest.$ac_ext <<_ACEOF
16729: /* confdefs.h. */
16730: _ACEOF
16731: cat confdefs.h >>conftest.$ac_ext
16732: cat >>conftest.$ac_ext <<_ACEOF
16733: /* end confdefs.h. */
16734: $ac_includes_default
16735:
16736:
16737: #include <ltdl.h>
16738: _ACEOF
16739: rm -f conftest.$ac_objext
16740: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16741: (eval $ac_compile) 2>conftest.er1
16742: ac_status=$?
16743: grep -v '^ *+' conftest.er1 >conftest.err
16744: rm -f conftest.er1
16745: cat conftest.err >&5
16746: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16747: (exit $ac_status); } &&
16748: { ac_try='test -z "$ac_c_werror_flag"
16749: || test ! -s conftest.err'
16750: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16751: (eval $ac_try) 2>&5
16752: ac_status=$?
16753: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16754: (exit $ac_status); }; } &&
16755: { ac_try='test -s conftest.$ac_objext'
16756: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16757: (eval $ac_try) 2>&5
16758: ac_status=$?
16759: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16760: (exit $ac_status); }; }; then
16761: ac_cv_header_ltdl_h=yes
16762: else
16763: echo "$as_me: failed program was:" >&5
16764: sed 's/^/| /' conftest.$ac_ext >&5
16765:
16766: ac_cv_header_ltdl_h=no
16767: fi
16768: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16769: fi
16770: echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
16771: echo "${ECHO_T}$ac_cv_header_ltdl_h" >&6
16772: if test $ac_cv_header_ltdl_h = yes; then
16773: echo "$as_me:$LINENO: checking whether lt_dlinterface_register is declared" >&5
16774: echo $ECHO_N "checking whether lt_dlinterface_register is declared... $ECHO_C" >&6
16775: if test "${ac_cv_have_decl_lt_dlinterface_register+set}" = set; then
16776: echo $ECHO_N "(cached) $ECHO_C" >&6
16777: else
16778: cat >conftest.$ac_ext <<_ACEOF
16779: /* confdefs.h. */
16780: _ACEOF
16781: cat confdefs.h >>conftest.$ac_ext
16782: cat >>conftest.$ac_ext <<_ACEOF
16783: /* end confdefs.h. */
16784: $ac_includes_default
16785: #include <ltdl.h>
16786:
16787: int
16788: main ()
16789: {
16790: #ifndef lt_dlinterface_register
16791: char *p = (char *) lt_dlinterface_register;
16792: #endif
16793:
16794: ;
16795: return 0;
16796: }
16797: _ACEOF
16798: rm -f conftest.$ac_objext
16799: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16800: (eval $ac_compile) 2>conftest.er1
16801: ac_status=$?
16802: grep -v '^ *+' conftest.er1 >conftest.err
16803: rm -f conftest.er1
16804: cat conftest.err >&5
16805: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16806: (exit $ac_status); } &&
16807: { ac_try='test -z "$ac_c_werror_flag"
16808: || test ! -s conftest.err'
16809: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16810: (eval $ac_try) 2>&5
16811: ac_status=$?
16812: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16813: (exit $ac_status); }; } &&
16814: { ac_try='test -s conftest.$ac_objext'
16815: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16816: (eval $ac_try) 2>&5
16817: ac_status=$?
16818: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16819: (exit $ac_status); }; }; then
16820: ac_cv_have_decl_lt_dlinterface_register=yes
16821: else
16822: echo "$as_me: failed program was:" >&5
16823: sed 's/^/| /' conftest.$ac_ext >&5
16824:
16825: ac_cv_have_decl_lt_dlinterface_register=no
16826: fi
16827: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16828: fi
16829: echo "$as_me:$LINENO: result: $ac_cv_have_decl_lt_dlinterface_register" >&5
16830: echo "${ECHO_T}$ac_cv_have_decl_lt_dlinterface_register" >&6
16831: if test $ac_cv_have_decl_lt_dlinterface_register = yes; then
16832: echo "$as_me:$LINENO: checking for lt_dladvise_preload in -lltdl" >&5
16833: echo $ECHO_N "checking for lt_dladvise_preload in -lltdl... $ECHO_C" >&6
16834: if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then
16835: echo $ECHO_N "(cached) $ECHO_C" >&6
16836: else
16837: ac_check_lib_save_LIBS=$LIBS
16838: LIBS="-lltdl $LIBS"
16839: cat >conftest.$ac_ext <<_ACEOF
16840: /* confdefs.h. */
16841: _ACEOF
16842: cat confdefs.h >>conftest.$ac_ext
16843: cat >>conftest.$ac_ext <<_ACEOF
16844: /* end confdefs.h. */
16845:
16846: /* Override any gcc2 internal prototype to avoid an error. */
16847: #ifdef __cplusplus
16848: extern "C"
16849: #endif
16850: /* We use char because int might match the return type of a gcc2
16851: builtin and then its argument prototype would still apply. */
16852: char lt_dladvise_preload ();
16853: int
16854: main ()
16855: {
16856: lt_dladvise_preload ();
16857: ;
16858: return 0;
16859: }
16860: _ACEOF
16861: rm -f conftest.$ac_objext conftest$ac_exeext
16862: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16863: (eval $ac_link) 2>conftest.er1
16864: ac_status=$?
16865: grep -v '^ *+' conftest.er1 >conftest.err
16866: rm -f conftest.er1
16867: cat conftest.err >&5
16868: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16869: (exit $ac_status); } &&
16870: { ac_try='test -z "$ac_c_werror_flag"
16871: || test ! -s conftest.err'
16872: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16873: (eval $ac_try) 2>&5
16874: ac_status=$?
16875: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16876: (exit $ac_status); }; } &&
16877: { ac_try='test -s conftest$ac_exeext'
16878: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16879: (eval $ac_try) 2>&5
16880: ac_status=$?
16881: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16882: (exit $ac_status); }; }; then
16883: ac_cv_lib_ltdl_lt_dladvise_preload=yes
16884: else
16885: echo "$as_me: failed program was:" >&5
16886: sed 's/^/| /' conftest.$ac_ext >&5
16887:
16888: ac_cv_lib_ltdl_lt_dladvise_preload=no
16889: fi
16890: rm -f conftest.err conftest.$ac_objext \
16891: conftest$ac_exeext conftest.$ac_ext
16892: LIBS=$ac_check_lib_save_LIBS
16893: fi
16894: echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
16895: echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dladvise_preload" >&6
16896: if test $ac_cv_lib_ltdl_lt_dladvise_preload = yes; then
16897: with_included_ltdl=no
16898: else
16899: with_included_ltdl=yes
16900: fi
16901:
16902: else
16903: with_included_ltdl=yes
16904: fi
16905:
16906: else
16907: with_included_ltdl=yes
16908: fi
16909:
16910:
16911: fi
16912:
16913:
16914:
16915:
16916: # Check whether --with-ltdl_include or --without-ltdl_include was given.
16917: if test "${with_ltdl_include+set}" = set; then
16918: withval="$with_ltdl_include"
16919:
16920: fi;
16921:
16922: if test -n "$with_ltdl_include"; then
16923: if test -f "$with_ltdl_include/ltdl.h"; then :
16924: else
16925: { { echo "$as_me:$LINENO: error: invalid ltdl include directory: \`$with_ltdl_include'" >&5
16926: echo "$as_me: error: invalid ltdl include directory: \`$with_ltdl_include'" >&2;}
16927: { (exit 1); exit 1; }; }
16928: fi
16929: else
16930: with_ltdl_include=no
16931: fi
16932:
16933:
16934: # Check whether --with-ltdl_lib or --without-ltdl_lib was given.
16935: if test "${with_ltdl_lib+set}" = set; then
16936: withval="$with_ltdl_lib"
16937:
16938: fi;
16939:
16940: if test -n "$with_ltdl_lib"; then
16941: if test -f "$with_ltdl_lib/libltdl.la"; then :
16942: else
16943: { { echo "$as_me:$LINENO: error: invalid ltdl library directory: \`$with_ltdl_lib'" >&5
16944: echo "$as_me: error: invalid ltdl library directory: \`$with_ltdl_lib'" >&2;}
16945: { (exit 1); exit 1; }; }
16946: fi
16947: else
16948: with_ltdl_lib=no
16949: fi
16950:
16951: case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
16952: ,yes,no,no,)
16953: case $enable_ltdl_convenience in
16954: no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
16955: echo "$as_me: error: this package needs a convenience libltdl" >&2;}
16956: { (exit 1); exit 1; }; } ;;
16957: "") enable_ltdl_convenience=yes
16958: ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
16959: esac
16960: LIBLTDL='${top_builddir}/'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
16961: LTDLDEPS=$LIBLTDL
16962: LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
16963:
16964:
16965:
16966:
16967:
16968: # For backwards non-gettext consistent compatibility...
16969: INCLTDL="$LTDLINCL"
16970:
16971:
16972: ;;
16973: ,no,no,no,)
16974: # If the included ltdl is not to be used, then use the
16975: # preinstalled libltdl we found.
16976:
16977: cat >>confdefs.h <<\_ACEOF
16978: #define HAVE_LTDL 1
16979: _ACEOF
16980:
16981: LIBLTDL=-lltdl
16982: LTDLDEPS=
16983: LTDLINCL=
16984: ;;
16985: ,no*,no,*)
16986: { { echo "$as_me:$LINENO: error: \`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" >&5
16987: echo "$as_me: error: \`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" >&2;}
16988: { (exit 1); exit 1; }; }
16989: ;;
16990: *) with_included_ltdl=no
16991: LIBLTDL="-L$with_ltdl_lib -lltdl"
16992: LTDLDEPS=
16993: LTDLINCL="-I$with_ltdl_include"
16994: ;;
16995: esac
16996: INCLTDL="$LTDLINCL"
16997:
16998: # Report our decision...
16999: echo "$as_me:$LINENO: checking where to find libltdl headers" >&5
17000: echo $ECHO_N "checking where to find libltdl headers... $ECHO_C" >&6
17001: echo "$as_me:$LINENO: result: $LTDLINCL" >&5
17002: echo "${ECHO_T}$LTDLINCL" >&6
17003: echo "$as_me:$LINENO: checking where to find libltdl library" >&5
17004: echo $ECHO_N "checking where to find libltdl library... $ECHO_C" >&6
17005: echo "$as_me:$LINENO: result: $LIBLTDL" >&5
17006: echo "${ECHO_T}$LIBLTDL" >&6
17007:
17008:
17009:
17010: # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
17011: if test "${enable_ltdl_install+set}" = set; then
17012: enableval="$enable_ltdl_install"
17013:
17014: fi;
17015:
17016: case ,${enable_ltdl_install},${enable_ltdl_convenience} in
17017: *yes*) ;;
17018: *) enable_ltdl_convenience=yes ;;
17019: esac
17020:
17021:
17022:
17023: if test x"${enable_ltdl_install-no}" != xno; then
17024: INSTALL_LTDL_TRUE=
17025: INSTALL_LTDL_FALSE='#'
17026: else
17027: INSTALL_LTDL_TRUE='#'
17028: INSTALL_LTDL_FALSE=
17029: fi
17030:
17031:
17032:
17033: if test x"${enable_ltdl_convenience-no}" != xno; then
17034: CONVENIENCE_LTDL_TRUE=
17035: CONVENIENCE_LTDL_FALSE='#'
17036: else
17037: CONVENIENCE_LTDL_TRUE='#'
17038: CONVENIENCE_LTDL_FALSE=
17039: fi
17040:
17041:
17042:
17043:
17044:
17045: subdirs="$subdirs libltdl"
17046:
17047:
17048:
17049:
17050: # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
17051: # the user used. This is so that ltdl.h can pick up the parent projects
17052: # config.h file, The first file in AC_CONFIG_HEADERS must contain the
17053: # definitions required by ltdl.c.
17054: # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
17055:
17056:
17057:
17058:
17059:
17060:
17061:
17062:
17063:
17064: for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
17065: do
17066: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17067: echo "$as_me:$LINENO: checking for $ac_header" >&5
17068: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17069: if eval "test \"\${$as_ac_Header+set}\" = set"; then
17070: echo $ECHO_N "(cached) $ECHO_C" >&6
17071: else
17072: cat >conftest.$ac_ext <<_ACEOF
17073: /* confdefs.h. */
17074: _ACEOF
17075: cat confdefs.h >>conftest.$ac_ext
17076: cat >>conftest.$ac_ext <<_ACEOF
17077: /* end confdefs.h. */
17078: $ac_includes_default
17079:
17080: #include <$ac_header>
17081: _ACEOF
17082: rm -f conftest.$ac_objext
17083: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17084: (eval $ac_compile) 2>conftest.er1
17085: ac_status=$?
17086: grep -v '^ *+' conftest.er1 >conftest.err
17087: rm -f conftest.er1
17088: cat conftest.err >&5
17089: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17090: (exit $ac_status); } &&
17091: { ac_try='test -z "$ac_c_werror_flag"
17092: || test ! -s conftest.err'
17093: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17094: (eval $ac_try) 2>&5
17095: ac_status=$?
17096: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17097: (exit $ac_status); }; } &&
17098: { ac_try='test -s conftest.$ac_objext'
17099: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17100: (eval $ac_try) 2>&5
17101: ac_status=$?
17102: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17103: (exit $ac_status); }; }; then
17104: eval "$as_ac_Header=yes"
17105: else
17106: echo "$as_me: failed program was:" >&5
17107: sed 's/^/| /' conftest.$ac_ext >&5
17108:
17109: eval "$as_ac_Header=no"
17110: fi
17111: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17112: fi
17113: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17114: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17115: if test `eval echo '${'$as_ac_Header'}'` = yes; then
17116: cat >>confdefs.h <<_ACEOF
17117: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17118: _ACEOF
17119:
17120: fi
17121:
17122: done
17123:
17124:
17125:
17126:
17127:
17128: for ac_func in closedir opendir readdir
17129: do
17130: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17131: echo "$as_me:$LINENO: checking for $ac_func" >&5
17132: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17133: if eval "test \"\${$as_ac_var+set}\" = set"; then
17134: echo $ECHO_N "(cached) $ECHO_C" >&6
17135: else
17136: cat >conftest.$ac_ext <<_ACEOF
17137: /* confdefs.h. */
17138: _ACEOF
17139: cat confdefs.h >>conftest.$ac_ext
17140: cat >>conftest.$ac_ext <<_ACEOF
17141: /* end confdefs.h. */
17142: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17143: For example, HP-UX 11i <limits.h> declares gettimeofday. */
17144: #define $ac_func innocuous_$ac_func
17145:
17146: /* System header to define __stub macros and hopefully few prototypes,
17147: which can conflict with char $ac_func (); below.
17148: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17149: <limits.h> exists even on freestanding compilers. */
17150:
17151: #ifdef __STDC__
17152: # include <limits.h>
17153: #else
17154: # include <assert.h>
17155: #endif
17156:
17157: #undef $ac_func
17158:
17159: /* Override any gcc2 internal prototype to avoid an error. */
17160: #ifdef __cplusplus
17161: extern "C"
17162: {
17163: #endif
17164: /* We use char because int might match the return type of a gcc2
17165: builtin and then its argument prototype would still apply. */
17166: char $ac_func ();
17167: /* The GNU C library defines this for functions which it implements
17168: to always fail with ENOSYS. Some functions are actually named
17169: something starting with __ and the normal name is an alias. */
17170: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17171: choke me
17172: #else
17173: char (*f) () = $ac_func;
17174: #endif
17175: #ifdef __cplusplus
17176: }
17177: #endif
17178:
17179: int
17180: main ()
17181: {
17182: return f != $ac_func;
17183: ;
17184: return 0;
17185: }
17186: _ACEOF
17187: rm -f conftest.$ac_objext conftest$ac_exeext
17188: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17189: (eval $ac_link) 2>conftest.er1
17190: ac_status=$?
17191: grep -v '^ *+' conftest.er1 >conftest.err
17192: rm -f conftest.er1
17193: cat conftest.err >&5
17194: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17195: (exit $ac_status); } &&
17196: { ac_try='test -z "$ac_c_werror_flag"
17197: || test ! -s conftest.err'
17198: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17199: (eval $ac_try) 2>&5
17200: ac_status=$?
17201: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17202: (exit $ac_status); }; } &&
17203: { ac_try='test -s conftest$ac_exeext'
17204: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17205: (eval $ac_try) 2>&5
17206: ac_status=$?
17207: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17208: (exit $ac_status); }; }; then
17209: eval "$as_ac_var=yes"
17210: else
17211: echo "$as_me: failed program was:" >&5
17212: sed 's/^/| /' conftest.$ac_ext >&5
17213:
17214: eval "$as_ac_var=no"
17215: fi
17216: rm -f conftest.err conftest.$ac_objext \
17217: conftest$ac_exeext conftest.$ac_ext
17218: fi
17219: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17220: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17221: if test `eval echo '${'$as_ac_var'}'` = yes; then
17222: cat >>confdefs.h <<_ACEOF
17223: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17224: _ACEOF
17225:
17226: else
17227:
17228:
17229: _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
17230:
17231: fi
17232: done
17233:
17234:
17235:
17236: for ac_func in strlcat strlcpy
17237: do
17238: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17239: echo "$as_me:$LINENO: checking for $ac_func" >&5
17240: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17241: if eval "test \"\${$as_ac_var+set}\" = set"; then
17242: echo $ECHO_N "(cached) $ECHO_C" >&6
17243: else
17244: cat >conftest.$ac_ext <<_ACEOF
17245: /* confdefs.h. */
17246: _ACEOF
17247: cat confdefs.h >>conftest.$ac_ext
17248: cat >>conftest.$ac_ext <<_ACEOF
17249: /* end confdefs.h. */
17250: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17251: For example, HP-UX 11i <limits.h> declares gettimeofday. */
17252: #define $ac_func innocuous_$ac_func
17253:
17254: /* System header to define __stub macros and hopefully few prototypes,
17255: which can conflict with char $ac_func (); below.
17256: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17257: <limits.h> exists even on freestanding compilers. */
17258:
17259: #ifdef __STDC__
17260: # include <limits.h>
17261: #else
17262: # include <assert.h>
17263: #endif
17264:
17265: #undef $ac_func
17266:
17267: /* Override any gcc2 internal prototype to avoid an error. */
17268: #ifdef __cplusplus
17269: extern "C"
17270: {
17271: #endif
17272: /* We use char because int might match the return type of a gcc2
17273: builtin and then its argument prototype would still apply. */
17274: char $ac_func ();
17275: /* The GNU C library defines this for functions which it implements
17276: to always fail with ENOSYS. Some functions are actually named
17277: something starting with __ and the normal name is an alias. */
17278: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17279: choke me
17280: #else
17281: char (*f) () = $ac_func;
17282: #endif
17283: #ifdef __cplusplus
17284: }
17285: #endif
17286:
17287: int
17288: main ()
17289: {
17290: return f != $ac_func;
17291: ;
17292: return 0;
17293: }
17294: _ACEOF
17295: rm -f conftest.$ac_objext conftest$ac_exeext
17296: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17297: (eval $ac_link) 2>conftest.er1
17298: ac_status=$?
17299: grep -v '^ *+' conftest.er1 >conftest.err
17300: rm -f conftest.er1
17301: cat conftest.err >&5
17302: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17303: (exit $ac_status); } &&
17304: { ac_try='test -z "$ac_c_werror_flag"
17305: || test ! -s conftest.err'
17306: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17307: (eval $ac_try) 2>&5
17308: ac_status=$?
17309: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17310: (exit $ac_status); }; } &&
17311: { ac_try='test -s conftest$ac_exeext'
17312: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17313: (eval $ac_try) 2>&5
17314: ac_status=$?
17315: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17316: (exit $ac_status); }; }; then
17317: eval "$as_ac_var=yes"
17318: else
17319: echo "$as_me: failed program was:" >&5
17320: sed 's/^/| /' conftest.$ac_ext >&5
17321:
17322: eval "$as_ac_var=no"
17323: fi
17324: rm -f conftest.err conftest.$ac_objext \
17325: conftest$ac_exeext conftest.$ac_ext
17326: fi
17327: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17328: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17329: if test `eval echo '${'$as_ac_var'}'` = yes; then
17330: cat >>confdefs.h <<_ACEOF
17331: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17332: _ACEOF
17333:
17334: else
17335:
17336:
17337: _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
17338:
17339: fi
17340: done
17341:
17342:
17343:
17344: cat >>confdefs.h <<_ACEOF
17345: #define LT_LIBEXT "$libext"
17346: _ACEOF
17347:
17348:
17349: name=
17350: eval "lt_libprefix=\"$libname_spec\""
17351:
17352: cat >>confdefs.h <<_ACEOF
17353: #define LT_LIBPREFIX "$lt_libprefix"
17354: _ACEOF
17355:
17356:
17357: name=ltdl
17358: eval "LTDLOPEN=\"$libname_spec\""
17359:
17360:
17361:
17362:
17363:
17364:
17365:
17366:
17367: # Only expand once:
17368:
17369:
17370:
17371: # Check whether --enable-static or --disable-static was given.
17372: if test "${enable_static+set}" = set; then
17373: enableval="$enable_static"
17374: p=${PACKAGE-default}
17375: case $enableval in
17376: yes) enable_static=yes ;;
17377: no) enable_static=no ;;
17378: *)
17379: enable_static=no
17380: # Look at the argument we got. We use all the common list separators.
17381: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17382: for pkg in $enableval; do
17383: IFS="$lt_save_ifs"
17384: if test "X$pkg" = "X$p"; then
17385: enable_static=yes
17386: fi
17387: done
17388: IFS="$lt_save_ifs"
17389: ;;
17390: esac
17391: else
17392: enable_static=no
17393: fi;
17394:
17395:
17396:
17397:
17398:
17399:
17400:
17401:
17402:
17403:
17404:
17405:
17406: for ac_header in stdio.h \
17407: stdlib.h \
17408: string.h \
17409: setjmp.h \
17410: ctype.h
17411:
17412: do
17413: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17414: if eval "test \"\${$as_ac_Header+set}\" = set"; then
17415: echo "$as_me:$LINENO: checking for $ac_header" >&5
17416: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17417: if eval "test \"\${$as_ac_Header+set}\" = set"; then
17418: echo $ECHO_N "(cached) $ECHO_C" >&6
17419: fi
17420: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17421: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17422: else
17423: # Is the header compilable?
17424: echo "$as_me:$LINENO: checking $ac_header usability" >&5
17425: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17426: cat >conftest.$ac_ext <<_ACEOF
17427: /* confdefs.h. */
17428: _ACEOF
17429: cat confdefs.h >>conftest.$ac_ext
17430: cat >>conftest.$ac_ext <<_ACEOF
17431: /* end confdefs.h. */
17432: $ac_includes_default
17433: #include <$ac_header>
17434: _ACEOF
17435: rm -f conftest.$ac_objext
17436: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17437: (eval $ac_compile) 2>conftest.er1
17438: ac_status=$?
17439: grep -v '^ *+' conftest.er1 >conftest.err
17440: rm -f conftest.er1
17441: cat conftest.err >&5
17442: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17443: (exit $ac_status); } &&
17444: { ac_try='test -z "$ac_c_werror_flag"
17445: || test ! -s conftest.err'
17446: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17447: (eval $ac_try) 2>&5
17448: ac_status=$?
17449: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17450: (exit $ac_status); }; } &&
17451: { ac_try='test -s conftest.$ac_objext'
17452: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17453: (eval $ac_try) 2>&5
17454: ac_status=$?
17455: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17456: (exit $ac_status); }; }; then
17457: ac_header_compiler=yes
17458: else
17459: echo "$as_me: failed program was:" >&5
17460: sed 's/^/| /' conftest.$ac_ext >&5
17461:
17462: ac_header_compiler=no
17463: fi
17464: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17465: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17466: echo "${ECHO_T}$ac_header_compiler" >&6
17467:
17468: # Is the header present?
17469: echo "$as_me:$LINENO: checking $ac_header presence" >&5
17470: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17471: cat >conftest.$ac_ext <<_ACEOF
17472: /* confdefs.h. */
17473: _ACEOF
17474: cat confdefs.h >>conftest.$ac_ext
17475: cat >>conftest.$ac_ext <<_ACEOF
17476: /* end confdefs.h. */
17477: #include <$ac_header>
17478: _ACEOF
17479: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17480: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17481: ac_status=$?
17482: grep -v '^ *+' conftest.er1 >conftest.err
17483: rm -f conftest.er1
17484: cat conftest.err >&5
17485: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17486: (exit $ac_status); } >/dev/null; then
17487: if test -s conftest.err; then
17488: ac_cpp_err=$ac_c_preproc_warn_flag
17489: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17490: else
17491: ac_cpp_err=
17492: fi
17493: else
17494: ac_cpp_err=yes
17495: fi
17496: if test -z "$ac_cpp_err"; then
17497: ac_header_preproc=yes
17498: else
17499: echo "$as_me: failed program was:" >&5
17500: sed 's/^/| /' conftest.$ac_ext >&5
17501:
17502: ac_header_preproc=no
17503: fi
17504: rm -f conftest.err conftest.$ac_ext
17505: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17506: echo "${ECHO_T}$ac_header_preproc" >&6
17507:
17508: # So? What about this header?
17509: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17510: yes:no: )
17511: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17512: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17513: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17514: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17515: ac_header_preproc=yes
17516: ;;
17517: no:yes:* )
17518: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17519: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17520: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17521: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17522: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17523: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17524: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17525: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17526: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17527: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17528: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17529: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17530: (
17531: cat <<\_ASBOX
17532: ## ----------------------------------------- ##
17533: ## Report this to the parser3pgsql.C lists. ##
17534: ## ----------------------------------------- ##
17535: _ASBOX
17536: ) |
17537: sed "s/^/$as_me: WARNING: /" >&2
17538: ;;
17539: esac
17540: echo "$as_me:$LINENO: checking for $ac_header" >&5
17541: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17542: if eval "test \"\${$as_ac_Header+set}\" = set"; then
17543: echo $ECHO_N "(cached) $ECHO_C" >&6
17544: else
17545: eval "$as_ac_Header=\$ac_header_preproc"
17546: fi
17547: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17548: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17549:
17550: fi
17551: if test `eval echo '${'$as_ac_Header'}'` = yes; then
17552: cat >>confdefs.h <<_ACEOF
17553: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17554: _ACEOF
17555:
17556: fi
17557:
17558: done
17559:
17560:
17561: echo "$as_me:$LINENO: checking for size_t" >&5
17562: echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17563: if test "${ac_cv_type_size_t+set}" = set; then
17564: echo $ECHO_N "(cached) $ECHO_C" >&6
17565: else
17566: cat >conftest.$ac_ext <<_ACEOF
17567: /* confdefs.h. */
17568: _ACEOF
17569: cat confdefs.h >>conftest.$ac_ext
17570: cat >>conftest.$ac_ext <<_ACEOF
17571: /* end confdefs.h. */
17572: $ac_includes_default
17573: int
17574: main ()
17575: {
17576: if ((size_t *) 0)
17577: return 0;
17578: if (sizeof (size_t))
17579: return 0;
17580: ;
17581: return 0;
17582: }
17583: _ACEOF
17584: rm -f conftest.$ac_objext
17585: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17586: (eval $ac_compile) 2>conftest.er1
17587: ac_status=$?
17588: grep -v '^ *+' conftest.er1 >conftest.err
17589: rm -f conftest.er1
17590: cat conftest.err >&5
17591: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17592: (exit $ac_status); } &&
17593: { ac_try='test -z "$ac_c_werror_flag"
17594: || test ! -s conftest.err'
17595: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17596: (eval $ac_try) 2>&5
17597: ac_status=$?
17598: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17599: (exit $ac_status); }; } &&
17600: { ac_try='test -s conftest.$ac_objext'
17601: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17602: (eval $ac_try) 2>&5
17603: ac_status=$?
17604: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17605: (exit $ac_status); }; }; then
17606: ac_cv_type_size_t=yes
17607: else
17608: echo "$as_me: failed program was:" >&5
17609: sed 's/^/| /' conftest.$ac_ext >&5
17610:
17611: ac_cv_type_size_t=no
17612: fi
17613: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17614: fi
17615: echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17616: echo "${ECHO_T}$ac_cv_type_size_t" >&6
17617: if test $ac_cv_type_size_t = yes; then
17618: :
17619: else
17620:
17621: cat >>confdefs.h <<_ACEOF
17622: #define size_t unsigned
17623: _ACEOF
17624:
17625: fi
17626:
17627:
17628:
17629: ac_config_files="$ac_config_files Makefile"
17630: cat >confcache <<\_ACEOF
17631: # This file is a shell script that caches the results of configure
17632: # tests run on this system so they can be shared between configure
17633: # scripts and configure runs, see configure's option --config-cache.
17634: # It is not useful on other systems. If it contains results you don't
17635: # want to keep, you may remove or edit it.
17636: #
17637: # config.status only pays attention to the cache file if you give it
17638: # the --recheck option to rerun configure.
17639: #
17640: # `ac_cv_env_foo' variables (set or unset) will be overridden when
17641: # loading this file, other *unset* `ac_cv_foo' will be assigned the
17642: # following values.
17643:
17644: _ACEOF
17645:
17646: # The following way of writing the cache mishandles newlines in values,
17647: # but we know of no workaround that is simple, portable, and efficient.
17648: # So, don't put newlines in cache variables' values.
17649: # Ultrix sh set writes to stderr and can't be redirected directly,
17650: # and sets the high bit in the cache file unless we assign to the vars.
17651: {
17652: (set) 2>&1 |
17653: case `(ac_space=' '; set | grep ac_space) 2>&1` in
17654: *ac_space=\ *)
17655: # `set' does not quote correctly, so add quotes (double-quote
17656: # substitution turns \\\\ into \\, and sed turns \\ into \).
17657: sed -n \
17658: "s/'/'\\\\''/g;
17659: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17660: ;;
17661: *)
17662: # `set' quotes correctly as required by POSIX, so do not add quotes.
17663: sed -n \
17664: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17665: ;;
17666: esac;
17667: } |
17668: sed '
17669: t clear
17670: : clear
17671: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17672: t end
17673: /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17674: : end' >>confcache
17675: if diff $cache_file confcache >/dev/null 2>&1; then :; else
17676: if test -w $cache_file; then
17677: test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17678: cat confcache >$cache_file
17679: else
17680: echo "not updating unwritable cache $cache_file"
17681: fi
17682: fi
17683: rm -f confcache
17684:
17685: test "x$prefix" = xNONE && prefix=$ac_default_prefix
17686: # Let make expand exec_prefix.
17687: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17688:
17689: # VPATH may cause trouble with some makes, so we remove $(srcdir),
17690: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17691: # trailing colons and then remove the whole line if VPATH becomes empty
17692: # (actually we leave an empty line to preserve line numbers).
17693: if test "x$srcdir" = x.; then
17694: ac_vpsub='/^[ ]*VPATH[ ]*=/{
17695: s/:*\$(srcdir):*/:/;
17696: s/:*\${srcdir}:*/:/;
17697: s/:*@srcdir@:*/:/;
17698: s/^\([^=]*=[ ]*\):*/\1/;
17699: s/:*$//;
17700: s/^[^=]*=[ ]*$//;
17701: }'
17702: fi
17703:
17704: DEFS=-DHAVE_CONFIG_H
17705:
17706: ac_libobjs=
17707: ac_ltlibobjs=
17708: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17709: # 1. Remove the extension, and $U if already installed.
17710: ac_i=`echo "$ac_i" |
17711: sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
17712: # 2. Add them.
17713: ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
17714: ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
17715: done
17716: LIBOBJS=$ac_libobjs
17717:
17718: LTLIBOBJS=$ac_ltlibobjs
17719:
17720:
17721: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17722: { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
17723: Usually this means the macro was only invoked conditionally." >&5
17724: echo "$as_me: error: conditional \"AMDEP\" was never defined.
17725: Usually this means the macro was only invoked conditionally." >&2;}
17726: { (exit 1); exit 1; }; }
17727: fi
17728: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17729: { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
17730: Usually this means the macro was only invoked conditionally." >&5
17731: echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
17732: Usually this means the macro was only invoked conditionally." >&2;}
17733: { (exit 1); exit 1; }; }
17734: fi
17735: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17736: { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
17737: Usually this means the macro was only invoked conditionally." >&5
17738: echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
17739: Usually this means the macro was only invoked conditionally." >&2;}
17740: { (exit 1); exit 1; }; }
17741: fi
17742: if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
17743: { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
17744: Usually this means the macro was only invoked conditionally." >&5
17745: echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
17746: Usually this means the macro was only invoked conditionally." >&2;}
17747: { (exit 1); exit 1; }; }
17748: fi
17749: if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
17750: { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
17751: Usually this means the macro was only invoked conditionally." >&5
17752: echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
17753: Usually this means the macro was only invoked conditionally." >&2;}
17754: { (exit 1); exit 1; }; }
17755: fi
17756: LT_CONFIG_H=`echo " config_auto.h" | $SED 's,^[ ]*,,;s,[ :].*$,,'`
17757:
17758: _ltdl_libobjs=
17759: _ltdl_ltlibobjs=
17760: if test -n "$_LT_LIBOBJS"; then
17761: # Remove the extension.
17762: _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
17763: for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
17764: _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
17765: _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
17766: done
17767: fi
17768: ltdl_LIBOBJS=$_ltdl_libobjs
17769:
17770: ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
17771:
17772:
17773:
17774: : ${CONFIG_STATUS=./config.status}
17775: ac_clean_files_save=$ac_clean_files
17776: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17777: { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17778: echo "$as_me: creating $CONFIG_STATUS" >&6;}
17779: cat >$CONFIG_STATUS <<_ACEOF
17780: #! $SHELL
17781: # Generated by $as_me.
17782: # Run this file to recreate the current configuration.
17783: # Compiler output produced by configure, useful for debugging
17784: # configure, is in config.log if it exists.
17785:
17786: debug=false
17787: ac_cs_recheck=false
17788: ac_cs_silent=false
17789: SHELL=\${CONFIG_SHELL-$SHELL}
17790: _ACEOF
17791:
17792: cat >>$CONFIG_STATUS <<\_ACEOF
17793: ## --------------------- ##
17794: ## M4sh Initialization. ##
17795: ## --------------------- ##
17796:
17797: # Be Bourne compatible
17798: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17799: emulate sh
17800: NULLCMD=:
17801: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17802: # is contrary to our usage. Disable this feature.
17803: alias -g '${1+"$@"}'='"$@"'
17804: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17805: set -o posix
17806: fi
17807: DUALCASE=1; export DUALCASE # for MKS sh
17808:
17809: # Support unset when possible.
17810: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17811: as_unset=unset
17812: else
17813: as_unset=false
17814: fi
17815:
17816:
17817: # Work around bugs in pre-3.0 UWIN ksh.
17818: $as_unset ENV MAIL MAILPATH
17819: PS1='$ '
17820: PS2='> '
17821: PS4='+ '
17822:
17823: # NLS nuisances.
17824: for as_var in \
17825: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17826: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17827: LC_TELEPHONE LC_TIME
17828: do
17829: if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
17830: eval $as_var=C; export $as_var
17831: else
17832: $as_unset $as_var
17833: fi
17834: done
17835:
17836: # Required to use basename.
17837: if expr a : '\(a\)' >/dev/null 2>&1; then
17838: as_expr=expr
17839: else
17840: as_expr=false
17841: fi
17842:
17843: if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
17844: as_basename=basename
17845: else
17846: as_basename=false
17847: fi
17848:
17849:
17850: # Name of the executable.
17851: as_me=`$as_basename "$0" ||
17852: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17853: X"$0" : 'X\(//\)$' \| \
17854: X"$0" : 'X\(/\)$' \| \
17855: . : '\(.\)' 2>/dev/null ||
17856: echo X/"$0" |
17857: sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17858: /^X\/\(\/\/\)$/{ s//\1/; q; }
17859: /^X\/\(\/\).*/{ s//\1/; q; }
17860: s/.*/./; q'`
17861:
17862:
17863: # PATH needs CR, and LINENO needs CR and PATH.
17864: # Avoid depending upon Character Ranges.
17865: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17866: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17867: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17868: as_cr_digits='0123456789'
17869: as_cr_alnum=$as_cr_Letters$as_cr_digits
17870:
17871: # The user is always right.
17872: if test "${PATH_SEPARATOR+set}" != set; then
17873: echo "#! /bin/sh" >conf$$.sh
17874: echo "exit 0" >>conf$$.sh
17875: chmod +x conf$$.sh
17876: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17877: PATH_SEPARATOR=';'
17878: else
17879: PATH_SEPARATOR=:
17880: fi
17881: rm -f conf$$.sh
17882: fi
17883:
17884:
17885: as_lineno_1=$LINENO
17886: as_lineno_2=$LINENO
17887: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17888: test "x$as_lineno_1" != "x$as_lineno_2" &&
17889: test "x$as_lineno_3" = "x$as_lineno_2" || {
17890: # Find who we are. Look in the path if we contain no path at all
17891: # relative or not.
17892: case $0 in
17893: *[\\/]* ) as_myself=$0 ;;
17894: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17895: for as_dir in $PATH
17896: do
17897: IFS=$as_save_IFS
17898: test -z "$as_dir" && as_dir=.
17899: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17900: done
17901:
17902: ;;
17903: esac
17904: # We did not find ourselves, most probably we were run as `sh COMMAND'
17905: # in which case we are not to be found in the path.
17906: if test "x$as_myself" = x; then
17907: as_myself=$0
17908: fi
17909: if test ! -f "$as_myself"; then
17910: { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17911: echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17912: { (exit 1); exit 1; }; }
17913: fi
17914: case $CONFIG_SHELL in
17915: '')
17916: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17917: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17918: do
17919: IFS=$as_save_IFS
17920: test -z "$as_dir" && as_dir=.
17921: for as_base in sh bash ksh sh5; do
17922: case $as_dir in
17923: /*)
17924: if ("$as_dir/$as_base" -c '
17925: as_lineno_1=$LINENO
17926: as_lineno_2=$LINENO
17927: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17928: test "x$as_lineno_1" != "x$as_lineno_2" &&
17929: test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17930: $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17931: $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17932: CONFIG_SHELL=$as_dir/$as_base
17933: export CONFIG_SHELL
17934: exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17935: fi;;
17936: esac
17937: done
17938: done
17939: ;;
17940: esac
17941:
17942: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17943: # uniformly replaced by the line number. The first 'sed' inserts a
17944: # line-number line before each line; the second 'sed' does the real
17945: # work. The second script uses 'N' to pair each line-number line
17946: # with the numbered line, and appends trailing '-' during
17947: # substitution so that $LINENO is not a special case at line end.
17948: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17949: # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17950: sed '=' <$as_myself |
17951: sed '
17952: N
17953: s,$,-,
17954: : loop
17955: s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17956: t loop
17957: s,-$,,
17958: s,^['$as_cr_digits']*\n,,
17959: ' >$as_me.lineno &&
17960: chmod +x $as_me.lineno ||
17961: { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17962: echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17963: { (exit 1); exit 1; }; }
17964:
17965: # Don't try to exec as it changes $[0], causing all sort of problems
17966: # (the dirname of $[0] is not the place where we might find the
17967: # original and so on. Autoconf is especially sensible to this).
17968: . ./$as_me.lineno
17969: # Exit status is that of the last command.
17970: exit
17971: }
17972:
17973:
17974: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17975: *c*,-n*) ECHO_N= ECHO_C='
17976: ' ECHO_T=' ' ;;
17977: *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17978: *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17979: esac
17980:
17981: if expr a : '\(a\)' >/dev/null 2>&1; then
17982: as_expr=expr
17983: else
17984: as_expr=false
17985: fi
17986:
17987: rm -f conf$$ conf$$.exe conf$$.file
17988: echo >conf$$.file
17989: if ln -s conf$$.file conf$$ 2>/dev/null; then
17990: # We could just check for DJGPP; but this test a) works b) is more generic
17991: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17992: if test -f conf$$.exe; then
17993: # Don't use ln at all; we don't have any links
17994: as_ln_s='cp -p'
17995: else
17996: as_ln_s='ln -s'
17997: fi
17998: elif ln conf$$.file conf$$ 2>/dev/null; then
17999: as_ln_s=ln
18000: else
18001: as_ln_s='cp -p'
18002: fi
18003: rm -f conf$$ conf$$.exe conf$$.file
18004:
18005: if mkdir -p . 2>/dev/null; then
18006: as_mkdir_p=:
18007: else
18008: test -d ./-p && rmdir ./-p
18009: as_mkdir_p=false
18010: fi
18011:
18012: as_executable_p="test -f"
18013:
18014: # Sed expression to map a string onto a valid CPP name.
18015: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18016:
18017: # Sed expression to map a string onto a valid variable name.
18018: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18019:
18020:
18021: # IFS
18022: # We need space, tab and new line, in precisely that order.
18023: as_nl='
18024: '
18025: IFS=" $as_nl"
18026:
18027: # CDPATH.
18028: $as_unset CDPATH
18029:
18030: exec 6>&1
18031:
18032: # Open the log real soon, to keep \$[0] and so on meaningful, and to
18033: # report actual input values of CONFIG_FILES etc. instead of their
18034: # values after options handling. Logging --version etc. is OK.
18035: exec 5>>config.log
18036: {
18037: echo
18038: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18039: ## Running $as_me. ##
18040: _ASBOX
18041: } >&5
18042: cat >&5 <<_CSEOF
18043:
18044: This file was extended by parser3pgsql.C $as_me 10.3, which was
18045: generated by GNU Autoconf 2.59. Invocation command line was
18046:
18047: CONFIG_FILES = $CONFIG_FILES
18048: CONFIG_HEADERS = $CONFIG_HEADERS
18049: CONFIG_LINKS = $CONFIG_LINKS
18050: CONFIG_COMMANDS = $CONFIG_COMMANDS
18051: $ $0 $@
18052:
18053: _CSEOF
18054: echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18055: echo >&5
18056: _ACEOF
18057:
18058: # Files that config.status was made for.
18059: if test -n "$ac_config_files"; then
18060: echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18061: fi
18062:
18063: if test -n "$ac_config_headers"; then
18064: echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18065: fi
18066:
18067: if test -n "$ac_config_links"; then
18068: echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18069: fi
18070:
18071: if test -n "$ac_config_commands"; then
18072: echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18073: fi
18074:
18075: cat >>$CONFIG_STATUS <<\_ACEOF
18076:
18077: ac_cs_usage="\
18078: \`$as_me' instantiates files from templates according to the
18079: current configuration.
18080:
18081: Usage: $0 [OPTIONS] [FILE]...
18082:
18083: -h, --help print this help, then exit
18084: -V, --version print version number, then exit
18085: -q, --quiet do not print progress messages
18086: -d, --debug don't remove temporary files
18087: --recheck update $as_me by reconfiguring in the same conditions
18088: --file=FILE[:TEMPLATE]
18089: instantiate the configuration file FILE
18090: --header=FILE[:TEMPLATE]
18091: instantiate the configuration header FILE
18092:
18093: Configuration files:
18094: $config_files
18095:
18096: Configuration headers:
18097: $config_headers
18098:
18099: Configuration commands:
18100: $config_commands
18101:
18102: Report bugs to <bug-autoconf@gnu.org>."
18103: _ACEOF
18104:
18105: cat >>$CONFIG_STATUS <<_ACEOF
18106: ac_cs_version="\\
18107: parser3pgsql.C config.status 10.3
18108: configured by $0, generated by GNU Autoconf 2.59,
18109: with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18110:
18111: Copyright (C) 2003 Free Software Foundation, Inc.
18112: This config.status script is free software; the Free Software Foundation
18113: gives unlimited permission to copy, distribute and modify it."
18114: srcdir=$srcdir
18115: INSTALL="$INSTALL"
18116: _ACEOF
18117:
18118: cat >>$CONFIG_STATUS <<\_ACEOF
18119: # If no file are specified by the user, then we need to provide default
18120: # value. By we need to know if files were specified by the user.
18121: ac_need_defaults=:
18122: while test $# != 0
18123: do
18124: case $1 in
18125: --*=*)
18126: ac_option=`expr "x$1" : 'x\([^=]*\)='`
18127: ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18128: ac_shift=:
18129: ;;
18130: -*)
18131: ac_option=$1
18132: ac_optarg=$2
18133: ac_shift=shift
18134: ;;
18135: *) # This is not an option, so the user has probably given explicit
18136: # arguments.
18137: ac_option=$1
18138: ac_need_defaults=false;;
18139: esac
18140:
18141: case $ac_option in
18142: # Handling of the options.
18143: _ACEOF
18144: cat >>$CONFIG_STATUS <<\_ACEOF
18145: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18146: ac_cs_recheck=: ;;
18147: --version | --vers* | -V )
18148: echo "$ac_cs_version"; exit 0 ;;
18149: --he | --h)
18150: # Conflict between --help and --header
18151: { { echo "$as_me:$LINENO: error: ambiguous option: $1
18152: Try \`$0 --help' for more information." >&5
18153: echo "$as_me: error: ambiguous option: $1
18154: Try \`$0 --help' for more information." >&2;}
18155: { (exit 1); exit 1; }; };;
18156: --help | --hel | -h )
18157: echo "$ac_cs_usage"; exit 0 ;;
18158: --debug | --d* | -d )
18159: debug=: ;;
18160: --file | --fil | --fi | --f )
18161: $ac_shift
18162: CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18163: ac_need_defaults=false;;
18164: --header | --heade | --head | --hea )
18165: $ac_shift
18166: CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18167: ac_need_defaults=false;;
18168: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18169: | -silent | --silent | --silen | --sile | --sil | --si | --s)
18170: ac_cs_silent=: ;;
18171:
18172: # This is an error.
18173: -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18174: Try \`$0 --help' for more information." >&5
18175: echo "$as_me: error: unrecognized option: $1
18176: Try \`$0 --help' for more information." >&2;}
18177: { (exit 1); exit 1; }; } ;;
18178:
18179: *) ac_config_targets="$ac_config_targets $1" ;;
18180:
18181: esac
18182: shift
18183: done
18184:
18185: ac_configure_extra_args=
18186:
18187: if $ac_cs_silent; then
18188: exec 6>/dev/null
18189: ac_configure_extra_args="$ac_configure_extra_args --silent"
18190: fi
18191:
18192: _ACEOF
18193: cat >>$CONFIG_STATUS <<_ACEOF
18194: if \$ac_cs_recheck; then
18195: echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18196: exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18197: fi
18198:
18199: _ACEOF
18200:
18201: cat >>$CONFIG_STATUS <<_ACEOF
18202: #
18203: # INIT-COMMANDS section.
18204: #
18205:
18206: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18207:
18208:
18209: # The HP-UX ksh and POSIX shell print the target directory to stdout
18210: # if CDPATH is set.
18211: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18212:
18213: sed_quote_subst='$sed_quote_subst'
18214: double_quote_subst='$double_quote_subst'
18215: delay_variable_subst='$delay_variable_subst'
18216: macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18217: macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18218: AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
18219: DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18220: OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18221: enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18222: enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18223: pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18224: enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18225: SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18226: ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18227: PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18228: host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18229: host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18230: host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18231: build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18232: build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18233: build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18234: SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18235: Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18236: GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18237: EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18238: FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18239: LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18240: NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18241: LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18242: max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18243: ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18244: exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18245: lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18246: lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18247: lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18248: lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18249: lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18250: reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18251: reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18252: deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18253: file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18254: file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18255: want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18256: sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18257: AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18258: AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18259: archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18260: STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18261: RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18262: old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18263: old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18264: old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18265: lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18266: CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18267: CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18268: compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18269: GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18270: lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18271: lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18272: lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18273: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
18274: nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18275: lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18276: objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18277: MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18278: lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18279: lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18280: lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18281: lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18282: lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18283: need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18284: MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18285: DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18286: NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18287: LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18288: OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18289: OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18290: libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18291: shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18292: extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18293: archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18294: enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18295: export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18296: whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18297: compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18298: old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18299: old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18300: archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18301: archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18302: module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18303: module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18304: with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18305: allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18306: no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18307: hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18308: hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18309: hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18310: hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18311: hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18312: hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18313: hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18314: inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18315: link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18316: always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18317: export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18318: exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18319: include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18320: prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18321: postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18322: file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18323: variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18324: need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18325: need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18326: version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18327: runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18328: shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18329: shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18330: libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18331: library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18332: soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18333: install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18334: postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18335: postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18336: finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18337: finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18338: hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18339: sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18340: sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18341: hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18342: enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18343: enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18344: enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18345: old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18346: striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18347: compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18348: predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18349: postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18350: predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18351: postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18352: compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18353: LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18354: reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18355: reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18356: old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18357: compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18358: GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18359: lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18360: lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18361: lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18362: lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18363: lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18364: archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18365: enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18366: export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18367: whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18368: compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18369: old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18370: old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18371: archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18372: archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18373: module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18374: module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18375: with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18376: allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18377: no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18378: hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18379: hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18380: hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18381: hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18382: hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18383: hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18384: hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18385: inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18386: link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18387: always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18388: export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18389: exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18390: include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18391: prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18392: postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18393: file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18394: hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18395: compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18396: predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18397: postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18398: predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18399: postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18400: compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18401:
18402: LTCC='$LTCC'
18403: LTCFLAGS='$LTCFLAGS'
18404: compiler='$compiler_DEFAULT'
18405:
18406: # A function that is used when there is no print builtin or printf.
18407: func_fallback_echo ()
18408: {
18409: eval 'cat <<_LTECHO_EOF
18410: \$1
18411: _LTECHO_EOF'
18412: }
18413:
18414: # Quote evaled strings.
18415: for var in AS \
18416: DLLTOOL \
18417: OBJDUMP \
18418: SHELL \
18419: ECHO \
18420: PATH_SEPARATOR \
18421: SED \
18422: GREP \
18423: EGREP \
18424: FGREP \
18425: LD \
18426: NM \
18427: LN_S \
18428: lt_SP2NL \
18429: lt_NL2SP \
18430: reload_flag \
18431: deplibs_check_method \
18432: file_magic_cmd \
18433: file_magic_glob \
18434: want_nocaseglob \
18435: sharedlib_from_linklib_cmd \
18436: AR \
18437: AR_FLAGS \
18438: archiver_list_spec \
18439: STRIP \
18440: RANLIB \
18441: CC \
18442: CFLAGS \
18443: compiler \
18444: lt_cv_sys_global_symbol_pipe \
18445: lt_cv_sys_global_symbol_to_cdecl \
18446: lt_cv_sys_global_symbol_to_c_name_address \
18447: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18448: nm_file_list_spec \
18449: lt_prog_compiler_no_builtin_flag \
18450: lt_prog_compiler_pic \
18451: lt_prog_compiler_wl \
18452: lt_prog_compiler_static \
18453: lt_cv_prog_compiler_c_o \
18454: need_locks \
18455: MANIFEST_TOOL \
18456: DSYMUTIL \
18457: NMEDIT \
18458: LIPO \
18459: OTOOL \
18460: OTOOL64 \
18461: shrext_cmds \
18462: export_dynamic_flag_spec \
18463: whole_archive_flag_spec \
18464: compiler_needs_object \
18465: with_gnu_ld \
18466: allow_undefined_flag \
18467: no_undefined_flag \
18468: hardcode_libdir_flag_spec \
18469: hardcode_libdir_separator \
18470: exclude_expsyms \
18471: include_expsyms \
18472: file_list_spec \
18473: variables_saved_for_relink \
18474: libname_spec \
18475: library_names_spec \
18476: soname_spec \
18477: install_override_mode \
18478: finish_eval \
18479: old_striplib \
18480: striplib \
18481: compiler_lib_search_dirs \
18482: predep_objects \
18483: postdep_objects \
18484: predeps \
18485: postdeps \
18486: compiler_lib_search_path \
18487: LD_CXX \
18488: reload_flag_CXX \
18489: compiler_CXX \
18490: lt_prog_compiler_no_builtin_flag_CXX \
18491: lt_prog_compiler_pic_CXX \
18492: lt_prog_compiler_wl_CXX \
18493: lt_prog_compiler_static_CXX \
18494: lt_cv_prog_compiler_c_o_CXX \
18495: export_dynamic_flag_spec_CXX \
18496: whole_archive_flag_spec_CXX \
18497: compiler_needs_object_CXX \
18498: with_gnu_ld_CXX \
18499: allow_undefined_flag_CXX \
18500: no_undefined_flag_CXX \
18501: hardcode_libdir_flag_spec_CXX \
18502: hardcode_libdir_separator_CXX \
18503: exclude_expsyms_CXX \
18504: include_expsyms_CXX \
18505: file_list_spec_CXX \
18506: compiler_lib_search_dirs_CXX \
18507: predep_objects_CXX \
18508: postdep_objects_CXX \
18509: predeps_CXX \
18510: postdeps_CXX \
18511: compiler_lib_search_path_CXX; do
18512: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18513: *[\\\\\\\`\\"\\\$]*)
18514: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18515: ;;
18516: *)
18517: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18518: ;;
18519: esac
18520: done
18521:
18522: # Double-quote double-evaled strings.
18523: for var in reload_cmds \
18524: old_postinstall_cmds \
18525: old_postuninstall_cmds \
18526: old_archive_cmds \
18527: extract_expsyms_cmds \
18528: old_archive_from_new_cmds \
18529: old_archive_from_expsyms_cmds \
18530: archive_cmds \
18531: archive_expsym_cmds \
18532: module_cmds \
18533: module_expsym_cmds \
18534: export_symbols_cmds \
18535: prelink_cmds \
18536: postlink_cmds \
18537: postinstall_cmds \
18538: postuninstall_cmds \
18539: finish_cmds \
18540: sys_lib_search_path_spec \
18541: sys_lib_dlsearch_path_spec \
18542: reload_cmds_CXX \
18543: old_archive_cmds_CXX \
18544: old_archive_from_new_cmds_CXX \
18545: old_archive_from_expsyms_cmds_CXX \
18546: archive_cmds_CXX \
18547: archive_expsym_cmds_CXX \
18548: module_cmds_CXX \
18549: module_expsym_cmds_CXX \
18550: export_symbols_cmds_CXX \
18551: prelink_cmds_CXX \
18552: postlink_cmds_CXX; do
18553: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18554: *[\\\\\\\`\\"\\\$]*)
18555: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18556: ;;
18557: *)
18558: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18559: ;;
18560: esac
18561: done
18562:
18563: ac_aux_dir='$ac_aux_dir'
18564: xsi_shell='$xsi_shell'
18565: lt_shell_append='$lt_shell_append'
18566:
18567: # See if we are running on zsh, and set the options which allow our
18568: # commands through without removal of \ escapes INIT.
18569: if test -n "\${ZSH_VERSION+set}" ; then
18570: setopt NO_GLOB_SUBST
18571: fi
18572:
18573:
18574: PACKAGE='$PACKAGE'
18575: VERSION='$VERSION'
18576: TIMESTAMP='$TIMESTAMP'
18577: RM='$RM'
18578: ofile='$ofile'
18579:
18580:
18581:
18582:
18583:
18584:
18585: _ACEOF
18586:
18587:
18588:
18589: cat >>$CONFIG_STATUS <<\_ACEOF
18590: for ac_config_target in $ac_config_targets
18591: do
18592: case "$ac_config_target" in
18593: # Handling of arguments.
18594: "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18595: "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18596: "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18597: "config_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config_auto.h" ;;
18598: *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18599: echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18600: { (exit 1); exit 1; }; };;
18601: esac
18602: done
18603:
18604: # If the user did not use the arguments to specify the items to instantiate,
18605: # then the envvar interface is used. Set only those that are not.
18606: # We use the long form for the default assignment because of an extremely
18607: # bizarre bug on SunOS 4.1.3.
18608: if $ac_need_defaults; then
18609: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18610: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18611: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18612: fi
18613:
18614: # Have a temporary directory for convenience. Make it in the build tree
18615: # simply because there is no reason to put it here, and in addition,
18616: # creating and moving files from /tmp can sometimes cause problems.
18617: # Create a temporary directory, and hook for its removal unless debugging.
18618: $debug ||
18619: {
18620: trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18621: trap '{ (exit 1); exit 1; }' 1 2 13 15
18622: }
18623:
18624: # Create a (secure) tmp directory for tmp files.
18625:
18626: {
18627: tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
18628: test -n "$tmp" && test -d "$tmp"
18629: } ||
18630: {
18631: tmp=./confstat$$-$RANDOM
18632: (umask 077 && mkdir $tmp)
18633: } ||
18634: {
18635: echo "$me: cannot create a temporary directory in ." >&2
18636: { (exit 1); exit 1; }
18637: }
18638:
18639: _ACEOF
18640:
18641: cat >>$CONFIG_STATUS <<_ACEOF
18642:
18643: #
18644: # CONFIG_FILES section.
18645: #
18646:
18647: # No need to generate the scripts if there are no CONFIG_FILES.
18648: # This happens for instance when ./config.status config.h
18649: if test -n "\$CONFIG_FILES"; then
18650: # Protect against being on the right side of a sed subst in config.status.
18651: sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18652: s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18653: s,@SHELL@,$SHELL,;t t
18654: s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18655: s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18656: s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18657: s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18658: s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18659: s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18660: s,@exec_prefix@,$exec_prefix,;t t
18661: s,@prefix@,$prefix,;t t
18662: s,@program_transform_name@,$program_transform_name,;t t
18663: s,@bindir@,$bindir,;t t
18664: s,@sbindir@,$sbindir,;t t
18665: s,@libexecdir@,$libexecdir,;t t
18666: s,@datadir@,$datadir,;t t
18667: s,@sysconfdir@,$sysconfdir,;t t
18668: s,@sharedstatedir@,$sharedstatedir,;t t
18669: s,@localstatedir@,$localstatedir,;t t
18670: s,@libdir@,$libdir,;t t
18671: s,@includedir@,$includedir,;t t
18672: s,@oldincludedir@,$oldincludedir,;t t
18673: s,@infodir@,$infodir,;t t
18674: s,@mandir@,$mandir,;t t
18675: s,@build_alias@,$build_alias,;t t
18676: s,@host_alias@,$host_alias,;t t
18677: s,@target_alias@,$target_alias,;t t
18678: s,@DEFS@,$DEFS,;t t
18679: s,@ECHO_C@,$ECHO_C,;t t
18680: s,@ECHO_N@,$ECHO_N,;t t
18681: s,@ECHO_T@,$ECHO_T,;t t
18682: s,@LIBS@,$LIBS,;t t
18683: s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18684: s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18685: s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18686: s,@CYGPATH_W@,$CYGPATH_W,;t t
18687: s,@PACKAGE@,$PACKAGE,;t t
18688: s,@VERSION@,$VERSION,;t t
18689: s,@ACLOCAL@,$ACLOCAL,;t t
18690: s,@AUTOCONF@,$AUTOCONF,;t t
18691: s,@AUTOMAKE@,$AUTOMAKE,;t t
18692: s,@AUTOHEADER@,$AUTOHEADER,;t t
18693: s,@MAKEINFO@,$MAKEINFO,;t t
18694: s,@install_sh@,$install_sh,;t t
18695: s,@STRIP@,$STRIP,;t t
18696: s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
18697: s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
18698: s,@mkdir_p@,$mkdir_p,;t t
18699: s,@AWK@,$AWK,;t t
18700: s,@SET_MAKE@,$SET_MAKE,;t t
18701: s,@am__leading_dot@,$am__leading_dot,;t t
18702: s,@AMTAR@,$AMTAR,;t t
18703: s,@am__tar@,$am__tar,;t t
18704: s,@am__untar@,$am__untar,;t t
18705: s,@PGSQL_INC@,$PGSQL_INC,;t t
18706: s,@LDFLAGS@,$LDFLAGS,;t t
18707: s,@CXX@,$CXX,;t t
18708: s,@CXXFLAGS@,$CXXFLAGS,;t t
18709: s,@CPPFLAGS@,$CPPFLAGS,;t t
18710: s,@ac_ct_CXX@,$ac_ct_CXX,;t t
18711: s,@EXEEXT@,$EXEEXT,;t t
18712: s,@OBJEXT@,$OBJEXT,;t t
18713: s,@DEPDIR@,$DEPDIR,;t t
18714: s,@am__include@,$am__include,;t t
18715: s,@am__quote@,$am__quote,;t t
18716: s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
18717: s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
18718: s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
18719: s,@CXXDEPMODE@,$CXXDEPMODE,;t t
18720: s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
18721: s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
18722: s,@CC@,$CC,;t t
18723: s,@CFLAGS@,$CFLAGS,;t t
18724: s,@ac_ct_CC@,$ac_ct_CC,;t t
18725: s,@CCDEPMODE@,$CCDEPMODE,;t t
18726: s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
18727: s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
18728: s,@AS@,$AS,;t t
18729: s,@ac_ct_AS@,$ac_ct_AS,;t t
18730: s,@DLLTOOL@,$DLLTOOL,;t t
18731: s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
18732: s,@OBJDUMP@,$OBJDUMP,;t t
18733: s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
18734: s,@LIBTOOL@,$LIBTOOL,;t t
18735: s,@build@,$build,;t t
18736: s,@build_cpu@,$build_cpu,;t t
18737: s,@build_vendor@,$build_vendor,;t t
18738: s,@build_os@,$build_os,;t t
18739: s,@host@,$host,;t t
18740: s,@host_cpu@,$host_cpu,;t t
18741: s,@host_vendor@,$host_vendor,;t t
18742: s,@host_os@,$host_os,;t t
18743: s,@SED@,$SED,;t t
18744: s,@EGREP@,$EGREP,;t t
18745: s,@FGREP@,$FGREP,;t t
18746: s,@GREP@,$GREP,;t t
18747: s,@LD@,$LD,;t t
18748: s,@DUMPBIN@,$DUMPBIN,;t t
18749: s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
18750: s,@NM@,$NM,;t t
18751: s,@LN_S@,$LN_S,;t t
18752: s,@AR@,$AR,;t t
18753: s,@ac_ct_AR@,$ac_ct_AR,;t t
18754: s,@RANLIB@,$RANLIB,;t t
18755: s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18756: s,@MANIFEST_TOOL@,$MANIFEST_TOOL,;t t
18757: s,@ac_ct_MANIFEST_TOOL@,$ac_ct_MANIFEST_TOOL,;t t
18758: s,@DSYMUTIL@,$DSYMUTIL,;t t
18759: s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
18760: s,@NMEDIT@,$NMEDIT,;t t
18761: s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
18762: s,@LIPO@,$LIPO,;t t
18763: s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
18764: s,@OTOOL@,$OTOOL,;t t
18765: s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
18766: s,@OTOOL64@,$OTOOL64,;t t
18767: s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
18768: s,@CPP@,$CPP,;t t
18769: s,@CXXCPP@,$CXXCPP,;t t
18770: s,@LIBLTDL@,$LIBLTDL,;t t
18771: s,@LTDLDEPS@,$LTDLDEPS,;t t
18772: s,@LTDLINCL@,$LTDLINCL,;t t
18773: s,@INCLTDL@,$INCLTDL,;t t
18774: s,@LT_DLLOADERS@,$LT_DLLOADERS,;t t
18775: s,@LIBADD_DLOPEN@,$LIBADD_DLOPEN,;t t
18776: s,@LIBADD_SHL_LOAD@,$LIBADD_SHL_LOAD,;t t
18777: s,@LIBADD_DLD_LINK@,$LIBADD_DLD_LINK,;t t
18778: s,@LT_DLPREOPEN@,$LT_DLPREOPEN,;t t
18779: s,@LIBADD_DL@,$LIBADD_DL,;t t
18780: s,@sys_symbol_underscore@,$sys_symbol_underscore,;t t
18781: s,@ARGZ_H@,$ARGZ_H,;t t
18782: s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
18783: s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
18784: s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
18785: s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
18786: s,@subdirs@,$subdirs,;t t
18787: s,@LT_CONFIG_H@,$LT_CONFIG_H,;t t
18788: s,@LTDLOPEN@,$LTDLOPEN,;t t
18789: s,@LIBOBJS@,$LIBOBJS,;t t
18790: s,@LTLIBOBJS@,$LTLIBOBJS,;t t
18791: s,@ltdl_LIBOBJS@,$ltdl_LIBOBJS,;t t
18792: s,@ltdl_LTLIBOBJS@,$ltdl_LTLIBOBJS,;t t
18793: CEOF
18794:
18795: _ACEOF
18796:
18797: cat >>$CONFIG_STATUS <<\_ACEOF
18798: # Split the substitutions into bite-sized pieces for seds with
18799: # small command number limits, like on Digital OSF/1 and HP-UX.
18800: ac_max_sed_lines=48
18801: ac_sed_frag=1 # Number of current file.
18802: ac_beg=1 # First line for current file.
18803: ac_end=$ac_max_sed_lines # Line after last line for current file.
18804: ac_more_lines=:
18805: ac_sed_cmds=
18806: while $ac_more_lines; do
18807: if test $ac_beg -gt 1; then
18808: sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18809: else
18810: sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18811: fi
18812: if test ! -s $tmp/subs.frag; then
18813: ac_more_lines=false
18814: else
18815: # The purpose of the label and of the branching condition is to
18816: # speed up the sed processing (if there are no `@' at all, there
18817: # is no need to browse any of the substitutions).
18818: # These are the two extra sed commands mentioned above.
18819: (echo ':t
18820: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18821: if test -z "$ac_sed_cmds"; then
18822: ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18823: else
18824: ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18825: fi
18826: ac_sed_frag=`expr $ac_sed_frag + 1`
18827: ac_beg=$ac_end
18828: ac_end=`expr $ac_end + $ac_max_sed_lines`
18829: fi
18830: done
18831: if test -z "$ac_sed_cmds"; then
18832: ac_sed_cmds=cat
18833: fi
18834: fi # test -n "$CONFIG_FILES"
18835:
18836: _ACEOF
18837: cat >>$CONFIG_STATUS <<\_ACEOF
18838: for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18839: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18840: case $ac_file in
18841: - | *:- | *:-:* ) # input from stdin
18842: cat >$tmp/stdin
18843: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18844: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18845: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18846: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18847: * ) ac_file_in=$ac_file.in ;;
18848: esac
18849:
18850: # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18851: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18852: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18853: X"$ac_file" : 'X\(//\)[^/]' \| \
18854: X"$ac_file" : 'X\(//\)$' \| \
18855: X"$ac_file" : 'X\(/\)' \| \
18856: . : '\(.\)' 2>/dev/null ||
18857: echo X"$ac_file" |
18858: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18859: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18860: /^X\(\/\/\)$/{ s//\1/; q; }
18861: /^X\(\/\).*/{ s//\1/; q; }
18862: s/.*/./; q'`
18863: { if $as_mkdir_p; then
18864: mkdir -p "$ac_dir"
18865: else
18866: as_dir="$ac_dir"
18867: as_dirs=
18868: while test ! -d "$as_dir"; do
18869: as_dirs="$as_dir $as_dirs"
18870: as_dir=`(dirname "$as_dir") 2>/dev/null ||
18871: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18872: X"$as_dir" : 'X\(//\)[^/]' \| \
18873: X"$as_dir" : 'X\(//\)$' \| \
18874: X"$as_dir" : 'X\(/\)' \| \
18875: . : '\(.\)' 2>/dev/null ||
18876: echo X"$as_dir" |
18877: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18878: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18879: /^X\(\/\/\)$/{ s//\1/; q; }
18880: /^X\(\/\).*/{ s//\1/; q; }
18881: s/.*/./; q'`
18882: done
18883: test ! -n "$as_dirs" || mkdir $as_dirs
18884: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18885: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18886: { (exit 1); exit 1; }; }; }
18887:
18888: ac_builddir=.
18889:
18890: if test "$ac_dir" != .; then
18891: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18892: # A "../" for each directory in $ac_dir_suffix.
18893: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18894: else
18895: ac_dir_suffix= ac_top_builddir=
18896: fi
18897:
18898: case $srcdir in
18899: .) # No --srcdir option. We are building in place.
18900: ac_srcdir=.
18901: if test -z "$ac_top_builddir"; then
18902: ac_top_srcdir=.
18903: else
18904: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18905: fi ;;
18906: [\\/]* | ?:[\\/]* ) # Absolute path.
18907: ac_srcdir=$srcdir$ac_dir_suffix;
18908: ac_top_srcdir=$srcdir ;;
18909: *) # Relative path.
18910: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18911: ac_top_srcdir=$ac_top_builddir$srcdir ;;
18912: esac
18913:
18914: # Do not use `cd foo && pwd` to compute absolute paths, because
18915: # the directories may not exist.
18916: case `pwd` in
18917: .) ac_abs_builddir="$ac_dir";;
18918: *)
18919: case "$ac_dir" in
18920: .) ac_abs_builddir=`pwd`;;
18921: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18922: *) ac_abs_builddir=`pwd`/"$ac_dir";;
18923: esac;;
18924: esac
18925: case $ac_abs_builddir in
18926: .) ac_abs_top_builddir=${ac_top_builddir}.;;
18927: *)
18928: case ${ac_top_builddir}. in
18929: .) ac_abs_top_builddir=$ac_abs_builddir;;
18930: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18931: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18932: esac;;
18933: esac
18934: case $ac_abs_builddir in
18935: .) ac_abs_srcdir=$ac_srcdir;;
18936: *)
18937: case $ac_srcdir in
18938: .) ac_abs_srcdir=$ac_abs_builddir;;
18939: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18940: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18941: esac;;
18942: esac
18943: case $ac_abs_builddir in
18944: .) ac_abs_top_srcdir=$ac_top_srcdir;;
18945: *)
18946: case $ac_top_srcdir in
18947: .) ac_abs_top_srcdir=$ac_abs_builddir;;
18948: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18949: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18950: esac;;
18951: esac
18952:
18953:
18954: case $INSTALL in
18955: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18956: *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
18957: esac
18958:
18959: if test x"$ac_file" != x-; then
18960: { echo "$as_me:$LINENO: creating $ac_file" >&5
18961: echo "$as_me: creating $ac_file" >&6;}
18962: rm -f "$ac_file"
18963: fi
18964: # Let's still pretend it is `configure' which instantiates (i.e., don't
18965: # use $as_me), people would be surprised to read:
18966: # /* config.h. Generated by config.status. */
18967: if test x"$ac_file" = x-; then
18968: configure_input=
18969: else
18970: configure_input="$ac_file. "
18971: fi
18972: configure_input=$configure_input"Generated from `echo $ac_file_in |
18973: sed 's,.*/,,'` by configure."
18974:
18975: # First look for the input files in the build tree, otherwise in the
18976: # src tree.
18977: ac_file_inputs=`IFS=:
18978: for f in $ac_file_in; do
18979: case $f in
18980: -) echo $tmp/stdin ;;
18981: [\\/$]*)
18982: # Absolute (can't be DOS-style, as IFS=:)
18983: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18984: echo "$as_me: error: cannot find input file: $f" >&2;}
18985: { (exit 1); exit 1; }; }
18986: echo "$f";;
18987: *) # Relative
18988: if test -f "$f"; then
18989: # Build tree
18990: echo "$f"
18991: elif test -f "$srcdir/$f"; then
18992: # Source tree
18993: echo "$srcdir/$f"
18994: else
18995: # /dev/null tree
18996: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18997: echo "$as_me: error: cannot find input file: $f" >&2;}
18998: { (exit 1); exit 1; }; }
18999: fi;;
19000: esac
19001: done` || { (exit 1); exit 1; }
19002: _ACEOF
19003: cat >>$CONFIG_STATUS <<_ACEOF
19004: sed "$ac_vpsub
19005: $extrasub
19006: _ACEOF
19007: cat >>$CONFIG_STATUS <<\_ACEOF
19008: :t
19009: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19010: s,@configure_input@,$configure_input,;t t
19011: s,@srcdir@,$ac_srcdir,;t t
19012: s,@abs_srcdir@,$ac_abs_srcdir,;t t
19013: s,@top_srcdir@,$ac_top_srcdir,;t t
19014: s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19015: s,@builddir@,$ac_builddir,;t t
19016: s,@abs_builddir@,$ac_abs_builddir,;t t
19017: s,@top_builddir@,$ac_top_builddir,;t t
19018: s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19019: s,@INSTALL@,$ac_INSTALL,;t t
19020: " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19021: rm -f $tmp/stdin
19022: if test x"$ac_file" != x-; then
19023: mv $tmp/out $ac_file
19024: else
19025: cat $tmp/out
19026: rm -f $tmp/out
19027: fi
19028:
19029: done
19030: _ACEOF
19031: cat >>$CONFIG_STATUS <<\_ACEOF
19032:
19033: #
19034: # CONFIG_HEADER section.
19035: #
19036:
19037: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19038: # NAME is the cpp macro being defined and VALUE is the value it is being given.
19039: #
19040: # ac_d sets the value in "#define NAME VALUE" lines.
19041: ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19042: ac_dB='[ ].*$,\1#\2'
19043: ac_dC=' '
19044: ac_dD=',;t'
19045: # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19046: ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19047: ac_uB='$,\1#\2define\3'
19048: ac_uC=' '
19049: ac_uD=',;t'
19050:
19051: for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19052: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19053: case $ac_file in
19054: - | *:- | *:-:* ) # input from stdin
19055: cat >$tmp/stdin
19056: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19057: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19058: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19059: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19060: * ) ac_file_in=$ac_file.in ;;
19061: esac
19062:
19063: test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19064: echo "$as_me: creating $ac_file" >&6;}
19065:
19066: # First look for the input files in the build tree, otherwise in the
19067: # src tree.
19068: ac_file_inputs=`IFS=:
19069: for f in $ac_file_in; do
19070: case $f in
19071: -) echo $tmp/stdin ;;
19072: [\\/$]*)
19073: # Absolute (can't be DOS-style, as IFS=:)
19074: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19075: echo "$as_me: error: cannot find input file: $f" >&2;}
19076: { (exit 1); exit 1; }; }
19077: # Do quote $f, to prevent DOS paths from being IFS'd.
19078: echo "$f";;
19079: *) # Relative
19080: if test -f "$f"; then
19081: # Build tree
19082: echo "$f"
19083: elif test -f "$srcdir/$f"; then
19084: # Source tree
19085: echo "$srcdir/$f"
19086: else
19087: # /dev/null tree
19088: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19089: echo "$as_me: error: cannot find input file: $f" >&2;}
19090: { (exit 1); exit 1; }; }
19091: fi;;
19092: esac
19093: done` || { (exit 1); exit 1; }
19094: # Remove the trailing spaces.
19095: sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
19096:
19097: _ACEOF
19098:
19099: # Transform confdefs.h into two sed scripts, `conftest.defines' and
19100: # `conftest.undefs', that substitutes the proper values into
19101: # config.h.in to produce config.h. The first handles `#define'
19102: # templates, and the second `#undef' templates.
19103: # And first: Protect against being on the right side of a sed subst in
19104: # config.status. Protect against being in an unquoted here document
19105: # in config.status.
19106: rm -f conftest.defines conftest.undefs
19107: # Using a here document instead of a string reduces the quoting nightmare.
19108: # Putting comments in sed scripts is not portable.
19109: #
19110: # `end' is used to avoid that the second main sed command (meant for
19111: # 0-ary CPP macros) applies to n-ary macro definitions.
19112: # See the Autoconf documentation for `clear'.
19113: cat >confdef2sed.sed <<\_ACEOF
19114: s/[\\&,]/\\&/g
19115: s,[\\$`],\\&,g
19116: t clear
19117: : clear
19118: s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19119: t end
19120: s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19121: : end
19122: _ACEOF
19123: # If some macros were called several times there might be several times
19124: # the same #defines, which is useless. Nevertheless, we may not want to
19125: # sort them, since we want the *last* AC-DEFINE to be honored.
19126: uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19127: sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19128: rm -f confdef2sed.sed
19129:
19130: # This sed command replaces #undef with comments. This is necessary, for
19131: # example, in the case of _POSIX_SOURCE, which is predefined and required
19132: # on some systems where configure will not decide to define it.
19133: cat >>conftest.undefs <<\_ACEOF
19134: s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19135: _ACEOF
19136:
19137: # Break up conftest.defines because some shells have a limit on the size
19138: # of here documents, and old seds have small limits too (100 cmds).
19139: echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19140: echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19141: echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19142: echo ' :' >>$CONFIG_STATUS
19143: rm -f conftest.tail
19144: while grep . conftest.defines >/dev/null
19145: do
19146: # Write a limited-size here document to $tmp/defines.sed.
19147: echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19148: # Speed up: don't consider the non `#define' lines.
19149: echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
19150: # Work around the forget-to-reset-the-flag bug.
19151: echo 't clr' >>$CONFIG_STATUS
19152: echo ': clr' >>$CONFIG_STATUS
19153: sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19154: echo 'CEOF
19155: sed -f $tmp/defines.sed $tmp/in >$tmp/out
19156: rm -f $tmp/in
19157: mv $tmp/out $tmp/in
19158: ' >>$CONFIG_STATUS
19159: sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19160: rm -f conftest.defines
19161: mv conftest.tail conftest.defines
19162: done
19163: rm -f conftest.defines
19164: echo ' fi # grep' >>$CONFIG_STATUS
19165: echo >>$CONFIG_STATUS
19166:
19167: # Break up conftest.undefs because some shells have a limit on the size
19168: # of here documents, and old seds have small limits too (100 cmds).
19169: echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
19170: rm -f conftest.tail
19171: while grep . conftest.undefs >/dev/null
19172: do
19173: # Write a limited-size here document to $tmp/undefs.sed.
19174: echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19175: # Speed up: don't consider the non `#undef'
19176: echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
19177: # Work around the forget-to-reset-the-flag bug.
19178: echo 't clr' >>$CONFIG_STATUS
19179: echo ': clr' >>$CONFIG_STATUS
19180: sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19181: echo 'CEOF
19182: sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19183: rm -f $tmp/in
19184: mv $tmp/out $tmp/in
19185: ' >>$CONFIG_STATUS
19186: sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19187: rm -f conftest.undefs
19188: mv conftest.tail conftest.undefs
19189: done
19190: rm -f conftest.undefs
19191:
19192: cat >>$CONFIG_STATUS <<\_ACEOF
19193: # Let's still pretend it is `configure' which instantiates (i.e., don't
19194: # use $as_me), people would be surprised to read:
19195: # /* config.h. Generated by config.status. */
19196: if test x"$ac_file" = x-; then
19197: echo "/* Generated by configure. */" >$tmp/config.h
19198: else
19199: echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
19200: fi
19201: cat $tmp/in >>$tmp/config.h
19202: rm -f $tmp/in
19203: if test x"$ac_file" != x-; then
19204: if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
19205: { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19206: echo "$as_me: $ac_file is unchanged" >&6;}
19207: else
19208: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19209: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19210: X"$ac_file" : 'X\(//\)[^/]' \| \
19211: X"$ac_file" : 'X\(//\)$' \| \
19212: X"$ac_file" : 'X\(/\)' \| \
19213: . : '\(.\)' 2>/dev/null ||
19214: echo X"$ac_file" |
19215: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19216: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19217: /^X\(\/\/\)$/{ s//\1/; q; }
19218: /^X\(\/\).*/{ s//\1/; q; }
19219: s/.*/./; q'`
19220: { if $as_mkdir_p; then
19221: mkdir -p "$ac_dir"
19222: else
19223: as_dir="$ac_dir"
19224: as_dirs=
19225: while test ! -d "$as_dir"; do
19226: as_dirs="$as_dir $as_dirs"
19227: as_dir=`(dirname "$as_dir") 2>/dev/null ||
19228: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19229: X"$as_dir" : 'X\(//\)[^/]' \| \
19230: X"$as_dir" : 'X\(//\)$' \| \
19231: X"$as_dir" : 'X\(/\)' \| \
19232: . : '\(.\)' 2>/dev/null ||
19233: echo X"$as_dir" |
19234: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19235: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19236: /^X\(\/\/\)$/{ s//\1/; q; }
19237: /^X\(\/\).*/{ s//\1/; q; }
19238: s/.*/./; q'`
19239: done
19240: test ! -n "$as_dirs" || mkdir $as_dirs
19241: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19242: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19243: { (exit 1); exit 1; }; }; }
19244:
19245: rm -f $ac_file
19246: mv $tmp/config.h $ac_file
19247: fi
19248: else
19249: cat $tmp/config.h
19250: rm -f $tmp/config.h
19251: fi
19252: # Compute $ac_file's index in $config_headers.
19253: _am_stamp_count=1
19254: for _am_header in $config_headers :; do
19255: case $_am_header in
19256: $ac_file | $ac_file:* )
19257: break ;;
19258: * )
19259: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19260: esac
19261: done
19262: echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
19263: $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19264: X$ac_file : 'X\(//\)[^/]' \| \
19265: X$ac_file : 'X\(//\)$' \| \
19266: X$ac_file : 'X\(/\)' \| \
19267: . : '\(.\)' 2>/dev/null ||
19268: echo X$ac_file |
19269: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19270: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19271: /^X\(\/\/\)$/{ s//\1/; q; }
19272: /^X\(\/\).*/{ s//\1/; q; }
19273: s/.*/./; q'`/stamp-h$_am_stamp_count
19274: done
19275: _ACEOF
19276: cat >>$CONFIG_STATUS <<\_ACEOF
19277:
19278: #
19279: # CONFIG_COMMANDS section.
19280: #
19281: for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19282: ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19283: ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19284: ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19285: $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19286: X"$ac_dest" : 'X\(//\)[^/]' \| \
19287: X"$ac_dest" : 'X\(//\)$' \| \
19288: X"$ac_dest" : 'X\(/\)' \| \
19289: . : '\(.\)' 2>/dev/null ||
19290: echo X"$ac_dest" |
19291: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19292: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19293: /^X\(\/\/\)$/{ s//\1/; q; }
19294: /^X\(\/\).*/{ s//\1/; q; }
19295: s/.*/./; q'`
19296: { if $as_mkdir_p; then
19297: mkdir -p "$ac_dir"
19298: else
19299: as_dir="$ac_dir"
19300: as_dirs=
19301: while test ! -d "$as_dir"; do
19302: as_dirs="$as_dir $as_dirs"
19303: as_dir=`(dirname "$as_dir") 2>/dev/null ||
19304: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19305: X"$as_dir" : 'X\(//\)[^/]' \| \
19306: X"$as_dir" : 'X\(//\)$' \| \
19307: X"$as_dir" : 'X\(/\)' \| \
19308: . : '\(.\)' 2>/dev/null ||
19309: echo X"$as_dir" |
19310: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19311: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19312: /^X\(\/\/\)$/{ s//\1/; q; }
19313: /^X\(\/\).*/{ s//\1/; q; }
19314: s/.*/./; q'`
19315: done
19316: test ! -n "$as_dirs" || mkdir $as_dirs
19317: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19318: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19319: { (exit 1); exit 1; }; }; }
19320:
19321: ac_builddir=.
19322:
19323: if test "$ac_dir" != .; then
19324: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19325: # A "../" for each directory in $ac_dir_suffix.
19326: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19327: else
19328: ac_dir_suffix= ac_top_builddir=
19329: fi
19330:
19331: case $srcdir in
19332: .) # No --srcdir option. We are building in place.
19333: ac_srcdir=.
19334: if test -z "$ac_top_builddir"; then
19335: ac_top_srcdir=.
19336: else
19337: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19338: fi ;;
19339: [\\/]* | ?:[\\/]* ) # Absolute path.
19340: ac_srcdir=$srcdir$ac_dir_suffix;
19341: ac_top_srcdir=$srcdir ;;
19342: *) # Relative path.
19343: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19344: ac_top_srcdir=$ac_top_builddir$srcdir ;;
19345: esac
19346:
19347: # Do not use `cd foo && pwd` to compute absolute paths, because
19348: # the directories may not exist.
19349: case `pwd` in
19350: .) ac_abs_builddir="$ac_dir";;
19351: *)
19352: case "$ac_dir" in
19353: .) ac_abs_builddir=`pwd`;;
19354: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
19355: *) ac_abs_builddir=`pwd`/"$ac_dir";;
19356: esac;;
19357: esac
19358: case $ac_abs_builddir in
19359: .) ac_abs_top_builddir=${ac_top_builddir}.;;
19360: *)
19361: case ${ac_top_builddir}. in
19362: .) ac_abs_top_builddir=$ac_abs_builddir;;
19363: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
19364: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
19365: esac;;
19366: esac
19367: case $ac_abs_builddir in
19368: .) ac_abs_srcdir=$ac_srcdir;;
19369: *)
19370: case $ac_srcdir in
19371: .) ac_abs_srcdir=$ac_abs_builddir;;
19372: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
19373: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
19374: esac;;
19375: esac
19376: case $ac_abs_builddir in
19377: .) ac_abs_top_srcdir=$ac_top_srcdir;;
19378: *)
19379: case $ac_top_srcdir in
19380: .) ac_abs_top_srcdir=$ac_abs_builddir;;
19381: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
19382: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
19383: esac;;
19384: esac
19385:
19386:
19387: { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19388: echo "$as_me: executing $ac_dest commands" >&6;}
19389: case $ac_dest in
19390: depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
19391: # Strip MF so we end up with the name of the file.
19392: mf=`echo "$mf" | sed -e 's/:.*$//'`
19393: # Check whether this is an Automake generated Makefile or not.
19394: # We used to match only the files named `Makefile.in', but
19395: # some people rename them; so instead we look at the file content.
19396: # Grep'ing the first line is not enough: some people post-process
19397: # each Makefile.in and add a new line on top of each file to say so.
19398: # So let's grep whole file.
19399: if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
19400: dirpart=`(dirname "$mf") 2>/dev/null ||
19401: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19402: X"$mf" : 'X\(//\)[^/]' \| \
19403: X"$mf" : 'X\(//\)$' \| \
19404: X"$mf" : 'X\(/\)' \| \
19405: . : '\(.\)' 2>/dev/null ||
19406: echo X"$mf" |
19407: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19408: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19409: /^X\(\/\/\)$/{ s//\1/; q; }
19410: /^X\(\/\).*/{ s//\1/; q; }
19411: s/.*/./; q'`
19412: else
19413: continue
19414: fi
19415: # Extract the definition of DEPDIR, am__include, and am__quote
19416: # from the Makefile without running `make'.
19417: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19418: test -z "$DEPDIR" && continue
19419: am__include=`sed -n 's/^am__include = //p' < "$mf"`
19420: test -z "am__include" && continue
19421: am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19422: # When using ansi2knr, U may be empty or an underscore; expand it
19423: U=`sed -n 's/^U = //p' < "$mf"`
19424: # Find all dependency output files, they are included files with
19425: # $(DEPDIR) in their names. We invoke sed twice because it is the
19426: # simplest approach to changing $(DEPDIR) to its actual value in the
19427: # expansion.
19428: for file in `sed -n "
19429: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19430: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19431: # Make sure the directory exists.
19432: test -f "$dirpart/$file" && continue
19433: fdir=`(dirname "$file") 2>/dev/null ||
19434: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19435: X"$file" : 'X\(//\)[^/]' \| \
19436: X"$file" : 'X\(//\)$' \| \
19437: X"$file" : 'X\(/\)' \| \
19438: . : '\(.\)' 2>/dev/null ||
19439: echo X"$file" |
19440: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19441: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19442: /^X\(\/\/\)$/{ s//\1/; q; }
19443: /^X\(\/\).*/{ s//\1/; q; }
19444: s/.*/./; q'`
19445: { if $as_mkdir_p; then
19446: mkdir -p $dirpart/$fdir
19447: else
19448: as_dir=$dirpart/$fdir
19449: as_dirs=
19450: while test ! -d "$as_dir"; do
19451: as_dirs="$as_dir $as_dirs"
19452: as_dir=`(dirname "$as_dir") 2>/dev/null ||
19453: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19454: X"$as_dir" : 'X\(//\)[^/]' \| \
19455: X"$as_dir" : 'X\(//\)$' \| \
19456: X"$as_dir" : 'X\(/\)' \| \
19457: . : '\(.\)' 2>/dev/null ||
19458: echo X"$as_dir" |
19459: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19460: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19461: /^X\(\/\/\)$/{ s//\1/; q; }
19462: /^X\(\/\).*/{ s//\1/; q; }
19463: s/.*/./; q'`
19464: done
19465: test ! -n "$as_dirs" || mkdir $as_dirs
19466: fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
19467: echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
19468: { (exit 1); exit 1; }; }; }
19469:
19470: # echo "creating $dirpart/$file"
19471: echo '# dummy' > "$dirpart/$file"
19472: done
19473: done
19474: ;;
19475: libtool )
19476:
19477: # See if we are running on zsh, and set the options which allow our
19478: # commands through without removal of \ escapes.
19479: if test -n "${ZSH_VERSION+set}" ; then
19480: setopt NO_GLOB_SUBST
19481: fi
19482:
19483: cfgfile="${ofile}T"
19484: trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19485: $RM "$cfgfile"
19486:
19487: cat <<_LT_EOF >> "$cfgfile"
19488: #! $SHELL
19489:
19490: # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19491: # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19492: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19493: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19494: #
19495: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19496: # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19497: # Foundation, Inc.
19498: # Written by Gordon Matzigkeit, 1996
19499: #
19500: # This file is part of GNU Libtool.
19501: #
19502: # GNU Libtool is free software; you can redistribute it and/or
19503: # modify it under the terms of the GNU General Public License as
19504: # published by the Free Software Foundation; either version 2 of
19505: # the License, or (at your option) any later version.
19506: #
19507: # As a special exception to the GNU General Public License,
19508: # if you distribute this file as part of a program or library that
19509: # is built using GNU Libtool, you may include this file under the
19510: # same distribution terms that you use for the rest of that program.
19511: #
19512: # GNU Libtool is distributed in the hope that it will be useful,
19513: # but WITHOUT ANY WARRANTY; without even the implied warranty of
19514: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19515: # GNU General Public License for more details.
19516: #
19517: # You should have received a copy of the GNU General Public License
19518: # along with GNU Libtool; see the file COPYING. If not, a copy
19519: # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19520: # obtained by writing to the Free Software Foundation, Inc.,
19521: # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19522:
19523:
19524: # The names of the tagged configurations supported by this script.
19525: available_tags="CXX "
19526:
19527: # ### BEGIN LIBTOOL CONFIG
19528:
19529: # Which release of libtool.m4 was used?
19530: macro_version=$macro_version
19531: macro_revision=$macro_revision
19532:
19533: # Assembler program.
19534: AS=$lt_AS
19535:
19536: # DLL creation program.
19537: DLLTOOL=$lt_DLLTOOL
19538:
19539: # Object dumper program.
19540: OBJDUMP=$lt_OBJDUMP
19541:
19542: # Whether or not to build shared libraries.
19543: build_libtool_libs=$enable_shared
19544:
19545: # Whether or not to build static libraries.
19546: build_old_libs=$enable_static
19547:
19548: # What type of objects to build.
19549: pic_mode=$pic_mode
19550:
19551: # Whether or not to optimize for fast installation.
19552: fast_install=$enable_fast_install
19553:
19554: # Shell to use when invoking shell scripts.
19555: SHELL=$lt_SHELL
19556:
19557: # An echo program that protects backslashes.
19558: ECHO=$lt_ECHO
19559:
19560: # The PATH separator for the build system.
19561: PATH_SEPARATOR=$lt_PATH_SEPARATOR
19562:
19563: # The host system.
19564: host_alias=$host_alias
19565: host=$host
19566: host_os=$host_os
19567:
19568: # The build system.
19569: build_alias=$build_alias
19570: build=$build
19571: build_os=$build_os
19572:
19573: # A sed program that does not truncate output.
19574: SED=$lt_SED
19575:
19576: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19577: Xsed="\$SED -e 1s/^X//"
19578:
19579: # A grep program that handles long lines.
19580: GREP=$lt_GREP
19581:
19582: # An ERE matcher.
19583: EGREP=$lt_EGREP
19584:
19585: # A literal string matcher.
19586: FGREP=$lt_FGREP
19587:
19588: # A BSD- or MS-compatible name lister.
19589: NM=$lt_NM
19590:
19591: # Whether we need soft or hard links.
19592: LN_S=$lt_LN_S
19593:
19594: # What is the maximum length of a command?
19595: max_cmd_len=$max_cmd_len
19596:
19597: # Object file suffix (normally "o").
19598: objext=$ac_objext
19599:
19600: # Executable file suffix (normally "").
19601: exeext=$exeext
19602:
19603: # whether the shell understands "unset".
19604: lt_unset=$lt_unset
19605:
19606: # turn spaces into newlines.
19607: SP2NL=$lt_lt_SP2NL
19608:
19609: # turn newlines into spaces.
19610: NL2SP=$lt_lt_NL2SP
19611:
19612: # convert \$build file names to \$host format.
19613: to_host_file_cmd=$lt_cv_to_host_file_cmd
19614:
19615: # convert \$build files to toolchain format.
19616: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19617:
19618: # Method to check whether dependent libraries are shared objects.
19619: deplibs_check_method=$lt_deplibs_check_method
19620:
19621: # Command to use when deplibs_check_method = "file_magic".
19622: file_magic_cmd=$lt_file_magic_cmd
19623:
19624: # How to find potential files when deplibs_check_method = "file_magic".
19625: file_magic_glob=$lt_file_magic_glob
19626:
19627: # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19628: want_nocaseglob=$lt_want_nocaseglob
19629:
19630: # Command to associate shared and link libraries.
19631: sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19632:
19633: # The archiver.
19634: AR=$lt_AR
19635:
19636: # Flags to create an archive.
19637: AR_FLAGS=$lt_AR_FLAGS
19638:
19639: # How to feed a file listing to the archiver.
19640: archiver_list_spec=$lt_archiver_list_spec
19641:
19642: # A symbol stripping program.
19643: STRIP=$lt_STRIP
19644:
19645: # Commands used to install an old-style archive.
19646: RANLIB=$lt_RANLIB
19647: old_postinstall_cmds=$lt_old_postinstall_cmds
19648: old_postuninstall_cmds=$lt_old_postuninstall_cmds
19649:
19650: # Whether to use a lock for old archive extraction.
19651: lock_old_archive_extraction=$lock_old_archive_extraction
19652:
19653: # A C compiler.
19654: LTCC=$lt_CC
19655:
19656: # LTCC compiler flags.
19657: LTCFLAGS=$lt_CFLAGS
19658:
19659: # Take the output of nm and produce a listing of raw symbols and C names.
19660: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19661:
19662: # Transform the output of nm in a proper C declaration.
19663: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19664:
19665: # Transform the output of nm in a C name address pair.
19666: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19667:
19668: # Transform the output of nm in a C name address pair when lib prefix is needed.
19669: global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19670:
19671: # Specify filename containing input files for \$NM.
19672: nm_file_list_spec=$lt_nm_file_list_spec
19673:
19674: # The root where to search for dependent libraries,and in which our libraries should be installed.
19675: lt_sysroot=$lt_sysroot
19676:
19677: # The name of the directory that contains temporary libtool files.
19678: objdir=$objdir
19679:
19680: # Used to examine libraries when file_magic_cmd begins with "file".
19681: MAGIC_CMD=$MAGIC_CMD
19682:
19683: # Must we lock files when doing compilation?
19684: need_locks=$lt_need_locks
19685:
19686: # Manifest tool.
19687: MANIFEST_TOOL=$lt_MANIFEST_TOOL
19688:
19689: # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19690: DSYMUTIL=$lt_DSYMUTIL
19691:
19692: # Tool to change global to local symbols on Mac OS X.
19693: NMEDIT=$lt_NMEDIT
19694:
19695: # Tool to manipulate fat objects and archives on Mac OS X.
19696: LIPO=$lt_LIPO
19697:
19698: # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19699: OTOOL=$lt_OTOOL
19700:
19701: # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19702: OTOOL64=$lt_OTOOL64
19703:
19704: # Old archive suffix (normally "a").
19705: libext=$libext
19706:
19707: # Shared library suffix (normally ".so").
19708: shrext_cmds=$lt_shrext_cmds
19709:
19710: # The commands to extract the exported symbol list from a shared archive.
19711: extract_expsyms_cmds=$lt_extract_expsyms_cmds
19712:
19713: # Variables whose values should be saved in libtool wrapper scripts and
19714: # restored at link time.
19715: variables_saved_for_relink=$lt_variables_saved_for_relink
19716:
19717: # Do we need the "lib" prefix for modules?
19718: need_lib_prefix=$need_lib_prefix
19719:
19720: # Do we need a version for libraries?
19721: need_version=$need_version
19722:
19723: # Library versioning type.
19724: version_type=$version_type
19725:
19726: # Shared library runtime path variable.
19727: runpath_var=$runpath_var
19728:
19729: # Shared library path variable.
19730: shlibpath_var=$shlibpath_var
19731:
19732: # Is shlibpath searched before the hard-coded library search path?
19733: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19734:
19735: # Format of library name prefix.
19736: libname_spec=$lt_libname_spec
19737:
19738: # List of archive names. First name is the real one, the rest are links.
19739: # The last name is the one that the linker finds with -lNAME
19740: library_names_spec=$lt_library_names_spec
19741:
19742: # The coded name of the library, if different from the real name.
19743: soname_spec=$lt_soname_spec
19744:
19745: # Permission mode override for installation of shared libraries.
19746: install_override_mode=$lt_install_override_mode
19747:
19748: # Command to use after installation of a shared archive.
19749: postinstall_cmds=$lt_postinstall_cmds
19750:
19751: # Command to use after uninstallation of a shared archive.
19752: postuninstall_cmds=$lt_postuninstall_cmds
19753:
19754: # Commands used to finish a libtool library installation in a directory.
19755: finish_cmds=$lt_finish_cmds
19756:
19757: # As "finish_cmds", except a single script fragment to be evaled but
19758: # not shown.
19759: finish_eval=$lt_finish_eval
19760:
19761: # Whether we should hardcode library paths into libraries.
19762: hardcode_into_libs=$hardcode_into_libs
19763:
19764: # Compile-time system search path for libraries.
19765: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19766:
19767: # Run-time system search path for libraries.
19768: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19769:
19770: # Whether dlopen is supported.
19771: dlopen_support=$enable_dlopen
19772:
19773: # Whether dlopen of programs is supported.
19774: dlopen_self=$enable_dlopen_self
19775:
19776: # Whether dlopen of statically linked programs is supported.
19777: dlopen_self_static=$enable_dlopen_self_static
19778:
19779: # Commands to strip libraries.
19780: old_striplib=$lt_old_striplib
19781: striplib=$lt_striplib
19782:
19783:
19784: # The linker used to build libraries.
19785: LD=$lt_LD
19786:
19787: # How to create reloadable object files.
19788: reload_flag=$lt_reload_flag
19789: reload_cmds=$lt_reload_cmds
19790:
19791: # Commands used to build an old-style archive.
19792: old_archive_cmds=$lt_old_archive_cmds
19793:
19794: # A language specific compiler.
19795: CC=$lt_compiler
19796:
19797: # Is the compiler the GNU compiler?
19798: with_gcc=$GCC
19799:
19800: # Compiler flag to turn off builtin functions.
19801: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19802:
19803: # Additional compiler flags for building library objects.
19804: pic_flag=$lt_lt_prog_compiler_pic
19805:
19806: # How to pass a linker flag through the compiler.
19807: wl=$lt_lt_prog_compiler_wl
19808:
19809: # Compiler flag to prevent dynamic linking.
19810: link_static_flag=$lt_lt_prog_compiler_static
19811:
19812: # Does compiler simultaneously support -c and -o options?
19813: compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19814:
19815: # Whether or not to add -lc for building shared libraries.
19816: build_libtool_need_lc=$archive_cmds_need_lc
19817:
19818: # Whether or not to disallow shared libs when runtime libs are static.
19819: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19820:
19821: # Compiler flag to allow reflexive dlopens.
19822: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19823:
19824: # Compiler flag to generate shared objects directly from archives.
19825: whole_archive_flag_spec=$lt_whole_archive_flag_spec
19826:
19827: # Whether the compiler copes with passing no objects directly.
19828: compiler_needs_object=$lt_compiler_needs_object
19829:
19830: # Create an old-style archive from a shared archive.
19831: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19832:
19833: # Create a temporary old-style archive to link instead of a shared archive.
19834: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19835:
19836: # Commands used to build a shared archive.
19837: archive_cmds=$lt_archive_cmds
19838: archive_expsym_cmds=$lt_archive_expsym_cmds
19839:
19840: # Commands used to build a loadable module if different from building
19841: # a shared archive.
19842: module_cmds=$lt_module_cmds
19843: module_expsym_cmds=$lt_module_expsym_cmds
19844:
19845: # Whether we are building with GNU ld or not.
19846: with_gnu_ld=$lt_with_gnu_ld
19847:
19848: # Flag that allows shared libraries with undefined symbols to be built.
19849: allow_undefined_flag=$lt_allow_undefined_flag
19850:
19851: # Flag that enforces no undefined symbols.
19852: no_undefined_flag=$lt_no_undefined_flag
19853:
19854: # Flag to hardcode \$libdir into a binary during linking.
19855: # This must work even if \$libdir does not exist
19856: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19857:
19858: # Whether we need a single "-rpath" flag with a separated argument.
19859: hardcode_libdir_separator=$lt_hardcode_libdir_separator
19860:
19861: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19862: # DIR into the resulting binary.
19863: hardcode_direct=$hardcode_direct
19864:
19865: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19866: # DIR into the resulting binary and the resulting library dependency is
19867: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19868: # library is relocated.
19869: hardcode_direct_absolute=$hardcode_direct_absolute
19870:
19871: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19872: # into the resulting binary.
19873: hardcode_minus_L=$hardcode_minus_L
19874:
19875: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19876: # into the resulting binary.
19877: hardcode_shlibpath_var=$hardcode_shlibpath_var
19878:
19879: # Set to "yes" if building a shared library automatically hardcodes DIR
19880: # into the library and all subsequent libraries and executables linked
19881: # against it.
19882: hardcode_automatic=$hardcode_automatic
19883:
19884: # Set to yes if linker adds runtime paths of dependent libraries
19885: # to runtime path list.
19886: inherit_rpath=$inherit_rpath
19887:
19888: # Whether libtool must link a program against all its dependency libraries.
19889: link_all_deplibs=$link_all_deplibs
19890:
19891: # Set to "yes" if exported symbols are required.
19892: always_export_symbols=$always_export_symbols
19893:
19894: # The commands to list exported symbols.
19895: export_symbols_cmds=$lt_export_symbols_cmds
19896:
19897: # Symbols that should not be listed in the preloaded symbols.
19898: exclude_expsyms=$lt_exclude_expsyms
19899:
19900: # Symbols that must always be exported.
19901: include_expsyms=$lt_include_expsyms
19902:
19903: # Commands necessary for linking programs (against libraries) with templates.
19904: prelink_cmds=$lt_prelink_cmds
19905:
19906: # Commands necessary for finishing linking programs.
19907: postlink_cmds=$lt_postlink_cmds
19908:
19909: # Specify filename containing input files.
19910: file_list_spec=$lt_file_list_spec
19911:
19912: # How to hardcode a shared library path into an executable.
19913: hardcode_action=$hardcode_action
19914:
19915: # The directories searched by this compiler when creating a shared library.
19916: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19917:
19918: # Dependencies to place before and after the objects being linked to
19919: # create a shared library.
19920: predep_objects=$lt_predep_objects
19921: postdep_objects=$lt_postdep_objects
19922: predeps=$lt_predeps
19923: postdeps=$lt_postdeps
19924:
19925: # The library search path used internally by the compiler when linking
19926: # a shared library.
19927: compiler_lib_search_path=$lt_compiler_lib_search_path
19928:
19929: # ### END LIBTOOL CONFIG
19930:
19931: _LT_EOF
19932:
19933: case $host_os in
19934: aix3*)
19935: cat <<\_LT_EOF >> "$cfgfile"
19936: # AIX sometimes has problems with the GCC collect2 program. For some
19937: # reason, if we set the COLLECT_NAMES environment variable, the problems
19938: # vanish in a puff of smoke.
19939: if test "X${COLLECT_NAMES+set}" != Xset; then
19940: COLLECT_NAMES=
19941: export COLLECT_NAMES
19942: fi
19943: _LT_EOF
19944: ;;
19945: esac
19946:
19947:
19948: ltmain="$ac_aux_dir/ltmain.sh"
1.1 parser 19949:
1.16 paf 19950:
1.23 moko 19951: # We use sed instead of cat because bash on DJGPP gets confused if
19952: # if finds mixed CR/LF and LF-only lines. Since sed operates in
19953: # text mode, it properly converts lines to CR/LF. This bash problem
19954: # is reportedly fixed, but why not run on old versions too?
19955: sed '$q' "$ltmain" >> "$cfgfile" \
19956: || (rm -f "$cfgfile"; exit 1)
1.10 paf 19957:
1.23 moko 19958: if test x"$xsi_shell" = xyes; then
19959: sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19960: func_dirname ()\
19961: {\
19962: \ case ${1} in\
19963: \ */*) func_dirname_result="${1%/*}${2}" ;;\
19964: \ * ) func_dirname_result="${3}" ;;\
19965: \ esac\
19966: } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19967: && mv -f "$cfgfile.tmp" "$cfgfile" \
19968: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19969: test 0 -eq $? || _lt_function_replace_fail=:
19970:
19971:
19972: sed -e '/^func_basename ()$/,/^} # func_basename /c\
19973: func_basename ()\
19974: {\
19975: \ func_basename_result="${1##*/}"\
19976: } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
19977: && mv -f "$cfgfile.tmp" "$cfgfile" \
19978: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19979: test 0 -eq $? || _lt_function_replace_fail=:
19980:
19981:
19982: sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
19983: func_dirname_and_basename ()\
19984: {\
19985: \ case ${1} in\
19986: \ */*) func_dirname_result="${1%/*}${2}" ;;\
19987: \ * ) func_dirname_result="${3}" ;;\
19988: \ esac\
19989: \ func_basename_result="${1##*/}"\
19990: } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
19991: && mv -f "$cfgfile.tmp" "$cfgfile" \
19992: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19993: test 0 -eq $? || _lt_function_replace_fail=:
19994:
19995:
19996: sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
19997: func_stripname ()\
19998: {\
19999: \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20000: \ # positional parameters, so assign one to ordinary parameter first.\
20001: \ func_stripname_result=${3}\
20002: \ func_stripname_result=${func_stripname_result#"${1}"}\
20003: \ func_stripname_result=${func_stripname_result%"${2}"}\
20004: } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20005: && mv -f "$cfgfile.tmp" "$cfgfile" \
20006: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20007: test 0 -eq $? || _lt_function_replace_fail=:
20008:
20009:
20010: sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20011: func_split_long_opt ()\
20012: {\
20013: \ func_split_long_opt_name=${1%%=*}\
20014: \ func_split_long_opt_arg=${1#*=}\
20015: } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20016: && mv -f "$cfgfile.tmp" "$cfgfile" \
20017: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20018: test 0 -eq $? || _lt_function_replace_fail=:
20019:
20020:
20021: sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20022: func_split_short_opt ()\
20023: {\
20024: \ func_split_short_opt_arg=${1#??}\
20025: \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20026: } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20027: && mv -f "$cfgfile.tmp" "$cfgfile" \
20028: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20029: test 0 -eq $? || _lt_function_replace_fail=:
20030:
20031:
20032: sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20033: func_lo2o ()\
20034: {\
20035: \ case ${1} in\
20036: \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20037: \ *) func_lo2o_result=${1} ;;\
20038: \ esac\
20039: } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20040: && mv -f "$cfgfile.tmp" "$cfgfile" \
20041: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20042: test 0 -eq $? || _lt_function_replace_fail=:
20043:
20044:
20045: sed -e '/^func_xform ()$/,/^} # func_xform /c\
20046: func_xform ()\
20047: {\
20048: func_xform_result=${1%.*}.lo\
20049: } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20050: && mv -f "$cfgfile.tmp" "$cfgfile" \
20051: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20052: test 0 -eq $? || _lt_function_replace_fail=:
20053:
20054:
20055: sed -e '/^func_arith ()$/,/^} # func_arith /c\
20056: func_arith ()\
20057: {\
20058: func_arith_result=$(( $* ))\
20059: } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20060: && mv -f "$cfgfile.tmp" "$cfgfile" \
20061: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20062: test 0 -eq $? || _lt_function_replace_fail=:
20063:
20064:
20065: sed -e '/^func_len ()$/,/^} # func_len /c\
20066: func_len ()\
20067: {\
20068: func_len_result=${#1}\
20069: } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20070: && mv -f "$cfgfile.tmp" "$cfgfile" \
20071: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20072: test 0 -eq $? || _lt_function_replace_fail=:
20073:
20074: fi
20075:
20076: if test x"$lt_shell_append" = xyes; then
20077: sed -e '/^func_append ()$/,/^} # func_append /c\
20078: func_append ()\
20079: {\
20080: eval "${1}+=\\${2}"\
20081: } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20082: && mv -f "$cfgfile.tmp" "$cfgfile" \
20083: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20084: test 0 -eq $? || _lt_function_replace_fail=:
20085:
20086:
20087: sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20088: func_append_quoted ()\
20089: {\
20090: \ func_quote_for_eval "${2}"\
20091: \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20092: } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20093: && mv -f "$cfgfile.tmp" "$cfgfile" \
20094: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20095: test 0 -eq $? || _lt_function_replace_fail=:
20096:
20097:
20098: # Save a `func_append' function call where possible by direct use of '+='
20099: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20100: && mv -f "$cfgfile.tmp" "$cfgfile" \
20101: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20102: test 0 -eq $? || _lt_function_replace_fail=:
20103: else
20104: # Save a `func_append' function call even when '+=' is not available
20105: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20106: && mv -f "$cfgfile.tmp" "$cfgfile" \
20107: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20108: test 0 -eq $? || _lt_function_replace_fail=:
20109: fi
20110:
20111: if test x"$_lt_function_replace_fail" = x":"; then
20112: { echo "$as_me:$LINENO: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20113: echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
1.10 paf 20114: fi
20115:
1.16 paf 20116:
1.23 moko 20117: mv -f "$cfgfile" "$ofile" ||
20118: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20119: chmod +x "$ofile"
20120:
20121:
20122: cat <<_LT_EOF >> "$ofile"
20123:
20124: # ### BEGIN LIBTOOL TAG CONFIG: CXX
20125:
20126: # The linker used to build libraries.
20127: LD=$lt_LD_CXX
20128:
20129: # How to create reloadable object files.
20130: reload_flag=$lt_reload_flag_CXX
20131: reload_cmds=$lt_reload_cmds_CXX
20132:
20133: # Commands used to build an old-style archive.
20134: old_archive_cmds=$lt_old_archive_cmds_CXX
20135:
20136: # A language specific compiler.
20137: CC=$lt_compiler_CXX
20138:
20139: # Is the compiler the GNU compiler?
20140: with_gcc=$GCC_CXX
20141:
20142: # Compiler flag to turn off builtin functions.
20143: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20144:
20145: # Additional compiler flags for building library objects.
20146: pic_flag=$lt_lt_prog_compiler_pic_CXX
20147:
20148: # How to pass a linker flag through the compiler.
20149: wl=$lt_lt_prog_compiler_wl_CXX
20150:
20151: # Compiler flag to prevent dynamic linking.
20152: link_static_flag=$lt_lt_prog_compiler_static_CXX
20153:
20154: # Does compiler simultaneously support -c and -o options?
20155: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20156:
20157: # Whether or not to add -lc for building shared libraries.
20158: build_libtool_need_lc=$archive_cmds_need_lc_CXX
20159:
20160: # Whether or not to disallow shared libs when runtime libs are static.
20161: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20162:
20163: # Compiler flag to allow reflexive dlopens.
20164: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20165:
20166: # Compiler flag to generate shared objects directly from archives.
20167: whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20168:
20169: # Whether the compiler copes with passing no objects directly.
20170: compiler_needs_object=$lt_compiler_needs_object_CXX
20171:
20172: # Create an old-style archive from a shared archive.
20173: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20174:
20175: # Create a temporary old-style archive to link instead of a shared archive.
20176: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20177:
20178: # Commands used to build a shared archive.
20179: archive_cmds=$lt_archive_cmds_CXX
20180: archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20181:
20182: # Commands used to build a loadable module if different from building
20183: # a shared archive.
20184: module_cmds=$lt_module_cmds_CXX
20185: module_expsym_cmds=$lt_module_expsym_cmds_CXX
20186:
20187: # Whether we are building with GNU ld or not.
20188: with_gnu_ld=$lt_with_gnu_ld_CXX
20189:
20190: # Flag that allows shared libraries with undefined symbols to be built.
20191: allow_undefined_flag=$lt_allow_undefined_flag_CXX
20192:
20193: # Flag that enforces no undefined symbols.
20194: no_undefined_flag=$lt_no_undefined_flag_CXX
20195:
20196: # Flag to hardcode \$libdir into a binary during linking.
20197: # This must work even if \$libdir does not exist
20198: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20199:
20200: # Whether we need a single "-rpath" flag with a separated argument.
20201: hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20202:
20203: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20204: # DIR into the resulting binary.
20205: hardcode_direct=$hardcode_direct_CXX
20206:
20207: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20208: # DIR into the resulting binary and the resulting library dependency is
20209: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20210: # library is relocated.
20211: hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20212:
20213: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20214: # into the resulting binary.
20215: hardcode_minus_L=$hardcode_minus_L_CXX
20216:
20217: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20218: # into the resulting binary.
20219: hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20220:
20221: # Set to "yes" if building a shared library automatically hardcodes DIR
20222: # into the library and all subsequent libraries and executables linked
20223: # against it.
20224: hardcode_automatic=$hardcode_automatic_CXX
20225:
20226: # Set to yes if linker adds runtime paths of dependent libraries
20227: # to runtime path list.
20228: inherit_rpath=$inherit_rpath_CXX
20229:
20230: # Whether libtool must link a program against all its dependency libraries.
20231: link_all_deplibs=$link_all_deplibs_CXX
20232:
20233: # Set to "yes" if exported symbols are required.
20234: always_export_symbols=$always_export_symbols_CXX
20235:
20236: # The commands to list exported symbols.
20237: export_symbols_cmds=$lt_export_symbols_cmds_CXX
20238:
20239: # Symbols that should not be listed in the preloaded symbols.
20240: exclude_expsyms=$lt_exclude_expsyms_CXX
20241:
20242: # Symbols that must always be exported.
20243: include_expsyms=$lt_include_expsyms_CXX
20244:
20245: # Commands necessary for linking programs (against libraries) with templates.
20246: prelink_cmds=$lt_prelink_cmds_CXX
20247:
20248: # Commands necessary for finishing linking programs.
20249: postlink_cmds=$lt_postlink_cmds_CXX
20250:
20251: # Specify filename containing input files.
20252: file_list_spec=$lt_file_list_spec_CXX
20253:
20254: # How to hardcode a shared library path into an executable.
20255: hardcode_action=$hardcode_action_CXX
20256:
20257: # The directories searched by this compiler when creating a shared library.
20258: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
1.10 paf 20259:
1.23 moko 20260: # Dependencies to place before and after the objects being linked to
20261: # create a shared library.
20262: predep_objects=$lt_predep_objects_CXX
20263: postdep_objects=$lt_postdep_objects_CXX
20264: predeps=$lt_predeps_CXX
20265: postdeps=$lt_postdeps_CXX
20266:
20267: # The library search path used internally by the compiler when linking
20268: # a shared library.
20269: compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
1.10 paf 20270:
1.23 moko 20271: # ### END LIBTOOL TAG CONFIG: CXX
20272: _LT_EOF
1.1 parser 20273:
1.10 paf 20274: ;;
20275: esac
20276: done
20277: _ACEOF
1.1 parser 20278:
1.10 paf 20279: cat >>$CONFIG_STATUS <<\_ACEOF
1.1 parser 20280:
1.10 paf 20281: { (exit 0); exit 0; }
20282: _ACEOF
1.1 parser 20283: chmod +x $CONFIG_STATUS
1.10 paf 20284: ac_clean_files=$ac_clean_files_save
20285:
20286:
20287: # configure is writing to config.log, and then calls config.status.
20288: # config.status does its own redirection, appending to config.log.
20289: # Unfortunately, on DOS this fails, as config.log is still kept open
20290: # by configure, so config.status won't be able to write to it; its
20291: # output is simply discarded. So we exec the FD to /dev/null,
20292: # effectively closing config.log, so it can be properly (re)opened and
20293: # appended to by config.status. When coming back to configure, we
20294: # need to make the FD available again.
20295: if test "$no_create" != yes; then
20296: ac_cs_success=:
20297: ac_config_status_args=
20298: test "$silent" = yes &&
20299: ac_config_status_args="$ac_config_status_args --quiet"
20300: exec 5>/dev/null
20301: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20302: exec 5>>config.log
20303: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20304: # would make configure fail if this is the last instruction.
20305: $ac_cs_success || { (exit 1); exit 1; }
20306: fi
1.1 parser 20307:
1.10 paf 20308: #
20309: # CONFIG_SUBDIRS section.
20310: #
1.1 parser 20311: if test "$no_recursion" != yes; then
20312:
20313: # Remove --cache-file and --srcdir arguments so they do not pile up.
20314: ac_sub_configure_args=
20315: ac_prev=
20316: for ac_arg in $ac_configure_args; do
20317: if test -n "$ac_prev"; then
20318: ac_prev=
20319: continue
20320: fi
1.10 paf 20321: case $ac_arg in
1.1 parser 20322: -cache-file | --cache-file | --cache-fil | --cache-fi \
20323: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
20324: ac_prev=cache_file ;;
20325: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1.10 paf 20326: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
20327: | --c=*)
20328: ;;
20329: --config-cache | -C)
1.1 parser 20330: ;;
20331: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
20332: ac_prev=srcdir ;;
20333: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
20334: ;;
1.10 paf 20335: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
20336: ac_prev=prefix ;;
20337: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
20338: ;;
1.1 parser 20339: *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
20340: esac
20341: done
20342:
1.10 paf 20343: # Always prepend --prefix to ensure using the same prefix
20344: # in subdir configurations.
20345: ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
20346:
20347: ac_popdir=`pwd`
20348: for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
1.1 parser 20349:
20350: # Do not complain, so a configure script can configure whichever
20351: # parts of a large source tree are present.
1.10 paf 20352: test -d $srcdir/$ac_dir || continue
1.1 parser 20353:
1.10 paf 20354: { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
20355: echo "$as_me: configuring in $ac_dir" >&6;}
20356: { if $as_mkdir_p; then
20357: mkdir -p "$ac_dir"
20358: else
20359: as_dir="$ac_dir"
20360: as_dirs=
20361: while test ! -d "$as_dir"; do
20362: as_dirs="$as_dir $as_dirs"
20363: as_dir=`(dirname "$as_dir") 2>/dev/null ||
20364: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.16 paf 20365: X"$as_dir" : 'X\(//\)[^/]' \| \
20366: X"$as_dir" : 'X\(//\)$' \| \
20367: X"$as_dir" : 'X\(/\)' \| \
20368: . : '\(.\)' 2>/dev/null ||
1.10 paf 20369: echo X"$as_dir" |
20370: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20371: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20372: /^X\(\/\/\)$/{ s//\1/; q; }
20373: /^X\(\/\).*/{ s//\1/; q; }
20374: s/.*/./; q'`
20375: done
20376: test ! -n "$as_dirs" || mkdir $as_dirs
20377: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20378: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20379: { (exit 1); exit 1; }; }; }
20380:
20381: ac_builddir=.
20382:
20383: if test "$ac_dir" != .; then
20384: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20385: # A "../" for each directory in $ac_dir_suffix.
20386: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20387: else
20388: ac_dir_suffix= ac_top_builddir=
20389: fi
20390:
20391: case $srcdir in
20392: .) # No --srcdir option. We are building in place.
20393: ac_srcdir=.
20394: if test -z "$ac_top_builddir"; then
20395: ac_top_srcdir=.
20396: else
20397: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20398: fi ;;
20399: [\\/]* | ?:[\\/]* ) # Absolute path.
20400: ac_srcdir=$srcdir$ac_dir_suffix;
20401: ac_top_srcdir=$srcdir ;;
20402: *) # Relative path.
20403: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20404: ac_top_srcdir=$ac_top_builddir$srcdir ;;
20405: esac
1.16 paf 20406:
20407: # Do not use `cd foo && pwd` to compute absolute paths, because
20408: # the directories may not exist.
20409: case `pwd` in
20410: .) ac_abs_builddir="$ac_dir";;
20411: *)
20412: case "$ac_dir" in
20413: .) ac_abs_builddir=`pwd`;;
20414: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20415: *) ac_abs_builddir=`pwd`/"$ac_dir";;
20416: esac;;
20417: esac
20418: case $ac_abs_builddir in
20419: .) ac_abs_top_builddir=${ac_top_builddir}.;;
20420: *)
20421: case ${ac_top_builddir}. in
20422: .) ac_abs_top_builddir=$ac_abs_builddir;;
20423: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20424: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20425: esac;;
20426: esac
20427: case $ac_abs_builddir in
20428: .) ac_abs_srcdir=$ac_srcdir;;
20429: *)
20430: case $ac_srcdir in
20431: .) ac_abs_srcdir=$ac_abs_builddir;;
20432: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20433: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20434: esac;;
20435: esac
20436: case $ac_abs_builddir in
20437: .) ac_abs_top_srcdir=$ac_top_srcdir;;
20438: *)
20439: case $ac_top_srcdir in
20440: .) ac_abs_top_srcdir=$ac_abs_builddir;;
20441: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20442: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20443: esac;;
20444: esac
1.1 parser 20445:
20446:
1.10 paf 20447: cd $ac_dir
1.1 parser 20448:
20449: # Check for guested configure; otherwise get Cygnus style configure.
1.10 paf 20450: if test -f $ac_srcdir/configure.gnu; then
20451: ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
20452: elif test -f $ac_srcdir/configure; then
20453: ac_sub_configure="$SHELL '$ac_srcdir/configure'"
20454: elif test -f $ac_srcdir/configure.in; then
1.1 parser 20455: ac_sub_configure=$ac_configure
20456: else
1.10 paf 20457: { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
20458: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
1.1 parser 20459: ac_sub_configure=
20460: fi
20461:
20462: # The recursion is here.
20463: if test -n "$ac_sub_configure"; then
20464: # Make the cache file name correct relative to the subdirectory.
1.10 paf 20465: case $cache_file in
20466: [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
1.1 parser 20467: *) # Relative path.
1.16 paf 20468: ac_sub_cache_file=$ac_top_builddir$cache_file ;;
1.1 parser 20469: esac
20470:
1.10 paf 20471: { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
20472: echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
1.1 parser 20473: # The eval makes quoting arguments work.
1.10 paf 20474: eval $ac_sub_configure $ac_sub_configure_args \
1.16 paf 20475: --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
20476: { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
1.10 paf 20477: echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
20478: { (exit 1); exit 1; }; }
1.1 parser 20479: fi
20480:
20481: cd $ac_popdir
20482: done
20483: fi
20484:
E-mail: