Annotation of sql/mysql/configure, revision 1.42
1.1 parser 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.36 moko 3: # Generated by GNU Autoconf 2.59 for parser3mysql.C 10.3.
1.1 parser 4: #
1.25 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.15 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.25 paf 22: DUALCASE=1; export DUALCASE # for MKS sh
1.15 paf 23:
24: # Support unset when possible.
1.25 paf 25: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
1.15 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.25 paf 44: if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
1.15 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.25 paf 221: test -d ./-p && rmdir ./-p
1.15 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.25 paf 228: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.15 paf 229:
230: # Sed expression to map a string onto a valid variable name.
1.25 paf 231: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.15 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.36 moko 243: lt_ltdl_dir='libltdl'
244:
1.15 paf 245: SHELL=${CONFIG_SHELL-/bin/sh}
246:
1.35 moko 247: lt_dlopen_dir="$lt_ltdl_dir"
1.15 paf 248:
1.1 parser 249:
1.15 paf 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`
254:
255: exec 6>&1
256:
257: #
258: # Initializations.
259: #
1.1 parser 260: ac_default_prefix=/usr/local
1.15 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.36 moko 274: PACKAGE_NAME='parser3mysql.C'
275: PACKAGE_TARNAME='parser3mysql-c'
276: PACKAGE_VERSION='10.3'
277: PACKAGE_STRING='parser3mysql.C 10.3'
278: PACKAGE_BUGREPORT=''
1.15 paf 279:
280: ac_unique_file="parser3mysql.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.39 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 MYSQL_INC CXX CXXFLAGS LDFLAGS 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.15 paf 320: ac_subst_files=''
1.1 parser 321:
322: # Initialize some variables set by options.
1.15 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.15 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.15 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.15 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.15 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.15 paf 379: bindir=$ac_optarg ;;
1.1 parser 380:
381: -build | --build | --buil | --bui | --bu)
1.15 paf 382: ac_prev=build_alias ;;
1.1 parser 383: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1.15 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.15 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.15 paf 400: datadir=$ac_optarg ;;
1.1 parser 401:
402: -disable-* | --disable-*)
1.15 paf 403: ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1 parser 404: # Reject names that are not valid shell variable names.
1.15 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.15 paf 412: ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1 parser 413: # Reject names that are not valid shell variable names.
1.15 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.15 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.15 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.15 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.15 paf 445: ac_prev=host_alias ;;
1.1 parser 446: -host=* | --host=* | --hos=* | --ho=*)
1.15 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.15 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.15 paf 459: infodir=$ac_optarg ;;
1.1 parser 460:
461: -libdir | --libdir | --libdi | --libd)
462: ac_prev=libdir ;;
463: -libdir=* | --libdir=* | --libdi=* | --libd=*)
1.15 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.15 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.15 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.15 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.15 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.15 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.15 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.15 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.15 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.15 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.15 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.15 paf 563: sharedstatedir=$ac_optarg ;;
1.1 parser 564:
565: -site | --site | --sit)
566: ac_prev=site ;;
567: -site=* | --site=* | --sit=*)
1.15 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.15 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.15 paf 580: sysconfdir=$ac_optarg ;;
1.1 parser 581:
582: -target | --target | --targe | --targ | --tar | --ta | --t)
1.15 paf 583: ac_prev=target_alias ;;
1.1 parser 584: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1.15 paf 585: target_alias=$ac_optarg ;;
1.1 parser 586:
587: -v | -verbose | --verbose | --verbos | --verbo | --verb)
588: verbose=yes ;;
589:
1.15 paf 590: -version | --version | --versio | --versi | --vers | -V)
591: ac_init_version=: ;;
1.1 parser 592:
593: -with-* | --with-*)
1.15 paf 594: ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1 parser 595: # Reject names that are not valid shell variable names.
1.15 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.15 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.15 paf 604: eval "with_$ac_package='$ac_optarg'" ;;
1.1 parser 605:
606: -without-* | --without-*)
1.15 paf 607: ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1 parser 608: # Reject names that are not valid shell variable names.
1.15 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.15 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.15 paf 631: x_libraries=$ac_optarg ;;
1.1 parser 632:
1.15 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.15 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.15 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.15 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.15 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.15 paf 676: # Be sure to have absolute paths.
677: for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
1.25 paf 678: localstatedir libdir includedir oldincludedir infodir mandir
1.1 parser 679: do
1.15 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.15 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.15 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.15 paf 716: ac_confdir=`(dirname "$0") 2>/dev/null ||
717: $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.25 paf 718: X"$0" : 'X\(//\)[^/]' \| \
719: X"$0" : 'X\(//\)$' \| \
720: X"$0" : 'X\(/\)' \| \
721: . : '\(.\)' 2>/dev/null ||
1.15 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.15 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.15 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.15 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.24 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.35 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.15 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.36 moko 800: \`configure' configures parser3mysql.C 10.3 to adapt to many kinds of systems.
1.15 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.25 paf 825: [$ac_default_prefix]
1.15 paf 826: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1.25 paf 827: [PREFIX]
1.15 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.36 moko 865: case $ac_init_help in
866: short | recursive ) echo "Configuration of parser3mysql.C 10.3:";;
867: esac
1.15 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.25 paf 873: --disable-dependency-tracking speeds up one-time build
874: --enable-dependency-tracking do not reject slow dependency extractors
1.42 ! moko 875: --enable-static[=PKGS]
! 876: build static libraries [default=no]
1.35 moko 877: --enable-shared[=PKGS]
878: build shared libraries [default=yes]
879: --enable-fast-install[=PKGS]
880: optimize for fast installation [default=yes]
1.15 paf 881: --disable-libtool-lock avoid locking (might break parallel builds)
1.35 moko 882: --enable-ltdl-install install libltdl
1.15 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)
887: --with-mysql-inc=DIR DIR is the MySQL includes directory
1.35 moko 888: --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
889: both]
890: --with-gnu-ld assume the C compiler uses GNU ld [default=no]
891: --with-sysroot=DIR Search for dependent libraries within DIR
892: (or the compiler's sysroot if not specified).
893: --with-included-ltdl use the GNU ltdl sources included here
894: --with-ltdl-include=DIR use the ltdl headers installed in DIR
895: --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1.15 paf 896:
897: Some influential environment variables:
898: CXX C++ compiler command
899: CXXFLAGS C++ compiler flags
900: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
901: nonstandard directory <lib dir>
902: CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
903: headers in a nonstandard directory <include dir>
904: CC C compiler command
905: CFLAGS C compiler flags
1.24 paf 906: CPP C preprocessor
1.35 moko 907: CXXCPP C++ preprocessor
1.15 paf 908:
909: Use these variables to override the choices made by `configure' or to help
910: it to find libraries and programs with nonstandard names/locations.
911:
912: _ACEOF
913: fi
914:
915: if test "$ac_init_help" = "recursive"; then
916: # If there are subdirs, report their specific --help.
917: ac_popdir=`pwd`
918: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
919: test -d $ac_dir || continue
920: ac_builddir=.
921:
922: if test "$ac_dir" != .; then
923: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
924: # A "../" for each directory in $ac_dir_suffix.
925: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
926: else
927: ac_dir_suffix= ac_top_builddir=
928: fi
929:
930: case $srcdir in
931: .) # No --srcdir option. We are building in place.
932: ac_srcdir=.
933: if test -z "$ac_top_builddir"; then
934: ac_top_srcdir=.
935: else
936: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
937: fi ;;
938: [\\/]* | ?:[\\/]* ) # Absolute path.
939: ac_srcdir=$srcdir$ac_dir_suffix;
940: ac_top_srcdir=$srcdir ;;
941: *) # Relative path.
942: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
943: ac_top_srcdir=$ac_top_builddir$srcdir ;;
944: esac
1.25 paf 945:
946: # Do not use `cd foo && pwd` to compute absolute paths, because
947: # the directories may not exist.
948: case `pwd` in
949: .) ac_abs_builddir="$ac_dir";;
950: *)
951: case "$ac_dir" in
952: .) ac_abs_builddir=`pwd`;;
953: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
954: *) ac_abs_builddir=`pwd`/"$ac_dir";;
955: esac;;
956: esac
957: case $ac_abs_builddir in
958: .) ac_abs_top_builddir=${ac_top_builddir}.;;
959: *)
960: case ${ac_top_builddir}. in
961: .) ac_abs_top_builddir=$ac_abs_builddir;;
962: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
963: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
964: esac;;
965: esac
966: case $ac_abs_builddir in
967: .) ac_abs_srcdir=$ac_srcdir;;
968: *)
969: case $ac_srcdir in
970: .) ac_abs_srcdir=$ac_abs_builddir;;
971: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
972: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
973: esac;;
974: esac
975: case $ac_abs_builddir in
976: .) ac_abs_top_srcdir=$ac_top_srcdir;;
977: *)
978: case $ac_top_srcdir in
979: .) ac_abs_top_srcdir=$ac_abs_builddir;;
980: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
981: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
982: esac;;
983: esac
1.15 paf 984:
985: cd $ac_dir
986: # Check for guested configure; otherwise get Cygnus style configure.
987: if test -f $ac_srcdir/configure.gnu; then
988: echo
989: $SHELL $ac_srcdir/configure.gnu --help=recursive
990: elif test -f $ac_srcdir/configure; then
991: echo
992: $SHELL $ac_srcdir/configure --help=recursive
993: elif test -f $ac_srcdir/configure.ac ||
1.25 paf 994: test -f $ac_srcdir/configure.in; then
1.15 paf 995: echo
996: $ac_configure --help
997: else
998: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
999: fi
1000: cd $ac_popdir
1001: done
1002: fi
1003:
1004: test -n "$ac_init_help" && exit 0
1005: if $ac_init_version; then
1006: cat <<\_ACEOF
1.36 moko 1007: parser3mysql.C configure 10.3
1008: generated by GNU Autoconf 2.59
1.15 paf 1009:
1.25 paf 1010: Copyright (C) 2003 Free Software Foundation, Inc.
1.15 paf 1011: This configure script is free software; the Free Software Foundation
1012: gives unlimited permission to copy, distribute and modify it.
1013: _ACEOF
1014: exit 0
1015: fi
1016: exec 5>config.log
1017: cat >&5 <<_ACEOF
1018: This file contains any messages produced by compilers while
1019: running configure, to aid debugging if configure makes a mistake.
1020:
1.36 moko 1021: It was created by parser3mysql.C $as_me 10.3, which was
1.25 paf 1022: generated by GNU Autoconf 2.59. Invocation command line was
1.15 paf 1023:
1024: $ $0 $@
1025:
1026: _ACEOF
1027: {
1028: cat <<_ASUNAME
1029: ## --------- ##
1030: ## Platform. ##
1031: ## --------- ##
1032:
1033: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1034: uname -m = `(uname -m) 2>/dev/null || echo unknown`
1035: uname -r = `(uname -r) 2>/dev/null || echo unknown`
1036: uname -s = `(uname -s) 2>/dev/null || echo unknown`
1037: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1038:
1039: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1040: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1041:
1042: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1043: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1044: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1045: hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1046: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1047: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1048: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1049:
1050: _ASUNAME
1051:
1052: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1053: for as_dir in $PATH
1054: do
1055: IFS=$as_save_IFS
1056: test -z "$as_dir" && as_dir=.
1057: echo "PATH: $as_dir"
1058: done
1059:
1060: } >&5
1061:
1062: cat >&5 <<_ACEOF
1063:
1064:
1065: ## ----------- ##
1066: ## Core tests. ##
1067: ## ----------- ##
1068:
1069: _ACEOF
1070:
1071:
1072: # Keep a trace of the command line.
1073: # Strip out --no-create and --no-recursion so they do not pile up.
1074: # Strip out --silent because we don't want to record it for future runs.
1075: # Also quote any args containing shell meta-characters.
1076: # Make two passes to allow for proper duplicate-argument suppression.
1077: ac_configure_args=
1078: ac_configure_args0=
1079: ac_configure_args1=
1080: ac_sep=
1081: ac_must_keep_next=false
1082: for ac_pass in 1 2
1083: do
1084: for ac_arg
1085: do
1086: case $ac_arg in
1087: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1088: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1089: | -silent | --silent | --silen | --sile | --sil)
1090: continue ;;
1091: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1092: ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1093: esac
1094: case $ac_pass in
1095: 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1096: 2)
1097: ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1098: if test $ac_must_keep_next = true; then
1.25 paf 1099: ac_must_keep_next=false # Got value, back to normal.
1.15 paf 1100: else
1.25 paf 1101: case $ac_arg in
1102: *=* | --config-cache | -C | -disable-* | --disable-* \
1103: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1104: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1105: | -with-* | --with-* | -without-* | --without-* | --x)
1106: case "$ac_configure_args0 " in
1107: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1108: esac
1109: ;;
1110: -* ) ac_must_keep_next=true ;;
1111: esac
1.15 paf 1112: fi
1113: ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1114: # Get rid of the leading space.
1115: ac_sep=" "
1116: ;;
1117: esac
1118: done
1119: done
1120: $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1121: $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1122:
1123: # When interrupted or exit'd, cleanup temporary files, and complete
1124: # config.log. We remove comments because anyway the quotes in there
1125: # would cause problems or look ugly.
1126: # WARNING: Be sure not to use single quotes in there, as some shells,
1127: # such as our DU 5.0 friend, will then `close' the trap.
1128: trap 'exit_status=$?
1129: # Save into config.log some information that might help in debugging.
1130: {
1131: echo
1132:
1133: cat <<\_ASBOX
1134: ## ---------------- ##
1135: ## Cache variables. ##
1136: ## ---------------- ##
1137: _ASBOX
1138: echo
1139: # The following way of writing the cache mishandles newlines in values,
1140: {
1141: (set) 2>&1 |
1142: case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1143: *ac_space=\ *)
1144: sed -n \
1.25 paf 1145: "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1146: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1.15 paf 1147: ;;
1148: *)
1149: sed -n \
1.25 paf 1150: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1.15 paf 1151: ;;
1152: esac;
1153: }
1154: echo
1155:
1156: cat <<\_ASBOX
1157: ## ----------------- ##
1158: ## Output variables. ##
1159: ## ----------------- ##
1160: _ASBOX
1161: echo
1162: for ac_var in $ac_subst_vars
1163: do
1164: eval ac_val=$`echo $ac_var`
1165: echo "$ac_var='"'"'$ac_val'"'"'"
1166: done | sort
1167: echo
1168:
1169: if test -n "$ac_subst_files"; then
1170: cat <<\_ASBOX
1171: ## ------------- ##
1172: ## Output files. ##
1173: ## ------------- ##
1174: _ASBOX
1175: echo
1176: for ac_var in $ac_subst_files
1177: do
1178: eval ac_val=$`echo $ac_var`
1.25 paf 1179: echo "$ac_var='"'"'$ac_val'"'"'"
1.15 paf 1180: done | sort
1181: echo
1182: fi
1183:
1184: if test -s confdefs.h; then
1185: cat <<\_ASBOX
1186: ## ----------- ##
1187: ## confdefs.h. ##
1188: ## ----------- ##
1189: _ASBOX
1190: echo
1191: sed "/^$/d" confdefs.h | sort
1192: echo
1193: fi
1194: test "$ac_signal" != 0 &&
1195: echo "$as_me: caught signal $ac_signal"
1196: echo "$as_me: exit $exit_status"
1197: } >&5
1.25 paf 1198: rm -f core *.core &&
1.15 paf 1199: rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1200: exit $exit_status
1201: ' 0
1202: for ac_signal in 1 2 13 15; do
1203: trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1204: done
1205: ac_signal=0
1206:
1207: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1208: rm -rf conftest* confdefs.h
1209: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1210: echo >confdefs.h
1211:
1212: # Predefined preprocessor variables.
1213:
1214: cat >>confdefs.h <<_ACEOF
1215: #define PACKAGE_NAME "$PACKAGE_NAME"
1216: _ACEOF
1217:
1218:
1219: cat >>confdefs.h <<_ACEOF
1220: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1221: _ACEOF
1222:
1223:
1224: cat >>confdefs.h <<_ACEOF
1225: #define PACKAGE_VERSION "$PACKAGE_VERSION"
1226: _ACEOF
1.1 parser 1227:
1.15 paf 1228:
1229: cat >>confdefs.h <<_ACEOF
1230: #define PACKAGE_STRING "$PACKAGE_STRING"
1231: _ACEOF
1232:
1233:
1234: cat >>confdefs.h <<_ACEOF
1235: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1236: _ACEOF
1237:
1238:
1239: # Let the site file select an alternate cache file if it wants to.
1.1 parser 1240: # Prefer explicitly selected file to automatically selected ones.
1241: if test -z "$CONFIG_SITE"; then
1242: if test "x$prefix" != xNONE; then
1243: CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1244: else
1245: CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1246: fi
1247: fi
1248: for ac_site_file in $CONFIG_SITE; do
1249: if test -r "$ac_site_file"; then
1.15 paf 1250: { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1251: echo "$as_me: loading site script $ac_site_file" >&6;}
1252: sed 's/^/| /' "$ac_site_file" >&5
1.1 parser 1253: . "$ac_site_file"
1254: fi
1255: done
1256:
1257: if test -r "$cache_file"; then
1.15 paf 1258: # Some versions of bash will fail to source /dev/null (special
1259: # files actually), so we avoid doing that.
1260: if test -f "$cache_file"; then
1261: { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1262: echo "$as_me: loading cache $cache_file" >&6;}
1263: case $cache_file in
1264: [\\/]* | ?:[\\/]* ) . $cache_file;;
1265: *) . ./$cache_file;;
1266: esac
1267: fi
1.1 parser 1268: else
1.15 paf 1269: { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1270: echo "$as_me: creating cache $cache_file" >&6;}
1271: >$cache_file
1272: fi
1273:
1274: # Check that the precious variables saved in the cache have kept the same
1275: # value.
1276: ac_cache_corrupted=false
1277: for ac_var in `(set) 2>&1 |
1.25 paf 1278: sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1.15 paf 1279: eval ac_old_set=\$ac_cv_env_${ac_var}_set
1280: eval ac_new_set=\$ac_env_${ac_var}_set
1281: eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1282: eval ac_new_val="\$ac_env_${ac_var}_value"
1283: case $ac_old_set,$ac_new_set in
1284: set,)
1285: { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1286: echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1287: ac_cache_corrupted=: ;;
1288: ,set)
1289: { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1290: echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1291: ac_cache_corrupted=: ;;
1292: ,);;
1293: *)
1294: if test "x$ac_old_val" != "x$ac_new_val"; then
1.25 paf 1295: { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1.15 paf 1296: echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1.25 paf 1297: { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1.15 paf 1298: echo "$as_me: former value: $ac_old_val" >&2;}
1.25 paf 1299: { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1.15 paf 1300: echo "$as_me: current value: $ac_new_val" >&2;}
1.25 paf 1301: ac_cache_corrupted=:
1.15 paf 1302: fi;;
1303: esac
1304: # Pass precious variables to config.status.
1305: if test "$ac_new_set" = set; then
1306: case $ac_new_val in
1307: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1308: ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1309: *) ac_arg=$ac_var=$ac_new_val ;;
1310: esac
1311: case " $ac_configure_args " in
1312: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1313: *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1314: esac
1315: fi
1316: done
1317: if $ac_cache_corrupted; then
1318: { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1319: echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1320: { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1321: echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1322: { (exit 1); exit 1; }; }
1.1 parser 1323: fi
1324:
1325: ac_ext=c
1326: ac_cpp='$CPP $CPPFLAGS'
1.15 paf 1327: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1328: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1329: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1330:
1331:
1332:
1333:
1334:
1335:
1336:
1337:
1338:
1339:
1340:
1341:
1342:
1343:
1344:
1345:
1346:
1347:
1348:
1.1 parser 1349:
1350:
1.36 moko 1351:
1352:
1353:
1354:
1355:
1356:
1357:
1358: ac_config_headers="$ac_config_headers config_auto.h"
1359:
1360:
1.25 paf 1361: am__api_version="1.9"
1.1 parser 1362: ac_aux_dir=
1363: for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1364: if test -f $ac_dir/install-sh; then
1365: ac_aux_dir=$ac_dir
1366: ac_install_sh="$ac_aux_dir/install-sh -c"
1367: break
1368: elif test -f $ac_dir/install.sh; then
1369: ac_aux_dir=$ac_dir
1370: ac_install_sh="$ac_aux_dir/install.sh -c"
1371: break
1.15 paf 1372: elif test -f $ac_dir/shtool; then
1373: ac_aux_dir=$ac_dir
1374: ac_install_sh="$ac_aux_dir/shtool install -c"
1375: break
1.1 parser 1376: fi
1377: done
1378: if test -z "$ac_aux_dir"; then
1.15 paf 1379: { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1380: echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1381: { (exit 1); exit 1; }; }
1382: fi
1383: ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1384: ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1385: ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1.1 parser 1386:
1387: # Find a good install program. We prefer a C program (faster),
1388: # so one script is as good as another. But avoid the broken or
1389: # incompatible versions:
1390: # SysV /etc/install, /usr/sbin/install
1391: # SunOS /usr/etc/install
1392: # IRIX /sbin/install
1393: # AIX /bin/install
1.15 paf 1394: # AmigaOS /C/install, which installs bootblocks on floppy discs
1.1 parser 1395: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1396: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1397: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1.25 paf 1398: # OS/2's system install, which has a completely different semantic
1.1 parser 1399: # ./install, which can be erroneously created by make from ./install.sh.
1.15 paf 1400: echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1401: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1.1 parser 1402: if test -z "$INSTALL"; then
1.15 paf 1403: if test "${ac_cv_path_install+set}" = set; then
1404: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 1405: else
1.15 paf 1406: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1407: for as_dir in $PATH
1408: do
1409: IFS=$as_save_IFS
1410: test -z "$as_dir" && as_dir=.
1411: # Account for people who put trailing slashes in PATH elements.
1412: case $as_dir/ in
1413: ./ | .// | /cC/* | \
1414: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.25 paf 1415: ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1.15 paf 1416: /usr/ucb/* ) ;;
1417: *)
1418: # OSF1 and SCO ODT 3.0 have their own names for install.
1419: # Don't use installbsd from OSF since it installs stuff as root
1420: # by default.
1421: for ac_prog in ginstall scoinst install; do
1422: for ac_exec_ext in '' $ac_executable_extensions; do
1.25 paf 1423: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1424: if test $ac_prog = install &&
1425: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1426: # AIX install. It has an incompatible calling convention.
1427: :
1428: elif test $ac_prog = install &&
1429: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1430: # program-specific install script used by HP pwplus--don't use.
1431: :
1432: else
1433: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1434: break 3
1435: fi
1436: fi
1.1 parser 1437: done
1.15 paf 1438: done
1439: ;;
1440: esac
1441: done
1442:
1.1 parser 1443:
1444: fi
1445: if test "${ac_cv_path_install+set}" = set; then
1.15 paf 1446: INSTALL=$ac_cv_path_install
1.1 parser 1447: else
1448: # As a last resort, use the slow shell script. We don't cache a
1449: # path for INSTALL within a source directory, because that will
1450: # break other packages using the cache if that directory is
1451: # removed, or if the path is relative.
1.15 paf 1452: INSTALL=$ac_install_sh
1.1 parser 1453: fi
1454: fi
1.15 paf 1455: echo "$as_me:$LINENO: result: $INSTALL" >&5
1456: echo "${ECHO_T}$INSTALL" >&6
1.1 parser 1457:
1458: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1459: # It thinks the first close brace ends the variable substitution.
1460: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1461:
1.15 paf 1462: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.1 parser 1463:
1464: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1465:
1.15 paf 1466: echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1467: echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1.1 parser 1468: # Just in case
1469: sleep 1
1.15 paf 1470: echo timestamp > conftest.file
1.1 parser 1471: # Do `set' in a subshell so we don't clobber the current shell's
1472: # arguments. Must try -L first in case configure is actually a
1473: # symlink; some systems play weird games with the mod time of symlinks
1474: # (eg FreeBSD returns the mod time of the symlink's containing
1475: # directory).
1476: if (
1.15 paf 1477: set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1.1 parser 1478: if test "$*" = "X"; then
1479: # -L didn't work.
1.15 paf 1480: set X `ls -t $srcdir/configure conftest.file`
1.1 parser 1481: fi
1.15 paf 1482: rm -f conftest.file
1483: if test "$*" != "X $srcdir/configure conftest.file" \
1484: && test "$*" != "X conftest.file $srcdir/configure"; then
1.1 parser 1485:
1486: # If neither matched, then we have a broken ls. This can happen
1487: # if, for instance, CONFIG_SHELL is bash and it inherits a
1488: # broken ls alias from the environment. This has actually
1489: # happened. Such a system could not be considered "sane".
1.15 paf 1490: { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1491: alias in your environment" >&5
1492: echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1493: alias in your environment" >&2;}
1494: { (exit 1); exit 1; }; }
1.1 parser 1495: fi
1496:
1.15 paf 1497: test "$2" = conftest.file
1.1 parser 1498: )
1499: then
1500: # Ok.
1501: :
1502: else
1.15 paf 1503: { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1504: Check your system clock" >&5
1505: echo "$as_me: error: newly created file is older than distributed files!
1506: Check your system clock" >&2;}
1507: { (exit 1); exit 1; }; }
1.1 parser 1508: fi
1.15 paf 1509: echo "$as_me:$LINENO: result: yes" >&5
1510: echo "${ECHO_T}yes" >&6
1.1 parser 1511: test "$program_prefix" != NONE &&
1.15 paf 1512: program_transform_name="s,^,$program_prefix,;$program_transform_name"
1.1 parser 1513: # Use a double $ so make ignores it.
1514: test "$program_suffix" != NONE &&
1.15 paf 1515: program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1516: # Double any \ or $. echo might interpret backslashes.
1517: # By default was `s,x,x', remove it if useless.
1518: cat <<\_ACEOF >conftest.sed
1519: s/[\\$]/&&/g;s/;s,x,x,$//
1520: _ACEOF
1521: program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1522: rm conftest.sed
1523:
1524: # expand $ac_aux_dir to an absolute path
1525: am_aux_dir=`cd $ac_aux_dir && pwd`
1526:
1527: test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1528: # Use eval to expand $SHELL
1529: if eval "$MISSING --run true"; then
1530: am_missing_run="$MISSING --run "
1531: else
1532: am_missing_run=
1533: { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1534: echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1535: fi
1536:
1.25 paf 1537: if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1538: # We used to keeping the `.' as first argument, in order to
1539: # allow $(mkdir_p) to be used without argument. As in
1540: # $(mkdir_p) $(somedir)
1541: # where $(somedir) is conditionally defined. However this is wrong
1542: # for two reasons:
1543: # 1. if the package is installed by a user who cannot write `.'
1544: # make install will fail,
1545: # 2. the above comment should most certainly read
1546: # $(mkdir_p) $(DESTDIR)$(somedir)
1547: # so it does not work when $(somedir) is undefined and
1548: # $(DESTDIR) is not.
1549: # To support the latter case, we have to write
1550: # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1551: # so the `.' trick is pointless.
1552: mkdir_p='mkdir -p --'
1553: else
1554: # On NextStep and OpenStep, the `mkdir' command does not
1555: # recognize any option. It will interpret all options as
1556: # directories to create, and then abort because `.' already
1557: # exists.
1558: for d in ./-p ./--version;
1559: do
1560: test -d $d && rmdir $d
1561: done
1562: # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1563: if test -f "$ac_aux_dir/mkinstalldirs"; then
1564: mkdir_p='$(mkinstalldirs)'
1565: else
1566: mkdir_p='$(install_sh) -d'
1567: fi
1568: fi
1569:
1.15 paf 1570: for ac_prog in gawk mawk nawk awk
1571: do
1572: # Extract the first word of "$ac_prog", so it can be a program name with args.
1573: set dummy $ac_prog; ac_word=$2
1574: echo "$as_me:$LINENO: checking for $ac_word" >&5
1575: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1576: if test "${ac_cv_prog_AWK+set}" = set; then
1577: echo $ECHO_N "(cached) $ECHO_C" >&6
1578: else
1579: if test -n "$AWK"; then
1580: ac_cv_prog_AWK="$AWK" # Let the user override the test.
1581: else
1582: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1583: for as_dir in $PATH
1584: do
1585: IFS=$as_save_IFS
1586: test -z "$as_dir" && as_dir=.
1587: for ac_exec_ext in '' $ac_executable_extensions; do
1588: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1589: ac_cv_prog_AWK="$ac_prog"
1590: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1591: break 2
1592: fi
1593: done
1594: done
1595:
1596: fi
1597: fi
1598: AWK=$ac_cv_prog_AWK
1599: if test -n "$AWK"; then
1600: echo "$as_me:$LINENO: result: $AWK" >&5
1601: echo "${ECHO_T}$AWK" >&6
1602: else
1603: echo "$as_me:$LINENO: result: no" >&5
1604: echo "${ECHO_T}no" >&6
1605: fi
1.1 parser 1606:
1.15 paf 1607: test -n "$AWK" && break
1608: done
1.1 parser 1609:
1.15 paf 1610: echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1611: echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1.25 paf 1612: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1.15 paf 1613: if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1614: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 1615: else
1.15 paf 1616: cat >conftest.make <<\_ACEOF
1.1 parser 1617: all:
1.15 paf 1618: @echo 'ac_maketemp="$(MAKE)"'
1619: _ACEOF
1.1 parser 1620: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1.15 paf 1621: eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1.1 parser 1622: if test -n "$ac_maketemp"; then
1623: eval ac_cv_prog_make_${ac_make}_set=yes
1624: else
1625: eval ac_cv_prog_make_${ac_make}_set=no
1626: fi
1.15 paf 1627: rm -f conftest.make
1.1 parser 1628: fi
1629: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1.15 paf 1630: echo "$as_me:$LINENO: result: yes" >&5
1631: echo "${ECHO_T}yes" >&6
1.1 parser 1632: SET_MAKE=
1633: else
1.15 paf 1634: echo "$as_me:$LINENO: result: no" >&5
1635: echo "${ECHO_T}no" >&6
1.1 parser 1636: SET_MAKE="MAKE=${MAKE-make}"
1637: fi
1638:
1.25 paf 1639: rm -rf .tst 2>/dev/null
1640: mkdir .tst 2>/dev/null
1641: if test -d .tst; then
1642: am__leading_dot=.
1643: else
1644: am__leading_dot=_
1645: fi
1646: rmdir .tst 2>/dev/null
1647:
1648: # test to see if srcdir already configured
1.15 paf 1649: if test "`cd $srcdir && pwd`" != "`pwd`" &&
1650: test -f $srcdir/config.status; then
1651: { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1652: echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1653: { (exit 1); exit 1; }; }
1654: fi
1655:
1656: # test whether we have cygpath
1657: if test -z "$CYGPATH_W"; then
1658: if (cygpath --version) >/dev/null 2>/dev/null; then
1659: CYGPATH_W='cygpath -w'
1660: else
1661: CYGPATH_W=echo
1662: fi
1663: fi
1664:
1665:
1666: # Define the identity of the package.
1.36 moko 1667: PACKAGE='parser3mysql-c'
1668: VERSION='10.3'
1.15 paf 1669:
1670:
1.36 moko 1671: cat >>confdefs.h <<_ACEOF
1672: #define PACKAGE "$PACKAGE"
1673: _ACEOF
1674:
1675:
1676: cat >>confdefs.h <<_ACEOF
1677: #define VERSION "$VERSION"
1678: _ACEOF
1679:
1.15 paf 1680: # Some tools Automake needs.
1681:
1682: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1683:
1684:
1685: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1.1 parser 1686:
1687:
1.15 paf 1688: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1689:
1690:
1691: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1692:
1693:
1694: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1.1 parser 1695:
1.15 paf 1696: install_sh=${install_sh-"$am_aux_dir/install-sh"}
1.1 parser 1697:
1.15 paf 1698: # Installed binaries are usually stripped using `strip' when the user
1699: # run `make install-strip'. However `strip' might not be the right
1700: # tool to use in cross-compilation environments, therefore Automake
1701: # will honor the `STRIP' environment variable to overrule this program.
1702: if test "$cross_compiling" != no; then
1703: if test -n "$ac_tool_prefix"; then
1704: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1705: set dummy ${ac_tool_prefix}strip; ac_word=$2
1706: echo "$as_me:$LINENO: checking for $ac_word" >&5
1707: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1708: if test "${ac_cv_prog_STRIP+set}" = set; then
1709: echo $ECHO_N "(cached) $ECHO_C" >&6
1710: else
1711: if test -n "$STRIP"; then
1712: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1.1 parser 1713: else
1.15 paf 1714: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1715: for as_dir in $PATH
1716: do
1717: IFS=$as_save_IFS
1718: test -z "$as_dir" && as_dir=.
1719: for ac_exec_ext in '' $ac_executable_extensions; do
1720: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1721: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1722: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1723: break 2
1724: fi
1725: done
1726: done
1727:
1728: fi
1729: fi
1730: STRIP=$ac_cv_prog_STRIP
1731: if test -n "$STRIP"; then
1732: echo "$as_me:$LINENO: result: $STRIP" >&5
1733: echo "${ECHO_T}$STRIP" >&6
1734: else
1735: echo "$as_me:$LINENO: result: no" >&5
1736: echo "${ECHO_T}no" >&6
1.1 parser 1737: fi
1738:
1.15 paf 1739: fi
1740: if test -z "$ac_cv_prog_STRIP"; then
1741: ac_ct_STRIP=$STRIP
1742: # Extract the first word of "strip", so it can be a program name with args.
1743: set dummy strip; ac_word=$2
1744: echo "$as_me:$LINENO: checking for $ac_word" >&5
1745: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1746: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1747: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 1748: else
1.15 paf 1749: if test -n "$ac_ct_STRIP"; then
1750: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1751: else
1752: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1753: for as_dir in $PATH
1754: do
1755: IFS=$as_save_IFS
1756: test -z "$as_dir" && as_dir=.
1757: for ac_exec_ext in '' $ac_executable_extensions; do
1758: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1759: ac_cv_prog_ac_ct_STRIP="strip"
1760: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1761: break 2
1762: fi
1763: done
1764: done
1765:
1766: test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1.1 parser 1767: fi
1.15 paf 1768: fi
1769: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1770: if test -n "$ac_ct_STRIP"; then
1771: echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1772: echo "${ECHO_T}$ac_ct_STRIP" >&6
1.1 parser 1773: else
1.15 paf 1774: echo "$as_me:$LINENO: result: no" >&5
1775: echo "${ECHO_T}no" >&6
1.1 parser 1776: fi
1777:
1.15 paf 1778: STRIP=$ac_ct_STRIP
1.1 parser 1779: else
1.15 paf 1780: STRIP="$ac_cv_prog_STRIP"
1.1 parser 1781: fi
1782:
1783: fi
1.15 paf 1784: INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1785:
1786: # We need awk for the "check" target. The system "awk" is bad on
1787: # some platforms.
1.25 paf 1788: # Always define AMTAR for backward compatibility.
1789:
1790: AMTAR=${AMTAR-"${am_missing_run}tar"}
1791:
1792: am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1793:
1794:
1.1 parser 1795:
1796:
1797:
1798:
1799:
1800:
1801:
1.4 paf 1802: # Check whether --with-mysql-inc or --without-mysql-inc was given.
1.1 parser 1803: if test "${with_mysql_inc+set}" = set; then
1804: withval="$with_mysql_inc"
1.15 paf 1805:
1.8 paf 1806: if test -r "$withval/mysql.h"; then
1807: MYSQL_INC=$withval
1808: fi
1809:
1810:
1.33 misha 1811: if test -z "$MYSQL_INC"; then
1.15 paf 1812: { { echo "$as_me:$LINENO: error: $MYSQL_INC does not seem to be valid MySQL includes directory" >&5
1813: echo "$as_me: error: $MYSQL_INC does not seem to be valid MySQL includes directory" >&2;}
1814: { (exit 1); exit 1; }; }
1.33 misha 1815: fi
1.8 paf 1816:
1.1 parser 1817: else
1.15 paf 1818: echo "$as_me:$LINENO: checking for MYSQL_INC directory" >&5
1819: echo $ECHO_N "checking for MYSQL_INC directory... $ECHO_C" >&6
1.8 paf 1820: for d in \
1821: /usr/local/include/mysql \
1822: /usr/include/mysql ; do
1.15 paf 1823:
1.8 paf 1824: if test -r "$d/mysql.h"; then
1825: MYSQL_INC=$d
1826: fi
1827:
1828: done
1829:
1.33 misha 1830: if test -z "$MYSQL_INC"; then
1831: { { echo "$as_me:$LINENO: error: use --with-mysql-inc=DIR to specify MySQL includes directory" >&5
1.15 paf 1832: echo "$as_me: error: use --with-mysql-inc=DIR to specify MySQL includes directory" >&2;}
1833: { (exit 1); exit 1; }; }
1.33 misha 1834: fi
1.8 paf 1835:
1.15 paf 1836: echo "$as_me:$LINENO: result: $MYSQL_INC" >&5
1837: echo "${ECHO_T}$MYSQL_INC" >&6
1.1 parser 1838:
1.15 paf 1839: fi;
1.3 parser 1840:
1.1 parser 1841:
1842:
1843: # Find a good install program. We prefer a C program (faster),
1844: # so one script is as good as another. But avoid the broken or
1845: # incompatible versions:
1846: # SysV /etc/install, /usr/sbin/install
1847: # SunOS /usr/etc/install
1848: # IRIX /sbin/install
1849: # AIX /bin/install
1.15 paf 1850: # AmigaOS /C/install, which installs bootblocks on floppy discs
1.1 parser 1851: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1852: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1853: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1.25 paf 1854: # OS/2's system install, which has a completely different semantic
1.1 parser 1855: # ./install, which can be erroneously created by make from ./install.sh.
1.15 paf 1856: echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1857: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1.1 parser 1858: if test -z "$INSTALL"; then
1.15 paf 1859: if test "${ac_cv_path_install+set}" = set; then
1860: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 1861: else
1.15 paf 1862: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1863: for as_dir in $PATH
1864: do
1865: IFS=$as_save_IFS
1866: test -z "$as_dir" && as_dir=.
1867: # Account for people who put trailing slashes in PATH elements.
1868: case $as_dir/ in
1869: ./ | .// | /cC/* | \
1870: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.25 paf 1871: ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1.15 paf 1872: /usr/ucb/* ) ;;
1873: *)
1874: # OSF1 and SCO ODT 3.0 have their own names for install.
1875: # Don't use installbsd from OSF since it installs stuff as root
1876: # by default.
1877: for ac_prog in ginstall scoinst install; do
1878: for ac_exec_ext in '' $ac_executable_extensions; do
1.25 paf 1879: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1880: if test $ac_prog = install &&
1881: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1882: # AIX install. It has an incompatible calling convention.
1883: :
1884: elif test $ac_prog = install &&
1885: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1886: # program-specific install script used by HP pwplus--don't use.
1887: :
1888: else
1889: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1890: break 3
1891: fi
1892: fi
1.1 parser 1893: done
1.15 paf 1894: done
1895: ;;
1896: esac
1897: done
1898:
1.1 parser 1899:
1900: fi
1901: if test "${ac_cv_path_install+set}" = set; then
1.15 paf 1902: INSTALL=$ac_cv_path_install
1.1 parser 1903: else
1904: # As a last resort, use the slow shell script. We don't cache a
1905: # path for INSTALL within a source directory, because that will
1906: # break other packages using the cache if that directory is
1907: # removed, or if the path is relative.
1.15 paf 1908: INSTALL=$ac_install_sh
1.1 parser 1909: fi
1910: fi
1.15 paf 1911: echo "$as_me:$LINENO: result: $INSTALL" >&5
1912: echo "${ECHO_T}$INSTALL" >&6
1.1 parser 1913:
1914: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1915: # It thinks the first close brace ends the variable substitution.
1916: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1917:
1.15 paf 1918: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.1 parser 1919:
1920: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1921:
1.15 paf 1922: ac_ext=cc
1923: ac_cpp='$CXXCPP $CPPFLAGS'
1924: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1925: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1926: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1927: if test -n "$ac_tool_prefix"; then
1928: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1929: do
1930: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1931: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1932: echo "$as_me:$LINENO: checking for $ac_word" >&5
1933: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1934: if test "${ac_cv_prog_CXX+set}" = set; then
1935: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 1936: else
1937: if test -n "$CXX"; then
1938: ac_cv_prog_CXX="$CXX" # Let the user override the test.
1939: else
1.15 paf 1940: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1941: for as_dir in $PATH
1942: do
1943: IFS=$as_save_IFS
1944: test -z "$as_dir" && as_dir=.
1945: for ac_exec_ext in '' $ac_executable_extensions; do
1946: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1947: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1948: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1949: break 2
1950: fi
1951: done
1952: done
1953:
1.1 parser 1954: fi
1955: fi
1.15 paf 1956: CXX=$ac_cv_prog_CXX
1.1 parser 1957: if test -n "$CXX"; then
1.15 paf 1958: echo "$as_me:$LINENO: result: $CXX" >&5
1959: echo "${ECHO_T}$CXX" >&6
1.1 parser 1960: else
1.15 paf 1961: echo "$as_me:$LINENO: result: no" >&5
1962: echo "${ECHO_T}no" >&6
1.1 parser 1963: fi
1964:
1.15 paf 1965: test -n "$CXX" && break
1966: done
1967: fi
1968: if test -z "$CXX"; then
1969: ac_ct_CXX=$CXX
1970: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1971: do
1972: # Extract the first word of "$ac_prog", so it can be a program name with args.
1973: set dummy $ac_prog; ac_word=$2
1974: echo "$as_me:$LINENO: checking for $ac_word" >&5
1975: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1976: if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1977: echo $ECHO_N "(cached) $ECHO_C" >&6
1978: else
1979: if test -n "$ac_ct_CXX"; then
1980: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1981: else
1982: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1983: for as_dir in $PATH
1984: do
1985: IFS=$as_save_IFS
1986: test -z "$as_dir" && as_dir=.
1987: for ac_exec_ext in '' $ac_executable_extensions; do
1988: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1989: ac_cv_prog_ac_ct_CXX="$ac_prog"
1990: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1991: break 2
1992: fi
1993: done
1.1 parser 1994: done
1995:
1.15 paf 1996: fi
1997: fi
1998: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1999: if test -n "$ac_ct_CXX"; then
2000: echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2001: echo "${ECHO_T}$ac_ct_CXX" >&6
2002: else
2003: echo "$as_me:$LINENO: result: no" >&5
2004: echo "${ECHO_T}no" >&6
2005: fi
1.1 parser 2006:
1.15 paf 2007: test -n "$ac_ct_CXX" && break
2008: done
2009: test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1.1 parser 2010:
1.15 paf 2011: CXX=$ac_ct_CXX
2012: fi
1.1 parser 2013:
2014:
1.15 paf 2015: # Provide some information about the compiler.
2016: echo "$as_me:$LINENO:" \
2017: "checking for C++ compiler version" >&5
2018: ac_compiler=`set X $ac_compile; echo $2`
2019: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2020: (eval $ac_compiler --version </dev/null >&5) 2>&5
2021: ac_status=$?
2022: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2023: (exit $ac_status); }
2024: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2025: (eval $ac_compiler -v </dev/null >&5) 2>&5
2026: ac_status=$?
2027: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2028: (exit $ac_status); }
2029: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2030: (eval $ac_compiler -V </dev/null >&5) 2>&5
2031: ac_status=$?
2032: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2033: (exit $ac_status); }
2034:
2035: cat >conftest.$ac_ext <<_ACEOF
2036: /* confdefs.h. */
2037: _ACEOF
2038: cat confdefs.h >>conftest.$ac_ext
2039: cat >>conftest.$ac_ext <<_ACEOF
2040: /* end confdefs.h. */
2041:
2042: int
2043: main ()
2044: {
2045:
2046: ;
2047: return 0;
2048: }
2049: _ACEOF
2050: ac_clean_files_save=$ac_clean_files
2051: ac_clean_files="$ac_clean_files a.out a.exe b.out"
2052: # Try to create an executable without -o first, disregard a.out.
2053: # It will help us diagnose broken compilers, and finding out an intuition
2054: # of exeext.
1.25 paf 2055: echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2056: echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
1.15 paf 2057: ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2058: if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2059: (eval $ac_link_default) 2>&5
2060: ac_status=$?
2061: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2062: (exit $ac_status); }; then
2063: # Find the output, starting from the most likely. This scheme is
2064: # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2065: # resort.
2066:
2067: # Be careful to initialize this variable, since it used to be cached.
2068: # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2069: ac_cv_exeext=
2070: # b.out is created by i960 compilers.
2071: for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2072: do
2073: test -f "$ac_file" || continue
2074: case $ac_file in
2075: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1.25 paf 2076: ;;
1.15 paf 2077: conftest.$ac_ext )
1.25 paf 2078: # This is the source file.
2079: ;;
1.15 paf 2080: [ab].out )
1.25 paf 2081: # We found the default executable, but exeext='' is most
2082: # certainly right.
2083: break;;
1.15 paf 2084: *.* )
1.25 paf 2085: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2086: # FIXME: I believe we export ac_cv_exeext for Libtool,
2087: # but it would be cool to find out if it's true. Does anybody
2088: # maintain Libtool? --akim.
2089: export ac_cv_exeext
2090: break;;
1.15 paf 2091: * )
1.25 paf 2092: break;;
1.15 paf 2093: esac
2094: done
2095: else
2096: echo "$as_me: failed program was:" >&5
2097: sed 's/^/| /' conftest.$ac_ext >&5
1.1 parser 2098:
1.15 paf 2099: { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2100: See \`config.log' for more details." >&5
2101: echo "$as_me: error: C++ compiler cannot create executables
2102: See \`config.log' for more details." >&2;}
2103: { (exit 77); exit 77; }; }
2104: fi
2105:
2106: ac_exeext=$ac_cv_exeext
2107: echo "$as_me:$LINENO: result: $ac_file" >&5
2108: echo "${ECHO_T}$ac_file" >&6
2109:
2110: # Check the compiler produces executables we can run. If not, either
2111: # the compiler is broken, or we cross compile.
2112: echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2113: echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2114: # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2115: # If not cross compiling, check that we can run a simple program.
2116: if test "$cross_compiling" != yes; then
2117: if { ac_try='./$ac_file'
2118: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2119: (eval $ac_try) 2>&5
2120: ac_status=$?
2121: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122: (exit $ac_status); }; }; then
2123: cross_compiling=no
2124: else
2125: if test "$cross_compiling" = maybe; then
2126: cross_compiling=yes
2127: else
2128: { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2129: If you meant to cross compile, use \`--host'.
2130: See \`config.log' for more details." >&5
2131: echo "$as_me: error: cannot run C++ compiled programs.
2132: If you meant to cross compile, use \`--host'.
2133: See \`config.log' for more details." >&2;}
2134: { (exit 1); exit 1; }; }
2135: fi
1.1 parser 2136: fi
1.15 paf 2137: fi
2138: echo "$as_me:$LINENO: result: yes" >&5
2139: echo "${ECHO_T}yes" >&6
2140:
2141: rm -f a.out a.exe conftest$ac_cv_exeext b.out
2142: ac_clean_files=$ac_clean_files_save
2143: # Check the compiler produces executables we can run. If not, either
2144: # the compiler is broken, or we cross compile.
2145: echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2146: echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2147: echo "$as_me:$LINENO: result: $cross_compiling" >&5
2148: echo "${ECHO_T}$cross_compiling" >&6
2149:
2150: echo "$as_me:$LINENO: checking for suffix of executables" >&5
2151: echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2152: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2153: (eval $ac_link) 2>&5
2154: ac_status=$?
2155: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2156: (exit $ac_status); }; then
2157: # If both `conftest.exe' and `conftest' are `present' (well, observable)
2158: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2159: # work properly (i.e., refer to `conftest.exe'), while it won't with
2160: # `rm'.
2161: for ac_file in conftest.exe conftest conftest.*; do
2162: test -f "$ac_file" || continue
2163: case $ac_file in
2164: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2165: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1.25 paf 2166: export ac_cv_exeext
2167: break;;
1.15 paf 2168: * ) break;;
2169: esac
2170: done
1.1 parser 2171: else
1.15 paf 2172: { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2173: See \`config.log' for more details." >&5
2174: echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2175: See \`config.log' for more details." >&2;}
2176: { (exit 1); exit 1; }; }
2177: fi
2178:
2179: rm -f conftest$ac_cv_exeext
2180: echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2181: echo "${ECHO_T}$ac_cv_exeext" >&6
2182:
2183: rm -f conftest.$ac_ext
2184: EXEEXT=$ac_cv_exeext
2185: ac_exeext=$EXEEXT
2186: echo "$as_me:$LINENO: checking for suffix of object files" >&5
2187: echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2188: if test "${ac_cv_objext+set}" = set; then
2189: echo $ECHO_N "(cached) $ECHO_C" >&6
2190: else
2191: cat >conftest.$ac_ext <<_ACEOF
2192: /* confdefs.h. */
2193: _ACEOF
2194: cat confdefs.h >>conftest.$ac_ext
2195: cat >>conftest.$ac_ext <<_ACEOF
2196: /* end confdefs.h. */
2197:
2198: int
2199: main ()
2200: {
2201:
2202: ;
2203: return 0;
2204: }
2205: _ACEOF
2206: rm -f conftest.o conftest.obj
2207: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2208: (eval $ac_compile) 2>&5
2209: ac_status=$?
2210: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2211: (exit $ac_status); }; then
2212: for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2213: case $ac_file in
2214: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2215: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2216: break;;
2217: esac
2218: done
1.1 parser 2219: else
1.15 paf 2220: echo "$as_me: failed program was:" >&5
2221: sed 's/^/| /' conftest.$ac_ext >&5
1.1 parser 2222:
1.15 paf 2223: { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2224: See \`config.log' for more details." >&5
2225: echo "$as_me: error: cannot compute suffix of object files: cannot compile
2226: See \`config.log' for more details." >&2;}
2227: { (exit 1); exit 1; }; }
2228: fi
2229:
2230: rm -f conftest.$ac_cv_objext conftest.$ac_ext
2231: fi
2232: echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2233: echo "${ECHO_T}$ac_cv_objext" >&6
2234: OBJEXT=$ac_cv_objext
2235: ac_objext=$OBJEXT
2236: echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2237: echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2238: if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2239: echo $ECHO_N "(cached) $ECHO_C" >&6
2240: else
2241: cat >conftest.$ac_ext <<_ACEOF
2242: /* confdefs.h. */
2243: _ACEOF
2244: cat confdefs.h >>conftest.$ac_ext
2245: cat >>conftest.$ac_ext <<_ACEOF
2246: /* end confdefs.h. */
2247:
2248: int
2249: main ()
2250: {
2251: #ifndef __GNUC__
2252: choke me
2253: #endif
1.1 parser 2254:
1.15 paf 2255: ;
2256: return 0;
2257: }
2258: _ACEOF
2259: rm -f conftest.$ac_objext
2260: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.25 paf 2261: (eval $ac_compile) 2>conftest.er1
1.15 paf 2262: ac_status=$?
1.25 paf 2263: grep -v '^ *+' conftest.er1 >conftest.err
2264: rm -f conftest.er1
2265: cat conftest.err >&5
1.15 paf 2266: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267: (exit $ac_status); } &&
1.25 paf 2268: { ac_try='test -z "$ac_cxx_werror_flag"
2269: || test ! -s conftest.err'
2270: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2271: (eval $ac_try) 2>&5
2272: ac_status=$?
2273: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274: (exit $ac_status); }; } &&
2275: { ac_try='test -s conftest.$ac_objext'
1.15 paf 2276: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2277: (eval $ac_try) 2>&5
2278: ac_status=$?
2279: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280: (exit $ac_status); }; }; then
2281: ac_compiler_gnu=yes
2282: else
2283: echo "$as_me: failed program was:" >&5
2284: sed 's/^/| /' conftest.$ac_ext >&5
2285:
2286: ac_compiler_gnu=no
2287: fi
1.25 paf 2288: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 paf 2289: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2290:
2291: fi
2292: echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2293: echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2294: GXX=`test $ac_compiler_gnu = yes && echo yes`
2295: ac_test_CXXFLAGS=${CXXFLAGS+set}
2296: ac_save_CXXFLAGS=$CXXFLAGS
2297: CXXFLAGS="-g"
2298: echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2299: echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2300: if test "${ac_cv_prog_cxx_g+set}" = set; then
2301: echo $ECHO_N "(cached) $ECHO_C" >&6
2302: else
2303: cat >conftest.$ac_ext <<_ACEOF
2304: /* confdefs.h. */
2305: _ACEOF
2306: cat confdefs.h >>conftest.$ac_ext
2307: cat >>conftest.$ac_ext <<_ACEOF
2308: /* end confdefs.h. */
2309:
2310: int
2311: main ()
2312: {
2313:
2314: ;
2315: return 0;
2316: }
2317: _ACEOF
2318: rm -f conftest.$ac_objext
2319: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.25 paf 2320: (eval $ac_compile) 2>conftest.er1
1.15 paf 2321: ac_status=$?
1.25 paf 2322: grep -v '^ *+' conftest.er1 >conftest.err
2323: rm -f conftest.er1
2324: cat conftest.err >&5
1.15 paf 2325: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326: (exit $ac_status); } &&
1.25 paf 2327: { ac_try='test -z "$ac_cxx_werror_flag"
2328: || test ! -s conftest.err'
2329: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2330: (eval $ac_try) 2>&5
2331: ac_status=$?
2332: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333: (exit $ac_status); }; } &&
2334: { ac_try='test -s conftest.$ac_objext'
1.15 paf 2335: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2336: (eval $ac_try) 2>&5
2337: ac_status=$?
2338: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339: (exit $ac_status); }; }; then
2340: ac_cv_prog_cxx_g=yes
1.1 parser 2341: else
1.15 paf 2342: echo "$as_me: failed program was:" >&5
2343: sed 's/^/| /' conftest.$ac_ext >&5
1.1 parser 2344:
1.15 paf 2345: ac_cv_prog_cxx_g=no
1.1 parser 2346: fi
1.25 paf 2347: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 parser 2348: fi
1.15 paf 2349: echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2350: echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
1.1 parser 2351: if test "$ac_test_CXXFLAGS" = set; then
1.15 paf 2352: CXXFLAGS=$ac_save_CXXFLAGS
1.1 parser 2353: elif test $ac_cv_prog_cxx_g = yes; then
2354: if test "$GXX" = yes; then
2355: CXXFLAGS="-g -O2"
2356: else
2357: CXXFLAGS="-g"
2358: fi
2359: else
2360: if test "$GXX" = yes; then
2361: CXXFLAGS="-O2"
2362: else
2363: CXXFLAGS=
2364: fi
2365: fi
1.15 paf 2366: for ac_declaration in \
1.25 paf 2367: '' \
1.15 paf 2368: 'extern "C" void std::exit (int) throw (); using std::exit;' \
2369: 'extern "C" void std::exit (int); using std::exit;' \
2370: 'extern "C" void exit (int) throw ();' \
2371: 'extern "C" void exit (int);' \
2372: 'void exit (int);'
2373: do
2374: cat >conftest.$ac_ext <<_ACEOF
2375: /* confdefs.h. */
2376: _ACEOF
2377: cat confdefs.h >>conftest.$ac_ext
2378: cat >>conftest.$ac_ext <<_ACEOF
2379: /* end confdefs.h. */
1.25 paf 2380: $ac_declaration
1.15 paf 2381: #include <stdlib.h>
2382: int
2383: main ()
2384: {
2385: exit (42);
2386: ;
2387: return 0;
2388: }
2389: _ACEOF
2390: rm -f conftest.$ac_objext
2391: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.25 paf 2392: (eval $ac_compile) 2>conftest.er1
1.15 paf 2393: ac_status=$?
1.25 paf 2394: grep -v '^ *+' conftest.er1 >conftest.err
2395: rm -f conftest.er1
2396: cat conftest.err >&5
1.15 paf 2397: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398: (exit $ac_status); } &&
1.25 paf 2399: { ac_try='test -z "$ac_cxx_werror_flag"
2400: || test ! -s conftest.err'
2401: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2402: (eval $ac_try) 2>&5
2403: ac_status=$?
2404: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405: (exit $ac_status); }; } &&
2406: { ac_try='test -s conftest.$ac_objext'
1.15 paf 2407: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2408: (eval $ac_try) 2>&5
2409: ac_status=$?
2410: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411: (exit $ac_status); }; }; then
2412: :
2413: else
2414: echo "$as_me: failed program was:" >&5
2415: sed 's/^/| /' conftest.$ac_ext >&5
2416:
2417: continue
2418: fi
1.25 paf 2419: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 paf 2420: cat >conftest.$ac_ext <<_ACEOF
2421: /* confdefs.h. */
2422: _ACEOF
2423: cat confdefs.h >>conftest.$ac_ext
2424: cat >>conftest.$ac_ext <<_ACEOF
2425: /* end confdefs.h. */
2426: $ac_declaration
2427: int
2428: main ()
2429: {
2430: exit (42);
2431: ;
2432: return 0;
2433: }
2434: _ACEOF
2435: rm -f conftest.$ac_objext
2436: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.25 paf 2437: (eval $ac_compile) 2>conftest.er1
1.15 paf 2438: ac_status=$?
1.25 paf 2439: grep -v '^ *+' conftest.er1 >conftest.err
2440: rm -f conftest.er1
2441: cat conftest.err >&5
1.15 paf 2442: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443: (exit $ac_status); } &&
1.25 paf 2444: { ac_try='test -z "$ac_cxx_werror_flag"
2445: || test ! -s conftest.err'
2446: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2447: (eval $ac_try) 2>&5
2448: ac_status=$?
2449: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450: (exit $ac_status); }; } &&
2451: { ac_try='test -s conftest.$ac_objext'
1.15 paf 2452: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2453: (eval $ac_try) 2>&5
2454: ac_status=$?
2455: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456: (exit $ac_status); }; }; then
2457: break
2458: else
2459: echo "$as_me: failed program was:" >&5
2460: sed 's/^/| /' conftest.$ac_ext >&5
2461:
2462: fi
1.25 paf 2463: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 paf 2464: done
2465: rm -f conftest*
2466: if test -n "$ac_declaration"; then
2467: echo '#ifdef __cplusplus' >>confdefs.h
2468: echo $ac_declaration >>confdefs.h
2469: echo '#endif' >>confdefs.h
2470: fi
2471:
1.24 paf 2472: ac_ext=c
2473: ac_cpp='$CPP $CPPFLAGS'
2474: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2475: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2476: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.25 paf 2477: DEPDIR="${am__leading_dot}deps"
1.15 paf 2478:
2479: ac_config_commands="$ac_config_commands depfiles"
2480:
2481:
2482: am_make=${MAKE-make}
2483: cat > confinc << 'END'
1.25 paf 2484: am__doit:
1.15 paf 2485: @echo done
1.25 paf 2486: .PHONY: am__doit
1.15 paf 2487: END
2488: # If we don't find an include directive, just comment out the code.
2489: echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2490: echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2491: am__include="#"
2492: am__quote=
2493: _am_result=none
2494: # First try GNU make style include.
2495: echo "include confinc" > confmf
2496: # We grep out `Entering directory' and `Leaving directory'
2497: # messages which can occur if `w' ends up in MAKEFLAGS.
2498: # In particular we don't look at `^make:' because GNU make might
2499: # be invoked under some other name (usually "gmake"), in which
2500: # case it prints its new name instead of `make'.
2501: if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2502: am__include=include
2503: am__quote=
2504: _am_result=GNU
2505: fi
2506: # Now try BSD make style include.
2507: if test "$am__include" = "#"; then
2508: echo '.include "confinc"' > confmf
2509: if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2510: am__include=.include
2511: am__quote="\""
2512: _am_result=BSD
2513: fi
2514: fi
2515:
2516:
2517: echo "$as_me:$LINENO: result: $_am_result" >&5
2518: echo "${ECHO_T}$_am_result" >&6
2519: rm -f confinc confmf
2520:
2521: # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2522: if test "${enable_dependency_tracking+set}" = set; then
2523: enableval="$enable_dependency_tracking"
2524:
2525: fi;
2526: if test "x$enable_dependency_tracking" != xno; then
2527: am_depcomp="$ac_aux_dir/depcomp"
2528: AMDEPBACKSLASH='\'
2529: fi
2530:
2531:
2532: if test "x$enable_dependency_tracking" != xno; then
2533: AMDEP_TRUE=
2534: AMDEP_FALSE='#'
2535: else
2536: AMDEP_TRUE='#'
2537: AMDEP_FALSE=
2538: fi
2539:
2540:
2541:
2542:
2543: depcc="$CXX" am_compiler_list=
2544:
2545: echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2546: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2547: if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2548: echo $ECHO_N "(cached) $ECHO_C" >&6
2549: else
2550: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2551: # We make a subdir and do the tests there. Otherwise we can end up
2552: # making bogus files that we don't know about and never remove. For
2553: # instance it was reported that on HP-UX the gcc test will end up
2554: # making a dummy file named `D' -- because `-MD' means `put the output
2555: # in D'.
2556: mkdir conftest.dir
2557: # Copy depcomp to subdir because otherwise we won't find it if we're
2558: # using a relative directory.
2559: cp "$am_depcomp" conftest.dir
2560: cd conftest.dir
1.25 paf 2561: # We will build objects and dependencies in a subdirectory because
2562: # it helps to detect inapplicable dependency modes. For instance
2563: # both Tru64's cc and ICC support -MD to output dependencies as a
2564: # side effect of compilation, but ICC will put the dependencies in
2565: # the current directory while Tru64 will put them in the object
2566: # directory.
2567: mkdir sub
1.15 paf 2568:
2569: am_cv_CXX_dependencies_compiler_type=none
2570: if test "$am_compiler_list" = ""; then
2571: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2572: fi
2573: for depmode in $am_compiler_list; do
1.25 paf 2574: # Setup a source with many dependencies, because some compilers
2575: # like to wrap large dependency lists on column 80 (with \), and
2576: # we should not choose a depcomp mode which is confused by this.
2577: #
1.15 paf 2578: # We need to recreate these files for each test, as the compiler may
2579: # overwrite some of them when testing with obscure command lines.
2580: # This happens at least with the AIX C compiler.
1.25 paf 2581: : > sub/conftest.c
2582: for i in 1 2 3 4 5 6; do
2583: echo '#include "conftst'$i'.h"' >> sub/conftest.c
2584: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2585: # Solaris 8's {/usr,}/bin/sh.
2586: touch sub/conftst$i.h
2587: done
2588: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.15 paf 2589:
2590: case $depmode in
2591: nosideeffect)
2592: # after this tag, mechanisms are not by side-effect, so they'll
2593: # only be used when explicitly requested
2594: if test "x$enable_dependency_tracking" = xyes; then
2595: continue
2596: else
2597: break
2598: fi
2599: ;;
2600: none) break ;;
2601: esac
2602: # We check with `-c' and `-o' for the sake of the "dashmstdout"
2603: # mode. It turns out that the SunPro C++ compiler does not properly
2604: # handle `-M -o', and we need to detect this.
2605: if depmode=$depmode \
1.25 paf 2606: source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2607: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2608: $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2609: >/dev/null 2>conftest.err &&
2610: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2611: grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
1.15 paf 2612: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.25 paf 2613: # icc doesn't choke on unknown options, it will just issue warnings
2614: # or remarks (even with -Werror). So we grep stderr for any message
2615: # that says an option was ignored or not supported.
2616: # When given -MP, icc 7.0 and 7.1 complain thusly:
2617: # icc: Command line warning: ignoring option '-M'; no argument required
2618: # The diagnosis changed in icc 8.0:
2619: # icc: Command line remark: option '-MP' not supported
2620: if (grep 'ignoring option' conftest.err ||
2621: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2622: am_cv_CXX_dependencies_compiler_type=$depmode
2623: break
2624: fi
1.15 paf 2625: fi
2626: done
2627:
2628: cd ..
2629: rm -rf conftest.dir
2630: else
2631: am_cv_CXX_dependencies_compiler_type=none
2632: fi
2633:
2634: fi
2635: echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2636: echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2637: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2638:
2639:
2640:
2641: if
2642: test "x$enable_dependency_tracking" != xno \
2643: && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2644: am__fastdepCXX_TRUE=
2645: am__fastdepCXX_FALSE='#'
2646: else
2647: am__fastdepCXX_TRUE='#'
2648: am__fastdepCXX_FALSE=
2649: fi
2650:
1.1 parser 2651:
1.15 paf 2652: ac_ext=c
2653: ac_cpp='$CPP $CPPFLAGS'
2654: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2655: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2656: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2657: if test -n "$ac_tool_prefix"; then
2658: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2659: set dummy ${ac_tool_prefix}gcc; ac_word=$2
2660: echo "$as_me:$LINENO: checking for $ac_word" >&5
2661: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2662: if test "${ac_cv_prog_CC+set}" = set; then
2663: echo $ECHO_N "(cached) $ECHO_C" >&6
2664: else
2665: if test -n "$CC"; then
2666: ac_cv_prog_CC="$CC" # Let the user override the test.
2667: else
2668: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2669: for as_dir in $PATH
2670: do
2671: IFS=$as_save_IFS
2672: test -z "$as_dir" && as_dir=.
2673: for ac_exec_ext in '' $ac_executable_extensions; do
2674: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2675: ac_cv_prog_CC="${ac_tool_prefix}gcc"
2676: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2677: break 2
2678: fi
2679: done
2680: done
1.1 parser 2681:
1.15 paf 2682: fi
2683: fi
2684: CC=$ac_cv_prog_CC
2685: if test -n "$CC"; then
2686: echo "$as_me:$LINENO: result: $CC" >&5
2687: echo "${ECHO_T}$CC" >&6
2688: else
2689: echo "$as_me:$LINENO: result: no" >&5
2690: echo "${ECHO_T}no" >&6
2691: fi
1.1 parser 2692:
1.15 paf 2693: fi
2694: if test -z "$ac_cv_prog_CC"; then
2695: ac_ct_CC=$CC
2696: # Extract the first word of "gcc", so it can be a program name with args.
2697: set dummy gcc; ac_word=$2
2698: echo "$as_me:$LINENO: checking for $ac_word" >&5
2699: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2700: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2701: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 2702: else
1.15 paf 2703: if test -n "$ac_ct_CC"; then
2704: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.1 parser 2705: else
1.15 paf 2706: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2707: for as_dir in $PATH
2708: do
2709: IFS=$as_save_IFS
2710: test -z "$as_dir" && as_dir=.
2711: for ac_exec_ext in '' $ac_executable_extensions; do
2712: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2713: ac_cv_prog_ac_ct_CC="gcc"
2714: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2715: break 2
2716: fi
2717: done
2718: done
2719:
2720: fi
1.1 parser 2721: fi
1.15 paf 2722: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2723: if test -n "$ac_ct_CC"; then
2724: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2725: echo "${ECHO_T}$ac_ct_CC" >&6
2726: else
2727: echo "$as_me:$LINENO: result: no" >&5
2728: echo "${ECHO_T}no" >&6
1.1 parser 2729: fi
1.15 paf 2730:
2731: CC=$ac_ct_CC
1.1 parser 2732: else
1.15 paf 2733: CC="$ac_cv_prog_CC"
1.1 parser 2734: fi
2735:
1.15 paf 2736: if test -z "$CC"; then
2737: if test -n "$ac_tool_prefix"; then
2738: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2739: set dummy ${ac_tool_prefix}cc; ac_word=$2
2740: echo "$as_me:$LINENO: checking for $ac_word" >&5
2741: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2742: if test "${ac_cv_prog_CC+set}" = set; then
2743: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 2744: else
2745: if test -n "$CC"; then
2746: ac_cv_prog_CC="$CC" # Let the user override the test.
2747: else
1.15 paf 2748: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2749: for as_dir in $PATH
2750: do
2751: IFS=$as_save_IFS
2752: test -z "$as_dir" && as_dir=.
2753: for ac_exec_ext in '' $ac_executable_extensions; do
2754: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2755: ac_cv_prog_CC="${ac_tool_prefix}cc"
2756: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2757: break 2
2758: fi
2759: done
2760: done
2761:
1.1 parser 2762: fi
2763: fi
1.15 paf 2764: CC=$ac_cv_prog_CC
1.1 parser 2765: if test -n "$CC"; then
1.15 paf 2766: echo "$as_me:$LINENO: result: $CC" >&5
2767: echo "${ECHO_T}$CC" >&6
2768: else
2769: echo "$as_me:$LINENO: result: no" >&5
2770: echo "${ECHO_T}no" >&6
2771: fi
2772:
2773: fi
2774: if test -z "$ac_cv_prog_CC"; then
2775: ac_ct_CC=$CC
2776: # Extract the first word of "cc", so it can be a program name with args.
2777: set dummy cc; ac_word=$2
2778: echo "$as_me:$LINENO: checking for $ac_word" >&5
2779: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2780: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2781: echo $ECHO_N "(cached) $ECHO_C" >&6
2782: else
2783: if test -n "$ac_ct_CC"; then
2784: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2785: else
2786: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2787: for as_dir in $PATH
2788: do
2789: IFS=$as_save_IFS
2790: test -z "$as_dir" && as_dir=.
2791: for ac_exec_ext in '' $ac_executable_extensions; do
2792: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2793: ac_cv_prog_ac_ct_CC="cc"
2794: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2795: break 2
2796: fi
2797: done
2798: done
2799:
2800: fi
2801: fi
2802: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2803: if test -n "$ac_ct_CC"; then
2804: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2805: echo "${ECHO_T}$ac_ct_CC" >&6
2806: else
2807: echo "$as_me:$LINENO: result: no" >&5
2808: echo "${ECHO_T}no" >&6
2809: fi
2810:
2811: CC=$ac_ct_CC
1.1 parser 2812: else
1.15 paf 2813: CC="$ac_cv_prog_CC"
1.1 parser 2814: fi
2815:
1.15 paf 2816: fi
1.1 parser 2817: if test -z "$CC"; then
2818: # Extract the first word of "cc", so it can be a program name with args.
2819: set dummy cc; ac_word=$2
1.15 paf 2820: echo "$as_me:$LINENO: checking for $ac_word" >&5
2821: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2822: if test "${ac_cv_prog_CC+set}" = set; then
2823: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 2824: else
2825: if test -n "$CC"; then
2826: ac_cv_prog_CC="$CC" # Let the user override the test.
2827: else
2828: ac_prog_rejected=no
1.15 paf 2829: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2830: for as_dir in $PATH
2831: do
2832: IFS=$as_save_IFS
2833: test -z "$as_dir" && as_dir=.
2834: for ac_exec_ext in '' $ac_executable_extensions; do
2835: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2836: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2837: ac_prog_rejected=yes
2838: continue
2839: fi
2840: ac_cv_prog_CC="cc"
2841: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2842: break 2
2843: fi
2844: done
2845: done
2846:
1.1 parser 2847: if test $ac_prog_rejected = yes; then
2848: # We found a bogon in the path, so make sure we never use it.
2849: set dummy $ac_cv_prog_CC
2850: shift
1.15 paf 2851: if test $# != 0; then
1.1 parser 2852: # We chose a different compiler from the bogus one.
2853: # However, it has the same basename, so the bogon will be chosen
2854: # first if we set CC to just the basename; use the full file name.
2855: shift
1.15 paf 2856: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1.1 parser 2857: fi
2858: fi
2859: fi
2860: fi
1.15 paf 2861: CC=$ac_cv_prog_CC
1.1 parser 2862: if test -n "$CC"; then
1.15 paf 2863: echo "$as_me:$LINENO: result: $CC" >&5
2864: echo "${ECHO_T}$CC" >&6
1.1 parser 2865: else
1.15 paf 2866: echo "$as_me:$LINENO: result: no" >&5
2867: echo "${ECHO_T}no" >&6
1.1 parser 2868: fi
2869:
1.15 paf 2870: fi
2871: if test -z "$CC"; then
2872: if test -n "$ac_tool_prefix"; then
2873: for ac_prog in cl
2874: do
2875: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2876: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2877: echo "$as_me:$LINENO: checking for $ac_word" >&5
2878: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2879: if test "${ac_cv_prog_CC+set}" = set; then
2880: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 2881: else
2882: if test -n "$CC"; then
2883: ac_cv_prog_CC="$CC" # Let the user override the test.
2884: else
1.15 paf 2885: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886: for as_dir in $PATH
2887: do
2888: IFS=$as_save_IFS
2889: test -z "$as_dir" && as_dir=.
2890: for ac_exec_ext in '' $ac_executable_extensions; do
2891: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2892: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2893: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2894: break 2
2895: fi
2896: done
2897: done
2898:
1.1 parser 2899: fi
2900: fi
1.15 paf 2901: CC=$ac_cv_prog_CC
1.1 parser 2902: if test -n "$CC"; then
1.15 paf 2903: echo "$as_me:$LINENO: result: $CC" >&5
2904: echo "${ECHO_T}$CC" >&6
1.1 parser 2905: else
1.15 paf 2906: echo "$as_me:$LINENO: result: no" >&5
2907: echo "${ECHO_T}no" >&6
2908: fi
2909:
2910: test -n "$CC" && break
2911: done
1.1 parser 2912: fi
1.15 paf 2913: if test -z "$CC"; then
2914: ac_ct_CC=$CC
2915: for ac_prog in cl
2916: do
2917: # Extract the first word of "$ac_prog", so it can be a program name with args.
2918: set dummy $ac_prog; ac_word=$2
2919: echo "$as_me:$LINENO: checking for $ac_word" >&5
2920: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2921: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2922: echo $ECHO_N "(cached) $ECHO_C" >&6
2923: else
2924: if test -n "$ac_ct_CC"; then
2925: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2926: else
2927: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2928: for as_dir in $PATH
2929: do
2930: IFS=$as_save_IFS
2931: test -z "$as_dir" && as_dir=.
2932: for ac_exec_ext in '' $ac_executable_extensions; do
2933: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2934: ac_cv_prog_ac_ct_CC="$ac_prog"
2935: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2936: break 2
1.1 parser 2937: fi
1.15 paf 2938: done
2939: done
2940:
2941: fi
2942: fi
2943: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2944: if test -n "$ac_ct_CC"; then
2945: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2946: echo "${ECHO_T}$ac_ct_CC" >&6
2947: else
2948: echo "$as_me:$LINENO: result: no" >&5
2949: echo "${ECHO_T}no" >&6
1.1 parser 2950: fi
2951:
1.15 paf 2952: test -n "$ac_ct_CC" && break
2953: done
1.1 parser 2954:
1.15 paf 2955: CC=$ac_ct_CC
2956: fi
1.1 parser 2957:
1.15 paf 2958: fi
1.1 parser 2959:
2960:
1.15 paf 2961: test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2962: See \`config.log' for more details." >&5
2963: echo "$as_me: error: no acceptable C compiler found in \$PATH
2964: See \`config.log' for more details." >&2;}
2965: { (exit 1); exit 1; }; }
2966:
2967: # Provide some information about the compiler.
2968: echo "$as_me:$LINENO:" \
2969: "checking for C compiler version" >&5
2970: ac_compiler=`set X $ac_compile; echo $2`
2971: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2972: (eval $ac_compiler --version </dev/null >&5) 2>&5
2973: ac_status=$?
2974: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975: (exit $ac_status); }
2976: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2977: (eval $ac_compiler -v </dev/null >&5) 2>&5
2978: ac_status=$?
2979: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980: (exit $ac_status); }
2981: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2982: (eval $ac_compiler -V </dev/null >&5) 2>&5
2983: ac_status=$?
2984: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985: (exit $ac_status); }
2986:
2987: echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2988: echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2989: if test "${ac_cv_c_compiler_gnu+set}" = set; then
2990: echo $ECHO_N "(cached) $ECHO_C" >&6
2991: else
2992: cat >conftest.$ac_ext <<_ACEOF
2993: /* confdefs.h. */
2994: _ACEOF
2995: cat confdefs.h >>conftest.$ac_ext
2996: cat >>conftest.$ac_ext <<_ACEOF
2997: /* end confdefs.h. */
2998:
2999: int
3000: main ()
3001: {
3002: #ifndef __GNUC__
3003: choke me
1.1 parser 3004: #endif
3005:
1.15 paf 3006: ;
3007: return 0;
3008: }
3009: _ACEOF
3010: rm -f conftest.$ac_objext
3011: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.25 paf 3012: (eval $ac_compile) 2>conftest.er1
1.15 paf 3013: ac_status=$?
1.25 paf 3014: grep -v '^ *+' conftest.er1 >conftest.err
3015: rm -f conftest.er1
3016: cat conftest.err >&5
1.15 paf 3017: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018: (exit $ac_status); } &&
1.25 paf 3019: { ac_try='test -z "$ac_c_werror_flag"
3020: || test ! -s conftest.err'
3021: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3022: (eval $ac_try) 2>&5
3023: ac_status=$?
3024: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025: (exit $ac_status); }; } &&
3026: { ac_try='test -s conftest.$ac_objext'
1.15 paf 3027: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3028: (eval $ac_try) 2>&5
3029: ac_status=$?
3030: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031: (exit $ac_status); }; }; then
3032: ac_compiler_gnu=yes
3033: else
3034: echo "$as_me: failed program was:" >&5
3035: sed 's/^/| /' conftest.$ac_ext >&5
3036:
3037: ac_compiler_gnu=no
3038: fi
1.25 paf 3039: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 paf 3040: ac_cv_c_compiler_gnu=$ac_compiler_gnu
3041:
3042: fi
3043: echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3044: echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3045: GCC=`test $ac_compiler_gnu = yes && echo yes`
3046: ac_test_CFLAGS=${CFLAGS+set}
3047: ac_save_CFLAGS=$CFLAGS
3048: CFLAGS="-g"
3049: echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3050: echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3051: if test "${ac_cv_prog_cc_g+set}" = set; then
3052: echo $ECHO_N "(cached) $ECHO_C" >&6
3053: else
3054: cat >conftest.$ac_ext <<_ACEOF
3055: /* confdefs.h. */
3056: _ACEOF
3057: cat confdefs.h >>conftest.$ac_ext
3058: cat >>conftest.$ac_ext <<_ACEOF
3059: /* end confdefs.h. */
3060:
3061: int
3062: main ()
3063: {
3064:
3065: ;
3066: return 0;
3067: }
3068: _ACEOF
3069: rm -f conftest.$ac_objext
3070: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.25 paf 3071: (eval $ac_compile) 2>conftest.er1
1.15 paf 3072: ac_status=$?
1.25 paf 3073: grep -v '^ *+' conftest.er1 >conftest.err
3074: rm -f conftest.er1
3075: cat conftest.err >&5
1.15 paf 3076: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077: (exit $ac_status); } &&
1.25 paf 3078: { ac_try='test -z "$ac_c_werror_flag"
3079: || test ! -s conftest.err'
3080: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3081: (eval $ac_try) 2>&5
3082: ac_status=$?
3083: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084: (exit $ac_status); }; } &&
3085: { ac_try='test -s conftest.$ac_objext'
1.15 paf 3086: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3087: (eval $ac_try) 2>&5
3088: ac_status=$?
3089: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090: (exit $ac_status); }; }; then
3091: ac_cv_prog_cc_g=yes
1.1 parser 3092: else
1.15 paf 3093: echo "$as_me: failed program was:" >&5
3094: sed 's/^/| /' conftest.$ac_ext >&5
1.1 parser 3095:
1.15 paf 3096: ac_cv_prog_cc_g=no
1.1 parser 3097: fi
1.25 paf 3098: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 parser 3099: fi
1.15 paf 3100: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3101: echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1.1 parser 3102: if test "$ac_test_CFLAGS" = set; then
1.15 paf 3103: CFLAGS=$ac_save_CFLAGS
1.1 parser 3104: elif test $ac_cv_prog_cc_g = yes; then
3105: if test "$GCC" = yes; then
3106: CFLAGS="-g -O2"
3107: else
3108: CFLAGS="-g"
3109: fi
3110: else
3111: if test "$GCC" = yes; then
3112: CFLAGS="-O2"
3113: else
3114: CFLAGS=
3115: fi
3116: fi
1.15 paf 3117: echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3118: echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3119: if test "${ac_cv_prog_cc_stdc+set}" = set; then
3120: echo $ECHO_N "(cached) $ECHO_C" >&6
3121: else
3122: ac_cv_prog_cc_stdc=no
3123: ac_save_CC=$CC
3124: cat >conftest.$ac_ext <<_ACEOF
3125: /* confdefs.h. */
3126: _ACEOF
3127: cat confdefs.h >>conftest.$ac_ext
3128: cat >>conftest.$ac_ext <<_ACEOF
3129: /* end confdefs.h. */
3130: #include <stdarg.h>
3131: #include <stdio.h>
3132: #include <sys/types.h>
3133: #include <sys/stat.h>
3134: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3135: struct buf { int x; };
3136: FILE * (*rcsopen) (struct buf *, struct stat *, int);
3137: static char *e (p, i)
3138: char **p;
3139: int i;
3140: {
3141: return p[i];
3142: }
3143: static char *f (char * (*g) (char **, int), char **p, ...)
3144: {
3145: char *s;
3146: va_list v;
3147: va_start (v,p);
3148: s = g (p, va_arg (v,int));
3149: va_end (v);
3150: return s;
3151: }
1.25 paf 3152:
3153: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3154: function prototypes and stuff, but not '\xHH' hex character constants.
3155: These don't provoke an error unfortunately, instead are silently treated
3156: as 'x'. The following induces an error, until -std1 is added to get
3157: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3158: array size at least. It's necessary to write '\x00'==0 to get something
3159: that's true only with -std1. */
3160: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3161:
1.15 paf 3162: int test (int i, double x);
3163: struct s1 {int (*f) (int a);};
3164: struct s2 {int (*f) (double a);};
3165: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3166: int argc;
3167: char **argv;
3168: int
3169: main ()
3170: {
3171: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3172: ;
3173: return 0;
3174: }
3175: _ACEOF
3176: # Don't try gcc -ansi; that turns off useful extensions and
3177: # breaks some systems' header files.
3178: # AIX -qlanglvl=ansi
3179: # Ultrix and OSF/1 -std1
3180: # HP-UX 10.20 and later -Ae
3181: # HP-UX older versions -Aa -D_HPUX_SOURCE
3182: # SVR4 -Xc -D__EXTENSIONS__
3183: for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3184: do
3185: CC="$ac_save_CC $ac_arg"
3186: rm -f conftest.$ac_objext
3187: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.25 paf 3188: (eval $ac_compile) 2>conftest.er1
1.15 paf 3189: ac_status=$?
1.25 paf 3190: grep -v '^ *+' conftest.er1 >conftest.err
3191: rm -f conftest.er1
3192: cat conftest.err >&5
1.15 paf 3193: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194: (exit $ac_status); } &&
1.25 paf 3195: { ac_try='test -z "$ac_c_werror_flag"
3196: || test ! -s conftest.err'
3197: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3198: (eval $ac_try) 2>&5
3199: ac_status=$?
3200: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201: (exit $ac_status); }; } &&
3202: { ac_try='test -s conftest.$ac_objext'
1.15 paf 3203: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3204: (eval $ac_try) 2>&5
3205: ac_status=$?
3206: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207: (exit $ac_status); }; }; then
3208: ac_cv_prog_cc_stdc=$ac_arg
3209: break
3210: else
3211: echo "$as_me: failed program was:" >&5
3212: sed 's/^/| /' conftest.$ac_ext >&5
3213:
3214: fi
1.25 paf 3215: rm -f conftest.err conftest.$ac_objext
1.15 paf 3216: done
3217: rm -f conftest.$ac_ext conftest.$ac_objext
3218: CC=$ac_save_CC
3219:
3220: fi
3221:
3222: case "x$ac_cv_prog_cc_stdc" in
3223: x|xno)
3224: echo "$as_me:$LINENO: result: none needed" >&5
3225: echo "${ECHO_T}none needed" >&6 ;;
3226: *)
3227: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3228: echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3229: CC="$CC $ac_cv_prog_cc_stdc" ;;
3230: esac
3231:
3232: # Some people use a C++ compiler to compile C. Since we use `exit',
3233: # in C++ we need to declare it. In case someone uses the same compiler
3234: # for both compiling C and C++ we need to have the C++ compiler decide
3235: # the declaration of exit, since it's the most demanding environment.
3236: cat >conftest.$ac_ext <<_ACEOF
3237: #ifndef __cplusplus
3238: choke me
3239: #endif
3240: _ACEOF
3241: rm -f conftest.$ac_objext
3242: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.25 paf 3243: (eval $ac_compile) 2>conftest.er1
1.15 paf 3244: ac_status=$?
1.25 paf 3245: grep -v '^ *+' conftest.er1 >conftest.err
3246: rm -f conftest.er1
3247: cat conftest.err >&5
1.15 paf 3248: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249: (exit $ac_status); } &&
1.25 paf 3250: { ac_try='test -z "$ac_c_werror_flag"
3251: || test ! -s conftest.err'
3252: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3253: (eval $ac_try) 2>&5
3254: ac_status=$?
3255: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256: (exit $ac_status); }; } &&
3257: { ac_try='test -s conftest.$ac_objext'
1.15 paf 3258: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3259: (eval $ac_try) 2>&5
3260: ac_status=$?
3261: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262: (exit $ac_status); }; }; then
3263: for ac_declaration in \
1.25 paf 3264: '' \
1.15 paf 3265: 'extern "C" void std::exit (int) throw (); using std::exit;' \
3266: 'extern "C" void std::exit (int); using std::exit;' \
3267: 'extern "C" void exit (int) throw ();' \
3268: 'extern "C" void exit (int);' \
3269: 'void exit (int);'
3270: do
3271: cat >conftest.$ac_ext <<_ACEOF
3272: /* confdefs.h. */
3273: _ACEOF
3274: cat confdefs.h >>conftest.$ac_ext
3275: cat >>conftest.$ac_ext <<_ACEOF
3276: /* end confdefs.h. */
1.25 paf 3277: $ac_declaration
1.15 paf 3278: #include <stdlib.h>
3279: int
3280: main ()
3281: {
3282: exit (42);
3283: ;
3284: return 0;
3285: }
3286: _ACEOF
3287: rm -f conftest.$ac_objext
3288: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.25 paf 3289: (eval $ac_compile) 2>conftest.er1
1.15 paf 3290: ac_status=$?
1.25 paf 3291: grep -v '^ *+' conftest.er1 >conftest.err
3292: rm -f conftest.er1
3293: cat conftest.err >&5
1.15 paf 3294: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295: (exit $ac_status); } &&
1.25 paf 3296: { ac_try='test -z "$ac_c_werror_flag"
3297: || test ! -s conftest.err'
3298: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3299: (eval $ac_try) 2>&5
3300: ac_status=$?
3301: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302: (exit $ac_status); }; } &&
3303: { ac_try='test -s conftest.$ac_objext'
1.15 paf 3304: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3305: (eval $ac_try) 2>&5
3306: ac_status=$?
3307: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308: (exit $ac_status); }; }; then
3309: :
3310: else
3311: echo "$as_me: failed program was:" >&5
3312: sed 's/^/| /' conftest.$ac_ext >&5
3313:
3314: continue
3315: fi
1.25 paf 3316: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 paf 3317: cat >conftest.$ac_ext <<_ACEOF
3318: /* confdefs.h. */
3319: _ACEOF
3320: cat confdefs.h >>conftest.$ac_ext
3321: cat >>conftest.$ac_ext <<_ACEOF
3322: /* end confdefs.h. */
3323: $ac_declaration
3324: int
3325: main ()
3326: {
3327: exit (42);
3328: ;
3329: return 0;
3330: }
3331: _ACEOF
3332: rm -f conftest.$ac_objext
3333: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.25 paf 3334: (eval $ac_compile) 2>conftest.er1
1.15 paf 3335: ac_status=$?
1.25 paf 3336: grep -v '^ *+' conftest.er1 >conftest.err
3337: rm -f conftest.er1
3338: cat conftest.err >&5
1.15 paf 3339: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340: (exit $ac_status); } &&
1.25 paf 3341: { ac_try='test -z "$ac_c_werror_flag"
3342: || test ! -s conftest.err'
3343: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3344: (eval $ac_try) 2>&5
3345: ac_status=$?
3346: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347: (exit $ac_status); }; } &&
3348: { ac_try='test -s conftest.$ac_objext'
1.15 paf 3349: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3350: (eval $ac_try) 2>&5
3351: ac_status=$?
3352: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353: (exit $ac_status); }; }; then
3354: break
3355: else
3356: echo "$as_me: failed program was:" >&5
3357: sed 's/^/| /' conftest.$ac_ext >&5
3358:
3359: fi
1.25 paf 3360: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 paf 3361: done
3362: rm -f conftest*
3363: if test -n "$ac_declaration"; then
3364: echo '#ifdef __cplusplus' >>confdefs.h
3365: echo $ac_declaration >>confdefs.h
3366: echo '#endif' >>confdefs.h
3367: fi
3368:
3369: else
3370: echo "$as_me: failed program was:" >&5
3371: sed 's/^/| /' conftest.$ac_ext >&5
3372:
3373: fi
1.25 paf 3374: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.24 paf 3375: ac_ext=c
3376: ac_cpp='$CPP $CPPFLAGS'
3377: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3378: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3379: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.15 paf 3380:
3381: depcc="$CC" am_compiler_list=
3382:
3383: echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3384: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3385: if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3386: echo $ECHO_N "(cached) $ECHO_C" >&6
3387: else
3388: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3389: # We make a subdir and do the tests there. Otherwise we can end up
3390: # making bogus files that we don't know about and never remove. For
3391: # instance it was reported that on HP-UX the gcc test will end up
3392: # making a dummy file named `D' -- because `-MD' means `put the output
3393: # in D'.
3394: mkdir conftest.dir
3395: # Copy depcomp to subdir because otherwise we won't find it if we're
3396: # using a relative directory.
3397: cp "$am_depcomp" conftest.dir
3398: cd conftest.dir
1.25 paf 3399: # We will build objects and dependencies in a subdirectory because
3400: # it helps to detect inapplicable dependency modes. For instance
3401: # both Tru64's cc and ICC support -MD to output dependencies as a
3402: # side effect of compilation, but ICC will put the dependencies in
3403: # the current directory while Tru64 will put them in the object
3404: # directory.
3405: mkdir sub
1.15 paf 3406:
3407: am_cv_CC_dependencies_compiler_type=none
3408: if test "$am_compiler_list" = ""; then
3409: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3410: fi
3411: for depmode in $am_compiler_list; do
1.25 paf 3412: # Setup a source with many dependencies, because some compilers
3413: # like to wrap large dependency lists on column 80 (with \), and
3414: # we should not choose a depcomp mode which is confused by this.
3415: #
1.15 paf 3416: # We need to recreate these files for each test, as the compiler may
3417: # overwrite some of them when testing with obscure command lines.
3418: # This happens at least with the AIX C compiler.
1.25 paf 3419: : > sub/conftest.c
3420: for i in 1 2 3 4 5 6; do
3421: echo '#include "conftst'$i'.h"' >> sub/conftest.c
3422: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3423: # Solaris 8's {/usr,}/bin/sh.
3424: touch sub/conftst$i.h
3425: done
3426: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.15 paf 3427:
3428: case $depmode in
3429: nosideeffect)
3430: # after this tag, mechanisms are not by side-effect, so they'll
3431: # only be used when explicitly requested
3432: if test "x$enable_dependency_tracking" = xyes; then
3433: continue
3434: else
3435: break
3436: fi
3437: ;;
3438: none) break ;;
3439: esac
3440: # We check with `-c' and `-o' for the sake of the "dashmstdout"
3441: # mode. It turns out that the SunPro C++ compiler does not properly
3442: # handle `-M -o', and we need to detect this.
3443: if depmode=$depmode \
1.25 paf 3444: source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3445: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3446: $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3447: >/dev/null 2>conftest.err &&
3448: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3449: grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
1.15 paf 3450: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.25 paf 3451: # icc doesn't choke on unknown options, it will just issue warnings
3452: # or remarks (even with -Werror). So we grep stderr for any message
3453: # that says an option was ignored or not supported.
3454: # When given -MP, icc 7.0 and 7.1 complain thusly:
3455: # icc: Command line warning: ignoring option '-M'; no argument required
3456: # The diagnosis changed in icc 8.0:
3457: # icc: Command line remark: option '-MP' not supported
3458: if (grep 'ignoring option' conftest.err ||
3459: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3460: am_cv_CC_dependencies_compiler_type=$depmode
3461: break
3462: fi
1.15 paf 3463: fi
3464: done
3465:
3466: cd ..
3467: rm -rf conftest.dir
3468: else
3469: am_cv_CC_dependencies_compiler_type=none
3470: fi
3471:
3472: fi
3473: echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3474: echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3475: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3476:
3477:
3478:
3479: if
3480: test "x$enable_dependency_tracking" != xno \
3481: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3482: am__fastdepCC_TRUE=
3483: am__fastdepCC_FALSE='#'
3484: else
3485: am__fastdepCC_TRUE='#'
3486: am__fastdepCC_FALSE=
3487: fi
3488:
3489:
1.24 paf 3490:
1.35 moko 3491:
1.36 moko 3492:
3493:
3494:
3495:
3496:
3497:
1.35 moko 3498: case `pwd` in
3499: *\ * | *\ *)
3500: { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3501: echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3502: esac
3503:
3504:
3505:
3506: macro_version='2.4.2'
3507: macro_revision='1.3337'
3508:
3509:
3510:
3511:
3512:
3513:
3514:
1.24 paf 3515:
3516:
3517:
3518:
3519:
3520:
1.35 moko 3521: ltmain="$ac_aux_dir/ltmain.sh"
1.24 paf 3522:
3523: # Make sure we can run config.sub.
3524: $ac_config_sub sun4 >/dev/null 2>&1 ||
3525: { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3526: echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3527: { (exit 1); exit 1; }; }
3528:
3529: echo "$as_me:$LINENO: checking build system type" >&5
3530: echo $ECHO_N "checking build system type... $ECHO_C" >&6
3531: if test "${ac_cv_build+set}" = set; then
3532: echo $ECHO_N "(cached) $ECHO_C" >&6
3533: else
3534: ac_cv_build_alias=$build_alias
3535: test -z "$ac_cv_build_alias" &&
3536: ac_cv_build_alias=`$ac_config_guess`
3537: test -z "$ac_cv_build_alias" &&
3538: { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3539: echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3540: { (exit 1); exit 1; }; }
3541: ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3542: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3543: echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3544: { (exit 1); exit 1; }; }
3545:
3546: fi
3547: echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3548: echo "${ECHO_T}$ac_cv_build" >&6
3549: build=$ac_cv_build
3550: build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3551: build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3552: build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3553:
3554:
3555: echo "$as_me:$LINENO: checking host system type" >&5
3556: echo $ECHO_N "checking host system type... $ECHO_C" >&6
3557: if test "${ac_cv_host+set}" = set; then
3558: echo $ECHO_N "(cached) $ECHO_C" >&6
3559: else
3560: ac_cv_host_alias=$host_alias
3561: test -z "$ac_cv_host_alias" &&
3562: ac_cv_host_alias=$ac_cv_build_alias
3563: ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3564: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3565: echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3566: { (exit 1); exit 1; }; }
3567:
3568: fi
3569: echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3570: echo "${ECHO_T}$ac_cv_host" >&6
3571: host=$ac_cv_host
3572: host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3573: host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3574: host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3575:
3576:
1.35 moko 3577: # Backslashify metacharacters that are still active within
3578: # double-quoted strings.
3579: sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3580:
3581: # Same as above, but do not quote variable references.
3582: double_quote_subst='s/\(["`\\]\)/\\\1/g'
3583:
3584: # Sed substitution to delay expansion of an escaped shell variable in a
3585: # double_quote_subst'ed string.
3586: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3587:
3588: # Sed substitution to delay expansion of an escaped single quote.
3589: delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
1.15 paf 3590:
1.35 moko 3591: # Sed substitution to avoid accidental globbing in evaled expressions
3592: no_glob_subst='s/\*/\\\*/g'
1.1 parser 3593:
1.35 moko 3594: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3595: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3596: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3597:
3598: echo "$as_me:$LINENO: checking how to print strings" >&5
3599: echo $ECHO_N "checking how to print strings... $ECHO_C" >&6
3600: # Test print first, because it will be a builtin if present.
3601: if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3602: test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3603: ECHO='print -r --'
3604: elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3605: ECHO='printf %s\n'
1.1 parser 3606: else
1.35 moko 3607: # Use this function as a fallback that always works.
3608: func_fallback_echo ()
3609: {
3610: eval 'cat <<_LTECHO_EOF
3611: $1
3612: _LTECHO_EOF'
3613: }
3614: ECHO='func_fallback_echo'
1.1 parser 3615: fi
1.35 moko 3616:
3617: # func_echo_all arg...
3618: # Invoke $ECHO with all args, space-separated.
3619: func_echo_all ()
3620: {
3621: $ECHO ""
3622: }
3623:
3624: case "$ECHO" in
3625: printf*) echo "$as_me:$LINENO: result: printf" >&5
3626: echo "${ECHO_T}printf" >&6 ;;
3627: print*) echo "$as_me:$LINENO: result: print -r" >&5
3628: echo "${ECHO_T}print -r" >&6 ;;
3629: *) echo "$as_me:$LINENO: result: cat" >&5
3630: echo "${ECHO_T}cat" >&6 ;;
3631: esac
3632:
3633:
3634:
3635:
3636:
3637:
3638:
3639:
3640:
3641:
3642:
3643:
3644:
3645:
3646: echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3647: echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3648: if test "${lt_cv_path_SED+set}" = set; then
3649: echo $ECHO_N "(cached) $ECHO_C" >&6
3650: else
3651: # Loop through the user's path and test for sed and gsed.
3652: # Then use that list of sed's as ones to test for truncation.
3653: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3654: for as_dir in $PATH
3655: do
3656: IFS=$as_save_IFS
3657: test -z "$as_dir" && as_dir=.
3658: for lt_ac_prog in sed gsed; do
3659: for ac_exec_ext in '' $ac_executable_extensions; do
3660: if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3661: lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3662: fi
3663: done
3664: done
3665: done
3666: IFS=$as_save_IFS
3667: lt_ac_max=0
3668: lt_ac_count=0
3669: # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3670: # along with /bin/sed that truncates output.
3671: for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3672: test ! -f $lt_ac_sed && continue
3673: cat /dev/null > conftest.in
3674: lt_ac_count=0
3675: echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3676: # Check for GNU sed and select it if it is found.
3677: if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3678: lt_cv_path_SED=$lt_ac_sed
3679: break
3680: fi
3681: while true; do
3682: cat conftest.in conftest.in >conftest.tmp
3683: mv conftest.tmp conftest.in
3684: cp conftest.in conftest.nl
3685: echo >>conftest.nl
3686: $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3687: cmp -s conftest.out conftest.nl || break
3688: # 10000 chars as input seems more than enough
3689: test $lt_ac_count -gt 10 && break
3690: lt_ac_count=`expr $lt_ac_count + 1`
3691: if test $lt_ac_count -gt $lt_ac_max; then
3692: lt_ac_max=$lt_ac_count
3693: lt_cv_path_SED=$lt_ac_sed
3694: fi
3695: done
3696: done
3697:
3698: fi
3699:
3700: SED=$lt_cv_path_SED
3701:
3702: echo "$as_me:$LINENO: result: $SED" >&5
3703: echo "${ECHO_T}$SED" >&6
3704:
3705: test -z "$SED" && SED=sed
3706: Xsed="$SED -e 1s/^X//"
3707:
3708:
3709:
3710:
3711:
3712:
3713:
3714:
3715:
3716:
3717:
3718: echo "$as_me:$LINENO: checking for egrep" >&5
3719: echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3720: if test "${ac_cv_prog_egrep+set}" = set; then
3721: echo $ECHO_N "(cached) $ECHO_C" >&6
3722: else
3723: if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3724: then ac_cv_prog_egrep='grep -E'
3725: else ac_cv_prog_egrep='egrep'
3726: fi
3727: fi
3728: echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3729: echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3730: EGREP=$ac_cv_prog_egrep
3731:
3732:
3733: echo "$as_me:$LINENO: checking for fgrep" >&5
3734: echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
3735: if test "${ac_cv_prog_fgrep+set}" = set; then
3736: echo $ECHO_N "(cached) $ECHO_C" >&6
3737: else
3738: if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
3739: then ac_cv_prog_fgrep='grep -F'
3740: else ac_cv_prog_fgrep='fgrep'
3741: fi
3742: fi
3743: echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
3744: echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
3745: FGREP=$ac_cv_prog_fgrep
3746:
3747:
3748: test -z "$GREP" && GREP=grep
3749:
3750:
3751:
3752:
3753:
3754:
3755:
3756:
3757:
3758:
3759:
3760:
3761:
3762:
3763:
3764:
3765:
3766:
3767:
3768: # Check whether --with-gnu-ld or --without-gnu-ld was given.
3769: if test "${with_gnu_ld+set}" = set; then
3770: withval="$with_gnu_ld"
3771: test "$withval" = no || with_gnu_ld=yes
3772: else
3773: with_gnu_ld=no
3774: fi;
3775: ac_prog=ld
3776: if test "$GCC" = yes; then
3777: # Check if gcc -print-prog-name=ld gives a path.
3778: echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3779: echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3780: case $host in
3781: *-*-mingw*)
3782: # gcc leaves a trailing carriage return which upsets mingw
3783: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3784: *)
3785: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3786: esac
3787: case $ac_prog in
3788: # Accept absolute paths.
3789: [\\/]* | ?:[\\/]*)
3790: re_direlt='/[^/][^/]*/\.\./'
3791: # Canonicalize the pathname of ld
3792: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3793: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3794: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3795: done
3796: test -z "$LD" && LD="$ac_prog"
3797: ;;
3798: "")
3799: # If it fails, then pretend we aren't using GCC.
3800: ac_prog=ld
3801: ;;
3802: *)
3803: # If it is relative, then search for the first ld in PATH.
3804: with_gnu_ld=unknown
3805: ;;
3806: esac
3807: elif test "$with_gnu_ld" = yes; then
3808: echo "$as_me:$LINENO: checking for GNU ld" >&5
3809: echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3810: else
3811: echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3812: echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3813: fi
3814: if test "${lt_cv_path_LD+set}" = set; then
1.15 paf 3815: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 3816: else
3817: if test -z "$LD"; then
1.35 moko 3818: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1.1 parser 3819: for ac_dir in $PATH; do
1.35 moko 3820: IFS="$lt_save_ifs"
1.1 parser 3821: test -z "$ac_dir" && ac_dir=.
3822: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1.15 paf 3823: lt_cv_path_LD="$ac_dir/$ac_prog"
1.1 parser 3824: # Check to see if the program is GNU ld. I'd rather use --version,
1.35 moko 3825: # but apparently some variants of GNU ld only accept -v.
1.1 parser 3826: # Break only if it was the GNU/non-GNU ld that we prefer.
1.35 moko 3827: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3828: *GNU* | *'with BFD'*)
1.1 parser 3829: test "$with_gnu_ld" != no && break
1.35 moko 3830: ;;
3831: *)
1.1 parser 3832: test "$with_gnu_ld" != yes && break
1.35 moko 3833: ;;
3834: esac
1.1 parser 3835: fi
3836: done
1.35 moko 3837: IFS="$lt_save_ifs"
1.1 parser 3838: else
1.15 paf 3839: lt_cv_path_LD="$LD" # Let the user override the test with a path.
1.1 parser 3840: fi
3841: fi
3842:
1.15 paf 3843: LD="$lt_cv_path_LD"
1.1 parser 3844: if test -n "$LD"; then
1.15 paf 3845: echo "$as_me:$LINENO: result: $LD" >&5
3846: echo "${ECHO_T}$LD" >&6
1.1 parser 3847: else
1.15 paf 3848: echo "$as_me:$LINENO: result: no" >&5
3849: echo "${ECHO_T}no" >&6
1.1 parser 3850: fi
1.15 paf 3851: test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3852: echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3853: { (exit 1); exit 1; }; }
3854: echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3855: echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3856: if test "${lt_cv_prog_gnu_ld+set}" = set; then
3857: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 3858: else
1.35 moko 3859: # I'd rather use --version here, but apparently some GNU lds only accept -v.
3860: case `$LD -v 2>&1 </dev/null` in
3861: *GNU* | *'with BFD'*)
1.15 paf 3862: lt_cv_prog_gnu_ld=yes
1.35 moko 3863: ;;
3864: *)
1.15 paf 3865: lt_cv_prog_gnu_ld=no
1.35 moko 3866: ;;
3867: esac
1.1 parser 3868: fi
1.15 paf 3869: echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3870: echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3871: with_gnu_ld=$lt_cv_prog_gnu_ld
1.1 parser 3872:
3873:
3874:
1.35 moko 3875:
3876:
3877:
3878:
3879:
3880:
3881: echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
3882: echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
1.15 paf 3883: if test "${lt_cv_path_NM+set}" = set; then
3884: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 3885: else
3886: if test -n "$NM"; then
3887: # Let the user override the test.
1.15 paf 3888: lt_cv_path_NM="$NM"
1.1 parser 3889: else
1.35 moko 3890: lt_nm_to_check="${ac_tool_prefix}nm"
3891: if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3892: lt_nm_to_check="$lt_nm_to_check nm"
3893: fi
3894: for lt_tmp_nm in $lt_nm_to_check; do
3895: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3896: for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3897: IFS="$lt_save_ifs"
3898: test -z "$ac_dir" && ac_dir=.
3899: tmp_nm="$ac_dir/$lt_tmp_nm"
3900: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3901: # Check to see if the nm accepts a BSD-compat flag.
3902: # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3903: # nm: unknown option "B" ignored
3904: # Tru64's nm complains that /dev/null is an invalid object file
3905: case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3906: */dev/null* | *'Invalid file or object type'*)
3907: lt_cv_path_NM="$tmp_nm -B"
3908: break
3909: ;;
3910: *)
3911: case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3912: */dev/null*)
3913: lt_cv_path_NM="$tmp_nm -p"
3914: break
3915: ;;
3916: *)
3917: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3918: continue # so that we can try to find one that supports BSD flags
3919: ;;
3920: esac
3921: ;;
3922: esac
1.1 parser 3923: fi
1.35 moko 3924: done
3925: IFS="$lt_save_ifs"
1.1 parser 3926: done
1.35 moko 3927: : ${lt_cv_path_NM=no}
1.1 parser 3928: fi
3929: fi
1.35 moko 3930: echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3931: echo "${ECHO_T}$lt_cv_path_NM" >&6
3932: if test "$lt_cv_path_NM" != "no"; then
3933: NM="$lt_cv_path_NM"
3934: else
3935: # Didn't find any BSD compatible name lister, look for dumpbin.
3936: if test -n "$DUMPBIN"; then :
3937: # Let the user override the test.
3938: else
3939: if test -n "$ac_tool_prefix"; then
3940: for ac_prog in dumpbin "link -dump"
3941: do
3942: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3943: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3944: echo "$as_me:$LINENO: checking for $ac_word" >&5
3945: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3946: if test "${ac_cv_prog_DUMPBIN+set}" = set; then
1.15 paf 3947: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 3948: else
1.35 moko 3949: if test -n "$DUMPBIN"; then
3950: ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3951: else
1.15 paf 3952: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3953: for as_dir in $PATH
3954: do
3955: IFS=$as_save_IFS
3956: test -z "$as_dir" && as_dir=.
1.35 moko 3957: for ac_exec_ext in '' $ac_executable_extensions; do
3958: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3959: ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3960: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3961: break 2
3962: fi
3963: done
1.15 paf 3964: done
3965:
1.35 moko 3966: fi
3967: fi
3968: DUMPBIN=$ac_cv_prog_DUMPBIN
3969: if test -n "$DUMPBIN"; then
3970: echo "$as_me:$LINENO: result: $DUMPBIN" >&5
3971: echo "${ECHO_T}$DUMPBIN" >&6
3972: else
3973: echo "$as_me:$LINENO: result: no" >&5
3974: echo "${ECHO_T}no" >&6
3975: fi
1.15 paf 3976:
1.35 moko 3977: test -n "$DUMPBIN" && break
1.15 paf 3978: done
1.35 moko 3979: fi
3980: if test -z "$DUMPBIN"; then
3981: ac_ct_DUMPBIN=$DUMPBIN
3982: for ac_prog in dumpbin "link -dump"
3983: do
3984: # Extract the first word of "$ac_prog", so it can be a program name with args.
3985: set dummy $ac_prog; ac_word=$2
3986: echo "$as_me:$LINENO: checking for $ac_word" >&5
3987: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3988: if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
3989: echo $ECHO_N "(cached) $ECHO_C" >&6
3990: else
3991: if test -n "$ac_ct_DUMPBIN"; then
3992: ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3993: else
3994: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3995: for as_dir in $PATH
3996: do
3997: IFS=$as_save_IFS
3998: test -z "$as_dir" && as_dir=.
3999: for ac_exec_ext in '' $ac_executable_extensions; do
4000: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4001: ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4002: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4003: break 2
4004: fi
4005: done
4006: done
1.15 paf 4007:
1.1 parser 4008: fi
1.35 moko 4009: fi
4010: ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4011: if test -n "$ac_ct_DUMPBIN"; then
4012: echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4013: echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
1.11 paf 4014: else
1.35 moko 4015: echo "$as_me:$LINENO: result: no" >&5
4016: echo "${ECHO_T}no" >&6
1.11 paf 4017: fi
1.15 paf 4018:
1.35 moko 4019: test -n "$ac_ct_DUMPBIN" && break
4020: done
4021: test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
4022:
4023: DUMPBIN=$ac_ct_DUMPBIN
1.15 paf 4024: fi
4025:
1.35 moko 4026: case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4027: *COFF*)
4028: DUMPBIN="$DUMPBIN -symbols"
4029: ;;
4030: *)
4031: DUMPBIN=:
4032: ;;
4033: esac
4034: fi
4035:
4036: if test "$DUMPBIN" != ":"; then
4037: NM="$DUMPBIN"
4038: fi
4039: fi
4040: test -z "$NM" && NM=nm
4041:
4042:
4043:
4044:
4045:
4046:
4047: echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4048: echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4049: if test "${lt_cv_nm_interface+set}" = set; then
4050: echo $ECHO_N "(cached) $ECHO_C" >&6
4051: else
4052: lt_cv_nm_interface="BSD nm"
4053: echo "int some_variable = 0;" > conftest.$ac_ext
4054: (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4055: (eval "$ac_compile" 2>conftest.err)
4056: cat conftest.err >&5
4057: (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4058: (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4059: cat conftest.err >&5
4060: (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4061: cat conftest.out >&5
4062: if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4063: lt_cv_nm_interface="MS dumpbin"
4064: fi
4065: rm -f conftest*
4066: fi
4067: echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4068: echo "${ECHO_T}$lt_cv_nm_interface" >&6
4069:
4070: echo "$as_me:$LINENO: checking whether ln -s works" >&5
4071: echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4072: LN_S=$as_ln_s
4073: if test "$LN_S" = "ln -s"; then
4074: echo "$as_me:$LINENO: result: yes" >&5
4075: echo "${ECHO_T}yes" >&6
4076: else
4077: echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4078: echo "${ECHO_T}no, using $LN_S" >&6
4079: fi
4080:
4081: # find the maximum length of command line arguments
4082: echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4083: echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4084: if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4085: echo $ECHO_N "(cached) $ECHO_C" >&6
4086: else
4087: i=0
4088: teststring="ABCD"
4089:
4090: case $build_os in
4091: msdosdjgpp*)
4092: # On DJGPP, this test can blow up pretty badly due to problems in libc
4093: # (any single argument exceeding 2000 bytes causes a buffer overrun
4094: # during glob expansion). Even if it were fixed, the result of this
4095: # check would be larger than it should be.
4096: lt_cv_sys_max_cmd_len=12288; # 12K is about right
4097: ;;
4098:
4099: gnu*)
4100: # Under GNU Hurd, this test is not required because there is
4101: # no limit to the length of command line arguments.
4102: # Libtool will interpret -1 as no limit whatsoever
4103: lt_cv_sys_max_cmd_len=-1;
4104: ;;
4105:
4106: cygwin* | mingw* | cegcc*)
4107: # On Win9x/ME, this test blows up -- it succeeds, but takes
4108: # about 5 minutes as the teststring grows exponentially.
4109: # Worse, since 9x/ME are not pre-emptively multitasking,
4110: # you end up with a "frozen" computer, even though with patience
4111: # the test eventually succeeds (with a max line length of 256k).
4112: # Instead, let's just punt: use the minimum linelength reported by
4113: # all of the supported platforms: 8192 (on NT/2K/XP).
4114: lt_cv_sys_max_cmd_len=8192;
4115: ;;
4116:
4117: mint*)
4118: # On MiNT this can take a long time and run out of memory.
4119: lt_cv_sys_max_cmd_len=8192;
4120: ;;
4121:
4122: amigaos*)
4123: # On AmigaOS with pdksh, this test takes hours, literally.
4124: # So we just punt and use a minimum line length of 8192.
4125: lt_cv_sys_max_cmd_len=8192;
4126: ;;
4127:
4128: netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4129: # This has been around since 386BSD, at least. Likely further.
4130: if test -x /sbin/sysctl; then
4131: lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4132: elif test -x /usr/sbin/sysctl; then
4133: lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4134: else
4135: lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4136: fi
4137: # And add a safety zone
4138: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4139: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4140: ;;
4141:
4142: interix*)
4143: # We know the value 262144 and hardcode it with a safety zone (like BSD)
4144: lt_cv_sys_max_cmd_len=196608
4145: ;;
4146:
4147: os2*)
4148: # The test takes a long time on OS/2.
4149: lt_cv_sys_max_cmd_len=8192
4150: ;;
4151:
4152: osf*)
4153: # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4154: # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4155: # nice to cause kernel panics so lets avoid the loop below.
4156: # First set a reasonable default.
4157: lt_cv_sys_max_cmd_len=16384
4158: #
4159: if test -x /sbin/sysconfig; then
4160: case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4161: *1*) lt_cv_sys_max_cmd_len=-1 ;;
4162: esac
4163: fi
4164: ;;
4165: sco3.2v5*)
4166: lt_cv_sys_max_cmd_len=102400
4167: ;;
4168: sysv5* | sco5v6* | sysv4.2uw2*)
4169: kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4170: if test -n "$kargmax"; then
4171: lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4172: else
4173: lt_cv_sys_max_cmd_len=32768
4174: fi
4175: ;;
4176: *)
4177: lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4178: if test -n "$lt_cv_sys_max_cmd_len"; then
4179: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4180: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4181: else
4182: # Make teststring a little bigger before we do anything with it.
4183: # a 1K string should be a reasonable start.
4184: for i in 1 2 3 4 5 6 7 8 ; do
4185: teststring=$teststring$teststring
4186: done
4187: SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4188: # If test is not a shell built-in, we'll probably end up computing a
4189: # maximum length that is only half of the actual maximum length, but
4190: # we can't tell.
4191: while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4192: = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4193: test $i != 17 # 1/2 MB should be enough
4194: do
4195: i=`expr $i + 1`
4196: teststring=$teststring$teststring
4197: done
4198: # Only check the string length outside the loop.
4199: lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4200: teststring=
4201: # Add a significant safety factor because C++ compilers can tack on
4202: # massive amounts of additional arguments before passing them to the
4203: # linker. It appears as though 1/2 is a usable value.
4204: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4205: fi
4206: ;;
4207: esac
4208:
4209: fi
4210:
4211: if test -n $lt_cv_sys_max_cmd_len ; then
4212: echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4213: echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4214: else
4215: echo "$as_me:$LINENO: result: none" >&5
4216: echo "${ECHO_T}none" >&6
4217: fi
4218: max_cmd_len=$lt_cv_sys_max_cmd_len
4219:
4220:
4221:
4222:
4223:
4224:
4225: : ${CP="cp -f"}
4226: : ${MV="mv -f"}
4227: : ${RM="rm -f"}
4228:
4229: echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4230: echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4231: # Try some XSI features
4232: xsi_shell=no
4233: ( _lt_dummy="a/b/c"
4234: test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4235: = c,a/b,b/c, \
4236: && eval 'test $(( 1 + 1 )) -eq 2 \
4237: && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4238: && xsi_shell=yes
4239: echo "$as_me:$LINENO: result: $xsi_shell" >&5
4240: echo "${ECHO_T}$xsi_shell" >&6
4241:
4242:
4243: echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4244: echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4245: lt_shell_append=no
4246: ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4247: >/dev/null 2>&1 \
4248: && lt_shell_append=yes
4249: echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4250: echo "${ECHO_T}$lt_shell_append" >&6
4251:
4252:
4253: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4254: lt_unset=unset
4255: else
4256: lt_unset=false
4257: fi
4258:
4259:
4260:
4261:
4262:
4263: # test EBCDIC or ASCII
4264: case `echo X|tr X '\101'` in
4265: A) # ASCII based system
4266: # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4267: lt_SP2NL='tr \040 \012'
4268: lt_NL2SP='tr \015\012 \040\040'
4269: ;;
4270: *) # EBCDIC based system
4271: lt_SP2NL='tr \100 \n'
4272: lt_NL2SP='tr \r\n \100\100'
4273: ;;
4274: esac
4275:
4276:
4277:
4278:
4279:
4280:
4281:
4282:
4283:
4284: echo "$as_me:$LINENO: checking how to convert $build file names to $host format" >&5
4285: echo $ECHO_N "checking how to convert $build file names to $host format... $ECHO_C" >&6
4286: if test "${lt_cv_to_host_file_cmd+set}" = set; then
4287: echo $ECHO_N "(cached) $ECHO_C" >&6
4288: else
4289: case $host in
4290: *-*-mingw* )
4291: case $build in
4292: *-*-mingw* ) # actually msys
4293: lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4294: ;;
4295: *-*-cygwin* )
4296: lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4297: ;;
4298: * ) # otherwise, assume *nix
4299: lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4300: ;;
4301: esac
4302: ;;
4303: *-*-cygwin* )
4304: case $build in
4305: *-*-mingw* ) # actually msys
4306: lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4307: ;;
4308: *-*-cygwin* )
4309: lt_cv_to_host_file_cmd=func_convert_file_noop
4310: ;;
4311: * ) # otherwise, assume *nix
4312: lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4313: ;;
4314: esac
4315: ;;
4316: * ) # unhandled hosts (and "normal" native builds)
4317: lt_cv_to_host_file_cmd=func_convert_file_noop
4318: ;;
4319: esac
4320:
4321: fi
4322:
4323: to_host_file_cmd=$lt_cv_to_host_file_cmd
4324: echo "$as_me:$LINENO: result: $lt_cv_to_host_file_cmd" >&5
4325: echo "${ECHO_T}$lt_cv_to_host_file_cmd" >&6
4326:
4327:
4328:
4329:
4330:
4331: echo "$as_me:$LINENO: checking how to convert $build file names to toolchain format" >&5
4332: echo $ECHO_N "checking how to convert $build file names to toolchain format... $ECHO_C" >&6
4333: if test "${lt_cv_to_tool_file_cmd+set}" = set; then
4334: echo $ECHO_N "(cached) $ECHO_C" >&6
4335: else
4336: #assume ordinary cross tools, or native build.
4337: lt_cv_to_tool_file_cmd=func_convert_file_noop
4338: case $host in
4339: *-*-mingw* )
4340: case $build in
4341: *-*-mingw* ) # actually msys
4342: lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4343: ;;
4344: esac
4345: ;;
4346: esac
4347:
4348: fi
4349:
4350: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4351: echo "$as_me:$LINENO: result: $lt_cv_to_tool_file_cmd" >&5
4352: echo "${ECHO_T}$lt_cv_to_tool_file_cmd" >&6
4353:
4354:
4355:
4356:
4357:
4358: echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4359: echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4360: if test "${lt_cv_ld_reload_flag+set}" = set; then
4361: echo $ECHO_N "(cached) $ECHO_C" >&6
4362: else
4363: lt_cv_ld_reload_flag='-r'
4364: fi
4365: echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4366: echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4367: reload_flag=$lt_cv_ld_reload_flag
4368: case $reload_flag in
4369: "" | " "*) ;;
4370: *) reload_flag=" $reload_flag" ;;
4371: esac
4372: reload_cmds='$LD$reload_flag -o $output$reload_objs'
4373: case $host_os in
4374: cygwin* | mingw* | pw32* | cegcc*)
4375: if test "$GCC" != yes; then
4376: reload_cmds=false
4377: fi
4378: ;;
4379: darwin*)
4380: if test "$GCC" = yes; then
4381: reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4382: else
4383: reload_cmds='$LD$reload_flag -o $output$reload_objs'
4384: fi
4385: ;;
4386: esac
4387:
4388:
4389:
4390:
4391:
4392:
4393:
4394:
4395:
4396: if test -n "$ac_tool_prefix"; then
4397: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4398: set dummy ${ac_tool_prefix}objdump; ac_word=$2
4399: echo "$as_me:$LINENO: checking for $ac_word" >&5
4400: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4401: if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4402: echo $ECHO_N "(cached) $ECHO_C" >&6
4403: else
4404: if test -n "$OBJDUMP"; then
4405: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4406: else
4407: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4408: for as_dir in $PATH
4409: do
4410: IFS=$as_save_IFS
4411: test -z "$as_dir" && as_dir=.
4412: for ac_exec_ext in '' $ac_executable_extensions; do
4413: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4414: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4415: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4416: break 2
4417: fi
4418: done
4419: done
4420:
4421: fi
4422: fi
4423: OBJDUMP=$ac_cv_prog_OBJDUMP
4424: if test -n "$OBJDUMP"; then
4425: echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4426: echo "${ECHO_T}$OBJDUMP" >&6
4427: else
4428: echo "$as_me:$LINENO: result: no" >&5
4429: echo "${ECHO_T}no" >&6
4430: fi
4431:
4432: fi
4433: if test -z "$ac_cv_prog_OBJDUMP"; then
4434: ac_ct_OBJDUMP=$OBJDUMP
4435: # Extract the first word of "objdump", so it can be a program name with args.
4436: set dummy objdump; ac_word=$2
4437: echo "$as_me:$LINENO: checking for $ac_word" >&5
4438: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4439: if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4440: echo $ECHO_N "(cached) $ECHO_C" >&6
4441: else
4442: if test -n "$ac_ct_OBJDUMP"; then
4443: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4444: else
4445: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4446: for as_dir in $PATH
4447: do
4448: IFS=$as_save_IFS
4449: test -z "$as_dir" && as_dir=.
4450: for ac_exec_ext in '' $ac_executable_extensions; do
4451: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4452: ac_cv_prog_ac_ct_OBJDUMP="objdump"
4453: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4454: break 2
4455: fi
4456: done
4457: done
4458:
4459: test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
4460: fi
4461: fi
4462: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4463: if test -n "$ac_ct_OBJDUMP"; then
4464: echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4465: echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
4466: else
4467: echo "$as_me:$LINENO: result: no" >&5
4468: echo "${ECHO_T}no" >&6
4469: fi
4470:
4471: OBJDUMP=$ac_ct_OBJDUMP
4472: else
4473: OBJDUMP="$ac_cv_prog_OBJDUMP"
4474: fi
4475:
4476: test -z "$OBJDUMP" && OBJDUMP=objdump
4477:
4478:
4479:
4480:
4481:
4482:
4483: echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4484: echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
1.15 paf 4485: if test "${lt_cv_deplibs_check_method+set}" = set; then
4486: echo $ECHO_N "(cached) $ECHO_C" >&6
4487: else
4488: lt_cv_file_magic_cmd='$MAGIC_CMD'
4489: lt_cv_file_magic_test_file=
4490: lt_cv_deplibs_check_method='unknown'
4491: # Need to set the preceding variable on all platforms that support
4492: # interlibrary dependencies.
4493: # 'none' -- dependencies not supported.
4494: # `unknown' -- same as none, but documents that we really don't know.
4495: # 'pass_all' -- all dependencies passed with no checks.
4496: # 'test_compile' -- check by making test program.
4497: # 'file_magic [[regex]]' -- check by looking for files in library path
1.35 moko 4498: # which responds to the $file_magic_cmd with a given extended regex.
1.15 paf 4499: # If you have `file' or equivalent on your system and you're not sure
4500: # whether `pass_all' will *always* work, you probably want this one.
4501:
4502: case $host_os in
1.35 moko 4503: aix[4-9]*)
1.15 paf 4504: lt_cv_deplibs_check_method=pass_all
4505: ;;
1.11 paf 4506:
1.15 paf 4507: beos*)
4508: lt_cv_deplibs_check_method=pass_all
4509: ;;
1.1 parser 4510:
1.35 moko 4511: bsdi[45]*)
1.15 paf 4512: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4513: lt_cv_file_magic_cmd='/usr/bin/file -L'
4514: lt_cv_file_magic_test_file=/shlib/libc.so
4515: ;;
1.1 parser 4516:
1.35 moko 4517: cygwin*)
4518: # func_win32_libid is a shell function defined in ltmain.sh
4519: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4520: lt_cv_file_magic_cmd='func_win32_libid'
4521: ;;
4522:
4523: mingw* | pw32*)
4524: # Base MSYS/MinGW do not provide the 'file' command needed by
4525: # func_win32_libid shell function, so use a weaker test based on 'objdump',
4526: # unless we find 'file', for example because we are cross-compiling.
4527: # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4528: if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4529: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4530: lt_cv_file_magic_cmd='func_win32_libid'
4531: else
4532: # Keep this pattern in sync with the one in func_win32_libid.
4533: lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4534: lt_cv_file_magic_cmd='$OBJDUMP -f'
4535: fi
4536: ;;
4537:
4538: cegcc*)
4539: # use the weaker test based on 'objdump'. See mingw*.
4540: lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
1.15 paf 4541: lt_cv_file_magic_cmd='$OBJDUMP -f'
4542: ;;
1.1 parser 4543:
1.15 paf 4544: darwin* | rhapsody*)
1.35 moko 4545: lt_cv_deplibs_check_method=pass_all
1.15 paf 4546: ;;
1.1 parser 4547:
1.35 moko 4548: freebsd* | dragonfly*)
4549: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
1.15 paf 4550: case $host_cpu in
4551: i*86 )
4552: # Not sure whether the presence of OpenBSD here was a mistake.
4553: # Let's accept both of them until this is cleared up.
1.35 moko 4554: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
1.15 paf 4555: lt_cv_file_magic_cmd=/usr/bin/file
4556: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1.1 parser 4557: ;;
4558: esac
1.15 paf 4559: else
4560: lt_cv_deplibs_check_method=pass_all
1.1 parser 4561: fi
4562: ;;
4563:
1.15 paf 4564: gnu*)
4565: lt_cv_deplibs_check_method=pass_all
4566: ;;
1.1 parser 4567:
1.35 moko 4568: haiku*)
4569: lt_cv_deplibs_check_method=pass_all
1.15 paf 4570: ;;
1.1 parser 4571:
1.35 moko 4572: hpux10.20* | hpux11*)
4573: lt_cv_file_magic_cmd=/usr/bin/file
4574: case $host_cpu in
4575: ia64*)
4576: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4577: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4578: ;;
4579: hppa*64*)
4580: 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]'
4581: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
1.15 paf 4582: ;;
4583: *)
1.35 moko 4584: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4585: lt_cv_file_magic_test_file=/usr/lib/libc.sl
1.15 paf 4586: ;;
4587: esac
1.35 moko 4588: ;;
4589:
4590: interix[3-9]*)
4591: # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4592: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4593: ;;
4594:
4595: irix5* | irix6* | nonstopux*)
4596: case $LD in
4597: *-32|*"-32 ") libmagic=32-bit;;
4598: *-n32|*"-n32 ") libmagic=N32;;
4599: *-64|*"-64 ") libmagic=64-bit;;
4600: *) libmagic=never-match;;
4601: esac
1.15 paf 4602: lt_cv_deplibs_check_method=pass_all
4603: ;;
4604:
1.35 moko 4605: # This must be glibc/ELF.
4606: linux* | k*bsd*-gnu | kopensolaris*-gnu)
4607: lt_cv_deplibs_check_method=pass_all
1.15 paf 4608: ;;
4609:
4610: netbsd*)
1.35 moko 4611: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4612: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
1.15 paf 4613: else
1.35 moko 4614: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
1.15 paf 4615: fi
4616: ;;
4617:
4618: newos6*)
4619: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4620: lt_cv_file_magic_cmd=/usr/bin/file
4621: lt_cv_file_magic_test_file=/usr/lib/libnls.so
4622: ;;
1.1 parser 4623:
1.35 moko 4624: *nto* | *qnx*)
4625: lt_cv_deplibs_check_method=pass_all
4626: ;;
4627:
1.15 paf 4628: openbsd*)
1.35 moko 4629: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4630: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
1.15 paf 4631: else
1.35 moko 4632: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
1.1 parser 4633: fi
4634: ;;
4635:
1.15 paf 4636: osf3* | osf4* | osf5*)
4637: lt_cv_deplibs_check_method=pass_all
4638: ;;
4639:
1.35 moko 4640: rdos*)
1.15 paf 4641: lt_cv_deplibs_check_method=pass_all
4642: ;;
4643:
4644: solaris*)
4645: lt_cv_deplibs_check_method=pass_all
4646: ;;
4647:
1.35 moko 4648: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
1.15 paf 4649: lt_cv_deplibs_check_method=pass_all
4650: ;;
4651:
1.35 moko 4652: sysv4 | sysv4.3*)
1.15 paf 4653: case $host_vendor in
4654: motorola)
4655: 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]'
4656: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4657: ;;
4658: ncr)
4659: lt_cv_deplibs_check_method=pass_all
4660: ;;
4661: sequent)
4662: lt_cv_file_magic_cmd='/bin/file'
4663: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4664: ;;
4665: sni)
4666: lt_cv_file_magic_cmd='/bin/file'
4667: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4668: lt_cv_file_magic_test_file=/lib/libc.so
4669: ;;
4670: siemens)
4671: lt_cv_deplibs_check_method=pass_all
4672: ;;
1.35 moko 4673: pc)
4674: lt_cv_deplibs_check_method=pass_all
4675: ;;
1.15 paf 4676: esac
4677: ;;
1.35 moko 4678:
4679: tpf*)
4680: lt_cv_deplibs_check_method=pass_all
4681: ;;
1.15 paf 4682: esac
4683:
4684: fi
4685: echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4686: echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
1.35 moko 4687:
4688: file_magic_glob=
4689: want_nocaseglob=no
4690: if test "$build" = "$host"; then
4691: case $host_os in
4692: mingw* | pw32*)
4693: if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
4694: want_nocaseglob=yes
4695: else
4696: file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
4697: fi
4698: ;;
4699: esac
4700: fi
4701:
1.15 paf 4702: file_magic_cmd=$lt_cv_file_magic_cmd
4703: deplibs_check_method=$lt_cv_deplibs_check_method
1.35 moko 4704: test -z "$deplibs_check_method" && deplibs_check_method=unknown
4705:
4706:
1.15 paf 4707:
4708:
4709:
4710:
4711:
4712:
4713:
4714:
1.35 moko 4715:
4716:
4717:
4718:
4719:
4720:
4721:
4722:
4723:
4724:
4725:
4726:
4727: if test -n "$ac_tool_prefix"; then
4728: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4729: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4730: echo "$as_me:$LINENO: checking for $ac_word" >&5
4731: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4732: if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4733: echo $ECHO_N "(cached) $ECHO_C" >&6
4734: else
4735: if test -n "$DLLTOOL"; then
4736: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4737: else
4738: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4739: for as_dir in $PATH
4740: do
4741: IFS=$as_save_IFS
4742: test -z "$as_dir" && as_dir=.
4743: for ac_exec_ext in '' $ac_executable_extensions; do
4744: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4745: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4746: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4747: break 2
4748: fi
4749: done
4750: done
4751:
4752: fi
4753: fi
4754: DLLTOOL=$ac_cv_prog_DLLTOOL
4755: if test -n "$DLLTOOL"; then
4756: echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4757: echo "${ECHO_T}$DLLTOOL" >&6
4758: else
4759: echo "$as_me:$LINENO: result: no" >&5
4760: echo "${ECHO_T}no" >&6
4761: fi
4762:
4763: fi
4764: if test -z "$ac_cv_prog_DLLTOOL"; then
4765: ac_ct_DLLTOOL=$DLLTOOL
4766: # Extract the first word of "dlltool", so it can be a program name with args.
4767: set dummy dlltool; ac_word=$2
4768: echo "$as_me:$LINENO: checking for $ac_word" >&5
4769: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4770: if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
1.15 paf 4771: echo $ECHO_N "(cached) $ECHO_C" >&6
1.11 paf 4772: else
1.35 moko 4773: if test -n "$ac_ct_DLLTOOL"; then
4774: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4775: else
4776: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4777: for as_dir in $PATH
4778: do
4779: IFS=$as_save_IFS
4780: test -z "$as_dir" && as_dir=.
4781: for ac_exec_ext in '' $ac_executable_extensions; do
4782: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4783: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4784: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4785: break 2
4786: fi
4787: done
4788: done
4789:
4790: test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
4791: fi
4792: fi
4793: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4794: if test -n "$ac_ct_DLLTOOL"; then
4795: echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4796: echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
4797: else
4798: echo "$as_me:$LINENO: result: no" >&5
4799: echo "${ECHO_T}no" >&6
4800: fi
4801:
4802: DLLTOOL=$ac_ct_DLLTOOL
4803: else
4804: DLLTOOL="$ac_cv_prog_DLLTOOL"
4805: fi
4806:
4807: test -z "$DLLTOOL" && DLLTOOL=dlltool
4808:
4809:
4810:
4811:
1.15 paf 4812:
4813:
4814:
1.35 moko 4815: echo "$as_me:$LINENO: checking how to associate runtime and link libraries" >&5
4816: echo $ECHO_N "checking how to associate runtime and link libraries... $ECHO_C" >&6
4817: if test "${lt_cv_sharedlib_from_linklib_cmd+set}" = set; then
4818: echo $ECHO_N "(cached) $ECHO_C" >&6
4819: else
4820: lt_cv_sharedlib_from_linklib_cmd='unknown'
1.15 paf 4821:
4822: case $host_os in
1.35 moko 4823: cygwin* | mingw* | pw32* | cegcc*)
4824: # two different shell functions defined in ltmain.sh
4825: # decide which to use based on capabilities of $DLLTOOL
4826: case `$DLLTOOL --help 2>&1` in
4827: *--identify-strict*)
4828: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
4829: ;;
4830: *)
4831: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
4832: ;;
4833: esac
1.15 paf 4834: ;;
1.35 moko 4835: *)
4836: # fallback: assume linklib IS sharedlib
4837: lt_cv_sharedlib_from_linklib_cmd="$ECHO"
1.15 paf 4838: ;;
4839: esac
4840:
4841: fi
1.35 moko 4842: echo "$as_me:$LINENO: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
4843: echo "${ECHO_T}$lt_cv_sharedlib_from_linklib_cmd" >&6
4844: sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
4845: test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
1.15 paf 4846:
4847:
4848:
4849:
4850:
4851:
4852:
4853:
1.35 moko 4854: if test -n "$ac_tool_prefix"; then
4855: for ac_prog in ar
4856: do
4857: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4858: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4859: echo "$as_me:$LINENO: checking for $ac_word" >&5
4860: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4861: if test "${ac_cv_prog_AR+set}" = set; then
4862: echo $ECHO_N "(cached) $ECHO_C" >&6
4863: else
4864: if test -n "$AR"; then
4865: ac_cv_prog_AR="$AR" # Let the user override the test.
4866: else
4867: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4868: for as_dir in $PATH
4869: do
4870: IFS=$as_save_IFS
4871: test -z "$as_dir" && as_dir=.
4872: for ac_exec_ext in '' $ac_executable_extensions; do
4873: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4874: ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4875: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4876: break 2
1.15 paf 4877: fi
1.35 moko 4878: done
1.15 paf 4879: done
4880:
1.11 paf 4881: fi
4882: fi
1.35 moko 4883: AR=$ac_cv_prog_AR
4884: if test -n "$AR"; then
4885: echo "$as_me:$LINENO: result: $AR" >&5
4886: echo "${ECHO_T}$AR" >&6
1.11 paf 4887: else
1.35 moko 4888: echo "$as_me:$LINENO: result: no" >&5
4889: echo "${ECHO_T}no" >&6
1.11 paf 4890: fi
4891:
1.35 moko 4892: test -n "$AR" && break
4893: done
1.24 paf 4894: fi
1.35 moko 4895: if test -z "$AR"; then
4896: ac_ct_AR=$AR
4897: for ac_prog in ar
4898: do
4899: # Extract the first word of "$ac_prog", so it can be a program name with args.
4900: set dummy $ac_prog; ac_word=$2
4901: echo "$as_me:$LINENO: checking for $ac_word" >&5
4902: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4903: if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
1.15 paf 4904: echo $ECHO_N "(cached) $ECHO_C" >&6
1.11 paf 4905: else
1.35 moko 4906: if test -n "$ac_ct_AR"; then
4907: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4908: else
4909: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4910: for as_dir in $PATH
1.15 paf 4911: do
1.35 moko 4912: IFS=$as_save_IFS
4913: test -z "$as_dir" && as_dir=.
4914: for ac_exec_ext in '' $ac_executable_extensions; do
4915: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4916: ac_cv_prog_ac_ct_AR="$ac_prog"
4917: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4918: break 2
1.15 paf 4919: fi
1.35 moko 4920: done
4921: done
1.15 paf 4922:
1.11 paf 4923: fi
4924: fi
1.35 moko 4925: ac_ct_AR=$ac_cv_prog_ac_ct_AR
4926: if test -n "$ac_ct_AR"; then
4927: echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4928: echo "${ECHO_T}$ac_ct_AR" >&6
1.15 paf 4929: else
1.35 moko 4930: echo "$as_me:$LINENO: result: no" >&5
4931: echo "${ECHO_T}no" >&6
1.11 paf 4932: fi
4933:
1.35 moko 4934: test -n "$ac_ct_AR" && break
1.15 paf 4935: done
1.35 moko 4936: test -n "$ac_ct_AR" || ac_ct_AR="false"
4937:
4938: AR=$ac_ct_AR
1.11 paf 4939: fi
1.15 paf 4940:
1.35 moko 4941: : ${AR=ar}
4942: : ${AR_FLAGS=cru}
4943:
1.15 paf 4944:
4945:
1.11 paf 4946:
1.15 paf 4947:
1.11 paf 4948:
4949:
1.15 paf 4950:
1.11 paf 4951:
1.15 paf 4952:
4953:
1.35 moko 4954: echo "$as_me:$LINENO: checking for archiver @FILE support" >&5
4955: echo $ECHO_N "checking for archiver @FILE support... $ECHO_C" >&6
4956: if test "${lt_cv_ar_at_file+set}" = set; then
1.15 paf 4957: echo $ECHO_N "(cached) $ECHO_C" >&6
4958: else
1.35 moko 4959: lt_cv_ar_at_file=no
4960: cat >conftest.$ac_ext <<_ACEOF
1.15 paf 4961: /* confdefs.h. */
4962: _ACEOF
4963: cat confdefs.h >>conftest.$ac_ext
4964: cat >>conftest.$ac_ext <<_ACEOF
4965: /* end confdefs.h. */
4966:
4967: int
4968: main ()
4969: {
4970:
4971: ;
4972: return 0;
4973: }
4974: _ACEOF
4975: rm -f conftest.$ac_objext
4976: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.25 paf 4977: (eval $ac_compile) 2>conftest.er1
1.15 paf 4978: ac_status=$?
1.25 paf 4979: grep -v '^ *+' conftest.er1 >conftest.err
4980: rm -f conftest.er1
4981: cat conftest.err >&5
1.15 paf 4982: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983: (exit $ac_status); } &&
1.25 paf 4984: { ac_try='test -z "$ac_c_werror_flag"
4985: || test ! -s conftest.err'
4986: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4987: (eval $ac_try) 2>&5
4988: ac_status=$?
4989: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990: (exit $ac_status); }; } &&
4991: { ac_try='test -s conftest.$ac_objext'
1.15 paf 4992: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4993: (eval $ac_try) 2>&5
4994: ac_status=$?
4995: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996: (exit $ac_status); }; }; then
1.35 moko 4997: echo conftest.$ac_objext > conftest.lst
4998: lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
4999: { (eval echo "$as_me:$LINENO: \"$lt_ar_try\"") >&5
5000: (eval $lt_ar_try) 2>&5
5001: ac_status=$?
5002: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003: (exit $ac_status); }
5004: if test "$ac_status" -eq 0; then
5005: # Ensure the archiver fails upon bogus file names.
5006: rm -f conftest.$ac_objext libconftest.a
5007: { (eval echo "$as_me:$LINENO: \"$lt_ar_try\"") >&5
5008: (eval $lt_ar_try) 2>&5
5009: ac_status=$?
5010: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011: (exit $ac_status); }
5012: if test "$ac_status" -ne 0; then
5013: lt_cv_ar_at_file=@
5014: fi
5015: fi
5016: rm -f conftest.* libconftest.a
5017:
1.11 paf 5018: else
1.15 paf 5019: echo "$as_me: failed program was:" >&5
5020: sed 's/^/| /' conftest.$ac_ext >&5
5021:
1.11 paf 5022: fi
1.25 paf 5023: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 paf 5024:
1.35 moko 5025: fi
5026: echo "$as_me:$LINENO: result: $lt_cv_ar_at_file" >&5
5027: echo "${ECHO_T}$lt_cv_ar_at_file" >&6
5028:
5029: if test "x$lt_cv_ar_at_file" = xno; then
5030: archiver_list_spec=
1.11 paf 5031: else
1.35 moko 5032: archiver_list_spec=$lt_cv_ar_at_file
1.11 paf 5033: fi
1.15 paf 5034:
1.11 paf 5035:
1.1 parser 5036:
1.35 moko 5037:
5038:
5039:
5040:
5041: if test -n "$ac_tool_prefix"; then
5042: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5043: set dummy ${ac_tool_prefix}strip; ac_word=$2
5044: echo "$as_me:$LINENO: checking for $ac_word" >&5
5045: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5046: if test "${ac_cv_prog_STRIP+set}" = set; then
5047: echo $ECHO_N "(cached) $ECHO_C" >&6
5048: else
5049: if test -n "$STRIP"; then
5050: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5051: else
5052: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5053: for as_dir in $PATH
5054: do
5055: IFS=$as_save_IFS
5056: test -z "$as_dir" && as_dir=.
5057: for ac_exec_ext in '' $ac_executable_extensions; do
5058: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5059: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5060: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5061: break 2
5062: fi
5063: done
5064: done
5065:
5066: fi
5067: fi
5068: STRIP=$ac_cv_prog_STRIP
5069: if test -n "$STRIP"; then
5070: echo "$as_me:$LINENO: result: $STRIP" >&5
5071: echo "${ECHO_T}$STRIP" >&6
1.1 parser 5072: else
1.35 moko 5073: echo "$as_me:$LINENO: result: no" >&5
5074: echo "${ECHO_T}no" >&6
1.1 parser 5075: fi
5076:
1.15 paf 5077: fi
1.35 moko 5078: if test -z "$ac_cv_prog_STRIP"; then
5079: ac_ct_STRIP=$STRIP
5080: # Extract the first word of "strip", so it can be a program name with args.
5081: set dummy strip; ac_word=$2
5082: echo "$as_me:$LINENO: checking for $ac_word" >&5
5083: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5084: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5085: echo $ECHO_N "(cached) $ECHO_C" >&6
1.15 paf 5086: else
1.35 moko 5087: if test -n "$ac_ct_STRIP"; then
5088: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1.1 parser 5089: else
1.35 moko 5090: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5091: for as_dir in $PATH
5092: do
5093: IFS=$as_save_IFS
5094: test -z "$as_dir" && as_dir=.
5095: for ac_exec_ext in '' $ac_executable_extensions; do
5096: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5097: ac_cv_prog_ac_ct_STRIP="strip"
5098: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5099: break 2
5100: fi
5101: done
5102: done
1.15 paf 5103:
1.35 moko 5104: test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1.1 parser 5105: fi
1.15 paf 5106: fi
1.35 moko 5107: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5108: if test -n "$ac_ct_STRIP"; then
5109: echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5110: echo "${ECHO_T}$ac_ct_STRIP" >&6
5111: else
5112: echo "$as_me:$LINENO: result: no" >&5
5113: echo "${ECHO_T}no" >&6
1.15 paf 5114: fi
1.1 parser 5115:
1.35 moko 5116: STRIP=$ac_ct_STRIP
5117: else
5118: STRIP="$ac_cv_prog_STRIP"
1.15 paf 5119: fi
1.1 parser 5120:
1.35 moko 5121: test -z "$STRIP" && STRIP=:
1.1 parser 5122:
5123:
5124:
5125:
5126:
5127:
1.35 moko 5128: if test -n "$ac_tool_prefix"; then
5129: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5130: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5131: echo "$as_me:$LINENO: checking for $ac_word" >&5
5132: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5133: if test "${ac_cv_prog_RANLIB+set}" = set; then
1.15 paf 5134: echo $ECHO_N "(cached) $ECHO_C" >&6
5135: else
1.35 moko 5136: if test -n "$RANLIB"; then
5137: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1.15 paf 5138: else
1.35 moko 5139: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5140: for as_dir in $PATH
5141: do
5142: IFS=$as_save_IFS
5143: test -z "$as_dir" && as_dir=.
5144: for ac_exec_ext in '' $ac_executable_extensions; do
5145: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5146: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5147: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5148: break 2
5149: fi
5150: done
5151: done
1.15 paf 5152:
5153: fi
5154: fi
1.35 moko 5155: RANLIB=$ac_cv_prog_RANLIB
5156: if test -n "$RANLIB"; then
5157: echo "$as_me:$LINENO: result: $RANLIB" >&5
5158: echo "${ECHO_T}$RANLIB" >&6
5159: else
5160: echo "$as_me:$LINENO: result: no" >&5
5161: echo "${ECHO_T}no" >&6
5162: fi
1.15 paf 5163:
5164: fi
1.35 moko 5165: if test -z "$ac_cv_prog_RANLIB"; then
5166: ac_ct_RANLIB=$RANLIB
5167: # Extract the first word of "ranlib", so it can be a program name with args.
5168: set dummy ranlib; ac_word=$2
5169: echo "$as_me:$LINENO: checking for $ac_word" >&5
5170: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5171: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5172: echo $ECHO_N "(cached) $ECHO_C" >&6
5173: else
5174: if test -n "$ac_ct_RANLIB"; then
5175: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5176: else
5177: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5178: for as_dir in $PATH
5179: do
5180: IFS=$as_save_IFS
5181: test -z "$as_dir" && as_dir=.
5182: for ac_exec_ext in '' $ac_executable_extensions; do
5183: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5184: ac_cv_prog_ac_ct_RANLIB="ranlib"
5185: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5186: break 2
5187: fi
5188: done
1.15 paf 5189: done
5190:
1.35 moko 5191: test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5192: fi
1.15 paf 5193: fi
1.35 moko 5194: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5195: if test -n "$ac_ct_RANLIB"; then
5196: echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5197: echo "${ECHO_T}$ac_ct_RANLIB" >&6
1.15 paf 5198: else
1.35 moko 5199: echo "$as_me:$LINENO: result: no" >&5
5200: echo "${ECHO_T}no" >&6
1.15 paf 5201: fi
5202:
1.35 moko 5203: RANLIB=$ac_ct_RANLIB
1.15 paf 5204: else
1.35 moko 5205: RANLIB="$ac_cv_prog_RANLIB"
1.15 paf 5206: fi
5207:
1.35 moko 5208: test -z "$RANLIB" && RANLIB=:
5209:
5210:
5211:
5212:
5213:
5214:
5215: # Determine commands to create old-style static archives.
5216: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5217: old_postinstall_cmds='chmod 644 $oldlib'
5218: old_postuninstall_cmds=
1.15 paf 5219:
1.35 moko 5220: if test -n "$RANLIB"; then
5221: case $host_os in
5222: openbsd*)
5223: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
1.15 paf 5224: ;;
1.35 moko 5225: *)
5226: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
1.15 paf 5227: ;;
1.35 moko 5228: esac
5229: old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5230: fi
5231:
5232: case $host_os in
5233: darwin*)
5234: lock_old_archive_extraction=yes ;;
5235: *)
5236: lock_old_archive_extraction=no ;;
1.15 paf 5237: esac
5238:
5239:
5240:
5241:
5242:
5243:
5244:
5245:
5246:
5247:
5248:
5249:
5250:
5251:
5252:
5253:
5254:
1.1 parser 5255:
5256:
1.15 paf 5257:
5258:
5259:
5260:
5261:
5262:
1.1 parser 5263:
5264:
5265:
1.15 paf 5266:
5267:
5268:
5269:
5270:
5271:
1.35 moko 5272:
5273:
5274:
5275:
5276:
5277: # If no C compiler was specified, use CC.
5278: LTCC=${LTCC-"$CC"}
5279:
5280: # If no C compiler flags were specified, use CFLAGS.
5281: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5282:
5283: # Allow CC to be a program name with arguments.
5284: compiler=$CC
5285:
5286:
5287: # Check for command to grab the raw symbol name followed by C symbol from nm.
5288: echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5289: echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5290: if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
1.15 paf 5291: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 5292: else
5293:
1.35 moko 5294: # These are sane defaults that work on at least a few old systems.
5295: # [They come from Ultrix. What could be older than Ultrix?!! ;)]
1.15 paf 5296:
1.35 moko 5297: # Character class describing NM global symbol codes.
5298: symcode='[BCDEGRST]'
1.15 paf 5299:
1.35 moko 5300: # Regexp to match symbols that can be accessed directly from C.
5301: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
1.15 paf 5302:
1.35 moko 5303: # Define system-specific variables.
5304: case $host_os in
5305: aix*)
5306: symcode='[BCDT]'
5307: ;;
5308: cygwin* | mingw* | pw32* | cegcc*)
5309: symcode='[ABCDGISTW]'
5310: ;;
5311: hpux*)
5312: if test "$host_cpu" = ia64; then
5313: symcode='[ABCDEGRST]'
5314: fi
5315: ;;
5316: irix* | nonstopux*)
5317: symcode='[BCDEGRST]'
5318: ;;
5319: osf*)
5320: symcode='[BCDEGQRST]'
5321: ;;
5322: solaris*)
5323: symcode='[BDRT]'
5324: ;;
5325: sco3.2v5*)
5326: symcode='[DT]'
5327: ;;
5328: sysv4.2uw2*)
5329: symcode='[DT]'
5330: ;;
5331: sysv5* | sco5v6* | unixware* | OpenUNIX*)
5332: symcode='[ABDT]'
5333: ;;
5334: sysv4)
5335: symcode='[DFNSTU]'
5336: ;;
5337: esac
5338:
5339: # If we're using GNU nm, then use its standard symbol codes.
5340: case `$NM -V 2>&1` in
5341: *GNU* | *'with BFD'*)
5342: symcode='[ABCDGIRSTW]' ;;
5343: esac
5344:
5345: # Transform an extracted symbol line into a proper C declaration.
5346: # Some systems (esp. on ia64) link data and code symbols differently,
5347: # so use this general approach.
5348: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5349:
5350: # Transform an extracted symbol line into symbol name and symbol address
5351: lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5352: 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'"
5353:
5354: # Handle CRLF in mingw tool chain
5355: opt_cr=
5356: case $build_os in
5357: mingw*)
5358: opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5359: ;;
5360: esac
5361:
5362: # Try without a prefix underscore, then with it.
5363: for ac_symprfx in "" "_"; do
5364:
5365: # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5366: symxfrm="\\1 $ac_symprfx\\2 \\2"
5367:
5368: # Write the raw and C identifiers.
5369: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5370: # Fake it for dumpbin and say T for any non-static function
5371: # and D for any global variable.
5372: # Also find C++ and __fastcall symbols from MSVC++,
5373: # which start with @ or ?.
5374: lt_cv_sys_global_symbol_pipe="$AWK '"\
5375: " {last_section=section; section=\$ 3};"\
5376: " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5377: " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5378: " \$ 0!~/External *\|/{next};"\
5379: " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5380: " {if(hide[section]) next};"\
5381: " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5382: " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5383: " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5384: " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5385: " ' prfx=^$ac_symprfx"
5386: else
5387: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5388: fi
5389: lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5390:
5391: # Check to see that the pipe works correctly.
5392: pipe_works=no
1.15 paf 5393:
1.35 moko 5394: rm -f conftest*
5395: cat > conftest.$ac_ext <<_LT_EOF
5396: #ifdef __cplusplus
5397: extern "C" {
5398: #endif
5399: char nm_test_var;
5400: void nm_test_func(void);
5401: void nm_test_func(void){}
5402: #ifdef __cplusplus
1.15 paf 5403: }
1.35 moko 5404: #endif
5405: int main(){nm_test_var='a';nm_test_func();return(0);}
5406: _LT_EOF
5407:
5408: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5409: (eval $ac_compile) 2>&5
1.15 paf 5410: ac_status=$?
5411: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.35 moko 5412: (exit $ac_status); }; then
5413: # Now try to grab the symbols.
5414: nlist=conftest.nm
5415: if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\"") >&5
5416: (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
1.25 paf 5417: ac_status=$?
5418: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.35 moko 5419: (exit $ac_status); } && test -s "$nlist"; then
5420: # Try sorting and uniquifying the output.
5421: if sort "$nlist" | uniq > "$nlist"T; then
5422: mv -f "$nlist"T "$nlist"
5423: else
5424: rm -f "$nlist"T
5425: fi
5426:
5427: # Make sure that we snagged all the symbols we need.
5428: if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5429: if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5430: cat <<_LT_EOF > conftest.$ac_ext
5431: /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5432: #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5433: /* DATA imports from DLLs on WIN32 con't be const, because runtime
5434: relocations are performed -- see ld's documentation on pseudo-relocs. */
5435: # define LT_DLSYM_CONST
5436: #elif defined(__osf__)
5437: /* This system does not cope well with relocations in const data. */
5438: # define LT_DLSYM_CONST
5439: #else
5440: # define LT_DLSYM_CONST const
5441: #endif
5442:
5443: #ifdef __cplusplus
5444: extern "C" {
5445: #endif
5446:
5447: _LT_EOF
5448: # Now generate the symbol file.
5449: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5450:
5451: cat <<_LT_EOF >> conftest.$ac_ext
5452:
5453: /* The mapping between symbol names and symbols. */
5454: LT_DLSYM_CONST struct {
5455: const char *name;
5456: void *address;
5457: }
5458: lt__PROGRAM__LTX_preloaded_symbols[] =
5459: {
5460: { "@PROGRAM@", (void *) 0 },
5461: _LT_EOF
5462: $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5463: cat <<\_LT_EOF >> conftest.$ac_ext
5464: {0, (void *) 0}
5465: };
5466:
5467: /* This works around a problem in FreeBSD linker */
5468: #ifdef FREEBSD_WORKAROUND
5469: static const void *lt_preloaded_setup() {
5470: return lt__PROGRAM__LTX_preloaded_symbols;
5471: }
5472: #endif
5473:
5474: #ifdef __cplusplus
5475: }
5476: #endif
5477: _LT_EOF
5478: # Now try linking the two files.
5479: mv conftest.$ac_objext conftstm.$ac_objext
5480: lt_globsym_save_LIBS=$LIBS
5481: lt_globsym_save_CFLAGS=$CFLAGS
5482: LIBS="conftstm.$ac_objext"
5483: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5484: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5485: (eval $ac_link) 2>&5
1.15 paf 5486: ac_status=$?
5487: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.35 moko 5488: (exit $ac_status); } && test -s conftest${ac_exeext}; then
5489: pipe_works=yes
5490: fi
5491: LIBS=$lt_globsym_save_LIBS
5492: CFLAGS=$lt_globsym_save_CFLAGS
5493: else
5494: echo "cannot find nm_test_func in $nlist" >&5
5495: fi
5496: else
5497: echo "cannot find nm_test_var in $nlist" >&5
5498: fi
5499: else
5500: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5501: fi
5502: else
5503: echo "$progname: failed program was:" >&5
5504: cat conftest.$ac_ext >&5
5505: fi
5506: rm -rf conftest* conftst*
5507:
5508: # Do not use the global_symbol_pipe unless it works.
5509: if test "$pipe_works" = yes; then
5510: break
5511: else
5512: lt_cv_sys_global_symbol_pipe=
5513: fi
5514: done
5515:
5516: fi
5517:
5518: if test -z "$lt_cv_sys_global_symbol_pipe"; then
5519: lt_cv_sys_global_symbol_to_cdecl=
5520: fi
5521: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5522: echo "$as_me:$LINENO: result: failed" >&5
5523: echo "${ECHO_T}failed" >&6
1.1 parser 5524: else
1.35 moko 5525: echo "$as_me:$LINENO: result: ok" >&5
5526: echo "${ECHO_T}ok" >&6
5527: fi
1.15 paf 5528:
1.35 moko 5529: # Response file support.
5530: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5531: nm_file_list_spec='@'
5532: elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5533: nm_file_list_spec='@'
1.1 parser 5534: fi
5535:
1.15 paf 5536:
5537:
5538:
5539:
5540:
5541:
5542:
5543:
5544:
5545:
1.1 parser 5546:
5547:
1.15 paf 5548:
5549:
5550:
1.1 parser 5551:
1.15 paf 5552:
5553:
5554:
5555:
1.35 moko 5556:
5557:
5558:
5559:
5560:
5561:
5562: echo "$as_me:$LINENO: checking for sysroot" >&5
5563: echo $ECHO_N "checking for sysroot... $ECHO_C" >&6
5564:
5565: # Check whether --with-sysroot or --without-sysroot was given.
5566: if test "${with_sysroot+set}" = set; then
5567: withval="$with_sysroot"
5568:
1.15 paf 5569: else
1.35 moko 5570: with_sysroot=no
1.15 paf 5571: fi;
5572:
1.35 moko 5573: lt_sysroot=
5574: case ${with_sysroot} in #(
5575: yes)
5576: if test "$GCC" = yes; then
5577: lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5578: fi
5579: ;; #(
5580: /*)
5581: lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5582: ;; #(
5583: no|'')
5584: ;; #(
5585: *)
5586: echo "$as_me:$LINENO: result: ${with_sysroot}" >&5
5587: echo "${ECHO_T}${with_sysroot}" >&6
5588: { { echo "$as_me:$LINENO: error: The sysroot must be an absolute path." >&5
5589: echo "$as_me: error: The sysroot must be an absolute path." >&2;}
5590: { (exit 1); exit 1; }; }
5591: ;;
5592: esac
5593:
5594: echo "$as_me:$LINENO: result: ${lt_sysroot:-no}" >&5
5595: echo "${ECHO_T}${lt_sysroot:-no}" >&6
5596:
5597:
5598:
5599:
5600:
5601: # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5602: if test "${enable_libtool_lock+set}" = set; then
5603: enableval="$enable_libtool_lock"
1.15 paf 5604:
1.35 moko 5605: fi;
5606: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1.1 parser 5607:
1.35 moko 5608: # Some flags need to be propagated to the compiler or linker for good
5609: # libtool support.
5610: case $host in
5611: ia64-*-hpux*)
5612: # Find out which ABI we are using.
5613: echo 'int i;' > conftest.$ac_ext
5614: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5615: (eval $ac_compile) 2>&5
5616: ac_status=$?
5617: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618: (exit $ac_status); }; then
5619: case `/usr/bin/file conftest.$ac_objext` in
5620: *ELF-32*)
5621: HPUX_IA64_MODE="32"
5622: ;;
5623: *ELF-64*)
5624: HPUX_IA64_MODE="64"
5625: ;;
1.15 paf 5626: esac
5627: fi
1.35 moko 5628: rm -rf conftest*
5629: ;;
5630: *-*-irix6*)
5631: # Find out which ABI we are using.
5632: echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5633: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5634: (eval $ac_compile) 2>&5
1.15 paf 5635: ac_status=$?
5636: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.35 moko 5637: (exit $ac_status); }; then
5638: if test "$lt_cv_prog_gnu_ld" = yes; then
5639: case `/usr/bin/file conftest.$ac_objext` in
5640: *32-bit*)
5641: LD="${LD-ld} -melf32bsmip"
5642: ;;
5643: *N32*)
5644: LD="${LD-ld} -melf32bmipn32"
5645: ;;
5646: *64-bit*)
5647: LD="${LD-ld} -melf64bmip"
5648: ;;
5649: esac
5650: else
5651: case `/usr/bin/file conftest.$ac_objext` in
5652: *32-bit*)
5653: LD="${LD-ld} -32"
5654: ;;
5655: *N32*)
5656: LD="${LD-ld} -n32"
5657: ;;
5658: *64-bit*)
5659: LD="${LD-ld} -64"
5660: ;;
5661: esac
5662: fi
5663: fi
5664: rm -rf conftest*
5665: ;;
5666:
5667: x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5668: s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5669: # Find out which ABI we are using.
5670: echo 'int i;' > conftest.$ac_ext
5671: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5672: (eval $ac_compile) 2>&5
1.25 paf 5673: ac_status=$?
5674: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.35 moko 5675: (exit $ac_status); }; then
5676: case `/usr/bin/file conftest.o` in
5677: *32-bit*)
5678: case $host in
5679: x86_64-*kfreebsd*-gnu)
5680: LD="${LD-ld} -m elf_i386_fbsd"
5681: ;;
5682: x86_64-*linux*)
5683: LD="${LD-ld} -m elf_i386"
5684: ;;
5685: ppc64-*linux*|powerpc64-*linux*)
5686: LD="${LD-ld} -m elf32ppclinux"
5687: ;;
5688: s390x-*linux*)
5689: LD="${LD-ld} -m elf_s390"
5690: ;;
5691: sparc64-*linux*)
5692: LD="${LD-ld} -m elf32_sparc"
5693: ;;
5694: esac
1.15 paf 5695: ;;
1.35 moko 5696: *64-bit*)
5697: case $host in
5698: x86_64-*kfreebsd*-gnu)
5699: LD="${LD-ld} -m elf_x86_64_fbsd"
5700: ;;
5701: x86_64-*linux*)
5702: LD="${LD-ld} -m elf_x86_64"
5703: ;;
5704: ppc*-*linux*|powerpc*-*linux*)
5705: LD="${LD-ld} -m elf64ppc"
5706: ;;
5707: s390*-*linux*|s390*-*tpf*)
5708: LD="${LD-ld} -m elf64_s390"
5709: ;;
5710: sparc*-*linux*)
5711: LD="${LD-ld} -m elf64_sparc"
5712: ;;
5713: esac
1.15 paf 5714: ;;
1.35 moko 5715: esac
1.15 paf 5716: fi
1.35 moko 5717: rm -rf conftest*
5718: ;;
1.15 paf 5719:
1.35 moko 5720: *-*-sco3.2v5*)
5721: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5722: SAVE_CFLAGS="$CFLAGS"
5723: CFLAGS="$CFLAGS -belf"
5724: echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5725: echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5726: if test "${lt_cv_cc_needs_belf+set}" = set; then
1.15 paf 5727: echo $ECHO_N "(cached) $ECHO_C" >&6
5728: else
1.35 moko 5729: ac_ext=c
5730: ac_cpp='$CPP $CPPFLAGS'
5731: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5732: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5733: ac_compiler_gnu=$ac_cv_c_compiler_gnu
5734:
5735: cat >conftest.$ac_ext <<_ACEOF
1.15 paf 5736: /* confdefs.h. */
5737: _ACEOF
5738: cat confdefs.h >>conftest.$ac_ext
5739: cat >>conftest.$ac_ext <<_ACEOF
5740: /* end confdefs.h. */
5741:
5742: int
5743: main ()
5744: {
5745:
5746: ;
5747: return 0;
5748: }
5749: _ACEOF
5750: rm -f conftest.$ac_objext conftest$ac_exeext
5751: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25 paf 5752: (eval $ac_link) 2>conftest.er1
1.15 paf 5753: ac_status=$?
1.25 paf 5754: grep -v '^ *+' conftest.er1 >conftest.err
5755: rm -f conftest.er1
5756: cat conftest.err >&5
1.15 paf 5757: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758: (exit $ac_status); } &&
1.25 paf 5759: { ac_try='test -z "$ac_c_werror_flag"
5760: || test ! -s conftest.err'
5761: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5762: (eval $ac_try) 2>&5
5763: ac_status=$?
5764: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5765: (exit $ac_status); }; } &&
5766: { ac_try='test -s conftest$ac_exeext'
1.15 paf 5767: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5768: (eval $ac_try) 2>&5
5769: ac_status=$?
5770: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771: (exit $ac_status); }; }; then
1.35 moko 5772: lt_cv_cc_needs_belf=yes
1.15 paf 5773: else
5774: echo "$as_me: failed program was:" >&5
5775: sed 's/^/| /' conftest.$ac_ext >&5
5776:
1.35 moko 5777: lt_cv_cc_needs_belf=no
1.15 paf 5778: fi
1.25 paf 5779: rm -f conftest.err conftest.$ac_objext \
5780: conftest$ac_exeext conftest.$ac_ext
1.35 moko 5781: ac_ext=c
5782: ac_cpp='$CPP $CPPFLAGS'
5783: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5784: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5785: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.15 paf 5786:
5787: fi
1.35 moko 5788: echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5789: echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5790: if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5791: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5792: CFLAGS="$SAVE_CFLAGS"
5793: fi
5794: ;;
5795: *-*solaris*)
5796: # Find out which ABI we are using.
5797: echo 'int i;' > conftest.$ac_ext
5798: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5799: (eval $ac_compile) 2>&5
5800: ac_status=$?
5801: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802: (exit $ac_status); }; then
5803: case `/usr/bin/file conftest.o` in
5804: *64-bit*)
5805: case $lt_cv_prog_gnu_ld in
5806: yes*)
5807: case $host in
5808: i?86-*-solaris*)
5809: LD="${LD-ld} -m elf_x86_64"
5810: ;;
5811: sparc*-*-solaris*)
5812: LD="${LD-ld} -m elf64_sparc"
5813: ;;
5814: esac
5815: # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
5816: if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
5817: LD="${LD-ld}_sol2"
5818: fi
5819: ;;
5820: *)
5821: if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5822: LD="${LD-ld} -64"
5823: fi
5824: ;;
5825: esac
5826: ;;
5827: esac
5828: fi
5829: rm -rf conftest*
5830: ;;
5831: esac
1.15 paf 5832:
1.35 moko 5833: need_locks="$enable_libtool_lock"
1.15 paf 5834:
1.35 moko 5835: if test -n "$ac_tool_prefix"; then
5836: # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
5837: set dummy ${ac_tool_prefix}mt; ac_word=$2
5838: echo "$as_me:$LINENO: checking for $ac_word" >&5
5839: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5840: if test "${ac_cv_prog_MANIFEST_TOOL+set}" = set; then
1.15 paf 5841: echo $ECHO_N "(cached) $ECHO_C" >&6
5842: else
1.35 moko 5843: if test -n "$MANIFEST_TOOL"; then
5844: ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
5845: else
5846: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5847: for as_dir in $PATH
5848: do
5849: IFS=$as_save_IFS
5850: test -z "$as_dir" && as_dir=.
5851: for ac_exec_ext in '' $ac_executable_extensions; do
5852: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5853: ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
5854: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5855: break 2
5856: fi
5857: done
5858: done
1.15 paf 5859:
1.35 moko 5860: fi
5861: fi
5862: MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
5863: if test -n "$MANIFEST_TOOL"; then
5864: echo "$as_me:$LINENO: result: $MANIFEST_TOOL" >&5
5865: echo "${ECHO_T}$MANIFEST_TOOL" >&6
1.15 paf 5866: else
1.35 moko 5867: echo "$as_me:$LINENO: result: no" >&5
5868: echo "${ECHO_T}no" >&6
1.15 paf 5869: fi
5870:
5871: fi
1.35 moko 5872: if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
5873: ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
5874: # Extract the first word of "mt", so it can be a program name with args.
5875: set dummy mt; ac_word=$2
5876: echo "$as_me:$LINENO: checking for $ac_word" >&5
5877: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5878: if test "${ac_cv_prog_ac_ct_MANIFEST_TOOL+set}" = set; then
5879: echo $ECHO_N "(cached) $ECHO_C" >&6
5880: else
5881: if test -n "$ac_ct_MANIFEST_TOOL"; then
5882: ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
5883: else
5884: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5885: for as_dir in $PATH
5886: do
5887: IFS=$as_save_IFS
5888: test -z "$as_dir" && as_dir=.
5889: for ac_exec_ext in '' $ac_executable_extensions; do
5890: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5891: ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
5892: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5893: break 2
5894: fi
5895: done
5896: done
1.15 paf 5897:
1.35 moko 5898: test -z "$ac_cv_prog_ac_ct_MANIFEST_TOOL" && ac_cv_prog_ac_ct_MANIFEST_TOOL=":"
5899: fi
5900: fi
5901: ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
5902: if test -n "$ac_ct_MANIFEST_TOOL"; then
5903: echo "$as_me:$LINENO: result: $ac_ct_MANIFEST_TOOL" >&5
5904: echo "${ECHO_T}$ac_ct_MANIFEST_TOOL" >&6
5905: else
5906: echo "$as_me:$LINENO: result: no" >&5
5907: echo "${ECHO_T}no" >&6
5908: fi
5909:
5910: MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
5911: else
5912: MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
5913: fi
1.15 paf 5914:
1.35 moko 5915: test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
5916: echo "$as_me:$LINENO: checking if $MANIFEST_TOOL is a manifest tool" >&5
5917: echo $ECHO_N "checking if $MANIFEST_TOOL is a manifest tool... $ECHO_C" >&6
5918: if test "${lt_cv_path_mainfest_tool+set}" = set; then
1.15 paf 5919: echo $ECHO_N "(cached) $ECHO_C" >&6
5920: else
1.35 moko 5921: lt_cv_path_mainfest_tool=no
5922: echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
5923: $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
5924: cat conftest.err >&5
5925: if $GREP 'Manifest Tool' conftest.out > /dev/null; then
5926: lt_cv_path_mainfest_tool=yes
5927: fi
5928: rm -f conftest*
5929: fi
5930: echo "$as_me:$LINENO: result: $lt_cv_path_mainfest_tool" >&5
5931: echo "${ECHO_T}$lt_cv_path_mainfest_tool" >&6
5932: if test "x$lt_cv_path_mainfest_tool" != xyes; then
5933: MANIFEST_TOOL=:
5934: fi
5935:
5936:
5937:
1.15 paf 5938:
5939:
5940:
1.35 moko 5941: case $host_os in
5942: rhapsody* | darwin*)
5943: if test -n "$ac_tool_prefix"; then
5944: # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5945: set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5946: echo "$as_me:$LINENO: checking for $ac_word" >&5
5947: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5948: if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5949: echo $ECHO_N "(cached) $ECHO_C" >&6
1.15 paf 5950: else
1.35 moko 5951: if test -n "$DSYMUTIL"; then
5952: ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5953: else
5954: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5955: for as_dir in $PATH
5956: do
5957: IFS=$as_save_IFS
5958: test -z "$as_dir" && as_dir=.
5959: for ac_exec_ext in '' $ac_executable_extensions; do
5960: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5961: ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5962: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5963: break 2
5964: fi
5965: done
5966: done
1.15 paf 5967:
5968: fi
1.35 moko 5969: fi
5970: DSYMUTIL=$ac_cv_prog_DSYMUTIL
5971: if test -n "$DSYMUTIL"; then
5972: echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5973: echo "${ECHO_T}$DSYMUTIL" >&6
5974: else
5975: echo "$as_me:$LINENO: result: no" >&5
5976: echo "${ECHO_T}no" >&6
5977: fi
1.15 paf 5978:
5979: fi
1.35 moko 5980: if test -z "$ac_cv_prog_DSYMUTIL"; then
5981: ac_ct_DSYMUTIL=$DSYMUTIL
5982: # Extract the first word of "dsymutil", so it can be a program name with args.
5983: set dummy dsymutil; ac_word=$2
5984: echo "$as_me:$LINENO: checking for $ac_word" >&5
5985: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5986: if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5987: echo $ECHO_N "(cached) $ECHO_C" >&6
5988: else
5989: if test -n "$ac_ct_DSYMUTIL"; then
5990: ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5991: else
5992: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5993: for as_dir in $PATH
5994: do
5995: IFS=$as_save_IFS
5996: test -z "$as_dir" && as_dir=.
5997: for ac_exec_ext in '' $ac_executable_extensions; do
5998: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5999: ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6000: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6001: break 2
6002: fi
6003: done
6004: done
1.15 paf 6005:
1.35 moko 6006: test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
6007: fi
6008: fi
6009: ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6010: if test -n "$ac_ct_DSYMUTIL"; then
6011: echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6012: echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
1.15 paf 6013: else
1.35 moko 6014: echo "$as_me:$LINENO: result: no" >&5
6015: echo "${ECHO_T}no" >&6
1.15 paf 6016: fi
6017:
1.35 moko 6018: DSYMUTIL=$ac_ct_DSYMUTIL
1.15 paf 6019: else
1.35 moko 6020: DSYMUTIL="$ac_cv_prog_DSYMUTIL"
1.15 paf 6021: fi
6022:
1.35 moko 6023: if test -n "$ac_tool_prefix"; then
6024: # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6025: set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6026: echo "$as_me:$LINENO: checking for $ac_word" >&5
6027: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6028: if test "${ac_cv_prog_NMEDIT+set}" = set; then
6029: echo $ECHO_N "(cached) $ECHO_C" >&6
6030: else
6031: if test -n "$NMEDIT"; then
6032: ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6033: else
6034: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6035: for as_dir in $PATH
6036: do
6037: IFS=$as_save_IFS
6038: test -z "$as_dir" && as_dir=.
6039: for ac_exec_ext in '' $ac_executable_extensions; do
6040: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6041: ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6042: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6043: break 2
6044: fi
6045: done
6046: done
1.15 paf 6047:
1.35 moko 6048: fi
6049: fi
6050: NMEDIT=$ac_cv_prog_NMEDIT
6051: if test -n "$NMEDIT"; then
6052: echo "$as_me:$LINENO: result: $NMEDIT" >&5
6053: echo "${ECHO_T}$NMEDIT" >&6
6054: else
6055: echo "$as_me:$LINENO: result: no" >&5
6056: echo "${ECHO_T}no" >&6
6057: fi
1.15 paf 6058:
1.35 moko 6059: fi
6060: if test -z "$ac_cv_prog_NMEDIT"; then
6061: ac_ct_NMEDIT=$NMEDIT
6062: # Extract the first word of "nmedit", so it can be a program name with args.
6063: set dummy nmedit; ac_word=$2
6064: echo "$as_me:$LINENO: checking for $ac_word" >&5
6065: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6066: if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6067: echo $ECHO_N "(cached) $ECHO_C" >&6
6068: else
6069: if test -n "$ac_ct_NMEDIT"; then
6070: ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
1.15 paf 6071: else
1.35 moko 6072: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6073: for as_dir in $PATH
6074: do
6075: IFS=$as_save_IFS
6076: test -z "$as_dir" && as_dir=.
6077: for ac_exec_ext in '' $ac_executable_extensions; do
6078: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6079: ac_cv_prog_ac_ct_NMEDIT="nmedit"
6080: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6081: break 2
6082: fi
6083: done
6084: done
1.15 paf 6085:
1.35 moko 6086: test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
6087: fi
6088: fi
6089: ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6090: if test -n "$ac_ct_NMEDIT"; then
6091: echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6092: echo "${ECHO_T}$ac_ct_NMEDIT" >&6
6093: else
6094: echo "$as_me:$LINENO: result: no" >&5
6095: echo "${ECHO_T}no" >&6
1.15 paf 6096: fi
6097:
1.35 moko 6098: NMEDIT=$ac_ct_NMEDIT
6099: else
6100: NMEDIT="$ac_cv_prog_NMEDIT"
1.15 paf 6101: fi
6102:
1.35 moko 6103: if test -n "$ac_tool_prefix"; then
6104: # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6105: set dummy ${ac_tool_prefix}lipo; ac_word=$2
6106: echo "$as_me:$LINENO: checking for $ac_word" >&5
6107: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6108: if test "${ac_cv_prog_LIPO+set}" = set; then
6109: echo $ECHO_N "(cached) $ECHO_C" >&6
6110: else
6111: if test -n "$LIPO"; then
6112: ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6113: else
6114: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6115: for as_dir in $PATH
6116: do
6117: IFS=$as_save_IFS
6118: test -z "$as_dir" && as_dir=.
6119: for ac_exec_ext in '' $ac_executable_extensions; do
6120: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6121: ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6122: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6123: break 2
6124: fi
6125: done
6126: done
1.15 paf 6127:
1.35 moko 6128: fi
6129: fi
6130: LIPO=$ac_cv_prog_LIPO
6131: if test -n "$LIPO"; then
6132: echo "$as_me:$LINENO: result: $LIPO" >&5
6133: echo "${ECHO_T}$LIPO" >&6
6134: else
6135: echo "$as_me:$LINENO: result: no" >&5
6136: echo "${ECHO_T}no" >&6
6137: fi
1.15 paf 6138:
1.35 moko 6139: fi
6140: if test -z "$ac_cv_prog_LIPO"; then
6141: ac_ct_LIPO=$LIPO
6142: # Extract the first word of "lipo", so it can be a program name with args.
6143: set dummy lipo; ac_word=$2
6144: echo "$as_me:$LINENO: checking for $ac_word" >&5
6145: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6146: if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6147: echo $ECHO_N "(cached) $ECHO_C" >&6
6148: else
6149: if test -n "$ac_ct_LIPO"; then
6150: ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6151: else
6152: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6153: for as_dir in $PATH
6154: do
6155: IFS=$as_save_IFS
6156: test -z "$as_dir" && as_dir=.
6157: for ac_exec_ext in '' $ac_executable_extensions; do
6158: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6159: ac_cv_prog_ac_ct_LIPO="lipo"
6160: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6161: break 2
1.15 paf 6162: fi
1.35 moko 6163: done
6164: done
6165:
6166: test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
6167: fi
6168: fi
6169: ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6170: if test -n "$ac_ct_LIPO"; then
6171: echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6172: echo "${ECHO_T}$ac_ct_LIPO" >&6
6173: else
6174: echo "$as_me:$LINENO: result: no" >&5
6175: echo "${ECHO_T}no" >&6
6176: fi
6177:
6178: LIPO=$ac_ct_LIPO
6179: else
6180: LIPO="$ac_cv_prog_LIPO"
6181: fi
1.15 paf 6182:
1.35 moko 6183: if test -n "$ac_tool_prefix"; then
6184: # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6185: set dummy ${ac_tool_prefix}otool; ac_word=$2
6186: echo "$as_me:$LINENO: checking for $ac_word" >&5
6187: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6188: if test "${ac_cv_prog_OTOOL+set}" = set; then
6189: echo $ECHO_N "(cached) $ECHO_C" >&6
6190: else
6191: if test -n "$OTOOL"; then
6192: ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6193: else
6194: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6195: for as_dir in $PATH
6196: do
6197: IFS=$as_save_IFS
6198: test -z "$as_dir" && as_dir=.
6199: for ac_exec_ext in '' $ac_executable_extensions; do
6200: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6201: ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6202: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6203: break 2
6204: fi
6205: done
6206: done
1.15 paf 6207:
1.35 moko 6208: fi
6209: fi
6210: OTOOL=$ac_cv_prog_OTOOL
6211: if test -n "$OTOOL"; then
6212: echo "$as_me:$LINENO: result: $OTOOL" >&5
6213: echo "${ECHO_T}$OTOOL" >&6
6214: else
6215: echo "$as_me:$LINENO: result: no" >&5
6216: echo "${ECHO_T}no" >&6
6217: fi
1.15 paf 6218:
1.35 moko 6219: fi
6220: if test -z "$ac_cv_prog_OTOOL"; then
6221: ac_ct_OTOOL=$OTOOL
6222: # Extract the first word of "otool", so it can be a program name with args.
6223: set dummy otool; ac_word=$2
6224: echo "$as_me:$LINENO: checking for $ac_word" >&5
6225: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6226: if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6227: echo $ECHO_N "(cached) $ECHO_C" >&6
6228: else
6229: if test -n "$ac_ct_OTOOL"; then
6230: ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6231: else
6232: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6233: for as_dir in $PATH
6234: do
6235: IFS=$as_save_IFS
6236: test -z "$as_dir" && as_dir=.
6237: for ac_exec_ext in '' $ac_executable_extensions; do
6238: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6239: ac_cv_prog_ac_ct_OTOOL="otool"
6240: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6241: break 2
6242: fi
6243: done
6244: done
1.15 paf 6245:
1.35 moko 6246: test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
6247: fi
6248: fi
6249: ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6250: if test -n "$ac_ct_OTOOL"; then
6251: echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6252: echo "${ECHO_T}$ac_ct_OTOOL" >&6
6253: else
6254: echo "$as_me:$LINENO: result: no" >&5
6255: echo "${ECHO_T}no" >&6
6256: fi
1.15 paf 6257:
1.35 moko 6258: OTOOL=$ac_ct_OTOOL
6259: else
6260: OTOOL="$ac_cv_prog_OTOOL"
6261: fi
1.15 paf 6262:
1.35 moko 6263: if test -n "$ac_tool_prefix"; then
6264: # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6265: set dummy ${ac_tool_prefix}otool64; ac_word=$2
6266: echo "$as_me:$LINENO: checking for $ac_word" >&5
6267: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6268: if test "${ac_cv_prog_OTOOL64+set}" = set; then
6269: echo $ECHO_N "(cached) $ECHO_C" >&6
6270: else
6271: if test -n "$OTOOL64"; then
6272: ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6273: else
6274: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6275: for as_dir in $PATH
6276: do
6277: IFS=$as_save_IFS
6278: test -z "$as_dir" && as_dir=.
6279: for ac_exec_ext in '' $ac_executable_extensions; do
6280: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6281: ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6282: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6283: break 2
6284: fi
6285: done
6286: done
1.15 paf 6287:
1.35 moko 6288: fi
6289: fi
6290: OTOOL64=$ac_cv_prog_OTOOL64
6291: if test -n "$OTOOL64"; then
6292: echo "$as_me:$LINENO: result: $OTOOL64" >&5
6293: echo "${ECHO_T}$OTOOL64" >&6
6294: else
6295: echo "$as_me:$LINENO: result: no" >&5
6296: echo "${ECHO_T}no" >&6
6297: fi
1.15 paf 6298:
1.35 moko 6299: fi
6300: if test -z "$ac_cv_prog_OTOOL64"; then
6301: ac_ct_OTOOL64=$OTOOL64
6302: # Extract the first word of "otool64", so it can be a program name with args.
6303: set dummy otool64; ac_word=$2
6304: echo "$as_me:$LINENO: checking for $ac_word" >&5
6305: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6306: if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6307: echo $ECHO_N "(cached) $ECHO_C" >&6
6308: else
6309: if test -n "$ac_ct_OTOOL64"; then
6310: ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6311: else
6312: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6313: for as_dir in $PATH
6314: do
6315: IFS=$as_save_IFS
6316: test -z "$as_dir" && as_dir=.
6317: for ac_exec_ext in '' $ac_executable_extensions; do
6318: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6319: ac_cv_prog_ac_ct_OTOOL64="otool64"
6320: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6321: break 2
6322: fi
6323: done
6324: done
1.15 paf 6325:
1.35 moko 6326: test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
6327: fi
6328: fi
6329: ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6330: if test -n "$ac_ct_OTOOL64"; then
6331: echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6332: echo "${ECHO_T}$ac_ct_OTOOL64" >&6
6333: else
6334: echo "$as_me:$LINENO: result: no" >&5
6335: echo "${ECHO_T}no" >&6
6336: fi
1.15 paf 6337:
1.35 moko 6338: OTOOL64=$ac_ct_OTOOL64
6339: else
6340: OTOOL64="$ac_cv_prog_OTOOL64"
6341: fi
1.15 paf 6342:
6343:
6344:
6345:
6346:
6347:
6348:
6349:
6350:
6351:
6352:
6353:
6354:
6355:
6356:
6357:
6358:
6359:
6360:
6361:
6362:
6363:
6364:
6365:
6366:
6367:
6368:
1.35 moko 6369: echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6370: echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
6371: if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6372: echo $ECHO_N "(cached) $ECHO_C" >&6
6373: else
6374: lt_cv_apple_cc_single_mod=no
6375: if test -z "${LT_MULTI_MODULE}"; then
6376: # By default we will add the -single_module flag. You can override
6377: # by either setting the environment variable LT_MULTI_MODULE
6378: # non-empty at configure time, or by adding -multi_module to the
6379: # link flags.
6380: rm -rf libconftest.dylib*
6381: echo "int foo(void){return 1;}" > conftest.c
6382: echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6383: -dynamiclib -Wl,-single_module conftest.c" >&5
6384: $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6385: -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6386: _lt_result=$?
6387: # If there is a non-empty error log, and "single_module"
6388: # appears in it, assume the flag caused a linker warning
6389: if test -s conftest.err && $GREP single_module conftest.err; then
6390: cat conftest.err >&5
6391: # Otherwise, if the output was created with a 0 exit code from
6392: # the compiler, it worked.
6393: elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6394: lt_cv_apple_cc_single_mod=yes
6395: else
6396: cat conftest.err >&5
6397: fi
6398: rm -rf libconftest.dylib*
6399: rm -f conftest.*
6400: fi
6401: fi
6402: echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6403: echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
1.15 paf 6404:
1.35 moko 6405: echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6406: echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
6407: if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6408: echo $ECHO_N "(cached) $ECHO_C" >&6
6409: else
6410: lt_cv_ld_exported_symbols_list=no
6411: save_LDFLAGS=$LDFLAGS
6412: echo "_main" > conftest.sym
6413: LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6414: cat >conftest.$ac_ext <<_ACEOF
6415: /* confdefs.h. */
6416: _ACEOF
6417: cat confdefs.h >>conftest.$ac_ext
6418: cat >>conftest.$ac_ext <<_ACEOF
6419: /* end confdefs.h. */
1.15 paf 6420:
1.35 moko 6421: int
6422: main ()
6423: {
1.15 paf 6424:
1.35 moko 6425: ;
6426: return 0;
6427: }
6428: _ACEOF
6429: rm -f conftest.$ac_objext conftest$ac_exeext
6430: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6431: (eval $ac_link) 2>conftest.er1
6432: ac_status=$?
6433: grep -v '^ *+' conftest.er1 >conftest.err
6434: rm -f conftest.er1
6435: cat conftest.err >&5
6436: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437: (exit $ac_status); } &&
6438: { ac_try='test -z "$ac_c_werror_flag"
6439: || test ! -s conftest.err'
6440: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6441: (eval $ac_try) 2>&5
6442: ac_status=$?
6443: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6444: (exit $ac_status); }; } &&
6445: { ac_try='test -s conftest$ac_exeext'
6446: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6447: (eval $ac_try) 2>&5
6448: ac_status=$?
6449: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6450: (exit $ac_status); }; }; then
6451: lt_cv_ld_exported_symbols_list=yes
6452: else
6453: echo "$as_me: failed program was:" >&5
6454: sed 's/^/| /' conftest.$ac_ext >&5
1.15 paf 6455:
1.35 moko 6456: lt_cv_ld_exported_symbols_list=no
6457: fi
6458: rm -f conftest.err conftest.$ac_objext \
6459: conftest$ac_exeext conftest.$ac_ext
6460: LDFLAGS="$save_LDFLAGS"
1.15 paf 6461:
1.35 moko 6462: fi
6463: echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6464: echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
1.15 paf 6465:
1.35 moko 6466: echo "$as_me:$LINENO: checking for -force_load linker flag" >&5
6467: echo $ECHO_N "checking for -force_load linker flag... $ECHO_C" >&6
6468: if test "${lt_cv_ld_force_load+set}" = set; then
6469: echo $ECHO_N "(cached) $ECHO_C" >&6
6470: else
6471: lt_cv_ld_force_load=no
6472: cat > conftest.c << _LT_EOF
6473: int forced_loaded() { return 2;}
6474: _LT_EOF
6475: echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6476: $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6477: echo "$AR cru libconftest.a conftest.o" >&5
6478: $AR cru libconftest.a conftest.o 2>&5
6479: echo "$RANLIB libconftest.a" >&5
6480: $RANLIB libconftest.a 2>&5
6481: cat > conftest.c << _LT_EOF
6482: int main() { return 0;}
6483: _LT_EOF
6484: echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6485: $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6486: _lt_result=$?
6487: if test -s conftest.err && $GREP force_load conftest.err; then
6488: cat conftest.err >&5
6489: elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
6490: lt_cv_ld_force_load=yes
6491: else
6492: cat conftest.err >&5
6493: fi
6494: rm -f conftest.err libconftest.a conftest conftest.c
6495: rm -rf conftest.dSYM
1.15 paf 6496:
1.35 moko 6497: fi
6498: echo "$as_me:$LINENO: result: $lt_cv_ld_force_load" >&5
6499: echo "${ECHO_T}$lt_cv_ld_force_load" >&6
6500: case $host_os in
6501: rhapsody* | darwin1.[012])
6502: _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6503: darwin1.*)
6504: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6505: darwin*) # darwin 5.x on
6506: # if running on 10.5 or later, the deployment target defaults
6507: # to the OS version, if on x86, and 10.4, the deployment
6508: # target defaults to 10.4. Don't you love it?
6509: case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6510: 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6511: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6512: 10.[012]*)
6513: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6514: 10.*)
6515: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6516: esac
1.15 paf 6517: ;;
1.35 moko 6518: esac
6519: if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6520: _lt_dar_single_mod='$single_module'
6521: fi
6522: if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6523: _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6524: else
6525: _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
1.15 paf 6526: fi
1.35 moko 6527: if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6528: _lt_dsymutil='~$DSYMUTIL $lib || :'
1.15 paf 6529: else
1.35 moko 6530: _lt_dsymutil=
1.15 paf 6531: fi
6532: ;;
1.35 moko 6533: esac
1.15 paf 6534:
1.35 moko 6535: ac_ext=c
6536: ac_cpp='$CPP $CPPFLAGS'
6537: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6538: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6539: ac_compiler_gnu=$ac_cv_c_compiler_gnu
6540: echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6541: echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6542: # On Suns, sometimes $CPP names a directory.
6543: if test -n "$CPP" && test -d "$CPP"; then
6544: CPP=
6545: fi
6546: if test -z "$CPP"; then
6547: if test "${ac_cv_prog_CPP+set}" = set; then
6548: echo $ECHO_N "(cached) $ECHO_C" >&6
6549: else
6550: # Double quotes because CPP needs to be expanded
6551: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6552: do
6553: ac_preproc_ok=false
6554: for ac_c_preproc_warn_flag in '' yes
6555: do
6556: # Use a header file that comes with gcc, so configuring glibc
6557: # with a fresh cross-compiler works.
6558: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6559: # <limits.h> exists even on freestanding compilers.
6560: # On the NeXT, cc -E runs the code through the compiler's parser,
6561: # not just through cpp. "Syntax error" is here to catch this case.
6562: cat >conftest.$ac_ext <<_ACEOF
6563: /* confdefs.h. */
6564: _ACEOF
6565: cat confdefs.h >>conftest.$ac_ext
6566: cat >>conftest.$ac_ext <<_ACEOF
6567: /* end confdefs.h. */
6568: #ifdef __STDC__
6569: # include <limits.h>
6570: #else
6571: # include <assert.h>
6572: #endif
6573: Syntax error
6574: _ACEOF
6575: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6576: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6577: ac_status=$?
6578: grep -v '^ *+' conftest.er1 >conftest.err
6579: rm -f conftest.er1
6580: cat conftest.err >&5
6581: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582: (exit $ac_status); } >/dev/null; then
6583: if test -s conftest.err; then
6584: ac_cpp_err=$ac_c_preproc_warn_flag
6585: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6586: else
6587: ac_cpp_err=
6588: fi
6589: else
6590: ac_cpp_err=yes
1.15 paf 6591: fi
1.35 moko 6592: if test -z "$ac_cpp_err"; then
6593: :
6594: else
6595: echo "$as_me: failed program was:" >&5
6596: sed 's/^/| /' conftest.$ac_ext >&5
1.15 paf 6597:
1.35 moko 6598: # Broken: fails on valid input.
6599: continue
6600: fi
6601: rm -f conftest.err conftest.$ac_ext
1.15 paf 6602:
1.35 moko 6603: # OK, works on sane cases. Now check whether non-existent headers
6604: # can be detected and how.
6605: cat >conftest.$ac_ext <<_ACEOF
6606: /* confdefs.h. */
6607: _ACEOF
6608: cat confdefs.h >>conftest.$ac_ext
6609: cat >>conftest.$ac_ext <<_ACEOF
6610: /* end confdefs.h. */
6611: #include <ac_nonexistent.h>
6612: _ACEOF
6613: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6614: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6615: ac_status=$?
6616: grep -v '^ *+' conftest.er1 >conftest.err
6617: rm -f conftest.er1
6618: cat conftest.err >&5
6619: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620: (exit $ac_status); } >/dev/null; then
6621: if test -s conftest.err; then
6622: ac_cpp_err=$ac_c_preproc_warn_flag
6623: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1.15 paf 6624: else
1.35 moko 6625: ac_cpp_err=
1.15 paf 6626: fi
6627: else
1.35 moko 6628: ac_cpp_err=yes
6629: fi
6630: if test -z "$ac_cpp_err"; then
6631: # Broken: success on invalid input.
6632: continue
6633: else
6634: echo "$as_me: failed program was:" >&5
6635: sed 's/^/| /' conftest.$ac_ext >&5
6636:
6637: # Passes both tests.
6638: ac_preproc_ok=:
6639: break
1.15 paf 6640: fi
1.35 moko 6641: rm -f conftest.err conftest.$ac_ext
1.15 paf 6642:
1.35 moko 6643: done
6644: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6645: rm -f conftest.err conftest.$ac_ext
6646: if $ac_preproc_ok; then
6647: break
1.15 paf 6648: fi
6649:
1.35 moko 6650: done
6651: ac_cv_prog_CPP=$CPP
1.15 paf 6652:
1.35 moko 6653: fi
6654: CPP=$ac_cv_prog_CPP
6655: else
6656: ac_cv_prog_CPP=$CPP
6657: fi
6658: echo "$as_me:$LINENO: result: $CPP" >&5
6659: echo "${ECHO_T}$CPP" >&6
6660: ac_preproc_ok=false
6661: for ac_c_preproc_warn_flag in '' yes
6662: do
6663: # Use a header file that comes with gcc, so configuring glibc
6664: # with a fresh cross-compiler works.
6665: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6666: # <limits.h> exists even on freestanding compilers.
6667: # On the NeXT, cc -E runs the code through the compiler's parser,
6668: # not just through cpp. "Syntax error" is here to catch this case.
6669: cat >conftest.$ac_ext <<_ACEOF
6670: /* confdefs.h. */
6671: _ACEOF
6672: cat confdefs.h >>conftest.$ac_ext
6673: cat >>conftest.$ac_ext <<_ACEOF
6674: /* end confdefs.h. */
6675: #ifdef __STDC__
6676: # include <limits.h>
6677: #else
6678: # include <assert.h>
6679: #endif
6680: Syntax error
6681: _ACEOF
6682: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6683: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6684: ac_status=$?
6685: grep -v '^ *+' conftest.er1 >conftest.err
6686: rm -f conftest.er1
6687: cat conftest.err >&5
6688: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689: (exit $ac_status); } >/dev/null; then
6690: if test -s conftest.err; then
6691: ac_cpp_err=$ac_c_preproc_warn_flag
6692: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6693: else
6694: ac_cpp_err=
6695: fi
6696: else
6697: ac_cpp_err=yes
6698: fi
6699: if test -z "$ac_cpp_err"; then
6700: :
6701: else
6702: echo "$as_me: failed program was:" >&5
6703: sed 's/^/| /' conftest.$ac_ext >&5
1.15 paf 6704:
1.35 moko 6705: # Broken: fails on valid input.
6706: continue
6707: fi
6708: rm -f conftest.err conftest.$ac_ext
1.15 paf 6709:
1.35 moko 6710: # OK, works on sane cases. Now check whether non-existent headers
6711: # can be detected and how.
6712: cat >conftest.$ac_ext <<_ACEOF
6713: /* confdefs.h. */
6714: _ACEOF
6715: cat confdefs.h >>conftest.$ac_ext
6716: cat >>conftest.$ac_ext <<_ACEOF
6717: /* end confdefs.h. */
6718: #include <ac_nonexistent.h>
6719: _ACEOF
6720: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6721: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6722: ac_status=$?
6723: grep -v '^ *+' conftest.er1 >conftest.err
6724: rm -f conftest.er1
6725: cat conftest.err >&5
6726: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6727: (exit $ac_status); } >/dev/null; then
6728: if test -s conftest.err; then
6729: ac_cpp_err=$ac_c_preproc_warn_flag
6730: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1.15 paf 6731: else
1.35 moko 6732: ac_cpp_err=
1.15 paf 6733: fi
1.35 moko 6734: else
6735: ac_cpp_err=yes
6736: fi
6737: if test -z "$ac_cpp_err"; then
6738: # Broken: success on invalid input.
6739: continue
6740: else
6741: echo "$as_me: failed program was:" >&5
6742: sed 's/^/| /' conftest.$ac_ext >&5
6743:
6744: # Passes both tests.
6745: ac_preproc_ok=:
6746: break
6747: fi
6748: rm -f conftest.err conftest.$ac_ext
6749:
6750: done
6751: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6752: rm -f conftest.err conftest.$ac_ext
6753: if $ac_preproc_ok; then
6754: :
6755: else
6756: { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6757: See \`config.log' for more details." >&5
6758: echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6759: See \`config.log' for more details." >&2;}
6760: { (exit 1); exit 1; }; }
6761: fi
1.15 paf 6762:
1.35 moko 6763: ac_ext=c
6764: ac_cpp='$CPP $CPPFLAGS'
6765: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6766: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6767: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.15 paf 6768:
6769:
1.35 moko 6770: echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6771: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6772: if test "${ac_cv_header_stdc+set}" = set; then
6773: echo $ECHO_N "(cached) $ECHO_C" >&6
6774: else
6775: cat >conftest.$ac_ext <<_ACEOF
6776: /* confdefs.h. */
6777: _ACEOF
6778: cat confdefs.h >>conftest.$ac_ext
6779: cat >>conftest.$ac_ext <<_ACEOF
6780: /* end confdefs.h. */
6781: #include <stdlib.h>
6782: #include <stdarg.h>
6783: #include <string.h>
6784: #include <float.h>
1.15 paf 6785:
1.35 moko 6786: int
6787: main ()
6788: {
1.15 paf 6789:
1.35 moko 6790: ;
6791: return 0;
6792: }
6793: _ACEOF
6794: rm -f conftest.$ac_objext
6795: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6796: (eval $ac_compile) 2>conftest.er1
6797: ac_status=$?
6798: grep -v '^ *+' conftest.er1 >conftest.err
6799: rm -f conftest.er1
6800: cat conftest.err >&5
6801: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6802: (exit $ac_status); } &&
6803: { ac_try='test -z "$ac_c_werror_flag"
6804: || test ! -s conftest.err'
6805: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6806: (eval $ac_try) 2>&5
6807: ac_status=$?
6808: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6809: (exit $ac_status); }; } &&
6810: { ac_try='test -s conftest.$ac_objext'
6811: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6812: (eval $ac_try) 2>&5
6813: ac_status=$?
6814: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6815: (exit $ac_status); }; }; then
6816: ac_cv_header_stdc=yes
6817: else
6818: echo "$as_me: failed program was:" >&5
6819: sed 's/^/| /' conftest.$ac_ext >&5
1.15 paf 6820:
1.35 moko 6821: ac_cv_header_stdc=no
6822: fi
6823: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 paf 6824:
1.35 moko 6825: if test $ac_cv_header_stdc = yes; then
6826: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6827: cat >conftest.$ac_ext <<_ACEOF
6828: /* confdefs.h. */
6829: _ACEOF
6830: cat confdefs.h >>conftest.$ac_ext
6831: cat >>conftest.$ac_ext <<_ACEOF
6832: /* end confdefs.h. */
6833: #include <string.h>
6834:
6835: _ACEOF
6836: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6837: $EGREP "memchr" >/dev/null 2>&1; then
6838: :
6839: else
6840: ac_cv_header_stdc=no
6841: fi
6842: rm -f conftest*
6843:
6844: fi
6845:
6846: if test $ac_cv_header_stdc = yes; then
6847: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6848: cat >conftest.$ac_ext <<_ACEOF
6849: /* confdefs.h. */
6850: _ACEOF
6851: cat confdefs.h >>conftest.$ac_ext
6852: cat >>conftest.$ac_ext <<_ACEOF
6853: /* end confdefs.h. */
6854: #include <stdlib.h>
6855:
6856: _ACEOF
6857: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6858: $EGREP "free" >/dev/null 2>&1; then
6859: :
6860: else
6861: ac_cv_header_stdc=no
6862: fi
6863: rm -f conftest*
6864:
6865: fi
1.15 paf 6866:
1.35 moko 6867: if test $ac_cv_header_stdc = yes; then
6868: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6869: if test "$cross_compiling" = yes; then
6870: :
6871: else
6872: cat >conftest.$ac_ext <<_ACEOF
6873: /* confdefs.h. */
6874: _ACEOF
6875: cat confdefs.h >>conftest.$ac_ext
6876: cat >>conftest.$ac_ext <<_ACEOF
6877: /* end confdefs.h. */
6878: #include <ctype.h>
6879: #if ((' ' & 0x0FF) == 0x020)
6880: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6881: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6882: #else
6883: # define ISLOWER(c) \
6884: (('a' <= (c) && (c) <= 'i') \
6885: || ('j' <= (c) && (c) <= 'r') \
6886: || ('s' <= (c) && (c) <= 'z'))
6887: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6888: #endif
1.15 paf 6889:
1.35 moko 6890: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6891: int
6892: main ()
6893: {
6894: int i;
6895: for (i = 0; i < 256; i++)
6896: if (XOR (islower (i), ISLOWER (i))
6897: || toupper (i) != TOUPPER (i))
6898: exit(2);
6899: exit (0);
6900: }
6901: _ACEOF
6902: rm -f conftest$ac_exeext
6903: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6904: (eval $ac_link) 2>&5
6905: ac_status=$?
6906: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6907: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6908: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6909: (eval $ac_try) 2>&5
6910: ac_status=$?
6911: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912: (exit $ac_status); }; }; then
6913: :
6914: else
6915: echo "$as_me: program exited with status $ac_status" >&5
6916: echo "$as_me: failed program was:" >&5
6917: sed 's/^/| /' conftest.$ac_ext >&5
1.15 paf 6918:
1.35 moko 6919: ( exit $ac_status )
6920: ac_cv_header_stdc=no
6921: fi
6922: rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6923: fi
6924: fi
6925: fi
6926: echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6927: echo "${ECHO_T}$ac_cv_header_stdc" >&6
6928: if test $ac_cv_header_stdc = yes; then
1.15 paf 6929:
1.35 moko 6930: cat >>confdefs.h <<\_ACEOF
6931: #define STDC_HEADERS 1
6932: _ACEOF
1.15 paf 6933:
1.35 moko 6934: fi
1.15 paf 6935:
1.35 moko 6936: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
1.15 paf 6937:
6938:
6939:
6940:
6941:
6942:
6943:
6944:
6945:
1.35 moko 6946: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6947: inttypes.h stdint.h unistd.h
6948: do
6949: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6950: echo "$as_me:$LINENO: checking for $ac_header" >&5
6951: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6952: if eval "test \"\${$as_ac_Header+set}\" = set"; then
6953: echo $ECHO_N "(cached) $ECHO_C" >&6
1.15 paf 6954: else
6955: cat >conftest.$ac_ext <<_ACEOF
6956: /* confdefs.h. */
6957: _ACEOF
6958: cat confdefs.h >>conftest.$ac_ext
6959: cat >>conftest.$ac_ext <<_ACEOF
6960: /* end confdefs.h. */
1.35 moko 6961: $ac_includes_default
1.25 paf 6962:
1.35 moko 6963: #include <$ac_header>
1.15 paf 6964: _ACEOF
1.35 moko 6965: rm -f conftest.$ac_objext
6966: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6967: (eval $ac_compile) 2>conftest.er1
1.15 paf 6968: ac_status=$?
1.25 paf 6969: grep -v '^ *+' conftest.er1 >conftest.err
6970: rm -f conftest.er1
6971: cat conftest.err >&5
1.15 paf 6972: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973: (exit $ac_status); } &&
1.25 paf 6974: { ac_try='test -z "$ac_c_werror_flag"
6975: || test ! -s conftest.err'
6976: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6977: (eval $ac_try) 2>&5
6978: ac_status=$?
6979: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6980: (exit $ac_status); }; } &&
1.35 moko 6981: { ac_try='test -s conftest.$ac_objext'
1.15 paf 6982: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6983: (eval $ac_try) 2>&5
6984: ac_status=$?
6985: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6986: (exit $ac_status); }; }; then
1.35 moko 6987: eval "$as_ac_Header=yes"
1.15 paf 6988: else
6989: echo "$as_me: failed program was:" >&5
6990: sed 's/^/| /' conftest.$ac_ext >&5
6991:
1.35 moko 6992: eval "$as_ac_Header=no"
6993: fi
6994: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 paf 6995: fi
1.35 moko 6996: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6997: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6998: if test `eval echo '${'$as_ac_Header'}'` = yes; then
6999: cat >>confdefs.h <<_ACEOF
7000: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7001: _ACEOF
7002:
1.15 paf 7003: fi
1.35 moko 7004:
7005: done
7006:
7007:
7008:
7009: for ac_header in dlfcn.h
7010: do
7011: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7012: echo "$as_me:$LINENO: checking for $ac_header" >&5
7013: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7014: if eval "test \"\${$as_ac_Header+set}\" = set"; then
1.15 paf 7015: echo $ECHO_N "(cached) $ECHO_C" >&6
7016: else
1.35 moko 7017: cat >conftest.$ac_ext <<_ACEOF
1.15 paf 7018: /* confdefs.h. */
7019: _ACEOF
7020: cat confdefs.h >>conftest.$ac_ext
7021: cat >>conftest.$ac_ext <<_ACEOF
7022: /* end confdefs.h. */
1.35 moko 7023: $ac_includes_default
1.15 paf 7024:
1.35 moko 7025: #include <$ac_header>
1.15 paf 7026: _ACEOF
1.35 moko 7027: rm -f conftest.$ac_objext
7028: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7029: (eval $ac_compile) 2>conftest.er1
1.15 paf 7030: ac_status=$?
1.25 paf 7031: grep -v '^ *+' conftest.er1 >conftest.err
7032: rm -f conftest.er1
7033: cat conftest.err >&5
1.15 paf 7034: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7035: (exit $ac_status); } &&
1.25 paf 7036: { ac_try='test -z "$ac_c_werror_flag"
7037: || test ! -s conftest.err'
7038: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7039: (eval $ac_try) 2>&5
7040: ac_status=$?
7041: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7042: (exit $ac_status); }; } &&
1.35 moko 7043: { ac_try='test -s conftest.$ac_objext'
1.15 paf 7044: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7045: (eval $ac_try) 2>&5
7046: ac_status=$?
7047: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7048: (exit $ac_status); }; }; then
1.35 moko 7049: eval "$as_ac_Header=yes"
1.15 paf 7050: else
7051: echo "$as_me: failed program was:" >&5
7052: sed 's/^/| /' conftest.$ac_ext >&5
7053:
1.35 moko 7054: eval "$as_ac_Header=no"
1.15 paf 7055: fi
1.35 moko 7056: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 paf 7057: fi
1.35 moko 7058: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7059: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7060: if test `eval echo '${'$as_ac_Header'}'` = yes; then
7061: cat >>confdefs.h <<_ACEOF
7062: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.15 paf 7063: _ACEOF
1.25 paf 7064:
1.35 moko 7065: fi
7066:
7067: done
1.25 paf 7068:
7069:
7070:
1.35 moko 7071:
7072: func_stripname_cnf ()
1.15 paf 7073: {
1.35 moko 7074: case ${2} in
7075: .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
7076: *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
7077: esac
7078: } # func_stripname_cnf
7079:
7080:
7081:
7082:
7083:
7084: # Set options
1.42 ! moko 7085: # Check whether --enable-static or --disable-static was given.
! 7086: if test "${enable_static+set}" = set; then
! 7087: enableval="$enable_static"
! 7088: p=${PACKAGE-default}
! 7089: case $enableval in
! 7090: yes) enable_static=yes ;;
! 7091: no) enable_static=no ;;
! 7092: *)
! 7093: enable_static=no
! 7094: # Look at the argument we got. We use all the common list separators.
! 7095: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
! 7096: for pkg in $enableval; do
! 7097: IFS="$lt_save_ifs"
! 7098: if test "X$pkg" = "X$p"; then
! 7099: enable_static=yes
! 7100: fi
! 7101: done
! 7102: IFS="$lt_save_ifs"
! 7103: ;;
! 7104: esac
! 7105: else
! 7106: enable_static=no
! 7107: fi;
! 7108:
! 7109:
! 7110:
! 7111:
! 7112:
! 7113:
1.35 moko 7114: enable_dlopen=yes
1.36 moko 7115: enable_win32_dll=yes
1.35 moko 7116:
1.36 moko 7117: case $host in
7118: *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7119: if test -n "$ac_tool_prefix"; then
7120: # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7121: set dummy ${ac_tool_prefix}as; ac_word=$2
7122: echo "$as_me:$LINENO: checking for $ac_word" >&5
7123: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7124: if test "${ac_cv_prog_AS+set}" = set; then
7125: echo $ECHO_N "(cached) $ECHO_C" >&6
7126: else
7127: if test -n "$AS"; then
7128: ac_cv_prog_AS="$AS" # Let the user override the test.
7129: else
7130: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7131: for as_dir in $PATH
7132: do
7133: IFS=$as_save_IFS
7134: test -z "$as_dir" && as_dir=.
7135: for ac_exec_ext in '' $ac_executable_extensions; do
7136: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7137: ac_cv_prog_AS="${ac_tool_prefix}as"
7138: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7139: break 2
7140: fi
7141: done
7142: done
1.35 moko 7143:
1.36 moko 7144: fi
7145: fi
7146: AS=$ac_cv_prog_AS
7147: if test -n "$AS"; then
7148: echo "$as_me:$LINENO: result: $AS" >&5
7149: echo "${ECHO_T}$AS" >&6
7150: else
7151: echo "$as_me:$LINENO: result: no" >&5
7152: echo "${ECHO_T}no" >&6
7153: fi
1.35 moko 7154:
1.36 moko 7155: fi
7156: if test -z "$ac_cv_prog_AS"; then
7157: ac_ct_AS=$AS
7158: # Extract the first word of "as", so it can be a program name with args.
7159: set dummy as; ac_word=$2
7160: echo "$as_me:$LINENO: checking for $ac_word" >&5
7161: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7162: if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
7163: echo $ECHO_N "(cached) $ECHO_C" >&6
7164: else
7165: if test -n "$ac_ct_AS"; then
7166: ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7167: else
7168: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7169: for as_dir in $PATH
7170: do
7171: IFS=$as_save_IFS
7172: test -z "$as_dir" && as_dir=.
7173: for ac_exec_ext in '' $ac_executable_extensions; do
7174: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7175: ac_cv_prog_ac_ct_AS="as"
7176: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7177: break 2
7178: fi
7179: done
7180: done
1.35 moko 7181:
1.36 moko 7182: test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
7183: fi
7184: fi
7185: ac_ct_AS=$ac_cv_prog_ac_ct_AS
7186: if test -n "$ac_ct_AS"; then
7187: echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
7188: echo "${ECHO_T}$ac_ct_AS" >&6
7189: else
7190: echo "$as_me:$LINENO: result: no" >&5
7191: echo "${ECHO_T}no" >&6
7192: fi
1.35 moko 7193:
1.36 moko 7194: AS=$ac_ct_AS
7195: else
7196: AS="$ac_cv_prog_AS"
7197: fi
1.15 paf 7198:
1.36 moko 7199: if test -n "$ac_tool_prefix"; then
7200: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7201: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7202: echo "$as_me:$LINENO: checking for $ac_word" >&5
7203: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7204: if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7205: echo $ECHO_N "(cached) $ECHO_C" >&6
7206: else
7207: if test -n "$DLLTOOL"; then
7208: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
1.15 paf 7209: else
1.36 moko 7210: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7211: for as_dir in $PATH
7212: do
7213: IFS=$as_save_IFS
7214: test -z "$as_dir" && as_dir=.
7215: for ac_exec_ext in '' $ac_executable_extensions; do
7216: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7217: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7218: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7219: break 2
7220: fi
7221: done
7222: done
7223:
7224: fi
7225: fi
7226: DLLTOOL=$ac_cv_prog_DLLTOOL
7227: if test -n "$DLLTOOL"; then
7228: echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7229: echo "${ECHO_T}$DLLTOOL" >&6
7230: else
7231: echo "$as_me:$LINENO: result: no" >&5
7232: echo "${ECHO_T}no" >&6
7233: fi
7234:
7235: fi
7236: if test -z "$ac_cv_prog_DLLTOOL"; then
7237: ac_ct_DLLTOOL=$DLLTOOL
7238: # Extract the first word of "dlltool", so it can be a program name with args.
7239: set dummy dlltool; ac_word=$2
7240: echo "$as_me:$LINENO: checking for $ac_word" >&5
7241: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7242: if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
7243: echo $ECHO_N "(cached) $ECHO_C" >&6
7244: else
7245: if test -n "$ac_ct_DLLTOOL"; then
7246: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7247: else
7248: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7249: for as_dir in $PATH
7250: do
7251: IFS=$as_save_IFS
7252: test -z "$as_dir" && as_dir=.
7253: for ac_exec_ext in '' $ac_executable_extensions; do
7254: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7255: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7256: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7257: break 2
7258: fi
7259: done
7260: done
7261:
7262: test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
7263: fi
7264: fi
7265: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7266: if test -n "$ac_ct_DLLTOOL"; then
7267: echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
7268: echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
7269: else
7270: echo "$as_me:$LINENO: result: no" >&5
7271: echo "${ECHO_T}no" >&6
7272: fi
7273:
7274: DLLTOOL=$ac_ct_DLLTOOL
7275: else
7276: DLLTOOL="$ac_cv_prog_DLLTOOL"
7277: fi
7278:
7279: if test -n "$ac_tool_prefix"; then
7280: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7281: set dummy ${ac_tool_prefix}objdump; ac_word=$2
7282: echo "$as_me:$LINENO: checking for $ac_word" >&5
7283: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7284: if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7285: echo $ECHO_N "(cached) $ECHO_C" >&6
7286: else
7287: if test -n "$OBJDUMP"; then
7288: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7289: else
7290: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7291: for as_dir in $PATH
7292: do
7293: IFS=$as_save_IFS
7294: test -z "$as_dir" && as_dir=.
7295: for ac_exec_ext in '' $ac_executable_extensions; do
7296: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7297: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7298: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7299: break 2
7300: fi
7301: done
7302: done
7303:
7304: fi
7305: fi
7306: OBJDUMP=$ac_cv_prog_OBJDUMP
7307: if test -n "$OBJDUMP"; then
7308: echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7309: echo "${ECHO_T}$OBJDUMP" >&6
7310: else
7311: echo "$as_me:$LINENO: result: no" >&5
7312: echo "${ECHO_T}no" >&6
7313: fi
7314:
7315: fi
7316: if test -z "$ac_cv_prog_OBJDUMP"; then
7317: ac_ct_OBJDUMP=$OBJDUMP
7318: # Extract the first word of "objdump", so it can be a program name with args.
7319: set dummy objdump; ac_word=$2
7320: echo "$as_me:$LINENO: checking for $ac_word" >&5
7321: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7322: if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
7323: echo $ECHO_N "(cached) $ECHO_C" >&6
7324: else
7325: if test -n "$ac_ct_OBJDUMP"; then
7326: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7327: else
7328: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7329: for as_dir in $PATH
7330: do
7331: IFS=$as_save_IFS
7332: test -z "$as_dir" && as_dir=.
7333: for ac_exec_ext in '' $ac_executable_extensions; do
7334: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7335: ac_cv_prog_ac_ct_OBJDUMP="objdump"
7336: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7337: break 2
7338: fi
7339: done
7340: done
7341:
7342: test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
7343: fi
7344: fi
7345: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7346: if test -n "$ac_ct_OBJDUMP"; then
7347: echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
7348: echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
7349: else
7350: echo "$as_me:$LINENO: result: no" >&5
7351: echo "${ECHO_T}no" >&6
7352: fi
7353:
7354: OBJDUMP=$ac_ct_OBJDUMP
7355: else
7356: OBJDUMP="$ac_cv_prog_OBJDUMP"
7357: fi
7358:
7359: ;;
7360: esac
7361:
7362: test -z "$AS" && AS=as
7363:
7364:
7365:
7366:
7367:
7368: test -z "$DLLTOOL" && DLLTOOL=dlltool
7369:
7370:
7371:
7372:
7373:
7374: test -z "$OBJDUMP" && OBJDUMP=objdump
7375:
7376:
7377:
7378:
7379:
7380:
7381:
7382:
7383:
7384: # Check whether --enable-shared or --disable-shared was given.
7385: if test "${enable_shared+set}" = set; then
7386: enableval="$enable_shared"
7387: p=${PACKAGE-default}
7388: case $enableval in
7389: yes) enable_shared=yes ;;
7390: no) enable_shared=no ;;
7391: *)
7392: enable_shared=no
7393: # Look at the argument we got. We use all the common list separators.
7394: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7395: for pkg in $enableval; do
7396: IFS="$lt_save_ifs"
7397: if test "X$pkg" = "X$p"; then
7398: enable_shared=yes
7399: fi
7400: done
7401: IFS="$lt_save_ifs"
7402: ;;
7403: esac
7404: else
7405: enable_shared=yes
7406: fi;
1.35 moko 7407:
7408:
7409:
7410:
7411:
7412:
7413:
1.15 paf 7414:
1.35 moko 7415:
7416:
7417: # Check whether --with-pic or --without-pic was given.
7418: if test "${with_pic+set}" = set; then
7419: withval="$with_pic"
7420: lt_p=${PACKAGE-default}
7421: case $withval in
7422: yes|no) pic_mode=$withval ;;
7423: *)
7424: pic_mode=default
7425: # Look at the argument we got. We use all the common list separators.
7426: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7427: for lt_pkg in $withval; do
7428: IFS="$lt_save_ifs"
7429: if test "X$lt_pkg" = "X$lt_p"; then
7430: pic_mode=yes
7431: fi
7432: done
7433: IFS="$lt_save_ifs"
7434: ;;
7435: esac
1.15 paf 7436: else
1.35 moko 7437: pic_mode=default
7438: fi;
7439:
7440: test -z "$pic_mode" && pic_mode=default
7441:
7442:
7443:
7444:
7445:
7446:
1.15 paf 7447:
1.35 moko 7448: # Check whether --enable-fast-install or --disable-fast-install was given.
7449: if test "${enable_fast_install+set}" = set; then
7450: enableval="$enable_fast_install"
7451: p=${PACKAGE-default}
7452: case $enableval in
7453: yes) enable_fast_install=yes ;;
7454: no) enable_fast_install=no ;;
7455: *)
7456: enable_fast_install=no
7457: # Look at the argument we got. We use all the common list separators.
7458: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7459: for pkg in $enableval; do
7460: IFS="$lt_save_ifs"
7461: if test "X$pkg" = "X$p"; then
7462: enable_fast_install=yes
7463: fi
7464: done
7465: IFS="$lt_save_ifs"
7466: ;;
7467: esac
1.15 paf 7468: else
1.35 moko 7469: enable_fast_install=yes
7470: fi;
7471:
7472:
7473:
7474:
7475:
7476:
7477:
7478:
7479:
7480:
7481: # This can be used to rebuild libtool when needed
7482: LIBTOOL_DEPS="$ltmain"
7483:
7484: # Always use our own libtool.
7485: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7486:
7487:
7488:
7489:
7490:
7491:
7492:
7493:
7494:
7495:
7496:
7497:
7498:
7499:
7500:
7501:
7502:
7503:
7504:
7505:
7506:
7507:
7508:
7509:
7510:
7511:
7512:
7513:
7514:
7515:
7516: test -z "$LN_S" && LN_S="ln -s"
7517:
7518:
7519:
7520:
7521:
7522:
7523:
7524:
7525:
7526:
7527:
7528:
7529:
1.15 paf 7530:
1.35 moko 7531: if test -n "${ZSH_VERSION+set}" ; then
7532: setopt NO_GLOB_SUBST
1.15 paf 7533: fi
1.35 moko 7534:
7535: echo "$as_me:$LINENO: checking for objdir" >&5
7536: echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7537: if test "${lt_cv_objdir+set}" = set; then
7538: echo $ECHO_N "(cached) $ECHO_C" >&6
7539: else
7540: rm -f .libs 2>/dev/null
7541: mkdir .libs 2>/dev/null
7542: if test -d .libs; then
7543: lt_cv_objdir=.libs
7544: else
7545: # MS-DOS does not allow filenames that begin with a dot.
7546: lt_cv_objdir=_libs
1.15 paf 7547: fi
1.35 moko 7548: rmdir .libs 2>/dev/null
7549: fi
7550: echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7551: echo "${ECHO_T}$lt_cv_objdir" >&6
7552: objdir=$lt_cv_objdir
1.15 paf 7553:
7554:
7555:
7556:
7557:
1.35 moko 7558: cat >>confdefs.h <<_ACEOF
7559: #define LT_OBJDIR "$lt_cv_objdir/"
7560: _ACEOF
1.15 paf 7561:
7562:
7563:
7564:
1.35 moko 7565: case $host_os in
7566: aix3*)
7567: # AIX sometimes has problems with the GCC collect2 program. For some
7568: # reason, if we set the COLLECT_NAMES environment variable, the problems
7569: # vanish in a puff of smoke.
7570: if test "X${COLLECT_NAMES+set}" != Xset; then
7571: COLLECT_NAMES=
7572: export COLLECT_NAMES
7573: fi
7574: ;;
7575: esac
1.15 paf 7576:
1.35 moko 7577: # Global variables:
7578: ofile=libtool
7579: can_build_shared=yes
1.15 paf 7580:
1.35 moko 7581: # All known linkers require a `.a' archive for static linking (except MSVC,
7582: # which needs '.lib').
7583: libext=a
1.15 paf 7584:
1.35 moko 7585: with_gnu_ld="$lt_cv_prog_gnu_ld"
1.15 paf 7586:
1.35 moko 7587: old_CC="$CC"
7588: old_CFLAGS="$CFLAGS"
1.15 paf 7589:
1.35 moko 7590: # Set sane defaults for various variables
7591: test -z "$CC" && CC=cc
7592: test -z "$LTCC" && LTCC=$CC
7593: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7594: test -z "$LD" && LD=ld
7595: test -z "$ac_objext" && ac_objext=o
1.15 paf 7596:
1.35 moko 7597: for cc_temp in $compiler""; do
7598: case $cc_temp in
7599: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7600: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7601: \-*) ;;
7602: *) break;;
1.15 paf 7603: esac
1.35 moko 7604: done
7605: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
1.15 paf 7606:
7607:
1.35 moko 7608: # Only perform the check for file, if the check method requires it
7609: test -z "$MAGIC_CMD" && MAGIC_CMD=file
7610: case $deplibs_check_method in
7611: file_magic*)
7612: if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7613: echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7614: echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7615: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7616: echo $ECHO_N "(cached) $ECHO_C" >&6
7617: else
7618: case $MAGIC_CMD in
7619: [\\/*] | ?:[\\/]*)
7620: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7621: ;;
7622: *)
7623: lt_save_MAGIC_CMD="$MAGIC_CMD"
7624: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7625: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7626: for ac_dir in $ac_dummy; do
7627: IFS="$lt_save_ifs"
7628: test -z "$ac_dir" && ac_dir=.
7629: if test -f $ac_dir/${ac_tool_prefix}file; then
7630: lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7631: if test -n "$file_magic_test_file"; then
7632: case $deplibs_check_method in
7633: "file_magic "*)
7634: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7635: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7636: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7637: $EGREP "$file_magic_regex" > /dev/null; then
7638: :
7639: else
7640: cat <<_LT_EOF 1>&2
1.15 paf 7641:
1.35 moko 7642: *** Warning: the command libtool uses to detect shared libraries,
7643: *** $file_magic_cmd, produces output that libtool cannot recognize.
7644: *** The result is that libtool may fail to recognize shared libraries
7645: *** as such. This will affect the creation of libtool libraries that
7646: *** depend on shared libraries, but programs linked with such libtool
7647: *** libraries will work regardless of this problem. Nevertheless, you
7648: *** may want to report the problem to your system manager and/or to
7649: *** bug-libtool@gnu.org
1.15 paf 7650:
1.35 moko 7651: _LT_EOF
7652: fi ;;
7653: esac
7654: fi
7655: break
7656: fi
7657: done
7658: IFS="$lt_save_ifs"
7659: MAGIC_CMD="$lt_save_MAGIC_CMD"
7660: ;;
7661: esac
7662: fi
1.15 paf 7663:
1.35 moko 7664: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7665: if test -n "$MAGIC_CMD"; then
7666: echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7667: echo "${ECHO_T}$MAGIC_CMD" >&6
1.15 paf 7668: else
1.35 moko 7669: echo "$as_me:$LINENO: result: no" >&5
7670: echo "${ECHO_T}no" >&6
7671: fi
7672:
1.15 paf 7673:
7674:
7675:
7676:
1.35 moko 7677: if test -z "$lt_cv_path_MAGIC_CMD"; then
7678: if test -n "$ac_tool_prefix"; then
7679: echo "$as_me:$LINENO: checking for file" >&5
7680: echo $ECHO_N "checking for file... $ECHO_C" >&6
7681: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7682: echo $ECHO_N "(cached) $ECHO_C" >&6
7683: else
7684: case $MAGIC_CMD in
7685: [\\/*] | ?:[\\/]*)
7686: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7687: ;;
7688: *)
7689: lt_save_MAGIC_CMD="$MAGIC_CMD"
7690: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7691: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7692: for ac_dir in $ac_dummy; do
7693: IFS="$lt_save_ifs"
7694: test -z "$ac_dir" && ac_dir=.
7695: if test -f $ac_dir/file; then
7696: lt_cv_path_MAGIC_CMD="$ac_dir/file"
7697: if test -n "$file_magic_test_file"; then
7698: case $deplibs_check_method in
7699: "file_magic "*)
7700: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7701: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7702: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7703: $EGREP "$file_magic_regex" > /dev/null; then
7704: :
7705: else
7706: cat <<_LT_EOF 1>&2
7707:
7708: *** Warning: the command libtool uses to detect shared libraries,
7709: *** $file_magic_cmd, produces output that libtool cannot recognize.
7710: *** The result is that libtool may fail to recognize shared libraries
7711: *** as such. This will affect the creation of libtool libraries that
7712: *** depend on shared libraries, but programs linked with such libtool
7713: *** libraries will work regardless of this problem. Nevertheless, you
7714: *** may want to report the problem to your system manager and/or to
7715: *** bug-libtool@gnu.org
1.15 paf 7716:
1.35 moko 7717: _LT_EOF
7718: fi ;;
7719: esac
7720: fi
7721: break
7722: fi
7723: done
7724: IFS="$lt_save_ifs"
7725: MAGIC_CMD="$lt_save_MAGIC_CMD"
7726: ;;
7727: esac
7728: fi
1.15 paf 7729:
1.35 moko 7730: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7731: if test -n "$MAGIC_CMD"; then
7732: echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7733: echo "${ECHO_T}$MAGIC_CMD" >&6
7734: else
7735: echo "$as_me:$LINENO: result: no" >&5
7736: echo "${ECHO_T}no" >&6
7737: fi
1.15 paf 7738:
7739:
1.35 moko 7740: else
7741: MAGIC_CMD=:
1.15 paf 7742: fi
7743: fi
1.35 moko 7744:
7745: fi
7746: ;;
7747: esac
7748:
7749: # Use C for the default configuration in the libtool script
7750:
7751: lt_save_CC="$CC"
7752: ac_ext=c
7753: ac_cpp='$CPP $CPPFLAGS'
7754: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7755: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7756: ac_compiler_gnu=$ac_cv_c_compiler_gnu
7757:
7758:
7759: # Source file extension for C test sources.
7760: ac_ext=c
7761:
7762: # Object file extension for compiled C test sources.
7763: objext=o
7764: objext=$objext
7765:
7766: # Code to be used in simple compile tests
7767: lt_simple_compile_test_code="int some_variable = 0;"
7768:
7769: # Code to be used in simple link tests
7770: lt_simple_link_test_code='int main(){return(0);}'
1.15 paf 7771:
7772:
7773:
7774:
7775:
7776:
7777:
1.35 moko 7778: # If no C compiler was specified, use CC.
7779: LTCC=${LTCC-"$CC"}
1.15 paf 7780:
1.35 moko 7781: # If no C compiler flags were specified, use CFLAGS.
7782: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1.15 paf 7783:
1.35 moko 7784: # Allow CC to be a program name with arguments.
7785: compiler=$CC
1.15 paf 7786:
1.35 moko 7787: # Save the default compiler, since it gets overwritten when the other
7788: # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7789: compiler_DEFAULT=$CC
1.15 paf 7790:
1.35 moko 7791: # save warnings/boilerplate of simple test code
7792: ac_outfile=conftest.$ac_objext
7793: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7794: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7795: _lt_compiler_boilerplate=`cat conftest.err`
7796: $RM conftest*
1.15 paf 7797:
1.35 moko 7798: ac_outfile=conftest.$ac_objext
7799: echo "$lt_simple_link_test_code" >conftest.$ac_ext
7800: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7801: _lt_linker_boilerplate=`cat conftest.err`
7802: $RM -r conftest*
1.15 paf 7803:
7804:
1.36 moko 7805: ## CAVEAT EMPTOR:
7806: ## There is no encapsulation within the following macros, do not change
7807: ## the running order or otherwise move them around unless you know exactly
7808: ## what you are doing...
1.35 moko 7809: if test -n "$compiler"; then
1.15 paf 7810:
1.35 moko 7811: lt_prog_compiler_no_builtin_flag=
1.15 paf 7812:
1.35 moko 7813: if test "$GCC" = yes; then
7814: case $cc_basename in
7815: nvcc*)
7816: lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7817: *)
7818: lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
1.15 paf 7819: esac
7820:
1.35 moko 7821: echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7822: echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7823: if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
1.15 paf 7824: echo $ECHO_N "(cached) $ECHO_C" >&6
7825: else
1.35 moko 7826: lt_cv_prog_compiler_rtti_exceptions=no
7827: ac_outfile=conftest.$ac_objext
7828: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7829: lt_compiler_flag="-fno-rtti -fno-exceptions"
7830: # Insert the option either (1) after the last *FLAGS variable, or
7831: # (2) before a word containing "conftest.", or (3) at the end.
7832: # Note that $ac_compile itself does not contain backslashes and begins
7833: # with a dollar sign (not a hyphen), so the echo should work correctly.
7834: # The option is referenced via a variable to avoid confusing sed.
7835: lt_compile=`echo "$ac_compile" | $SED \
7836: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7837: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7838: -e 's:$: $lt_compiler_flag:'`
7839: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7840: (eval "$lt_compile" 2>conftest.err)
7841: ac_status=$?
7842: cat conftest.err >&5
7843: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7844: if (exit $ac_status) && test -s "$ac_outfile"; then
7845: # The compiler can only warn and ignore the option if not recognized
7846: # So say no if there are warnings other than the usual output.
7847: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7848: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7849: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7850: lt_cv_prog_compiler_rtti_exceptions=yes
7851: fi
7852: fi
7853: $RM conftest*
1.15 paf 7854:
7855: fi
1.35 moko 7856: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7857: echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
1.15 paf 7858:
1.35 moko 7859: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7860: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7861: else
7862: :
1.15 paf 7863: fi
7864:
1.35 moko 7865: fi
1.15 paf 7866:
7867:
7868:
7869:
7870:
7871:
1.35 moko 7872: lt_prog_compiler_wl=
7873: lt_prog_compiler_pic=
7874: lt_prog_compiler_static=
1.15 paf 7875:
7876:
1.35 moko 7877: if test "$GCC" = yes; then
7878: lt_prog_compiler_wl='-Wl,'
7879: lt_prog_compiler_static='-static'
1.15 paf 7880:
1.35 moko 7881: case $host_os in
7882: aix*)
7883: # All AIX code is PIC.
7884: if test "$host_cpu" = ia64; then
7885: # AIX 5 now supports IA64 processor
7886: lt_prog_compiler_static='-Bstatic'
7887: fi
7888: ;;
1.15 paf 7889:
1.35 moko 7890: amigaos*)
7891: case $host_cpu in
7892: powerpc)
7893: # see comment about AmigaOS4 .so support
7894: lt_prog_compiler_pic='-fPIC'
7895: ;;
7896: m68k)
7897: # FIXME: we need at least 68020 code to build shared libraries, but
7898: # adding the `-m68020' flag to GCC prevents building anything better,
7899: # like `-m68040'.
7900: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7901: ;;
7902: esac
7903: ;;
1.15 paf 7904:
1.35 moko 7905: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7906: # PIC is the default for these OSes.
7907: ;;
1.15 paf 7908:
1.35 moko 7909: mingw* | cygwin* | pw32* | os2* | cegcc*)
7910: # This hack is so that the source file can tell whether it is being
7911: # built for inclusion in a dll (and should export symbols for example).
7912: # Although the cygwin gcc ignores -fPIC, still need this for old-style
7913: # (--disable-auto-import) libraries
7914: lt_prog_compiler_pic='-DDLL_EXPORT'
7915: ;;
1.15 paf 7916:
1.35 moko 7917: darwin* | rhapsody*)
7918: # PIC is the default on this platform
7919: # Common symbols not allowed in MH_DYLIB files
7920: lt_prog_compiler_pic='-fno-common'
7921: ;;
1.15 paf 7922:
1.35 moko 7923: haiku*)
7924: # PIC is the default for Haiku.
7925: # The "-static" flag exists, but is broken.
7926: lt_prog_compiler_static=
7927: ;;
1.15 paf 7928:
1.35 moko 7929: hpux*)
7930: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7931: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7932: # sets the default TLS model and affects inlining.
7933: case $host_cpu in
7934: hppa*64*)
7935: # +Z the default
7936: ;;
7937: *)
7938: lt_prog_compiler_pic='-fPIC'
7939: ;;
7940: esac
7941: ;;
1.15 paf 7942:
1.35 moko 7943: interix[3-9]*)
7944: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7945: # Instead, we relocate shared libraries at runtime.
7946: ;;
1.15 paf 7947:
1.35 moko 7948: msdosdjgpp*)
7949: # Just because we use GCC doesn't mean we suddenly get shared libraries
7950: # on systems that don't support them.
7951: lt_prog_compiler_can_build_shared=no
7952: enable_shared=no
7953: ;;
1.15 paf 7954:
1.35 moko 7955: *nto* | *qnx*)
7956: # QNX uses GNU C++, but need to define -shared option too, otherwise
7957: # it will coredump.
7958: lt_prog_compiler_pic='-fPIC -shared'
7959: ;;
1.15 paf 7960:
1.35 moko 7961: sysv4*MP*)
7962: if test -d /usr/nec; then
7963: lt_prog_compiler_pic=-Kconform_pic
7964: fi
7965: ;;
1.15 paf 7966:
1.35 moko 7967: *)
7968: lt_prog_compiler_pic='-fPIC'
7969: ;;
7970: esac
1.15 paf 7971:
1.35 moko 7972: case $cc_basename in
7973: nvcc*) # Cuda Compiler Driver 2.2
7974: lt_prog_compiler_wl='-Xlinker '
7975: if test -n "$lt_prog_compiler_pic"; then
7976: lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7977: fi
7978: ;;
7979: esac
7980: else
7981: # PORTME Check for flag to pass linker flags through the system compiler.
7982: case $host_os in
7983: aix*)
7984: lt_prog_compiler_wl='-Wl,'
7985: if test "$host_cpu" = ia64; then
7986: # AIX 5 now supports IA64 processor
7987: lt_prog_compiler_static='-Bstatic'
7988: else
7989: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7990: fi
7991: ;;
1.15 paf 7992:
1.35 moko 7993: mingw* | cygwin* | pw32* | os2* | cegcc*)
7994: # This hack is so that the source file can tell whether it is being
7995: # built for inclusion in a dll (and should export symbols for example).
7996: lt_prog_compiler_pic='-DDLL_EXPORT'
7997: ;;
1.15 paf 7998:
1.35 moko 7999: hpux9* | hpux10* | hpux11*)
8000: lt_prog_compiler_wl='-Wl,'
8001: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8002: # not for PA HP-UX.
8003: case $host_cpu in
8004: hppa*64*|ia64*)
8005: # +Z the default
8006: ;;
8007: *)
8008: lt_prog_compiler_pic='+Z'
8009: ;;
8010: esac
8011: # Is there a better lt_prog_compiler_static that works with the bundled CC?
8012: lt_prog_compiler_static='${wl}-a ${wl}archive'
8013: ;;
1.15 paf 8014:
1.35 moko 8015: irix5* | irix6* | nonstopux*)
8016: lt_prog_compiler_wl='-Wl,'
8017: # PIC (with -KPIC) is the default.
8018: lt_prog_compiler_static='-non_shared'
8019: ;;
1.15 paf 8020:
1.35 moko 8021: linux* | k*bsd*-gnu | kopensolaris*-gnu)
8022: case $cc_basename in
8023: # old Intel for x86_64 which still supported -KPIC.
8024: ecc*)
8025: lt_prog_compiler_wl='-Wl,'
8026: lt_prog_compiler_pic='-KPIC'
8027: lt_prog_compiler_static='-static'
8028: ;;
8029: # icc used to be incompatible with GCC.
8030: # ICC 10 doesn't accept -KPIC any more.
8031: icc* | ifort*)
8032: lt_prog_compiler_wl='-Wl,'
8033: lt_prog_compiler_pic='-fPIC'
8034: lt_prog_compiler_static='-static'
8035: ;;
8036: # Lahey Fortran 8.1.
8037: lf95*)
8038: lt_prog_compiler_wl='-Wl,'
8039: lt_prog_compiler_pic='--shared'
8040: lt_prog_compiler_static='--static'
8041: ;;
8042: nagfor*)
8043: # NAG Fortran compiler
8044: lt_prog_compiler_wl='-Wl,-Wl,,'
8045: lt_prog_compiler_pic='-PIC'
8046: lt_prog_compiler_static='-Bstatic'
8047: ;;
8048: pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8049: # Portland Group compilers (*not* the Pentium gcc compiler,
8050: # which looks to be a dead project)
8051: lt_prog_compiler_wl='-Wl,'
8052: lt_prog_compiler_pic='-fpic'
8053: lt_prog_compiler_static='-Bstatic'
8054: ;;
8055: ccc*)
8056: lt_prog_compiler_wl='-Wl,'
8057: # All Alpha code is PIC.
8058: lt_prog_compiler_static='-non_shared'
8059: ;;
8060: xl* | bgxl* | bgf* | mpixl*)
8061: # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8062: lt_prog_compiler_wl='-Wl,'
8063: lt_prog_compiler_pic='-qpic'
8064: lt_prog_compiler_static='-qstaticlink'
8065: ;;
8066: *)
8067: case `$CC -V 2>&1 | sed 5q` in
8068: *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8069: # Sun Fortran 8.3 passes all unrecognized flags to the linker
8070: lt_prog_compiler_pic='-KPIC'
8071: lt_prog_compiler_static='-Bstatic'
8072: lt_prog_compiler_wl=''
8073: ;;
8074: *Sun\ F* | *Sun*Fortran*)
8075: lt_prog_compiler_pic='-KPIC'
8076: lt_prog_compiler_static='-Bstatic'
8077: lt_prog_compiler_wl='-Qoption ld '
8078: ;;
8079: *Sun\ C*)
8080: # Sun C 5.9
8081: lt_prog_compiler_pic='-KPIC'
8082: lt_prog_compiler_static='-Bstatic'
8083: lt_prog_compiler_wl='-Wl,'
8084: ;;
8085: *Intel*\ [CF]*Compiler*)
8086: lt_prog_compiler_wl='-Wl,'
8087: lt_prog_compiler_pic='-fPIC'
8088: lt_prog_compiler_static='-static'
8089: ;;
8090: *Portland\ Group*)
8091: lt_prog_compiler_wl='-Wl,'
8092: lt_prog_compiler_pic='-fpic'
8093: lt_prog_compiler_static='-Bstatic'
8094: ;;
8095: esac
8096: ;;
8097: esac
8098: ;;
1.15 paf 8099:
1.35 moko 8100: newsos6)
8101: lt_prog_compiler_pic='-KPIC'
8102: lt_prog_compiler_static='-Bstatic'
8103: ;;
1.15 paf 8104:
1.35 moko 8105: *nto* | *qnx*)
8106: # QNX uses GNU C++, but need to define -shared option too, otherwise
8107: # it will coredump.
8108: lt_prog_compiler_pic='-fPIC -shared'
8109: ;;
1.15 paf 8110:
1.35 moko 8111: osf3* | osf4* | osf5*)
8112: lt_prog_compiler_wl='-Wl,'
8113: # All OSF/1 code is PIC.
8114: lt_prog_compiler_static='-non_shared'
8115: ;;
1.15 paf 8116:
1.35 moko 8117: rdos*)
8118: lt_prog_compiler_static='-non_shared'
8119: ;;
1.15 paf 8120:
1.35 moko 8121: solaris*)
8122: lt_prog_compiler_pic='-KPIC'
8123: lt_prog_compiler_static='-Bstatic'
8124: case $cc_basename in
8125: f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8126: lt_prog_compiler_wl='-Qoption ld ';;
8127: *)
8128: lt_prog_compiler_wl='-Wl,';;
8129: esac
8130: ;;
1.15 paf 8131:
1.35 moko 8132: sunos4*)
8133: lt_prog_compiler_wl='-Qoption ld '
8134: lt_prog_compiler_pic='-PIC'
8135: lt_prog_compiler_static='-Bstatic'
8136: ;;
1.15 paf 8137:
1.35 moko 8138: sysv4 | sysv4.2uw2* | sysv4.3*)
8139: lt_prog_compiler_wl='-Wl,'
8140: lt_prog_compiler_pic='-KPIC'
8141: lt_prog_compiler_static='-Bstatic'
8142: ;;
1.15 paf 8143:
1.35 moko 8144: sysv4*MP*)
8145: if test -d /usr/nec ;then
8146: lt_prog_compiler_pic='-Kconform_pic'
8147: lt_prog_compiler_static='-Bstatic'
8148: fi
8149: ;;
1.15 paf 8150:
1.35 moko 8151: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8152: lt_prog_compiler_wl='-Wl,'
8153: lt_prog_compiler_pic='-KPIC'
8154: lt_prog_compiler_static='-Bstatic'
8155: ;;
1.15 paf 8156:
1.35 moko 8157: unicos*)
8158: lt_prog_compiler_wl='-Wl,'
8159: lt_prog_compiler_can_build_shared=no
8160: ;;
1.15 paf 8161:
1.35 moko 8162: uts4*)
8163: lt_prog_compiler_pic='-pic'
8164: lt_prog_compiler_static='-Bstatic'
8165: ;;
1.15 paf 8166:
1.35 moko 8167: *)
8168: lt_prog_compiler_can_build_shared=no
8169: ;;
8170: esac
8171: fi
1.15 paf 8172:
1.35 moko 8173: case $host_os in
8174: # For platforms which do not support PIC, -DPIC is meaningless:
8175: *djgpp*)
8176: lt_prog_compiler_pic=
8177: ;;
8178: *)
8179: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8180: ;;
8181: esac
1.15 paf 8182:
1.35 moko 8183: echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8184: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8185: if test "${lt_cv_prog_compiler_pic+set}" = set; then
8186: echo $ECHO_N "(cached) $ECHO_C" >&6
8187: else
8188: lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8189: fi
8190: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic" >&5
8191: echo "${ECHO_T}$lt_cv_prog_compiler_pic" >&6
8192: lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
1.15 paf 8193:
1.35 moko 8194: #
8195: # Check to make sure the PIC flag actually works.
8196: #
8197: if test -n "$lt_prog_compiler_pic"; then
8198: echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8199: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8200: if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8201: echo $ECHO_N "(cached) $ECHO_C" >&6
8202: else
8203: lt_cv_prog_compiler_pic_works=no
8204: ac_outfile=conftest.$ac_objext
8205: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8206: lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8207: # Insert the option either (1) after the last *FLAGS variable, or
8208: # (2) before a word containing "conftest.", or (3) at the end.
8209: # Note that $ac_compile itself does not contain backslashes and begins
8210: # with a dollar sign (not a hyphen), so the echo should work correctly.
8211: # The option is referenced via a variable to avoid confusing sed.
8212: lt_compile=`echo "$ac_compile" | $SED \
8213: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8214: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8215: -e 's:$: $lt_compiler_flag:'`
8216: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8217: (eval "$lt_compile" 2>conftest.err)
8218: ac_status=$?
8219: cat conftest.err >&5
8220: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8221: if (exit $ac_status) && test -s "$ac_outfile"; then
8222: # The compiler can only warn and ignore the option if not recognized
8223: # So say no if there are warnings other than the usual output.
8224: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8225: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8226: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8227: lt_cv_prog_compiler_pic_works=yes
8228: fi
8229: fi
8230: $RM conftest*
1.15 paf 8231:
1.35 moko 8232: fi
8233: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8234: echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
1.15 paf 8235:
1.35 moko 8236: if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8237: case $lt_prog_compiler_pic in
8238: "" | " "*) ;;
8239: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8240: esac
8241: else
8242: lt_prog_compiler_pic=
8243: lt_prog_compiler_can_build_shared=no
8244: fi
1.15 paf 8245:
1.35 moko 8246: fi
1.15 paf 8247:
8248:
8249:
8250:
8251:
8252:
8253:
8254:
8255:
8256:
8257:
1.35 moko 8258: #
8259: # Check to make sure the static flag actually works.
8260: #
8261: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8262: echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8263: echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8264: if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8265: echo $ECHO_N "(cached) $ECHO_C" >&6
8266: else
8267: lt_cv_prog_compiler_static_works=no
8268: save_LDFLAGS="$LDFLAGS"
8269: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8270: echo "$lt_simple_link_test_code" > conftest.$ac_ext
8271: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8272: # The linker can only warn and ignore the option if not recognized
8273: # So say no if there are warnings
8274: if test -s conftest.err; then
8275: # Append any errors to the config.log.
8276: cat conftest.err 1>&5
8277: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8278: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8279: if diff conftest.exp conftest.er2 >/dev/null; then
8280: lt_cv_prog_compiler_static_works=yes
8281: fi
8282: else
8283: lt_cv_prog_compiler_static_works=yes
8284: fi
8285: fi
8286: $RM -r conftest*
8287: LDFLAGS="$save_LDFLAGS"
1.15 paf 8288:
1.35 moko 8289: fi
8290: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8291: echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
1.15 paf 8292:
1.35 moko 8293: if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8294: :
8295: else
8296: lt_prog_compiler_static=
8297: fi
1.15 paf 8298:
8299:
8300:
8301:
8302:
8303:
8304:
1.35 moko 8305: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8306: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8307: if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8308: echo $ECHO_N "(cached) $ECHO_C" >&6
8309: else
8310: lt_cv_prog_compiler_c_o=no
8311: $RM -r conftest 2>/dev/null
8312: mkdir conftest
8313: cd conftest
8314: mkdir out
8315: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8316:
8317: lt_compiler_flag="-o out/conftest2.$ac_objext"
8318: # Insert the option either (1) after the last *FLAGS variable, or
8319: # (2) before a word containing "conftest.", or (3) at the end.
8320: # Note that $ac_compile itself does not contain backslashes and begins
8321: # with a dollar sign (not a hyphen), so the echo should work correctly.
8322: lt_compile=`echo "$ac_compile" | $SED \
8323: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8324: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8325: -e 's:$: $lt_compiler_flag:'`
8326: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8327: (eval "$lt_compile" 2>out/conftest.err)
8328: ac_status=$?
8329: cat out/conftest.err >&5
8330: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331: if (exit $ac_status) && test -s out/conftest2.$ac_objext
8332: then
8333: # The compiler can only warn and ignore the option if not recognized
8334: # So say no if there are warnings
8335: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8336: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8337: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8338: lt_cv_prog_compiler_c_o=yes
8339: fi
8340: fi
8341: chmod u+w . 2>&5
8342: $RM conftest*
8343: # SGI C++ compiler will create directory out/ii_files/ for
8344: # template instantiation
8345: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8346: $RM out/* && rmdir out
8347: cd ..
8348: $RM -r conftest
8349: $RM conftest*
1.15 paf 8350:
1.35 moko 8351: fi
8352: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8353: echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
1.15 paf 8354:
8355:
8356:
8357:
8358:
8359:
1.35 moko 8360: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8361: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8362: if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8363: echo $ECHO_N "(cached) $ECHO_C" >&6
8364: else
8365: lt_cv_prog_compiler_c_o=no
8366: $RM -r conftest 2>/dev/null
8367: mkdir conftest
8368: cd conftest
8369: mkdir out
8370: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8371:
8372: lt_compiler_flag="-o out/conftest2.$ac_objext"
8373: # Insert the option either (1) after the last *FLAGS variable, or
8374: # (2) before a word containing "conftest.", or (3) at the end.
8375: # Note that $ac_compile itself does not contain backslashes and begins
8376: # with a dollar sign (not a hyphen), so the echo should work correctly.
8377: lt_compile=`echo "$ac_compile" | $SED \
8378: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8379: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8380: -e 's:$: $lt_compiler_flag:'`
8381: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8382: (eval "$lt_compile" 2>out/conftest.err)
8383: ac_status=$?
8384: cat out/conftest.err >&5
8385: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386: if (exit $ac_status) && test -s out/conftest2.$ac_objext
8387: then
8388: # The compiler can only warn and ignore the option if not recognized
8389: # So say no if there are warnings
8390: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8391: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8392: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8393: lt_cv_prog_compiler_c_o=yes
8394: fi
8395: fi
8396: chmod u+w . 2>&5
8397: $RM conftest*
8398: # SGI C++ compiler will create directory out/ii_files/ for
8399: # template instantiation
8400: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8401: $RM out/* && rmdir out
8402: cd ..
8403: $RM -r conftest
8404: $RM conftest*
1.15 paf 8405:
1.35 moko 8406: fi
8407: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8408: echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
1.15 paf 8409:
8410:
8411:
8412:
1.35 moko 8413: hard_links="nottested"
8414: if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8415: # do not overwrite the value of need_locks provided by the user
8416: echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8417: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8418: hard_links=yes
8419: $RM conftest*
8420: ln conftest.a conftest.b 2>/dev/null && hard_links=no
8421: touch conftest.a
8422: ln conftest.a conftest.b 2>&5 || hard_links=no
8423: ln conftest.a conftest.b 2>/dev/null && hard_links=no
8424: echo "$as_me:$LINENO: result: $hard_links" >&5
8425: echo "${ECHO_T}$hard_links" >&6
8426: if test "$hard_links" = no; then
8427: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8428: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8429: need_locks=warn
8430: fi
8431: else
8432: need_locks=no
8433: fi
1.15 paf 8434:
8435:
8436:
8437:
8438:
8439:
1.35 moko 8440: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8441: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
1.15 paf 8442:
1.35 moko 8443: runpath_var=
8444: allow_undefined_flag=
8445: always_export_symbols=no
8446: archive_cmds=
8447: archive_expsym_cmds=
8448: compiler_needs_object=no
8449: enable_shared_with_static_runtimes=no
8450: export_dynamic_flag_spec=
8451: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8452: hardcode_automatic=no
8453: hardcode_direct=no
8454: hardcode_direct_absolute=no
8455: hardcode_libdir_flag_spec=
8456: hardcode_libdir_separator=
8457: hardcode_minus_L=no
8458: hardcode_shlibpath_var=unsupported
8459: inherit_rpath=no
8460: link_all_deplibs=unknown
8461: module_cmds=
8462: module_expsym_cmds=
8463: old_archive_from_new_cmds=
8464: old_archive_from_expsyms_cmds=
8465: thread_safe_flag_spec=
8466: whole_archive_flag_spec=
8467: # include_expsyms should be a list of space-separated symbols to be *always*
8468: # included in the symbol list
8469: include_expsyms=
8470: # exclude_expsyms can be an extended regexp of symbols to exclude
8471: # it will be wrapped by ` (' and `)$', so one must not match beginning or
8472: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8473: # as well as any symbol that contains `d'.
8474: exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8475: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8476: # platforms (ab)use it in PIC code, but their linkers get confused if
8477: # the symbol is explicitly referenced. Since portable code cannot
8478: # rely on this symbol name, it's probably fine to never include it in
8479: # preloaded symbol tables.
8480: # Exclude shared library initialization/finalization symbols.
8481: extract_expsyms_cmds=
1.15 paf 8482:
8483: case $host_os in
1.35 moko 8484: cygwin* | mingw* | pw32* | cegcc*)
8485: # FIXME: the MSVC++ port hasn't been tested in a loooong time
8486: # When not using gcc, we currently assume that we are using
8487: # Microsoft Visual C++.
8488: if test "$GCC" != yes; then
8489: with_gnu_ld=no
8490: fi
8491: ;;
8492: interix*)
8493: # we just hope/assume this is gcc and not c89 (= MSVC++)
8494: with_gnu_ld=yes
8495: ;;
8496: openbsd*)
8497: with_gnu_ld=no
1.15 paf 8498: ;;
8499: esac
8500:
1.35 moko 8501: ld_shlibs=yes
1.15 paf 8502:
1.35 moko 8503: # On some targets, GNU ld is compatible enough with the native linker
8504: # that we're better off using the native interface for both.
8505: lt_use_gnu_ld_interface=no
8506: if test "$with_gnu_ld" = yes; then
8507: case $host_os in
8508: aix*)
8509: # The AIX port of GNU ld has always aspired to compatibility
8510: # with the native linker. However, as the warning in the GNU ld
8511: # block says, versions before 2.19.5* couldn't really create working
8512: # shared libraries, regardless of the interface used.
8513: case `$LD -v 2>&1` in
8514: *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8515: *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8516: *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8517: *)
8518: lt_use_gnu_ld_interface=yes
8519: ;;
8520: esac
8521: ;;
8522: *)
8523: lt_use_gnu_ld_interface=yes
8524: ;;
8525: esac
8526: fi
1.15 paf 8527:
1.35 moko 8528: if test "$lt_use_gnu_ld_interface" = yes; then
8529: # If archive_cmds runs LD, not CC, wlarc should be empty
8530: wlarc='${wl}'
8531:
8532: # Set some defaults for GNU ld with shared library support. These
8533: # are reset later if shared libraries are not supported. Putting them
8534: # here allows them to be overridden if necessary.
8535: runpath_var=LD_RUN_PATH
8536: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8537: export_dynamic_flag_spec='${wl}--export-dynamic'
8538: # ancient GNU ld didn't support --whole-archive et. al.
8539: if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8540: whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8541: else
8542: whole_archive_flag_spec=
8543: fi
8544: supports_anon_versioning=no
8545: case `$LD -v 2>&1` in
8546: *GNU\ gold*) supports_anon_versioning=yes ;;
8547: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8548: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8549: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8550: *\ 2.11.*) ;; # other 2.11 versions
8551: *) supports_anon_versioning=yes ;;
8552: esac
1.15 paf 8553:
1.35 moko 8554: # See if GNU ld supports shared libraries.
8555: case $host_os in
8556: aix[3-9]*)
8557: # On AIX/PPC, the GNU linker is very broken
8558: if test "$host_cpu" != ia64; then
8559: ld_shlibs=no
8560: cat <<_LT_EOF 1>&2
1.15 paf 8561:
1.35 moko 8562: *** Warning: the GNU linker, at least up to release 2.19, is reported
8563: *** to be unable to reliably create shared libraries on AIX.
8564: *** Therefore, libtool is disabling shared libraries support. If you
8565: *** really care for shared libraries, you may want to install binutils
8566: *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8567: *** You will then need to restart the configuration process.
1.15 paf 8568:
1.35 moko 8569: _LT_EOF
8570: fi
8571: ;;
1.15 paf 8572:
1.35 moko 8573: amigaos*)
8574: case $host_cpu in
8575: powerpc)
8576: # see comment about AmigaOS4 .so support
8577: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8578: archive_expsym_cmds=''
8579: ;;
8580: m68k)
8581: 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)'
8582: hardcode_libdir_flag_spec='-L$libdir'
8583: hardcode_minus_L=yes
8584: ;;
8585: esac
8586: ;;
1.15 paf 8587:
1.35 moko 8588: beos*)
8589: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8590: allow_undefined_flag=unsupported
8591: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8592: # support --undefined. This deserves some investigation. FIXME
8593: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8594: else
8595: ld_shlibs=no
8596: fi
8597: ;;
1.15 paf 8598:
1.35 moko 8599: cygwin* | mingw* | pw32* | cegcc*)
8600: # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8601: # as there is no search path for DLLs.
8602: hardcode_libdir_flag_spec='-L$libdir'
8603: export_dynamic_flag_spec='${wl}--export-all-symbols'
8604: allow_undefined_flag=unsupported
8605: always_export_symbols=no
8606: enable_shared_with_static_runtimes=yes
8607: 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'
8608: exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8609:
8610: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8611: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8612: # If the export-symbols file already is a .def file (1st line
8613: # is EXPORTS), use it as is; otherwise, prepend...
8614: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8615: cp $export_symbols $output_objdir/$soname.def;
8616: else
8617: echo EXPORTS > $output_objdir/$soname.def;
8618: cat $export_symbols >> $output_objdir/$soname.def;
8619: fi~
8620: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8621: else
8622: ld_shlibs=no
8623: fi
8624: ;;
1.15 paf 8625:
1.35 moko 8626: haiku*)
8627: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8628: link_all_deplibs=yes
8629: ;;
1.15 paf 8630:
1.35 moko 8631: interix[3-9]*)
8632: hardcode_direct=no
8633: hardcode_shlibpath_var=no
8634: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8635: export_dynamic_flag_spec='${wl}-E'
8636: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8637: # Instead, shared libraries are loaded at an image base (0x10000000 by
8638: # default) and relocated if they conflict, which is a slow very memory
8639: # consuming and fragmenting process. To avoid this, we pick a random,
8640: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8641: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8642: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8643: 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'
8644: ;;
1.15 paf 8645:
1.35 moko 8646: gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8647: tmp_diet=no
8648: if test "$host_os" = linux-dietlibc; then
8649: case $cc_basename in
8650: diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8651: esac
8652: fi
8653: if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8654: && test "$tmp_diet" = no
8655: then
8656: tmp_addflag=' $pic_flag'
8657: tmp_sharedflag='-shared'
8658: case $cc_basename,$host_cpu in
8659: pgcc*) # Portland Group C compiler
8660: 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'
8661: tmp_addflag=' $pic_flag'
8662: ;;
8663: pgf77* | pgf90* | pgf95* | pgfortran*)
8664: # Portland Group f77 and f90 compilers
8665: 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'
8666: tmp_addflag=' $pic_flag -Mnomain' ;;
8667: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8668: tmp_addflag=' -i_dynamic' ;;
8669: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8670: tmp_addflag=' -i_dynamic -nofor_main' ;;
8671: ifc* | ifort*) # Intel Fortran compiler
8672: tmp_addflag=' -nofor_main' ;;
8673: lf95*) # Lahey Fortran 8.1
8674: whole_archive_flag_spec=
8675: tmp_sharedflag='--shared' ;;
8676: xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8677: tmp_sharedflag='-qmkshrobj'
8678: tmp_addflag= ;;
8679: nvcc*) # Cuda Compiler Driver 2.2
8680: 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'
8681: compiler_needs_object=yes
8682: ;;
8683: esac
8684: case `$CC -V 2>&1 | sed 5q` in
8685: *Sun\ C*) # Sun C 5.9
8686: 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'
8687: compiler_needs_object=yes
8688: tmp_sharedflag='-G' ;;
8689: *Sun\ F*) # Sun Fortran 8.3
8690: tmp_sharedflag='-G' ;;
8691: esac
8692: archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1.15 paf 8693:
1.35 moko 8694: if test "x$supports_anon_versioning" = xyes; then
8695: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8696: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8697: echo "local: *; };" >> $output_objdir/$libname.ver~
8698: $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8699: fi
8700:
8701: case $cc_basename in
8702: xlf* | bgf* | bgxlf* | mpixlf*)
8703: # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8704: whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8705: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8706: archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8707: if test "x$supports_anon_versioning" = xyes; then
8708: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8709: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8710: echo "local: *; };" >> $output_objdir/$libname.ver~
8711: $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8712: fi
8713: ;;
8714: esac
8715: else
8716: ld_shlibs=no
8717: fi
8718: ;;
1.15 paf 8719:
1.35 moko 8720: netbsd*)
8721: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8722: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8723: wlarc=
8724: else
8725: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8726: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8727: fi
8728: ;;
1.15 paf 8729:
1.35 moko 8730: solaris*)
8731: if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8732: ld_shlibs=no
8733: cat <<_LT_EOF 1>&2
1.15 paf 8734:
1.35 moko 8735: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8736: *** create shared libraries on Solaris systems. Therefore, libtool
8737: *** is disabling shared libraries support. We urge you to upgrade GNU
8738: *** binutils to release 2.9.1 or newer. Another option is to modify
8739: *** your PATH or compiler configuration so that the native linker is
8740: *** used, and then restart.
1.15 paf 8741:
1.35 moko 8742: _LT_EOF
8743: elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
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: else
8747: ld_shlibs=no
8748: fi
8749: ;;
1.15 paf 8750:
1.35 moko 8751: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8752: case `$LD -v 2>&1` in
8753: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8754: ld_shlibs=no
8755: cat <<_LT_EOF 1>&2
1.31 misha 8756:
1.35 moko 8757: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8758: *** reliably create shared libraries on SCO systems. Therefore, libtool
8759: *** is disabling shared libraries support. We urge you to upgrade GNU
8760: *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8761: *** your PATH or compiler configuration so that the native linker is
8762: *** used, and then restart.
1.31 misha 8763:
1.35 moko 8764: _LT_EOF
8765: ;;
8766: *)
8767: # For security reasons, it is highly recommended that you always
8768: # use absolute paths for naming shared libraries, and exclude the
8769: # DT_RUNPATH tag from executables and libraries. But doing so
8770: # requires that you compile everything twice, which is a pain.
8771: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8772: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8773: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8774: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8775: else
8776: ld_shlibs=no
8777: fi
8778: ;;
8779: esac
8780: ;;
1.31 misha 8781:
1.35 moko 8782: sunos4*)
8783: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8784: wlarc=
8785: hardcode_direct=yes
8786: hardcode_shlibpath_var=no
8787: ;;
1.15 paf 8788:
1.35 moko 8789: *)
8790: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8791: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8792: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8793: else
8794: ld_shlibs=no
8795: fi
8796: ;;
8797: esac
1.15 paf 8798:
1.35 moko 8799: if test "$ld_shlibs" = no; then
8800: runpath_var=
8801: hardcode_libdir_flag_spec=
8802: export_dynamic_flag_spec=
8803: whole_archive_flag_spec=
8804: fi
8805: else
8806: # PORTME fill in a description of your system's linker (not GNU ld)
8807: case $host_os in
8808: aix3*)
8809: allow_undefined_flag=unsupported
8810: always_export_symbols=yes
8811: 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'
8812: # Note: this linker hardcodes the directories in LIBPATH if there
8813: # are no directories specified by -L.
8814: hardcode_minus_L=yes
8815: if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8816: # Neither direct hardcoding nor static linking is supported with a
8817: # broken collect2.
8818: hardcode_direct=unsupported
8819: fi
8820: ;;
1.15 paf 8821:
1.35 moko 8822: aix[4-9]*)
8823: if test "$host_cpu" = ia64; then
8824: # On IA64, the linker does run time linking by default, so we don't
8825: # have to do anything special.
8826: aix_use_runtimelinking=no
8827: exp_sym_flag='-Bexport'
8828: no_entry_flag=""
8829: else
8830: # If we're using GNU nm, then we don't want the "-C" option.
8831: # -C means demangle to AIX nm, but means don't demangle with GNU nm
8832: # Also, AIX nm treats weak defined symbols like other global
8833: # defined symbols, whereas GNU nm marks them as "W".
8834: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8835: 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'
8836: else
8837: 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'
8838: fi
8839: aix_use_runtimelinking=no
1.15 paf 8840:
1.35 moko 8841: # Test if we are trying to use run time linking or normal
8842: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8843: # need to do runtime linking.
8844: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8845: for ld_flag in $LDFLAGS; do
8846: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8847: aix_use_runtimelinking=yes
8848: break
8849: fi
8850: done
8851: ;;
8852: esac
1.15 paf 8853:
1.35 moko 8854: exp_sym_flag='-bexport'
8855: no_entry_flag='-bnoentry'
8856: fi
1.23 paf 8857:
1.35 moko 8858: # When large executables or shared objects are built, AIX ld can
8859: # have problems creating the table of contents. If linking a library
8860: # or program results in "error TOC overflow" add -mminimal-toc to
8861: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8862: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8863:
8864: archive_cmds=''
8865: hardcode_direct=yes
8866: hardcode_direct_absolute=yes
8867: hardcode_libdir_separator=':'
8868: link_all_deplibs=yes
8869: file_list_spec='${wl}-f,'
8870:
8871: if test "$GCC" = yes; then
8872: case $host_os in aix4.[012]|aix4.[012].*)
8873: # We only want to do this on AIX 4.2 and lower, the check
8874: # below for broken collect2 doesn't work under 4.3+
8875: collect2name=`${CC} -print-prog-name=collect2`
8876: if test -f "$collect2name" &&
8877: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8878: then
8879: # We have reworked collect2
8880: :
8881: else
8882: # We have old collect2
8883: hardcode_direct=unsupported
8884: # It fails to find uninstalled libraries when the uninstalled
8885: # path is not listed in the libpath. Setting hardcode_minus_L
8886: # to unsupported forces relinking
8887: hardcode_minus_L=yes
8888: hardcode_libdir_flag_spec='-L$libdir'
8889: hardcode_libdir_separator=
8890: fi
8891: ;;
8892: esac
8893: shared_flag='-shared'
8894: if test "$aix_use_runtimelinking" = yes; then
8895: shared_flag="$shared_flag "'${wl}-G'
8896: fi
8897: else
8898: # not using gcc
8899: if test "$host_cpu" = ia64; then
8900: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8901: # chokes on -Wl,-G. The following line is correct:
8902: shared_flag='-G'
8903: else
8904: if test "$aix_use_runtimelinking" = yes; then
8905: shared_flag='${wl}-G'
8906: else
8907: shared_flag='${wl}-bM:SRE'
8908: fi
8909: fi
8910: fi
1.15 paf 8911:
1.35 moko 8912: export_dynamic_flag_spec='${wl}-bexpall'
8913: # It seems that -bexpall does not export symbols beginning with
8914: # underscore (_), so it is better to generate a list of symbols to export.
8915: always_export_symbols=yes
8916: if test "$aix_use_runtimelinking" = yes; then
8917: # Warning - without using the other runtime loading flags (-brtl),
8918: # -berok will link without error, but may produce a broken library.
8919: allow_undefined_flag='-berok'
8920: # Determine the default libpath from the value encoded in an
8921: # empty executable.
8922: if test "${lt_cv_aix_libpath+set}" = set; then
8923: aix_libpath=$lt_cv_aix_libpath
8924: else
8925: if test "${lt_cv_aix_libpath_+set}" = set; then
1.15 paf 8926: echo $ECHO_N "(cached) $ECHO_C" >&6
8927: else
1.35 moko 8928: cat >conftest.$ac_ext <<_ACEOF
1.15 paf 8929: /* confdefs.h. */
8930: _ACEOF
8931: cat confdefs.h >>conftest.$ac_ext
8932: cat >>conftest.$ac_ext <<_ACEOF
8933: /* end confdefs.h. */
1.35 moko 8934:
8935: int
8936: main ()
8937: {
8938:
8939: ;
8940: return 0;
8941: }
1.15 paf 8942: _ACEOF
1.35 moko 8943: rm -f conftest.$ac_objext conftest$ac_exeext
8944: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8945: (eval $ac_link) 2>conftest.er1
1.15 paf 8946: ac_status=$?
1.25 paf 8947: grep -v '^ *+' conftest.er1 >conftest.err
8948: rm -f conftest.er1
8949: cat conftest.err >&5
1.15 paf 8950: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951: (exit $ac_status); } &&
1.25 paf 8952: { ac_try='test -z "$ac_c_werror_flag"
8953: || test ! -s conftest.err'
8954: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8955: (eval $ac_try) 2>&5
8956: ac_status=$?
8957: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958: (exit $ac_status); }; } &&
1.35 moko 8959: { ac_try='test -s conftest$ac_exeext'
1.15 paf 8960: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8961: (eval $ac_try) 2>&5
8962: ac_status=$?
8963: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8964: (exit $ac_status); }; }; then
1.35 moko 8965:
8966: lt_aix_libpath_sed='
8967: /Import File Strings/,/^$/ {
8968: /^0/ {
8969: s/^0 *\([^ ]*\) *$/\1/
8970: p
8971: }
8972: }'
8973: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8974: # Check for a 64-bit object if we didn't find anything.
8975: if test -z "$lt_cv_aix_libpath_"; then
8976: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8977: fi
1.15 paf 8978: else
8979: echo "$as_me: failed program was:" >&5
8980: sed 's/^/| /' conftest.$ac_ext >&5
8981:
8982: fi
1.35 moko 8983: rm -f conftest.err conftest.$ac_objext \
8984: conftest$ac_exeext conftest.$ac_ext
8985: if test -z "$lt_cv_aix_libpath_"; then
8986: lt_cv_aix_libpath_="/usr/lib:/lib"
8987: fi
8988:
8989: fi
8990:
8991: aix_libpath=$lt_cv_aix_libpath_
8992: fi
1.15 paf 8993:
1.35 moko 8994: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8995: 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"
8996: else
8997: if test "$host_cpu" = ia64; then
8998: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8999: allow_undefined_flag="-z nodefs"
9000: 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"
9001: else
9002: # Determine the default libpath from the value encoded in an
9003: # empty executable.
9004: if test "${lt_cv_aix_libpath+set}" = set; then
9005: aix_libpath=$lt_cv_aix_libpath
9006: else
9007: if test "${lt_cv_aix_libpath_+set}" = set; then
9008: echo $ECHO_N "(cached) $ECHO_C" >&6
9009: else
9010: cat >conftest.$ac_ext <<_ACEOF
9011: /* confdefs.h. */
1.15 paf 9012: _ACEOF
9013: cat confdefs.h >>conftest.$ac_ext
9014: cat >>conftest.$ac_ext <<_ACEOF
9015: /* end confdefs.h. */
1.35 moko 9016:
9017: int
9018: main ()
9019: {
9020:
9021: ;
9022: return 0;
9023: }
1.15 paf 9024: _ACEOF
1.35 moko 9025: rm -f conftest.$ac_objext conftest$ac_exeext
9026: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9027: (eval $ac_link) 2>conftest.er1
1.15 paf 9028: ac_status=$?
9029: grep -v '^ *+' conftest.er1 >conftest.err
9030: rm -f conftest.er1
9031: cat conftest.err >&5
9032: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.35 moko 9033: (exit $ac_status); } &&
9034: { ac_try='test -z "$ac_c_werror_flag"
9035: || test ! -s conftest.err'
9036: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9037: (eval $ac_try) 2>&5
9038: ac_status=$?
9039: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040: (exit $ac_status); }; } &&
9041: { ac_try='test -s conftest$ac_exeext'
9042: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9043: (eval $ac_try) 2>&5
9044: ac_status=$?
9045: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9046: (exit $ac_status); }; }; then
9047:
9048: lt_aix_libpath_sed='
9049: /Import File Strings/,/^$/ {
9050: /^0/ {
9051: s/^0 *\([^ ]*\) *$/\1/
9052: p
9053: }
9054: }'
9055: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9056: # Check for a 64-bit object if we didn't find anything.
9057: if test -z "$lt_cv_aix_libpath_"; then
9058: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1.15 paf 9059: fi
9060: else
9061: echo "$as_me: failed program was:" >&5
9062: sed 's/^/| /' conftest.$ac_ext >&5
9063:
9064: fi
1.35 moko 9065: rm -f conftest.err conftest.$ac_objext \
9066: conftest$ac_exeext conftest.$ac_ext
9067: if test -z "$lt_cv_aix_libpath_"; then
9068: lt_cv_aix_libpath_="/usr/lib:/lib"
9069: fi
9070:
9071: fi
9072:
9073: aix_libpath=$lt_cv_aix_libpath_
9074: fi
9075:
9076: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9077: # Warning - without using the other run time loading flags,
9078: # -berok will link without error, but may produce a broken library.
9079: no_undefined_flag=' ${wl}-bernotok'
9080: allow_undefined_flag=' ${wl}-berok'
9081: if test "$with_gnu_ld" = yes; then
9082: # We only use this code for GNU lds that support --whole-archive.
9083: whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9084: else
9085: # Exported symbols can be pulled into shared objects from archives
9086: whole_archive_flag_spec='$convenience'
9087: fi
9088: archive_cmds_need_lc=yes
9089: # This is similar to how AIX traditionally builds its shared libraries.
9090: 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'
9091: fi
9092: fi
9093: ;;
9094:
9095: amigaos*)
9096: case $host_cpu in
9097: powerpc)
9098: # see comment about AmigaOS4 .so support
9099: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9100: archive_expsym_cmds=''
9101: ;;
9102: m68k)
9103: 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)'
9104: hardcode_libdir_flag_spec='-L$libdir'
9105: hardcode_minus_L=yes
9106: ;;
9107: esac
9108: ;;
9109:
9110: bsdi[45]*)
9111: export_dynamic_flag_spec=-rdynamic
9112: ;;
9113:
9114: cygwin* | mingw* | pw32* | cegcc*)
9115: # When not using gcc, we currently assume that we are using
9116: # Microsoft Visual C++.
9117: # hardcode_libdir_flag_spec is actually meaningless, as there is
9118: # no search path for DLLs.
9119: case $cc_basename in
9120: cl*)
9121: # Native MSVC
9122: hardcode_libdir_flag_spec=' '
9123: allow_undefined_flag=unsupported
9124: always_export_symbols=yes
9125: file_list_spec='@'
9126: # Tell ltmain to make .lib files, not .a files.
9127: libext=lib
9128: # Tell ltmain to make .dll files, not .so files.
9129: shrext_cmds=".dll"
9130: # FIXME: Setting linknames here is a bad hack.
9131: archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9132: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9133: sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9134: else
9135: sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9136: fi~
9137: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9138: linknames='
9139: # The linker will not automatically build a static lib if we build a DLL.
9140: # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9141: enable_shared_with_static_runtimes=yes
9142: exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9143: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9144: # Don't use ranlib
9145: old_postinstall_cmds='chmod 644 $oldlib'
9146: postlink_cmds='lt_outputfile="@OUTPUT@"~
9147: lt_tool_outputfile="@TOOL_OUTPUT@"~
9148: case $lt_outputfile in
9149: *.exe|*.EXE) ;;
9150: *)
9151: lt_outputfile="$lt_outputfile.exe"
9152: lt_tool_outputfile="$lt_tool_outputfile.exe"
9153: ;;
9154: esac~
9155: if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9156: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9157: $RM "$lt_outputfile.manifest";
9158: fi'
9159: ;;
9160: *)
9161: # Assume MSVC wrapper
9162: hardcode_libdir_flag_spec=' '
9163: allow_undefined_flag=unsupported
9164: # Tell ltmain to make .lib files, not .a files.
9165: libext=lib
9166: # Tell ltmain to make .dll files, not .so files.
9167: shrext_cmds=".dll"
9168: # FIXME: Setting linknames here is a bad hack.
9169: archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9170: # The linker will automatically build a .lib file if we build a DLL.
9171: old_archive_from_new_cmds='true'
9172: # FIXME: Should let the user specify the lib program.
9173: old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9174: enable_shared_with_static_runtimes=yes
9175: ;;
9176: esac
9177: ;;
9178:
9179: darwin* | rhapsody*)
9180:
9181:
9182: archive_cmds_need_lc=no
9183: hardcode_direct=no
9184: hardcode_automatic=yes
9185: hardcode_shlibpath_var=unsupported
9186: if test "$lt_cv_ld_force_load" = "yes"; then
9187: 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\"`'
9188:
9189: else
9190: whole_archive_flag_spec=''
9191: fi
9192: link_all_deplibs=yes
9193: allow_undefined_flag="$_lt_dar_allow_undefined"
9194: case $cc_basename in
9195: ifort*) _lt_dar_can_shared=yes ;;
9196: *) _lt_dar_can_shared=$GCC ;;
9197: esac
9198: if test "$_lt_dar_can_shared" = "yes"; then
9199: output_verbose_link_cmd=func_echo_all
9200: archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9201: module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9202: 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}"
9203: 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}"
9204:
9205: else
9206: ld_shlibs=no
9207: fi
9208:
9209: ;;
9210:
9211: dgux*)
9212: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9213: hardcode_libdir_flag_spec='-L$libdir'
9214: hardcode_shlibpath_var=no
9215: ;;
9216:
9217: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9218: # support. Future versions do this automatically, but an explicit c++rt0.o
9219: # does not break anything, and helps significantly (at the cost of a little
9220: # extra space).
9221: freebsd2.2*)
9222: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9223: hardcode_libdir_flag_spec='-R$libdir'
9224: hardcode_direct=yes
9225: hardcode_shlibpath_var=no
9226: ;;
9227:
9228: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9229: freebsd2.*)
9230: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9231: hardcode_direct=yes
9232: hardcode_minus_L=yes
9233: hardcode_shlibpath_var=no
9234: ;;
9235:
9236: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9237: freebsd* | dragonfly*)
9238: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9239: hardcode_libdir_flag_spec='-R$libdir'
9240: hardcode_direct=yes
9241: hardcode_shlibpath_var=no
9242: ;;
9243:
9244: hpux9*)
9245: if test "$GCC" = yes; then
9246: 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'
9247: else
9248: 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'
9249: fi
9250: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9251: hardcode_libdir_separator=:
9252: hardcode_direct=yes
9253:
9254: # hardcode_minus_L: Not really in the search PATH,
9255: # but as the default location of the library.
9256: hardcode_minus_L=yes
9257: export_dynamic_flag_spec='${wl}-E'
9258: ;;
9259:
9260: hpux10*)
9261: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9262: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9263: else
9264: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9265: fi
9266: if test "$with_gnu_ld" = no; then
9267: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9268: hardcode_libdir_separator=:
9269: hardcode_direct=yes
9270: hardcode_direct_absolute=yes
9271: export_dynamic_flag_spec='${wl}-E'
9272: # hardcode_minus_L: Not really in the search PATH,
9273: # but as the default location of the library.
9274: hardcode_minus_L=yes
9275: fi
9276: ;;
9277:
9278: hpux11*)
9279: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9280: case $host_cpu in
9281: hppa*64*)
9282: archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9283: ;;
9284: ia64*)
9285: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9286: ;;
9287: *)
9288: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9289: ;;
9290: esac
9291: else
9292: case $host_cpu in
9293: hppa*64*)
9294: archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9295: ;;
9296: ia64*)
9297: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9298: ;;
9299: *)
1.15 paf 9300:
1.35 moko 9301: # Older versions of the 11.00 compiler do not understand -b yet
9302: # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9303: echo "$as_me:$LINENO: checking if $CC understands -b" >&5
9304: echo $ECHO_N "checking if $CC understands -b... $ECHO_C" >&6
9305: if test "${lt_cv_prog_compiler__b+set}" = set; then
1.15 paf 9306: echo $ECHO_N "(cached) $ECHO_C" >&6
9307: else
1.35 moko 9308: lt_cv_prog_compiler__b=no
9309: save_LDFLAGS="$LDFLAGS"
9310: LDFLAGS="$LDFLAGS -b"
9311: echo "$lt_simple_link_test_code" > conftest.$ac_ext
9312: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9313: # The linker can only warn and ignore the option if not recognized
9314: # So say no if there are warnings
9315: if test -s conftest.err; then
9316: # Append any errors to the config.log.
9317: cat conftest.err 1>&5
9318: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9319: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9320: if diff conftest.exp conftest.er2 >/dev/null; then
9321: lt_cv_prog_compiler__b=yes
9322: fi
9323: else
9324: lt_cv_prog_compiler__b=yes
9325: fi
9326: fi
9327: $RM -r conftest*
9328: LDFLAGS="$save_LDFLAGS"
1.15 paf 9329:
1.1 parser 9330: fi
1.35 moko 9331: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler__b" >&5
9332: echo "${ECHO_T}$lt_cv_prog_compiler__b" >&6
1.1 parser 9333:
1.35 moko 9334: if test x"$lt_cv_prog_compiler__b" = xyes; then
9335: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9336: else
9337: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
1.1 parser 9338: fi
9339:
1.35 moko 9340: ;;
9341: esac
9342: fi
9343: if test "$with_gnu_ld" = no; then
9344: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9345: hardcode_libdir_separator=:
9346:
9347: case $host_cpu in
9348: hppa*64*|ia64*)
9349: hardcode_direct=no
9350: hardcode_shlibpath_var=no
9351: ;;
9352: *)
9353: hardcode_direct=yes
9354: hardcode_direct_absolute=yes
9355: export_dynamic_flag_spec='${wl}-E'
1.15 paf 9356:
1.35 moko 9357: # hardcode_minus_L: Not really in the search PATH,
9358: # but as the default location of the library.
9359: hardcode_minus_L=yes
9360: ;;
9361: esac
9362: fi
9363: ;;
1.1 parser 9364:
1.35 moko 9365: irix5* | irix6* | nonstopux*)
9366: if test "$GCC" = yes; then
9367: 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'
9368: # Try to use the -exported_symbol ld option, if it does not
9369: # work, assume that -exports_file does not work either and
9370: # implicitly export all symbols.
9371: # This should be the same for all languages, so no per-tag cache variable.
9372: echo "$as_me:$LINENO: checking whether the $host_os linker accepts -exported_symbol" >&5
9373: echo $ECHO_N "checking whether the $host_os linker accepts -exported_symbol... $ECHO_C" >&6
9374: if test "${lt_cv_irix_exported_symbol+set}" = set; then
1.15 paf 9375: echo $ECHO_N "(cached) $ECHO_C" >&6
9376: else
1.35 moko 9377: save_LDFLAGS="$LDFLAGS"
9378: LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9379: cat >conftest.$ac_ext <<_ACEOF
1.15 paf 9380: /* confdefs.h. */
9381: _ACEOF
9382: cat confdefs.h >>conftest.$ac_ext
9383: cat >>conftest.$ac_ext <<_ACEOF
9384: /* end confdefs.h. */
1.35 moko 9385: int foo (void) { return 0; }
1.15 paf 9386: _ACEOF
1.35 moko 9387: rm -f conftest.$ac_objext conftest$ac_exeext
9388: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9389: (eval $ac_link) 2>conftest.er1
1.15 paf 9390: ac_status=$?
1.25 paf 9391: grep -v '^ *+' conftest.er1 >conftest.err
9392: rm -f conftest.er1
9393: cat conftest.err >&5
1.15 paf 9394: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9395: (exit $ac_status); } &&
1.25 paf 9396: { ac_try='test -z "$ac_c_werror_flag"
9397: || test ! -s conftest.err'
9398: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9399: (eval $ac_try) 2>&5
9400: ac_status=$?
9401: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9402: (exit $ac_status); }; } &&
1.35 moko 9403: { ac_try='test -s conftest$ac_exeext'
1.15 paf 9404: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9405: (eval $ac_try) 2>&5
9406: ac_status=$?
9407: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9408: (exit $ac_status); }; }; then
1.35 moko 9409: lt_cv_irix_exported_symbol=yes
1.1 parser 9410: else
1.15 paf 9411: echo "$as_me: failed program was:" >&5
9412: sed 's/^/| /' conftest.$ac_ext >&5
9413:
1.35 moko 9414: lt_cv_irix_exported_symbol=no
1.15 paf 9415: fi
1.35 moko 9416: rm -f conftest.err conftest.$ac_objext \
9417: conftest$ac_exeext conftest.$ac_ext
9418: LDFLAGS="$save_LDFLAGS"
1.1 parser 9419: fi
1.35 moko 9420: echo "$as_me:$LINENO: result: $lt_cv_irix_exported_symbol" >&5
9421: echo "${ECHO_T}$lt_cv_irix_exported_symbol" >&6
9422: if test "$lt_cv_irix_exported_symbol" = yes; then
9423: 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'
9424: fi
9425: else
9426: 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'
9427: 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'
9428: fi
9429: archive_cmds_need_lc='no'
9430: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9431: hardcode_libdir_separator=:
9432: inherit_rpath=yes
9433: link_all_deplibs=yes
9434: ;;
9435:
9436: netbsd*)
9437: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9438: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9439: else
9440: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9441: fi
9442: hardcode_libdir_flag_spec='-R$libdir'
9443: hardcode_direct=yes
9444: hardcode_shlibpath_var=no
9445: ;;
9446:
9447: newsos6)
9448: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9449: hardcode_direct=yes
9450: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9451: hardcode_libdir_separator=:
9452: hardcode_shlibpath_var=no
9453: ;;
9454:
9455: *nto* | *qnx*)
9456: ;;
1.1 parser 9457:
1.35 moko 9458: openbsd*)
9459: if test -f /usr/libexec/ld.so; then
9460: hardcode_direct=yes
9461: hardcode_shlibpath_var=no
9462: hardcode_direct_absolute=yes
9463: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9464: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9465: archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9466: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9467: export_dynamic_flag_spec='${wl}-E'
9468: else
9469: case $host_os in
9470: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9471: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9472: hardcode_libdir_flag_spec='-R$libdir'
9473: ;;
9474: *)
9475: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9476: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9477: ;;
9478: esac
9479: fi
9480: else
9481: ld_shlibs=no
9482: fi
9483: ;;
1.1 parser 9484:
1.35 moko 9485: os2*)
9486: hardcode_libdir_flag_spec='-L$libdir'
9487: hardcode_minus_L=yes
9488: allow_undefined_flag=unsupported
9489: 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'
9490: old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9491: ;;
1.1 parser 9492:
1.35 moko 9493: osf3*)
9494: if test "$GCC" = yes; then
9495: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9496: 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'
9497: else
9498: allow_undefined_flag=' -expect_unresolved \*'
9499: 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'
9500: fi
9501: archive_cmds_need_lc='no'
9502: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9503: hardcode_libdir_separator=:
9504: ;;
1.1 parser 9505:
1.35 moko 9506: osf4* | osf5*) # as osf3* with the addition of -msym flag
9507: if test "$GCC" = yes; then
9508: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9509: 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'
9510: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9511: else
9512: allow_undefined_flag=' -expect_unresolved \*'
9513: 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'
9514: 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~
9515: $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.1 parser 9516:
1.35 moko 9517: # Both c and cxx compiler support -rpath directly
9518: hardcode_libdir_flag_spec='-rpath $libdir'
9519: fi
9520: archive_cmds_need_lc='no'
9521: hardcode_libdir_separator=:
9522: ;;
1.1 parser 9523:
1.35 moko 9524: solaris*)
9525: no_undefined_flag=' -z defs'
9526: if test "$GCC" = yes; then
9527: wlarc='${wl}'
9528: archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9529: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9530: $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'
9531: else
9532: case `$CC -V 2>&1` in
9533: *"Compilers 5.0"*)
9534: wlarc=''
9535: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9536: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9537: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9538: ;;
9539: *)
9540: wlarc='${wl}'
9541: archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9542: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9543: $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9544: ;;
9545: esac
9546: fi
9547: hardcode_libdir_flag_spec='-R$libdir'
9548: hardcode_shlibpath_var=no
9549: case $host_os in
9550: solaris2.[0-5] | solaris2.[0-5].*) ;;
9551: *)
9552: # The compiler driver will combine and reorder linker options,
9553: # but understands `-z linker_flag'. GCC discards it without `$wl',
9554: # but is careful enough not to reorder.
9555: # Supported since Solaris 2.6 (maybe 2.5.1?)
9556: if test "$GCC" = yes; then
9557: whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9558: else
9559: whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9560: fi
9561: ;;
9562: esac
9563: link_all_deplibs=yes
9564: ;;
9565:
9566: sunos4*)
9567: if test "x$host_vendor" = xsequent; then
9568: # Use $CC to link under sequent, because it throws in some extra .o
9569: # files that make .init and .fini sections work.
9570: archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9571: else
9572: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9573: fi
9574: hardcode_libdir_flag_spec='-L$libdir'
9575: hardcode_direct=yes
9576: hardcode_minus_L=yes
9577: hardcode_shlibpath_var=no
9578: ;;
9579:
9580: sysv4)
9581: case $host_vendor in
9582: sni)
9583: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9584: hardcode_direct=yes # is this really true???
9585: ;;
9586: siemens)
9587: ## LD is ld it makes a PLAMLIB
9588: ## CC just makes a GrossModule.
9589: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9590: reload_cmds='$CC -r -o $output$reload_objs'
9591: hardcode_direct=no
9592: ;;
9593: motorola)
9594: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9595: hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9596: ;;
9597: esac
9598: runpath_var='LD_RUN_PATH'
9599: hardcode_shlibpath_var=no
9600: ;;
9601:
9602: sysv4.3*)
9603: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9604: hardcode_shlibpath_var=no
9605: export_dynamic_flag_spec='-Bexport'
9606: ;;
9607:
9608: sysv4*MP*)
9609: if test -d /usr/nec; then
9610: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9611: hardcode_shlibpath_var=no
9612: runpath_var=LD_RUN_PATH
9613: hardcode_runpath_var=yes
9614: ld_shlibs=yes
9615: fi
9616: ;;
9617:
9618: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9619: no_undefined_flag='${wl}-z,text'
9620: archive_cmds_need_lc=no
9621: hardcode_shlibpath_var=no
9622: runpath_var='LD_RUN_PATH'
9623:
9624: if test "$GCC" = yes; then
9625: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9626: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9627: else
9628: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9629: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9630: fi
9631: ;;
1.15 paf 9632:
1.35 moko 9633: sysv5* | sco3.2v5* | sco5v6*)
9634: # Note: We can NOT use -z defs as we might desire, because we do not
9635: # link with -lc, and that would cause any symbols used from libc to
9636: # always be unresolved, which means just about no library would
9637: # ever link correctly. If we're not using GNU ld we use -z text
9638: # though, which does catch some bad symbols but isn't as heavy-handed
9639: # as -z defs.
9640: no_undefined_flag='${wl}-z,text'
9641: allow_undefined_flag='${wl}-z,nodefs'
9642: archive_cmds_need_lc=no
9643: hardcode_shlibpath_var=no
9644: hardcode_libdir_flag_spec='${wl}-R,$libdir'
9645: hardcode_libdir_separator=':'
9646: link_all_deplibs=yes
9647: export_dynamic_flag_spec='${wl}-Bexport'
9648: runpath_var='LD_RUN_PATH'
9649:
9650: if test "$GCC" = yes; then
9651: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9652: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9653: else
9654: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9655: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9656: fi
9657: ;;
1.15 paf 9658:
1.35 moko 9659: uts4*)
9660: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9661: hardcode_libdir_flag_spec='-L$libdir'
9662: hardcode_shlibpath_var=no
1.15 paf 9663: ;;
1.35 moko 9664:
1.15 paf 9665: *)
1.35 moko 9666: ld_shlibs=no
1.15 paf 9667: ;;
1.35 moko 9668: esac
9669:
9670: if test x$host_vendor = xsni; then
9671: case $host in
9672: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9673: export_dynamic_flag_spec='${wl}-Blargedynsym'
9674: ;;
9675: esac
9676: fi
1.1 parser 9677: fi
9678:
1.35 moko 9679: echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9680: echo "${ECHO_T}$ld_shlibs" >&6
9681: test "$ld_shlibs" = no && can_build_shared=no
9682:
9683: with_gnu_ld=$with_gnu_ld
1.1 parser 9684:
9685:
1.15 paf 9686:
9687:
9688:
1.1 parser 9689:
9690:
1.15 paf 9691:
9692:
9693:
9694:
9695:
9696:
9697:
9698:
1.35 moko 9699: #
9700: # Do we need to explicitly link libc?
9701: #
9702: case "x$archive_cmds_need_lc" in
9703: x|xyes)
9704: # Assume -lc should be added
9705: archive_cmds_need_lc=yes
9706:
9707: if test "$enable_shared" = yes && test "$GCC" = yes; then
9708: case $archive_cmds in
9709: *'~'*)
9710: # FIXME: we may have to deal with multi-command sequences.
9711: ;;
9712: '$CC '*)
9713: # Test whether the compiler implicitly links with -lc since on some
9714: # systems, -lgcc has to come before -lc. If gcc already passes -lc
9715: # to ld, don't add -lc before -lgcc.
9716: echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9717: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9718: if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
9719: echo $ECHO_N "(cached) $ECHO_C" >&6
1.15 paf 9720: else
1.35 moko 9721: $RM conftest*
9722: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9723:
9724: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9725: (eval $ac_compile) 2>&5
9726: ac_status=$?
9727: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728: (exit $ac_status); } 2>conftest.err; then
9729: soname=conftest
9730: lib=conftest
9731: libobjs=conftest.$ac_objext
9732: deplibs=
9733: wl=$lt_prog_compiler_wl
9734: pic_flag=$lt_prog_compiler_pic
9735: compiler_flags=-v
9736: linker_flags=-v
9737: verstring=
9738: output_objdir=.
9739: libname=conftest
9740: lt_save_allow_undefined_flag=$allow_undefined_flag
9741: allow_undefined_flag=
9742: if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9743: (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9744: ac_status=$?
9745: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746: (exit $ac_status); }
9747: then
9748: lt_cv_archive_cmds_need_lc=no
9749: else
9750: lt_cv_archive_cmds_need_lc=yes
9751: fi
9752: allow_undefined_flag=$lt_save_allow_undefined_flag
9753: else
9754: cat conftest.err 1>&5
9755: fi
9756: $RM conftest*
9757:
1.15 paf 9758: fi
1.35 moko 9759: echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
9760: echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
9761: archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9762: ;;
9763: esac
9764: fi
9765: ;;
9766: esac
9767:
9768:
9769:
9770:
9771:
9772:
9773:
9774:
9775:
9776:
9777:
9778:
9779:
9780:
9781:
9782:
9783:
9784:
9785:
9786:
9787:
9788:
9789:
9790:
9791:
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:
1.15 paf 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:
1.1 parser 9867:
1.15 paf 9868:
9869:
9870:
9871:
9872:
1.1 parser 9873:
1.15 paf 9874:
9875:
9876:
9877:
1.1 parser 9878:
1.15 paf 9879:
9880:
9881:
9882:
1.1 parser 9883:
9884:
9885:
9886:
9887:
9888:
9889:
1.15 paf 9890:
9891:
9892:
1.25 paf 9893:
1.15 paf 9894:
9895:
1.1 parser 9896:
1.15 paf 9897:
9898:
9899:
1.1 parser 9900:
9901:
9902:
9903:
1.15 paf 9904:
9905:
1.1 parser 9906:
1.15 paf 9907:
9908:
9909:
9910:
1.1 parser 9911:
1.25 paf 9912:
1.15 paf 9913:
9914:
1.25 paf 9915:
1.15 paf 9916:
9917:
1.35 moko 9918:
9919: echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9920: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9921:
9922: if test "$GCC" = yes; then
9923: case $host_os in
9924: darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9925: *) lt_awk_arg="/^libraries:/" ;;
9926: esac
9927: case $host_os in
9928: mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9929: *) lt_sed_strip_eq="s,=/,/,g" ;;
9930: esac
9931: lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9932: case $lt_search_path_spec in
9933: *\;*)
9934: # if the path contains ";" then we assume it to be the separator
9935: # otherwise default to the standard path separator (i.e. ":") - it is
9936: # assumed that no part of a normal pathname contains ";" but that should
9937: # okay in the real world where ";" in dirpaths is itself problematic.
9938: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9939: ;;
9940: *)
9941: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9942: ;;
9943: esac
9944: # Ok, now we have the path, separated by spaces, we can step through it
9945: # and add multilib dir if necessary.
9946: lt_tmp_lt_search_path_spec=
9947: lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9948: for lt_sys_path in $lt_search_path_spec; do
9949: if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9950: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9951: else
9952: test -d "$lt_sys_path" && \
9953: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9954: fi
9955: done
9956: lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9957: BEGIN {RS=" "; FS="/|\n";} {
9958: lt_foo="";
9959: lt_count=0;
9960: for (lt_i = NF; lt_i > 0; lt_i--) {
9961: if ($lt_i != "" && $lt_i != ".") {
9962: if ($lt_i == "..") {
9963: lt_count++;
9964: } else {
9965: if (lt_count == 0) {
9966: lt_foo="/" $lt_i lt_foo;
9967: } else {
9968: lt_count--;
9969: }
9970: }
9971: }
9972: }
9973: if (lt_foo != "") { lt_freq[lt_foo]++; }
9974: if (lt_freq[lt_foo] == 1) { print lt_foo; }
9975: }'`
9976: # AWK program above erroneously prepends '/' to C:/dos/paths
9977: # for these hosts.
9978: case $host_os in
9979: mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9980: $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9981: esac
9982: sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9983: else
9984: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9985: fi
9986: library_names_spec=
9987: libname_spec='lib$name'
9988: soname_spec=
9989: shrext_cmds=".so"
9990: postinstall_cmds=
9991: postuninstall_cmds=
9992: finish_cmds=
9993: finish_eval=
9994: shlibpath_var=
9995: shlibpath_overrides_runpath=unknown
9996: version_type=none
9997: dynamic_linker="$host_os ld.so"
9998: sys_lib_dlsearch_path_spec="/lib /usr/lib"
9999: need_lib_prefix=unknown
10000: hardcode_into_libs=no
10001:
10002: # when you set need_version to no, make sure it does not cause -set_version
10003: # flags to be left without arguments
10004: need_version=unknown
10005:
10006: case $host_os in
10007: aix3*)
10008: version_type=linux # correct to gnu/linux during the next big refactor
10009: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10010: shlibpath_var=LIBPATH
10011:
10012: # AIX 3 has no versioning support, so we append a major version to the name.
10013: soname_spec='${libname}${release}${shared_ext}$major'
10014: ;;
10015:
10016: aix[4-9]*)
10017: version_type=linux # correct to gnu/linux during the next big refactor
10018: need_lib_prefix=no
10019: need_version=no
10020: hardcode_into_libs=yes
10021: if test "$host_cpu" = ia64; then
10022: # AIX 5 supports IA64
10023: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10024: shlibpath_var=LD_LIBRARY_PATH
1.15 paf 10025: else
1.35 moko 10026: # With GCC up to 2.95.x, collect2 would create an import file
10027: # for dependence libraries. The import file would start with
10028: # the line `#! .'. This would cause the generated library to
10029: # depend on `.', always an invalid library. This was fixed in
10030: # development snapshots of GCC prior to 3.0.
10031: case $host_os in
10032: aix4 | aix4.[01] | aix4.[01].*)
10033: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10034: echo ' yes '
10035: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10036: :
10037: else
10038: can_build_shared=no
10039: fi
10040: ;;
10041: esac
10042: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10043: # soname into executable. Probably we can add versioning support to
10044: # collect2, so additional links can be useful in future.
10045: if test "$aix_use_runtimelinking" = yes; then
10046: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10047: # instead of lib<name>.a to let people know that these are not
10048: # typical AIX shared libraries.
10049: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10050: else
10051: # We preserve .a as extension for shared libraries through AIX4.2
10052: # and later when we are not doing run time linking.
10053: library_names_spec='${libname}${release}.a $libname.a'
10054: soname_spec='${libname}${release}${shared_ext}$major'
10055: fi
10056: shlibpath_var=LIBPATH
1.15 paf 10057: fi
1.35 moko 10058: ;;
10059:
10060: amigaos*)
10061: case $host_cpu in
10062: powerpc)
10063: # Since July 2007 AmigaOS4 officially supports .so libraries.
10064: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10065: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10066: ;;
10067: m68k)
10068: library_names_spec='$libname.ixlibrary $libname.a'
10069: # Create ${libname}_ixlibrary.a entries in /sys/libs.
10070: 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'
10071: ;;
10072: esac
10073: ;;
10074:
10075: beos*)
10076: library_names_spec='${libname}${shared_ext}'
10077: dynamic_linker="$host_os ld.so"
10078: shlibpath_var=LIBRARY_PATH
10079: ;;
10080:
10081: bsdi[45]*)
10082: version_type=linux # correct to gnu/linux during the next big refactor
10083: need_version=no
10084: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10085: soname_spec='${libname}${release}${shared_ext}$major'
10086: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10087: shlibpath_var=LD_LIBRARY_PATH
10088: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10089: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10090: # the default ld.so.conf also contains /usr/contrib/lib and
10091: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10092: # libtool to hard-code these into programs
10093: ;;
10094:
10095: cygwin* | mingw* | pw32* | cegcc*)
10096: version_type=windows
10097: shrext_cmds=".dll"
10098: need_version=no
10099: need_lib_prefix=no
10100:
10101: case $GCC,$cc_basename in
10102: yes,*)
10103: # gcc
10104: library_names_spec='$libname.dll.a'
10105: # DLL is installed to $(libdir)/../bin by postinstall_cmds
10106: postinstall_cmds='base_file=`basename \${file}`~
10107: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10108: dldir=$destdir/`dirname \$dlpath`~
10109: test -d \$dldir || mkdir -p \$dldir~
10110: $install_prog $dir/$dlname \$dldir/$dlname~
10111: chmod a+x \$dldir/$dlname~
10112: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10113: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10114: fi'
10115: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10116: dlpath=$dir/\$dldll~
10117: $RM \$dlpath'
10118: shlibpath_overrides_runpath=yes
10119:
10120: case $host_os in
10121: cygwin*)
10122: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10123: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10124:
10125: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10126: ;;
10127: mingw* | cegcc*)
10128: # MinGW DLLs use traditional 'lib' prefix
10129: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10130: ;;
10131: pw32*)
10132: # pw32 DLLs use 'pw' prefix rather than 'lib'
10133: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10134: ;;
10135: esac
10136: dynamic_linker='Win32 ld.exe'
10137: ;;
10138:
10139: *,cl*)
10140: # Native MSVC
10141: libname_spec='$name'
10142: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10143: library_names_spec='${libname}.dll.lib'
10144:
10145: case $build_os in
10146: mingw*)
10147: sys_lib_search_path_spec=
10148: lt_save_ifs=$IFS
10149: IFS=';'
10150: for lt_path in $LIB
10151: do
10152: IFS=$lt_save_ifs
10153: # Let DOS variable expansion print the short 8.3 style file name.
10154: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10155: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10156: done
10157: IFS=$lt_save_ifs
10158: # Convert to MSYS style.
10159: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10160: ;;
10161: cygwin*)
10162: # Convert to unix form, then to dos form, then back to unix form
10163: # but this time dos style (no spaces!) so that the unix form looks
10164: # like /cygdrive/c/PROGRA~1:/cygdr...
10165: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10166: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10167: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10168: ;;
10169: *)
10170: sys_lib_search_path_spec="$LIB"
10171: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10172: # It is most probably a Windows format PATH.
10173: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10174: else
10175: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10176: fi
10177: # FIXME: find the short name or the path components, as spaces are
10178: # common. (e.g. "Program Files" -> "PROGRA~1")
10179: ;;
10180: esac
10181:
10182: # DLL is installed to $(libdir)/../bin by postinstall_cmds
10183: postinstall_cmds='base_file=`basename \${file}`~
10184: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10185: dldir=$destdir/`dirname \$dlpath`~
10186: test -d \$dldir || mkdir -p \$dldir~
10187: $install_prog $dir/$dlname \$dldir/$dlname'
10188: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10189: dlpath=$dir/\$dldll~
10190: $RM \$dlpath'
10191: shlibpath_overrides_runpath=yes
10192: dynamic_linker='Win32 link.exe'
10193: ;;
10194:
10195: *)
10196: # Assume MSVC wrapper
10197: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10198: dynamic_linker='Win32 ld.exe'
10199: ;;
10200: esac
10201: # FIXME: first we should search . and the directory the executable is in
10202: shlibpath_var=PATH
10203: ;;
10204:
10205: darwin* | rhapsody*)
10206: dynamic_linker="$host_os dyld"
10207: version_type=darwin
10208: need_lib_prefix=no
10209: need_version=no
10210: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10211: soname_spec='${libname}${release}${major}$shared_ext'
10212: shlibpath_overrides_runpath=yes
10213: shlibpath_var=DYLD_LIBRARY_PATH
10214: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10215:
10216: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10217: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10218: ;;
10219:
10220: dgux*)
10221: version_type=linux # correct to gnu/linux during the next big refactor
10222: need_lib_prefix=no
10223: need_version=no
10224: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10225: soname_spec='${libname}${release}${shared_ext}$major'
10226: shlibpath_var=LD_LIBRARY_PATH
10227: ;;
10228:
10229: freebsd* | dragonfly*)
10230: # DragonFly does not have aout. When/if they implement a new
10231: # versioning mechanism, adjust this.
10232: if test -x /usr/bin/objformat; then
10233: objformat=`/usr/bin/objformat`
1.15 paf 10234: else
1.35 moko 10235: case $host_os in
10236: freebsd[23].*) objformat=aout ;;
10237: *) objformat=elf ;;
10238: esac
10239: fi
10240: version_type=freebsd-$objformat
10241: case $version_type in
10242: freebsd-elf*)
10243: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10244: need_version=no
10245: need_lib_prefix=no
10246: ;;
10247: freebsd-*)
10248: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10249: need_version=yes
10250: ;;
10251: esac
10252: shlibpath_var=LD_LIBRARY_PATH
10253: case $host_os in
10254: freebsd2.*)
10255: shlibpath_overrides_runpath=yes
10256: ;;
10257: freebsd3.[01]* | freebsdelf3.[01]*)
10258: shlibpath_overrides_runpath=yes
10259: hardcode_into_libs=yes
10260: ;;
10261: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10262: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10263: shlibpath_overrides_runpath=no
10264: hardcode_into_libs=yes
10265: ;;
10266: *) # from 4.6 on, and DragonFly
10267: shlibpath_overrides_runpath=yes
10268: hardcode_into_libs=yes
10269: ;;
10270: esac
10271: ;;
10272:
10273: gnu*)
10274: version_type=linux # correct to gnu/linux during the next big refactor
10275: need_lib_prefix=no
10276: need_version=no
10277: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10278: soname_spec='${libname}${release}${shared_ext}$major'
10279: shlibpath_var=LD_LIBRARY_PATH
10280: shlibpath_overrides_runpath=no
10281: hardcode_into_libs=yes
10282: ;;
10283:
10284: haiku*)
10285: version_type=linux # correct to gnu/linux during the next big refactor
10286: need_lib_prefix=no
10287: need_version=no
10288: dynamic_linker="$host_os runtime_loader"
10289: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10290: soname_spec='${libname}${release}${shared_ext}$major'
10291: shlibpath_var=LIBRARY_PATH
10292: shlibpath_overrides_runpath=yes
10293: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10294: hardcode_into_libs=yes
10295: ;;
10296:
10297: hpux9* | hpux10* | hpux11*)
10298: # Give a soname corresponding to the major version so that dld.sl refuses to
10299: # link against other versions.
10300: version_type=sunos
10301: need_lib_prefix=no
10302: need_version=no
10303: case $host_cpu in
10304: ia64*)
10305: shrext_cmds='.so'
10306: hardcode_into_libs=yes
10307: dynamic_linker="$host_os dld.so"
10308: shlibpath_var=LD_LIBRARY_PATH
10309: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10310: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10311: soname_spec='${libname}${release}${shared_ext}$major'
10312: if test "X$HPUX_IA64_MODE" = X32; then
10313: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10314: else
10315: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10316: fi
10317: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10318: ;;
10319: hppa*64*)
10320: shrext_cmds='.sl'
10321: hardcode_into_libs=yes
10322: dynamic_linker="$host_os dld.sl"
10323: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10324: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10325: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10326: soname_spec='${libname}${release}${shared_ext}$major'
10327: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10328: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10329: ;;
10330: *)
10331: shrext_cmds='.sl'
10332: dynamic_linker="$host_os dld.sl"
10333: shlibpath_var=SHLIB_PATH
10334: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10335: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10336: soname_spec='${libname}${release}${shared_ext}$major'
10337: ;;
10338: esac
10339: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10340: postinstall_cmds='chmod 555 $lib'
10341: # or fails outright, so override atomically:
10342: install_override_mode=555
10343: ;;
10344:
10345: interix[3-9]*)
10346: version_type=linux # correct to gnu/linux during the next big refactor
10347: need_lib_prefix=no
10348: need_version=no
10349: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10350: soname_spec='${libname}${release}${shared_ext}$major'
10351: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10352: shlibpath_var=LD_LIBRARY_PATH
10353: shlibpath_overrides_runpath=no
10354: hardcode_into_libs=yes
10355: ;;
10356:
10357: irix5* | irix6* | nonstopux*)
10358: case $host_os in
10359: nonstopux*) version_type=nonstopux ;;
10360: *)
10361: if test "$lt_cv_prog_gnu_ld" = yes; then
10362: version_type=linux # correct to gnu/linux during the next big refactor
10363: else
10364: version_type=irix
10365: fi ;;
10366: esac
10367: need_lib_prefix=no
10368: need_version=no
10369: soname_spec='${libname}${release}${shared_ext}$major'
10370: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10371: case $host_os in
10372: irix5* | nonstopux*)
10373: libsuff= shlibsuff=
10374: ;;
10375: *)
10376: case $LD in # libtool.m4 will add one of these switches to LD
10377: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10378: libsuff= shlibsuff= libmagic=32-bit;;
10379: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10380: libsuff=32 shlibsuff=N32 libmagic=N32;;
10381: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10382: libsuff=64 shlibsuff=64 libmagic=64-bit;;
10383: *) libsuff= shlibsuff= libmagic=never-match;;
10384: esac
10385: ;;
10386: esac
10387: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10388: shlibpath_overrides_runpath=no
10389: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10390: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10391: hardcode_into_libs=yes
10392: ;;
10393:
10394: # No shared lib support for Linux oldld, aout, or coff.
10395: linux*oldld* | linux*aout* | linux*coff*)
10396: dynamic_linker=no
10397: ;;
10398:
10399: # This must be glibc/ELF.
10400: linux* | k*bsd*-gnu | kopensolaris*-gnu)
10401: version_type=linux # correct to gnu/linux during the next big refactor
10402: need_lib_prefix=no
10403: need_version=no
10404: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10405: soname_spec='${libname}${release}${shared_ext}$major'
10406: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10407: shlibpath_var=LD_LIBRARY_PATH
10408: shlibpath_overrides_runpath=no
10409:
10410: # Some binutils ld are patched to set DT_RUNPATH
10411: if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
10412: echo $ECHO_N "(cached) $ECHO_C" >&6
10413: else
10414: lt_cv_shlibpath_overrides_runpath=no
10415: save_LDFLAGS=$LDFLAGS
10416: save_libdir=$libdir
10417: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10418: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10419: cat >conftest.$ac_ext <<_ACEOF
10420: /* confdefs.h. */
10421: _ACEOF
10422: cat confdefs.h >>conftest.$ac_ext
10423: cat >>conftest.$ac_ext <<_ACEOF
10424: /* end confdefs.h. */
10425:
10426: int
10427: main ()
10428: {
10429:
10430: ;
10431: return 0;
10432: }
10433: _ACEOF
10434: rm -f conftest.$ac_objext conftest$ac_exeext
10435: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10436: (eval $ac_link) 2>conftest.er1
10437: ac_status=$?
10438: grep -v '^ *+' conftest.er1 >conftest.err
10439: rm -f conftest.er1
10440: cat conftest.err >&5
10441: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10442: (exit $ac_status); } &&
10443: { ac_try='test -z "$ac_c_werror_flag"
10444: || test ! -s conftest.err'
10445: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10446: (eval $ac_try) 2>&5
10447: ac_status=$?
10448: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449: (exit $ac_status); }; } &&
10450: { ac_try='test -s conftest$ac_exeext'
10451: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10452: (eval $ac_try) 2>&5
10453: ac_status=$?
10454: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455: (exit $ac_status); }; }; then
10456: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10457: lt_cv_shlibpath_overrides_runpath=yes
10458: fi
10459:
10460: else
10461: echo "$as_me: failed program was:" >&5
10462: sed 's/^/| /' conftest.$ac_ext >&5
10463:
10464: fi
10465: rm -f conftest.err conftest.$ac_objext \
10466: conftest$ac_exeext conftest.$ac_ext
10467: LDFLAGS=$save_LDFLAGS
10468: libdir=$save_libdir
10469:
10470: fi
10471:
10472: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10473:
10474: # This implies no fast_install, which is unacceptable.
10475: # Some rework will be needed to allow for fast_install
10476: # before this can be enabled.
10477: hardcode_into_libs=yes
10478:
10479: # Append ld.so.conf contents to the search path
10480: if test -f /etc/ld.so.conf; then
10481: 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' ' '`
10482: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10483: fi
10484:
10485: # We used to test for /lib/ld.so.1 and disable shared libraries on
10486: # powerpc, because MkLinux only supported shared libraries with the
10487: # GNU dynamic linker. Since this was broken with cross compilers,
10488: # most powerpc-linux boxes support dynamic linking these days and
10489: # people can always --disable-shared, the test was removed, and we
10490: # assume the GNU/Linux dynamic linker is in use.
10491: dynamic_linker='GNU/Linux ld.so'
10492: ;;
10493:
10494: netbsd*)
10495: version_type=sunos
10496: need_lib_prefix=no
10497: need_version=no
10498: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10499: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10500: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10501: dynamic_linker='NetBSD (a.out) ld.so'
10502: else
10503: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10504: soname_spec='${libname}${release}${shared_ext}$major'
10505: dynamic_linker='NetBSD ld.elf_so'
10506: fi
10507: shlibpath_var=LD_LIBRARY_PATH
10508: shlibpath_overrides_runpath=yes
10509: hardcode_into_libs=yes
10510: ;;
10511:
10512: newsos6)
10513: version_type=linux # correct to gnu/linux during the next big refactor
10514: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10515: shlibpath_var=LD_LIBRARY_PATH
10516: shlibpath_overrides_runpath=yes
10517: ;;
10518:
10519: *nto* | *qnx*)
10520: version_type=qnx
10521: need_lib_prefix=no
10522: need_version=no
10523: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10524: soname_spec='${libname}${release}${shared_ext}$major'
10525: shlibpath_var=LD_LIBRARY_PATH
10526: shlibpath_overrides_runpath=no
10527: hardcode_into_libs=yes
10528: dynamic_linker='ldqnx.so'
10529: ;;
10530:
10531: openbsd*)
10532: version_type=sunos
10533: sys_lib_dlsearch_path_spec="/usr/lib"
10534: need_lib_prefix=no
10535: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10536: case $host_os in
10537: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10538: *) need_version=no ;;
10539: esac
10540: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10541: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10542: shlibpath_var=LD_LIBRARY_PATH
10543: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10544: case $host_os in
10545: openbsd2.[89] | openbsd2.[89].*)
10546: shlibpath_overrides_runpath=no
10547: ;;
10548: *)
10549: shlibpath_overrides_runpath=yes
10550: ;;
10551: esac
10552: else
10553: shlibpath_overrides_runpath=yes
10554: fi
10555: ;;
10556:
10557: os2*)
10558: libname_spec='$name'
10559: shrext_cmds=".dll"
10560: need_lib_prefix=no
10561: library_names_spec='$libname${shared_ext} $libname.a'
10562: dynamic_linker='OS/2 ld.exe'
10563: shlibpath_var=LIBPATH
10564: ;;
10565:
10566: osf3* | osf4* | osf5*)
10567: version_type=osf
10568: need_lib_prefix=no
10569: need_version=no
10570: soname_spec='${libname}${release}${shared_ext}$major'
10571: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10572: shlibpath_var=LD_LIBRARY_PATH
10573: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10574: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10575: ;;
10576:
10577: rdos*)
10578: dynamic_linker=no
10579: ;;
10580:
10581: solaris*)
10582: version_type=linux # correct to gnu/linux during the next big refactor
10583: need_lib_prefix=no
10584: need_version=no
10585: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10586: soname_spec='${libname}${release}${shared_ext}$major'
10587: shlibpath_var=LD_LIBRARY_PATH
10588: shlibpath_overrides_runpath=yes
10589: hardcode_into_libs=yes
10590: # ldd complains unless libraries are executable
10591: postinstall_cmds='chmod +x $lib'
10592: ;;
10593:
10594: sunos4*)
10595: version_type=sunos
10596: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10597: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10598: shlibpath_var=LD_LIBRARY_PATH
10599: shlibpath_overrides_runpath=yes
10600: if test "$with_gnu_ld" = yes; then
10601: need_lib_prefix=no
10602: fi
10603: need_version=yes
10604: ;;
10605:
10606: sysv4 | sysv4.3*)
10607: version_type=linux # correct to gnu/linux during the next big refactor
10608: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10609: soname_spec='${libname}${release}${shared_ext}$major'
10610: shlibpath_var=LD_LIBRARY_PATH
10611: case $host_vendor in
10612: sni)
10613: shlibpath_overrides_runpath=no
10614: need_lib_prefix=no
10615: runpath_var=LD_RUN_PATH
10616: ;;
10617: siemens)
10618: need_lib_prefix=no
10619: ;;
10620: motorola)
10621: need_lib_prefix=no
10622: need_version=no
10623: shlibpath_overrides_runpath=no
10624: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10625: ;;
10626: esac
10627: ;;
10628:
10629: sysv4*MP*)
10630: if test -d /usr/nec ;then
10631: version_type=linux # correct to gnu/linux during the next big refactor
10632: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10633: soname_spec='$libname${shared_ext}.$major'
10634: shlibpath_var=LD_LIBRARY_PATH
10635: fi
10636: ;;
10637:
10638: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10639: version_type=freebsd-elf
10640: need_lib_prefix=no
10641: need_version=no
10642: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10643: soname_spec='${libname}${release}${shared_ext}$major'
10644: shlibpath_var=LD_LIBRARY_PATH
10645: shlibpath_overrides_runpath=yes
10646: hardcode_into_libs=yes
10647: if test "$with_gnu_ld" = yes; then
10648: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10649: else
10650: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10651: case $host_os in
10652: sco3.2v5*)
10653: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10654: ;;
10655: esac
10656: fi
10657: sys_lib_dlsearch_path_spec='/usr/lib'
10658: ;;
10659:
10660: tpf*)
10661: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10662: version_type=linux # correct to gnu/linux during the next big refactor
10663: need_lib_prefix=no
10664: need_version=no
10665: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10666: shlibpath_var=LD_LIBRARY_PATH
10667: shlibpath_overrides_runpath=no
10668: hardcode_into_libs=yes
10669: ;;
10670:
10671: uts4*)
10672: version_type=linux # correct to gnu/linux during the next big refactor
10673: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10674: soname_spec='${libname}${release}${shared_ext}$major'
10675: shlibpath_var=LD_LIBRARY_PATH
10676: ;;
10677:
10678: *)
10679: dynamic_linker=no
10680: ;;
10681: esac
10682: echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10683: echo "${ECHO_T}$dynamic_linker" >&6
10684: test "$dynamic_linker" = no && can_build_shared=no
10685:
10686: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10687: if test "$GCC" = yes; then
10688: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10689: fi
10690:
10691: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10692: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10693: fi
10694: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10695: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10696: fi
10697:
10698:
10699:
10700:
10701:
10702:
10703:
10704:
10705:
10706:
10707:
10708:
10709:
10710:
10711:
10712:
10713:
10714:
10715:
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: echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10790: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10791: hardcode_action=
10792: if test -n "$hardcode_libdir_flag_spec" ||
10793: test -n "$runpath_var" ||
10794: test "X$hardcode_automatic" = "Xyes" ; then
10795:
10796: # We can hardcode non-existent directories.
10797: if test "$hardcode_direct" != no &&
10798: # If the only mechanism to avoid hardcoding is shlibpath_var, we
10799: # have to relink, otherwise we might link with an installed library
10800: # when we should be linking with a yet-to-be-installed one
10801: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10802: test "$hardcode_minus_L" != no; then
10803: # Linking always hardcodes the temporary library directory.
10804: hardcode_action=relink
10805: else
10806: # We can link without hardcoding, and we can hardcode nonexisting dirs.
10807: hardcode_action=immediate
10808: fi
10809: else
10810: # We cannot hardcode anything, or else we can only hardcode existing
10811: # directories.
10812: hardcode_action=unsupported
10813: fi
10814: echo "$as_me:$LINENO: result: $hardcode_action" >&5
10815: echo "${ECHO_T}$hardcode_action" >&6
10816:
10817: if test "$hardcode_action" = relink ||
10818: test "$inherit_rpath" = yes; then
10819: # Fast installation is not supported
10820: enable_fast_install=no
10821: elif test "$shlibpath_overrides_runpath" = yes ||
10822: test "$enable_shared" = no; then
10823: # Fast installation is not necessary
10824: enable_fast_install=needless
10825: fi
10826:
10827:
10828:
10829:
10830:
10831:
10832: if test "x$enable_dlopen" != xyes; then
10833: enable_dlopen=unknown
10834: enable_dlopen_self=unknown
10835: enable_dlopen_self_static=unknown
10836: else
10837: lt_cv_dlopen=no
10838: lt_cv_dlopen_libs=
10839:
10840: case $host_os in
10841: beos*)
10842: lt_cv_dlopen="load_add_on"
10843: lt_cv_dlopen_libs=
10844: lt_cv_dlopen_self=yes
10845: ;;
10846:
10847: mingw* | pw32* | cegcc*)
10848: lt_cv_dlopen="LoadLibrary"
10849: lt_cv_dlopen_libs=
10850: ;;
10851:
10852: cygwin*)
10853: lt_cv_dlopen="dlopen"
10854: lt_cv_dlopen_libs=
10855: ;;
10856:
10857: darwin*)
10858: # if libdl is installed we need to link against it
10859: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10860: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10861: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10862: echo $ECHO_N "(cached) $ECHO_C" >&6
10863: else
10864: ac_check_lib_save_LIBS=$LIBS
10865: LIBS="-ldl $LIBS"
10866: cat >conftest.$ac_ext <<_ACEOF
10867: /* confdefs.h. */
10868: _ACEOF
10869: cat confdefs.h >>conftest.$ac_ext
10870: cat >>conftest.$ac_ext <<_ACEOF
10871: /* end confdefs.h. */
10872:
10873: /* Override any gcc2 internal prototype to avoid an error. */
10874: #ifdef __cplusplus
10875: extern "C"
10876: #endif
10877: /* We use char because int might match the return type of a gcc2
10878: builtin and then its argument prototype would still apply. */
10879: char dlopen ();
10880: int
10881: main ()
10882: {
10883: dlopen ();
10884: ;
10885: return 0;
10886: }
10887: _ACEOF
10888: rm -f conftest.$ac_objext conftest$ac_exeext
10889: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10890: (eval $ac_link) 2>conftest.er1
10891: ac_status=$?
10892: grep -v '^ *+' conftest.er1 >conftest.err
10893: rm -f conftest.er1
10894: cat conftest.err >&5
10895: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10896: (exit $ac_status); } &&
10897: { ac_try='test -z "$ac_c_werror_flag"
10898: || test ! -s conftest.err'
10899: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10900: (eval $ac_try) 2>&5
10901: ac_status=$?
10902: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903: (exit $ac_status); }; } &&
10904: { ac_try='test -s conftest$ac_exeext'
10905: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10906: (eval $ac_try) 2>&5
10907: ac_status=$?
10908: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10909: (exit $ac_status); }; }; then
10910: ac_cv_lib_dl_dlopen=yes
10911: else
10912: echo "$as_me: failed program was:" >&5
10913: sed 's/^/| /' conftest.$ac_ext >&5
10914:
10915: ac_cv_lib_dl_dlopen=no
10916: fi
10917: rm -f conftest.err conftest.$ac_objext \
10918: conftest$ac_exeext conftest.$ac_ext
10919: LIBS=$ac_check_lib_save_LIBS
10920: fi
10921: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10922: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10923: if test $ac_cv_lib_dl_dlopen = yes; then
10924: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10925: else
10926:
10927: lt_cv_dlopen="dyld"
10928: lt_cv_dlopen_libs=
10929: lt_cv_dlopen_self=yes
10930:
10931: fi
10932:
10933: ;;
10934:
10935: *)
10936: echo "$as_me:$LINENO: checking for shl_load" >&5
10937: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10938: if test "${ac_cv_func_shl_load+set}" = set; then
10939: echo $ECHO_N "(cached) $ECHO_C" >&6
10940: else
10941: cat >conftest.$ac_ext <<_ACEOF
10942: /* confdefs.h. */
10943: _ACEOF
10944: cat confdefs.h >>conftest.$ac_ext
10945: cat >>conftest.$ac_ext <<_ACEOF
10946: /* end confdefs.h. */
10947: /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10948: For example, HP-UX 11i <limits.h> declares gettimeofday. */
10949: #define shl_load innocuous_shl_load
10950:
10951: /* System header to define __stub macros and hopefully few prototypes,
10952: which can conflict with char shl_load (); below.
10953: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10954: <limits.h> exists even on freestanding compilers. */
10955:
10956: #ifdef __STDC__
10957: # include <limits.h>
10958: #else
10959: # include <assert.h>
10960: #endif
10961:
10962: #undef shl_load
10963:
10964: /* Override any gcc2 internal prototype to avoid an error. */
10965: #ifdef __cplusplus
10966: extern "C"
10967: {
10968: #endif
10969: /* We use char because int might match the return type of a gcc2
10970: builtin and then its argument prototype would still apply. */
10971: char shl_load ();
10972: /* The GNU C library defines this for functions which it implements
10973: to always fail with ENOSYS. Some functions are actually named
10974: something starting with __ and the normal name is an alias. */
10975: #if defined (__stub_shl_load) || defined (__stub___shl_load)
10976: choke me
10977: #else
10978: char (*f) () = shl_load;
10979: #endif
10980: #ifdef __cplusplus
10981: }
10982: #endif
10983:
10984: int
10985: main ()
10986: {
10987: return f != shl_load;
10988: ;
10989: return 0;
10990: }
10991: _ACEOF
10992: rm -f conftest.$ac_objext conftest$ac_exeext
10993: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10994: (eval $ac_link) 2>conftest.er1
10995: ac_status=$?
10996: grep -v '^ *+' conftest.er1 >conftest.err
10997: rm -f conftest.er1
10998: cat conftest.err >&5
10999: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11000: (exit $ac_status); } &&
11001: { ac_try='test -z "$ac_c_werror_flag"
11002: || test ! -s conftest.err'
11003: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11004: (eval $ac_try) 2>&5
11005: ac_status=$?
11006: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007: (exit $ac_status); }; } &&
11008: { ac_try='test -s conftest$ac_exeext'
11009: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11010: (eval $ac_try) 2>&5
11011: ac_status=$?
11012: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013: (exit $ac_status); }; }; then
11014: ac_cv_func_shl_load=yes
11015: else
11016: echo "$as_me: failed program was:" >&5
11017: sed 's/^/| /' conftest.$ac_ext >&5
11018:
11019: ac_cv_func_shl_load=no
11020: fi
11021: rm -f conftest.err conftest.$ac_objext \
11022: conftest$ac_exeext conftest.$ac_ext
11023: fi
11024: echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11025: echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11026: if test $ac_cv_func_shl_load = yes; then
11027: lt_cv_dlopen="shl_load"
11028: else
11029: echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11030: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11031: if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11032: echo $ECHO_N "(cached) $ECHO_C" >&6
11033: else
11034: ac_check_lib_save_LIBS=$LIBS
11035: LIBS="-ldld $LIBS"
11036: cat >conftest.$ac_ext <<_ACEOF
11037: /* confdefs.h. */
11038: _ACEOF
11039: cat confdefs.h >>conftest.$ac_ext
11040: cat >>conftest.$ac_ext <<_ACEOF
11041: /* end confdefs.h. */
11042:
11043: /* Override any gcc2 internal prototype to avoid an error. */
11044: #ifdef __cplusplus
11045: extern "C"
11046: #endif
11047: /* We use char because int might match the return type of a gcc2
11048: builtin and then its argument prototype would still apply. */
11049: char shl_load ();
11050: int
11051: main ()
11052: {
11053: shl_load ();
11054: ;
11055: return 0;
11056: }
11057: _ACEOF
11058: rm -f conftest.$ac_objext conftest$ac_exeext
11059: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11060: (eval $ac_link) 2>conftest.er1
11061: ac_status=$?
11062: grep -v '^ *+' conftest.er1 >conftest.err
11063: rm -f conftest.er1
11064: cat conftest.err >&5
11065: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11066: (exit $ac_status); } &&
11067: { ac_try='test -z "$ac_c_werror_flag"
11068: || test ! -s conftest.err'
11069: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11070: (eval $ac_try) 2>&5
11071: ac_status=$?
11072: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11073: (exit $ac_status); }; } &&
11074: { ac_try='test -s conftest$ac_exeext'
11075: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11076: (eval $ac_try) 2>&5
11077: ac_status=$?
11078: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11079: (exit $ac_status); }; }; then
11080: ac_cv_lib_dld_shl_load=yes
11081: else
11082: echo "$as_me: failed program was:" >&5
11083: sed 's/^/| /' conftest.$ac_ext >&5
11084:
11085: ac_cv_lib_dld_shl_load=no
11086: fi
11087: rm -f conftest.err conftest.$ac_objext \
11088: conftest$ac_exeext conftest.$ac_ext
11089: LIBS=$ac_check_lib_save_LIBS
11090: fi
11091: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11092: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11093: if test $ac_cv_lib_dld_shl_load = yes; then
11094: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11095: else
11096: echo "$as_me:$LINENO: checking for dlopen" >&5
11097: echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11098: if test "${ac_cv_func_dlopen+set}" = set; then
11099: echo $ECHO_N "(cached) $ECHO_C" >&6
11100: else
11101: cat >conftest.$ac_ext <<_ACEOF
11102: /* confdefs.h. */
11103: _ACEOF
11104: cat confdefs.h >>conftest.$ac_ext
11105: cat >>conftest.$ac_ext <<_ACEOF
11106: /* end confdefs.h. */
11107: /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11108: For example, HP-UX 11i <limits.h> declares gettimeofday. */
11109: #define dlopen innocuous_dlopen
11110:
11111: /* System header to define __stub macros and hopefully few prototypes,
11112: which can conflict with char dlopen (); below.
11113: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11114: <limits.h> exists even on freestanding compilers. */
11115:
11116: #ifdef __STDC__
11117: # include <limits.h>
11118: #else
11119: # include <assert.h>
11120: #endif
11121:
11122: #undef dlopen
11123:
11124: /* Override any gcc2 internal prototype to avoid an error. */
11125: #ifdef __cplusplus
11126: extern "C"
11127: {
11128: #endif
11129: /* We use char because int might match the return type of a gcc2
11130: builtin and then its argument prototype would still apply. */
11131: char dlopen ();
11132: /* The GNU C library defines this for functions which it implements
11133: to always fail with ENOSYS. Some functions are actually named
11134: something starting with __ and the normal name is an alias. */
11135: #if defined (__stub_dlopen) || defined (__stub___dlopen)
11136: choke me
11137: #else
11138: char (*f) () = dlopen;
11139: #endif
11140: #ifdef __cplusplus
11141: }
11142: #endif
11143:
11144: int
11145: main ()
11146: {
11147: return f != dlopen;
11148: ;
11149: return 0;
11150: }
11151: _ACEOF
11152: rm -f conftest.$ac_objext conftest$ac_exeext
11153: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11154: (eval $ac_link) 2>conftest.er1
11155: ac_status=$?
11156: grep -v '^ *+' conftest.er1 >conftest.err
11157: rm -f conftest.er1
11158: cat conftest.err >&5
11159: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11160: (exit $ac_status); } &&
11161: { ac_try='test -z "$ac_c_werror_flag"
11162: || test ! -s conftest.err'
11163: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11164: (eval $ac_try) 2>&5
11165: ac_status=$?
11166: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11167: (exit $ac_status); }; } &&
11168: { ac_try='test -s conftest$ac_exeext'
11169: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11170: (eval $ac_try) 2>&5
11171: ac_status=$?
11172: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11173: (exit $ac_status); }; }; then
11174: ac_cv_func_dlopen=yes
11175: else
11176: echo "$as_me: failed program was:" >&5
11177: sed 's/^/| /' conftest.$ac_ext >&5
11178:
11179: ac_cv_func_dlopen=no
11180: fi
11181: rm -f conftest.err conftest.$ac_objext \
11182: conftest$ac_exeext conftest.$ac_ext
11183: fi
11184: echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11185: echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11186: if test $ac_cv_func_dlopen = yes; then
11187: lt_cv_dlopen="dlopen"
11188: else
11189: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11190: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11191: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11192: echo $ECHO_N "(cached) $ECHO_C" >&6
11193: else
11194: ac_check_lib_save_LIBS=$LIBS
11195: LIBS="-ldl $LIBS"
11196: cat >conftest.$ac_ext <<_ACEOF
11197: /* confdefs.h. */
11198: _ACEOF
11199: cat confdefs.h >>conftest.$ac_ext
11200: cat >>conftest.$ac_ext <<_ACEOF
11201: /* end confdefs.h. */
11202:
11203: /* Override any gcc2 internal prototype to avoid an error. */
11204: #ifdef __cplusplus
11205: extern "C"
11206: #endif
11207: /* We use char because int might match the return type of a gcc2
11208: builtin and then its argument prototype would still apply. */
11209: char dlopen ();
11210: int
11211: main ()
11212: {
11213: dlopen ();
11214: ;
11215: return 0;
11216: }
11217: _ACEOF
11218: rm -f conftest.$ac_objext conftest$ac_exeext
11219: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11220: (eval $ac_link) 2>conftest.er1
11221: ac_status=$?
11222: grep -v '^ *+' conftest.er1 >conftest.err
11223: rm -f conftest.er1
11224: cat conftest.err >&5
11225: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11226: (exit $ac_status); } &&
11227: { ac_try='test -z "$ac_c_werror_flag"
11228: || test ! -s conftest.err'
11229: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11230: (eval $ac_try) 2>&5
11231: ac_status=$?
11232: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11233: (exit $ac_status); }; } &&
11234: { ac_try='test -s conftest$ac_exeext'
11235: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11236: (eval $ac_try) 2>&5
11237: ac_status=$?
11238: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11239: (exit $ac_status); }; }; then
11240: ac_cv_lib_dl_dlopen=yes
11241: else
11242: echo "$as_me: failed program was:" >&5
11243: sed 's/^/| /' conftest.$ac_ext >&5
11244:
11245: ac_cv_lib_dl_dlopen=no
11246: fi
11247: rm -f conftest.err conftest.$ac_objext \
11248: conftest$ac_exeext conftest.$ac_ext
11249: LIBS=$ac_check_lib_save_LIBS
11250: fi
11251: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11252: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11253: if test $ac_cv_lib_dl_dlopen = yes; then
11254: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11255: else
11256: echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11257: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11258: if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11259: echo $ECHO_N "(cached) $ECHO_C" >&6
11260: else
11261: ac_check_lib_save_LIBS=$LIBS
11262: LIBS="-lsvld $LIBS"
11263: cat >conftest.$ac_ext <<_ACEOF
11264: /* confdefs.h. */
11265: _ACEOF
11266: cat confdefs.h >>conftest.$ac_ext
11267: cat >>conftest.$ac_ext <<_ACEOF
11268: /* end confdefs.h. */
11269:
11270: /* Override any gcc2 internal prototype to avoid an error. */
11271: #ifdef __cplusplus
11272: extern "C"
11273: #endif
11274: /* We use char because int might match the return type of a gcc2
11275: builtin and then its argument prototype would still apply. */
11276: char dlopen ();
11277: int
11278: main ()
11279: {
11280: dlopen ();
11281: ;
11282: return 0;
11283: }
11284: _ACEOF
11285: rm -f conftest.$ac_objext conftest$ac_exeext
11286: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11287: (eval $ac_link) 2>conftest.er1
11288: ac_status=$?
11289: grep -v '^ *+' conftest.er1 >conftest.err
11290: rm -f conftest.er1
11291: cat conftest.err >&5
11292: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11293: (exit $ac_status); } &&
11294: { ac_try='test -z "$ac_c_werror_flag"
11295: || test ! -s conftest.err'
11296: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11297: (eval $ac_try) 2>&5
11298: ac_status=$?
11299: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11300: (exit $ac_status); }; } &&
11301: { ac_try='test -s conftest$ac_exeext'
11302: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11303: (eval $ac_try) 2>&5
11304: ac_status=$?
11305: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11306: (exit $ac_status); }; }; then
11307: ac_cv_lib_svld_dlopen=yes
11308: else
11309: echo "$as_me: failed program was:" >&5
11310: sed 's/^/| /' conftest.$ac_ext >&5
11311:
11312: ac_cv_lib_svld_dlopen=no
11313: fi
11314: rm -f conftest.err conftest.$ac_objext \
11315: conftest$ac_exeext conftest.$ac_ext
11316: LIBS=$ac_check_lib_save_LIBS
11317: fi
11318: echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11319: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11320: if test $ac_cv_lib_svld_dlopen = yes; then
11321: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11322: else
11323: echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11324: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11325: if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11326: echo $ECHO_N "(cached) $ECHO_C" >&6
11327: else
11328: ac_check_lib_save_LIBS=$LIBS
11329: LIBS="-ldld $LIBS"
11330: cat >conftest.$ac_ext <<_ACEOF
11331: /* confdefs.h. */
11332: _ACEOF
11333: cat confdefs.h >>conftest.$ac_ext
11334: cat >>conftest.$ac_ext <<_ACEOF
11335: /* end confdefs.h. */
11336:
11337: /* Override any gcc2 internal prototype to avoid an error. */
11338: #ifdef __cplusplus
11339: extern "C"
11340: #endif
11341: /* We use char because int might match the return type of a gcc2
11342: builtin and then its argument prototype would still apply. */
11343: char dld_link ();
11344: int
11345: main ()
11346: {
11347: dld_link ();
11348: ;
11349: return 0;
11350: }
11351: _ACEOF
11352: rm -f conftest.$ac_objext conftest$ac_exeext
11353: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11354: (eval $ac_link) 2>conftest.er1
11355: ac_status=$?
11356: grep -v '^ *+' conftest.er1 >conftest.err
11357: rm -f conftest.er1
11358: cat conftest.err >&5
11359: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360: (exit $ac_status); } &&
11361: { ac_try='test -z "$ac_c_werror_flag"
11362: || test ! -s conftest.err'
11363: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11364: (eval $ac_try) 2>&5
11365: ac_status=$?
11366: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11367: (exit $ac_status); }; } &&
11368: { ac_try='test -s conftest$ac_exeext'
11369: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11370: (eval $ac_try) 2>&5
11371: ac_status=$?
11372: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11373: (exit $ac_status); }; }; then
11374: ac_cv_lib_dld_dld_link=yes
11375: else
11376: echo "$as_me: failed program was:" >&5
11377: sed 's/^/| /' conftest.$ac_ext >&5
11378:
11379: ac_cv_lib_dld_dld_link=no
11380: fi
11381: rm -f conftest.err conftest.$ac_objext \
11382: conftest$ac_exeext conftest.$ac_ext
11383: LIBS=$ac_check_lib_save_LIBS
11384: fi
11385: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11386: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11387: if test $ac_cv_lib_dld_dld_link = yes; then
11388: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11389: fi
11390:
11391:
11392: fi
11393:
11394:
11395: fi
11396:
11397:
11398: fi
11399:
11400:
11401: fi
11402:
11403:
11404: fi
11405:
11406: ;;
11407: esac
11408:
11409: if test "x$lt_cv_dlopen" != xno; then
11410: enable_dlopen=yes
11411: else
11412: enable_dlopen=no
11413: fi
11414:
11415: case $lt_cv_dlopen in
11416: dlopen)
11417: save_CPPFLAGS="$CPPFLAGS"
11418: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11419:
11420: save_LDFLAGS="$LDFLAGS"
11421: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11422:
11423: save_LIBS="$LIBS"
11424: LIBS="$lt_cv_dlopen_libs $LIBS"
11425:
11426: echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11427: echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11428: if test "${lt_cv_dlopen_self+set}" = set; then
11429: echo $ECHO_N "(cached) $ECHO_C" >&6
11430: else
11431: if test "$cross_compiling" = yes; then :
11432: lt_cv_dlopen_self=cross
11433: else
11434: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11435: lt_status=$lt_dlunknown
11436: cat > conftest.$ac_ext <<_LT_EOF
11437: #line $LINENO "configure"
11438: #include "confdefs.h"
11439:
11440: #if HAVE_DLFCN_H
11441: #include <dlfcn.h>
11442: #endif
11443:
11444: #include <stdio.h>
11445:
11446: #ifdef RTLD_GLOBAL
11447: # define LT_DLGLOBAL RTLD_GLOBAL
11448: #else
11449: # ifdef DL_GLOBAL
11450: # define LT_DLGLOBAL DL_GLOBAL
11451: # else
11452: # define LT_DLGLOBAL 0
11453: # endif
11454: #endif
11455:
11456: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11457: find out it does not work in some platform. */
11458: #ifndef LT_DLLAZY_OR_NOW
11459: # ifdef RTLD_LAZY
11460: # define LT_DLLAZY_OR_NOW RTLD_LAZY
11461: # else
11462: # ifdef DL_LAZY
11463: # define LT_DLLAZY_OR_NOW DL_LAZY
11464: # else
11465: # ifdef RTLD_NOW
11466: # define LT_DLLAZY_OR_NOW RTLD_NOW
11467: # else
11468: # ifdef DL_NOW
11469: # define LT_DLLAZY_OR_NOW DL_NOW
11470: # else
11471: # define LT_DLLAZY_OR_NOW 0
11472: # endif
11473: # endif
11474: # endif
11475: # endif
11476: #endif
11477:
11478: /* When -fvisbility=hidden is used, assume the code has been annotated
11479: correspondingly for the symbols needed. */
11480: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11481: int fnord () __attribute__((visibility("default")));
11482: #endif
11483:
11484: int fnord () { return 42; }
11485: int main ()
11486: {
11487: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11488: int status = $lt_dlunknown;
11489:
11490: if (self)
11491: {
11492: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11493: else
11494: {
11495: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11496: else puts (dlerror ());
11497: }
11498: /* dlclose (self); */
11499: }
11500: else
11501: puts (dlerror ());
11502:
11503: return status;
11504: }
11505: _LT_EOF
11506: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11507: (eval $ac_link) 2>&5
11508: ac_status=$?
11509: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11511: (./conftest; exit; ) >&5 2>/dev/null
11512: lt_status=$?
11513: case x$lt_status in
11514: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11515: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11516: x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11517: esac
11518: else :
11519: # compilation failed
11520: lt_cv_dlopen_self=no
11521: fi
11522: fi
11523: rm -fr conftest*
11524:
11525:
11526: fi
11527: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11528: echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11529:
11530: if test "x$lt_cv_dlopen_self" = xyes; then
11531: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11532: echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11533: echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11534: if test "${lt_cv_dlopen_self_static+set}" = set; then
11535: echo $ECHO_N "(cached) $ECHO_C" >&6
11536: else
11537: if test "$cross_compiling" = yes; then :
11538: lt_cv_dlopen_self_static=cross
11539: else
11540: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11541: lt_status=$lt_dlunknown
11542: cat > conftest.$ac_ext <<_LT_EOF
11543: #line $LINENO "configure"
11544: #include "confdefs.h"
11545:
11546: #if HAVE_DLFCN_H
11547: #include <dlfcn.h>
11548: #endif
11549:
11550: #include <stdio.h>
11551:
11552: #ifdef RTLD_GLOBAL
11553: # define LT_DLGLOBAL RTLD_GLOBAL
11554: #else
11555: # ifdef DL_GLOBAL
11556: # define LT_DLGLOBAL DL_GLOBAL
11557: # else
11558: # define LT_DLGLOBAL 0
11559: # endif
11560: #endif
11561:
11562: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11563: find out it does not work in some platform. */
11564: #ifndef LT_DLLAZY_OR_NOW
11565: # ifdef RTLD_LAZY
11566: # define LT_DLLAZY_OR_NOW RTLD_LAZY
11567: # else
11568: # ifdef DL_LAZY
11569: # define LT_DLLAZY_OR_NOW DL_LAZY
11570: # else
11571: # ifdef RTLD_NOW
11572: # define LT_DLLAZY_OR_NOW RTLD_NOW
11573: # else
11574: # ifdef DL_NOW
11575: # define LT_DLLAZY_OR_NOW DL_NOW
11576: # else
11577: # define LT_DLLAZY_OR_NOW 0
11578: # endif
11579: # endif
11580: # endif
11581: # endif
11582: #endif
11583:
11584: /* When -fvisbility=hidden is used, assume the code has been annotated
11585: correspondingly for the symbols needed. */
11586: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11587: int fnord () __attribute__((visibility("default")));
11588: #endif
11589:
11590: int fnord () { return 42; }
11591: int main ()
11592: {
11593: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11594: int status = $lt_dlunknown;
11595:
11596: if (self)
11597: {
11598: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11599: else
11600: {
11601: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11602: else puts (dlerror ());
11603: }
11604: /* dlclose (self); */
11605: }
11606: else
11607: puts (dlerror ());
11608:
11609: return status;
11610: }
11611: _LT_EOF
11612: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11613: (eval $ac_link) 2>&5
11614: ac_status=$?
11615: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11616: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11617: (./conftest; exit; ) >&5 2>/dev/null
11618: lt_status=$?
11619: case x$lt_status in
11620: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11621: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11622: x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11623: esac
11624: else :
11625: # compilation failed
11626: lt_cv_dlopen_self_static=no
11627: fi
11628: fi
11629: rm -fr conftest*
11630:
11631:
11632: fi
11633: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11634: echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11635: fi
11636:
11637: CPPFLAGS="$save_CPPFLAGS"
11638: LDFLAGS="$save_LDFLAGS"
11639: LIBS="$save_LIBS"
11640: ;;
11641: esac
11642:
11643: case $lt_cv_dlopen_self in
11644: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11645: *) enable_dlopen_self=unknown ;;
11646: esac
11647:
11648: case $lt_cv_dlopen_self_static in
11649: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11650: *) enable_dlopen_self_static=unknown ;;
11651: esac
11652: fi
11653:
11654:
11655:
11656:
11657:
11658:
11659:
11660:
11661:
11662:
11663:
11664:
11665:
11666:
11667:
11668:
11669:
11670: striplib=
11671: old_striplib=
11672: echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11673: echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11674: if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11675: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11676: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11677: echo "$as_me:$LINENO: result: yes" >&5
11678: echo "${ECHO_T}yes" >&6
11679: else
11680: # FIXME - insert some real tests, host_os isn't really good enough
11681: case $host_os in
11682: darwin*)
11683: if test -n "$STRIP" ; then
11684: striplib="$STRIP -x"
11685: old_striplib="$STRIP -S"
11686: echo "$as_me:$LINENO: result: yes" >&5
11687: echo "${ECHO_T}yes" >&6
11688: else
11689: echo "$as_me:$LINENO: result: no" >&5
11690: echo "${ECHO_T}no" >&6
11691: fi
11692: ;;
11693: *)
11694: echo "$as_me:$LINENO: result: no" >&5
11695: echo "${ECHO_T}no" >&6
11696: ;;
11697: esac
11698: fi
11699:
11700:
11701:
11702:
11703:
11704:
11705:
11706:
11707:
11708:
11709:
11710:
11711: # Report which library types will actually be built
11712: echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11713: echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11714: echo "$as_me:$LINENO: result: $can_build_shared" >&5
11715: echo "${ECHO_T}$can_build_shared" >&6
11716:
11717: echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11718: echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11719: test "$can_build_shared" = "no" && enable_shared=no
11720:
11721: # On AIX, shared libraries and static libraries use the same namespace, and
11722: # are all built from PIC.
11723: case $host_os in
11724: aix3*)
11725: test "$enable_shared" = yes && enable_static=no
11726: if test -n "$RANLIB"; then
11727: archive_cmds="$archive_cmds~\$RANLIB \$lib"
11728: postinstall_cmds='$RANLIB $lib'
11729: fi
11730: ;;
11731:
11732: aix[4-9]*)
11733: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11734: test "$enable_shared" = yes && enable_static=no
11735: fi
11736: ;;
11737: esac
11738: echo "$as_me:$LINENO: result: $enable_shared" >&5
11739: echo "${ECHO_T}$enable_shared" >&6
11740:
11741: echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11742: echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11743: # Make sure either enable_shared or enable_static is yes.
11744: test "$enable_shared" = yes || enable_static=yes
11745: echo "$as_me:$LINENO: result: $enable_static" >&5
11746: echo "${ECHO_T}$enable_static" >&6
11747:
11748:
11749:
11750:
11751: fi
11752: ac_ext=c
11753: ac_cpp='$CPP $CPPFLAGS'
11754: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11755: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11756: ac_compiler_gnu=$ac_cv_c_compiler_gnu
11757:
11758: CC="$lt_save_CC"
11759:
11760: if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11761: ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11762: (test "X$CXX" != "Xg++"))) ; then
11763: ac_ext=cc
11764: ac_cpp='$CXXCPP $CPPFLAGS'
11765: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11766: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11767: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11768: echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
11769: echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
11770: if test -z "$CXXCPP"; then
11771: if test "${ac_cv_prog_CXXCPP+set}" = set; then
11772: echo $ECHO_N "(cached) $ECHO_C" >&6
11773: else
11774: # Double quotes because CXXCPP needs to be expanded
11775: for CXXCPP in "$CXX -E" "/lib/cpp"
11776: do
11777: ac_preproc_ok=false
11778: for ac_cxx_preproc_warn_flag in '' yes
11779: do
11780: # Use a header file that comes with gcc, so configuring glibc
11781: # with a fresh cross-compiler works.
11782: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11783: # <limits.h> exists even on freestanding compilers.
11784: # On the NeXT, cc -E runs the code through the compiler's parser,
11785: # not just through cpp. "Syntax error" is here to catch this case.
11786: cat >conftest.$ac_ext <<_ACEOF
11787: /* confdefs.h. */
11788: _ACEOF
11789: cat confdefs.h >>conftest.$ac_ext
11790: cat >>conftest.$ac_ext <<_ACEOF
11791: /* end confdefs.h. */
11792: #ifdef __STDC__
11793: # include <limits.h>
11794: #else
11795: # include <assert.h>
11796: #endif
11797: Syntax error
11798: _ACEOF
11799: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11800: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11801: ac_status=$?
11802: grep -v '^ *+' conftest.er1 >conftest.err
11803: rm -f conftest.er1
11804: cat conftest.err >&5
11805: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806: (exit $ac_status); } >/dev/null; then
11807: if test -s conftest.err; then
11808: ac_cpp_err=$ac_cxx_preproc_warn_flag
11809: ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11810: else
11811: ac_cpp_err=
11812: fi
11813: else
11814: ac_cpp_err=yes
11815: fi
11816: if test -z "$ac_cpp_err"; then
11817: :
11818: else
11819: echo "$as_me: failed program was:" >&5
11820: sed 's/^/| /' conftest.$ac_ext >&5
11821:
11822: # Broken: fails on valid input.
11823: continue
11824: fi
11825: rm -f conftest.err conftest.$ac_ext
11826:
11827: # OK, works on sane cases. Now check whether non-existent headers
11828: # can be detected and how.
11829: cat >conftest.$ac_ext <<_ACEOF
11830: /* confdefs.h. */
11831: _ACEOF
11832: cat confdefs.h >>conftest.$ac_ext
11833: cat >>conftest.$ac_ext <<_ACEOF
11834: /* end confdefs.h. */
11835: #include <ac_nonexistent.h>
11836: _ACEOF
11837: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11838: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11839: ac_status=$?
11840: grep -v '^ *+' conftest.er1 >conftest.err
11841: rm -f conftest.er1
11842: cat conftest.err >&5
11843: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11844: (exit $ac_status); } >/dev/null; then
11845: if test -s conftest.err; then
11846: ac_cpp_err=$ac_cxx_preproc_warn_flag
11847: ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11848: else
11849: ac_cpp_err=
11850: fi
11851: else
11852: ac_cpp_err=yes
11853: fi
11854: if test -z "$ac_cpp_err"; then
11855: # Broken: success on invalid input.
11856: continue
11857: else
11858: echo "$as_me: failed program was:" >&5
11859: sed 's/^/| /' conftest.$ac_ext >&5
11860:
11861: # Passes both tests.
11862: ac_preproc_ok=:
11863: break
11864: fi
11865: rm -f conftest.err conftest.$ac_ext
11866:
11867: done
11868: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11869: rm -f conftest.err conftest.$ac_ext
11870: if $ac_preproc_ok; then
11871: break
11872: fi
11873:
11874: done
11875: ac_cv_prog_CXXCPP=$CXXCPP
11876:
11877: fi
11878: CXXCPP=$ac_cv_prog_CXXCPP
11879: else
11880: ac_cv_prog_CXXCPP=$CXXCPP
11881: fi
11882: echo "$as_me:$LINENO: result: $CXXCPP" >&5
11883: echo "${ECHO_T}$CXXCPP" >&6
11884: ac_preproc_ok=false
11885: for ac_cxx_preproc_warn_flag in '' yes
11886: do
11887: # Use a header file that comes with gcc, so configuring glibc
11888: # with a fresh cross-compiler works.
11889: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11890: # <limits.h> exists even on freestanding compilers.
11891: # On the NeXT, cc -E runs the code through the compiler's parser,
11892: # not just through cpp. "Syntax error" is here to catch this case.
11893: cat >conftest.$ac_ext <<_ACEOF
11894: /* confdefs.h. */
11895: _ACEOF
11896: cat confdefs.h >>conftest.$ac_ext
11897: cat >>conftest.$ac_ext <<_ACEOF
11898: /* end confdefs.h. */
11899: #ifdef __STDC__
11900: # include <limits.h>
11901: #else
11902: # include <assert.h>
11903: #endif
11904: Syntax error
11905: _ACEOF
11906: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11907: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11908: ac_status=$?
11909: grep -v '^ *+' conftest.er1 >conftest.err
11910: rm -f conftest.er1
11911: cat conftest.err >&5
11912: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913: (exit $ac_status); } >/dev/null; then
11914: if test -s conftest.err; then
11915: ac_cpp_err=$ac_cxx_preproc_warn_flag
11916: ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11917: else
11918: ac_cpp_err=
11919: fi
11920: else
11921: ac_cpp_err=yes
11922: fi
11923: if test -z "$ac_cpp_err"; then
11924: :
11925: else
11926: echo "$as_me: failed program was:" >&5
11927: sed 's/^/| /' conftest.$ac_ext >&5
11928:
11929: # Broken: fails on valid input.
11930: continue
11931: fi
11932: rm -f conftest.err conftest.$ac_ext
11933:
11934: # OK, works on sane cases. Now check whether non-existent headers
11935: # can be detected and how.
11936: cat >conftest.$ac_ext <<_ACEOF
11937: /* confdefs.h. */
11938: _ACEOF
11939: cat confdefs.h >>conftest.$ac_ext
11940: cat >>conftest.$ac_ext <<_ACEOF
11941: /* end confdefs.h. */
11942: #include <ac_nonexistent.h>
11943: _ACEOF
11944: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11945: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11946: ac_status=$?
11947: grep -v '^ *+' conftest.er1 >conftest.err
11948: rm -f conftest.er1
11949: cat conftest.err >&5
11950: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951: (exit $ac_status); } >/dev/null; then
11952: if test -s conftest.err; then
11953: ac_cpp_err=$ac_cxx_preproc_warn_flag
11954: ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11955: else
11956: ac_cpp_err=
11957: fi
11958: else
11959: ac_cpp_err=yes
11960: fi
11961: if test -z "$ac_cpp_err"; then
11962: # Broken: success on invalid input.
11963: continue
11964: else
11965: echo "$as_me: failed program was:" >&5
11966: sed 's/^/| /' conftest.$ac_ext >&5
11967:
11968: # Passes both tests.
11969: ac_preproc_ok=:
11970: break
11971: fi
11972: rm -f conftest.err conftest.$ac_ext
11973:
11974: done
11975: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11976: rm -f conftest.err conftest.$ac_ext
11977: if $ac_preproc_ok; then
11978: :
11979: else
11980: { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11981: See \`config.log' for more details." >&5
11982: echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11983: See \`config.log' for more details." >&2;}
11984: { (exit 1); exit 1; }; }
11985: fi
11986:
11987: ac_ext=c
11988: ac_cpp='$CPP $CPPFLAGS'
11989: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11990: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11991: ac_compiler_gnu=$ac_cv_c_compiler_gnu
11992:
11993: else
11994: _lt_caught_CXX_error=yes
11995: fi
11996:
11997: ac_ext=cc
11998: ac_cpp='$CXXCPP $CPPFLAGS'
11999: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12000: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12001: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12002:
12003: archive_cmds_need_lc_CXX=no
12004: allow_undefined_flag_CXX=
12005: always_export_symbols_CXX=no
12006: archive_expsym_cmds_CXX=
12007: compiler_needs_object_CXX=no
12008: export_dynamic_flag_spec_CXX=
12009: hardcode_direct_CXX=no
12010: hardcode_direct_absolute_CXX=no
12011: hardcode_libdir_flag_spec_CXX=
12012: hardcode_libdir_separator_CXX=
12013: hardcode_minus_L_CXX=no
12014: hardcode_shlibpath_var_CXX=unsupported
12015: hardcode_automatic_CXX=no
12016: inherit_rpath_CXX=no
12017: module_cmds_CXX=
12018: module_expsym_cmds_CXX=
12019: link_all_deplibs_CXX=unknown
12020: old_archive_cmds_CXX=$old_archive_cmds
12021: reload_flag_CXX=$reload_flag
12022: reload_cmds_CXX=$reload_cmds
12023: no_undefined_flag_CXX=
12024: whole_archive_flag_spec_CXX=
12025: enable_shared_with_static_runtimes_CXX=no
12026:
12027: # Source file extension for C++ test sources.
12028: ac_ext=cpp
12029:
12030: # Object file extension for compiled C++ test sources.
12031: objext=o
12032: objext_CXX=$objext
12033:
12034: # No sense in running all these tests if we already determined that
12035: # the CXX compiler isn't working. Some variables (like enable_shared)
12036: # are currently assumed to apply to all compilers on this platform,
12037: # and will be corrupted by setting them based on a non-working compiler.
12038: if test "$_lt_caught_CXX_error" != yes; then
12039: # Code to be used in simple compile tests
12040: lt_simple_compile_test_code="int some_variable = 0;"
12041:
12042: # Code to be used in simple link tests
12043: lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12044:
12045: # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12046:
12047:
12048:
12049:
12050:
12051:
12052: # If no C compiler was specified, use CC.
12053: LTCC=${LTCC-"$CC"}
12054:
12055: # If no C compiler flags were specified, use CFLAGS.
12056: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12057:
12058: # Allow CC to be a program name with arguments.
12059: compiler=$CC
12060:
12061:
12062: # save warnings/boilerplate of simple test code
12063: ac_outfile=conftest.$ac_objext
12064: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12065: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12066: _lt_compiler_boilerplate=`cat conftest.err`
12067: $RM conftest*
12068:
12069: ac_outfile=conftest.$ac_objext
12070: echo "$lt_simple_link_test_code" >conftest.$ac_ext
12071: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12072: _lt_linker_boilerplate=`cat conftest.err`
12073: $RM -r conftest*
12074:
12075:
12076: # Allow CC to be a program name with arguments.
12077: lt_save_CC=$CC
12078: lt_save_CFLAGS=$CFLAGS
12079: lt_save_LD=$LD
12080: lt_save_GCC=$GCC
12081: GCC=$GXX
12082: lt_save_with_gnu_ld=$with_gnu_ld
12083: lt_save_path_LD=$lt_cv_path_LD
12084: if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12085: lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12086: else
12087: $as_unset lt_cv_prog_gnu_ld
12088: fi
12089: if test -n "${lt_cv_path_LDCXX+set}"; then
12090: lt_cv_path_LD=$lt_cv_path_LDCXX
12091: else
12092: $as_unset lt_cv_path_LD
12093: fi
12094: test -z "${LDCXX+set}" || LD=$LDCXX
12095: CC=${CXX-"c++"}
12096: CFLAGS=$CXXFLAGS
12097: compiler=$CC
12098: compiler_CXX=$CC
12099: for cc_temp in $compiler""; do
12100: case $cc_temp in
12101: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12102: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12103: \-*) ;;
12104: *) break;;
12105: esac
12106: done
12107: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12108:
12109:
12110: if test -n "$compiler"; then
12111: # We don't want -fno-exception when compiling C++ code, so set the
12112: # no_builtin_flag separately
12113: if test "$GXX" = yes; then
12114: lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12115: else
12116: lt_prog_compiler_no_builtin_flag_CXX=
12117: fi
12118:
12119: if test "$GXX" = yes; then
12120: # Set up default GNU C++ configuration
12121:
12122:
12123:
12124: # Check whether --with-gnu-ld or --without-gnu-ld was given.
12125: if test "${with_gnu_ld+set}" = set; then
12126: withval="$with_gnu_ld"
12127: test "$withval" = no || with_gnu_ld=yes
12128: else
12129: with_gnu_ld=no
12130: fi;
12131: ac_prog=ld
12132: if test "$GCC" = yes; then
12133: # Check if gcc -print-prog-name=ld gives a path.
12134: echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12135: echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
12136: case $host in
12137: *-*-mingw*)
12138: # gcc leaves a trailing carriage return which upsets mingw
12139: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12140: *)
12141: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12142: esac
12143: case $ac_prog in
12144: # Accept absolute paths.
12145: [\\/]* | ?:[\\/]*)
12146: re_direlt='/[^/][^/]*/\.\./'
12147: # Canonicalize the pathname of ld
12148: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12149: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12150: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12151: done
12152: test -z "$LD" && LD="$ac_prog"
12153: ;;
12154: "")
12155: # If it fails, then pretend we aren't using GCC.
12156: ac_prog=ld
12157: ;;
12158: *)
12159: # If it is relative, then search for the first ld in PATH.
12160: with_gnu_ld=unknown
12161: ;;
12162: esac
12163: elif test "$with_gnu_ld" = yes; then
12164: echo "$as_me:$LINENO: checking for GNU ld" >&5
12165: echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
12166: else
12167: echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12168: echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
12169: fi
12170: if test "${lt_cv_path_LD+set}" = set; then
12171: echo $ECHO_N "(cached) $ECHO_C" >&6
12172: else
12173: if test -z "$LD"; then
12174: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12175: for ac_dir in $PATH; do
12176: IFS="$lt_save_ifs"
12177: test -z "$ac_dir" && ac_dir=.
12178: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12179: lt_cv_path_LD="$ac_dir/$ac_prog"
12180: # Check to see if the program is GNU ld. I'd rather use --version,
12181: # but apparently some variants of GNU ld only accept -v.
12182: # Break only if it was the GNU/non-GNU ld that we prefer.
12183: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12184: *GNU* | *'with BFD'*)
12185: test "$with_gnu_ld" != no && break
12186: ;;
12187: *)
12188: test "$with_gnu_ld" != yes && break
12189: ;;
12190: esac
12191: fi
12192: done
12193: IFS="$lt_save_ifs"
12194: else
12195: lt_cv_path_LD="$LD" # Let the user override the test with a path.
12196: fi
12197: fi
12198:
12199: LD="$lt_cv_path_LD"
12200: if test -n "$LD"; then
12201: echo "$as_me:$LINENO: result: $LD" >&5
12202: echo "${ECHO_T}$LD" >&6
12203: else
12204: echo "$as_me:$LINENO: result: no" >&5
12205: echo "${ECHO_T}no" >&6
12206: fi
12207: test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12208: echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12209: { (exit 1); exit 1; }; }
12210: echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12211: echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
12212: if test "${lt_cv_prog_gnu_ld+set}" = set; then
12213: echo $ECHO_N "(cached) $ECHO_C" >&6
12214: else
12215: # I'd rather use --version here, but apparently some GNU lds only accept -v.
12216: case `$LD -v 2>&1 </dev/null` in
12217: *GNU* | *'with BFD'*)
12218: lt_cv_prog_gnu_ld=yes
12219: ;;
12220: *)
12221: lt_cv_prog_gnu_ld=no
12222: ;;
12223: esac
12224: fi
12225: echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12226: echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
12227: with_gnu_ld=$lt_cv_prog_gnu_ld
12228:
12229:
12230:
12231:
12232:
12233:
12234:
12235: # Check if GNU C++ uses GNU ld as the underlying linker, since the
12236: # archiving commands below assume that GNU ld is being used.
12237: if test "$with_gnu_ld" = yes; then
12238: archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12239: 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'
12240:
12241: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12242: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12243:
12244: # If archive_cmds runs LD, not CC, wlarc should be empty
12245: # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12246: # investigate it a little bit more. (MM)
12247: wlarc='${wl}'
12248:
12249: # ancient GNU ld didn't support --whole-archive et. al.
12250: if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12251: $GREP 'no-whole-archive' > /dev/null; then
12252: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12253: else
12254: whole_archive_flag_spec_CXX=
12255: fi
12256: else
12257: with_gnu_ld=no
12258: wlarc=
12259:
12260: # A generic and very simple default shared library creation
12261: # command for GNU C++ for the case where it uses the native
12262: # linker, instead of GNU ld. If possible, this setting should
12263: # overridden to take advantage of the native linker features on
12264: # the platform it is being used on.
12265: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12266: fi
12267:
12268: # Commands to make compiler produce verbose output that lists
12269: # what "hidden" libraries, object files and flags are used when
12270: # linking a shared library.
12271: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12272:
12273: else
12274: GXX=no
12275: with_gnu_ld=no
12276: wlarc=
12277: fi
12278:
12279: # PORTME: fill in a description of your system's C++ link characteristics
12280: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12281: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12282: ld_shlibs_CXX=yes
12283: case $host_os in
12284: aix3*)
12285: # FIXME: insert proper C++ library support
12286: ld_shlibs_CXX=no
12287: ;;
12288: aix[4-9]*)
12289: if test "$host_cpu" = ia64; then
12290: # On IA64, the linker does run time linking by default, so we don't
12291: # have to do anything special.
12292: aix_use_runtimelinking=no
12293: exp_sym_flag='-Bexport'
12294: no_entry_flag=""
12295: else
12296: aix_use_runtimelinking=no
12297:
12298: # Test if we are trying to use run time linking or normal
12299: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12300: # need to do runtime linking.
12301: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12302: for ld_flag in $LDFLAGS; do
12303: case $ld_flag in
12304: *-brtl*)
12305: aix_use_runtimelinking=yes
12306: break
12307: ;;
12308: esac
12309: done
12310: ;;
12311: esac
12312:
12313: exp_sym_flag='-bexport'
12314: no_entry_flag='-bnoentry'
12315: fi
12316:
12317: # When large executables or shared objects are built, AIX ld can
12318: # have problems creating the table of contents. If linking a library
12319: # or program results in "error TOC overflow" add -mminimal-toc to
12320: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12321: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12322:
12323: archive_cmds_CXX=''
12324: hardcode_direct_CXX=yes
12325: hardcode_direct_absolute_CXX=yes
12326: hardcode_libdir_separator_CXX=':'
12327: link_all_deplibs_CXX=yes
12328: file_list_spec_CXX='${wl}-f,'
12329:
12330: if test "$GXX" = yes; then
12331: case $host_os in aix4.[012]|aix4.[012].*)
12332: # We only want to do this on AIX 4.2 and lower, the check
12333: # below for broken collect2 doesn't work under 4.3+
12334: collect2name=`${CC} -print-prog-name=collect2`
12335: if test -f "$collect2name" &&
12336: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12337: then
12338: # We have reworked collect2
12339: :
12340: else
12341: # We have old collect2
12342: hardcode_direct_CXX=unsupported
12343: # It fails to find uninstalled libraries when the uninstalled
12344: # path is not listed in the libpath. Setting hardcode_minus_L
12345: # to unsupported forces relinking
12346: hardcode_minus_L_CXX=yes
12347: hardcode_libdir_flag_spec_CXX='-L$libdir'
12348: hardcode_libdir_separator_CXX=
12349: fi
12350: esac
12351: shared_flag='-shared'
12352: if test "$aix_use_runtimelinking" = yes; then
12353: shared_flag="$shared_flag "'${wl}-G'
12354: fi
12355: else
12356: # not using gcc
12357: if test "$host_cpu" = ia64; then
12358: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12359: # chokes on -Wl,-G. The following line is correct:
12360: shared_flag='-G'
12361: else
12362: if test "$aix_use_runtimelinking" = yes; then
12363: shared_flag='${wl}-G'
12364: else
12365: shared_flag='${wl}-bM:SRE'
12366: fi
12367: fi
12368: fi
12369:
12370: export_dynamic_flag_spec_CXX='${wl}-bexpall'
12371: # It seems that -bexpall does not export symbols beginning with
12372: # underscore (_), so it is better to generate a list of symbols to
12373: # export.
12374: always_export_symbols_CXX=yes
12375: if test "$aix_use_runtimelinking" = yes; then
12376: # Warning - without using the other runtime loading flags (-brtl),
12377: # -berok will link without error, but may produce a broken library.
12378: allow_undefined_flag_CXX='-berok'
12379: # Determine the default libpath from the value encoded in an empty
12380: # executable.
12381: if test "${lt_cv_aix_libpath+set}" = set; then
12382: aix_libpath=$lt_cv_aix_libpath
12383: else
12384: if test "${lt_cv_aix_libpath__CXX+set}" = set; then
12385: echo $ECHO_N "(cached) $ECHO_C" >&6
12386: else
12387: cat >conftest.$ac_ext <<_ACEOF
12388: /* confdefs.h. */
12389: _ACEOF
12390: cat confdefs.h >>conftest.$ac_ext
12391: cat >>conftest.$ac_ext <<_ACEOF
12392: /* end confdefs.h. */
12393:
12394: int
12395: main ()
12396: {
12397:
12398: ;
12399: return 0;
12400: }
12401: _ACEOF
12402: rm -f conftest.$ac_objext conftest$ac_exeext
12403: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12404: (eval $ac_link) 2>conftest.er1
12405: ac_status=$?
12406: grep -v '^ *+' conftest.er1 >conftest.err
12407: rm -f conftest.er1
12408: cat conftest.err >&5
12409: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410: (exit $ac_status); } &&
12411: { ac_try='test -z "$ac_cxx_werror_flag"
12412: || test ! -s conftest.err'
12413: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12414: (eval $ac_try) 2>&5
12415: ac_status=$?
12416: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12417: (exit $ac_status); }; } &&
12418: { ac_try='test -s conftest$ac_exeext'
12419: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12420: (eval $ac_try) 2>&5
12421: ac_status=$?
12422: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423: (exit $ac_status); }; }; then
12424:
12425: lt_aix_libpath_sed='
12426: /Import File Strings/,/^$/ {
12427: /^0/ {
12428: s/^0 *\([^ ]*\) *$/\1/
12429: p
12430: }
12431: }'
12432: lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12433: # Check for a 64-bit object if we didn't find anything.
12434: if test -z "$lt_cv_aix_libpath__CXX"; then
12435: lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12436: fi
12437: else
12438: echo "$as_me: failed program was:" >&5
12439: sed 's/^/| /' conftest.$ac_ext >&5
12440:
12441: fi
12442: rm -f conftest.err conftest.$ac_objext \
12443: conftest$ac_exeext conftest.$ac_ext
12444: if test -z "$lt_cv_aix_libpath__CXX"; then
12445: lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12446: fi
12447:
12448: fi
12449:
12450: aix_libpath=$lt_cv_aix_libpath__CXX
12451: fi
12452:
12453: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12454:
12455: 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"
12456: else
12457: if test "$host_cpu" = ia64; then
12458: hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12459: allow_undefined_flag_CXX="-z nodefs"
12460: 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"
12461: else
12462: # Determine the default libpath from the value encoded in an
12463: # empty executable.
12464: if test "${lt_cv_aix_libpath+set}" = set; then
12465: aix_libpath=$lt_cv_aix_libpath
12466: else
12467: if test "${lt_cv_aix_libpath__CXX+set}" = set; then
12468: echo $ECHO_N "(cached) $ECHO_C" >&6
12469: else
12470: cat >conftest.$ac_ext <<_ACEOF
12471: /* confdefs.h. */
12472: _ACEOF
12473: cat confdefs.h >>conftest.$ac_ext
12474: cat >>conftest.$ac_ext <<_ACEOF
12475: /* end confdefs.h. */
12476:
12477: int
12478: main ()
12479: {
12480:
12481: ;
12482: return 0;
12483: }
12484: _ACEOF
12485: rm -f conftest.$ac_objext conftest$ac_exeext
12486: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12487: (eval $ac_link) 2>conftest.er1
12488: ac_status=$?
12489: grep -v '^ *+' conftest.er1 >conftest.err
12490: rm -f conftest.er1
12491: cat conftest.err >&5
12492: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12493: (exit $ac_status); } &&
12494: { ac_try='test -z "$ac_cxx_werror_flag"
12495: || test ! -s conftest.err'
12496: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12497: (eval $ac_try) 2>&5
12498: ac_status=$?
12499: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500: (exit $ac_status); }; } &&
12501: { ac_try='test -s conftest$ac_exeext'
12502: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12503: (eval $ac_try) 2>&5
12504: ac_status=$?
12505: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506: (exit $ac_status); }; }; then
12507:
12508: lt_aix_libpath_sed='
12509: /Import File Strings/,/^$/ {
12510: /^0/ {
12511: s/^0 *\([^ ]*\) *$/\1/
12512: p
12513: }
12514: }'
12515: lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12516: # Check for a 64-bit object if we didn't find anything.
12517: if test -z "$lt_cv_aix_libpath__CXX"; then
12518: lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12519: fi
12520: else
12521: echo "$as_me: failed program was:" >&5
12522: sed 's/^/| /' conftest.$ac_ext >&5
12523:
12524: fi
12525: rm -f conftest.err conftest.$ac_objext \
12526: conftest$ac_exeext conftest.$ac_ext
12527: if test -z "$lt_cv_aix_libpath__CXX"; then
12528: lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12529: fi
12530:
12531: fi
12532:
12533: aix_libpath=$lt_cv_aix_libpath__CXX
12534: fi
12535:
12536: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12537: # Warning - without using the other run time loading flags,
12538: # -berok will link without error, but may produce a broken library.
12539: no_undefined_flag_CXX=' ${wl}-bernotok'
12540: allow_undefined_flag_CXX=' ${wl}-berok'
12541: if test "$with_gnu_ld" = yes; then
12542: # We only use this code for GNU lds that support --whole-archive.
12543: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12544: else
12545: # Exported symbols can be pulled into shared objects from archives
12546: whole_archive_flag_spec_CXX='$convenience'
12547: fi
12548: archive_cmds_need_lc_CXX=yes
12549: # This is similar to how AIX traditionally builds its shared
12550: # libraries.
12551: 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'
12552: fi
12553: fi
12554: ;;
12555:
12556: beos*)
12557: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12558: allow_undefined_flag_CXX=unsupported
12559: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12560: # support --undefined. This deserves some investigation. FIXME
12561: archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12562: else
12563: ld_shlibs_CXX=no
12564: fi
12565: ;;
12566:
12567: chorus*)
12568: case $cc_basename in
12569: *)
12570: # FIXME: insert proper C++ library support
12571: ld_shlibs_CXX=no
12572: ;;
12573: esac
12574: ;;
12575:
12576: cygwin* | mingw* | pw32* | cegcc*)
12577: case $GXX,$cc_basename in
12578: ,cl* | no,cl*)
12579: # Native MSVC
12580: # hardcode_libdir_flag_spec is actually meaningless, as there is
12581: # no search path for DLLs.
12582: hardcode_libdir_flag_spec_CXX=' '
12583: allow_undefined_flag_CXX=unsupported
12584: always_export_symbols_CXX=yes
12585: file_list_spec_CXX='@'
12586: # Tell ltmain to make .lib files, not .a files.
12587: libext=lib
12588: # Tell ltmain to make .dll files, not .so files.
12589: shrext_cmds=".dll"
12590: # FIXME: Setting linknames here is a bad hack.
12591: archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12592: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12593: $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12594: else
12595: $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12596: fi~
12597: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12598: linknames='
12599: # The linker will not automatically build a static lib if we build a DLL.
12600: # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12601: enable_shared_with_static_runtimes_CXX=yes
12602: # Don't use ranlib
12603: old_postinstall_cmds_CXX='chmod 644 $oldlib'
12604: postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12605: lt_tool_outputfile="@TOOL_OUTPUT@"~
12606: case $lt_outputfile in
12607: *.exe|*.EXE) ;;
12608: *)
12609: lt_outputfile="$lt_outputfile.exe"
12610: lt_tool_outputfile="$lt_tool_outputfile.exe"
12611: ;;
12612: esac~
12613: func_to_tool_file "$lt_outputfile"~
12614: if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12615: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12616: $RM "$lt_outputfile.manifest";
12617: fi'
12618: ;;
12619: *)
12620: # g++
12621: # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12622: # as there is no search path for DLLs.
12623: hardcode_libdir_flag_spec_CXX='-L$libdir'
12624: export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12625: allow_undefined_flag_CXX=unsupported
12626: always_export_symbols_CXX=no
12627: enable_shared_with_static_runtimes_CXX=yes
12628:
12629: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12630: 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'
12631: # If the export-symbols file already is a .def file (1st line
12632: # is EXPORTS), use it as is; otherwise, prepend...
12633: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12634: cp $export_symbols $output_objdir/$soname.def;
12635: else
12636: echo EXPORTS > $output_objdir/$soname.def;
12637: cat $export_symbols >> $output_objdir/$soname.def;
12638: fi~
12639: $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'
12640: else
12641: ld_shlibs_CXX=no
12642: fi
12643: ;;
12644: esac
12645: ;;
12646: darwin* | rhapsody*)
12647:
12648:
12649: archive_cmds_need_lc_CXX=no
12650: hardcode_direct_CXX=no
12651: hardcode_automatic_CXX=yes
12652: hardcode_shlibpath_var_CXX=unsupported
12653: if test "$lt_cv_ld_force_load" = "yes"; then
12654: 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\"`'
12655:
12656: else
12657: whole_archive_flag_spec_CXX=''
12658: fi
12659: link_all_deplibs_CXX=yes
12660: allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12661: case $cc_basename in
12662: ifort*) _lt_dar_can_shared=yes ;;
12663: *) _lt_dar_can_shared=$GCC ;;
12664: esac
12665: if test "$_lt_dar_can_shared" = "yes"; then
12666: output_verbose_link_cmd=func_echo_all
12667: 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}"
12668: module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12669: 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}"
12670: 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}"
12671: if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12672: 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}"
12673: 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}"
12674: fi
12675:
12676: else
12677: ld_shlibs_CXX=no
12678: fi
12679:
12680: ;;
12681:
12682: dgux*)
12683: case $cc_basename in
12684: ec++*)
12685: # FIXME: insert proper C++ library support
12686: ld_shlibs_CXX=no
12687: ;;
12688: ghcx*)
12689: # Green Hills C++ Compiler
12690: # FIXME: insert proper C++ library support
12691: ld_shlibs_CXX=no
12692: ;;
12693: *)
12694: # FIXME: insert proper C++ library support
12695: ld_shlibs_CXX=no
12696: ;;
12697: esac
12698: ;;
12699:
12700: freebsd2.*)
12701: # C++ shared libraries reported to be fairly broken before
12702: # switch to ELF
12703: ld_shlibs_CXX=no
12704: ;;
12705:
12706: freebsd-elf*)
12707: archive_cmds_need_lc_CXX=no
12708: ;;
12709:
12710: freebsd* | dragonfly*)
12711: # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12712: # conventions
12713: ld_shlibs_CXX=yes
12714: ;;
12715:
12716: gnu*)
12717: ;;
12718:
12719: haiku*)
12720: archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12721: link_all_deplibs_CXX=yes
12722: ;;
12723:
12724: hpux9*)
12725: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12726: hardcode_libdir_separator_CXX=:
12727: export_dynamic_flag_spec_CXX='${wl}-E'
12728: hardcode_direct_CXX=yes
12729: hardcode_minus_L_CXX=yes # Not in the search PATH,
12730: # but as the default
12731: # location of the library.
12732:
12733: case $cc_basename in
12734: CC*)
12735: # FIXME: insert proper C++ library support
12736: ld_shlibs_CXX=no
12737: ;;
12738: aCC*)
12739: 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'
12740: # Commands to make compiler produce verbose output that lists
12741: # what "hidden" libraries, object files and flags are used when
12742: # linking a shared library.
12743: #
12744: # There doesn't appear to be a way to prevent this compiler from
12745: # explicitly linking system object files so we need to strip them
12746: # from the output so that they don't get included in the library
12747: # dependencies.
12748: 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"'
12749: ;;
12750: *)
12751: if test "$GXX" = yes; then
12752: 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'
12753: else
12754: # FIXME: insert proper C++ library support
12755: ld_shlibs_CXX=no
12756: fi
12757: ;;
12758: esac
12759: ;;
12760:
12761: hpux10*|hpux11*)
12762: if test $with_gnu_ld = no; then
12763: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12764: hardcode_libdir_separator_CXX=:
12765:
12766: case $host_cpu in
12767: hppa*64*|ia64*)
12768: ;;
12769: *)
12770: export_dynamic_flag_spec_CXX='${wl}-E'
12771: ;;
12772: esac
12773: fi
12774: case $host_cpu in
12775: hppa*64*|ia64*)
12776: hardcode_direct_CXX=no
12777: hardcode_shlibpath_var_CXX=no
12778: ;;
12779: *)
12780: hardcode_direct_CXX=yes
12781: hardcode_direct_absolute_CXX=yes
12782: hardcode_minus_L_CXX=yes # Not in the search PATH,
12783: # but as the default
12784: # location of the library.
12785: ;;
12786: esac
12787:
12788: case $cc_basename in
12789: CC*)
12790: # FIXME: insert proper C++ library support
12791: ld_shlibs_CXX=no
12792: ;;
12793: aCC*)
12794: case $host_cpu in
12795: hppa*64*)
12796: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12797: ;;
12798: ia64*)
12799: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12800: ;;
12801: *)
12802: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12803: ;;
12804: esac
12805: # Commands to make compiler produce verbose output that lists
12806: # what "hidden" libraries, object files and flags are used when
12807: # linking a shared library.
12808: #
12809: # There doesn't appear to be a way to prevent this compiler from
12810: # explicitly linking system object files so we need to strip them
12811: # from the output so that they don't get included in the library
12812: # dependencies.
12813: 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"'
12814: ;;
12815: *)
12816: if test "$GXX" = yes; then
12817: if test $with_gnu_ld = no; then
12818: case $host_cpu in
12819: hppa*64*)
12820: archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12821: ;;
12822: ia64*)
12823: archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12824: ;;
12825: *)
12826: 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'
12827: ;;
12828: esac
12829: fi
12830: else
12831: # FIXME: insert proper C++ library support
12832: ld_shlibs_CXX=no
12833: fi
12834: ;;
12835: esac
12836: ;;
12837:
12838: interix[3-9]*)
12839: hardcode_direct_CXX=no
12840: hardcode_shlibpath_var_CXX=no
12841: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12842: export_dynamic_flag_spec_CXX='${wl}-E'
12843: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12844: # Instead, shared libraries are loaded at an image base (0x10000000 by
12845: # default) and relocated if they conflict, which is a slow very memory
12846: # consuming and fragmenting process. To avoid this, we pick a random,
12847: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12848: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12849: 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'
12850: 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'
12851: ;;
12852: irix5* | irix6*)
12853: case $cc_basename in
12854: CC*)
12855: # SGI C++
12856: 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'
12857:
12858: # Archives containing C++ object files must be created using
12859: # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12860: # necessary to make sure instantiated templates are included
12861: # in the archive.
12862: old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12863: ;;
12864: *)
12865: if test "$GXX" = yes; then
12866: if test "$with_gnu_ld" = no; then
12867: 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'
12868: else
12869: 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'
12870: fi
12871: fi
12872: link_all_deplibs_CXX=yes
12873: ;;
12874: esac
12875: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12876: hardcode_libdir_separator_CXX=:
12877: inherit_rpath_CXX=yes
12878: ;;
12879:
12880: linux* | k*bsd*-gnu | kopensolaris*-gnu)
12881: case $cc_basename in
12882: KCC*)
12883: # Kuck and Associates, Inc. (KAI) C++ Compiler
12884:
12885: # KCC will only create a shared library if the output file
12886: # ends with ".so" (or ".sl" for HP-UX), so rename the library
12887: # to its proper name (with version) after linking.
12888: 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'
12889: 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'
12890: # Commands to make compiler produce verbose output that lists
12891: # what "hidden" libraries, object files and flags are used when
12892: # linking a shared library.
12893: #
12894: # There doesn't appear to be a way to prevent this compiler from
12895: # explicitly linking system object files so we need to strip them
12896: # from the output so that they don't get included in the library
12897: # dependencies.
12898: 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"'
12899:
12900: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12901: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12902:
12903: # Archives containing C++ object files must be created using
12904: # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12905: old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12906: ;;
12907: icpc* | ecpc* )
12908: # Intel C++
12909: with_gnu_ld=yes
12910: # version 8.0 and above of icpc choke on multiply defined symbols
12911: # if we add $predep_objects and $postdep_objects, however 7.1 and
12912: # earlier do not add the objects themselves.
12913: case `$CC -V 2>&1` in
12914: *"Version 7."*)
12915: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12916: 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'
12917: ;;
12918: *) # Version 8.0 or newer
12919: tmp_idyn=
12920: case $host_cpu in
12921: ia64*) tmp_idyn=' -i_dynamic';;
12922: esac
12923: archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12924: 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'
12925: ;;
12926: esac
12927: archive_cmds_need_lc_CXX=no
12928: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12929: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12930: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12931: ;;
12932: pgCC* | pgcpp*)
12933: # Portland Group C++ compiler
12934: case `$CC -V` in
12935: *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12936: prelink_cmds_CXX='tpldir=Template.dir~
12937: rm -rf $tpldir~
12938: $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12939: compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12940: old_archive_cmds_CXX='tpldir=Template.dir~
12941: rm -rf $tpldir~
12942: $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12943: $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12944: $RANLIB $oldlib'
12945: archive_cmds_CXX='tpldir=Template.dir~
12946: rm -rf $tpldir~
12947: $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12948: $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12949: archive_expsym_cmds_CXX='tpldir=Template.dir~
12950: rm -rf $tpldir~
12951: $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12952: $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'
12953: ;;
12954: *) # Version 6 and above use weak symbols
12955: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12956: 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'
12957: ;;
12958: esac
12959:
12960: hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12961: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12962: 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'
12963: ;;
12964: cxx*)
12965: # Compaq C++
12966: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12967: 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'
12968:
12969: runpath_var=LD_RUN_PATH
12970: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12971: hardcode_libdir_separator_CXX=:
12972:
12973: # Commands to make compiler produce verbose output that lists
12974: # what "hidden" libraries, object files and flags are used when
12975: # linking a shared library.
12976: #
12977: # There doesn't appear to be a way to prevent this compiler from
12978: # explicitly linking system object files so we need to strip them
12979: # from the output so that they don't get included in the library
12980: # dependencies.
12981: 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'
12982: ;;
12983: xl* | mpixl* | bgxl*)
12984: # IBM XL 8.0 on PPC, with GNU ld
12985: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12986: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12987: archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12988: if test "x$supports_anon_versioning" = xyes; then
12989: archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12990: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12991: echo "local: *; };" >> $output_objdir/$libname.ver~
12992: $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12993: fi
12994: ;;
12995: *)
12996: case `$CC -V 2>&1 | sed 5q` in
12997: *Sun\ C*)
12998: # Sun C++ 5.9
12999: no_undefined_flag_CXX=' -zdefs'
13000: archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13001: 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'
13002: hardcode_libdir_flag_spec_CXX='-R$libdir'
13003: 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'
13004: compiler_needs_object_CXX=yes
13005:
13006: # Not sure whether something based on
13007: # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13008: # would be better.
13009: output_verbose_link_cmd='func_echo_all'
13010:
13011: # Archives containing C++ object files must be created using
13012: # "CC -xar", where "CC" is the Sun C++ compiler. This is
13013: # necessary to make sure instantiated templates are included
13014: # in the archive.
13015: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13016: ;;
13017: esac
13018: ;;
13019: esac
13020: ;;
13021:
13022: lynxos*)
13023: # FIXME: insert proper C++ library support
13024: ld_shlibs_CXX=no
13025: ;;
13026:
13027: m88k*)
13028: # FIXME: insert proper C++ library support
13029: ld_shlibs_CXX=no
13030: ;;
13031:
13032: mvs*)
13033: case $cc_basename in
13034: cxx*)
13035: # FIXME: insert proper C++ library support
13036: ld_shlibs_CXX=no
13037: ;;
13038: *)
13039: # FIXME: insert proper C++ library support
13040: ld_shlibs_CXX=no
13041: ;;
13042: esac
13043: ;;
13044:
13045: netbsd*)
13046: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13047: archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13048: wlarc=
13049: hardcode_libdir_flag_spec_CXX='-R$libdir'
13050: hardcode_direct_CXX=yes
13051: hardcode_shlibpath_var_CXX=no
13052: fi
13053: # Workaround some broken pre-1.5 toolchains
13054: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13055: ;;
13056:
13057: *nto* | *qnx*)
13058: ld_shlibs_CXX=yes
13059: ;;
13060:
13061: openbsd2*)
13062: # C++ shared libraries are fairly broken
13063: ld_shlibs_CXX=no
13064: ;;
13065:
13066: openbsd*)
13067: if test -f /usr/libexec/ld.so; then
13068: hardcode_direct_CXX=yes
13069: hardcode_shlibpath_var_CXX=no
13070: hardcode_direct_absolute_CXX=yes
13071: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13072: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13073: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13074: archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13075: export_dynamic_flag_spec_CXX='${wl}-E'
13076: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13077: fi
13078: output_verbose_link_cmd=func_echo_all
13079: else
13080: ld_shlibs_CXX=no
13081: fi
13082: ;;
13083:
13084: osf3* | osf4* | osf5*)
13085: case $cc_basename in
13086: KCC*)
13087: # Kuck and Associates, Inc. (KAI) C++ Compiler
13088:
13089: # KCC will only create a shared library if the output file
13090: # ends with ".so" (or ".sl" for HP-UX), so rename the library
13091: # to its proper name (with version) after linking.
13092: 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'
13093:
13094: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13095: hardcode_libdir_separator_CXX=:
13096:
13097: # Archives containing C++ object files must be created using
13098: # the KAI C++ compiler.
13099: case $host in
13100: osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13101: *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13102: esac
13103: ;;
13104: RCC*)
13105: # Rational C++ 2.4.1
13106: # FIXME: insert proper C++ library support
13107: ld_shlibs_CXX=no
13108: ;;
13109: cxx*)
13110: case $host in
13111: osf3*)
13112: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13113: 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'
13114: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13115: ;;
13116: *)
13117: allow_undefined_flag_CXX=' -expect_unresolved \*'
13118: 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'
13119: archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13120: echo "-hidden">> $lib.exp~
13121: $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~
13122: $RM $lib.exp'
13123: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13124: ;;
13125: esac
13126:
13127: hardcode_libdir_separator_CXX=:
13128:
13129: # Commands to make compiler produce verbose output that lists
13130: # what "hidden" libraries, object files and flags are used when
13131: # linking a shared library.
13132: #
13133: # There doesn't appear to be a way to prevent this compiler from
13134: # explicitly linking system object files so we need to strip them
13135: # from the output so that they don't get included in the library
13136: # dependencies.
13137: 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"'
13138: ;;
13139: *)
13140: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13141: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13142: case $host in
13143: osf3*)
13144: 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'
13145: ;;
13146: *)
13147: 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'
13148: ;;
13149: esac
13150:
13151: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13152: hardcode_libdir_separator_CXX=:
13153:
13154: # Commands to make compiler produce verbose output that lists
13155: # what "hidden" libraries, object files and flags are used when
13156: # linking a shared library.
13157: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13158:
13159: else
13160: # FIXME: insert proper C++ library support
13161: ld_shlibs_CXX=no
13162: fi
13163: ;;
13164: esac
13165: ;;
13166:
13167: psos*)
13168: # FIXME: insert proper C++ library support
13169: ld_shlibs_CXX=no
13170: ;;
13171:
13172: sunos4*)
13173: case $cc_basename in
13174: CC*)
13175: # Sun C++ 4.x
13176: # FIXME: insert proper C++ library support
13177: ld_shlibs_CXX=no
13178: ;;
13179: lcc*)
13180: # Lucid
13181: # FIXME: insert proper C++ library support
13182: ld_shlibs_CXX=no
13183: ;;
13184: *)
13185: # FIXME: insert proper C++ library support
13186: ld_shlibs_CXX=no
13187: ;;
13188: esac
13189: ;;
13190:
13191: solaris*)
13192: case $cc_basename in
13193: CC* | sunCC*)
13194: # Sun C++ 4.2, 5.x and Centerline C++
13195: archive_cmds_need_lc_CXX=yes
13196: no_undefined_flag_CXX=' -zdefs'
13197: archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13198: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13199: $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'
13200:
13201: hardcode_libdir_flag_spec_CXX='-R$libdir'
13202: hardcode_shlibpath_var_CXX=no
13203: case $host_os in
13204: solaris2.[0-5] | solaris2.[0-5].*) ;;
13205: *)
13206: # The compiler driver will combine and reorder linker options,
13207: # but understands `-z linker_flag'.
13208: # Supported since Solaris 2.6 (maybe 2.5.1?)
13209: whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13210: ;;
13211: esac
13212: link_all_deplibs_CXX=yes
13213:
13214: output_verbose_link_cmd='func_echo_all'
13215:
13216: # Archives containing C++ object files must be created using
13217: # "CC -xar", where "CC" is the Sun C++ compiler. This is
13218: # necessary to make sure instantiated templates are included
13219: # in the archive.
13220: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13221: ;;
13222: gcx*)
13223: # Green Hills C++ Compiler
13224: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13225:
13226: # The C++ compiler must be used to create the archive.
13227: old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13228: ;;
13229: *)
13230: # GNU C++ compiler with Solaris linker
13231: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13232: no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13233: if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13234: archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13235: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13236: $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13237:
13238: # Commands to make compiler produce verbose output that lists
13239: # what "hidden" libraries, object files and flags are used when
13240: # linking a shared library.
13241: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13242: else
13243: # g++ 2.7 appears to require `-G' NOT `-shared' on this
13244: # platform.
13245: archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13246: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13247: $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13248:
13249: # Commands to make compiler produce verbose output that lists
13250: # what "hidden" libraries, object files and flags are used when
13251: # linking a shared library.
13252: output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13253: fi
13254:
13255: hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13256: case $host_os in
13257: solaris2.[0-5] | solaris2.[0-5].*) ;;
13258: *)
13259: whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13260: ;;
13261: esac
13262: fi
13263: ;;
13264: esac
13265: ;;
13266:
13267: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13268: no_undefined_flag_CXX='${wl}-z,text'
13269: archive_cmds_need_lc_CXX=no
13270: hardcode_shlibpath_var_CXX=no
13271: runpath_var='LD_RUN_PATH'
13272:
13273: case $cc_basename in
13274: CC*)
13275: archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13276: archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13277: ;;
13278: *)
13279: archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13280: archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13281: ;;
13282: esac
13283: ;;
13284:
13285: sysv5* | sco3.2v5* | sco5v6*)
13286: # Note: We can NOT use -z defs as we might desire, because we do not
13287: # link with -lc, and that would cause any symbols used from libc to
13288: # always be unresolved, which means just about no library would
13289: # ever link correctly. If we're not using GNU ld we use -z text
13290: # though, which does catch some bad symbols but isn't as heavy-handed
13291: # as -z defs.
13292: no_undefined_flag_CXX='${wl}-z,text'
13293: allow_undefined_flag_CXX='${wl}-z,nodefs'
13294: archive_cmds_need_lc_CXX=no
13295: hardcode_shlibpath_var_CXX=no
13296: hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13297: hardcode_libdir_separator_CXX=':'
13298: link_all_deplibs_CXX=yes
13299: export_dynamic_flag_spec_CXX='${wl}-Bexport'
13300: runpath_var='LD_RUN_PATH'
13301:
13302: case $cc_basename in
13303: CC*)
13304: archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13305: archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13306: old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13307: '"$old_archive_cmds_CXX"
13308: reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13309: '"$reload_cmds_CXX"
13310: ;;
13311: *)
13312: archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13313: archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13314: ;;
13315: esac
13316: ;;
13317:
13318: tandem*)
13319: case $cc_basename in
13320: NCC*)
13321: # NonStop-UX NCC 3.20
13322: # FIXME: insert proper C++ library support
13323: ld_shlibs_CXX=no
13324: ;;
13325: *)
13326: # FIXME: insert proper C++ library support
13327: ld_shlibs_CXX=no
13328: ;;
13329: esac
13330: ;;
13331:
13332: vxworks*)
13333: # FIXME: insert proper C++ library support
13334: ld_shlibs_CXX=no
13335: ;;
13336:
13337: *)
13338: # FIXME: insert proper C++ library support
13339: ld_shlibs_CXX=no
13340: ;;
13341: esac
13342:
13343: echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13344: echo "${ECHO_T}$ld_shlibs_CXX" >&6
13345: test "$ld_shlibs_CXX" = no && can_build_shared=no
13346:
13347: GCC_CXX="$GXX"
13348: LD_CXX="$LD"
13349:
13350: ## CAVEAT EMPTOR:
13351: ## There is no encapsulation within the following macros, do not change
13352: ## the running order or otherwise move them around unless you know exactly
13353: ## what you are doing...
13354: # Dependencies to place before and after the object being linked:
13355: predep_objects_CXX=
13356: postdep_objects_CXX=
13357: predeps_CXX=
13358: postdeps_CXX=
13359: compiler_lib_search_path_CXX=
13360:
13361: cat > conftest.$ac_ext <<_LT_EOF
13362: class Foo
13363: {
13364: public:
13365: Foo (void) { a = 0; }
13366: private:
13367: int a;
13368: };
13369: _LT_EOF
13370:
13371:
13372: _lt_libdeps_save_CFLAGS=$CFLAGS
13373: case "$CC $CFLAGS " in #(
13374: *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13375: *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13376: *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13377: esac
13378:
13379: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13380: (eval $ac_compile) 2>&5
13381: ac_status=$?
13382: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13383: (exit $ac_status); }; then
13384: # Parse the compiler output and extract the necessary
13385: # objects, libraries and library flags.
13386:
13387: # Sentinel used to keep track of whether or not we are before
13388: # the conftest object file.
13389: pre_test_object_deps_done=no
13390:
13391: for p in `eval "$output_verbose_link_cmd"`; do
13392: case ${prev}${p} in
13393:
13394: -L* | -R* | -l*)
13395: # Some compilers place space between "-{L,R}" and the path.
13396: # Remove the space.
13397: if test $p = "-L" ||
13398: test $p = "-R"; then
13399: prev=$p
13400: continue
13401: fi
13402:
13403: # Expand the sysroot to ease extracting the directories later.
13404: if test -z "$prev"; then
13405: case $p in
13406: -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13407: -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13408: -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13409: esac
13410: fi
13411: case $p in
13412: =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13413: esac
13414: if test "$pre_test_object_deps_done" = no; then
13415: case ${prev} in
13416: -L | -R)
13417: # Internal compiler library paths should come after those
13418: # provided the user. The postdeps already come after the
13419: # user supplied libs so there is no need to process them.
13420: if test -z "$compiler_lib_search_path_CXX"; then
13421: compiler_lib_search_path_CXX="${prev}${p}"
13422: else
13423: compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13424: fi
13425: ;;
13426: # The "-l" case would never come before the object being
13427: # linked, so don't bother handling this case.
13428: esac
13429: else
13430: if test -z "$postdeps_CXX"; then
13431: postdeps_CXX="${prev}${p}"
13432: else
13433: postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13434: fi
13435: fi
13436: prev=
13437: ;;
13438:
13439: *.lto.$objext) ;; # Ignore GCC LTO objects
13440: *.$objext)
13441: # This assumes that the test object file only shows up
13442: # once in the compiler output.
13443: if test "$p" = "conftest.$objext"; then
13444: pre_test_object_deps_done=yes
13445: continue
13446: fi
13447:
13448: if test "$pre_test_object_deps_done" = no; then
13449: if test -z "$predep_objects_CXX"; then
13450: predep_objects_CXX="$p"
13451: else
13452: predep_objects_CXX="$predep_objects_CXX $p"
13453: fi
13454: else
13455: if test -z "$postdep_objects_CXX"; then
13456: postdep_objects_CXX="$p"
13457: else
13458: postdep_objects_CXX="$postdep_objects_CXX $p"
13459: fi
13460: fi
13461: ;;
13462:
13463: *) ;; # Ignore the rest.
13464:
13465: esac
13466: done
13467:
13468: # Clean up.
13469: rm -f a.out a.exe
13470: else
13471: echo "libtool.m4: error: problem compiling CXX test program"
13472: fi
13473:
13474: $RM -f confest.$objext
13475: CFLAGS=$_lt_libdeps_save_CFLAGS
13476:
13477: # PORTME: override above test on systems where it is broken
13478: case $host_os in
13479: interix[3-9]*)
13480: # Interix 3.5 installs completely hosed .la files for C++, so rather than
13481: # hack all around it, let's just trust "g++" to DTRT.
13482: predep_objects_CXX=
13483: postdep_objects_CXX=
13484: postdeps_CXX=
13485: ;;
13486:
13487: linux*)
13488: case `$CC -V 2>&1 | sed 5q` in
13489: *Sun\ C*)
13490: # Sun C++ 5.9
13491:
13492: # The more standards-conforming stlport4 library is
13493: # incompatible with the Cstd library. Avoid specifying
13494: # it if it's in CXXFLAGS. Ignore libCrun as
13495: # -library=stlport4 depends on it.
13496: case " $CXX $CXXFLAGS " in
13497: *" -library=stlport4 "*)
13498: solaris_use_stlport4=yes
13499: ;;
13500: esac
13501:
13502: if test "$solaris_use_stlport4" != yes; then
13503: postdeps_CXX='-library=Cstd -library=Crun'
13504: fi
13505: ;;
13506: esac
13507: ;;
13508:
13509: solaris*)
13510: case $cc_basename in
13511: CC* | sunCC*)
13512: # The more standards-conforming stlport4 library is
13513: # incompatible with the Cstd library. Avoid specifying
13514: # it if it's in CXXFLAGS. Ignore libCrun as
13515: # -library=stlport4 depends on it.
13516: case " $CXX $CXXFLAGS " in
13517: *" -library=stlport4 "*)
13518: solaris_use_stlport4=yes
13519: ;;
13520: esac
13521:
13522: # Adding this requires a known-good setup of shared libraries for
13523: # Sun compiler versions before 5.6, else PIC objects from an old
13524: # archive will be linked into the output, leading to subtle bugs.
13525: if test "$solaris_use_stlport4" != yes; then
13526: postdeps_CXX='-library=Cstd -library=Crun'
13527: fi
13528: ;;
13529: esac
13530: ;;
13531: esac
13532:
13533:
13534: case " $postdeps_CXX " in
13535: *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13536: esac
13537: compiler_lib_search_dirs_CXX=
13538: if test -n "${compiler_lib_search_path_CXX}"; then
13539: compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13540: fi
13541:
13542:
13543:
13544:
13545:
13546:
13547:
13548:
13549:
13550:
13551:
13552:
13553:
13554:
13555:
13556:
13557:
13558:
13559:
13560:
13561:
13562:
13563:
13564:
13565:
13566:
13567:
13568:
13569:
13570:
13571:
13572: lt_prog_compiler_wl_CXX=
13573: lt_prog_compiler_pic_CXX=
13574: lt_prog_compiler_static_CXX=
13575:
13576:
13577: # C++ specific cases for pic, static, wl, etc.
13578: if test "$GXX" = yes; then
13579: lt_prog_compiler_wl_CXX='-Wl,'
13580: lt_prog_compiler_static_CXX='-static'
13581:
13582: case $host_os in
13583: aix*)
13584: # All AIX code is PIC.
13585: if test "$host_cpu" = ia64; then
13586: # AIX 5 now supports IA64 processor
13587: lt_prog_compiler_static_CXX='-Bstatic'
13588: fi
13589: ;;
13590:
13591: amigaos*)
13592: case $host_cpu in
13593: powerpc)
13594: # see comment about AmigaOS4 .so support
13595: lt_prog_compiler_pic_CXX='-fPIC'
13596: ;;
13597: m68k)
13598: # FIXME: we need at least 68020 code to build shared libraries, but
13599: # adding the `-m68020' flag to GCC prevents building anything better,
13600: # like `-m68040'.
13601: lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13602: ;;
13603: esac
13604: ;;
13605:
13606: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13607: # PIC is the default for these OSes.
13608: ;;
13609: mingw* | cygwin* | os2* | pw32* | cegcc*)
13610: # This hack is so that the source file can tell whether it is being
13611: # built for inclusion in a dll (and should export symbols for example).
13612: # Although the cygwin gcc ignores -fPIC, still need this for old-style
13613: # (--disable-auto-import) libraries
13614: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13615: ;;
13616: darwin* | rhapsody*)
13617: # PIC is the default on this platform
13618: # Common symbols not allowed in MH_DYLIB files
13619: lt_prog_compiler_pic_CXX='-fno-common'
13620: ;;
13621: *djgpp*)
13622: # DJGPP does not support shared libraries at all
13623: lt_prog_compiler_pic_CXX=
13624: ;;
13625: haiku*)
13626: # PIC is the default for Haiku.
13627: # The "-static" flag exists, but is broken.
13628: lt_prog_compiler_static_CXX=
13629: ;;
13630: interix[3-9]*)
13631: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13632: # Instead, we relocate shared libraries at runtime.
13633: ;;
13634: sysv4*MP*)
13635: if test -d /usr/nec; then
13636: lt_prog_compiler_pic_CXX=-Kconform_pic
13637: fi
13638: ;;
13639: hpux*)
13640: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13641: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13642: # sets the default TLS model and affects inlining.
13643: case $host_cpu in
13644: hppa*64*)
13645: ;;
13646: *)
13647: lt_prog_compiler_pic_CXX='-fPIC'
13648: ;;
13649: esac
13650: ;;
13651: *qnx* | *nto*)
13652: # QNX uses GNU C++, but need to define -shared option too, otherwise
13653: # it will coredump.
13654: lt_prog_compiler_pic_CXX='-fPIC -shared'
13655: ;;
13656: *)
13657: lt_prog_compiler_pic_CXX='-fPIC'
13658: ;;
13659: esac
13660: else
13661: case $host_os in
13662: aix[4-9]*)
13663: # All AIX code is PIC.
13664: if test "$host_cpu" = ia64; then
13665: # AIX 5 now supports IA64 processor
13666: lt_prog_compiler_static_CXX='-Bstatic'
13667: else
13668: lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13669: fi
13670: ;;
13671: chorus*)
13672: case $cc_basename in
13673: cxch68*)
13674: # Green Hills C++ Compiler
13675: # _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"
13676: ;;
13677: esac
13678: ;;
13679: mingw* | cygwin* | os2* | pw32* | cegcc*)
13680: # This hack is so that the source file can tell whether it is being
13681: # built for inclusion in a dll (and should export symbols for example).
13682: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13683: ;;
13684: dgux*)
13685: case $cc_basename in
13686: ec++*)
13687: lt_prog_compiler_pic_CXX='-KPIC'
13688: ;;
13689: ghcx*)
13690: # Green Hills C++ Compiler
13691: lt_prog_compiler_pic_CXX='-pic'
13692: ;;
13693: *)
13694: ;;
13695: esac
13696: ;;
13697: freebsd* | dragonfly*)
13698: # FreeBSD uses GNU C++
13699: ;;
13700: hpux9* | hpux10* | hpux11*)
13701: case $cc_basename in
13702: CC*)
13703: lt_prog_compiler_wl_CXX='-Wl,'
13704: lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13705: if test "$host_cpu" != ia64; then
13706: lt_prog_compiler_pic_CXX='+Z'
13707: fi
13708: ;;
13709: aCC*)
13710: lt_prog_compiler_wl_CXX='-Wl,'
13711: lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13712: case $host_cpu in
13713: hppa*64*|ia64*)
13714: # +Z the default
13715: ;;
13716: *)
13717: lt_prog_compiler_pic_CXX='+Z'
13718: ;;
13719: esac
13720: ;;
13721: *)
13722: ;;
13723: esac
13724: ;;
13725: interix*)
13726: # This is c89, which is MS Visual C++ (no shared libs)
13727: # Anyone wants to do a port?
13728: ;;
13729: irix5* | irix6* | nonstopux*)
13730: case $cc_basename in
13731: CC*)
13732: lt_prog_compiler_wl_CXX='-Wl,'
13733: lt_prog_compiler_static_CXX='-non_shared'
13734: # CC pic flag -KPIC is the default.
13735: ;;
13736: *)
13737: ;;
13738: esac
13739: ;;
13740: linux* | k*bsd*-gnu | kopensolaris*-gnu)
13741: case $cc_basename in
13742: KCC*)
13743: # KAI C++ Compiler
13744: lt_prog_compiler_wl_CXX='--backend -Wl,'
13745: lt_prog_compiler_pic_CXX='-fPIC'
13746: ;;
13747: ecpc* )
13748: # old Intel C++ for x86_64 which still supported -KPIC.
13749: lt_prog_compiler_wl_CXX='-Wl,'
13750: lt_prog_compiler_pic_CXX='-KPIC'
13751: lt_prog_compiler_static_CXX='-static'
13752: ;;
13753: icpc* )
13754: # Intel C++, used to be incompatible with GCC.
13755: # ICC 10 doesn't accept -KPIC any more.
13756: lt_prog_compiler_wl_CXX='-Wl,'
13757: lt_prog_compiler_pic_CXX='-fPIC'
13758: lt_prog_compiler_static_CXX='-static'
13759: ;;
13760: pgCC* | pgcpp*)
13761: # Portland Group C++ compiler
13762: lt_prog_compiler_wl_CXX='-Wl,'
13763: lt_prog_compiler_pic_CXX='-fpic'
13764: lt_prog_compiler_static_CXX='-Bstatic'
13765: ;;
13766: cxx*)
13767: # Compaq C++
13768: # Make sure the PIC flag is empty. It appears that all Alpha
13769: # Linux and Compaq Tru64 Unix objects are PIC.
13770: lt_prog_compiler_pic_CXX=
13771: lt_prog_compiler_static_CXX='-non_shared'
13772: ;;
13773: xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13774: # IBM XL 8.0, 9.0 on PPC and BlueGene
13775: lt_prog_compiler_wl_CXX='-Wl,'
13776: lt_prog_compiler_pic_CXX='-qpic'
13777: lt_prog_compiler_static_CXX='-qstaticlink'
13778: ;;
13779: *)
13780: case `$CC -V 2>&1 | sed 5q` in
13781: *Sun\ C*)
13782: # Sun C++ 5.9
13783: lt_prog_compiler_pic_CXX='-KPIC'
13784: lt_prog_compiler_static_CXX='-Bstatic'
13785: lt_prog_compiler_wl_CXX='-Qoption ld '
13786: ;;
13787: esac
13788: ;;
13789: esac
13790: ;;
13791: lynxos*)
13792: ;;
13793: m88k*)
13794: ;;
13795: mvs*)
13796: case $cc_basename in
13797: cxx*)
13798: lt_prog_compiler_pic_CXX='-W c,exportall'
13799: ;;
13800: *)
13801: ;;
13802: esac
13803: ;;
13804: netbsd*)
13805: ;;
13806: *qnx* | *nto*)
13807: # QNX uses GNU C++, but need to define -shared option too, otherwise
13808: # it will coredump.
13809: lt_prog_compiler_pic_CXX='-fPIC -shared'
13810: ;;
13811: osf3* | osf4* | osf5*)
13812: case $cc_basename in
13813: KCC*)
13814: lt_prog_compiler_wl_CXX='--backend -Wl,'
13815: ;;
13816: RCC*)
13817: # Rational C++ 2.4.1
13818: lt_prog_compiler_pic_CXX='-pic'
13819: ;;
13820: cxx*)
13821: # Digital/Compaq C++
13822: lt_prog_compiler_wl_CXX='-Wl,'
13823: # Make sure the PIC flag is empty. It appears that all Alpha
13824: # Linux and Compaq Tru64 Unix objects are PIC.
13825: lt_prog_compiler_pic_CXX=
13826: lt_prog_compiler_static_CXX='-non_shared'
13827: ;;
13828: *)
13829: ;;
13830: esac
13831: ;;
13832: psos*)
13833: ;;
13834: solaris*)
13835: case $cc_basename in
13836: CC* | sunCC*)
13837: # Sun C++ 4.2, 5.x and Centerline C++
13838: lt_prog_compiler_pic_CXX='-KPIC'
13839: lt_prog_compiler_static_CXX='-Bstatic'
13840: lt_prog_compiler_wl_CXX='-Qoption ld '
13841: ;;
13842: gcx*)
13843: # Green Hills C++ Compiler
13844: lt_prog_compiler_pic_CXX='-PIC'
13845: ;;
13846: *)
13847: ;;
13848: esac
13849: ;;
13850: sunos4*)
13851: case $cc_basename in
13852: CC*)
13853: # Sun C++ 4.x
13854: lt_prog_compiler_pic_CXX='-pic'
13855: lt_prog_compiler_static_CXX='-Bstatic'
13856: ;;
13857: lcc*)
13858: # Lucid
13859: lt_prog_compiler_pic_CXX='-pic'
13860: ;;
13861: *)
13862: ;;
13863: esac
13864: ;;
13865: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13866: case $cc_basename in
13867: CC*)
13868: lt_prog_compiler_wl_CXX='-Wl,'
13869: lt_prog_compiler_pic_CXX='-KPIC'
13870: lt_prog_compiler_static_CXX='-Bstatic'
13871: ;;
13872: esac
13873: ;;
13874: tandem*)
13875: case $cc_basename in
13876: NCC*)
13877: # NonStop-UX NCC 3.20
13878: lt_prog_compiler_pic_CXX='-KPIC'
13879: ;;
13880: *)
13881: ;;
13882: esac
13883: ;;
13884: vxworks*)
13885: ;;
13886: *)
13887: lt_prog_compiler_can_build_shared_CXX=no
13888: ;;
13889: esac
13890: fi
13891:
13892: case $host_os in
13893: # For platforms which do not support PIC, -DPIC is meaningless:
13894: *djgpp*)
13895: lt_prog_compiler_pic_CXX=
13896: ;;
13897: *)
13898: lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13899: ;;
13900: esac
13901:
13902: echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13903: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13904: if test "${lt_cv_prog_compiler_pic_CXX+set}" = set; then
13905: echo $ECHO_N "(cached) $ECHO_C" >&6
13906: else
13907: lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
13908: fi
13909: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_CXX" >&5
13910: echo "${ECHO_T}$lt_cv_prog_compiler_pic_CXX" >&6
13911: lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
13912:
13913: #
13914: # Check to make sure the PIC flag actually works.
13915: #
13916: if test -n "$lt_prog_compiler_pic_CXX"; then
13917: echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13918: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
13919: if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
13920: echo $ECHO_N "(cached) $ECHO_C" >&6
13921: else
13922: lt_cv_prog_compiler_pic_works_CXX=no
13923: ac_outfile=conftest.$ac_objext
13924: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13925: lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13926: # Insert the option either (1) after the last *FLAGS variable, or
13927: # (2) before a word containing "conftest.", or (3) at the end.
13928: # Note that $ac_compile itself does not contain backslashes and begins
13929: # with a dollar sign (not a hyphen), so the echo should work correctly.
13930: # The option is referenced via a variable to avoid confusing sed.
13931: lt_compile=`echo "$ac_compile" | $SED \
13932: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13933: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13934: -e 's:$: $lt_compiler_flag:'`
13935: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13936: (eval "$lt_compile" 2>conftest.err)
13937: ac_status=$?
13938: cat conftest.err >&5
13939: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13940: if (exit $ac_status) && test -s "$ac_outfile"; then
13941: # The compiler can only warn and ignore the option if not recognized
13942: # So say no if there are warnings other than the usual output.
13943: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13944: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13945: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13946: lt_cv_prog_compiler_pic_works_CXX=yes
13947: fi
13948: fi
13949: $RM conftest*
13950:
13951: fi
13952: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13953: echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6
13954:
13955: if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13956: case $lt_prog_compiler_pic_CXX in
13957: "" | " "*) ;;
13958: *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13959: esac
13960: else
13961: lt_prog_compiler_pic_CXX=
13962: lt_prog_compiler_can_build_shared_CXX=no
13963: fi
13964:
13965: fi
13966:
13967:
13968:
13969:
13970:
13971: #
13972: # Check to make sure the static flag actually works.
13973: #
13974: wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13975: echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13976: echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13977: if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
13978: echo $ECHO_N "(cached) $ECHO_C" >&6
13979: else
13980: lt_cv_prog_compiler_static_works_CXX=no
13981: save_LDFLAGS="$LDFLAGS"
13982: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13983: echo "$lt_simple_link_test_code" > conftest.$ac_ext
13984: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13985: # The linker can only warn and ignore the option if not recognized
13986: # So say no if there are warnings
13987: if test -s conftest.err; then
13988: # Append any errors to the config.log.
13989: cat conftest.err 1>&5
13990: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13991: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13992: if diff conftest.exp conftest.er2 >/dev/null; then
13993: lt_cv_prog_compiler_static_works_CXX=yes
13994: fi
13995: else
13996: lt_cv_prog_compiler_static_works_CXX=yes
13997: fi
13998: fi
13999: $RM -r conftest*
14000: LDFLAGS="$save_LDFLAGS"
14001:
14002: fi
14003: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14004: echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6
14005:
14006: if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14007: :
14008: else
14009: lt_prog_compiler_static_CXX=
14010: fi
14011:
14012:
14013:
14014:
14015: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14016: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14017: if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14018: echo $ECHO_N "(cached) $ECHO_C" >&6
14019: else
14020: lt_cv_prog_compiler_c_o_CXX=no
14021: $RM -r conftest 2>/dev/null
14022: mkdir conftest
14023: cd conftest
14024: mkdir out
14025: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14026:
14027: lt_compiler_flag="-o out/conftest2.$ac_objext"
14028: # Insert the option either (1) after the last *FLAGS variable, or
14029: # (2) before a word containing "conftest.", or (3) at the end.
14030: # Note that $ac_compile itself does not contain backslashes and begins
14031: # with a dollar sign (not a hyphen), so the echo should work correctly.
14032: lt_compile=`echo "$ac_compile" | $SED \
14033: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14034: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14035: -e 's:$: $lt_compiler_flag:'`
14036: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14037: (eval "$lt_compile" 2>out/conftest.err)
14038: ac_status=$?
14039: cat out/conftest.err >&5
14040: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14041: if (exit $ac_status) && test -s out/conftest2.$ac_objext
14042: then
14043: # The compiler can only warn and ignore the option if not recognized
14044: # So say no if there are warnings
14045: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14046: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14047: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14048: lt_cv_prog_compiler_c_o_CXX=yes
14049: fi
14050: fi
14051: chmod u+w . 2>&5
14052: $RM conftest*
14053: # SGI C++ compiler will create directory out/ii_files/ for
14054: # template instantiation
14055: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14056: $RM out/* && rmdir out
14057: cd ..
14058: $RM -r conftest
14059: $RM conftest*
14060:
14061: fi
14062: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14063: echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
14064:
14065:
14066:
14067: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14068: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14069: if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14070: echo $ECHO_N "(cached) $ECHO_C" >&6
14071: else
14072: lt_cv_prog_compiler_c_o_CXX=no
14073: $RM -r conftest 2>/dev/null
14074: mkdir conftest
14075: cd conftest
14076: mkdir out
14077: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14078:
14079: lt_compiler_flag="-o out/conftest2.$ac_objext"
14080: # Insert the option either (1) after the last *FLAGS variable, or
14081: # (2) before a word containing "conftest.", or (3) at the end.
14082: # Note that $ac_compile itself does not contain backslashes and begins
14083: # with a dollar sign (not a hyphen), so the echo should work correctly.
14084: lt_compile=`echo "$ac_compile" | $SED \
14085: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14086: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14087: -e 's:$: $lt_compiler_flag:'`
14088: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14089: (eval "$lt_compile" 2>out/conftest.err)
14090: ac_status=$?
14091: cat out/conftest.err >&5
14092: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14093: if (exit $ac_status) && test -s out/conftest2.$ac_objext
14094: then
14095: # The compiler can only warn and ignore the option if not recognized
14096: # So say no if there are warnings
14097: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14098: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14099: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14100: lt_cv_prog_compiler_c_o_CXX=yes
14101: fi
14102: fi
14103: chmod u+w . 2>&5
14104: $RM conftest*
14105: # SGI C++ compiler will create directory out/ii_files/ for
14106: # template instantiation
14107: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14108: $RM out/* && rmdir out
14109: cd ..
14110: $RM -r conftest
14111: $RM conftest*
14112:
14113: fi
14114: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14115: echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
14116:
14117:
14118:
14119:
14120: hard_links="nottested"
14121: if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14122: # do not overwrite the value of need_locks provided by the user
14123: echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14124: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14125: hard_links=yes
14126: $RM conftest*
14127: ln conftest.a conftest.b 2>/dev/null && hard_links=no
14128: touch conftest.a
14129: ln conftest.a conftest.b 2>&5 || hard_links=no
14130: ln conftest.a conftest.b 2>/dev/null && hard_links=no
14131: echo "$as_me:$LINENO: result: $hard_links" >&5
14132: echo "${ECHO_T}$hard_links" >&6
14133: if test "$hard_links" = no; then
14134: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14135: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14136: need_locks=warn
14137: fi
14138: else
14139: need_locks=no
14140: fi
14141:
14142:
14143:
14144: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14145: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14146:
14147: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14148: exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14149: case $host_os in
14150: aix[4-9]*)
14151: # If we're using GNU nm, then we don't want the "-C" option.
14152: # -C means demangle to AIX nm, but means don't demangle with GNU nm
14153: # Also, AIX nm treats weak defined symbols like other global defined
14154: # symbols, whereas GNU nm marks them as "W".
14155: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14156: 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'
14157: else
14158: 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'
14159: fi
14160: ;;
14161: pw32*)
14162: export_symbols_cmds_CXX="$ltdll_cmds"
14163: ;;
14164: cygwin* | mingw* | cegcc*)
14165: case $cc_basename in
14166: cl*)
14167: exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14168: ;;
14169: *)
14170: 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'
14171: exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14172: ;;
14173: esac
14174: ;;
14175: *)
14176: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14177: ;;
14178: esac
14179:
14180: echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14181: echo "${ECHO_T}$ld_shlibs_CXX" >&6
14182: test "$ld_shlibs_CXX" = no && can_build_shared=no
14183:
14184: with_gnu_ld_CXX=$with_gnu_ld
14185:
14186:
14187:
14188:
14189:
14190:
14191: #
14192: # Do we need to explicitly link libc?
14193: #
14194: case "x$archive_cmds_need_lc_CXX" in
14195: x|xyes)
14196: # Assume -lc should be added
14197: archive_cmds_need_lc_CXX=yes
14198:
14199: if test "$enable_shared" = yes && test "$GCC" = yes; then
14200: case $archive_cmds_CXX in
14201: *'~'*)
14202: # FIXME: we may have to deal with multi-command sequences.
14203: ;;
14204: '$CC '*)
14205: # Test whether the compiler implicitly links with -lc since on some
14206: # systems, -lgcc has to come before -lc. If gcc already passes -lc
14207: # to ld, don't add -lc before -lgcc.
14208: echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14209: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14210: if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then
14211: echo $ECHO_N "(cached) $ECHO_C" >&6
14212: else
14213: $RM conftest*
14214: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14215:
14216: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14217: (eval $ac_compile) 2>&5
14218: ac_status=$?
14219: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220: (exit $ac_status); } 2>conftest.err; then
14221: soname=conftest
14222: lib=conftest
14223: libobjs=conftest.$ac_objext
14224: deplibs=
14225: wl=$lt_prog_compiler_wl_CXX
14226: pic_flag=$lt_prog_compiler_pic_CXX
14227: compiler_flags=-v
14228: linker_flags=-v
14229: verstring=
14230: output_objdir=.
14231: libname=conftest
14232: lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14233: allow_undefined_flag_CXX=
14234: if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
14235: (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14236: ac_status=$?
14237: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14238: (exit $ac_status); }
14239: then
14240: lt_cv_archive_cmds_need_lc_CXX=no
14241: else
14242: lt_cv_archive_cmds_need_lc_CXX=yes
14243: fi
14244: allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14245: else
14246: cat conftest.err 1>&5
14247: fi
14248: $RM conftest*
14249:
14250: fi
14251: echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14252: echo "${ECHO_T}$lt_cv_archive_cmds_need_lc_CXX" >&6
14253: archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14254: ;;
14255: esac
14256: fi
14257: ;;
14258: esac
14259:
14260:
14261:
14262:
14263:
14264:
14265:
14266:
14267:
14268:
14269:
14270:
14271:
14272:
14273:
14274:
14275:
14276:
14277:
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: echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14322: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14323:
14324: library_names_spec=
14325: libname_spec='lib$name'
14326: soname_spec=
14327: shrext_cmds=".so"
14328: postinstall_cmds=
14329: postuninstall_cmds=
14330: finish_cmds=
14331: finish_eval=
14332: shlibpath_var=
14333: shlibpath_overrides_runpath=unknown
14334: version_type=none
14335: dynamic_linker="$host_os ld.so"
14336: sys_lib_dlsearch_path_spec="/lib /usr/lib"
14337: need_lib_prefix=unknown
14338: hardcode_into_libs=no
14339:
14340: # when you set need_version to no, make sure it does not cause -set_version
14341: # flags to be left without arguments
14342: need_version=unknown
14343:
14344: case $host_os in
14345: aix3*)
14346: version_type=linux # correct to gnu/linux during the next big refactor
14347: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14348: shlibpath_var=LIBPATH
14349:
14350: # AIX 3 has no versioning support, so we append a major version to the name.
14351: soname_spec='${libname}${release}${shared_ext}$major'
14352: ;;
14353:
14354: aix[4-9]*)
14355: version_type=linux # correct to gnu/linux during the next big refactor
14356: need_lib_prefix=no
14357: need_version=no
14358: hardcode_into_libs=yes
14359: if test "$host_cpu" = ia64; then
14360: # AIX 5 supports IA64
14361: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14362: shlibpath_var=LD_LIBRARY_PATH
14363: else
14364: # With GCC up to 2.95.x, collect2 would create an import file
14365: # for dependence libraries. The import file would start with
14366: # the line `#! .'. This would cause the generated library to
14367: # depend on `.', always an invalid library. This was fixed in
14368: # development snapshots of GCC prior to 3.0.
14369: case $host_os in
14370: aix4 | aix4.[01] | aix4.[01].*)
14371: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14372: echo ' yes '
14373: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14374: :
14375: else
14376: can_build_shared=no
14377: fi
14378: ;;
14379: esac
14380: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14381: # soname into executable. Probably we can add versioning support to
14382: # collect2, so additional links can be useful in future.
14383: if test "$aix_use_runtimelinking" = yes; then
14384: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14385: # instead of lib<name>.a to let people know that these are not
14386: # typical AIX shared libraries.
14387: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14388: else
14389: # We preserve .a as extension for shared libraries through AIX4.2
14390: # and later when we are not doing run time linking.
14391: library_names_spec='${libname}${release}.a $libname.a'
14392: soname_spec='${libname}${release}${shared_ext}$major'
14393: fi
14394: shlibpath_var=LIBPATH
14395: fi
14396: ;;
14397:
14398: amigaos*)
14399: case $host_cpu in
14400: powerpc)
14401: # Since July 2007 AmigaOS4 officially supports .so libraries.
14402: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14403: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14404: ;;
14405: m68k)
14406: library_names_spec='$libname.ixlibrary $libname.a'
14407: # Create ${libname}_ixlibrary.a entries in /sys/libs.
14408: 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'
14409: ;;
14410: esac
14411: ;;
14412:
14413: beos*)
14414: library_names_spec='${libname}${shared_ext}'
14415: dynamic_linker="$host_os ld.so"
14416: shlibpath_var=LIBRARY_PATH
14417: ;;
14418:
14419: bsdi[45]*)
14420: version_type=linux # correct to gnu/linux during the next big refactor
14421: need_version=no
14422: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14423: soname_spec='${libname}${release}${shared_ext}$major'
14424: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14425: shlibpath_var=LD_LIBRARY_PATH
14426: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14427: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14428: # the default ld.so.conf also contains /usr/contrib/lib and
14429: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14430: # libtool to hard-code these into programs
14431: ;;
14432:
14433: cygwin* | mingw* | pw32* | cegcc*)
14434: version_type=windows
14435: shrext_cmds=".dll"
14436: need_version=no
14437: need_lib_prefix=no
14438:
14439: case $GCC,$cc_basename in
14440: yes,*)
14441: # gcc
14442: library_names_spec='$libname.dll.a'
14443: # DLL is installed to $(libdir)/../bin by postinstall_cmds
14444: postinstall_cmds='base_file=`basename \${file}`~
14445: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14446: dldir=$destdir/`dirname \$dlpath`~
14447: test -d \$dldir || mkdir -p \$dldir~
14448: $install_prog $dir/$dlname \$dldir/$dlname~
14449: chmod a+x \$dldir/$dlname~
14450: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14451: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14452: fi'
14453: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14454: dlpath=$dir/\$dldll~
14455: $RM \$dlpath'
14456: shlibpath_overrides_runpath=yes
14457:
14458: case $host_os in
14459: cygwin*)
14460: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14461: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14462:
14463: ;;
14464: mingw* | cegcc*)
14465: # MinGW DLLs use traditional 'lib' prefix
14466: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14467: ;;
14468: pw32*)
14469: # pw32 DLLs use 'pw' prefix rather than 'lib'
14470: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14471: ;;
14472: esac
14473: dynamic_linker='Win32 ld.exe'
14474: ;;
14475:
14476: *,cl*)
14477: # Native MSVC
14478: libname_spec='$name'
14479: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14480: library_names_spec='${libname}.dll.lib'
14481:
14482: case $build_os in
14483: mingw*)
14484: sys_lib_search_path_spec=
14485: lt_save_ifs=$IFS
14486: IFS=';'
14487: for lt_path in $LIB
14488: do
14489: IFS=$lt_save_ifs
14490: # Let DOS variable expansion print the short 8.3 style file name.
14491: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14492: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14493: done
14494: IFS=$lt_save_ifs
14495: # Convert to MSYS style.
14496: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14497: ;;
14498: cygwin*)
14499: # Convert to unix form, then to dos form, then back to unix form
14500: # but this time dos style (no spaces!) so that the unix form looks
14501: # like /cygdrive/c/PROGRA~1:/cygdr...
14502: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14503: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14504: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14505: ;;
14506: *)
14507: sys_lib_search_path_spec="$LIB"
14508: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14509: # It is most probably a Windows format PATH.
14510: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14511: else
14512: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14513: fi
14514: # FIXME: find the short name or the path components, as spaces are
14515: # common. (e.g. "Program Files" -> "PROGRA~1")
14516: ;;
14517: esac
14518:
14519: # DLL is installed to $(libdir)/../bin by postinstall_cmds
14520: postinstall_cmds='base_file=`basename \${file}`~
14521: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14522: dldir=$destdir/`dirname \$dlpath`~
14523: test -d \$dldir || mkdir -p \$dldir~
14524: $install_prog $dir/$dlname \$dldir/$dlname'
14525: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14526: dlpath=$dir/\$dldll~
14527: $RM \$dlpath'
14528: shlibpath_overrides_runpath=yes
14529: dynamic_linker='Win32 link.exe'
14530: ;;
14531:
14532: *)
14533: # Assume MSVC wrapper
14534: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14535: dynamic_linker='Win32 ld.exe'
14536: ;;
14537: esac
14538: # FIXME: first we should search . and the directory the executable is in
14539: shlibpath_var=PATH
14540: ;;
14541:
14542: darwin* | rhapsody*)
14543: dynamic_linker="$host_os dyld"
14544: version_type=darwin
14545: need_lib_prefix=no
14546: need_version=no
14547: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14548: soname_spec='${libname}${release}${major}$shared_ext'
14549: shlibpath_overrides_runpath=yes
14550: shlibpath_var=DYLD_LIBRARY_PATH
14551: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14552:
14553: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14554: ;;
14555:
14556: dgux*)
14557: version_type=linux # correct to gnu/linux during the next big refactor
14558: need_lib_prefix=no
14559: need_version=no
14560: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14561: soname_spec='${libname}${release}${shared_ext}$major'
14562: shlibpath_var=LD_LIBRARY_PATH
14563: ;;
14564:
14565: freebsd* | dragonfly*)
14566: # DragonFly does not have aout. When/if they implement a new
14567: # versioning mechanism, adjust this.
14568: if test -x /usr/bin/objformat; then
14569: objformat=`/usr/bin/objformat`
14570: else
14571: case $host_os in
14572: freebsd[23].*) objformat=aout ;;
14573: *) objformat=elf ;;
14574: esac
14575: fi
14576: version_type=freebsd-$objformat
14577: case $version_type in
14578: freebsd-elf*)
14579: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14580: need_version=no
14581: need_lib_prefix=no
14582: ;;
14583: freebsd-*)
14584: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14585: need_version=yes
14586: ;;
14587: esac
14588: shlibpath_var=LD_LIBRARY_PATH
14589: case $host_os in
14590: freebsd2.*)
14591: shlibpath_overrides_runpath=yes
14592: ;;
14593: freebsd3.[01]* | freebsdelf3.[01]*)
14594: shlibpath_overrides_runpath=yes
14595: hardcode_into_libs=yes
14596: ;;
14597: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14598: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14599: shlibpath_overrides_runpath=no
14600: hardcode_into_libs=yes
14601: ;;
14602: *) # from 4.6 on, and DragonFly
14603: shlibpath_overrides_runpath=yes
14604: hardcode_into_libs=yes
14605: ;;
14606: esac
14607: ;;
14608:
14609: gnu*)
14610: version_type=linux # correct to gnu/linux during the next big refactor
14611: need_lib_prefix=no
14612: need_version=no
14613: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14614: soname_spec='${libname}${release}${shared_ext}$major'
14615: shlibpath_var=LD_LIBRARY_PATH
14616: shlibpath_overrides_runpath=no
14617: hardcode_into_libs=yes
14618: ;;
14619:
14620: haiku*)
14621: version_type=linux # correct to gnu/linux during the next big refactor
14622: need_lib_prefix=no
14623: need_version=no
14624: dynamic_linker="$host_os runtime_loader"
14625: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14626: soname_spec='${libname}${release}${shared_ext}$major'
14627: shlibpath_var=LIBRARY_PATH
14628: shlibpath_overrides_runpath=yes
14629: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14630: hardcode_into_libs=yes
14631: ;;
14632:
14633: hpux9* | hpux10* | hpux11*)
14634: # Give a soname corresponding to the major version so that dld.sl refuses to
14635: # link against other versions.
14636: version_type=sunos
14637: need_lib_prefix=no
14638: need_version=no
14639: case $host_cpu in
14640: ia64*)
14641: shrext_cmds='.so'
14642: hardcode_into_libs=yes
14643: dynamic_linker="$host_os dld.so"
14644: shlibpath_var=LD_LIBRARY_PATH
14645: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14646: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14647: soname_spec='${libname}${release}${shared_ext}$major'
14648: if test "X$HPUX_IA64_MODE" = X32; then
14649: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14650: else
14651: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14652: fi
14653: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14654: ;;
14655: hppa*64*)
14656: shrext_cmds='.sl'
14657: hardcode_into_libs=yes
14658: dynamic_linker="$host_os dld.sl"
14659: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14660: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14661: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14662: soname_spec='${libname}${release}${shared_ext}$major'
14663: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14664: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14665: ;;
14666: *)
14667: shrext_cmds='.sl'
14668: dynamic_linker="$host_os dld.sl"
14669: shlibpath_var=SHLIB_PATH
14670: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14671: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14672: soname_spec='${libname}${release}${shared_ext}$major'
14673: ;;
14674: esac
14675: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14676: postinstall_cmds='chmod 555 $lib'
14677: # or fails outright, so override atomically:
14678: install_override_mode=555
14679: ;;
14680:
14681: interix[3-9]*)
14682: version_type=linux # correct to gnu/linux during the next big refactor
14683: need_lib_prefix=no
14684: need_version=no
14685: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14686: soname_spec='${libname}${release}${shared_ext}$major'
14687: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14688: shlibpath_var=LD_LIBRARY_PATH
14689: shlibpath_overrides_runpath=no
14690: hardcode_into_libs=yes
14691: ;;
14692:
14693: irix5* | irix6* | nonstopux*)
14694: case $host_os in
14695: nonstopux*) version_type=nonstopux ;;
14696: *)
14697: if test "$lt_cv_prog_gnu_ld" = yes; then
14698: version_type=linux # correct to gnu/linux during the next big refactor
14699: else
14700: version_type=irix
14701: fi ;;
14702: esac
14703: need_lib_prefix=no
14704: need_version=no
14705: soname_spec='${libname}${release}${shared_ext}$major'
14706: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14707: case $host_os in
14708: irix5* | nonstopux*)
14709: libsuff= shlibsuff=
14710: ;;
14711: *)
14712: case $LD in # libtool.m4 will add one of these switches to LD
14713: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14714: libsuff= shlibsuff= libmagic=32-bit;;
14715: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14716: libsuff=32 shlibsuff=N32 libmagic=N32;;
14717: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14718: libsuff=64 shlibsuff=64 libmagic=64-bit;;
14719: *) libsuff= shlibsuff= libmagic=never-match;;
14720: esac
14721: ;;
14722: esac
14723: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14724: shlibpath_overrides_runpath=no
14725: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14726: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14727: hardcode_into_libs=yes
14728: ;;
14729:
14730: # No shared lib support for Linux oldld, aout, or coff.
14731: linux*oldld* | linux*aout* | linux*coff*)
14732: dynamic_linker=no
14733: ;;
14734:
14735: # This must be glibc/ELF.
14736: linux* | k*bsd*-gnu | kopensolaris*-gnu)
14737: version_type=linux # correct to gnu/linux during the next big refactor
14738: need_lib_prefix=no
14739: need_version=no
14740: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14741: soname_spec='${libname}${release}${shared_ext}$major'
14742: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14743: shlibpath_var=LD_LIBRARY_PATH
14744: shlibpath_overrides_runpath=no
14745:
14746: # Some binutils ld are patched to set DT_RUNPATH
14747: if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
14748: echo $ECHO_N "(cached) $ECHO_C" >&6
14749: else
14750: lt_cv_shlibpath_overrides_runpath=no
14751: save_LDFLAGS=$LDFLAGS
14752: save_libdir=$libdir
14753: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14754: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14755: cat >conftest.$ac_ext <<_ACEOF
14756: /* confdefs.h. */
14757: _ACEOF
14758: cat confdefs.h >>conftest.$ac_ext
14759: cat >>conftest.$ac_ext <<_ACEOF
14760: /* end confdefs.h. */
14761:
14762: int
14763: main ()
14764: {
14765:
14766: ;
14767: return 0;
14768: }
14769: _ACEOF
14770: rm -f conftest.$ac_objext conftest$ac_exeext
14771: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14772: (eval $ac_link) 2>conftest.er1
14773: ac_status=$?
14774: grep -v '^ *+' conftest.er1 >conftest.err
14775: rm -f conftest.er1
14776: cat conftest.err >&5
14777: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14778: (exit $ac_status); } &&
14779: { ac_try='test -z "$ac_cxx_werror_flag"
14780: || test ! -s conftest.err'
14781: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14782: (eval $ac_try) 2>&5
14783: ac_status=$?
14784: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14785: (exit $ac_status); }; } &&
14786: { ac_try='test -s conftest$ac_exeext'
14787: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14788: (eval $ac_try) 2>&5
14789: ac_status=$?
14790: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14791: (exit $ac_status); }; }; then
14792: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
14793: lt_cv_shlibpath_overrides_runpath=yes
14794: fi
14795:
14796: else
14797: echo "$as_me: failed program was:" >&5
14798: sed 's/^/| /' conftest.$ac_ext >&5
14799:
14800: fi
14801: rm -f conftest.err conftest.$ac_objext \
14802: conftest$ac_exeext conftest.$ac_ext
14803: LDFLAGS=$save_LDFLAGS
14804: libdir=$save_libdir
14805:
14806: fi
14807:
14808: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14809:
14810: # This implies no fast_install, which is unacceptable.
14811: # Some rework will be needed to allow for fast_install
14812: # before this can be enabled.
14813: hardcode_into_libs=yes
14814:
14815: # Append ld.so.conf contents to the search path
14816: if test -f /etc/ld.so.conf; then
14817: 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' ' '`
14818: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14819: fi
14820:
14821: # We used to test for /lib/ld.so.1 and disable shared libraries on
14822: # powerpc, because MkLinux only supported shared libraries with the
14823: # GNU dynamic linker. Since this was broken with cross compilers,
14824: # most powerpc-linux boxes support dynamic linking these days and
14825: # people can always --disable-shared, the test was removed, and we
14826: # assume the GNU/Linux dynamic linker is in use.
14827: dynamic_linker='GNU/Linux ld.so'
14828: ;;
14829:
14830: netbsd*)
14831: version_type=sunos
14832: need_lib_prefix=no
14833: need_version=no
14834: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14835: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14836: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14837: dynamic_linker='NetBSD (a.out) ld.so'
14838: else
14839: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14840: soname_spec='${libname}${release}${shared_ext}$major'
14841: dynamic_linker='NetBSD ld.elf_so'
14842: fi
14843: shlibpath_var=LD_LIBRARY_PATH
14844: shlibpath_overrides_runpath=yes
14845: hardcode_into_libs=yes
14846: ;;
14847:
14848: newsos6)
14849: version_type=linux # correct to gnu/linux during the next big refactor
14850: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14851: shlibpath_var=LD_LIBRARY_PATH
14852: shlibpath_overrides_runpath=yes
14853: ;;
14854:
14855: *nto* | *qnx*)
14856: version_type=qnx
14857: need_lib_prefix=no
14858: need_version=no
14859: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14860: soname_spec='${libname}${release}${shared_ext}$major'
14861: shlibpath_var=LD_LIBRARY_PATH
14862: shlibpath_overrides_runpath=no
14863: hardcode_into_libs=yes
14864: dynamic_linker='ldqnx.so'
14865: ;;
14866:
14867: openbsd*)
14868: version_type=sunos
14869: sys_lib_dlsearch_path_spec="/usr/lib"
14870: need_lib_prefix=no
14871: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14872: case $host_os in
14873: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14874: *) need_version=no ;;
14875: esac
14876: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14877: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14878: shlibpath_var=LD_LIBRARY_PATH
14879: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14880: case $host_os in
14881: openbsd2.[89] | openbsd2.[89].*)
14882: shlibpath_overrides_runpath=no
14883: ;;
14884: *)
14885: shlibpath_overrides_runpath=yes
14886: ;;
14887: esac
14888: else
14889: shlibpath_overrides_runpath=yes
14890: fi
14891: ;;
14892:
14893: os2*)
14894: libname_spec='$name'
14895: shrext_cmds=".dll"
14896: need_lib_prefix=no
14897: library_names_spec='$libname${shared_ext} $libname.a'
14898: dynamic_linker='OS/2 ld.exe'
14899: shlibpath_var=LIBPATH
14900: ;;
14901:
14902: osf3* | osf4* | osf5*)
14903: version_type=osf
14904: need_lib_prefix=no
14905: need_version=no
14906: soname_spec='${libname}${release}${shared_ext}$major'
14907: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14908: shlibpath_var=LD_LIBRARY_PATH
14909: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14910: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14911: ;;
14912:
14913: rdos*)
14914: dynamic_linker=no
14915: ;;
14916:
14917: solaris*)
14918: version_type=linux # correct to gnu/linux during the next big refactor
14919: need_lib_prefix=no
14920: need_version=no
14921: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14922: soname_spec='${libname}${release}${shared_ext}$major'
14923: shlibpath_var=LD_LIBRARY_PATH
14924: shlibpath_overrides_runpath=yes
14925: hardcode_into_libs=yes
14926: # ldd complains unless libraries are executable
14927: postinstall_cmds='chmod +x $lib'
14928: ;;
14929:
14930: sunos4*)
14931: version_type=sunos
14932: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14933: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14934: shlibpath_var=LD_LIBRARY_PATH
14935: shlibpath_overrides_runpath=yes
14936: if test "$with_gnu_ld" = yes; then
14937: need_lib_prefix=no
14938: fi
14939: need_version=yes
14940: ;;
14941:
14942: sysv4 | sysv4.3*)
14943: version_type=linux # correct to gnu/linux during the next big refactor
14944: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14945: soname_spec='${libname}${release}${shared_ext}$major'
14946: shlibpath_var=LD_LIBRARY_PATH
14947: case $host_vendor in
14948: sni)
14949: shlibpath_overrides_runpath=no
14950: need_lib_prefix=no
14951: runpath_var=LD_RUN_PATH
14952: ;;
14953: siemens)
14954: need_lib_prefix=no
14955: ;;
14956: motorola)
14957: need_lib_prefix=no
14958: need_version=no
14959: shlibpath_overrides_runpath=no
14960: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14961: ;;
14962: esac
14963: ;;
14964:
14965: sysv4*MP*)
14966: if test -d /usr/nec ;then
14967: version_type=linux # correct to gnu/linux during the next big refactor
14968: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14969: soname_spec='$libname${shared_ext}.$major'
14970: shlibpath_var=LD_LIBRARY_PATH
14971: fi
14972: ;;
14973:
14974: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14975: version_type=freebsd-elf
14976: need_lib_prefix=no
14977: need_version=no
14978: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14979: soname_spec='${libname}${release}${shared_ext}$major'
14980: shlibpath_var=LD_LIBRARY_PATH
14981: shlibpath_overrides_runpath=yes
14982: hardcode_into_libs=yes
14983: if test "$with_gnu_ld" = yes; then
14984: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14985: else
14986: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14987: case $host_os in
14988: sco3.2v5*)
14989: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14990: ;;
14991: esac
14992: fi
14993: sys_lib_dlsearch_path_spec='/usr/lib'
14994: ;;
14995:
14996: tpf*)
14997: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14998: version_type=linux # correct to gnu/linux during the next big refactor
14999: need_lib_prefix=no
15000: need_version=no
15001: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15002: shlibpath_var=LD_LIBRARY_PATH
15003: shlibpath_overrides_runpath=no
15004: hardcode_into_libs=yes
15005: ;;
15006:
15007: uts4*)
15008: version_type=linux # correct to gnu/linux during the next big refactor
15009: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15010: soname_spec='${libname}${release}${shared_ext}$major'
15011: shlibpath_var=LD_LIBRARY_PATH
15012: ;;
15013:
15014: *)
15015: dynamic_linker=no
15016: ;;
15017: esac
15018: echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15019: echo "${ECHO_T}$dynamic_linker" >&6
15020: test "$dynamic_linker" = no && can_build_shared=no
15021:
15022: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15023: if test "$GCC" = yes; then
15024: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15025: fi
15026:
15027: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15028: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15029: fi
15030: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15031: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15032: fi
15033:
15034:
15035:
15036:
15037:
15038:
15039:
15040:
15041:
15042:
15043:
15044:
15045:
15046:
15047:
15048:
15049:
15050:
15051:
15052:
15053:
15054:
15055:
15056:
15057:
15058:
15059:
15060:
15061:
15062:
15063:
15064:
15065:
15066:
15067:
15068:
15069:
15070:
15071: echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15072: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15073: hardcode_action_CXX=
15074: if test -n "$hardcode_libdir_flag_spec_CXX" ||
15075: test -n "$runpath_var_CXX" ||
15076: test "X$hardcode_automatic_CXX" = "Xyes" ; then
15077:
15078: # We can hardcode non-existent directories.
15079: if test "$hardcode_direct_CXX" != no &&
15080: # If the only mechanism to avoid hardcoding is shlibpath_var, we
15081: # have to relink, otherwise we might link with an installed library
15082: # when we should be linking with a yet-to-be-installed one
15083: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15084: test "$hardcode_minus_L_CXX" != no; then
15085: # Linking always hardcodes the temporary library directory.
15086: hardcode_action_CXX=relink
15087: else
15088: # We can link without hardcoding, and we can hardcode nonexisting dirs.
15089: hardcode_action_CXX=immediate
15090: fi
15091: else
15092: # We cannot hardcode anything, or else we can only hardcode existing
15093: # directories.
15094: hardcode_action_CXX=unsupported
15095: fi
15096: echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15097: echo "${ECHO_T}$hardcode_action_CXX" >&6
15098:
15099: if test "$hardcode_action_CXX" = relink ||
15100: test "$inherit_rpath_CXX" = yes; then
15101: # Fast installation is not supported
15102: enable_fast_install=no
15103: elif test "$shlibpath_overrides_runpath" = yes ||
15104: test "$enable_shared" = no; then
15105: # Fast installation is not necessary
15106: enable_fast_install=needless
15107: fi
15108:
15109:
15110:
15111:
15112:
15113:
15114:
15115: fi # test -n "$compiler"
15116:
15117: CC=$lt_save_CC
15118: CFLAGS=$lt_save_CFLAGS
15119: LDCXX=$LD
15120: LD=$lt_save_LD
15121: GCC=$lt_save_GCC
15122: with_gnu_ld=$lt_save_with_gnu_ld
15123: lt_cv_path_LDCXX=$lt_cv_path_LD
15124: lt_cv_path_LD=$lt_save_path_LD
15125: lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15126: lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15127: fi # test "$_lt_caught_CXX_error" != yes
15128:
15129: ac_ext=c
15130: ac_cpp='$CPP $CPPFLAGS'
15131: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15132: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15133: ac_compiler_gnu=$ac_cv_c_compiler_gnu
15134:
15135:
15136:
15137:
15138:
15139:
15140:
15141:
15142:
15143:
15144:
15145:
15146:
15147:
15148:
15149: ac_config_commands="$ac_config_commands libtool"
15150:
15151:
15152:
15153:
15154: # Only expand once:
15155:
15156:
15157: echo "$as_me:$LINENO: checking which extension is used for runtime loadable modules" >&5
15158: echo $ECHO_N "checking which extension is used for runtime loadable modules... $ECHO_C" >&6
15159: if test "${libltdl_cv_shlibext+set}" = set; then
15160: echo $ECHO_N "(cached) $ECHO_C" >&6
15161: else
15162:
15163: module=yes
15164: eval libltdl_cv_shlibext=$shrext_cmds
15165: module=no
15166: eval libltdl_cv_shrext=$shrext_cmds
15167:
15168: fi
15169: echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
15170: echo "${ECHO_T}$libltdl_cv_shlibext" >&6
15171: if test -n "$libltdl_cv_shlibext"; then
15172:
15173: cat >>confdefs.h <<_ACEOF
15174: #define LT_MODULE_EXT "$libltdl_cv_shlibext"
15175: _ACEOF
15176:
15177: fi
15178: if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
15179:
15180: cat >>confdefs.h <<_ACEOF
15181: #define LT_SHARED_EXT "$libltdl_cv_shrext"
15182: _ACEOF
15183:
15184: fi
15185:
15186: echo "$as_me:$LINENO: checking which variable specifies run-time module search path" >&5
15187: echo $ECHO_N "checking which variable specifies run-time module search path... $ECHO_C" >&6
15188: if test "${lt_cv_module_path_var+set}" = set; then
15189: echo $ECHO_N "(cached) $ECHO_C" >&6
15190: else
15191: lt_cv_module_path_var="$shlibpath_var"
15192: fi
15193: echo "$as_me:$LINENO: result: $lt_cv_module_path_var" >&5
15194: echo "${ECHO_T}$lt_cv_module_path_var" >&6
15195: if test -n "$lt_cv_module_path_var"; then
15196:
15197: cat >>confdefs.h <<_ACEOF
15198: #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
15199: _ACEOF
15200:
15201: fi
15202:
15203: echo "$as_me:$LINENO: checking for the default library search path" >&5
15204: echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
15205: if test "${lt_cv_sys_dlsearch_path+set}" = set; then
15206: echo $ECHO_N "(cached) $ECHO_C" >&6
15207: else
15208: lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
15209: fi
15210: echo "$as_me:$LINENO: result: $lt_cv_sys_dlsearch_path" >&5
15211: echo "${ECHO_T}$lt_cv_sys_dlsearch_path" >&6
15212: if test -n "$lt_cv_sys_dlsearch_path"; then
15213: sys_dlsearch_path=
15214: for dir in $lt_cv_sys_dlsearch_path; do
15215: if test -z "$sys_dlsearch_path"; then
15216: sys_dlsearch_path="$dir"
15217: else
15218: sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
15219: fi
15220: done
15221:
15222: cat >>confdefs.h <<_ACEOF
15223: #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
15224: _ACEOF
15225:
15226: fi
15227:
15228:
15229: LT_DLLOADERS=
15230:
15231:
15232: ac_ext=c
15233: ac_cpp='$CPP $CPPFLAGS'
15234: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15235: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15236: ac_compiler_gnu=$ac_cv_c_compiler_gnu
15237:
15238:
15239: LIBADD_DLOPEN=
15240: echo "$as_me:$LINENO: checking for library containing dlopen" >&5
15241: echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
15242: if test "${ac_cv_search_dlopen+set}" = set; then
15243: echo $ECHO_N "(cached) $ECHO_C" >&6
15244: else
15245: ac_func_search_save_LIBS=$LIBS
15246: ac_cv_search_dlopen=no
15247: cat >conftest.$ac_ext <<_ACEOF
15248: /* confdefs.h. */
15249: _ACEOF
15250: cat confdefs.h >>conftest.$ac_ext
15251: cat >>conftest.$ac_ext <<_ACEOF
15252: /* end confdefs.h. */
15253:
15254: /* Override any gcc2 internal prototype to avoid an error. */
15255: #ifdef __cplusplus
15256: extern "C"
15257: #endif
15258: /* We use char because int might match the return type of a gcc2
15259: builtin and then its argument prototype would still apply. */
15260: char dlopen ();
15261: int
15262: main ()
15263: {
15264: dlopen ();
15265: ;
15266: return 0;
15267: }
15268: _ACEOF
15269: rm -f conftest.$ac_objext conftest$ac_exeext
15270: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15271: (eval $ac_link) 2>conftest.er1
15272: ac_status=$?
15273: grep -v '^ *+' conftest.er1 >conftest.err
15274: rm -f conftest.er1
15275: cat conftest.err >&5
15276: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15277: (exit $ac_status); } &&
15278: { ac_try='test -z "$ac_c_werror_flag"
15279: || test ! -s conftest.err'
15280: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15281: (eval $ac_try) 2>&5
15282: ac_status=$?
15283: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15284: (exit $ac_status); }; } &&
15285: { ac_try='test -s conftest$ac_exeext'
15286: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15287: (eval $ac_try) 2>&5
15288: ac_status=$?
15289: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15290: (exit $ac_status); }; }; then
15291: ac_cv_search_dlopen="none required"
15292: else
15293: echo "$as_me: failed program was:" >&5
15294: sed 's/^/| /' conftest.$ac_ext >&5
15295:
15296: fi
15297: rm -f conftest.err conftest.$ac_objext \
15298: conftest$ac_exeext conftest.$ac_ext
15299: if test "$ac_cv_search_dlopen" = no; then
15300: for ac_lib in dl; do
15301: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15302: cat >conftest.$ac_ext <<_ACEOF
15303: /* confdefs.h. */
15304: _ACEOF
15305: cat confdefs.h >>conftest.$ac_ext
15306: cat >>conftest.$ac_ext <<_ACEOF
15307: /* end confdefs.h. */
15308:
15309: /* Override any gcc2 internal prototype to avoid an error. */
15310: #ifdef __cplusplus
15311: extern "C"
15312: #endif
15313: /* We use char because int might match the return type of a gcc2
15314: builtin and then its argument prototype would still apply. */
15315: char dlopen ();
15316: int
15317: main ()
15318: {
15319: dlopen ();
15320: ;
15321: return 0;
15322: }
15323: _ACEOF
15324: rm -f conftest.$ac_objext conftest$ac_exeext
15325: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15326: (eval $ac_link) 2>conftest.er1
15327: ac_status=$?
15328: grep -v '^ *+' conftest.er1 >conftest.err
15329: rm -f conftest.er1
15330: cat conftest.err >&5
15331: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15332: (exit $ac_status); } &&
15333: { ac_try='test -z "$ac_c_werror_flag"
15334: || test ! -s conftest.err'
15335: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15336: (eval $ac_try) 2>&5
15337: ac_status=$?
15338: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15339: (exit $ac_status); }; } &&
15340: { ac_try='test -s conftest$ac_exeext'
15341: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15342: (eval $ac_try) 2>&5
15343: ac_status=$?
15344: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15345: (exit $ac_status); }; }; then
15346: ac_cv_search_dlopen="-l$ac_lib"
15347: break
15348: else
15349: echo "$as_me: failed program was:" >&5
15350: sed 's/^/| /' conftest.$ac_ext >&5
15351:
15352: fi
15353: rm -f conftest.err conftest.$ac_objext \
15354: conftest$ac_exeext conftest.$ac_ext
15355: done
15356: fi
15357: LIBS=$ac_func_search_save_LIBS
15358: fi
15359: echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
15360: echo "${ECHO_T}$ac_cv_search_dlopen" >&6
15361: if test "$ac_cv_search_dlopen" != no; then
15362: test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
15363:
15364: cat >>confdefs.h <<\_ACEOF
15365: #define HAVE_LIBDL 1
15366: _ACEOF
15367:
15368: if test "$ac_cv_search_dlopen" != "none required" ; then
15369: LIBADD_DLOPEN="-ldl"
15370: fi
15371: libltdl_cv_lib_dl_dlopen="yes"
15372: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
15373: else
15374: cat >conftest.$ac_ext <<_ACEOF
15375: /* confdefs.h. */
15376: _ACEOF
15377: cat confdefs.h >>conftest.$ac_ext
15378: cat >>conftest.$ac_ext <<_ACEOF
15379: /* end confdefs.h. */
15380: #if HAVE_DLFCN_H
15381: # include <dlfcn.h>
15382: #endif
15383:
15384: int
15385: main ()
15386: {
15387: dlopen(0, 0);
15388: ;
15389: return 0;
15390: }
15391: _ACEOF
15392: rm -f conftest.$ac_objext conftest$ac_exeext
15393: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15394: (eval $ac_link) 2>conftest.er1
15395: ac_status=$?
15396: grep -v '^ *+' conftest.er1 >conftest.err
15397: rm -f conftest.er1
15398: cat conftest.err >&5
15399: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15400: (exit $ac_status); } &&
15401: { ac_try='test -z "$ac_c_werror_flag"
15402: || test ! -s conftest.err'
15403: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15404: (eval $ac_try) 2>&5
15405: ac_status=$?
15406: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15407: (exit $ac_status); }; } &&
15408: { ac_try='test -s conftest$ac_exeext'
15409: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15410: (eval $ac_try) 2>&5
15411: ac_status=$?
15412: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413: (exit $ac_status); }; }; then
15414:
15415: cat >>confdefs.h <<\_ACEOF
15416: #define HAVE_LIBDL 1
15417: _ACEOF
15418:
15419: libltdl_cv_func_dlopen="yes"
15420: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
15421: else
15422: echo "$as_me: failed program was:" >&5
15423: sed 's/^/| /' conftest.$ac_ext >&5
15424:
15425: echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
15426: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
15427: if test "${ac_cv_lib_svld_dlopen+set}" = set; then
15428: echo $ECHO_N "(cached) $ECHO_C" >&6
15429: else
15430: ac_check_lib_save_LIBS=$LIBS
15431: LIBS="-lsvld $LIBS"
15432: cat >conftest.$ac_ext <<_ACEOF
15433: /* confdefs.h. */
15434: _ACEOF
15435: cat confdefs.h >>conftest.$ac_ext
15436: cat >>conftest.$ac_ext <<_ACEOF
15437: /* end confdefs.h. */
15438:
15439: /* Override any gcc2 internal prototype to avoid an error. */
15440: #ifdef __cplusplus
15441: extern "C"
15442: #endif
15443: /* We use char because int might match the return type of a gcc2
15444: builtin and then its argument prototype would still apply. */
15445: char dlopen ();
15446: int
15447: main ()
15448: {
15449: dlopen ();
15450: ;
15451: return 0;
15452: }
15453: _ACEOF
15454: rm -f conftest.$ac_objext conftest$ac_exeext
15455: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15456: (eval $ac_link) 2>conftest.er1
15457: ac_status=$?
15458: grep -v '^ *+' conftest.er1 >conftest.err
15459: rm -f conftest.er1
15460: cat conftest.err >&5
15461: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15462: (exit $ac_status); } &&
15463: { ac_try='test -z "$ac_c_werror_flag"
15464: || test ! -s conftest.err'
15465: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15466: (eval $ac_try) 2>&5
15467: ac_status=$?
15468: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15469: (exit $ac_status); }; } &&
15470: { ac_try='test -s conftest$ac_exeext'
15471: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15472: (eval $ac_try) 2>&5
15473: ac_status=$?
15474: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15475: (exit $ac_status); }; }; then
15476: ac_cv_lib_svld_dlopen=yes
15477: else
15478: echo "$as_me: failed program was:" >&5
15479: sed 's/^/| /' conftest.$ac_ext >&5
15480:
15481: ac_cv_lib_svld_dlopen=no
15482: fi
15483: rm -f conftest.err conftest.$ac_objext \
15484: conftest$ac_exeext conftest.$ac_ext
15485: LIBS=$ac_check_lib_save_LIBS
15486: fi
15487: echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
15488: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
15489: if test $ac_cv_lib_svld_dlopen = yes; then
15490:
15491: cat >>confdefs.h <<\_ACEOF
15492: #define HAVE_LIBDL 1
15493: _ACEOF
15494:
15495: LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
15496: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
15497: fi
15498:
15499: fi
15500: rm -f conftest.err conftest.$ac_objext \
15501: conftest$ac_exeext conftest.$ac_ext
15502: fi
15503:
15504: if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
15505: then
15506: lt_save_LIBS="$LIBS"
15507: LIBS="$LIBS $LIBADD_DLOPEN"
15508:
15509: for ac_func in dlerror
15510: do
15511: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15512: echo "$as_me:$LINENO: checking for $ac_func" >&5
15513: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15514: if eval "test \"\${$as_ac_var+set}\" = set"; then
15515: echo $ECHO_N "(cached) $ECHO_C" >&6
15516: else
15517: cat >conftest.$ac_ext <<_ACEOF
15518: /* confdefs.h. */
15519: _ACEOF
15520: cat confdefs.h >>conftest.$ac_ext
15521: cat >>conftest.$ac_ext <<_ACEOF
15522: /* end confdefs.h. */
15523: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15524: For example, HP-UX 11i <limits.h> declares gettimeofday. */
15525: #define $ac_func innocuous_$ac_func
15526:
15527: /* System header to define __stub macros and hopefully few prototypes,
15528: which can conflict with char $ac_func (); below.
15529: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15530: <limits.h> exists even on freestanding compilers. */
15531:
15532: #ifdef __STDC__
15533: # include <limits.h>
15534: #else
15535: # include <assert.h>
15536: #endif
15537:
15538: #undef $ac_func
15539:
15540: /* Override any gcc2 internal prototype to avoid an error. */
15541: #ifdef __cplusplus
15542: extern "C"
15543: {
15544: #endif
15545: /* We use char because int might match the return type of a gcc2
15546: builtin and then its argument prototype would still apply. */
15547: char $ac_func ();
15548: /* The GNU C library defines this for functions which it implements
15549: to always fail with ENOSYS. Some functions are actually named
15550: something starting with __ and the normal name is an alias. */
15551: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15552: choke me
15553: #else
15554: char (*f) () = $ac_func;
15555: #endif
15556: #ifdef __cplusplus
15557: }
15558: #endif
15559:
15560: int
15561: main ()
15562: {
15563: return f != $ac_func;
15564: ;
15565: return 0;
15566: }
15567: _ACEOF
15568: rm -f conftest.$ac_objext conftest$ac_exeext
15569: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15570: (eval $ac_link) 2>conftest.er1
15571: ac_status=$?
15572: grep -v '^ *+' conftest.er1 >conftest.err
15573: rm -f conftest.er1
15574: cat conftest.err >&5
15575: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15576: (exit $ac_status); } &&
15577: { ac_try='test -z "$ac_c_werror_flag"
15578: || test ! -s conftest.err'
15579: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15580: (eval $ac_try) 2>&5
15581: ac_status=$?
15582: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583: (exit $ac_status); }; } &&
15584: { ac_try='test -s conftest$ac_exeext'
15585: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15586: (eval $ac_try) 2>&5
15587: ac_status=$?
15588: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589: (exit $ac_status); }; }; then
15590: eval "$as_ac_var=yes"
15591: else
15592: echo "$as_me: failed program was:" >&5
15593: sed 's/^/| /' conftest.$ac_ext >&5
15594:
15595: eval "$as_ac_var=no"
15596: fi
15597: rm -f conftest.err conftest.$ac_objext \
15598: conftest$ac_exeext conftest.$ac_ext
15599: fi
15600: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15601: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15602: if test `eval echo '${'$as_ac_var'}'` = yes; then
15603: cat >>confdefs.h <<_ACEOF
15604: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15605: _ACEOF
15606:
15607: fi
15608: done
15609:
15610: LIBS="$lt_save_LIBS"
15611: fi
15612:
15613:
15614: LIBADD_SHL_LOAD=
15615: echo "$as_me:$LINENO: checking for shl_load" >&5
15616: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
15617: if test "${ac_cv_func_shl_load+set}" = set; then
15618: echo $ECHO_N "(cached) $ECHO_C" >&6
15619: else
15620: cat >conftest.$ac_ext <<_ACEOF
15621: /* confdefs.h. */
15622: _ACEOF
15623: cat confdefs.h >>conftest.$ac_ext
15624: cat >>conftest.$ac_ext <<_ACEOF
15625: /* end confdefs.h. */
15626: /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
15627: For example, HP-UX 11i <limits.h> declares gettimeofday. */
15628: #define shl_load innocuous_shl_load
15629:
15630: /* System header to define __stub macros and hopefully few prototypes,
15631: which can conflict with char shl_load (); below.
15632: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15633: <limits.h> exists even on freestanding compilers. */
15634:
15635: #ifdef __STDC__
15636: # include <limits.h>
15637: #else
15638: # include <assert.h>
15639: #endif
15640:
15641: #undef shl_load
15642:
15643: /* Override any gcc2 internal prototype to avoid an error. */
15644: #ifdef __cplusplus
15645: extern "C"
15646: {
15647: #endif
15648: /* We use char because int might match the return type of a gcc2
15649: builtin and then its argument prototype would still apply. */
15650: char shl_load ();
15651: /* The GNU C library defines this for functions which it implements
15652: to always fail with ENOSYS. Some functions are actually named
15653: something starting with __ and the normal name is an alias. */
15654: #if defined (__stub_shl_load) || defined (__stub___shl_load)
15655: choke me
15656: #else
15657: char (*f) () = shl_load;
15658: #endif
15659: #ifdef __cplusplus
15660: }
15661: #endif
15662:
15663: int
15664: main ()
15665: {
15666: return f != shl_load;
15667: ;
15668: return 0;
15669: }
15670: _ACEOF
15671: rm -f conftest.$ac_objext conftest$ac_exeext
15672: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15673: (eval $ac_link) 2>conftest.er1
15674: ac_status=$?
15675: grep -v '^ *+' conftest.er1 >conftest.err
15676: rm -f conftest.er1
15677: cat conftest.err >&5
15678: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15679: (exit $ac_status); } &&
15680: { ac_try='test -z "$ac_c_werror_flag"
15681: || test ! -s conftest.err'
15682: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15683: (eval $ac_try) 2>&5
15684: ac_status=$?
15685: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15686: (exit $ac_status); }; } &&
15687: { ac_try='test -s conftest$ac_exeext'
15688: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15689: (eval $ac_try) 2>&5
15690: ac_status=$?
15691: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15692: (exit $ac_status); }; }; then
15693: ac_cv_func_shl_load=yes
15694: else
15695: echo "$as_me: failed program was:" >&5
15696: sed 's/^/| /' conftest.$ac_ext >&5
15697:
15698: ac_cv_func_shl_load=no
15699: fi
15700: rm -f conftest.err conftest.$ac_objext \
15701: conftest$ac_exeext conftest.$ac_ext
15702: fi
15703: echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
15704: echo "${ECHO_T}$ac_cv_func_shl_load" >&6
15705: if test $ac_cv_func_shl_load = yes; then
15706:
15707: cat >>confdefs.h <<\_ACEOF
15708: #define HAVE_SHL_LOAD 1
15709: _ACEOF
15710:
15711: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
15712: else
15713: echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
15714: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
15715: if test "${ac_cv_lib_dld_shl_load+set}" = set; then
15716: echo $ECHO_N "(cached) $ECHO_C" >&6
15717: else
15718: ac_check_lib_save_LIBS=$LIBS
15719: LIBS="-ldld $LIBS"
15720: cat >conftest.$ac_ext <<_ACEOF
15721: /* confdefs.h. */
15722: _ACEOF
15723: cat confdefs.h >>conftest.$ac_ext
15724: cat >>conftest.$ac_ext <<_ACEOF
15725: /* end confdefs.h. */
15726:
15727: /* Override any gcc2 internal prototype to avoid an error. */
15728: #ifdef __cplusplus
15729: extern "C"
15730: #endif
15731: /* We use char because int might match the return type of a gcc2
15732: builtin and then its argument prototype would still apply. */
15733: char shl_load ();
15734: int
15735: main ()
15736: {
15737: shl_load ();
15738: ;
15739: return 0;
15740: }
15741: _ACEOF
15742: rm -f conftest.$ac_objext conftest$ac_exeext
15743: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15744: (eval $ac_link) 2>conftest.er1
15745: ac_status=$?
15746: grep -v '^ *+' conftest.er1 >conftest.err
15747: rm -f conftest.er1
15748: cat conftest.err >&5
15749: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15750: (exit $ac_status); } &&
15751: { ac_try='test -z "$ac_c_werror_flag"
15752: || test ! -s conftest.err'
15753: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15754: (eval $ac_try) 2>&5
15755: ac_status=$?
15756: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15757: (exit $ac_status); }; } &&
15758: { ac_try='test -s conftest$ac_exeext'
15759: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15760: (eval $ac_try) 2>&5
15761: ac_status=$?
15762: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15763: (exit $ac_status); }; }; then
15764: ac_cv_lib_dld_shl_load=yes
15765: else
15766: echo "$as_me: failed program was:" >&5
15767: sed 's/^/| /' conftest.$ac_ext >&5
15768:
15769: ac_cv_lib_dld_shl_load=no
15770: fi
15771: rm -f conftest.err conftest.$ac_objext \
15772: conftest$ac_exeext conftest.$ac_ext
15773: LIBS=$ac_check_lib_save_LIBS
15774: fi
15775: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
15776: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
15777: if test $ac_cv_lib_dld_shl_load = yes; then
15778:
15779: cat >>confdefs.h <<\_ACEOF
15780: #define HAVE_SHL_LOAD 1
15781: _ACEOF
15782:
15783: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
15784: LIBADD_SHL_LOAD="-ldld"
15785: fi
15786:
15787: fi
15788:
15789:
15790:
15791: case $host_os in
15792: darwin[1567].*)
15793: # We only want this for pre-Mac OS X 10.4.
15794: echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
15795: echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
15796: if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
15797: echo $ECHO_N "(cached) $ECHO_C" >&6
15798: else
15799: cat >conftest.$ac_ext <<_ACEOF
15800: /* confdefs.h. */
15801: _ACEOF
15802: cat confdefs.h >>conftest.$ac_ext
15803: cat >>conftest.$ac_ext <<_ACEOF
15804: /* end confdefs.h. */
15805: /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
15806: For example, HP-UX 11i <limits.h> declares gettimeofday. */
15807: #define _dyld_func_lookup innocuous__dyld_func_lookup
15808:
15809: /* System header to define __stub macros and hopefully few prototypes,
15810: which can conflict with char _dyld_func_lookup (); below.
15811: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15812: <limits.h> exists even on freestanding compilers. */
15813:
15814: #ifdef __STDC__
15815: # include <limits.h>
15816: #else
15817: # include <assert.h>
15818: #endif
15819:
15820: #undef _dyld_func_lookup
15821:
15822: /* Override any gcc2 internal prototype to avoid an error. */
15823: #ifdef __cplusplus
15824: extern "C"
15825: {
15826: #endif
15827: /* We use char because int might match the return type of a gcc2
15828: builtin and then its argument prototype would still apply. */
15829: char _dyld_func_lookup ();
15830: /* The GNU C library defines this for functions which it implements
15831: to always fail with ENOSYS. Some functions are actually named
15832: something starting with __ and the normal name is an alias. */
15833: #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
15834: choke me
15835: #else
15836: char (*f) () = _dyld_func_lookup;
15837: #endif
15838: #ifdef __cplusplus
15839: }
15840: #endif
15841:
15842: int
15843: main ()
15844: {
15845: return f != _dyld_func_lookup;
15846: ;
15847: return 0;
15848: }
15849: _ACEOF
15850: rm -f conftest.$ac_objext conftest$ac_exeext
15851: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15852: (eval $ac_link) 2>conftest.er1
15853: ac_status=$?
15854: grep -v '^ *+' conftest.er1 >conftest.err
15855: rm -f conftest.er1
15856: cat conftest.err >&5
15857: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15858: (exit $ac_status); } &&
15859: { ac_try='test -z "$ac_c_werror_flag"
15860: || test ! -s conftest.err'
15861: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15862: (eval $ac_try) 2>&5
15863: ac_status=$?
15864: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15865: (exit $ac_status); }; } &&
15866: { ac_try='test -s conftest$ac_exeext'
15867: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15868: (eval $ac_try) 2>&5
15869: ac_status=$?
15870: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15871: (exit $ac_status); }; }; then
15872: ac_cv_func__dyld_func_lookup=yes
15873: else
15874: echo "$as_me: failed program was:" >&5
15875: sed 's/^/| /' conftest.$ac_ext >&5
15876:
15877: ac_cv_func__dyld_func_lookup=no
15878: fi
15879: rm -f conftest.err conftest.$ac_objext \
15880: conftest$ac_exeext conftest.$ac_ext
15881: fi
15882: echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
15883: echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
15884: if test $ac_cv_func__dyld_func_lookup = yes; then
15885:
15886: cat >>confdefs.h <<\_ACEOF
15887: #define HAVE_DYLD 1
15888: _ACEOF
15889:
15890: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
15891: fi
15892:
15893: ;;
15894: beos*)
15895: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
15896: ;;
15897: cygwin* | mingw* | os2* | pw32*)
15898: echo "$as_me:$LINENO: checking whether cygwin_conv_path is declared" >&5
15899: echo $ECHO_N "checking whether cygwin_conv_path is declared... $ECHO_C" >&6
15900: if test "${ac_cv_have_decl_cygwin_conv_path+set}" = set; then
15901: echo $ECHO_N "(cached) $ECHO_C" >&6
15902: else
15903: cat >conftest.$ac_ext <<_ACEOF
15904: /* confdefs.h. */
15905: _ACEOF
15906: cat confdefs.h >>conftest.$ac_ext
15907: cat >>conftest.$ac_ext <<_ACEOF
15908: /* end confdefs.h. */
15909: #include <sys/cygwin.h>
15910:
15911: int
15912: main ()
15913: {
15914: #ifndef cygwin_conv_path
15915: char *p = (char *) cygwin_conv_path;
15916: #endif
15917:
15918: ;
15919: return 0;
15920: }
15921: _ACEOF
15922: rm -f conftest.$ac_objext
15923: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15924: (eval $ac_compile) 2>conftest.er1
15925: ac_status=$?
15926: grep -v '^ *+' conftest.er1 >conftest.err
15927: rm -f conftest.er1
15928: cat conftest.err >&5
15929: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15930: (exit $ac_status); } &&
15931: { ac_try='test -z "$ac_c_werror_flag"
15932: || test ! -s conftest.err'
15933: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15934: (eval $ac_try) 2>&5
15935: ac_status=$?
15936: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15937: (exit $ac_status); }; } &&
15938: { ac_try='test -s conftest.$ac_objext'
15939: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15940: (eval $ac_try) 2>&5
15941: ac_status=$?
15942: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15943: (exit $ac_status); }; }; then
15944: ac_cv_have_decl_cygwin_conv_path=yes
15945: else
15946: echo "$as_me: failed program was:" >&5
15947: sed 's/^/| /' conftest.$ac_ext >&5
15948:
15949: ac_cv_have_decl_cygwin_conv_path=no
15950: fi
15951: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15952: fi
15953: echo "$as_me:$LINENO: result: $ac_cv_have_decl_cygwin_conv_path" >&5
15954: echo "${ECHO_T}$ac_cv_have_decl_cygwin_conv_path" >&6
15955: if test $ac_cv_have_decl_cygwin_conv_path = yes; then
15956:
15957: cat >>confdefs.h <<_ACEOF
15958: #define HAVE_DECL_CYGWIN_CONV_PATH 1
15959: _ACEOF
15960:
15961:
15962: else
15963: cat >>confdefs.h <<_ACEOF
15964: #define HAVE_DECL_CYGWIN_CONV_PATH 0
15965: _ACEOF
15966:
15967:
15968: fi
15969:
15970:
15971: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
15972: ;;
15973: esac
15974:
15975: echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
15976: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
15977: if test "${ac_cv_lib_dld_dld_link+set}" = set; then
15978: echo $ECHO_N "(cached) $ECHO_C" >&6
15979: else
15980: ac_check_lib_save_LIBS=$LIBS
15981: LIBS="-ldld $LIBS"
15982: cat >conftest.$ac_ext <<_ACEOF
15983: /* confdefs.h. */
15984: _ACEOF
15985: cat confdefs.h >>conftest.$ac_ext
15986: cat >>conftest.$ac_ext <<_ACEOF
15987: /* end confdefs.h. */
15988:
15989: /* Override any gcc2 internal prototype to avoid an error. */
15990: #ifdef __cplusplus
15991: extern "C"
15992: #endif
15993: /* We use char because int might match the return type of a gcc2
15994: builtin and then its argument prototype would still apply. */
15995: char dld_link ();
15996: int
15997: main ()
15998: {
15999: dld_link ();
16000: ;
16001: return 0;
16002: }
16003: _ACEOF
16004: rm -f conftest.$ac_objext conftest$ac_exeext
16005: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16006: (eval $ac_link) 2>conftest.er1
16007: ac_status=$?
16008: grep -v '^ *+' conftest.er1 >conftest.err
16009: rm -f conftest.er1
16010: cat conftest.err >&5
16011: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16012: (exit $ac_status); } &&
16013: { ac_try='test -z "$ac_c_werror_flag"
16014: || test ! -s conftest.err'
16015: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16016: (eval $ac_try) 2>&5
16017: ac_status=$?
16018: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16019: (exit $ac_status); }; } &&
16020: { ac_try='test -s conftest$ac_exeext'
16021: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16022: (eval $ac_try) 2>&5
16023: ac_status=$?
16024: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16025: (exit $ac_status); }; }; then
16026: ac_cv_lib_dld_dld_link=yes
16027: else
16028: echo "$as_me: failed program was:" >&5
16029: sed 's/^/| /' conftest.$ac_ext >&5
16030:
16031: ac_cv_lib_dld_dld_link=no
16032: fi
16033: rm -f conftest.err conftest.$ac_objext \
16034: conftest$ac_exeext conftest.$ac_ext
16035: LIBS=$ac_check_lib_save_LIBS
16036: fi
16037: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16038: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
16039: if test $ac_cv_lib_dld_dld_link = yes; then
16040:
16041: cat >>confdefs.h <<\_ACEOF
16042: #define HAVE_DLD 1
16043: _ACEOF
16044:
16045: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
16046: fi
16047:
16048:
16049:
16050:
16051: LT_DLPREOPEN=
16052: if test -n "$LT_DLLOADERS"
16053: then
16054: for lt_loader in $LT_DLLOADERS; do
16055: LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
16056: done
16057:
16058: cat >>confdefs.h <<\_ACEOF
16059: #define HAVE_LIBDLLOADER 1
16060: _ACEOF
16061:
16062: fi
16063:
16064:
16065: LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
16066:
16067:
16068: ac_ext=c
16069: ac_cpp='$CPP $CPPFLAGS'
16070: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16071: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16072: ac_compiler_gnu=$ac_cv_c_compiler_gnu
16073:
16074:
16075: echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
16076: echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
16077: if test "${lt_cv_sys_symbol_underscore+set}" = set; then
16078: echo $ECHO_N "(cached) $ECHO_C" >&6
16079: else
16080: lt_cv_sys_symbol_underscore=no
16081: cat > conftest.$ac_ext <<_LT_EOF
16082: void nm_test_func(){}
16083: int main(){nm_test_func;return 0;}
16084: _LT_EOF
16085: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16086: (eval $ac_compile) 2>&5
16087: ac_status=$?
16088: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16089: (exit $ac_status); }; then
16090: # Now try to grab the symbols.
16091: ac_nlist=conftest.nm
16092: if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
16093: (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
16094: ac_status=$?
16095: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16096: (exit $ac_status); } && test -s "$ac_nlist"; then
16097: # See whether the symbols have a leading underscore.
16098: if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
16099: lt_cv_sys_symbol_underscore=yes
16100: else
16101: if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
16102: :
16103: else
16104: echo "configure: cannot find nm_test_func in $ac_nlist" >&5
16105: fi
16106: fi
16107: else
16108: echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
16109: fi
16110: else
16111: echo "configure: failed program was:" >&5
16112: cat conftest.c >&5
16113: fi
16114: rm -rf conftest*
16115:
16116: fi
16117: echo "$as_me:$LINENO: result: $lt_cv_sys_symbol_underscore" >&5
16118: echo "${ECHO_T}$lt_cv_sys_symbol_underscore" >&6
16119: sys_symbol_underscore=$lt_cv_sys_symbol_underscore
16120:
16121:
16122: if test x"$lt_cv_sys_symbol_underscore" = xyes; then
16123: if test x"$libltdl_cv_func_dlopen" = xyes ||
16124: test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
16125: echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
16126: echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
16127: if test "${libltdl_cv_need_uscore+set}" = set; then
16128: echo $ECHO_N "(cached) $ECHO_C" >&6
16129: else
16130: libltdl_cv_need_uscore=unknown
16131: save_LIBS="$LIBS"
16132: LIBS="$LIBS $LIBADD_DLOPEN"
16133: if test "$cross_compiling" = yes; then :
16134: libltdl_cv_need_uscore=cross
16135: else
16136: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16137: lt_status=$lt_dlunknown
16138: cat > conftest.$ac_ext <<_LT_EOF
16139: #line $LINENO "configure"
16140: #include "confdefs.h"
16141:
16142: #if HAVE_DLFCN_H
16143: #include <dlfcn.h>
16144: #endif
16145:
16146: #include <stdio.h>
16147:
16148: #ifdef RTLD_GLOBAL
16149: # define LT_DLGLOBAL RTLD_GLOBAL
16150: #else
16151: # ifdef DL_GLOBAL
16152: # define LT_DLGLOBAL DL_GLOBAL
16153: # else
16154: # define LT_DLGLOBAL 0
16155: # endif
16156: #endif
16157:
16158: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16159: find out it does not work in some platform. */
16160: #ifndef LT_DLLAZY_OR_NOW
16161: # ifdef RTLD_LAZY
16162: # define LT_DLLAZY_OR_NOW RTLD_LAZY
16163: # else
16164: # ifdef DL_LAZY
16165: # define LT_DLLAZY_OR_NOW DL_LAZY
16166: # else
16167: # ifdef RTLD_NOW
16168: # define LT_DLLAZY_OR_NOW RTLD_NOW
16169: # else
16170: # ifdef DL_NOW
16171: # define LT_DLLAZY_OR_NOW DL_NOW
16172: # else
16173: # define LT_DLLAZY_OR_NOW 0
16174: # endif
16175: # endif
16176: # endif
16177: # endif
16178: #endif
16179:
16180: /* When -fvisbility=hidden is used, assume the code has been annotated
16181: correspondingly for the symbols needed. */
16182: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16183: int fnord () __attribute__((visibility("default")));
16184: #endif
16185:
16186: int fnord () { return 42; }
16187: int main ()
16188: {
16189: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16190: int status = $lt_dlunknown;
16191:
16192: if (self)
16193: {
16194: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16195: else
16196: {
16197: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16198: else puts (dlerror ());
16199: }
16200: /* dlclose (self); */
16201: }
16202: else
16203: puts (dlerror ());
16204:
16205: return status;
16206: }
16207: _LT_EOF
16208: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16209: (eval $ac_link) 2>&5
16210: ac_status=$?
16211: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16212: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16213: (./conftest; exit; ) >&5 2>/dev/null
16214: lt_status=$?
16215: case x$lt_status in
16216: x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
16217: x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
16218: x$lt_dlunknown|x*) ;;
16219: esac
16220: else :
16221: # compilation failed
16222:
16223: fi
16224: fi
16225: rm -fr conftest*
16226:
16227: LIBS="$save_LIBS"
16228:
16229: fi
16230: echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
16231: echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
16232: fi
16233: fi
16234:
16235: if test x"$libltdl_cv_need_uscore" = xyes; then
16236:
16237: cat >>confdefs.h <<\_ACEOF
16238: #define NEED_USCORE 1
16239: _ACEOF
16240:
16241: fi
16242:
16243: echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
16244: echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
16245: if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then
16246: echo $ECHO_N "(cached) $ECHO_C" >&6
16247: else
16248: # PORTME does your system automatically load deplibs for dlopen?
16249: # or its logical equivalent (e.g. shl_load for HP-UX < 11)
16250: # For now, we just catch OSes we know something about -- in the
16251: # future, we'll try test this programmatically.
16252: lt_cv_sys_dlopen_deplibs=unknown
16253: case $host_os in
16254: aix3*|aix4.1.*|aix4.2.*)
16255: # Unknown whether this is true for these versions of AIX, but
16256: # we want this `case' here to explicitly catch those versions.
16257: lt_cv_sys_dlopen_deplibs=unknown
16258: ;;
16259: aix[4-9]*)
16260: lt_cv_sys_dlopen_deplibs=yes
16261: ;;
16262: amigaos*)
16263: case $host_cpu in
16264: powerpc)
16265: lt_cv_sys_dlopen_deplibs=no
16266: ;;
16267: esac
16268: ;;
16269: darwin*)
16270: # Assuming the user has installed a libdl from somewhere, this is true
16271: # If you are looking for one http://www.opendarwin.org/projects/dlcompat
16272: lt_cv_sys_dlopen_deplibs=yes
16273: ;;
16274: freebsd* | dragonfly*)
16275: lt_cv_sys_dlopen_deplibs=yes
16276: ;;
16277: gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
16278: # GNU and its variants, using gnu ld.so (Glibc)
16279: lt_cv_sys_dlopen_deplibs=yes
16280: ;;
16281: hpux10*|hpux11*)
16282: lt_cv_sys_dlopen_deplibs=yes
16283: ;;
16284: interix*)
16285: lt_cv_sys_dlopen_deplibs=yes
16286: ;;
16287: irix[12345]*|irix6.[01]*)
16288: # Catch all versions of IRIX before 6.2, and indicate that we don't
16289: # know how it worked for any of those versions.
16290: lt_cv_sys_dlopen_deplibs=unknown
16291: ;;
16292: irix*)
16293: # The case above catches anything before 6.2, and it's known that
16294: # at 6.2 and later dlopen does load deplibs.
16295: lt_cv_sys_dlopen_deplibs=yes
16296: ;;
16297: netbsd*)
16298: lt_cv_sys_dlopen_deplibs=yes
16299: ;;
16300: openbsd*)
16301: lt_cv_sys_dlopen_deplibs=yes
16302: ;;
16303: osf[1234]*)
16304: # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
16305: # it did *not* use an RPATH in a shared library to find objects the
16306: # library depends on, so we explicitly say `no'.
16307: lt_cv_sys_dlopen_deplibs=no
16308: ;;
16309: osf5.0|osf5.0a|osf5.1)
16310: # dlopen *does* load deplibs and with the right loader patch applied
16311: # it even uses RPATH in a shared library to search for shared objects
16312: # that the library depends on, but there's no easy way to know if that
16313: # patch is installed. Since this is the case, all we can really
16314: # say is unknown -- it depends on the patch being installed. If
16315: # it is, this changes to `yes'. Without it, it would be `no'.
16316: lt_cv_sys_dlopen_deplibs=unknown
16317: ;;
16318: osf*)
16319: # the two cases above should catch all versions of osf <= 5.1. Read
16320: # the comments above for what we know about them.
16321: # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
16322: # is used to find them so we can finally say `yes'.
16323: lt_cv_sys_dlopen_deplibs=yes
16324: ;;
16325: qnx*)
16326: lt_cv_sys_dlopen_deplibs=yes
16327: ;;
16328: solaris*)
16329: lt_cv_sys_dlopen_deplibs=yes
16330: ;;
16331: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16332: libltdl_cv_sys_dlopen_deplibs=yes
16333: ;;
16334: esac
16335:
16336: fi
16337: echo "$as_me:$LINENO: result: $lt_cv_sys_dlopen_deplibs" >&5
16338: echo "${ECHO_T}$lt_cv_sys_dlopen_deplibs" >&6
16339: if test "$lt_cv_sys_dlopen_deplibs" != yes; then
16340:
16341: cat >>confdefs.h <<\_ACEOF
16342: #define LTDL_DLOPEN_DEPLIBS 1
16343: _ACEOF
16344:
16345: fi
16346:
16347: :
16348:
16349:
16350: for ac_header in argz.h
16351: do
16352: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16353: echo "$as_me:$LINENO: checking for $ac_header" >&5
16354: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16355: if eval "test \"\${$as_ac_Header+set}\" = set"; then
16356: echo $ECHO_N "(cached) $ECHO_C" >&6
16357: else
16358: cat >conftest.$ac_ext <<_ACEOF
16359: /* confdefs.h. */
16360: _ACEOF
16361: cat confdefs.h >>conftest.$ac_ext
16362: cat >>conftest.$ac_ext <<_ACEOF
16363: /* end confdefs.h. */
16364: $ac_includes_default
16365:
16366: #include <$ac_header>
16367: _ACEOF
16368: rm -f conftest.$ac_objext
16369: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16370: (eval $ac_compile) 2>conftest.er1
16371: ac_status=$?
16372: grep -v '^ *+' conftest.er1 >conftest.err
16373: rm -f conftest.er1
16374: cat conftest.err >&5
16375: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16376: (exit $ac_status); } &&
16377: { ac_try='test -z "$ac_c_werror_flag"
16378: || test ! -s conftest.err'
16379: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16380: (eval $ac_try) 2>&5
16381: ac_status=$?
16382: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16383: (exit $ac_status); }; } &&
16384: { ac_try='test -s conftest.$ac_objext'
16385: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16386: (eval $ac_try) 2>&5
16387: ac_status=$?
16388: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16389: (exit $ac_status); }; }; then
16390: eval "$as_ac_Header=yes"
16391: else
16392: echo "$as_me: failed program was:" >&5
16393: sed 's/^/| /' conftest.$ac_ext >&5
16394:
16395: eval "$as_ac_Header=no"
16396: fi
16397: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16398: fi
16399: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16400: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16401: if test `eval echo '${'$as_ac_Header'}'` = yes; then
16402: cat >>confdefs.h <<_ACEOF
16403: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16404: _ACEOF
16405:
16406: fi
16407:
16408: done
16409:
16410:
16411: echo "$as_me:$LINENO: checking for error_t" >&5
16412: echo $ECHO_N "checking for error_t... $ECHO_C" >&6
16413: if test "${ac_cv_type_error_t+set}" = set; then
16414: echo $ECHO_N "(cached) $ECHO_C" >&6
16415: else
16416: cat >conftest.$ac_ext <<_ACEOF
16417: /* confdefs.h. */
16418: _ACEOF
16419: cat confdefs.h >>conftest.$ac_ext
16420: cat >>conftest.$ac_ext <<_ACEOF
16421: /* end confdefs.h. */
16422: #if defined(HAVE_ARGZ_H)
16423: # include <argz.h>
16424: #endif
16425:
16426: int
16427: main ()
16428: {
16429: if ((error_t *) 0)
16430: return 0;
16431: if (sizeof (error_t))
16432: return 0;
16433: ;
16434: return 0;
16435: }
16436: _ACEOF
16437: rm -f conftest.$ac_objext
16438: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16439: (eval $ac_compile) 2>conftest.er1
16440: ac_status=$?
16441: grep -v '^ *+' conftest.er1 >conftest.err
16442: rm -f conftest.er1
16443: cat conftest.err >&5
16444: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16445: (exit $ac_status); } &&
16446: { ac_try='test -z "$ac_c_werror_flag"
16447: || test ! -s conftest.err'
16448: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16449: (eval $ac_try) 2>&5
16450: ac_status=$?
16451: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16452: (exit $ac_status); }; } &&
16453: { ac_try='test -s conftest.$ac_objext'
16454: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16455: (eval $ac_try) 2>&5
16456: ac_status=$?
16457: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16458: (exit $ac_status); }; }; then
16459: ac_cv_type_error_t=yes
16460: else
16461: echo "$as_me: failed program was:" >&5
16462: sed 's/^/| /' conftest.$ac_ext >&5
16463:
16464: ac_cv_type_error_t=no
16465: fi
16466: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16467: fi
16468: echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
16469: echo "${ECHO_T}$ac_cv_type_error_t" >&6
16470: if test $ac_cv_type_error_t = yes; then
16471:
16472: cat >>confdefs.h <<_ACEOF
16473: #define HAVE_ERROR_T 1
16474: _ACEOF
16475:
16476:
16477: else
16478:
16479: cat >>confdefs.h <<\_ACEOF
16480: #define error_t int
16481: _ACEOF
16482:
16483:
16484: cat >>confdefs.h <<\_ACEOF
16485: #define __error_t_defined 1
16486: _ACEOF
16487:
16488: fi
16489:
16490:
16491: ARGZ_H=
16492:
16493:
16494:
16495:
16496:
16497:
16498:
16499: for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
16500: argz_next argz_stringify
16501: do
16502: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16503: echo "$as_me:$LINENO: checking for $ac_func" >&5
16504: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16505: if eval "test \"\${$as_ac_var+set}\" = set"; then
16506: echo $ECHO_N "(cached) $ECHO_C" >&6
16507: else
16508: cat >conftest.$ac_ext <<_ACEOF
16509: /* confdefs.h. */
16510: _ACEOF
16511: cat confdefs.h >>conftest.$ac_ext
16512: cat >>conftest.$ac_ext <<_ACEOF
16513: /* end confdefs.h. */
16514: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16515: For example, HP-UX 11i <limits.h> declares gettimeofday. */
16516: #define $ac_func innocuous_$ac_func
16517:
16518: /* System header to define __stub macros and hopefully few prototypes,
16519: which can conflict with char $ac_func (); below.
16520: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16521: <limits.h> exists even on freestanding compilers. */
16522:
16523: #ifdef __STDC__
16524: # include <limits.h>
16525: #else
16526: # include <assert.h>
16527: #endif
16528:
16529: #undef $ac_func
16530:
16531: /* Override any gcc2 internal prototype to avoid an error. */
16532: #ifdef __cplusplus
16533: extern "C"
16534: {
16535: #endif
16536: /* We use char because int might match the return type of a gcc2
16537: builtin and then its argument prototype would still apply. */
16538: char $ac_func ();
16539: /* The GNU C library defines this for functions which it implements
16540: to always fail with ENOSYS. Some functions are actually named
16541: something starting with __ and the normal name is an alias. */
16542: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16543: choke me
16544: #else
16545: char (*f) () = $ac_func;
16546: #endif
16547: #ifdef __cplusplus
16548: }
16549: #endif
16550:
16551: int
16552: main ()
16553: {
16554: return f != $ac_func;
16555: ;
16556: return 0;
16557: }
16558: _ACEOF
16559: rm -f conftest.$ac_objext conftest$ac_exeext
16560: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16561: (eval $ac_link) 2>conftest.er1
16562: ac_status=$?
16563: grep -v '^ *+' conftest.er1 >conftest.err
16564: rm -f conftest.er1
16565: cat conftest.err >&5
16566: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16567: (exit $ac_status); } &&
16568: { ac_try='test -z "$ac_c_werror_flag"
16569: || test ! -s conftest.err'
16570: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16571: (eval $ac_try) 2>&5
16572: ac_status=$?
16573: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16574: (exit $ac_status); }; } &&
16575: { ac_try='test -s conftest$ac_exeext'
16576: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16577: (eval $ac_try) 2>&5
16578: ac_status=$?
16579: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16580: (exit $ac_status); }; }; then
16581: eval "$as_ac_var=yes"
16582: else
16583: echo "$as_me: failed program was:" >&5
16584: sed 's/^/| /' conftest.$ac_ext >&5
16585:
16586: eval "$as_ac_var=no"
16587: fi
16588: rm -f conftest.err conftest.$ac_objext \
16589: conftest$ac_exeext conftest.$ac_ext
16590: fi
16591: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16592: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16593: if test `eval echo '${'$as_ac_var'}'` = yes; then
16594: cat >>confdefs.h <<_ACEOF
16595: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16596: _ACEOF
16597:
16598: else
16599: ARGZ_H=argz.h;
16600:
16601: _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
16602:
16603: fi
16604: done
16605:
16606:
16607: if test -z "$ARGZ_H"; then
16608: echo "$as_me:$LINENO: checking if argz actually works" >&5
16609: echo $ECHO_N "checking if argz actually works... $ECHO_C" >&6
16610: if test "${lt_cv_sys_argz_works+set}" = set; then
16611: echo $ECHO_N "(cached) $ECHO_C" >&6
16612: else
16613: case $host_os in #(
16614: *cygwin*)
16615: lt_cv_sys_argz_works=no
16616: if test "$cross_compiling" != no; then
16617: lt_cv_sys_argz_works="guessing no"
16618: else
16619: lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
16620: save_IFS=$IFS
16621: IFS=-.
16622: set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
16623: IFS=$save_IFS
16624: lt_os_major=${2-0}
16625: lt_os_minor=${3-0}
16626: lt_os_micro=${4-0}
16627: if test "$lt_os_major" -gt 1 \
16628: || { test "$lt_os_major" -eq 1 \
16629: && { test "$lt_os_minor" -gt 5 \
16630: || { test "$lt_os_minor" -eq 5 \
16631: && test "$lt_os_micro" -gt 24; }; }; }; then
16632: lt_cv_sys_argz_works=yes
16633: fi
16634: fi
16635: ;; #(
16636: *) lt_cv_sys_argz_works=yes ;;
16637: esac
16638: fi
16639: echo "$as_me:$LINENO: result: $lt_cv_sys_argz_works" >&5
16640: echo "${ECHO_T}$lt_cv_sys_argz_works" >&6
16641: if test "$lt_cv_sys_argz_works" = yes; then
16642:
16643: cat >>confdefs.h <<\_ACEOF
16644: #define HAVE_WORKING_ARGZ 1
16645: _ACEOF
16646:
16647: else
16648: ARGZ_H=argz.h
16649:
16650:
16651: _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
16652:
16653: fi
16654:
16655: fi
16656:
16657:
16658:
16659:
16660: echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
16661: echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
16662: if test "${libltdl_cv_preloaded_symbols+set}" = set; then
16663: echo $ECHO_N "(cached) $ECHO_C" >&6
16664: else
16665: if test -n "$lt_cv_sys_global_symbol_pipe"; then
16666: libltdl_cv_preloaded_symbols=yes
16667: else
16668: libltdl_cv_preloaded_symbols=no
16669: fi
16670:
16671: fi
16672: echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
16673: echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
16674: if test x"$libltdl_cv_preloaded_symbols" = xyes; then
16675:
16676: cat >>confdefs.h <<\_ACEOF
16677: #define HAVE_PRELOADED_SYMBOLS 1
16678: _ACEOF
16679:
16680: fi
16681:
16682: # Set options
16683:
16684:
16685:
16686:
16687:
16688:
16689:
16690:
16691:
16692:
16693:
16694:
16695: # Check whether --with-included_ltdl or --without-included_ltdl was given.
16696: if test "${with_included_ltdl+set}" = set; then
16697: withval="$with_included_ltdl"
16698:
16699: fi;
16700:
16701: if test "x$with_included_ltdl" != xyes; then
16702: # We are not being forced to use the included libltdl sources, so
16703: # decide whether there is a useful installed version we can use.
16704: echo "$as_me:$LINENO: checking for ltdl.h" >&5
16705: echo $ECHO_N "checking for ltdl.h... $ECHO_C" >&6
16706: if test "${ac_cv_header_ltdl_h+set}" = set; then
16707: echo $ECHO_N "(cached) $ECHO_C" >&6
16708: else
16709: cat >conftest.$ac_ext <<_ACEOF
16710: /* confdefs.h. */
16711: _ACEOF
16712: cat confdefs.h >>conftest.$ac_ext
16713: cat >>conftest.$ac_ext <<_ACEOF
16714: /* end confdefs.h. */
16715: $ac_includes_default
16716:
16717:
16718: #include <ltdl.h>
16719: _ACEOF
16720: rm -f conftest.$ac_objext
16721: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16722: (eval $ac_compile) 2>conftest.er1
16723: ac_status=$?
16724: grep -v '^ *+' conftest.er1 >conftest.err
16725: rm -f conftest.er1
16726: cat conftest.err >&5
16727: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16728: (exit $ac_status); } &&
16729: { ac_try='test -z "$ac_c_werror_flag"
16730: || test ! -s conftest.err'
16731: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16732: (eval $ac_try) 2>&5
16733: ac_status=$?
16734: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735: (exit $ac_status); }; } &&
16736: { ac_try='test -s conftest.$ac_objext'
16737: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16738: (eval $ac_try) 2>&5
16739: ac_status=$?
16740: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16741: (exit $ac_status); }; }; then
16742: ac_cv_header_ltdl_h=yes
16743: else
16744: echo "$as_me: failed program was:" >&5
16745: sed 's/^/| /' conftest.$ac_ext >&5
16746:
16747: ac_cv_header_ltdl_h=no
16748: fi
16749: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16750: fi
16751: echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
16752: echo "${ECHO_T}$ac_cv_header_ltdl_h" >&6
16753: if test $ac_cv_header_ltdl_h = yes; then
16754: echo "$as_me:$LINENO: checking whether lt_dlinterface_register is declared" >&5
16755: echo $ECHO_N "checking whether lt_dlinterface_register is declared... $ECHO_C" >&6
16756: if test "${ac_cv_have_decl_lt_dlinterface_register+set}" = set; then
16757: echo $ECHO_N "(cached) $ECHO_C" >&6
16758: else
16759: cat >conftest.$ac_ext <<_ACEOF
16760: /* confdefs.h. */
16761: _ACEOF
16762: cat confdefs.h >>conftest.$ac_ext
16763: cat >>conftest.$ac_ext <<_ACEOF
16764: /* end confdefs.h. */
16765: $ac_includes_default
16766: #include <ltdl.h>
16767:
16768: int
16769: main ()
16770: {
16771: #ifndef lt_dlinterface_register
16772: char *p = (char *) lt_dlinterface_register;
16773: #endif
16774:
16775: ;
16776: return 0;
16777: }
16778: _ACEOF
16779: rm -f conftest.$ac_objext
16780: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16781: (eval $ac_compile) 2>conftest.er1
16782: ac_status=$?
16783: grep -v '^ *+' conftest.er1 >conftest.err
16784: rm -f conftest.er1
16785: cat conftest.err >&5
16786: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16787: (exit $ac_status); } &&
16788: { ac_try='test -z "$ac_c_werror_flag"
16789: || test ! -s conftest.err'
16790: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16791: (eval $ac_try) 2>&5
16792: ac_status=$?
16793: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16794: (exit $ac_status); }; } &&
16795: { ac_try='test -s conftest.$ac_objext'
16796: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16797: (eval $ac_try) 2>&5
16798: ac_status=$?
16799: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16800: (exit $ac_status); }; }; then
16801: ac_cv_have_decl_lt_dlinterface_register=yes
16802: else
16803: echo "$as_me: failed program was:" >&5
16804: sed 's/^/| /' conftest.$ac_ext >&5
16805:
16806: ac_cv_have_decl_lt_dlinterface_register=no
16807: fi
16808: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16809: fi
16810: echo "$as_me:$LINENO: result: $ac_cv_have_decl_lt_dlinterface_register" >&5
16811: echo "${ECHO_T}$ac_cv_have_decl_lt_dlinterface_register" >&6
16812: if test $ac_cv_have_decl_lt_dlinterface_register = yes; then
16813: echo "$as_me:$LINENO: checking for lt_dladvise_preload in -lltdl" >&5
16814: echo $ECHO_N "checking for lt_dladvise_preload in -lltdl... $ECHO_C" >&6
16815: if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then
16816: echo $ECHO_N "(cached) $ECHO_C" >&6
16817: else
16818: ac_check_lib_save_LIBS=$LIBS
16819: LIBS="-lltdl $LIBS"
16820: cat >conftest.$ac_ext <<_ACEOF
16821: /* confdefs.h. */
16822: _ACEOF
16823: cat confdefs.h >>conftest.$ac_ext
16824: cat >>conftest.$ac_ext <<_ACEOF
16825: /* end confdefs.h. */
16826:
16827: /* Override any gcc2 internal prototype to avoid an error. */
16828: #ifdef __cplusplus
16829: extern "C"
16830: #endif
16831: /* We use char because int might match the return type of a gcc2
16832: builtin and then its argument prototype would still apply. */
16833: char lt_dladvise_preload ();
16834: int
16835: main ()
16836: {
16837: lt_dladvise_preload ();
16838: ;
16839: return 0;
16840: }
16841: _ACEOF
16842: rm -f conftest.$ac_objext conftest$ac_exeext
16843: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16844: (eval $ac_link) 2>conftest.er1
16845: ac_status=$?
16846: grep -v '^ *+' conftest.er1 >conftest.err
16847: rm -f conftest.er1
16848: cat conftest.err >&5
16849: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16850: (exit $ac_status); } &&
16851: { ac_try='test -z "$ac_c_werror_flag"
16852: || test ! -s conftest.err'
16853: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16854: (eval $ac_try) 2>&5
16855: ac_status=$?
16856: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16857: (exit $ac_status); }; } &&
16858: { ac_try='test -s conftest$ac_exeext'
16859: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16860: (eval $ac_try) 2>&5
16861: ac_status=$?
16862: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16863: (exit $ac_status); }; }; then
16864: ac_cv_lib_ltdl_lt_dladvise_preload=yes
16865: else
16866: echo "$as_me: failed program was:" >&5
16867: sed 's/^/| /' conftest.$ac_ext >&5
16868:
16869: ac_cv_lib_ltdl_lt_dladvise_preload=no
16870: fi
16871: rm -f conftest.err conftest.$ac_objext \
16872: conftest$ac_exeext conftest.$ac_ext
16873: LIBS=$ac_check_lib_save_LIBS
16874: fi
16875: echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
16876: echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dladvise_preload" >&6
16877: if test $ac_cv_lib_ltdl_lt_dladvise_preload = yes; then
16878: with_included_ltdl=no
16879: else
16880: with_included_ltdl=yes
16881: fi
16882:
16883: else
16884: with_included_ltdl=yes
16885: fi
16886:
16887: else
16888: with_included_ltdl=yes
16889: fi
16890:
16891:
16892: fi
16893:
16894:
16895:
16896:
16897: # Check whether --with-ltdl_include or --without-ltdl_include was given.
16898: if test "${with_ltdl_include+set}" = set; then
16899: withval="$with_ltdl_include"
16900:
16901: fi;
16902:
16903: if test -n "$with_ltdl_include"; then
16904: if test -f "$with_ltdl_include/ltdl.h"; then :
16905: else
16906: { { echo "$as_me:$LINENO: error: invalid ltdl include directory: \`$with_ltdl_include'" >&5
16907: echo "$as_me: error: invalid ltdl include directory: \`$with_ltdl_include'" >&2;}
16908: { (exit 1); exit 1; }; }
16909: fi
16910: else
16911: with_ltdl_include=no
16912: fi
16913:
16914:
16915: # Check whether --with-ltdl_lib or --without-ltdl_lib was given.
16916: if test "${with_ltdl_lib+set}" = set; then
16917: withval="$with_ltdl_lib"
16918:
16919: fi;
16920:
16921: if test -n "$with_ltdl_lib"; then
16922: if test -f "$with_ltdl_lib/libltdl.la"; then :
16923: else
16924: { { echo "$as_me:$LINENO: error: invalid ltdl library directory: \`$with_ltdl_lib'" >&5
16925: echo "$as_me: error: invalid ltdl library directory: \`$with_ltdl_lib'" >&2;}
16926: { (exit 1); exit 1; }; }
16927: fi
16928: else
16929: with_ltdl_lib=no
16930: fi
16931:
16932: case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
16933: ,yes,no,no,)
16934: case $enable_ltdl_convenience in
16935: no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
16936: echo "$as_me: error: this package needs a convenience libltdl" >&2;}
16937: { (exit 1); exit 1; }; } ;;
16938: "") enable_ltdl_convenience=yes
16939: ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
16940: esac
16941: LIBLTDL='${top_builddir}/'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
16942: LTDLDEPS=$LIBLTDL
16943: LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
16944:
16945:
16946:
16947:
16948:
16949: # For backwards non-gettext consistent compatibility...
16950: INCLTDL="$LTDLINCL"
16951:
16952:
16953: ;;
16954: ,no,no,no,)
16955: # If the included ltdl is not to be used, then use the
16956: # preinstalled libltdl we found.
16957:
16958: cat >>confdefs.h <<\_ACEOF
16959: #define HAVE_LTDL 1
16960: _ACEOF
16961:
16962: LIBLTDL=-lltdl
16963: LTDLDEPS=
16964: LTDLINCL=
16965: ;;
16966: ,no*,no,*)
16967: { { echo "$as_me:$LINENO: error: \`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" >&5
16968: echo "$as_me: error: \`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" >&2;}
16969: { (exit 1); exit 1; }; }
16970: ;;
16971: *) with_included_ltdl=no
16972: LIBLTDL="-L$with_ltdl_lib -lltdl"
16973: LTDLDEPS=
16974: LTDLINCL="-I$with_ltdl_include"
16975: ;;
16976: esac
16977: INCLTDL="$LTDLINCL"
16978:
16979: # Report our decision...
16980: echo "$as_me:$LINENO: checking where to find libltdl headers" >&5
16981: echo $ECHO_N "checking where to find libltdl headers... $ECHO_C" >&6
16982: echo "$as_me:$LINENO: result: $LTDLINCL" >&5
16983: echo "${ECHO_T}$LTDLINCL" >&6
16984: echo "$as_me:$LINENO: checking where to find libltdl library" >&5
16985: echo $ECHO_N "checking where to find libltdl library... $ECHO_C" >&6
16986: echo "$as_me:$LINENO: result: $LIBLTDL" >&5
16987: echo "${ECHO_T}$LIBLTDL" >&6
16988:
16989:
16990:
16991: # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
16992: if test "${enable_ltdl_install+set}" = set; then
16993: enableval="$enable_ltdl_install"
16994:
16995: fi;
16996:
16997: case ,${enable_ltdl_install},${enable_ltdl_convenience} in
16998: *yes*) ;;
16999: *) enable_ltdl_convenience=yes ;;
17000: esac
17001:
17002:
17003:
17004: if test x"${enable_ltdl_install-no}" != xno; then
17005: INSTALL_LTDL_TRUE=
17006: INSTALL_LTDL_FALSE='#'
17007: else
17008: INSTALL_LTDL_TRUE='#'
17009: INSTALL_LTDL_FALSE=
17010: fi
17011:
17012:
17013:
17014: if test x"${enable_ltdl_convenience-no}" != xno; then
17015: CONVENIENCE_LTDL_TRUE=
17016: CONVENIENCE_LTDL_FALSE='#'
17017: else
17018: CONVENIENCE_LTDL_TRUE='#'
17019: CONVENIENCE_LTDL_FALSE=
17020: fi
17021:
17022:
17023:
17024:
17025:
17026: subdirs="$subdirs libltdl"
17027:
17028:
17029:
17030:
17031: # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
17032: # the user used. This is so that ltdl.h can pick up the parent projects
17033: # config.h file, The first file in AC_CONFIG_HEADERS must contain the
17034: # definitions required by ltdl.c.
17035: # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
17036:
17037:
17038:
17039:
17040:
17041:
17042:
17043:
17044:
17045: for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
17046: do
17047: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17048: echo "$as_me:$LINENO: checking for $ac_header" >&5
17049: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17050: if eval "test \"\${$as_ac_Header+set}\" = set"; then
17051: echo $ECHO_N "(cached) $ECHO_C" >&6
17052: else
17053: cat >conftest.$ac_ext <<_ACEOF
17054: /* confdefs.h. */
17055: _ACEOF
17056: cat confdefs.h >>conftest.$ac_ext
17057: cat >>conftest.$ac_ext <<_ACEOF
17058: /* end confdefs.h. */
17059: $ac_includes_default
17060:
17061: #include <$ac_header>
17062: _ACEOF
17063: rm -f conftest.$ac_objext
17064: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17065: (eval $ac_compile) 2>conftest.er1
17066: ac_status=$?
17067: grep -v '^ *+' conftest.er1 >conftest.err
17068: rm -f conftest.er1
17069: cat conftest.err >&5
17070: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17071: (exit $ac_status); } &&
17072: { ac_try='test -z "$ac_c_werror_flag"
17073: || test ! -s conftest.err'
17074: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17075: (eval $ac_try) 2>&5
17076: ac_status=$?
17077: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17078: (exit $ac_status); }; } &&
17079: { ac_try='test -s conftest.$ac_objext'
17080: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17081: (eval $ac_try) 2>&5
17082: ac_status=$?
17083: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17084: (exit $ac_status); }; }; then
17085: eval "$as_ac_Header=yes"
17086: else
17087: echo "$as_me: failed program was:" >&5
17088: sed 's/^/| /' conftest.$ac_ext >&5
17089:
17090: eval "$as_ac_Header=no"
17091: fi
17092: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17093: fi
17094: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17095: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17096: if test `eval echo '${'$as_ac_Header'}'` = yes; then
17097: cat >>confdefs.h <<_ACEOF
17098: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17099: _ACEOF
17100:
17101: fi
17102:
17103: done
17104:
17105:
17106:
17107:
17108:
17109: for ac_func in closedir opendir readdir
17110: do
17111: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17112: echo "$as_me:$LINENO: checking for $ac_func" >&5
17113: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17114: if eval "test \"\${$as_ac_var+set}\" = set"; then
17115: echo $ECHO_N "(cached) $ECHO_C" >&6
17116: else
17117: cat >conftest.$ac_ext <<_ACEOF
17118: /* confdefs.h. */
17119: _ACEOF
17120: cat confdefs.h >>conftest.$ac_ext
17121: cat >>conftest.$ac_ext <<_ACEOF
17122: /* end confdefs.h. */
17123: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17124: For example, HP-UX 11i <limits.h> declares gettimeofday. */
17125: #define $ac_func innocuous_$ac_func
17126:
17127: /* System header to define __stub macros and hopefully few prototypes,
17128: which can conflict with char $ac_func (); below.
17129: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17130: <limits.h> exists even on freestanding compilers. */
17131:
17132: #ifdef __STDC__
17133: # include <limits.h>
17134: #else
17135: # include <assert.h>
17136: #endif
17137:
17138: #undef $ac_func
17139:
17140: /* Override any gcc2 internal prototype to avoid an error. */
17141: #ifdef __cplusplus
17142: extern "C"
17143: {
17144: #endif
17145: /* We use char because int might match the return type of a gcc2
17146: builtin and then its argument prototype would still apply. */
17147: char $ac_func ();
17148: /* The GNU C library defines this for functions which it implements
17149: to always fail with ENOSYS. Some functions are actually named
17150: something starting with __ and the normal name is an alias. */
17151: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17152: choke me
17153: #else
17154: char (*f) () = $ac_func;
17155: #endif
17156: #ifdef __cplusplus
17157: }
17158: #endif
17159:
17160: int
17161: main ()
17162: {
17163: return f != $ac_func;
17164: ;
17165: return 0;
17166: }
17167: _ACEOF
17168: rm -f conftest.$ac_objext conftest$ac_exeext
17169: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17170: (eval $ac_link) 2>conftest.er1
17171: ac_status=$?
17172: grep -v '^ *+' conftest.er1 >conftest.err
17173: rm -f conftest.er1
17174: cat conftest.err >&5
17175: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17176: (exit $ac_status); } &&
17177: { ac_try='test -z "$ac_c_werror_flag"
17178: || test ! -s conftest.err'
17179: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17180: (eval $ac_try) 2>&5
17181: ac_status=$?
17182: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17183: (exit $ac_status); }; } &&
17184: { ac_try='test -s conftest$ac_exeext'
17185: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17186: (eval $ac_try) 2>&5
17187: ac_status=$?
17188: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17189: (exit $ac_status); }; }; then
17190: eval "$as_ac_var=yes"
17191: else
17192: echo "$as_me: failed program was:" >&5
17193: sed 's/^/| /' conftest.$ac_ext >&5
17194:
17195: eval "$as_ac_var=no"
17196: fi
17197: rm -f conftest.err conftest.$ac_objext \
17198: conftest$ac_exeext conftest.$ac_ext
17199: fi
17200: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17201: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17202: if test `eval echo '${'$as_ac_var'}'` = yes; then
17203: cat >>confdefs.h <<_ACEOF
17204: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17205: _ACEOF
17206:
17207: else
17208:
17209:
17210: _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
17211:
17212: fi
17213: done
17214:
17215:
17216:
17217: for ac_func in strlcat strlcpy
17218: do
17219: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17220: echo "$as_me:$LINENO: checking for $ac_func" >&5
17221: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17222: if eval "test \"\${$as_ac_var+set}\" = set"; then
17223: echo $ECHO_N "(cached) $ECHO_C" >&6
17224: else
17225: cat >conftest.$ac_ext <<_ACEOF
17226: /* confdefs.h. */
17227: _ACEOF
17228: cat confdefs.h >>conftest.$ac_ext
17229: cat >>conftest.$ac_ext <<_ACEOF
17230: /* end confdefs.h. */
17231: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17232: For example, HP-UX 11i <limits.h> declares gettimeofday. */
17233: #define $ac_func innocuous_$ac_func
17234:
17235: /* System header to define __stub macros and hopefully few prototypes,
17236: which can conflict with char $ac_func (); below.
17237: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17238: <limits.h> exists even on freestanding compilers. */
17239:
17240: #ifdef __STDC__
17241: # include <limits.h>
17242: #else
17243: # include <assert.h>
17244: #endif
17245:
17246: #undef $ac_func
17247:
17248: /* Override any gcc2 internal prototype to avoid an error. */
17249: #ifdef __cplusplus
17250: extern "C"
17251: {
17252: #endif
17253: /* We use char because int might match the return type of a gcc2
17254: builtin and then its argument prototype would still apply. */
17255: char $ac_func ();
17256: /* The GNU C library defines this for functions which it implements
17257: to always fail with ENOSYS. Some functions are actually named
17258: something starting with __ and the normal name is an alias. */
17259: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17260: choke me
17261: #else
17262: char (*f) () = $ac_func;
17263: #endif
17264: #ifdef __cplusplus
17265: }
17266: #endif
17267:
17268: int
17269: main ()
17270: {
17271: return f != $ac_func;
17272: ;
17273: return 0;
17274: }
17275: _ACEOF
17276: rm -f conftest.$ac_objext conftest$ac_exeext
17277: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17278: (eval $ac_link) 2>conftest.er1
17279: ac_status=$?
17280: grep -v '^ *+' conftest.er1 >conftest.err
17281: rm -f conftest.er1
17282: cat conftest.err >&5
17283: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17284: (exit $ac_status); } &&
17285: { ac_try='test -z "$ac_c_werror_flag"
17286: || test ! -s conftest.err'
17287: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17288: (eval $ac_try) 2>&5
17289: ac_status=$?
17290: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17291: (exit $ac_status); }; } &&
17292: { ac_try='test -s conftest$ac_exeext'
17293: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17294: (eval $ac_try) 2>&5
17295: ac_status=$?
17296: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17297: (exit $ac_status); }; }; then
17298: eval "$as_ac_var=yes"
17299: else
17300: echo "$as_me: failed program was:" >&5
17301: sed 's/^/| /' conftest.$ac_ext >&5
17302:
17303: eval "$as_ac_var=no"
17304: fi
17305: rm -f conftest.err conftest.$ac_objext \
17306: conftest$ac_exeext conftest.$ac_ext
17307: fi
17308: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17309: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17310: if test `eval echo '${'$as_ac_var'}'` = yes; then
17311: cat >>confdefs.h <<_ACEOF
17312: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17313: _ACEOF
17314:
17315: else
17316:
17317:
17318: _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
17319:
17320: fi
17321: done
17322:
17323:
17324:
17325: cat >>confdefs.h <<_ACEOF
17326: #define LT_LIBEXT "$libext"
17327: _ACEOF
17328:
17329:
17330: name=
17331: eval "lt_libprefix=\"$libname_spec\""
17332:
17333: cat >>confdefs.h <<_ACEOF
17334: #define LT_LIBPREFIX "$lt_libprefix"
17335: _ACEOF
17336:
17337:
17338: name=ltdl
17339: eval "LTDLOPEN=\"$libname_spec\""
17340:
17341:
17342:
17343:
17344:
17345:
17346:
17347:
17348: # Only expand once:
17349:
17350:
17351:
1.36 moko 17352:
1.35 moko 17353: case "$host" in
17354: *-freebsd4*)
17355:
17356: cat >>confdefs.h <<\_ACEOF
17357: #define FREEBSD4
17358: _ACEOF
17359:
17360: esac
17361:
17362:
17363:
17364:
17365:
17366:
17367: for ac_header in stdio.h \
17368: stdlib.h \
17369: string.h \
17370: setjmp.h \
17371: ctype.h
17372:
17373: do
17374: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17375: if eval "test \"\${$as_ac_Header+set}\" = set"; then
17376: echo "$as_me:$LINENO: checking for $ac_header" >&5
17377: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17378: if eval "test \"\${$as_ac_Header+set}\" = set"; then
17379: echo $ECHO_N "(cached) $ECHO_C" >&6
17380: fi
17381: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17382: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17383: else
17384: # Is the header compilable?
17385: echo "$as_me:$LINENO: checking $ac_header usability" >&5
17386: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17387: cat >conftest.$ac_ext <<_ACEOF
17388: /* confdefs.h. */
17389: _ACEOF
17390: cat confdefs.h >>conftest.$ac_ext
17391: cat >>conftest.$ac_ext <<_ACEOF
17392: /* end confdefs.h. */
17393: $ac_includes_default
17394: #include <$ac_header>
17395: _ACEOF
17396: rm -f conftest.$ac_objext
17397: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17398: (eval $ac_compile) 2>conftest.er1
17399: ac_status=$?
17400: grep -v '^ *+' conftest.er1 >conftest.err
17401: rm -f conftest.er1
17402: cat conftest.err >&5
17403: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17404: (exit $ac_status); } &&
17405: { ac_try='test -z "$ac_c_werror_flag"
17406: || test ! -s conftest.err'
17407: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17408: (eval $ac_try) 2>&5
17409: ac_status=$?
17410: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17411: (exit $ac_status); }; } &&
17412: { ac_try='test -s conftest.$ac_objext'
17413: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17414: (eval $ac_try) 2>&5
17415: ac_status=$?
17416: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17417: (exit $ac_status); }; }; then
17418: ac_header_compiler=yes
17419: else
17420: echo "$as_me: failed program was:" >&5
17421: sed 's/^/| /' conftest.$ac_ext >&5
17422:
17423: ac_header_compiler=no
17424: fi
17425: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17426: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17427: echo "${ECHO_T}$ac_header_compiler" >&6
17428:
17429: # Is the header present?
17430: echo "$as_me:$LINENO: checking $ac_header presence" >&5
17431: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17432: cat >conftest.$ac_ext <<_ACEOF
17433: /* confdefs.h. */
17434: _ACEOF
17435: cat confdefs.h >>conftest.$ac_ext
17436: cat >>conftest.$ac_ext <<_ACEOF
17437: /* end confdefs.h. */
17438: #include <$ac_header>
17439: _ACEOF
17440: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17441: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17442: ac_status=$?
17443: grep -v '^ *+' conftest.er1 >conftest.err
17444: rm -f conftest.er1
17445: cat conftest.err >&5
17446: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17447: (exit $ac_status); } >/dev/null; then
17448: if test -s conftest.err; then
17449: ac_cpp_err=$ac_c_preproc_warn_flag
17450: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17451: else
17452: ac_cpp_err=
17453: fi
17454: else
17455: ac_cpp_err=yes
17456: fi
17457: if test -z "$ac_cpp_err"; then
17458: ac_header_preproc=yes
17459: else
17460: echo "$as_me: failed program was:" >&5
17461: sed 's/^/| /' conftest.$ac_ext >&5
17462:
17463: ac_header_preproc=no
17464: fi
17465: rm -f conftest.err conftest.$ac_ext
17466: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17467: echo "${ECHO_T}$ac_header_preproc" >&6
17468:
17469: # So? What about this header?
17470: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17471: yes:no: )
17472: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17473: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17474: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17475: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17476: ac_header_preproc=yes
17477: ;;
17478: no:yes:* )
17479: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17480: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17481: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17482: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17483: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17484: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17485: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17486: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17487: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17488: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17489: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17490: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17491: (
17492: cat <<\_ASBOX
1.36 moko 17493: ## ----------------------------------------- ##
17494: ## Report this to the parser3mysql.C lists. ##
17495: ## ----------------------------------------- ##
1.35 moko 17496: _ASBOX
17497: ) |
17498: sed "s/^/$as_me: WARNING: /" >&2
17499: ;;
17500: esac
17501: echo "$as_me:$LINENO: checking for $ac_header" >&5
17502: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17503: if eval "test \"\${$as_ac_Header+set}\" = set"; then
17504: echo $ECHO_N "(cached) $ECHO_C" >&6
17505: else
17506: eval "$as_ac_Header=\$ac_header_preproc"
17507: fi
17508: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17509: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17510:
17511: fi
17512: if test `eval echo '${'$as_ac_Header'}'` = yes; then
17513: cat >>confdefs.h <<_ACEOF
17514: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17515: _ACEOF
17516:
17517: fi
17518:
17519: done
17520:
17521:
17522: echo "$as_me:$LINENO: checking for size_t" >&5
17523: echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17524: if test "${ac_cv_type_size_t+set}" = set; then
17525: echo $ECHO_N "(cached) $ECHO_C" >&6
17526: else
17527: cat >conftest.$ac_ext <<_ACEOF
17528: /* confdefs.h. */
17529: _ACEOF
17530: cat confdefs.h >>conftest.$ac_ext
17531: cat >>conftest.$ac_ext <<_ACEOF
17532: /* end confdefs.h. */
17533: $ac_includes_default
17534: int
17535: main ()
17536: {
17537: if ((size_t *) 0)
17538: return 0;
17539: if (sizeof (size_t))
17540: return 0;
17541: ;
17542: return 0;
17543: }
17544: _ACEOF
17545: rm -f conftest.$ac_objext
17546: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17547: (eval $ac_compile) 2>conftest.er1
17548: ac_status=$?
17549: grep -v '^ *+' conftest.er1 >conftest.err
17550: rm -f conftest.er1
17551: cat conftest.err >&5
17552: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17553: (exit $ac_status); } &&
17554: { ac_try='test -z "$ac_c_werror_flag"
17555: || test ! -s conftest.err'
17556: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17557: (eval $ac_try) 2>&5
17558: ac_status=$?
17559: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17560: (exit $ac_status); }; } &&
17561: { ac_try='test -s conftest.$ac_objext'
17562: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17563: (eval $ac_try) 2>&5
17564: ac_status=$?
17565: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17566: (exit $ac_status); }; }; then
17567: ac_cv_type_size_t=yes
17568: else
17569: echo "$as_me: failed program was:" >&5
17570: sed 's/^/| /' conftest.$ac_ext >&5
17571:
17572: ac_cv_type_size_t=no
17573: fi
17574: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17575: fi
17576: echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17577: echo "${ECHO_T}$ac_cv_type_size_t" >&6
17578: if test $ac_cv_type_size_t = yes; then
17579: :
17580: else
17581:
17582: cat >>confdefs.h <<_ACEOF
17583: #define size_t unsigned
17584: _ACEOF
17585:
17586: fi
17587:
17588:
17589:
17590: ac_config_files="$ac_config_files Makefile"
17591: cat >confcache <<\_ACEOF
17592: # This file is a shell script that caches the results of configure
17593: # tests run on this system so they can be shared between configure
17594: # scripts and configure runs, see configure's option --config-cache.
17595: # It is not useful on other systems. If it contains results you don't
17596: # want to keep, you may remove or edit it.
17597: #
17598: # config.status only pays attention to the cache file if you give it
17599: # the --recheck option to rerun configure.
17600: #
17601: # `ac_cv_env_foo' variables (set or unset) will be overridden when
17602: # loading this file, other *unset* `ac_cv_foo' will be assigned the
17603: # following values.
17604:
17605: _ACEOF
17606:
17607: # The following way of writing the cache mishandles newlines in values,
17608: # but we know of no workaround that is simple, portable, and efficient.
17609: # So, don't put newlines in cache variables' values.
17610: # Ultrix sh set writes to stderr and can't be redirected directly,
17611: # and sets the high bit in the cache file unless we assign to the vars.
17612: {
17613: (set) 2>&1 |
17614: case `(ac_space=' '; set | grep ac_space) 2>&1` in
17615: *ac_space=\ *)
17616: # `set' does not quote correctly, so add quotes (double-quote
17617: # substitution turns \\\\ into \\, and sed turns \\ into \).
17618: sed -n \
17619: "s/'/'\\\\''/g;
17620: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17621: ;;
17622: *)
17623: # `set' quotes correctly as required by POSIX, so do not add quotes.
17624: sed -n \
17625: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17626: ;;
17627: esac;
17628: } |
17629: sed '
17630: t clear
17631: : clear
17632: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17633: t end
17634: /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17635: : end' >>confcache
17636: if diff $cache_file confcache >/dev/null 2>&1; then :; else
17637: if test -w $cache_file; then
17638: test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17639: cat confcache >$cache_file
17640: else
17641: echo "not updating unwritable cache $cache_file"
17642: fi
17643: fi
17644: rm -f confcache
17645:
17646: test "x$prefix" = xNONE && prefix=$ac_default_prefix
17647: # Let make expand exec_prefix.
17648: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17649:
17650: # VPATH may cause trouble with some makes, so we remove $(srcdir),
17651: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17652: # trailing colons and then remove the whole line if VPATH becomes empty
17653: # (actually we leave an empty line to preserve line numbers).
17654: if test "x$srcdir" = x.; then
17655: ac_vpsub='/^[ ]*VPATH[ ]*=/{
17656: s/:*\$(srcdir):*/:/;
17657: s/:*\${srcdir}:*/:/;
17658: s/:*@srcdir@:*/:/;
17659: s/^\([^=]*=[ ]*\):*/\1/;
17660: s/:*$//;
17661: s/^[^=]*=[ ]*$//;
17662: }'
17663: fi
17664:
17665: DEFS=-DHAVE_CONFIG_H
17666:
17667: ac_libobjs=
17668: ac_ltlibobjs=
17669: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17670: # 1. Remove the extension, and $U if already installed.
17671: ac_i=`echo "$ac_i" |
17672: sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
17673: # 2. Add them.
17674: ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
17675: ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
17676: done
17677: LIBOBJS=$ac_libobjs
17678:
17679: LTLIBOBJS=$ac_ltlibobjs
17680:
17681:
17682: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17683: { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
17684: Usually this means the macro was only invoked conditionally." >&5
17685: echo "$as_me: error: conditional \"AMDEP\" was never defined.
17686: Usually this means the macro was only invoked conditionally." >&2;}
17687: { (exit 1); exit 1; }; }
17688: fi
17689: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17690: { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
17691: Usually this means the macro was only invoked conditionally." >&5
17692: echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
17693: Usually this means the macro was only invoked conditionally." >&2;}
17694: { (exit 1); exit 1; }; }
17695: fi
17696: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17697: { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
17698: Usually this means the macro was only invoked conditionally." >&5
17699: echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
17700: Usually this means the macro was only invoked conditionally." >&2;}
17701: { (exit 1); exit 1; }; }
17702: fi
17703: if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
17704: { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
17705: Usually this means the macro was only invoked conditionally." >&5
17706: echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
17707: Usually this means the macro was only invoked conditionally." >&2;}
17708: { (exit 1); exit 1; }; }
17709: fi
17710: if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
17711: { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
17712: Usually this means the macro was only invoked conditionally." >&5
17713: echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
17714: Usually this means the macro was only invoked conditionally." >&2;}
17715: { (exit 1); exit 1; }; }
17716: fi
17717: LT_CONFIG_H=`echo " config_auto.h" | $SED 's,^[ ]*,,;s,[ :].*$,,'`
17718:
17719: _ltdl_libobjs=
17720: _ltdl_ltlibobjs=
17721: if test -n "$_LT_LIBOBJS"; then
17722: # Remove the extension.
17723: _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
17724: for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
17725: _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
17726: _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
17727: done
17728: fi
17729: ltdl_LIBOBJS=$_ltdl_libobjs
17730:
17731: ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
17732:
17733:
17734:
17735: : ${CONFIG_STATUS=./config.status}
17736: ac_clean_files_save=$ac_clean_files
17737: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17738: { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17739: echo "$as_me: creating $CONFIG_STATUS" >&6;}
17740: cat >$CONFIG_STATUS <<_ACEOF
17741: #! $SHELL
17742: # Generated by $as_me.
17743: # Run this file to recreate the current configuration.
17744: # Compiler output produced by configure, useful for debugging
17745: # configure, is in config.log if it exists.
17746:
17747: debug=false
17748: ac_cs_recheck=false
17749: ac_cs_silent=false
17750: SHELL=\${CONFIG_SHELL-$SHELL}
17751: _ACEOF
17752:
17753: cat >>$CONFIG_STATUS <<\_ACEOF
17754: ## --------------------- ##
17755: ## M4sh Initialization. ##
17756: ## --------------------- ##
17757:
17758: # Be Bourne compatible
17759: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17760: emulate sh
17761: NULLCMD=:
17762: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17763: # is contrary to our usage. Disable this feature.
17764: alias -g '${1+"$@"}'='"$@"'
17765: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17766: set -o posix
17767: fi
17768: DUALCASE=1; export DUALCASE # for MKS sh
17769:
17770: # Support unset when possible.
17771: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17772: as_unset=unset
17773: else
17774: as_unset=false
17775: fi
17776:
17777:
17778: # Work around bugs in pre-3.0 UWIN ksh.
17779: $as_unset ENV MAIL MAILPATH
17780: PS1='$ '
17781: PS2='> '
17782: PS4='+ '
17783:
17784: # NLS nuisances.
17785: for as_var in \
17786: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17787: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17788: LC_TELEPHONE LC_TIME
17789: do
17790: if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
17791: eval $as_var=C; export $as_var
17792: else
17793: $as_unset $as_var
17794: fi
17795: done
17796:
17797: # Required to use basename.
17798: if expr a : '\(a\)' >/dev/null 2>&1; then
17799: as_expr=expr
17800: else
17801: as_expr=false
17802: fi
17803:
17804: if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
17805: as_basename=basename
17806: else
17807: as_basename=false
17808: fi
17809:
17810:
17811: # Name of the executable.
17812: as_me=`$as_basename "$0" ||
17813: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17814: X"$0" : 'X\(//\)$' \| \
17815: X"$0" : 'X\(/\)$' \| \
17816: . : '\(.\)' 2>/dev/null ||
17817: echo X/"$0" |
17818: sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17819: /^X\/\(\/\/\)$/{ s//\1/; q; }
17820: /^X\/\(\/\).*/{ s//\1/; q; }
17821: s/.*/./; q'`
17822:
17823:
17824: # PATH needs CR, and LINENO needs CR and PATH.
17825: # Avoid depending upon Character Ranges.
17826: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17827: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17828: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17829: as_cr_digits='0123456789'
17830: as_cr_alnum=$as_cr_Letters$as_cr_digits
17831:
17832: # The user is always right.
17833: if test "${PATH_SEPARATOR+set}" != set; then
17834: echo "#! /bin/sh" >conf$$.sh
17835: echo "exit 0" >>conf$$.sh
17836: chmod +x conf$$.sh
17837: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17838: PATH_SEPARATOR=';'
17839: else
17840: PATH_SEPARATOR=:
17841: fi
17842: rm -f conf$$.sh
17843: fi
17844:
17845:
17846: as_lineno_1=$LINENO
17847: as_lineno_2=$LINENO
17848: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17849: test "x$as_lineno_1" != "x$as_lineno_2" &&
17850: test "x$as_lineno_3" = "x$as_lineno_2" || {
17851: # Find who we are. Look in the path if we contain no path at all
17852: # relative or not.
17853: case $0 in
17854: *[\\/]* ) as_myself=$0 ;;
17855: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17856: for as_dir in $PATH
17857: do
17858: IFS=$as_save_IFS
17859: test -z "$as_dir" && as_dir=.
17860: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17861: done
17862:
17863: ;;
17864: esac
17865: # We did not find ourselves, most probably we were run as `sh COMMAND'
17866: # in which case we are not to be found in the path.
17867: if test "x$as_myself" = x; then
17868: as_myself=$0
17869: fi
17870: if test ! -f "$as_myself"; then
17871: { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17872: echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17873: { (exit 1); exit 1; }; }
17874: fi
17875: case $CONFIG_SHELL in
17876: '')
17877: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17878: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17879: do
17880: IFS=$as_save_IFS
17881: test -z "$as_dir" && as_dir=.
17882: for as_base in sh bash ksh sh5; do
17883: case $as_dir in
17884: /*)
17885: if ("$as_dir/$as_base" -c '
17886: as_lineno_1=$LINENO
17887: as_lineno_2=$LINENO
17888: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17889: test "x$as_lineno_1" != "x$as_lineno_2" &&
17890: test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17891: $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17892: $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17893: CONFIG_SHELL=$as_dir/$as_base
17894: export CONFIG_SHELL
17895: exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17896: fi;;
17897: esac
17898: done
17899: done
17900: ;;
17901: esac
17902:
17903: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17904: # uniformly replaced by the line number. The first 'sed' inserts a
17905: # line-number line before each line; the second 'sed' does the real
17906: # work. The second script uses 'N' to pair each line-number line
17907: # with the numbered line, and appends trailing '-' during
17908: # substitution so that $LINENO is not a special case at line end.
17909: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17910: # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17911: sed '=' <$as_myself |
17912: sed '
17913: N
17914: s,$,-,
17915: : loop
17916: s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17917: t loop
17918: s,-$,,
17919: s,^['$as_cr_digits']*\n,,
17920: ' >$as_me.lineno &&
17921: chmod +x $as_me.lineno ||
17922: { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17923: echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17924: { (exit 1); exit 1; }; }
17925:
17926: # Don't try to exec as it changes $[0], causing all sort of problems
17927: # (the dirname of $[0] is not the place where we might find the
17928: # original and so on. Autoconf is especially sensible to this).
17929: . ./$as_me.lineno
17930: # Exit status is that of the last command.
17931: exit
17932: }
17933:
17934:
17935: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17936: *c*,-n*) ECHO_N= ECHO_C='
17937: ' ECHO_T=' ' ;;
17938: *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17939: *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17940: esac
17941:
17942: if expr a : '\(a\)' >/dev/null 2>&1; then
17943: as_expr=expr
17944: else
17945: as_expr=false
17946: fi
17947:
17948: rm -f conf$$ conf$$.exe conf$$.file
17949: echo >conf$$.file
17950: if ln -s conf$$.file conf$$ 2>/dev/null; then
17951: # We could just check for DJGPP; but this test a) works b) is more generic
17952: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17953: if test -f conf$$.exe; then
17954: # Don't use ln at all; we don't have any links
17955: as_ln_s='cp -p'
17956: else
17957: as_ln_s='ln -s'
17958: fi
17959: elif ln conf$$.file conf$$ 2>/dev/null; then
17960: as_ln_s=ln
17961: else
17962: as_ln_s='cp -p'
17963: fi
17964: rm -f conf$$ conf$$.exe conf$$.file
17965:
17966: if mkdir -p . 2>/dev/null; then
17967: as_mkdir_p=:
17968: else
17969: test -d ./-p && rmdir ./-p
17970: as_mkdir_p=false
17971: fi
17972:
17973: as_executable_p="test -f"
17974:
17975: # Sed expression to map a string onto a valid CPP name.
17976: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17977:
17978: # Sed expression to map a string onto a valid variable name.
17979: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17980:
17981:
17982: # IFS
17983: # We need space, tab and new line, in precisely that order.
17984: as_nl='
17985: '
17986: IFS=" $as_nl"
17987:
17988: # CDPATH.
17989: $as_unset CDPATH
17990:
17991: exec 6>&1
17992:
17993: # Open the log real soon, to keep \$[0] and so on meaningful, and to
17994: # report actual input values of CONFIG_FILES etc. instead of their
17995: # values after options handling. Logging --version etc. is OK.
17996: exec 5>>config.log
17997: {
17998: echo
17999: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18000: ## Running $as_me. ##
18001: _ASBOX
18002: } >&5
18003: cat >&5 <<_CSEOF
18004:
1.36 moko 18005: This file was extended by parser3mysql.C $as_me 10.3, which was
1.35 moko 18006: generated by GNU Autoconf 2.59. Invocation command line was
18007:
18008: CONFIG_FILES = $CONFIG_FILES
18009: CONFIG_HEADERS = $CONFIG_HEADERS
18010: CONFIG_LINKS = $CONFIG_LINKS
18011: CONFIG_COMMANDS = $CONFIG_COMMANDS
18012: $ $0 $@
18013:
18014: _CSEOF
18015: echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18016: echo >&5
18017: _ACEOF
18018:
18019: # Files that config.status was made for.
18020: if test -n "$ac_config_files"; then
18021: echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18022: fi
18023:
18024: if test -n "$ac_config_headers"; then
18025: echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18026: fi
18027:
18028: if test -n "$ac_config_links"; then
18029: echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18030: fi
18031:
18032: if test -n "$ac_config_commands"; then
18033: echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18034: fi
18035:
18036: cat >>$CONFIG_STATUS <<\_ACEOF
18037:
18038: ac_cs_usage="\
18039: \`$as_me' instantiates files from templates according to the
18040: current configuration.
18041:
18042: Usage: $0 [OPTIONS] [FILE]...
18043:
18044: -h, --help print this help, then exit
18045: -V, --version print version number, then exit
18046: -q, --quiet do not print progress messages
18047: -d, --debug don't remove temporary files
18048: --recheck update $as_me by reconfiguring in the same conditions
18049: --file=FILE[:TEMPLATE]
18050: instantiate the configuration file FILE
18051: --header=FILE[:TEMPLATE]
18052: instantiate the configuration header FILE
18053:
18054: Configuration files:
18055: $config_files
18056:
18057: Configuration headers:
18058: $config_headers
18059:
18060: Configuration commands:
18061: $config_commands
18062:
18063: Report bugs to <bug-autoconf@gnu.org>."
18064: _ACEOF
18065:
18066: cat >>$CONFIG_STATUS <<_ACEOF
18067: ac_cs_version="\\
1.36 moko 18068: parser3mysql.C config.status 10.3
1.35 moko 18069: configured by $0, generated by GNU Autoconf 2.59,
18070: with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18071:
18072: Copyright (C) 2003 Free Software Foundation, Inc.
18073: This config.status script is free software; the Free Software Foundation
18074: gives unlimited permission to copy, distribute and modify it."
18075: srcdir=$srcdir
18076: INSTALL="$INSTALL"
18077: _ACEOF
18078:
18079: cat >>$CONFIG_STATUS <<\_ACEOF
18080: # If no file are specified by the user, then we need to provide default
18081: # value. By we need to know if files were specified by the user.
18082: ac_need_defaults=:
18083: while test $# != 0
18084: do
18085: case $1 in
18086: --*=*)
18087: ac_option=`expr "x$1" : 'x\([^=]*\)='`
18088: ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18089: ac_shift=:
18090: ;;
18091: -*)
18092: ac_option=$1
18093: ac_optarg=$2
18094: ac_shift=shift
18095: ;;
18096: *) # This is not an option, so the user has probably given explicit
18097: # arguments.
18098: ac_option=$1
18099: ac_need_defaults=false;;
18100: esac
18101:
18102: case $ac_option in
18103: # Handling of the options.
18104: _ACEOF
18105: cat >>$CONFIG_STATUS <<\_ACEOF
18106: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18107: ac_cs_recheck=: ;;
18108: --version | --vers* | -V )
18109: echo "$ac_cs_version"; exit 0 ;;
18110: --he | --h)
18111: # Conflict between --help and --header
18112: { { echo "$as_me:$LINENO: error: ambiguous option: $1
18113: Try \`$0 --help' for more information." >&5
18114: echo "$as_me: error: ambiguous option: $1
18115: Try \`$0 --help' for more information." >&2;}
18116: { (exit 1); exit 1; }; };;
18117: --help | --hel | -h )
18118: echo "$ac_cs_usage"; exit 0 ;;
18119: --debug | --d* | -d )
18120: debug=: ;;
18121: --file | --fil | --fi | --f )
18122: $ac_shift
18123: CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18124: ac_need_defaults=false;;
18125: --header | --heade | --head | --hea )
18126: $ac_shift
18127: CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18128: ac_need_defaults=false;;
18129: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18130: | -silent | --silent | --silen | --sile | --sil | --si | --s)
18131: ac_cs_silent=: ;;
18132:
18133: # This is an error.
18134: -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18135: Try \`$0 --help' for more information." >&5
18136: echo "$as_me: error: unrecognized option: $1
18137: Try \`$0 --help' for more information." >&2;}
18138: { (exit 1); exit 1; }; } ;;
18139:
18140: *) ac_config_targets="$ac_config_targets $1" ;;
18141:
18142: esac
18143: shift
18144: done
18145:
18146: ac_configure_extra_args=
18147:
18148: if $ac_cs_silent; then
18149: exec 6>/dev/null
18150: ac_configure_extra_args="$ac_configure_extra_args --silent"
18151: fi
18152:
18153: _ACEOF
18154: cat >>$CONFIG_STATUS <<_ACEOF
18155: if \$ac_cs_recheck; then
18156: echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18157: exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18158: fi
18159:
18160: _ACEOF
18161:
18162: cat >>$CONFIG_STATUS <<_ACEOF
18163: #
18164: # INIT-COMMANDS section.
18165: #
18166:
18167: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18168:
18169:
18170: # The HP-UX ksh and POSIX shell print the target directory to stdout
18171: # if CDPATH is set.
18172: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18173:
18174: sed_quote_subst='$sed_quote_subst'
18175: double_quote_subst='$double_quote_subst'
18176: delay_variable_subst='$delay_variable_subst'
18177: macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18178: macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
1.42 ! moko 18179: enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
1.36 moko 18180: AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
18181: DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18182: OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
1.35 moko 18183: enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18184: pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18185: enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18186: SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18187: ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18188: PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18189: host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18190: host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18191: host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18192: build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18193: build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18194: build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18195: SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18196: Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18197: GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18198: EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18199: FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18200: LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18201: NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18202: LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18203: max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18204: ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18205: exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18206: lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18207: lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18208: lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18209: lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18210: lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18211: reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18212: reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18213: deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18214: file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18215: file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18216: want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18217: sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18218: AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18219: AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18220: archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18221: STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18222: RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18223: old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18224: old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18225: old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18226: lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18227: CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18228: CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18229: compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18230: GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18231: lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18232: lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18233: lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18234: 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"`'
18235: nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18236: lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18237: objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18238: MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18239: lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18240: lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18241: lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18242: lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18243: lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18244: need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18245: MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18246: DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18247: NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18248: LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18249: OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18250: OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18251: libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18252: shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18253: extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18254: archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18255: enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18256: export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18257: whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18258: compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18259: old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18260: old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18261: archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18262: archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18263: module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18264: module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18265: with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18266: allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18267: no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18268: hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18269: hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18270: hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18271: hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18272: hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18273: hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18274: hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18275: inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18276: link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18277: always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18278: export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18279: exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18280: include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18281: prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18282: postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18283: file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18284: variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18285: need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18286: need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18287: version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18288: runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18289: shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18290: shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18291: libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18292: library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18293: soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18294: install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18295: postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18296: postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18297: finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18298: finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18299: hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18300: sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18301: sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18302: hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18303: enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18304: enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18305: enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18306: old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18307: striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18308: compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18309: predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18310: postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18311: predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18312: postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18313: compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18314: LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18315: reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18316: reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18317: old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18318: compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18319: GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18320: lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18321: lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18322: lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18323: lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18324: lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18325: archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18326: enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18327: export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18328: whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18329: compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18330: old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18331: old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18332: archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18333: archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18334: module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18335: module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18336: with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18337: allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18338: no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18339: hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18340: hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18341: hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18342: hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18343: hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18344: hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18345: hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18346: inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18347: link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18348: always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18349: export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18350: exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18351: include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18352: prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18353: postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18354: file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18355: hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18356: compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18357: predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18358: postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18359: predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18360: postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18361: compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18362:
18363: LTCC='$LTCC'
18364: LTCFLAGS='$LTCFLAGS'
18365: compiler='$compiler_DEFAULT'
18366:
18367: # A function that is used when there is no print builtin or printf.
18368: func_fallback_echo ()
18369: {
18370: eval 'cat <<_LTECHO_EOF
18371: \$1
18372: _LTECHO_EOF'
18373: }
18374:
18375: # Quote evaled strings.
1.36 moko 18376: for var in AS \
18377: DLLTOOL \
18378: OBJDUMP \
18379: SHELL \
1.35 moko 18380: ECHO \
18381: PATH_SEPARATOR \
18382: SED \
18383: GREP \
18384: EGREP \
18385: FGREP \
18386: LD \
18387: NM \
18388: LN_S \
18389: lt_SP2NL \
18390: lt_NL2SP \
18391: reload_flag \
18392: deplibs_check_method \
18393: file_magic_cmd \
18394: file_magic_glob \
18395: want_nocaseglob \
18396: sharedlib_from_linklib_cmd \
18397: AR \
18398: AR_FLAGS \
18399: archiver_list_spec \
18400: STRIP \
18401: RANLIB \
18402: CC \
18403: CFLAGS \
18404: compiler \
18405: lt_cv_sys_global_symbol_pipe \
18406: lt_cv_sys_global_symbol_to_cdecl \
18407: lt_cv_sys_global_symbol_to_c_name_address \
18408: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18409: nm_file_list_spec \
18410: lt_prog_compiler_no_builtin_flag \
18411: lt_prog_compiler_pic \
18412: lt_prog_compiler_wl \
18413: lt_prog_compiler_static \
18414: lt_cv_prog_compiler_c_o \
18415: need_locks \
18416: MANIFEST_TOOL \
18417: DSYMUTIL \
18418: NMEDIT \
18419: LIPO \
18420: OTOOL \
18421: OTOOL64 \
18422: shrext_cmds \
18423: export_dynamic_flag_spec \
18424: whole_archive_flag_spec \
18425: compiler_needs_object \
18426: with_gnu_ld \
18427: allow_undefined_flag \
18428: no_undefined_flag \
18429: hardcode_libdir_flag_spec \
18430: hardcode_libdir_separator \
18431: exclude_expsyms \
18432: include_expsyms \
18433: file_list_spec \
18434: variables_saved_for_relink \
18435: libname_spec \
18436: library_names_spec \
18437: soname_spec \
18438: install_override_mode \
18439: finish_eval \
18440: old_striplib \
18441: striplib \
18442: compiler_lib_search_dirs \
18443: predep_objects \
18444: postdep_objects \
18445: predeps \
18446: postdeps \
18447: compiler_lib_search_path \
18448: LD_CXX \
18449: reload_flag_CXX \
18450: compiler_CXX \
18451: lt_prog_compiler_no_builtin_flag_CXX \
18452: lt_prog_compiler_pic_CXX \
18453: lt_prog_compiler_wl_CXX \
18454: lt_prog_compiler_static_CXX \
18455: lt_cv_prog_compiler_c_o_CXX \
18456: export_dynamic_flag_spec_CXX \
18457: whole_archive_flag_spec_CXX \
18458: compiler_needs_object_CXX \
18459: with_gnu_ld_CXX \
18460: allow_undefined_flag_CXX \
18461: no_undefined_flag_CXX \
18462: hardcode_libdir_flag_spec_CXX \
18463: hardcode_libdir_separator_CXX \
18464: exclude_expsyms_CXX \
18465: include_expsyms_CXX \
18466: file_list_spec_CXX \
18467: compiler_lib_search_dirs_CXX \
18468: predep_objects_CXX \
18469: postdep_objects_CXX \
18470: predeps_CXX \
18471: postdeps_CXX \
18472: compiler_lib_search_path_CXX; do
18473: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18474: *[\\\\\\\`\\"\\\$]*)
18475: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18476: ;;
18477: *)
18478: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18479: ;;
18480: esac
18481: done
18482:
18483: # Double-quote double-evaled strings.
18484: for var in reload_cmds \
18485: old_postinstall_cmds \
18486: old_postuninstall_cmds \
18487: old_archive_cmds \
18488: extract_expsyms_cmds \
18489: old_archive_from_new_cmds \
18490: old_archive_from_expsyms_cmds \
18491: archive_cmds \
18492: archive_expsym_cmds \
18493: module_cmds \
18494: module_expsym_cmds \
18495: export_symbols_cmds \
18496: prelink_cmds \
18497: postlink_cmds \
18498: postinstall_cmds \
18499: postuninstall_cmds \
18500: finish_cmds \
18501: sys_lib_search_path_spec \
18502: sys_lib_dlsearch_path_spec \
18503: reload_cmds_CXX \
18504: old_archive_cmds_CXX \
18505: old_archive_from_new_cmds_CXX \
18506: old_archive_from_expsyms_cmds_CXX \
18507: archive_cmds_CXX \
18508: archive_expsym_cmds_CXX \
18509: module_cmds_CXX \
18510: module_expsym_cmds_CXX \
18511: export_symbols_cmds_CXX \
18512: prelink_cmds_CXX \
18513: postlink_cmds_CXX; do
18514: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18515: *[\\\\\\\`\\"\\\$]*)
18516: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18517: ;;
18518: *)
18519: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18520: ;;
18521: esac
18522: done
18523:
18524: ac_aux_dir='$ac_aux_dir'
18525: xsi_shell='$xsi_shell'
18526: lt_shell_append='$lt_shell_append'
18527:
18528: # See if we are running on zsh, and set the options which allow our
18529: # commands through without removal of \ escapes INIT.
18530: if test -n "\${ZSH_VERSION+set}" ; then
18531: setopt NO_GLOB_SUBST
18532: fi
18533:
18534:
18535: PACKAGE='$PACKAGE'
18536: VERSION='$VERSION'
18537: TIMESTAMP='$TIMESTAMP'
18538: RM='$RM'
18539: ofile='$ofile'
18540:
18541:
18542:
18543:
18544:
18545:
18546: _ACEOF
18547:
18548:
18549:
18550: cat >>$CONFIG_STATUS <<\_ACEOF
18551: for ac_config_target in $ac_config_targets
18552: do
18553: case "$ac_config_target" in
18554: # Handling of arguments.
18555: "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18556: "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18557: "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18558: "config_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config_auto.h" ;;
18559: *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18560: echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18561: { (exit 1); exit 1; }; };;
18562: esac
18563: done
18564:
18565: # If the user did not use the arguments to specify the items to instantiate,
18566: # then the envvar interface is used. Set only those that are not.
18567: # We use the long form for the default assignment because of an extremely
18568: # bizarre bug on SunOS 4.1.3.
18569: if $ac_need_defaults; then
18570: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18571: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18572: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18573: fi
18574:
18575: # Have a temporary directory for convenience. Make it in the build tree
18576: # simply because there is no reason to put it here, and in addition,
18577: # creating and moving files from /tmp can sometimes cause problems.
18578: # Create a temporary directory, and hook for its removal unless debugging.
18579: $debug ||
18580: {
18581: trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18582: trap '{ (exit 1); exit 1; }' 1 2 13 15
18583: }
18584:
18585: # Create a (secure) tmp directory for tmp files.
18586:
18587: {
18588: tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
18589: test -n "$tmp" && test -d "$tmp"
18590: } ||
18591: {
18592: tmp=./confstat$$-$RANDOM
18593: (umask 077 && mkdir $tmp)
18594: } ||
18595: {
18596: echo "$me: cannot create a temporary directory in ." >&2
18597: { (exit 1); exit 1; }
18598: }
18599:
18600: _ACEOF
18601:
18602: cat >>$CONFIG_STATUS <<_ACEOF
18603:
18604: #
18605: # CONFIG_FILES section.
18606: #
18607:
18608: # No need to generate the scripts if there are no CONFIG_FILES.
18609: # This happens for instance when ./config.status config.h
18610: if test -n "\$CONFIG_FILES"; then
18611: # Protect against being on the right side of a sed subst in config.status.
18612: sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18613: s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18614: s,@SHELL@,$SHELL,;t t
18615: s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18616: s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18617: s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18618: s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18619: s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18620: s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18621: s,@exec_prefix@,$exec_prefix,;t t
18622: s,@prefix@,$prefix,;t t
18623: s,@program_transform_name@,$program_transform_name,;t t
18624: s,@bindir@,$bindir,;t t
18625: s,@sbindir@,$sbindir,;t t
18626: s,@libexecdir@,$libexecdir,;t t
18627: s,@datadir@,$datadir,;t t
18628: s,@sysconfdir@,$sysconfdir,;t t
18629: s,@sharedstatedir@,$sharedstatedir,;t t
18630: s,@localstatedir@,$localstatedir,;t t
18631: s,@libdir@,$libdir,;t t
18632: s,@includedir@,$includedir,;t t
18633: s,@oldincludedir@,$oldincludedir,;t t
18634: s,@infodir@,$infodir,;t t
18635: s,@mandir@,$mandir,;t t
18636: s,@build_alias@,$build_alias,;t t
18637: s,@host_alias@,$host_alias,;t t
18638: s,@target_alias@,$target_alias,;t t
18639: s,@DEFS@,$DEFS,;t t
18640: s,@ECHO_C@,$ECHO_C,;t t
18641: s,@ECHO_N@,$ECHO_N,;t t
18642: s,@ECHO_T@,$ECHO_T,;t t
18643: s,@LIBS@,$LIBS,;t t
18644: s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18645: s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18646: s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18647: s,@CYGPATH_W@,$CYGPATH_W,;t t
18648: s,@PACKAGE@,$PACKAGE,;t t
18649: s,@VERSION@,$VERSION,;t t
18650: s,@ACLOCAL@,$ACLOCAL,;t t
18651: s,@AUTOCONF@,$AUTOCONF,;t t
18652: s,@AUTOMAKE@,$AUTOMAKE,;t t
18653: s,@AUTOHEADER@,$AUTOHEADER,;t t
18654: s,@MAKEINFO@,$MAKEINFO,;t t
18655: s,@install_sh@,$install_sh,;t t
18656: s,@STRIP@,$STRIP,;t t
18657: s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
18658: s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
18659: s,@mkdir_p@,$mkdir_p,;t t
18660: s,@AWK@,$AWK,;t t
18661: s,@SET_MAKE@,$SET_MAKE,;t t
18662: s,@am__leading_dot@,$am__leading_dot,;t t
18663: s,@AMTAR@,$AMTAR,;t t
18664: s,@am__tar@,$am__tar,;t t
18665: s,@am__untar@,$am__untar,;t t
18666: s,@MYSQL_INC@,$MYSQL_INC,;t t
18667: s,@CXX@,$CXX,;t t
18668: s,@CXXFLAGS@,$CXXFLAGS,;t t
1.39 moko 18669: s,@LDFLAGS@,$LDFLAGS,;t t
1.35 moko 18670: s,@CPPFLAGS@,$CPPFLAGS,;t t
18671: s,@ac_ct_CXX@,$ac_ct_CXX,;t t
18672: s,@EXEEXT@,$EXEEXT,;t t
18673: s,@OBJEXT@,$OBJEXT,;t t
18674: s,@DEPDIR@,$DEPDIR,;t t
18675: s,@am__include@,$am__include,;t t
18676: s,@am__quote@,$am__quote,;t t
18677: s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
18678: s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
18679: s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
18680: s,@CXXDEPMODE@,$CXXDEPMODE,;t t
18681: s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
18682: s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
18683: s,@CC@,$CC,;t t
18684: s,@CFLAGS@,$CFLAGS,;t t
18685: s,@ac_ct_CC@,$ac_ct_CC,;t t
18686: s,@CCDEPMODE@,$CCDEPMODE,;t t
18687: s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
18688: s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
1.36 moko 18689: s,@AS@,$AS,;t t
18690: s,@ac_ct_AS@,$ac_ct_AS,;t t
18691: s,@DLLTOOL@,$DLLTOOL,;t t
18692: s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
18693: s,@OBJDUMP@,$OBJDUMP,;t t
18694: s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
1.35 moko 18695: s,@LIBTOOL@,$LIBTOOL,;t t
18696: s,@build@,$build,;t t
18697: s,@build_cpu@,$build_cpu,;t t
18698: s,@build_vendor@,$build_vendor,;t t
18699: s,@build_os@,$build_os,;t t
18700: s,@host@,$host,;t t
18701: s,@host_cpu@,$host_cpu,;t t
18702: s,@host_vendor@,$host_vendor,;t t
18703: s,@host_os@,$host_os,;t t
18704: s,@SED@,$SED,;t t
18705: s,@EGREP@,$EGREP,;t t
18706: s,@FGREP@,$FGREP,;t t
18707: s,@GREP@,$GREP,;t t
18708: s,@LD@,$LD,;t t
18709: s,@DUMPBIN@,$DUMPBIN,;t t
18710: s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
18711: s,@NM@,$NM,;t t
18712: s,@LN_S@,$LN_S,;t t
18713: s,@AR@,$AR,;t t
18714: s,@ac_ct_AR@,$ac_ct_AR,;t t
18715: s,@RANLIB@,$RANLIB,;t t
18716: s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18717: s,@MANIFEST_TOOL@,$MANIFEST_TOOL,;t t
18718: s,@ac_ct_MANIFEST_TOOL@,$ac_ct_MANIFEST_TOOL,;t t
18719: s,@DSYMUTIL@,$DSYMUTIL,;t t
18720: s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
18721: s,@NMEDIT@,$NMEDIT,;t t
18722: s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
18723: s,@LIPO@,$LIPO,;t t
18724: s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
18725: s,@OTOOL@,$OTOOL,;t t
18726: s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
18727: s,@OTOOL64@,$OTOOL64,;t t
18728: s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
18729: s,@CPP@,$CPP,;t t
18730: s,@CXXCPP@,$CXXCPP,;t t
18731: s,@LIBLTDL@,$LIBLTDL,;t t
18732: s,@LTDLDEPS@,$LTDLDEPS,;t t
18733: s,@LTDLINCL@,$LTDLINCL,;t t
18734: s,@INCLTDL@,$INCLTDL,;t t
18735: s,@LT_DLLOADERS@,$LT_DLLOADERS,;t t
18736: s,@LIBADD_DLOPEN@,$LIBADD_DLOPEN,;t t
18737: s,@LIBADD_SHL_LOAD@,$LIBADD_SHL_LOAD,;t t
18738: s,@LIBADD_DLD_LINK@,$LIBADD_DLD_LINK,;t t
18739: s,@LT_DLPREOPEN@,$LT_DLPREOPEN,;t t
1.36 moko 18740: s,@LIBADD_DL@,$LIBADD_DL,;t t
1.35 moko 18741: s,@sys_symbol_underscore@,$sys_symbol_underscore,;t t
18742: s,@ARGZ_H@,$ARGZ_H,;t t
18743: s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
18744: s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
18745: s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
18746: s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
18747: s,@subdirs@,$subdirs,;t t
18748: s,@LT_CONFIG_H@,$LT_CONFIG_H,;t t
18749: s,@LTDLOPEN@,$LTDLOPEN,;t t
18750: s,@LIBOBJS@,$LIBOBJS,;t t
18751: s,@LTLIBOBJS@,$LTLIBOBJS,;t t
18752: s,@ltdl_LIBOBJS@,$ltdl_LIBOBJS,;t t
18753: s,@ltdl_LTLIBOBJS@,$ltdl_LTLIBOBJS,;t t
18754: CEOF
18755:
18756: _ACEOF
18757:
18758: cat >>$CONFIG_STATUS <<\_ACEOF
18759: # Split the substitutions into bite-sized pieces for seds with
18760: # small command number limits, like on Digital OSF/1 and HP-UX.
18761: ac_max_sed_lines=48
18762: ac_sed_frag=1 # Number of current file.
18763: ac_beg=1 # First line for current file.
18764: ac_end=$ac_max_sed_lines # Line after last line for current file.
18765: ac_more_lines=:
18766: ac_sed_cmds=
18767: while $ac_more_lines; do
18768: if test $ac_beg -gt 1; then
18769: sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18770: else
18771: sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18772: fi
18773: if test ! -s $tmp/subs.frag; then
18774: ac_more_lines=false
18775: else
18776: # The purpose of the label and of the branching condition is to
18777: # speed up the sed processing (if there are no `@' at all, there
18778: # is no need to browse any of the substitutions).
18779: # These are the two extra sed commands mentioned above.
18780: (echo ':t
18781: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18782: if test -z "$ac_sed_cmds"; then
18783: ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18784: else
18785: ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18786: fi
18787: ac_sed_frag=`expr $ac_sed_frag + 1`
18788: ac_beg=$ac_end
18789: ac_end=`expr $ac_end + $ac_max_sed_lines`
18790: fi
18791: done
18792: if test -z "$ac_sed_cmds"; then
18793: ac_sed_cmds=cat
18794: fi
18795: fi # test -n "$CONFIG_FILES"
18796:
18797: _ACEOF
18798: cat >>$CONFIG_STATUS <<\_ACEOF
18799: for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18800: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18801: case $ac_file in
18802: - | *:- | *:-:* ) # input from stdin
18803: cat >$tmp/stdin
18804: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18805: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18806: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18807: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18808: * ) ac_file_in=$ac_file.in ;;
18809: esac
18810:
18811: # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18812: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18813: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18814: X"$ac_file" : 'X\(//\)[^/]' \| \
18815: X"$ac_file" : 'X\(//\)$' \| \
18816: X"$ac_file" : 'X\(/\)' \| \
18817: . : '\(.\)' 2>/dev/null ||
18818: echo X"$ac_file" |
18819: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18820: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18821: /^X\(\/\/\)$/{ s//\1/; q; }
18822: /^X\(\/\).*/{ s//\1/; q; }
18823: s/.*/./; q'`
18824: { if $as_mkdir_p; then
18825: mkdir -p "$ac_dir"
18826: else
18827: as_dir="$ac_dir"
18828: as_dirs=
18829: while test ! -d "$as_dir"; do
18830: as_dirs="$as_dir $as_dirs"
18831: as_dir=`(dirname "$as_dir") 2>/dev/null ||
18832: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18833: X"$as_dir" : 'X\(//\)[^/]' \| \
18834: X"$as_dir" : 'X\(//\)$' \| \
18835: X"$as_dir" : 'X\(/\)' \| \
18836: . : '\(.\)' 2>/dev/null ||
18837: echo X"$as_dir" |
18838: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18839: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18840: /^X\(\/\/\)$/{ s//\1/; q; }
18841: /^X\(\/\).*/{ s//\1/; q; }
18842: s/.*/./; q'`
18843: done
18844: test ! -n "$as_dirs" || mkdir $as_dirs
18845: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18846: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18847: { (exit 1); exit 1; }; }; }
18848:
18849: ac_builddir=.
18850:
18851: if test "$ac_dir" != .; then
18852: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18853: # A "../" for each directory in $ac_dir_suffix.
18854: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18855: else
18856: ac_dir_suffix= ac_top_builddir=
18857: fi
18858:
18859: case $srcdir in
18860: .) # No --srcdir option. We are building in place.
18861: ac_srcdir=.
18862: if test -z "$ac_top_builddir"; then
18863: ac_top_srcdir=.
18864: else
18865: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18866: fi ;;
18867: [\\/]* | ?:[\\/]* ) # Absolute path.
18868: ac_srcdir=$srcdir$ac_dir_suffix;
18869: ac_top_srcdir=$srcdir ;;
18870: *) # Relative path.
18871: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18872: ac_top_srcdir=$ac_top_builddir$srcdir ;;
18873: esac
18874:
18875: # Do not use `cd foo && pwd` to compute absolute paths, because
18876: # the directories may not exist.
18877: case `pwd` in
18878: .) ac_abs_builddir="$ac_dir";;
18879: *)
18880: case "$ac_dir" in
18881: .) ac_abs_builddir=`pwd`;;
18882: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18883: *) ac_abs_builddir=`pwd`/"$ac_dir";;
18884: esac;;
18885: esac
18886: case $ac_abs_builddir in
18887: .) ac_abs_top_builddir=${ac_top_builddir}.;;
18888: *)
18889: case ${ac_top_builddir}. in
18890: .) ac_abs_top_builddir=$ac_abs_builddir;;
18891: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18892: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18893: esac;;
18894: esac
18895: case $ac_abs_builddir in
18896: .) ac_abs_srcdir=$ac_srcdir;;
18897: *)
18898: case $ac_srcdir in
18899: .) ac_abs_srcdir=$ac_abs_builddir;;
18900: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18901: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18902: esac;;
18903: esac
18904: case $ac_abs_builddir in
18905: .) ac_abs_top_srcdir=$ac_top_srcdir;;
18906: *)
18907: case $ac_top_srcdir in
18908: .) ac_abs_top_srcdir=$ac_abs_builddir;;
18909: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18910: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18911: esac;;
18912: esac
18913:
18914:
18915: case $INSTALL in
18916: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18917: *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
18918: esac
18919:
18920: if test x"$ac_file" != x-; then
18921: { echo "$as_me:$LINENO: creating $ac_file" >&5
18922: echo "$as_me: creating $ac_file" >&6;}
18923: rm -f "$ac_file"
18924: fi
18925: # Let's still pretend it is `configure' which instantiates (i.e., don't
18926: # use $as_me), people would be surprised to read:
18927: # /* config.h. Generated by config.status. */
18928: if test x"$ac_file" = x-; then
18929: configure_input=
18930: else
18931: configure_input="$ac_file. "
18932: fi
18933: configure_input=$configure_input"Generated from `echo $ac_file_in |
18934: sed 's,.*/,,'` by configure."
18935:
18936: # First look for the input files in the build tree, otherwise in the
18937: # src tree.
18938: ac_file_inputs=`IFS=:
18939: for f in $ac_file_in; do
18940: case $f in
18941: -) echo $tmp/stdin ;;
18942: [\\/$]*)
18943: # Absolute (can't be DOS-style, as IFS=:)
18944: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18945: echo "$as_me: error: cannot find input file: $f" >&2;}
18946: { (exit 1); exit 1; }; }
18947: echo "$f";;
18948: *) # Relative
18949: if test -f "$f"; then
18950: # Build tree
18951: echo "$f"
18952: elif test -f "$srcdir/$f"; then
18953: # Source tree
18954: echo "$srcdir/$f"
18955: else
18956: # /dev/null tree
18957: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18958: echo "$as_me: error: cannot find input file: $f" >&2;}
18959: { (exit 1); exit 1; }; }
18960: fi;;
18961: esac
18962: done` || { (exit 1); exit 1; }
18963: _ACEOF
18964: cat >>$CONFIG_STATUS <<_ACEOF
18965: sed "$ac_vpsub
18966: $extrasub
18967: _ACEOF
18968: cat >>$CONFIG_STATUS <<\_ACEOF
18969: :t
18970: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18971: s,@configure_input@,$configure_input,;t t
18972: s,@srcdir@,$ac_srcdir,;t t
18973: s,@abs_srcdir@,$ac_abs_srcdir,;t t
18974: s,@top_srcdir@,$ac_top_srcdir,;t t
18975: s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18976: s,@builddir@,$ac_builddir,;t t
18977: s,@abs_builddir@,$ac_abs_builddir,;t t
18978: s,@top_builddir@,$ac_top_builddir,;t t
18979: s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18980: s,@INSTALL@,$ac_INSTALL,;t t
18981: " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18982: rm -f $tmp/stdin
18983: if test x"$ac_file" != x-; then
18984: mv $tmp/out $ac_file
18985: else
18986: cat $tmp/out
18987: rm -f $tmp/out
18988: fi
18989:
18990: done
18991: _ACEOF
18992: cat >>$CONFIG_STATUS <<\_ACEOF
18993:
18994: #
18995: # CONFIG_HEADER section.
18996: #
18997:
18998: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18999: # NAME is the cpp macro being defined and VALUE is the value it is being given.
19000: #
19001: # ac_d sets the value in "#define NAME VALUE" lines.
19002: ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19003: ac_dB='[ ].*$,\1#\2'
19004: ac_dC=' '
19005: ac_dD=',;t'
19006: # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19007: ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19008: ac_uB='$,\1#\2define\3'
19009: ac_uC=' '
19010: ac_uD=',;t'
19011:
19012: for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19013: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19014: case $ac_file in
19015: - | *:- | *:-:* ) # input from stdin
19016: cat >$tmp/stdin
19017: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19018: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19019: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19020: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19021: * ) ac_file_in=$ac_file.in ;;
19022: esac
19023:
19024: test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19025: echo "$as_me: creating $ac_file" >&6;}
19026:
19027: # First look for the input files in the build tree, otherwise in the
19028: # src tree.
19029: ac_file_inputs=`IFS=:
19030: for f in $ac_file_in; do
19031: case $f in
19032: -) echo $tmp/stdin ;;
19033: [\\/$]*)
19034: # Absolute (can't be DOS-style, as IFS=:)
19035: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19036: echo "$as_me: error: cannot find input file: $f" >&2;}
19037: { (exit 1); exit 1; }; }
19038: # Do quote $f, to prevent DOS paths from being IFS'd.
19039: echo "$f";;
19040: *) # Relative
19041: if test -f "$f"; then
19042: # Build tree
19043: echo "$f"
19044: elif test -f "$srcdir/$f"; then
19045: # Source tree
19046: echo "$srcdir/$f"
19047: else
19048: # /dev/null tree
19049: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19050: echo "$as_me: error: cannot find input file: $f" >&2;}
19051: { (exit 1); exit 1; }; }
19052: fi;;
19053: esac
19054: done` || { (exit 1); exit 1; }
19055: # Remove the trailing spaces.
19056: sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
19057:
19058: _ACEOF
19059:
19060: # Transform confdefs.h into two sed scripts, `conftest.defines' and
19061: # `conftest.undefs', that substitutes the proper values into
19062: # config.h.in to produce config.h. The first handles `#define'
19063: # templates, and the second `#undef' templates.
19064: # And first: Protect against being on the right side of a sed subst in
19065: # config.status. Protect against being in an unquoted here document
19066: # in config.status.
19067: rm -f conftest.defines conftest.undefs
19068: # Using a here document instead of a string reduces the quoting nightmare.
19069: # Putting comments in sed scripts is not portable.
19070: #
19071: # `end' is used to avoid that the second main sed command (meant for
19072: # 0-ary CPP macros) applies to n-ary macro definitions.
19073: # See the Autoconf documentation for `clear'.
19074: cat >confdef2sed.sed <<\_ACEOF
19075: s/[\\&,]/\\&/g
19076: s,[\\$`],\\&,g
19077: t clear
19078: : clear
19079: s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19080: t end
19081: s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19082: : end
19083: _ACEOF
19084: # If some macros were called several times there might be several times
19085: # the same #defines, which is useless. Nevertheless, we may not want to
19086: # sort them, since we want the *last* AC-DEFINE to be honored.
19087: uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19088: sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19089: rm -f confdef2sed.sed
19090:
19091: # This sed command replaces #undef with comments. This is necessary, for
19092: # example, in the case of _POSIX_SOURCE, which is predefined and required
19093: # on some systems where configure will not decide to define it.
19094: cat >>conftest.undefs <<\_ACEOF
19095: s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19096: _ACEOF
19097:
19098: # Break up conftest.defines because some shells have a limit on the size
19099: # of here documents, and old seds have small limits too (100 cmds).
19100: echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19101: echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19102: echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19103: echo ' :' >>$CONFIG_STATUS
19104: rm -f conftest.tail
19105: while grep . conftest.defines >/dev/null
19106: do
19107: # Write a limited-size here document to $tmp/defines.sed.
19108: echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19109: # Speed up: don't consider the non `#define' lines.
19110: echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
19111: # Work around the forget-to-reset-the-flag bug.
19112: echo 't clr' >>$CONFIG_STATUS
19113: echo ': clr' >>$CONFIG_STATUS
19114: sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19115: echo 'CEOF
19116: sed -f $tmp/defines.sed $tmp/in >$tmp/out
19117: rm -f $tmp/in
19118: mv $tmp/out $tmp/in
19119: ' >>$CONFIG_STATUS
19120: sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19121: rm -f conftest.defines
19122: mv conftest.tail conftest.defines
19123: done
19124: rm -f conftest.defines
19125: echo ' fi # grep' >>$CONFIG_STATUS
19126: echo >>$CONFIG_STATUS
19127:
19128: # Break up conftest.undefs because some shells have a limit on the size
19129: # of here documents, and old seds have small limits too (100 cmds).
19130: echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
19131: rm -f conftest.tail
19132: while grep . conftest.undefs >/dev/null
19133: do
19134: # Write a limited-size here document to $tmp/undefs.sed.
19135: echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19136: # Speed up: don't consider the non `#undef'
19137: echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
19138: # Work around the forget-to-reset-the-flag bug.
19139: echo 't clr' >>$CONFIG_STATUS
19140: echo ': clr' >>$CONFIG_STATUS
19141: sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19142: echo 'CEOF
19143: sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19144: rm -f $tmp/in
19145: mv $tmp/out $tmp/in
19146: ' >>$CONFIG_STATUS
19147: sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19148: rm -f conftest.undefs
19149: mv conftest.tail conftest.undefs
19150: done
19151: rm -f conftest.undefs
19152:
19153: cat >>$CONFIG_STATUS <<\_ACEOF
19154: # Let's still pretend it is `configure' which instantiates (i.e., don't
19155: # use $as_me), people would be surprised to read:
19156: # /* config.h. Generated by config.status. */
19157: if test x"$ac_file" = x-; then
19158: echo "/* Generated by configure. */" >$tmp/config.h
19159: else
19160: echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
19161: fi
19162: cat $tmp/in >>$tmp/config.h
19163: rm -f $tmp/in
19164: if test x"$ac_file" != x-; then
19165: if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
19166: { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19167: echo "$as_me: $ac_file is unchanged" >&6;}
19168: else
19169: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19170: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19171: X"$ac_file" : 'X\(//\)[^/]' \| \
19172: X"$ac_file" : 'X\(//\)$' \| \
19173: X"$ac_file" : 'X\(/\)' \| \
19174: . : '\(.\)' 2>/dev/null ||
19175: echo X"$ac_file" |
19176: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19177: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19178: /^X\(\/\/\)$/{ s//\1/; q; }
19179: /^X\(\/\).*/{ s//\1/; q; }
19180: s/.*/./; q'`
19181: { if $as_mkdir_p; then
19182: mkdir -p "$ac_dir"
19183: else
19184: as_dir="$ac_dir"
19185: as_dirs=
19186: while test ! -d "$as_dir"; do
19187: as_dirs="$as_dir $as_dirs"
19188: as_dir=`(dirname "$as_dir") 2>/dev/null ||
19189: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19190: X"$as_dir" : 'X\(//\)[^/]' \| \
19191: X"$as_dir" : 'X\(//\)$' \| \
19192: X"$as_dir" : 'X\(/\)' \| \
19193: . : '\(.\)' 2>/dev/null ||
19194: echo X"$as_dir" |
19195: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19196: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19197: /^X\(\/\/\)$/{ s//\1/; q; }
19198: /^X\(\/\).*/{ s//\1/; q; }
19199: s/.*/./; q'`
19200: done
19201: test ! -n "$as_dirs" || mkdir $as_dirs
19202: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19203: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19204: { (exit 1); exit 1; }; }; }
19205:
19206: rm -f $ac_file
19207: mv $tmp/config.h $ac_file
19208: fi
19209: else
19210: cat $tmp/config.h
19211: rm -f $tmp/config.h
19212: fi
19213: # Compute $ac_file's index in $config_headers.
19214: _am_stamp_count=1
19215: for _am_header in $config_headers :; do
19216: case $_am_header in
19217: $ac_file | $ac_file:* )
19218: break ;;
19219: * )
19220: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19221: esac
19222: done
19223: echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
19224: $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19225: X$ac_file : 'X\(//\)[^/]' \| \
19226: X$ac_file : 'X\(//\)$' \| \
19227: X$ac_file : 'X\(/\)' \| \
19228: . : '\(.\)' 2>/dev/null ||
19229: echo X$ac_file |
19230: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19231: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19232: /^X\(\/\/\)$/{ s//\1/; q; }
19233: /^X\(\/\).*/{ s//\1/; q; }
19234: s/.*/./; q'`/stamp-h$_am_stamp_count
19235: done
19236: _ACEOF
19237: cat >>$CONFIG_STATUS <<\_ACEOF
19238:
19239: #
19240: # CONFIG_COMMANDS section.
19241: #
19242: for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19243: ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19244: ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19245: ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19246: $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19247: X"$ac_dest" : 'X\(//\)[^/]' \| \
19248: X"$ac_dest" : 'X\(//\)$' \| \
19249: X"$ac_dest" : 'X\(/\)' \| \
19250: . : '\(.\)' 2>/dev/null ||
19251: echo X"$ac_dest" |
19252: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19253: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19254: /^X\(\/\/\)$/{ s//\1/; q; }
19255: /^X\(\/\).*/{ s//\1/; q; }
19256: s/.*/./; q'`
19257: { if $as_mkdir_p; then
19258: mkdir -p "$ac_dir"
19259: else
19260: as_dir="$ac_dir"
19261: as_dirs=
19262: while test ! -d "$as_dir"; do
19263: as_dirs="$as_dir $as_dirs"
19264: as_dir=`(dirname "$as_dir") 2>/dev/null ||
19265: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19266: X"$as_dir" : 'X\(//\)[^/]' \| \
19267: X"$as_dir" : 'X\(//\)$' \| \
19268: X"$as_dir" : 'X\(/\)' \| \
19269: . : '\(.\)' 2>/dev/null ||
19270: echo X"$as_dir" |
19271: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19272: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19273: /^X\(\/\/\)$/{ s//\1/; q; }
19274: /^X\(\/\).*/{ s//\1/; q; }
19275: s/.*/./; q'`
19276: done
19277: test ! -n "$as_dirs" || mkdir $as_dirs
19278: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19279: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19280: { (exit 1); exit 1; }; }; }
19281:
19282: ac_builddir=.
19283:
19284: if test "$ac_dir" != .; then
19285: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19286: # A "../" for each directory in $ac_dir_suffix.
19287: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19288: else
19289: ac_dir_suffix= ac_top_builddir=
19290: fi
19291:
19292: case $srcdir in
19293: .) # No --srcdir option. We are building in place.
19294: ac_srcdir=.
19295: if test -z "$ac_top_builddir"; then
19296: ac_top_srcdir=.
19297: else
19298: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19299: fi ;;
19300: [\\/]* | ?:[\\/]* ) # Absolute path.
19301: ac_srcdir=$srcdir$ac_dir_suffix;
19302: ac_top_srcdir=$srcdir ;;
19303: *) # Relative path.
19304: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19305: ac_top_srcdir=$ac_top_builddir$srcdir ;;
19306: esac
19307:
19308: # Do not use `cd foo && pwd` to compute absolute paths, because
19309: # the directories may not exist.
19310: case `pwd` in
19311: .) ac_abs_builddir="$ac_dir";;
19312: *)
19313: case "$ac_dir" in
19314: .) ac_abs_builddir=`pwd`;;
19315: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
19316: *) ac_abs_builddir=`pwd`/"$ac_dir";;
19317: esac;;
19318: esac
19319: case $ac_abs_builddir in
19320: .) ac_abs_top_builddir=${ac_top_builddir}.;;
19321: *)
19322: case ${ac_top_builddir}. in
19323: .) ac_abs_top_builddir=$ac_abs_builddir;;
19324: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
19325: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
19326: esac;;
19327: esac
19328: case $ac_abs_builddir in
19329: .) ac_abs_srcdir=$ac_srcdir;;
19330: *)
19331: case $ac_srcdir in
19332: .) ac_abs_srcdir=$ac_abs_builddir;;
19333: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
19334: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
19335: esac;;
19336: esac
19337: case $ac_abs_builddir in
19338: .) ac_abs_top_srcdir=$ac_top_srcdir;;
19339: *)
19340: case $ac_top_srcdir in
19341: .) ac_abs_top_srcdir=$ac_abs_builddir;;
19342: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
19343: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
19344: esac;;
19345: esac
19346:
19347:
19348: { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19349: echo "$as_me: executing $ac_dest commands" >&6;}
19350: case $ac_dest in
19351: depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
19352: # Strip MF so we end up with the name of the file.
19353: mf=`echo "$mf" | sed -e 's/:.*$//'`
19354: # Check whether this is an Automake generated Makefile or not.
19355: # We used to match only the files named `Makefile.in', but
19356: # some people rename them; so instead we look at the file content.
19357: # Grep'ing the first line is not enough: some people post-process
19358: # each Makefile.in and add a new line on top of each file to say so.
19359: # So let's grep whole file.
19360: if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
19361: dirpart=`(dirname "$mf") 2>/dev/null ||
19362: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19363: X"$mf" : 'X\(//\)[^/]' \| \
19364: X"$mf" : 'X\(//\)$' \| \
19365: X"$mf" : 'X\(/\)' \| \
19366: . : '\(.\)' 2>/dev/null ||
19367: echo X"$mf" |
19368: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19369: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19370: /^X\(\/\/\)$/{ s//\1/; q; }
19371: /^X\(\/\).*/{ s//\1/; q; }
19372: s/.*/./; q'`
19373: else
19374: continue
19375: fi
19376: # Extract the definition of DEPDIR, am__include, and am__quote
19377: # from the Makefile without running `make'.
19378: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19379: test -z "$DEPDIR" && continue
19380: am__include=`sed -n 's/^am__include = //p' < "$mf"`
19381: test -z "am__include" && continue
19382: am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19383: # When using ansi2knr, U may be empty or an underscore; expand it
19384: U=`sed -n 's/^U = //p' < "$mf"`
19385: # Find all dependency output files, they are included files with
19386: # $(DEPDIR) in their names. We invoke sed twice because it is the
19387: # simplest approach to changing $(DEPDIR) to its actual value in the
19388: # expansion.
19389: for file in `sed -n "
19390: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19391: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19392: # Make sure the directory exists.
19393: test -f "$dirpart/$file" && continue
19394: fdir=`(dirname "$file") 2>/dev/null ||
19395: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19396: X"$file" : 'X\(//\)[^/]' \| \
19397: X"$file" : 'X\(//\)$' \| \
19398: X"$file" : 'X\(/\)' \| \
19399: . : '\(.\)' 2>/dev/null ||
19400: echo X"$file" |
19401: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19402: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19403: /^X\(\/\/\)$/{ s//\1/; q; }
19404: /^X\(\/\).*/{ s//\1/; q; }
19405: s/.*/./; q'`
19406: { if $as_mkdir_p; then
19407: mkdir -p $dirpart/$fdir
19408: else
19409: as_dir=$dirpart/$fdir
19410: as_dirs=
19411: while test ! -d "$as_dir"; do
19412: as_dirs="$as_dir $as_dirs"
19413: as_dir=`(dirname "$as_dir") 2>/dev/null ||
19414: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19415: X"$as_dir" : 'X\(//\)[^/]' \| \
19416: X"$as_dir" : 'X\(//\)$' \| \
19417: X"$as_dir" : 'X\(/\)' \| \
19418: . : '\(.\)' 2>/dev/null ||
19419: echo X"$as_dir" |
19420: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19421: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19422: /^X\(\/\/\)$/{ s//\1/; q; }
19423: /^X\(\/\).*/{ s//\1/; q; }
19424: s/.*/./; q'`
19425: done
19426: test ! -n "$as_dirs" || mkdir $as_dirs
19427: fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
19428: echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
19429: { (exit 1); exit 1; }; }; }
19430:
19431: # echo "creating $dirpart/$file"
19432: echo '# dummy' > "$dirpart/$file"
19433: done
19434: done
19435: ;;
19436: libtool )
19437:
19438: # See if we are running on zsh, and set the options which allow our
19439: # commands through without removal of \ escapes.
19440: if test -n "${ZSH_VERSION+set}" ; then
19441: setopt NO_GLOB_SUBST
19442: fi
19443:
19444: cfgfile="${ofile}T"
19445: trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19446: $RM "$cfgfile"
19447:
19448: cat <<_LT_EOF >> "$cfgfile"
19449: #! $SHELL
19450:
19451: # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19452: # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19453: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19454: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19455: #
19456: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19457: # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19458: # Foundation, Inc.
19459: # Written by Gordon Matzigkeit, 1996
19460: #
19461: # This file is part of GNU Libtool.
19462: #
19463: # GNU Libtool is free software; you can redistribute it and/or
19464: # modify it under the terms of the GNU General Public License as
19465: # published by the Free Software Foundation; either version 2 of
19466: # the License, or (at your option) any later version.
19467: #
19468: # As a special exception to the GNU General Public License,
19469: # if you distribute this file as part of a program or library that
19470: # is built using GNU Libtool, you may include this file under the
19471: # same distribution terms that you use for the rest of that program.
19472: #
19473: # GNU Libtool is distributed in the hope that it will be useful,
19474: # but WITHOUT ANY WARRANTY; without even the implied warranty of
19475: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19476: # GNU General Public License for more details.
19477: #
19478: # You should have received a copy of the GNU General Public License
19479: # along with GNU Libtool; see the file COPYING. If not, a copy
19480: # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19481: # obtained by writing to the Free Software Foundation, Inc.,
19482: # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19483:
19484:
19485: # The names of the tagged configurations supported by this script.
19486: available_tags="CXX "
19487:
19488: # ### BEGIN LIBTOOL CONFIG
19489:
19490: # Which release of libtool.m4 was used?
19491: macro_version=$macro_version
19492: macro_revision=$macro_revision
19493:
1.42 ! moko 19494: # Whether or not to build static libraries.
! 19495: build_old_libs=$enable_static
! 19496:
1.36 moko 19497: # Assembler program.
19498: AS=$lt_AS
19499:
19500: # DLL creation program.
19501: DLLTOOL=$lt_DLLTOOL
19502:
19503: # Object dumper program.
19504: OBJDUMP=$lt_OBJDUMP
19505:
1.35 moko 19506: # Whether or not to build shared libraries.
19507: build_libtool_libs=$enable_shared
19508:
19509: # What type of objects to build.
19510: pic_mode=$pic_mode
19511:
19512: # Whether or not to optimize for fast installation.
19513: fast_install=$enable_fast_install
19514:
19515: # Shell to use when invoking shell scripts.
19516: SHELL=$lt_SHELL
19517:
19518: # An echo program that protects backslashes.
19519: ECHO=$lt_ECHO
19520:
19521: # The PATH separator for the build system.
19522: PATH_SEPARATOR=$lt_PATH_SEPARATOR
19523:
19524: # The host system.
19525: host_alias=$host_alias
19526: host=$host
19527: host_os=$host_os
19528:
19529: # The build system.
19530: build_alias=$build_alias
19531: build=$build
19532: build_os=$build_os
19533:
19534: # A sed program that does not truncate output.
19535: SED=$lt_SED
19536:
19537: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19538: Xsed="\$SED -e 1s/^X//"
19539:
19540: # A grep program that handles long lines.
19541: GREP=$lt_GREP
19542:
19543: # An ERE matcher.
19544: EGREP=$lt_EGREP
19545:
19546: # A literal string matcher.
19547: FGREP=$lt_FGREP
19548:
19549: # A BSD- or MS-compatible name lister.
19550: NM=$lt_NM
19551:
19552: # Whether we need soft or hard links.
19553: LN_S=$lt_LN_S
19554:
19555: # What is the maximum length of a command?
19556: max_cmd_len=$max_cmd_len
19557:
19558: # Object file suffix (normally "o").
19559: objext=$ac_objext
19560:
19561: # Executable file suffix (normally "").
19562: exeext=$exeext
19563:
19564: # whether the shell understands "unset".
19565: lt_unset=$lt_unset
19566:
19567: # turn spaces into newlines.
19568: SP2NL=$lt_lt_SP2NL
19569:
19570: # turn newlines into spaces.
19571: NL2SP=$lt_lt_NL2SP
19572:
19573: # convert \$build file names to \$host format.
19574: to_host_file_cmd=$lt_cv_to_host_file_cmd
19575:
19576: # convert \$build files to toolchain format.
19577: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19578:
19579: # Method to check whether dependent libraries are shared objects.
19580: deplibs_check_method=$lt_deplibs_check_method
19581:
19582: # Command to use when deplibs_check_method = "file_magic".
19583: file_magic_cmd=$lt_file_magic_cmd
19584:
19585: # How to find potential files when deplibs_check_method = "file_magic".
19586: file_magic_glob=$lt_file_magic_glob
19587:
19588: # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19589: want_nocaseglob=$lt_want_nocaseglob
19590:
19591: # Command to associate shared and link libraries.
19592: sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19593:
19594: # The archiver.
19595: AR=$lt_AR
19596:
19597: # Flags to create an archive.
19598: AR_FLAGS=$lt_AR_FLAGS
19599:
19600: # How to feed a file listing to the archiver.
19601: archiver_list_spec=$lt_archiver_list_spec
19602:
19603: # A symbol stripping program.
19604: STRIP=$lt_STRIP
19605:
19606: # Commands used to install an old-style archive.
19607: RANLIB=$lt_RANLIB
19608: old_postinstall_cmds=$lt_old_postinstall_cmds
19609: old_postuninstall_cmds=$lt_old_postuninstall_cmds
19610:
19611: # Whether to use a lock for old archive extraction.
19612: lock_old_archive_extraction=$lock_old_archive_extraction
19613:
19614: # A C compiler.
19615: LTCC=$lt_CC
19616:
19617: # LTCC compiler flags.
19618: LTCFLAGS=$lt_CFLAGS
19619:
19620: # Take the output of nm and produce a listing of raw symbols and C names.
19621: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19622:
19623: # Transform the output of nm in a proper C declaration.
19624: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19625:
19626: # Transform the output of nm in a C name address pair.
19627: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19628:
19629: # Transform the output of nm in a C name address pair when lib prefix is needed.
19630: global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19631:
19632: # Specify filename containing input files for \$NM.
19633: nm_file_list_spec=$lt_nm_file_list_spec
19634:
19635: # The root where to search for dependent libraries,and in which our libraries should be installed.
19636: lt_sysroot=$lt_sysroot
19637:
19638: # The name of the directory that contains temporary libtool files.
19639: objdir=$objdir
19640:
19641: # Used to examine libraries when file_magic_cmd begins with "file".
19642: MAGIC_CMD=$MAGIC_CMD
19643:
19644: # Must we lock files when doing compilation?
19645: need_locks=$lt_need_locks
19646:
19647: # Manifest tool.
19648: MANIFEST_TOOL=$lt_MANIFEST_TOOL
19649:
19650: # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19651: DSYMUTIL=$lt_DSYMUTIL
19652:
19653: # Tool to change global to local symbols on Mac OS X.
19654: NMEDIT=$lt_NMEDIT
19655:
19656: # Tool to manipulate fat objects and archives on Mac OS X.
19657: LIPO=$lt_LIPO
19658:
19659: # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19660: OTOOL=$lt_OTOOL
19661:
19662: # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19663: OTOOL64=$lt_OTOOL64
19664:
19665: # Old archive suffix (normally "a").
19666: libext=$libext
19667:
19668: # Shared library suffix (normally ".so").
19669: shrext_cmds=$lt_shrext_cmds
19670:
19671: # The commands to extract the exported symbol list from a shared archive.
19672: extract_expsyms_cmds=$lt_extract_expsyms_cmds
19673:
19674: # Variables whose values should be saved in libtool wrapper scripts and
19675: # restored at link time.
19676: variables_saved_for_relink=$lt_variables_saved_for_relink
19677:
19678: # Do we need the "lib" prefix for modules?
19679: need_lib_prefix=$need_lib_prefix
19680:
19681: # Do we need a version for libraries?
19682: need_version=$need_version
19683:
19684: # Library versioning type.
19685: version_type=$version_type
19686:
19687: # Shared library runtime path variable.
19688: runpath_var=$runpath_var
19689:
19690: # Shared library path variable.
19691: shlibpath_var=$shlibpath_var
19692:
19693: # Is shlibpath searched before the hard-coded library search path?
19694: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19695:
19696: # Format of library name prefix.
19697: libname_spec=$lt_libname_spec
19698:
19699: # List of archive names. First name is the real one, the rest are links.
19700: # The last name is the one that the linker finds with -lNAME
19701: library_names_spec=$lt_library_names_spec
19702:
19703: # The coded name of the library, if different from the real name.
19704: soname_spec=$lt_soname_spec
19705:
19706: # Permission mode override for installation of shared libraries.
19707: install_override_mode=$lt_install_override_mode
19708:
19709: # Command to use after installation of a shared archive.
19710: postinstall_cmds=$lt_postinstall_cmds
19711:
19712: # Command to use after uninstallation of a shared archive.
19713: postuninstall_cmds=$lt_postuninstall_cmds
19714:
19715: # Commands used to finish a libtool library installation in a directory.
19716: finish_cmds=$lt_finish_cmds
19717:
19718: # As "finish_cmds", except a single script fragment to be evaled but
19719: # not shown.
19720: finish_eval=$lt_finish_eval
19721:
19722: # Whether we should hardcode library paths into libraries.
19723: hardcode_into_libs=$hardcode_into_libs
19724:
19725: # Compile-time system search path for libraries.
19726: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19727:
19728: # Run-time system search path for libraries.
19729: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19730:
19731: # Whether dlopen is supported.
19732: dlopen_support=$enable_dlopen
19733:
19734: # Whether dlopen of programs is supported.
19735: dlopen_self=$enable_dlopen_self
19736:
19737: # Whether dlopen of statically linked programs is supported.
19738: dlopen_self_static=$enable_dlopen_self_static
19739:
19740: # Commands to strip libraries.
19741: old_striplib=$lt_old_striplib
19742: striplib=$lt_striplib
19743:
19744:
19745: # The linker used to build libraries.
19746: LD=$lt_LD
19747:
19748: # How to create reloadable object files.
19749: reload_flag=$lt_reload_flag
19750: reload_cmds=$lt_reload_cmds
19751:
19752: # Commands used to build an old-style archive.
19753: old_archive_cmds=$lt_old_archive_cmds
19754:
19755: # A language specific compiler.
19756: CC=$lt_compiler
19757:
19758: # Is the compiler the GNU compiler?
19759: with_gcc=$GCC
19760:
19761: # Compiler flag to turn off builtin functions.
19762: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19763:
19764: # Additional compiler flags for building library objects.
19765: pic_flag=$lt_lt_prog_compiler_pic
19766:
19767: # How to pass a linker flag through the compiler.
19768: wl=$lt_lt_prog_compiler_wl
19769:
19770: # Compiler flag to prevent dynamic linking.
19771: link_static_flag=$lt_lt_prog_compiler_static
19772:
19773: # Does compiler simultaneously support -c and -o options?
19774: compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19775:
19776: # Whether or not to add -lc for building shared libraries.
19777: build_libtool_need_lc=$archive_cmds_need_lc
19778:
19779: # Whether or not to disallow shared libs when runtime libs are static.
19780: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19781:
19782: # Compiler flag to allow reflexive dlopens.
19783: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19784:
19785: # Compiler flag to generate shared objects directly from archives.
19786: whole_archive_flag_spec=$lt_whole_archive_flag_spec
19787:
19788: # Whether the compiler copes with passing no objects directly.
19789: compiler_needs_object=$lt_compiler_needs_object
19790:
19791: # Create an old-style archive from a shared archive.
19792: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19793:
19794: # Create a temporary old-style archive to link instead of a shared archive.
19795: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19796:
19797: # Commands used to build a shared archive.
19798: archive_cmds=$lt_archive_cmds
19799: archive_expsym_cmds=$lt_archive_expsym_cmds
19800:
19801: # Commands used to build a loadable module if different from building
19802: # a shared archive.
19803: module_cmds=$lt_module_cmds
19804: module_expsym_cmds=$lt_module_expsym_cmds
19805:
19806: # Whether we are building with GNU ld or not.
19807: with_gnu_ld=$lt_with_gnu_ld
19808:
19809: # Flag that allows shared libraries with undefined symbols to be built.
19810: allow_undefined_flag=$lt_allow_undefined_flag
19811:
19812: # Flag that enforces no undefined symbols.
19813: no_undefined_flag=$lt_no_undefined_flag
19814:
19815: # Flag to hardcode \$libdir into a binary during linking.
19816: # This must work even if \$libdir does not exist
19817: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19818:
19819: # Whether we need a single "-rpath" flag with a separated argument.
19820: hardcode_libdir_separator=$lt_hardcode_libdir_separator
19821:
19822: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19823: # DIR into the resulting binary.
19824: hardcode_direct=$hardcode_direct
19825:
19826: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19827: # DIR into the resulting binary and the resulting library dependency is
19828: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19829: # library is relocated.
19830: hardcode_direct_absolute=$hardcode_direct_absolute
19831:
19832: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19833: # into the resulting binary.
19834: hardcode_minus_L=$hardcode_minus_L
19835:
19836: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19837: # into the resulting binary.
19838: hardcode_shlibpath_var=$hardcode_shlibpath_var
19839:
19840: # Set to "yes" if building a shared library automatically hardcodes DIR
19841: # into the library and all subsequent libraries and executables linked
19842: # against it.
19843: hardcode_automatic=$hardcode_automatic
19844:
19845: # Set to yes if linker adds runtime paths of dependent libraries
19846: # to runtime path list.
19847: inherit_rpath=$inherit_rpath
19848:
19849: # Whether libtool must link a program against all its dependency libraries.
19850: link_all_deplibs=$link_all_deplibs
19851:
19852: # Set to "yes" if exported symbols are required.
19853: always_export_symbols=$always_export_symbols
19854:
19855: # The commands to list exported symbols.
19856: export_symbols_cmds=$lt_export_symbols_cmds
19857:
19858: # Symbols that should not be listed in the preloaded symbols.
19859: exclude_expsyms=$lt_exclude_expsyms
19860:
19861: # Symbols that must always be exported.
19862: include_expsyms=$lt_include_expsyms
19863:
19864: # Commands necessary for linking programs (against libraries) with templates.
19865: prelink_cmds=$lt_prelink_cmds
19866:
19867: # Commands necessary for finishing linking programs.
19868: postlink_cmds=$lt_postlink_cmds
19869:
19870: # Specify filename containing input files.
19871: file_list_spec=$lt_file_list_spec
19872:
19873: # How to hardcode a shared library path into an executable.
19874: hardcode_action=$hardcode_action
19875:
19876: # The directories searched by this compiler when creating a shared library.
19877: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19878:
19879: # Dependencies to place before and after the objects being linked to
19880: # create a shared library.
19881: predep_objects=$lt_predep_objects
19882: postdep_objects=$lt_postdep_objects
19883: predeps=$lt_predeps
19884: postdeps=$lt_postdeps
19885:
19886: # The library search path used internally by the compiler when linking
19887: # a shared library.
19888: compiler_lib_search_path=$lt_compiler_lib_search_path
19889:
19890: # ### END LIBTOOL CONFIG
19891:
19892: _LT_EOF
19893:
19894: case $host_os in
19895: aix3*)
19896: cat <<\_LT_EOF >> "$cfgfile"
19897: # AIX sometimes has problems with the GCC collect2 program. For some
19898: # reason, if we set the COLLECT_NAMES environment variable, the problems
19899: # vanish in a puff of smoke.
19900: if test "X${COLLECT_NAMES+set}" != Xset; then
19901: COLLECT_NAMES=
19902: export COLLECT_NAMES
19903: fi
19904: _LT_EOF
19905: ;;
19906: esac
19907:
19908:
19909: ltmain="$ac_aux_dir/ltmain.sh"
19910:
19911:
19912: # We use sed instead of cat because bash on DJGPP gets confused if
19913: # if finds mixed CR/LF and LF-only lines. Since sed operates in
19914: # text mode, it properly converts lines to CR/LF. This bash problem
19915: # is reportedly fixed, but why not run on old versions too?
19916: sed '$q' "$ltmain" >> "$cfgfile" \
19917: || (rm -f "$cfgfile"; exit 1)
19918:
19919: if test x"$xsi_shell" = xyes; then
19920: sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19921: func_dirname ()\
19922: {\
19923: \ case ${1} in\
19924: \ */*) func_dirname_result="${1%/*}${2}" ;;\
19925: \ * ) func_dirname_result="${3}" ;;\
19926: \ esac\
19927: } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19928: && mv -f "$cfgfile.tmp" "$cfgfile" \
19929: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19930: test 0 -eq $? || _lt_function_replace_fail=:
19931:
19932:
19933: sed -e '/^func_basename ()$/,/^} # func_basename /c\
19934: func_basename ()\
19935: {\
19936: \ func_basename_result="${1##*/}"\
19937: } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
19938: && mv -f "$cfgfile.tmp" "$cfgfile" \
19939: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19940: test 0 -eq $? || _lt_function_replace_fail=:
19941:
19942:
19943: sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
19944: func_dirname_and_basename ()\
19945: {\
19946: \ case ${1} in\
19947: \ */*) func_dirname_result="${1%/*}${2}" ;;\
19948: \ * ) func_dirname_result="${3}" ;;\
19949: \ esac\
19950: \ func_basename_result="${1##*/}"\
19951: } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
19952: && mv -f "$cfgfile.tmp" "$cfgfile" \
19953: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19954: test 0 -eq $? || _lt_function_replace_fail=:
19955:
19956:
19957: sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
19958: func_stripname ()\
19959: {\
19960: \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
19961: \ # positional parameters, so assign one to ordinary parameter first.\
19962: \ func_stripname_result=${3}\
19963: \ func_stripname_result=${func_stripname_result#"${1}"}\
19964: \ func_stripname_result=${func_stripname_result%"${2}"}\
19965: } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
19966: && mv -f "$cfgfile.tmp" "$cfgfile" \
19967: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19968: test 0 -eq $? || _lt_function_replace_fail=:
19969:
19970:
19971: sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
19972: func_split_long_opt ()\
19973: {\
19974: \ func_split_long_opt_name=${1%%=*}\
19975: \ func_split_long_opt_arg=${1#*=}\
19976: } # Extended-shell func_split_long_opt 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_split_short_opt ()$/,/^} # func_split_short_opt /c\
19983: func_split_short_opt ()\
19984: {\
19985: \ func_split_short_opt_arg=${1#??}\
19986: \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
19987: } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
19988: && mv -f "$cfgfile.tmp" "$cfgfile" \
19989: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19990: test 0 -eq $? || _lt_function_replace_fail=:
19991:
19992:
19993: sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
19994: func_lo2o ()\
19995: {\
19996: \ case ${1} in\
19997: \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
19998: \ *) func_lo2o_result=${1} ;;\
19999: \ esac\
20000: } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20001: && mv -f "$cfgfile.tmp" "$cfgfile" \
20002: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20003: test 0 -eq $? || _lt_function_replace_fail=:
20004:
20005:
20006: sed -e '/^func_xform ()$/,/^} # func_xform /c\
20007: func_xform ()\
20008: {\
20009: func_xform_result=${1%.*}.lo\
20010: } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20011: && mv -f "$cfgfile.tmp" "$cfgfile" \
20012: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20013: test 0 -eq $? || _lt_function_replace_fail=:
20014:
20015:
20016: sed -e '/^func_arith ()$/,/^} # func_arith /c\
20017: func_arith ()\
20018: {\
20019: func_arith_result=$(( $* ))\
20020: } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20021: && mv -f "$cfgfile.tmp" "$cfgfile" \
20022: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20023: test 0 -eq $? || _lt_function_replace_fail=:
20024:
20025:
20026: sed -e '/^func_len ()$/,/^} # func_len /c\
20027: func_len ()\
20028: {\
20029: func_len_result=${#1}\
20030: } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20031: && mv -f "$cfgfile.tmp" "$cfgfile" \
20032: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20033: test 0 -eq $? || _lt_function_replace_fail=:
20034:
20035: fi
20036:
20037: if test x"$lt_shell_append" = xyes; then
20038: sed -e '/^func_append ()$/,/^} # func_append /c\
20039: func_append ()\
20040: {\
20041: eval "${1}+=\\${2}"\
20042: } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20043: && mv -f "$cfgfile.tmp" "$cfgfile" \
20044: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20045: test 0 -eq $? || _lt_function_replace_fail=:
20046:
20047:
20048: sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20049: func_append_quoted ()\
20050: {\
20051: \ func_quote_for_eval "${2}"\
20052: \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20053: } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20054: && mv -f "$cfgfile.tmp" "$cfgfile" \
20055: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20056: test 0 -eq $? || _lt_function_replace_fail=:
20057:
20058:
20059: # Save a `func_append' function call where possible by direct use of '+='
20060: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20061: && mv -f "$cfgfile.tmp" "$cfgfile" \
20062: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20063: test 0 -eq $? || _lt_function_replace_fail=:
20064: else
20065: # Save a `func_append' function call even when '+=' is not available
20066: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20067: && mv -f "$cfgfile.tmp" "$cfgfile" \
20068: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20069: test 0 -eq $? || _lt_function_replace_fail=:
20070: fi
20071:
20072: if test x"$_lt_function_replace_fail" = x":"; then
20073: { echo "$as_me:$LINENO: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20074: echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20075: fi
20076:
20077:
20078: mv -f "$cfgfile" "$ofile" ||
20079: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20080: chmod +x "$ofile"
20081:
20082:
20083: cat <<_LT_EOF >> "$ofile"
20084:
20085: # ### BEGIN LIBTOOL TAG CONFIG: CXX
20086:
20087: # The linker used to build libraries.
20088: LD=$lt_LD_CXX
20089:
20090: # How to create reloadable object files.
20091: reload_flag=$lt_reload_flag_CXX
20092: reload_cmds=$lt_reload_cmds_CXX
20093:
20094: # Commands used to build an old-style archive.
20095: old_archive_cmds=$lt_old_archive_cmds_CXX
20096:
20097: # A language specific compiler.
20098: CC=$lt_compiler_CXX
20099:
20100: # Is the compiler the GNU compiler?
20101: with_gcc=$GCC_CXX
20102:
20103: # Compiler flag to turn off builtin functions.
20104: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20105:
20106: # Additional compiler flags for building library objects.
20107: pic_flag=$lt_lt_prog_compiler_pic_CXX
20108:
20109: # How to pass a linker flag through the compiler.
20110: wl=$lt_lt_prog_compiler_wl_CXX
20111:
20112: # Compiler flag to prevent dynamic linking.
20113: link_static_flag=$lt_lt_prog_compiler_static_CXX
20114:
20115: # Does compiler simultaneously support -c and -o options?
20116: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20117:
20118: # Whether or not to add -lc for building shared libraries.
20119: build_libtool_need_lc=$archive_cmds_need_lc_CXX
20120:
20121: # Whether or not to disallow shared libs when runtime libs are static.
20122: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20123:
20124: # Compiler flag to allow reflexive dlopens.
20125: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20126:
20127: # Compiler flag to generate shared objects directly from archives.
20128: whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20129:
20130: # Whether the compiler copes with passing no objects directly.
20131: compiler_needs_object=$lt_compiler_needs_object_CXX
20132:
20133: # Create an old-style archive from a shared archive.
20134: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20135:
20136: # Create a temporary old-style archive to link instead of a shared archive.
20137: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20138:
20139: # Commands used to build a shared archive.
20140: archive_cmds=$lt_archive_cmds_CXX
20141: archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20142:
20143: # Commands used to build a loadable module if different from building
20144: # a shared archive.
20145: module_cmds=$lt_module_cmds_CXX
20146: module_expsym_cmds=$lt_module_expsym_cmds_CXX
20147:
20148: # Whether we are building with GNU ld or not.
20149: with_gnu_ld=$lt_with_gnu_ld_CXX
20150:
20151: # Flag that allows shared libraries with undefined symbols to be built.
20152: allow_undefined_flag=$lt_allow_undefined_flag_CXX
20153:
20154: # Flag that enforces no undefined symbols.
20155: no_undefined_flag=$lt_no_undefined_flag_CXX
20156:
20157: # Flag to hardcode \$libdir into a binary during linking.
20158: # This must work even if \$libdir does not exist
20159: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20160:
20161: # Whether we need a single "-rpath" flag with a separated argument.
20162: hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20163:
20164: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20165: # DIR into the resulting binary.
20166: hardcode_direct=$hardcode_direct_CXX
20167:
20168: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20169: # DIR into the resulting binary and the resulting library dependency is
20170: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20171: # library is relocated.
20172: hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20173:
20174: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20175: # into the resulting binary.
20176: hardcode_minus_L=$hardcode_minus_L_CXX
20177:
20178: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20179: # into the resulting binary.
20180: hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20181:
20182: # Set to "yes" if building a shared library automatically hardcodes DIR
20183: # into the library and all subsequent libraries and executables linked
20184: # against it.
20185: hardcode_automatic=$hardcode_automatic_CXX
20186:
20187: # Set to yes if linker adds runtime paths of dependent libraries
20188: # to runtime path list.
20189: inherit_rpath=$inherit_rpath_CXX
20190:
20191: # Whether libtool must link a program against all its dependency libraries.
20192: link_all_deplibs=$link_all_deplibs_CXX
20193:
20194: # Set to "yes" if exported symbols are required.
20195: always_export_symbols=$always_export_symbols_CXX
20196:
20197: # The commands to list exported symbols.
20198: export_symbols_cmds=$lt_export_symbols_cmds_CXX
20199:
20200: # Symbols that should not be listed in the preloaded symbols.
20201: exclude_expsyms=$lt_exclude_expsyms_CXX
20202:
20203: # Symbols that must always be exported.
20204: include_expsyms=$lt_include_expsyms_CXX
20205:
20206: # Commands necessary for linking programs (against libraries) with templates.
20207: prelink_cmds=$lt_prelink_cmds_CXX
20208:
20209: # Commands necessary for finishing linking programs.
20210: postlink_cmds=$lt_postlink_cmds_CXX
20211:
20212: # Specify filename containing input files.
20213: file_list_spec=$lt_file_list_spec_CXX
20214:
20215: # How to hardcode a shared library path into an executable.
20216: hardcode_action=$hardcode_action_CXX
20217:
20218: # The directories searched by this compiler when creating a shared library.
20219: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20220:
20221: # Dependencies to place before and after the objects being linked to
20222: # create a shared library.
20223: predep_objects=$lt_predep_objects_CXX
20224: postdep_objects=$lt_postdep_objects_CXX
20225: predeps=$lt_predeps_CXX
20226: postdeps=$lt_postdeps_CXX
20227:
20228: # The library search path used internally by the compiler when linking
20229: # a shared library.
20230: compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20231:
20232: # ### END LIBTOOL TAG CONFIG: CXX
20233: _LT_EOF
1.1 parser 20234:
1.15 paf 20235: ;;
20236: esac
20237: done
20238: _ACEOF
1.1 parser 20239:
1.15 paf 20240: cat >>$CONFIG_STATUS <<\_ACEOF
1.1 parser 20241:
1.15 paf 20242: { (exit 0); exit 0; }
20243: _ACEOF
1.1 parser 20244: chmod +x $CONFIG_STATUS
1.15 paf 20245: ac_clean_files=$ac_clean_files_save
20246:
20247:
20248: # configure is writing to config.log, and then calls config.status.
20249: # config.status does its own redirection, appending to config.log.
20250: # Unfortunately, on DOS this fails, as config.log is still kept open
20251: # by configure, so config.status won't be able to write to it; its
20252: # output is simply discarded. So we exec the FD to /dev/null,
20253: # effectively closing config.log, so it can be properly (re)opened and
20254: # appended to by config.status. When coming back to configure, we
20255: # need to make the FD available again.
20256: if test "$no_create" != yes; then
20257: ac_cs_success=:
20258: ac_config_status_args=
20259: test "$silent" = yes &&
20260: ac_config_status_args="$ac_config_status_args --quiet"
20261: exec 5>/dev/null
20262: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20263: exec 5>>config.log
20264: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20265: # would make configure fail if this is the last instruction.
20266: $ac_cs_success || { (exit 1); exit 1; }
20267: fi
1.1 parser 20268:
1.15 paf 20269: #
20270: # CONFIG_SUBDIRS section.
20271: #
1.1 parser 20272: if test "$no_recursion" != yes; then
20273:
20274: # Remove --cache-file and --srcdir arguments so they do not pile up.
20275: ac_sub_configure_args=
20276: ac_prev=
20277: for ac_arg in $ac_configure_args; do
20278: if test -n "$ac_prev"; then
20279: ac_prev=
20280: continue
20281: fi
1.15 paf 20282: case $ac_arg in
1.1 parser 20283: -cache-file | --cache-file | --cache-fil | --cache-fi \
20284: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
20285: ac_prev=cache_file ;;
20286: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1.15 paf 20287: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
20288: | --c=*)
20289: ;;
20290: --config-cache | -C)
1.1 parser 20291: ;;
20292: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
20293: ac_prev=srcdir ;;
20294: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
20295: ;;
1.15 paf 20296: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
20297: ac_prev=prefix ;;
20298: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
20299: ;;
1.1 parser 20300: *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
20301: esac
20302: done
20303:
1.15 paf 20304: # Always prepend --prefix to ensure using the same prefix
20305: # in subdir configurations.
20306: ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
20307:
20308: ac_popdir=`pwd`
20309: for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
1.1 parser 20310:
20311: # Do not complain, so a configure script can configure whichever
20312: # parts of a large source tree are present.
1.15 paf 20313: test -d $srcdir/$ac_dir || continue
1.1 parser 20314:
1.15 paf 20315: { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
20316: echo "$as_me: configuring in $ac_dir" >&6;}
20317: { if $as_mkdir_p; then
20318: mkdir -p "$ac_dir"
20319: else
20320: as_dir="$ac_dir"
20321: as_dirs=
20322: while test ! -d "$as_dir"; do
20323: as_dirs="$as_dir $as_dirs"
20324: as_dir=`(dirname "$as_dir") 2>/dev/null ||
20325: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.25 paf 20326: X"$as_dir" : 'X\(//\)[^/]' \| \
20327: X"$as_dir" : 'X\(//\)$' \| \
20328: X"$as_dir" : 'X\(/\)' \| \
20329: . : '\(.\)' 2>/dev/null ||
1.15 paf 20330: echo X"$as_dir" |
20331: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20332: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20333: /^X\(\/\/\)$/{ s//\1/; q; }
20334: /^X\(\/\).*/{ s//\1/; q; }
20335: s/.*/./; q'`
20336: done
20337: test ! -n "$as_dirs" || mkdir $as_dirs
20338: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20339: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20340: { (exit 1); exit 1; }; }; }
20341:
20342: ac_builddir=.
20343:
20344: if test "$ac_dir" != .; then
20345: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20346: # A "../" for each directory in $ac_dir_suffix.
20347: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20348: else
20349: ac_dir_suffix= ac_top_builddir=
20350: fi
20351:
20352: case $srcdir in
20353: .) # No --srcdir option. We are building in place.
20354: ac_srcdir=.
20355: if test -z "$ac_top_builddir"; then
20356: ac_top_srcdir=.
20357: else
20358: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20359: fi ;;
20360: [\\/]* | ?:[\\/]* ) # Absolute path.
20361: ac_srcdir=$srcdir$ac_dir_suffix;
20362: ac_top_srcdir=$srcdir ;;
20363: *) # Relative path.
20364: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20365: ac_top_srcdir=$ac_top_builddir$srcdir ;;
20366: esac
1.25 paf 20367:
20368: # Do not use `cd foo && pwd` to compute absolute paths, because
20369: # the directories may not exist.
20370: case `pwd` in
20371: .) ac_abs_builddir="$ac_dir";;
20372: *)
20373: case "$ac_dir" in
20374: .) ac_abs_builddir=`pwd`;;
20375: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20376: *) ac_abs_builddir=`pwd`/"$ac_dir";;
20377: esac;;
20378: esac
20379: case $ac_abs_builddir in
20380: .) ac_abs_top_builddir=${ac_top_builddir}.;;
20381: *)
20382: case ${ac_top_builddir}. in
20383: .) ac_abs_top_builddir=$ac_abs_builddir;;
20384: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20385: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20386: esac;;
20387: esac
20388: case $ac_abs_builddir in
20389: .) ac_abs_srcdir=$ac_srcdir;;
20390: *)
20391: case $ac_srcdir in
20392: .) ac_abs_srcdir=$ac_abs_builddir;;
20393: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20394: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20395: esac;;
20396: esac
20397: case $ac_abs_builddir in
20398: .) ac_abs_top_srcdir=$ac_top_srcdir;;
20399: *)
20400: case $ac_top_srcdir in
20401: .) ac_abs_top_srcdir=$ac_abs_builddir;;
20402: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20403: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20404: esac;;
20405: esac
1.1 parser 20406:
20407:
1.15 paf 20408: cd $ac_dir
1.1 parser 20409:
20410: # Check for guested configure; otherwise get Cygnus style configure.
1.15 paf 20411: if test -f $ac_srcdir/configure.gnu; then
20412: ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
20413: elif test -f $ac_srcdir/configure; then
20414: ac_sub_configure="$SHELL '$ac_srcdir/configure'"
20415: elif test -f $ac_srcdir/configure.in; then
1.1 parser 20416: ac_sub_configure=$ac_configure
20417: else
1.15 paf 20418: { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
20419: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
1.1 parser 20420: ac_sub_configure=
20421: fi
20422:
20423: # The recursion is here.
20424: if test -n "$ac_sub_configure"; then
20425: # Make the cache file name correct relative to the subdirectory.
1.15 paf 20426: case $cache_file in
20427: [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
1.1 parser 20428: *) # Relative path.
1.25 paf 20429: ac_sub_cache_file=$ac_top_builddir$cache_file ;;
1.1 parser 20430: esac
20431:
1.15 paf 20432: { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
20433: echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
1.1 parser 20434: # The eval makes quoting arguments work.
1.15 paf 20435: eval $ac_sub_configure $ac_sub_configure_args \
1.25 paf 20436: --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
20437: { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
1.15 paf 20438: echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
20439: { (exit 1); exit 1; }; }
1.1 parser 20440: fi
20441:
20442: cd $ac_popdir
20443: done
20444: fi
20445:
E-mail: