Annotation of sql/mysql/configure, revision 1.36
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.36 ! 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 LDFLAGS CXX CXXFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE AS ac_ct_AS DLLTOOL ac_ct_DLLTOOL OBJDUMP ac_ct_OBJDUMP LIBTOOL build build_cpu build_vendor build_os host host_cpu host_vendor host_os SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S AR ac_ct_AR RANLIB ac_ct_RANLIB MANIFEST_TOOL ac_ct_MANIFEST_TOOL DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT LIPO ac_ct_LIPO OTOOL ac_ct_OTOOL OTOOL64 ac_ct_OTOOL64 CPP CXXCPP LIBLTDL LTDLDEPS LTDLINCL INCLTDL LT_DLLOADERS LIBADD_DLOPEN LIBADD_SHL_LOAD LIBADD_DLD_LINK LT_DLPREOPEN LIBADD_DL sys_symbol_underscore ARGZ_H INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE subdirs LT_CONFIG_H LTDLOPEN LIBOBJS LTLIBOBJS ltdl_LIBOBJS ltdl_LTLIBOBJS'
1.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.35 moko 875: --enable-shared[=PKGS]
876: build shared libraries [default=yes]
877: --enable-static[=PKGS]
878: build static libraries [default=yes]
879: --enable-fast-install[=PKGS]
880: optimize for fast installation [default=yes]
1.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.33 misha 888: --with-dynamic-stdcpp link libstdc++ dynamically
889: by default, libstdc++ is linked statically
1.35 moko 890: --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
891: both]
892: --with-gnu-ld assume the C compiler uses GNU ld [default=no]
893: --with-sysroot=DIR Search for dependent libraries within DIR
894: (or the compiler's sysroot if not specified).
895: --with-included-ltdl use the GNU ltdl sources included here
896: --with-ltdl-include=DIR use the ltdl headers installed in DIR
897: --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1.15 paf 898:
899: Some influential environment variables:
900: CXX C++ compiler command
901: CXXFLAGS C++ compiler flags
902: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
903: nonstandard directory <lib dir>
904: CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
905: headers in a nonstandard directory <include dir>
906: CC C compiler command
907: CFLAGS C compiler flags
1.24 paf 908: CPP C preprocessor
1.35 moko 909: CXXCPP C++ preprocessor
1.15 paf 910:
911: Use these variables to override the choices made by `configure' or to help
912: it to find libraries and programs with nonstandard names/locations.
913:
914: _ACEOF
915: fi
916:
917: if test "$ac_init_help" = "recursive"; then
918: # If there are subdirs, report their specific --help.
919: ac_popdir=`pwd`
920: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
921: test -d $ac_dir || continue
922: ac_builddir=.
923:
924: if test "$ac_dir" != .; then
925: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
926: # A "../" for each directory in $ac_dir_suffix.
927: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
928: else
929: ac_dir_suffix= ac_top_builddir=
930: fi
931:
932: case $srcdir in
933: .) # No --srcdir option. We are building in place.
934: ac_srcdir=.
935: if test -z "$ac_top_builddir"; then
936: ac_top_srcdir=.
937: else
938: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
939: fi ;;
940: [\\/]* | ?:[\\/]* ) # Absolute path.
941: ac_srcdir=$srcdir$ac_dir_suffix;
942: ac_top_srcdir=$srcdir ;;
943: *) # Relative path.
944: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
945: ac_top_srcdir=$ac_top_builddir$srcdir ;;
946: esac
1.25 paf 947:
948: # Do not use `cd foo && pwd` to compute absolute paths, because
949: # the directories may not exist.
950: case `pwd` in
951: .) ac_abs_builddir="$ac_dir";;
952: *)
953: case "$ac_dir" in
954: .) ac_abs_builddir=`pwd`;;
955: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
956: *) ac_abs_builddir=`pwd`/"$ac_dir";;
957: esac;;
958: esac
959: case $ac_abs_builddir in
960: .) ac_abs_top_builddir=${ac_top_builddir}.;;
961: *)
962: case ${ac_top_builddir}. in
963: .) ac_abs_top_builddir=$ac_abs_builddir;;
964: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
965: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
966: esac;;
967: esac
968: case $ac_abs_builddir in
969: .) ac_abs_srcdir=$ac_srcdir;;
970: *)
971: case $ac_srcdir in
972: .) ac_abs_srcdir=$ac_abs_builddir;;
973: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
974: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
975: esac;;
976: esac
977: case $ac_abs_builddir in
978: .) ac_abs_top_srcdir=$ac_top_srcdir;;
979: *)
980: case $ac_top_srcdir in
981: .) ac_abs_top_srcdir=$ac_abs_builddir;;
982: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
983: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
984: esac;;
985: esac
1.15 paf 986:
987: cd $ac_dir
988: # Check for guested configure; otherwise get Cygnus style configure.
989: if test -f $ac_srcdir/configure.gnu; then
990: echo
991: $SHELL $ac_srcdir/configure.gnu --help=recursive
992: elif test -f $ac_srcdir/configure; then
993: echo
994: $SHELL $ac_srcdir/configure --help=recursive
995: elif test -f $ac_srcdir/configure.ac ||
1.25 paf 996: test -f $ac_srcdir/configure.in; then
1.15 paf 997: echo
998: $ac_configure --help
999: else
1000: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1001: fi
1002: cd $ac_popdir
1003: done
1004: fi
1005:
1006: test -n "$ac_init_help" && exit 0
1007: if $ac_init_version; then
1008: cat <<\_ACEOF
1.36 ! moko 1009: parser3mysql.C configure 10.3
! 1010: generated by GNU Autoconf 2.59
1.15 paf 1011:
1.25 paf 1012: Copyright (C) 2003 Free Software Foundation, Inc.
1.15 paf 1013: This configure script is free software; the Free Software Foundation
1014: gives unlimited permission to copy, distribute and modify it.
1015: _ACEOF
1016: exit 0
1017: fi
1018: exec 5>config.log
1019: cat >&5 <<_ACEOF
1020: This file contains any messages produced by compilers while
1021: running configure, to aid debugging if configure makes a mistake.
1022:
1.36 ! moko 1023: It was created by parser3mysql.C $as_me 10.3, which was
1.25 paf 1024: generated by GNU Autoconf 2.59. Invocation command line was
1.15 paf 1025:
1026: $ $0 $@
1027:
1028: _ACEOF
1029: {
1030: cat <<_ASUNAME
1031: ## --------- ##
1032: ## Platform. ##
1033: ## --------- ##
1034:
1035: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1036: uname -m = `(uname -m) 2>/dev/null || echo unknown`
1037: uname -r = `(uname -r) 2>/dev/null || echo unknown`
1038: uname -s = `(uname -s) 2>/dev/null || echo unknown`
1039: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1040:
1041: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1042: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1043:
1044: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1045: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1046: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1047: hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1048: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1049: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1050: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1051:
1052: _ASUNAME
1053:
1054: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1055: for as_dir in $PATH
1056: do
1057: IFS=$as_save_IFS
1058: test -z "$as_dir" && as_dir=.
1059: echo "PATH: $as_dir"
1060: done
1061:
1062: } >&5
1063:
1064: cat >&5 <<_ACEOF
1065:
1066:
1067: ## ----------- ##
1068: ## Core tests. ##
1069: ## ----------- ##
1070:
1071: _ACEOF
1072:
1073:
1074: # Keep a trace of the command line.
1075: # Strip out --no-create and --no-recursion so they do not pile up.
1076: # Strip out --silent because we don't want to record it for future runs.
1077: # Also quote any args containing shell meta-characters.
1078: # Make two passes to allow for proper duplicate-argument suppression.
1079: ac_configure_args=
1080: ac_configure_args0=
1081: ac_configure_args1=
1082: ac_sep=
1083: ac_must_keep_next=false
1084: for ac_pass in 1 2
1085: do
1086: for ac_arg
1087: do
1088: case $ac_arg in
1089: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1090: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1091: | -silent | --silent | --silen | --sile | --sil)
1092: continue ;;
1093: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1094: ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1095: esac
1096: case $ac_pass in
1097: 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1098: 2)
1099: ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1100: if test $ac_must_keep_next = true; then
1.25 paf 1101: ac_must_keep_next=false # Got value, back to normal.
1.15 paf 1102: else
1.25 paf 1103: case $ac_arg in
1104: *=* | --config-cache | -C | -disable-* | --disable-* \
1105: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1106: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1107: | -with-* | --with-* | -without-* | --without-* | --x)
1108: case "$ac_configure_args0 " in
1109: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1110: esac
1111: ;;
1112: -* ) ac_must_keep_next=true ;;
1113: esac
1.15 paf 1114: fi
1115: ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1116: # Get rid of the leading space.
1117: ac_sep=" "
1118: ;;
1119: esac
1120: done
1121: done
1122: $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1123: $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1124:
1125: # When interrupted or exit'd, cleanup temporary files, and complete
1126: # config.log. We remove comments because anyway the quotes in there
1127: # would cause problems or look ugly.
1128: # WARNING: Be sure not to use single quotes in there, as some shells,
1129: # such as our DU 5.0 friend, will then `close' the trap.
1130: trap 'exit_status=$?
1131: # Save into config.log some information that might help in debugging.
1132: {
1133: echo
1134:
1135: cat <<\_ASBOX
1136: ## ---------------- ##
1137: ## Cache variables. ##
1138: ## ---------------- ##
1139: _ASBOX
1140: echo
1141: # The following way of writing the cache mishandles newlines in values,
1142: {
1143: (set) 2>&1 |
1144: case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1145: *ac_space=\ *)
1146: sed -n \
1.25 paf 1147: "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1148: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1.15 paf 1149: ;;
1150: *)
1151: sed -n \
1.25 paf 1152: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1.15 paf 1153: ;;
1154: esac;
1155: }
1156: echo
1157:
1158: cat <<\_ASBOX
1159: ## ----------------- ##
1160: ## Output variables. ##
1161: ## ----------------- ##
1162: _ASBOX
1163: echo
1164: for ac_var in $ac_subst_vars
1165: do
1166: eval ac_val=$`echo $ac_var`
1167: echo "$ac_var='"'"'$ac_val'"'"'"
1168: done | sort
1169: echo
1170:
1171: if test -n "$ac_subst_files"; then
1172: cat <<\_ASBOX
1173: ## ------------- ##
1174: ## Output files. ##
1175: ## ------------- ##
1176: _ASBOX
1177: echo
1178: for ac_var in $ac_subst_files
1179: do
1180: eval ac_val=$`echo $ac_var`
1.25 paf 1181: echo "$ac_var='"'"'$ac_val'"'"'"
1.15 paf 1182: done | sort
1183: echo
1184: fi
1185:
1186: if test -s confdefs.h; then
1187: cat <<\_ASBOX
1188: ## ----------- ##
1189: ## confdefs.h. ##
1190: ## ----------- ##
1191: _ASBOX
1192: echo
1193: sed "/^$/d" confdefs.h | sort
1194: echo
1195: fi
1196: test "$ac_signal" != 0 &&
1197: echo "$as_me: caught signal $ac_signal"
1198: echo "$as_me: exit $exit_status"
1199: } >&5
1.25 paf 1200: rm -f core *.core &&
1.15 paf 1201: rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1202: exit $exit_status
1203: ' 0
1204: for ac_signal in 1 2 13 15; do
1205: trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1206: done
1207: ac_signal=0
1208:
1209: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1210: rm -rf conftest* confdefs.h
1211: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1212: echo >confdefs.h
1213:
1214: # Predefined preprocessor variables.
1215:
1216: cat >>confdefs.h <<_ACEOF
1217: #define PACKAGE_NAME "$PACKAGE_NAME"
1218: _ACEOF
1219:
1220:
1221: cat >>confdefs.h <<_ACEOF
1222: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1223: _ACEOF
1224:
1225:
1226: cat >>confdefs.h <<_ACEOF
1227: #define PACKAGE_VERSION "$PACKAGE_VERSION"
1228: _ACEOF
1.1 parser 1229:
1.15 paf 1230:
1231: cat >>confdefs.h <<_ACEOF
1232: #define PACKAGE_STRING "$PACKAGE_STRING"
1233: _ACEOF
1234:
1235:
1236: cat >>confdefs.h <<_ACEOF
1237: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1238: _ACEOF
1239:
1240:
1241: # Let the site file select an alternate cache file if it wants to.
1.1 parser 1242: # Prefer explicitly selected file to automatically selected ones.
1243: if test -z "$CONFIG_SITE"; then
1244: if test "x$prefix" != xNONE; then
1245: CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1246: else
1247: CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1248: fi
1249: fi
1250: for ac_site_file in $CONFIG_SITE; do
1251: if test -r "$ac_site_file"; then
1.15 paf 1252: { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1253: echo "$as_me: loading site script $ac_site_file" >&6;}
1254: sed 's/^/| /' "$ac_site_file" >&5
1.1 parser 1255: . "$ac_site_file"
1256: fi
1257: done
1258:
1259: if test -r "$cache_file"; then
1.15 paf 1260: # Some versions of bash will fail to source /dev/null (special
1261: # files actually), so we avoid doing that.
1262: if test -f "$cache_file"; then
1263: { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1264: echo "$as_me: loading cache $cache_file" >&6;}
1265: case $cache_file in
1266: [\\/]* | ?:[\\/]* ) . $cache_file;;
1267: *) . ./$cache_file;;
1268: esac
1269: fi
1.1 parser 1270: else
1.15 paf 1271: { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1272: echo "$as_me: creating cache $cache_file" >&6;}
1273: >$cache_file
1274: fi
1275:
1276: # Check that the precious variables saved in the cache have kept the same
1277: # value.
1278: ac_cache_corrupted=false
1279: for ac_var in `(set) 2>&1 |
1.25 paf 1280: sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1.15 paf 1281: eval ac_old_set=\$ac_cv_env_${ac_var}_set
1282: eval ac_new_set=\$ac_env_${ac_var}_set
1283: eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1284: eval ac_new_val="\$ac_env_${ac_var}_value"
1285: case $ac_old_set,$ac_new_set in
1286: set,)
1287: { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1288: echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1289: ac_cache_corrupted=: ;;
1290: ,set)
1291: { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1292: echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1293: ac_cache_corrupted=: ;;
1294: ,);;
1295: *)
1296: if test "x$ac_old_val" != "x$ac_new_val"; then
1.25 paf 1297: { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1.15 paf 1298: echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1.25 paf 1299: { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1.15 paf 1300: echo "$as_me: former value: $ac_old_val" >&2;}
1.25 paf 1301: { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1.15 paf 1302: echo "$as_me: current value: $ac_new_val" >&2;}
1.25 paf 1303: ac_cache_corrupted=:
1.15 paf 1304: fi;;
1305: esac
1306: # Pass precious variables to config.status.
1307: if test "$ac_new_set" = set; then
1308: case $ac_new_val in
1309: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1310: ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1311: *) ac_arg=$ac_var=$ac_new_val ;;
1312: esac
1313: case " $ac_configure_args " in
1314: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1315: *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1316: esac
1317: fi
1318: done
1319: if $ac_cache_corrupted; then
1320: { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1321: echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1322: { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1323: echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1324: { (exit 1); exit 1; }; }
1.1 parser 1325: fi
1326:
1327: ac_ext=c
1328: ac_cpp='$CPP $CPPFLAGS'
1.15 paf 1329: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1330: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1331: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1332:
1333:
1334:
1335:
1336:
1337:
1338:
1339:
1340:
1341:
1342:
1343:
1344:
1345:
1346:
1347:
1348:
1349:
1350:
1.1 parser 1351:
1352:
1.36 ! moko 1353:
! 1354:
! 1355:
! 1356:
! 1357:
! 1358:
! 1359:
! 1360: ac_config_headers="$ac_config_headers config_auto.h"
! 1361:
! 1362:
! 1363:
1.25 paf 1364: am__api_version="1.9"
1.1 parser 1365: ac_aux_dir=
1366: for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1367: if test -f $ac_dir/install-sh; then
1368: ac_aux_dir=$ac_dir
1369: ac_install_sh="$ac_aux_dir/install-sh -c"
1370: break
1371: elif test -f $ac_dir/install.sh; then
1372: ac_aux_dir=$ac_dir
1373: ac_install_sh="$ac_aux_dir/install.sh -c"
1374: break
1.15 paf 1375: elif test -f $ac_dir/shtool; then
1376: ac_aux_dir=$ac_dir
1377: ac_install_sh="$ac_aux_dir/shtool install -c"
1378: break
1.1 parser 1379: fi
1380: done
1381: if test -z "$ac_aux_dir"; then
1.15 paf 1382: { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1383: echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1384: { (exit 1); exit 1; }; }
1385: fi
1386: ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1387: ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1388: ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1.1 parser 1389:
1390: # Find a good install program. We prefer a C program (faster),
1391: # so one script is as good as another. But avoid the broken or
1392: # incompatible versions:
1393: # SysV /etc/install, /usr/sbin/install
1394: # SunOS /usr/etc/install
1395: # IRIX /sbin/install
1396: # AIX /bin/install
1.15 paf 1397: # AmigaOS /C/install, which installs bootblocks on floppy discs
1.1 parser 1398: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1399: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1400: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1.25 paf 1401: # OS/2's system install, which has a completely different semantic
1.1 parser 1402: # ./install, which can be erroneously created by make from ./install.sh.
1.15 paf 1403: echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1404: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1.1 parser 1405: if test -z "$INSTALL"; then
1.15 paf 1406: if test "${ac_cv_path_install+set}" = set; then
1407: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 1408: else
1.15 paf 1409: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1410: for as_dir in $PATH
1411: do
1412: IFS=$as_save_IFS
1413: test -z "$as_dir" && as_dir=.
1414: # Account for people who put trailing slashes in PATH elements.
1415: case $as_dir/ in
1416: ./ | .// | /cC/* | \
1417: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.25 paf 1418: ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1.15 paf 1419: /usr/ucb/* ) ;;
1420: *)
1421: # OSF1 and SCO ODT 3.0 have their own names for install.
1422: # Don't use installbsd from OSF since it installs stuff as root
1423: # by default.
1424: for ac_prog in ginstall scoinst install; do
1425: for ac_exec_ext in '' $ac_executable_extensions; do
1.25 paf 1426: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1427: if test $ac_prog = install &&
1428: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1429: # AIX install. It has an incompatible calling convention.
1430: :
1431: elif test $ac_prog = install &&
1432: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1433: # program-specific install script used by HP pwplus--don't use.
1434: :
1435: else
1436: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1437: break 3
1438: fi
1439: fi
1.1 parser 1440: done
1.15 paf 1441: done
1442: ;;
1443: esac
1444: done
1445:
1.1 parser 1446:
1447: fi
1448: if test "${ac_cv_path_install+set}" = set; then
1.15 paf 1449: INSTALL=$ac_cv_path_install
1.1 parser 1450: else
1451: # As a last resort, use the slow shell script. We don't cache a
1452: # path for INSTALL within a source directory, because that will
1453: # break other packages using the cache if that directory is
1454: # removed, or if the path is relative.
1.15 paf 1455: INSTALL=$ac_install_sh
1.1 parser 1456: fi
1457: fi
1.15 paf 1458: echo "$as_me:$LINENO: result: $INSTALL" >&5
1459: echo "${ECHO_T}$INSTALL" >&6
1.1 parser 1460:
1461: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1462: # It thinks the first close brace ends the variable substitution.
1463: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1464:
1.15 paf 1465: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.1 parser 1466:
1467: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1468:
1.15 paf 1469: echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1470: echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1.1 parser 1471: # Just in case
1472: sleep 1
1.15 paf 1473: echo timestamp > conftest.file
1.1 parser 1474: # Do `set' in a subshell so we don't clobber the current shell's
1475: # arguments. Must try -L first in case configure is actually a
1476: # symlink; some systems play weird games with the mod time of symlinks
1477: # (eg FreeBSD returns the mod time of the symlink's containing
1478: # directory).
1479: if (
1.15 paf 1480: set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1.1 parser 1481: if test "$*" = "X"; then
1482: # -L didn't work.
1.15 paf 1483: set X `ls -t $srcdir/configure conftest.file`
1.1 parser 1484: fi
1.15 paf 1485: rm -f conftest.file
1486: if test "$*" != "X $srcdir/configure conftest.file" \
1487: && test "$*" != "X conftest.file $srcdir/configure"; then
1.1 parser 1488:
1489: # If neither matched, then we have a broken ls. This can happen
1490: # if, for instance, CONFIG_SHELL is bash and it inherits a
1491: # broken ls alias from the environment. This has actually
1492: # happened. Such a system could not be considered "sane".
1.15 paf 1493: { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1494: alias in your environment" >&5
1495: echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1496: alias in your environment" >&2;}
1497: { (exit 1); exit 1; }; }
1.1 parser 1498: fi
1499:
1.15 paf 1500: test "$2" = conftest.file
1.1 parser 1501: )
1502: then
1503: # Ok.
1504: :
1505: else
1.15 paf 1506: { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1507: Check your system clock" >&5
1508: echo "$as_me: error: newly created file is older than distributed files!
1509: Check your system clock" >&2;}
1510: { (exit 1); exit 1; }; }
1.1 parser 1511: fi
1.15 paf 1512: echo "$as_me:$LINENO: result: yes" >&5
1513: echo "${ECHO_T}yes" >&6
1.1 parser 1514: test "$program_prefix" != NONE &&
1.15 paf 1515: program_transform_name="s,^,$program_prefix,;$program_transform_name"
1.1 parser 1516: # Use a double $ so make ignores it.
1517: test "$program_suffix" != NONE &&
1.15 paf 1518: program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1519: # Double any \ or $. echo might interpret backslashes.
1520: # By default was `s,x,x', remove it if useless.
1521: cat <<\_ACEOF >conftest.sed
1522: s/[\\$]/&&/g;s/;s,x,x,$//
1523: _ACEOF
1524: program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1525: rm conftest.sed
1526:
1527: # expand $ac_aux_dir to an absolute path
1528: am_aux_dir=`cd $ac_aux_dir && pwd`
1529:
1530: test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1531: # Use eval to expand $SHELL
1532: if eval "$MISSING --run true"; then
1533: am_missing_run="$MISSING --run "
1534: else
1535: am_missing_run=
1536: { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1537: echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1538: fi
1539:
1.25 paf 1540: if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1541: # We used to keeping the `.' as first argument, in order to
1542: # allow $(mkdir_p) to be used without argument. As in
1543: # $(mkdir_p) $(somedir)
1544: # where $(somedir) is conditionally defined. However this is wrong
1545: # for two reasons:
1546: # 1. if the package is installed by a user who cannot write `.'
1547: # make install will fail,
1548: # 2. the above comment should most certainly read
1549: # $(mkdir_p) $(DESTDIR)$(somedir)
1550: # so it does not work when $(somedir) is undefined and
1551: # $(DESTDIR) is not.
1552: # To support the latter case, we have to write
1553: # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1554: # so the `.' trick is pointless.
1555: mkdir_p='mkdir -p --'
1556: else
1557: # On NextStep and OpenStep, the `mkdir' command does not
1558: # recognize any option. It will interpret all options as
1559: # directories to create, and then abort because `.' already
1560: # exists.
1561: for d in ./-p ./--version;
1562: do
1563: test -d $d && rmdir $d
1564: done
1565: # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1566: if test -f "$ac_aux_dir/mkinstalldirs"; then
1567: mkdir_p='$(mkinstalldirs)'
1568: else
1569: mkdir_p='$(install_sh) -d'
1570: fi
1571: fi
1572:
1.15 paf 1573: for ac_prog in gawk mawk nawk awk
1574: do
1575: # Extract the first word of "$ac_prog", so it can be a program name with args.
1576: set dummy $ac_prog; ac_word=$2
1577: echo "$as_me:$LINENO: checking for $ac_word" >&5
1578: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1579: if test "${ac_cv_prog_AWK+set}" = set; then
1580: echo $ECHO_N "(cached) $ECHO_C" >&6
1581: else
1582: if test -n "$AWK"; then
1583: ac_cv_prog_AWK="$AWK" # Let the user override the test.
1584: else
1585: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1586: for as_dir in $PATH
1587: do
1588: IFS=$as_save_IFS
1589: test -z "$as_dir" && as_dir=.
1590: for ac_exec_ext in '' $ac_executable_extensions; do
1591: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1592: ac_cv_prog_AWK="$ac_prog"
1593: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1594: break 2
1595: fi
1596: done
1597: done
1598:
1599: fi
1600: fi
1601: AWK=$ac_cv_prog_AWK
1602: if test -n "$AWK"; then
1603: echo "$as_me:$LINENO: result: $AWK" >&5
1604: echo "${ECHO_T}$AWK" >&6
1605: else
1606: echo "$as_me:$LINENO: result: no" >&5
1607: echo "${ECHO_T}no" >&6
1608: fi
1.1 parser 1609:
1.15 paf 1610: test -n "$AWK" && break
1611: done
1.1 parser 1612:
1.15 paf 1613: echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1614: echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1.25 paf 1615: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1.15 paf 1616: if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1617: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 1618: else
1.15 paf 1619: cat >conftest.make <<\_ACEOF
1.1 parser 1620: all:
1.15 paf 1621: @echo 'ac_maketemp="$(MAKE)"'
1622: _ACEOF
1.1 parser 1623: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1.15 paf 1624: eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1.1 parser 1625: if test -n "$ac_maketemp"; then
1626: eval ac_cv_prog_make_${ac_make}_set=yes
1627: else
1628: eval ac_cv_prog_make_${ac_make}_set=no
1629: fi
1.15 paf 1630: rm -f conftest.make
1.1 parser 1631: fi
1632: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1.15 paf 1633: echo "$as_me:$LINENO: result: yes" >&5
1634: echo "${ECHO_T}yes" >&6
1.1 parser 1635: SET_MAKE=
1636: else
1.15 paf 1637: echo "$as_me:$LINENO: result: no" >&5
1638: echo "${ECHO_T}no" >&6
1.1 parser 1639: SET_MAKE="MAKE=${MAKE-make}"
1640: fi
1641:
1.25 paf 1642: rm -rf .tst 2>/dev/null
1643: mkdir .tst 2>/dev/null
1644: if test -d .tst; then
1645: am__leading_dot=.
1646: else
1647: am__leading_dot=_
1648: fi
1649: rmdir .tst 2>/dev/null
1650:
1651: # test to see if srcdir already configured
1.15 paf 1652: if test "`cd $srcdir && pwd`" != "`pwd`" &&
1653: test -f $srcdir/config.status; then
1654: { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1655: echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1656: { (exit 1); exit 1; }; }
1657: fi
1658:
1659: # test whether we have cygpath
1660: if test -z "$CYGPATH_W"; then
1661: if (cygpath --version) >/dev/null 2>/dev/null; then
1662: CYGPATH_W='cygpath -w'
1663: else
1664: CYGPATH_W=echo
1665: fi
1666: fi
1667:
1668:
1669: # Define the identity of the package.
1.36 ! moko 1670: PACKAGE='parser3mysql-c'
! 1671: VERSION='10.3'
1.15 paf 1672:
1673:
1.36 ! moko 1674: cat >>confdefs.h <<_ACEOF
! 1675: #define PACKAGE "$PACKAGE"
! 1676: _ACEOF
! 1677:
! 1678:
! 1679: cat >>confdefs.h <<_ACEOF
! 1680: #define VERSION "$VERSION"
! 1681: _ACEOF
! 1682:
1.15 paf 1683: # Some tools Automake needs.
1684:
1685: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1686:
1687:
1688: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1.1 parser 1689:
1690:
1.15 paf 1691: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1692:
1693:
1694: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1695:
1696:
1697: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1.1 parser 1698:
1.15 paf 1699: install_sh=${install_sh-"$am_aux_dir/install-sh"}
1.1 parser 1700:
1.15 paf 1701: # Installed binaries are usually stripped using `strip' when the user
1702: # run `make install-strip'. However `strip' might not be the right
1703: # tool to use in cross-compilation environments, therefore Automake
1704: # will honor the `STRIP' environment variable to overrule this program.
1705: if test "$cross_compiling" != no; then
1706: if test -n "$ac_tool_prefix"; then
1707: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1708: set dummy ${ac_tool_prefix}strip; ac_word=$2
1709: echo "$as_me:$LINENO: checking for $ac_word" >&5
1710: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1711: if test "${ac_cv_prog_STRIP+set}" = set; then
1712: echo $ECHO_N "(cached) $ECHO_C" >&6
1713: else
1714: if test -n "$STRIP"; then
1715: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1.1 parser 1716: else
1.15 paf 1717: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1718: for as_dir in $PATH
1719: do
1720: IFS=$as_save_IFS
1721: test -z "$as_dir" && as_dir=.
1722: for ac_exec_ext in '' $ac_executable_extensions; do
1723: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1724: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1725: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1726: break 2
1727: fi
1728: done
1729: done
1730:
1731: fi
1732: fi
1733: STRIP=$ac_cv_prog_STRIP
1734: if test -n "$STRIP"; then
1735: echo "$as_me:$LINENO: result: $STRIP" >&5
1736: echo "${ECHO_T}$STRIP" >&6
1737: else
1738: echo "$as_me:$LINENO: result: no" >&5
1739: echo "${ECHO_T}no" >&6
1.1 parser 1740: fi
1741:
1.15 paf 1742: fi
1743: if test -z "$ac_cv_prog_STRIP"; then
1744: ac_ct_STRIP=$STRIP
1745: # Extract the first word of "strip", so it can be a program name with args.
1746: set dummy strip; ac_word=$2
1747: echo "$as_me:$LINENO: checking for $ac_word" >&5
1748: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1749: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1750: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 1751: else
1.15 paf 1752: if test -n "$ac_ct_STRIP"; then
1753: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1754: else
1755: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1756: for as_dir in $PATH
1757: do
1758: IFS=$as_save_IFS
1759: test -z "$as_dir" && as_dir=.
1760: for ac_exec_ext in '' $ac_executable_extensions; do
1761: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1762: ac_cv_prog_ac_ct_STRIP="strip"
1763: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1764: break 2
1765: fi
1766: done
1767: done
1768:
1769: test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1.1 parser 1770: fi
1.15 paf 1771: fi
1772: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1773: if test -n "$ac_ct_STRIP"; then
1774: echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1775: echo "${ECHO_T}$ac_ct_STRIP" >&6
1.1 parser 1776: else
1.15 paf 1777: echo "$as_me:$LINENO: result: no" >&5
1778: echo "${ECHO_T}no" >&6
1.1 parser 1779: fi
1780:
1.15 paf 1781: STRIP=$ac_ct_STRIP
1.1 parser 1782: else
1.15 paf 1783: STRIP="$ac_cv_prog_STRIP"
1.1 parser 1784: fi
1785:
1786: fi
1.15 paf 1787: INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1788:
1789: # We need awk for the "check" target. The system "awk" is bad on
1790: # some platforms.
1.25 paf 1791: # Always define AMTAR for backward compatibility.
1792:
1793: AMTAR=${AMTAR-"${am_missing_run}tar"}
1794:
1795: am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1796:
1797:
1.1 parser 1798:
1799:
1800:
1801:
1802:
1803:
1804:
1805:
1.8 paf 1806:
1.4 paf 1807: # Check whether --with-mysql-inc or --without-mysql-inc was given.
1.1 parser 1808: if test "${with_mysql_inc+set}" = set; then
1809: withval="$with_mysql_inc"
1.15 paf 1810:
1.8 paf 1811: if test -r "$withval/mysql.h"; then
1812: MYSQL_INC=$withval
1813: fi
1814:
1815:
1.33 misha 1816: if test -z "$MYSQL_INC"; then
1.15 paf 1817: { { echo "$as_me:$LINENO: error: $MYSQL_INC does not seem to be valid MySQL includes directory" >&5
1818: echo "$as_me: error: $MYSQL_INC does not seem to be valid MySQL includes directory" >&2;}
1819: { (exit 1); exit 1; }; }
1.33 misha 1820: fi
1.8 paf 1821:
1.1 parser 1822: else
1.15 paf 1823: echo "$as_me:$LINENO: checking for MYSQL_INC directory" >&5
1824: echo $ECHO_N "checking for MYSQL_INC directory... $ECHO_C" >&6
1.8 paf 1825: for d in \
1826: /usr/local/include/mysql \
1827: /usr/include/mysql ; do
1.15 paf 1828:
1.8 paf 1829: if test -r "$d/mysql.h"; then
1830: MYSQL_INC=$d
1831: fi
1832:
1833: done
1834:
1.33 misha 1835: if test -z "$MYSQL_INC"; then
1836: { { echo "$as_me:$LINENO: error: use --with-mysql-inc=DIR to specify MySQL includes directory" >&5
1.15 paf 1837: echo "$as_me: error: use --with-mysql-inc=DIR to specify MySQL includes directory" >&2;}
1838: { (exit 1); exit 1; }; }
1.33 misha 1839: fi
1.8 paf 1840:
1.15 paf 1841: echo "$as_me:$LINENO: result: $MYSQL_INC" >&5
1842: echo "${ECHO_T}$MYSQL_INC" >&6
1.1 parser 1843:
1.15 paf 1844: fi;
1.3 parser 1845:
1.1 parser 1846:
1847:
1.3 parser 1848:
1.33 misha 1849: # Check whether --with-dynamic-stdcpp or --without-dynamic-stdcpp was given.
1850: if test "${with_dynamic_stdcpp+set}" = set; then
1851: withval="$with_dynamic_stdcpp"
1852:
1853: LDFLAGS="-lstdc++"
1854:
1855: else
1856:
1857: LDFLAGS="-Wl,-Bstatic -Wl,-lstdc++ -Wl,-Bdynamic"
1858:
1859: fi;
1860:
1861:
1862:
1.36 ! moko 1863:
1.1 parser 1864: # Find a good install program. We prefer a C program (faster),
1865: # so one script is as good as another. But avoid the broken or
1866: # incompatible versions:
1867: # SysV /etc/install, /usr/sbin/install
1868: # SunOS /usr/etc/install
1869: # IRIX /sbin/install
1870: # AIX /bin/install
1.15 paf 1871: # AmigaOS /C/install, which installs bootblocks on floppy discs
1.1 parser 1872: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1873: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1874: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1.25 paf 1875: # OS/2's system install, which has a completely different semantic
1.1 parser 1876: # ./install, which can be erroneously created by make from ./install.sh.
1.15 paf 1877: echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1878: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1.1 parser 1879: if test -z "$INSTALL"; then
1.15 paf 1880: if test "${ac_cv_path_install+set}" = set; then
1881: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 1882: else
1.15 paf 1883: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1884: for as_dir in $PATH
1885: do
1886: IFS=$as_save_IFS
1887: test -z "$as_dir" && as_dir=.
1888: # Account for people who put trailing slashes in PATH elements.
1889: case $as_dir/ in
1890: ./ | .// | /cC/* | \
1891: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.25 paf 1892: ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1.15 paf 1893: /usr/ucb/* ) ;;
1894: *)
1895: # OSF1 and SCO ODT 3.0 have their own names for install.
1896: # Don't use installbsd from OSF since it installs stuff as root
1897: # by default.
1898: for ac_prog in ginstall scoinst install; do
1899: for ac_exec_ext in '' $ac_executable_extensions; do
1.25 paf 1900: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1901: if test $ac_prog = install &&
1902: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1903: # AIX install. It has an incompatible calling convention.
1904: :
1905: elif test $ac_prog = install &&
1906: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1907: # program-specific install script used by HP pwplus--don't use.
1908: :
1909: else
1910: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1911: break 3
1912: fi
1913: fi
1.1 parser 1914: done
1.15 paf 1915: done
1916: ;;
1917: esac
1918: done
1919:
1.1 parser 1920:
1921: fi
1922: if test "${ac_cv_path_install+set}" = set; then
1.15 paf 1923: INSTALL=$ac_cv_path_install
1.1 parser 1924: else
1925: # As a last resort, use the slow shell script. We don't cache a
1926: # path for INSTALL within a source directory, because that will
1927: # break other packages using the cache if that directory is
1928: # removed, or if the path is relative.
1.15 paf 1929: INSTALL=$ac_install_sh
1.1 parser 1930: fi
1931: fi
1.15 paf 1932: echo "$as_me:$LINENO: result: $INSTALL" >&5
1933: echo "${ECHO_T}$INSTALL" >&6
1.1 parser 1934:
1935: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1936: # It thinks the first close brace ends the variable substitution.
1937: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1938:
1.15 paf 1939: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.1 parser 1940:
1941: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1942:
1.15 paf 1943: ac_ext=cc
1944: ac_cpp='$CXXCPP $CPPFLAGS'
1945: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1946: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1947: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1948: if test -n "$ac_tool_prefix"; then
1949: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1950: do
1951: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1952: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1953: echo "$as_me:$LINENO: checking for $ac_word" >&5
1954: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1955: if test "${ac_cv_prog_CXX+set}" = set; then
1956: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 1957: else
1958: if test -n "$CXX"; then
1959: ac_cv_prog_CXX="$CXX" # Let the user override the test.
1960: else
1.15 paf 1961: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1962: for as_dir in $PATH
1963: do
1964: IFS=$as_save_IFS
1965: test -z "$as_dir" && as_dir=.
1966: for ac_exec_ext in '' $ac_executable_extensions; do
1967: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1968: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1969: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1970: break 2
1971: fi
1972: done
1973: done
1974:
1.1 parser 1975: fi
1976: fi
1.15 paf 1977: CXX=$ac_cv_prog_CXX
1.1 parser 1978: if test -n "$CXX"; then
1.15 paf 1979: echo "$as_me:$LINENO: result: $CXX" >&5
1980: echo "${ECHO_T}$CXX" >&6
1.1 parser 1981: else
1.15 paf 1982: echo "$as_me:$LINENO: result: no" >&5
1983: echo "${ECHO_T}no" >&6
1.1 parser 1984: fi
1985:
1.15 paf 1986: test -n "$CXX" && break
1987: done
1988: fi
1989: if test -z "$CXX"; then
1990: ac_ct_CXX=$CXX
1991: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1992: do
1993: # Extract the first word of "$ac_prog", so it can be a program name with args.
1994: set dummy $ac_prog; ac_word=$2
1995: echo "$as_me:$LINENO: checking for $ac_word" >&5
1996: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1997: if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1998: echo $ECHO_N "(cached) $ECHO_C" >&6
1999: else
2000: if test -n "$ac_ct_CXX"; then
2001: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2002: else
2003: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2004: for as_dir in $PATH
2005: do
2006: IFS=$as_save_IFS
2007: test -z "$as_dir" && as_dir=.
2008: for ac_exec_ext in '' $ac_executable_extensions; do
2009: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2010: ac_cv_prog_ac_ct_CXX="$ac_prog"
2011: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2012: break 2
2013: fi
2014: done
1.1 parser 2015: done
2016:
1.15 paf 2017: fi
2018: fi
2019: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2020: if test -n "$ac_ct_CXX"; then
2021: echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2022: echo "${ECHO_T}$ac_ct_CXX" >&6
2023: else
2024: echo "$as_me:$LINENO: result: no" >&5
2025: echo "${ECHO_T}no" >&6
2026: fi
1.1 parser 2027:
1.15 paf 2028: test -n "$ac_ct_CXX" && break
2029: done
2030: test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1.1 parser 2031:
1.15 paf 2032: CXX=$ac_ct_CXX
2033: fi
1.1 parser 2034:
2035:
1.15 paf 2036: # Provide some information about the compiler.
2037: echo "$as_me:$LINENO:" \
2038: "checking for C++ compiler version" >&5
2039: ac_compiler=`set X $ac_compile; echo $2`
2040: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2041: (eval $ac_compiler --version </dev/null >&5) 2>&5
2042: ac_status=$?
2043: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2044: (exit $ac_status); }
2045: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2046: (eval $ac_compiler -v </dev/null >&5) 2>&5
2047: ac_status=$?
2048: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2049: (exit $ac_status); }
2050: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2051: (eval $ac_compiler -V </dev/null >&5) 2>&5
2052: ac_status=$?
2053: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2054: (exit $ac_status); }
2055:
2056: cat >conftest.$ac_ext <<_ACEOF
2057: /* confdefs.h. */
2058: _ACEOF
2059: cat confdefs.h >>conftest.$ac_ext
2060: cat >>conftest.$ac_ext <<_ACEOF
2061: /* end confdefs.h. */
2062:
2063: int
2064: main ()
2065: {
2066:
2067: ;
2068: return 0;
2069: }
2070: _ACEOF
2071: ac_clean_files_save=$ac_clean_files
2072: ac_clean_files="$ac_clean_files a.out a.exe b.out"
2073: # Try to create an executable without -o first, disregard a.out.
2074: # It will help us diagnose broken compilers, and finding out an intuition
2075: # of exeext.
1.25 paf 2076: echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2077: echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
1.15 paf 2078: ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2079: if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2080: (eval $ac_link_default) 2>&5
2081: ac_status=$?
2082: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2083: (exit $ac_status); }; then
2084: # Find the output, starting from the most likely. This scheme is
2085: # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2086: # resort.
2087:
2088: # Be careful to initialize this variable, since it used to be cached.
2089: # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2090: ac_cv_exeext=
2091: # b.out is created by i960 compilers.
2092: for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2093: do
2094: test -f "$ac_file" || continue
2095: case $ac_file in
2096: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1.25 paf 2097: ;;
1.15 paf 2098: conftest.$ac_ext )
1.25 paf 2099: # This is the source file.
2100: ;;
1.15 paf 2101: [ab].out )
1.25 paf 2102: # We found the default executable, but exeext='' is most
2103: # certainly right.
2104: break;;
1.15 paf 2105: *.* )
1.25 paf 2106: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2107: # FIXME: I believe we export ac_cv_exeext for Libtool,
2108: # but it would be cool to find out if it's true. Does anybody
2109: # maintain Libtool? --akim.
2110: export ac_cv_exeext
2111: break;;
1.15 paf 2112: * )
1.25 paf 2113: break;;
1.15 paf 2114: esac
2115: done
2116: else
2117: echo "$as_me: failed program was:" >&5
2118: sed 's/^/| /' conftest.$ac_ext >&5
1.1 parser 2119:
1.15 paf 2120: { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2121: See \`config.log' for more details." >&5
2122: echo "$as_me: error: C++ compiler cannot create executables
2123: See \`config.log' for more details." >&2;}
2124: { (exit 77); exit 77; }; }
2125: fi
2126:
2127: ac_exeext=$ac_cv_exeext
2128: echo "$as_me:$LINENO: result: $ac_file" >&5
2129: echo "${ECHO_T}$ac_file" >&6
2130:
2131: # Check the compiler produces executables we can run. If not, either
2132: # the compiler is broken, or we cross compile.
2133: echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2134: echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2135: # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2136: # If not cross compiling, check that we can run a simple program.
2137: if test "$cross_compiling" != yes; then
2138: if { ac_try='./$ac_file'
2139: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2140: (eval $ac_try) 2>&5
2141: ac_status=$?
2142: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2143: (exit $ac_status); }; }; then
2144: cross_compiling=no
2145: else
2146: if test "$cross_compiling" = maybe; then
2147: cross_compiling=yes
2148: else
2149: { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2150: If you meant to cross compile, use \`--host'.
2151: See \`config.log' for more details." >&5
2152: echo "$as_me: error: cannot run C++ compiled programs.
2153: If you meant to cross compile, use \`--host'.
2154: See \`config.log' for more details." >&2;}
2155: { (exit 1); exit 1; }; }
2156: fi
1.1 parser 2157: fi
1.15 paf 2158: fi
2159: echo "$as_me:$LINENO: result: yes" >&5
2160: echo "${ECHO_T}yes" >&6
2161:
2162: rm -f a.out a.exe conftest$ac_cv_exeext b.out
2163: ac_clean_files=$ac_clean_files_save
2164: # Check the compiler produces executables we can run. If not, either
2165: # the compiler is broken, or we cross compile.
2166: echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2167: echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2168: echo "$as_me:$LINENO: result: $cross_compiling" >&5
2169: echo "${ECHO_T}$cross_compiling" >&6
2170:
2171: echo "$as_me:$LINENO: checking for suffix of executables" >&5
2172: echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2173: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2174: (eval $ac_link) 2>&5
2175: ac_status=$?
2176: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177: (exit $ac_status); }; then
2178: # If both `conftest.exe' and `conftest' are `present' (well, observable)
2179: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2180: # work properly (i.e., refer to `conftest.exe'), while it won't with
2181: # `rm'.
2182: for ac_file in conftest.exe conftest conftest.*; do
2183: test -f "$ac_file" || continue
2184: case $ac_file in
2185: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2186: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1.25 paf 2187: export ac_cv_exeext
2188: break;;
1.15 paf 2189: * ) break;;
2190: esac
2191: done
1.1 parser 2192: else
1.15 paf 2193: { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2194: See \`config.log' for more details." >&5
2195: echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2196: See \`config.log' for more details." >&2;}
2197: { (exit 1); exit 1; }; }
2198: fi
2199:
2200: rm -f conftest$ac_cv_exeext
2201: echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2202: echo "${ECHO_T}$ac_cv_exeext" >&6
2203:
2204: rm -f conftest.$ac_ext
2205: EXEEXT=$ac_cv_exeext
2206: ac_exeext=$EXEEXT
2207: echo "$as_me:$LINENO: checking for suffix of object files" >&5
2208: echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2209: if test "${ac_cv_objext+set}" = set; then
2210: echo $ECHO_N "(cached) $ECHO_C" >&6
2211: else
2212: cat >conftest.$ac_ext <<_ACEOF
2213: /* confdefs.h. */
2214: _ACEOF
2215: cat confdefs.h >>conftest.$ac_ext
2216: cat >>conftest.$ac_ext <<_ACEOF
2217: /* end confdefs.h. */
2218:
2219: int
2220: main ()
2221: {
2222:
2223: ;
2224: return 0;
2225: }
2226: _ACEOF
2227: rm -f conftest.o conftest.obj
2228: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2229: (eval $ac_compile) 2>&5
2230: ac_status=$?
2231: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232: (exit $ac_status); }; then
2233: for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2234: case $ac_file in
2235: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2236: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2237: break;;
2238: esac
2239: done
1.1 parser 2240: else
1.15 paf 2241: echo "$as_me: failed program was:" >&5
2242: sed 's/^/| /' conftest.$ac_ext >&5
1.1 parser 2243:
1.15 paf 2244: { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2245: See \`config.log' for more details." >&5
2246: echo "$as_me: error: cannot compute suffix of object files: cannot compile
2247: See \`config.log' for more details." >&2;}
2248: { (exit 1); exit 1; }; }
2249: fi
2250:
2251: rm -f conftest.$ac_cv_objext conftest.$ac_ext
2252: fi
2253: echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2254: echo "${ECHO_T}$ac_cv_objext" >&6
2255: OBJEXT=$ac_cv_objext
2256: ac_objext=$OBJEXT
2257: echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2258: echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2259: if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2260: echo $ECHO_N "(cached) $ECHO_C" >&6
2261: else
2262: cat >conftest.$ac_ext <<_ACEOF
2263: /* confdefs.h. */
2264: _ACEOF
2265: cat confdefs.h >>conftest.$ac_ext
2266: cat >>conftest.$ac_ext <<_ACEOF
2267: /* end confdefs.h. */
2268:
2269: int
2270: main ()
2271: {
2272: #ifndef __GNUC__
2273: choke me
2274: #endif
1.1 parser 2275:
1.15 paf 2276: ;
2277: return 0;
2278: }
2279: _ACEOF
2280: rm -f conftest.$ac_objext
2281: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.25 paf 2282: (eval $ac_compile) 2>conftest.er1
1.15 paf 2283: ac_status=$?
1.25 paf 2284: grep -v '^ *+' conftest.er1 >conftest.err
2285: rm -f conftest.er1
2286: cat conftest.err >&5
1.15 paf 2287: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288: (exit $ac_status); } &&
1.25 paf 2289: { ac_try='test -z "$ac_cxx_werror_flag"
2290: || test ! -s conftest.err'
2291: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2292: (eval $ac_try) 2>&5
2293: ac_status=$?
2294: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2295: (exit $ac_status); }; } &&
2296: { ac_try='test -s conftest.$ac_objext'
1.15 paf 2297: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2298: (eval $ac_try) 2>&5
2299: ac_status=$?
2300: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301: (exit $ac_status); }; }; then
2302: ac_compiler_gnu=yes
2303: else
2304: echo "$as_me: failed program was:" >&5
2305: sed 's/^/| /' conftest.$ac_ext >&5
2306:
2307: ac_compiler_gnu=no
2308: fi
1.25 paf 2309: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 paf 2310: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2311:
2312: fi
2313: echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2314: echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2315: GXX=`test $ac_compiler_gnu = yes && echo yes`
2316: ac_test_CXXFLAGS=${CXXFLAGS+set}
2317: ac_save_CXXFLAGS=$CXXFLAGS
2318: CXXFLAGS="-g"
2319: echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2320: echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2321: if test "${ac_cv_prog_cxx_g+set}" = set; then
2322: echo $ECHO_N "(cached) $ECHO_C" >&6
2323: else
2324: cat >conftest.$ac_ext <<_ACEOF
2325: /* confdefs.h. */
2326: _ACEOF
2327: cat confdefs.h >>conftest.$ac_ext
2328: cat >>conftest.$ac_ext <<_ACEOF
2329: /* end confdefs.h. */
2330:
2331: int
2332: main ()
2333: {
2334:
2335: ;
2336: return 0;
2337: }
2338: _ACEOF
2339: rm -f conftest.$ac_objext
2340: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.25 paf 2341: (eval $ac_compile) 2>conftest.er1
1.15 paf 2342: ac_status=$?
1.25 paf 2343: grep -v '^ *+' conftest.er1 >conftest.err
2344: rm -f conftest.er1
2345: cat conftest.err >&5
1.15 paf 2346: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2347: (exit $ac_status); } &&
1.25 paf 2348: { ac_try='test -z "$ac_cxx_werror_flag"
2349: || test ! -s conftest.err'
2350: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2351: (eval $ac_try) 2>&5
2352: ac_status=$?
2353: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354: (exit $ac_status); }; } &&
2355: { ac_try='test -s conftest.$ac_objext'
1.15 paf 2356: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2357: (eval $ac_try) 2>&5
2358: ac_status=$?
2359: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360: (exit $ac_status); }; }; then
2361: ac_cv_prog_cxx_g=yes
1.1 parser 2362: else
1.15 paf 2363: echo "$as_me: failed program was:" >&5
2364: sed 's/^/| /' conftest.$ac_ext >&5
1.1 parser 2365:
1.15 paf 2366: ac_cv_prog_cxx_g=no
1.1 parser 2367: fi
1.25 paf 2368: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 parser 2369: fi
1.15 paf 2370: echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2371: echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
1.1 parser 2372: if test "$ac_test_CXXFLAGS" = set; then
1.15 paf 2373: CXXFLAGS=$ac_save_CXXFLAGS
1.1 parser 2374: elif test $ac_cv_prog_cxx_g = yes; then
2375: if test "$GXX" = yes; then
2376: CXXFLAGS="-g -O2"
2377: else
2378: CXXFLAGS="-g"
2379: fi
2380: else
2381: if test "$GXX" = yes; then
2382: CXXFLAGS="-O2"
2383: else
2384: CXXFLAGS=
2385: fi
2386: fi
1.15 paf 2387: for ac_declaration in \
1.25 paf 2388: '' \
1.15 paf 2389: 'extern "C" void std::exit (int) throw (); using std::exit;' \
2390: 'extern "C" void std::exit (int); using std::exit;' \
2391: 'extern "C" void exit (int) throw ();' \
2392: 'extern "C" void exit (int);' \
2393: 'void exit (int);'
2394: do
2395: cat >conftest.$ac_ext <<_ACEOF
2396: /* confdefs.h. */
2397: _ACEOF
2398: cat confdefs.h >>conftest.$ac_ext
2399: cat >>conftest.$ac_ext <<_ACEOF
2400: /* end confdefs.h. */
1.25 paf 2401: $ac_declaration
1.15 paf 2402: #include <stdlib.h>
2403: int
2404: main ()
2405: {
2406: exit (42);
2407: ;
2408: return 0;
2409: }
2410: _ACEOF
2411: rm -f conftest.$ac_objext
2412: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.25 paf 2413: (eval $ac_compile) 2>conftest.er1
1.15 paf 2414: ac_status=$?
1.25 paf 2415: grep -v '^ *+' conftest.er1 >conftest.err
2416: rm -f conftest.er1
2417: cat conftest.err >&5
1.15 paf 2418: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419: (exit $ac_status); } &&
1.25 paf 2420: { ac_try='test -z "$ac_cxx_werror_flag"
2421: || test ! -s conftest.err'
2422: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2423: (eval $ac_try) 2>&5
2424: ac_status=$?
2425: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426: (exit $ac_status); }; } &&
2427: { ac_try='test -s conftest.$ac_objext'
1.15 paf 2428: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2429: (eval $ac_try) 2>&5
2430: ac_status=$?
2431: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432: (exit $ac_status); }; }; then
2433: :
2434: else
2435: echo "$as_me: failed program was:" >&5
2436: sed 's/^/| /' conftest.$ac_ext >&5
2437:
2438: continue
2439: fi
1.25 paf 2440: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 paf 2441: cat >conftest.$ac_ext <<_ACEOF
2442: /* confdefs.h. */
2443: _ACEOF
2444: cat confdefs.h >>conftest.$ac_ext
2445: cat >>conftest.$ac_ext <<_ACEOF
2446: /* end confdefs.h. */
2447: $ac_declaration
2448: int
2449: main ()
2450: {
2451: exit (42);
2452: ;
2453: return 0;
2454: }
2455: _ACEOF
2456: rm -f conftest.$ac_objext
2457: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.25 paf 2458: (eval $ac_compile) 2>conftest.er1
1.15 paf 2459: ac_status=$?
1.25 paf 2460: grep -v '^ *+' conftest.er1 >conftest.err
2461: rm -f conftest.er1
2462: cat conftest.err >&5
1.15 paf 2463: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464: (exit $ac_status); } &&
1.25 paf 2465: { ac_try='test -z "$ac_cxx_werror_flag"
2466: || test ! -s conftest.err'
2467: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2468: (eval $ac_try) 2>&5
2469: ac_status=$?
2470: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471: (exit $ac_status); }; } &&
2472: { ac_try='test -s conftest.$ac_objext'
1.15 paf 2473: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2474: (eval $ac_try) 2>&5
2475: ac_status=$?
2476: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2477: (exit $ac_status); }; }; then
2478: break
2479: else
2480: echo "$as_me: failed program was:" >&5
2481: sed 's/^/| /' conftest.$ac_ext >&5
2482:
2483: fi
1.25 paf 2484: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 paf 2485: done
2486: rm -f conftest*
2487: if test -n "$ac_declaration"; then
2488: echo '#ifdef __cplusplus' >>confdefs.h
2489: echo $ac_declaration >>confdefs.h
2490: echo '#endif' >>confdefs.h
2491: fi
2492:
1.24 paf 2493: ac_ext=c
2494: ac_cpp='$CPP $CPPFLAGS'
2495: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2496: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2497: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.25 paf 2498: DEPDIR="${am__leading_dot}deps"
1.15 paf 2499:
2500: ac_config_commands="$ac_config_commands depfiles"
2501:
2502:
2503: am_make=${MAKE-make}
2504: cat > confinc << 'END'
1.25 paf 2505: am__doit:
1.15 paf 2506: @echo done
1.25 paf 2507: .PHONY: am__doit
1.15 paf 2508: END
2509: # If we don't find an include directive, just comment out the code.
2510: echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2511: echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2512: am__include="#"
2513: am__quote=
2514: _am_result=none
2515: # First try GNU make style include.
2516: echo "include confinc" > confmf
2517: # We grep out `Entering directory' and `Leaving directory'
2518: # messages which can occur if `w' ends up in MAKEFLAGS.
2519: # In particular we don't look at `^make:' because GNU make might
2520: # be invoked under some other name (usually "gmake"), in which
2521: # case it prints its new name instead of `make'.
2522: if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2523: am__include=include
2524: am__quote=
2525: _am_result=GNU
2526: fi
2527: # Now try BSD make style include.
2528: if test "$am__include" = "#"; then
2529: echo '.include "confinc"' > confmf
2530: if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2531: am__include=.include
2532: am__quote="\""
2533: _am_result=BSD
2534: fi
2535: fi
2536:
2537:
2538: echo "$as_me:$LINENO: result: $_am_result" >&5
2539: echo "${ECHO_T}$_am_result" >&6
2540: rm -f confinc confmf
2541:
2542: # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2543: if test "${enable_dependency_tracking+set}" = set; then
2544: enableval="$enable_dependency_tracking"
2545:
2546: fi;
2547: if test "x$enable_dependency_tracking" != xno; then
2548: am_depcomp="$ac_aux_dir/depcomp"
2549: AMDEPBACKSLASH='\'
2550: fi
2551:
2552:
2553: if test "x$enable_dependency_tracking" != xno; then
2554: AMDEP_TRUE=
2555: AMDEP_FALSE='#'
2556: else
2557: AMDEP_TRUE='#'
2558: AMDEP_FALSE=
2559: fi
2560:
2561:
2562:
2563:
2564: depcc="$CXX" am_compiler_list=
2565:
2566: echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2567: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2568: if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2569: echo $ECHO_N "(cached) $ECHO_C" >&6
2570: else
2571: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2572: # We make a subdir and do the tests there. Otherwise we can end up
2573: # making bogus files that we don't know about and never remove. For
2574: # instance it was reported that on HP-UX the gcc test will end up
2575: # making a dummy file named `D' -- because `-MD' means `put the output
2576: # in D'.
2577: mkdir conftest.dir
2578: # Copy depcomp to subdir because otherwise we won't find it if we're
2579: # using a relative directory.
2580: cp "$am_depcomp" conftest.dir
2581: cd conftest.dir
1.25 paf 2582: # We will build objects and dependencies in a subdirectory because
2583: # it helps to detect inapplicable dependency modes. For instance
2584: # both Tru64's cc and ICC support -MD to output dependencies as a
2585: # side effect of compilation, but ICC will put the dependencies in
2586: # the current directory while Tru64 will put them in the object
2587: # directory.
2588: mkdir sub
1.15 paf 2589:
2590: am_cv_CXX_dependencies_compiler_type=none
2591: if test "$am_compiler_list" = ""; then
2592: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2593: fi
2594: for depmode in $am_compiler_list; do
1.25 paf 2595: # Setup a source with many dependencies, because some compilers
2596: # like to wrap large dependency lists on column 80 (with \), and
2597: # we should not choose a depcomp mode which is confused by this.
2598: #
1.15 paf 2599: # We need to recreate these files for each test, as the compiler may
2600: # overwrite some of them when testing with obscure command lines.
2601: # This happens at least with the AIX C compiler.
1.25 paf 2602: : > sub/conftest.c
2603: for i in 1 2 3 4 5 6; do
2604: echo '#include "conftst'$i'.h"' >> sub/conftest.c
2605: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2606: # Solaris 8's {/usr,}/bin/sh.
2607: touch sub/conftst$i.h
2608: done
2609: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.15 paf 2610:
2611: case $depmode in
2612: nosideeffect)
2613: # after this tag, mechanisms are not by side-effect, so they'll
2614: # only be used when explicitly requested
2615: if test "x$enable_dependency_tracking" = xyes; then
2616: continue
2617: else
2618: break
2619: fi
2620: ;;
2621: none) break ;;
2622: esac
2623: # We check with `-c' and `-o' for the sake of the "dashmstdout"
2624: # mode. It turns out that the SunPro C++ compiler does not properly
2625: # handle `-M -o', and we need to detect this.
2626: if depmode=$depmode \
1.25 paf 2627: source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2628: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2629: $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2630: >/dev/null 2>conftest.err &&
2631: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2632: grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
1.15 paf 2633: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.25 paf 2634: # icc doesn't choke on unknown options, it will just issue warnings
2635: # or remarks (even with -Werror). So we grep stderr for any message
2636: # that says an option was ignored or not supported.
2637: # When given -MP, icc 7.0 and 7.1 complain thusly:
2638: # icc: Command line warning: ignoring option '-M'; no argument required
2639: # The diagnosis changed in icc 8.0:
2640: # icc: Command line remark: option '-MP' not supported
2641: if (grep 'ignoring option' conftest.err ||
2642: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2643: am_cv_CXX_dependencies_compiler_type=$depmode
2644: break
2645: fi
1.15 paf 2646: fi
2647: done
2648:
2649: cd ..
2650: rm -rf conftest.dir
2651: else
2652: am_cv_CXX_dependencies_compiler_type=none
2653: fi
2654:
2655: fi
2656: echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2657: echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2658: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2659:
2660:
2661:
2662: if
2663: test "x$enable_dependency_tracking" != xno \
2664: && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2665: am__fastdepCXX_TRUE=
2666: am__fastdepCXX_FALSE='#'
2667: else
2668: am__fastdepCXX_TRUE='#'
2669: am__fastdepCXX_FALSE=
2670: fi
2671:
1.1 parser 2672:
1.15 paf 2673: ac_ext=c
2674: ac_cpp='$CPP $CPPFLAGS'
2675: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2676: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2677: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2678: if test -n "$ac_tool_prefix"; then
2679: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2680: set dummy ${ac_tool_prefix}gcc; ac_word=$2
2681: echo "$as_me:$LINENO: checking for $ac_word" >&5
2682: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2683: if test "${ac_cv_prog_CC+set}" = set; then
2684: echo $ECHO_N "(cached) $ECHO_C" >&6
2685: else
2686: if test -n "$CC"; then
2687: ac_cv_prog_CC="$CC" # Let the user override the test.
2688: else
2689: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2690: for as_dir in $PATH
2691: do
2692: IFS=$as_save_IFS
2693: test -z "$as_dir" && as_dir=.
2694: for ac_exec_ext in '' $ac_executable_extensions; do
2695: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2696: ac_cv_prog_CC="${ac_tool_prefix}gcc"
2697: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2698: break 2
2699: fi
2700: done
2701: done
1.1 parser 2702:
1.15 paf 2703: fi
2704: fi
2705: CC=$ac_cv_prog_CC
2706: if test -n "$CC"; then
2707: echo "$as_me:$LINENO: result: $CC" >&5
2708: echo "${ECHO_T}$CC" >&6
2709: else
2710: echo "$as_me:$LINENO: result: no" >&5
2711: echo "${ECHO_T}no" >&6
2712: fi
1.1 parser 2713:
1.15 paf 2714: fi
2715: if test -z "$ac_cv_prog_CC"; then
2716: ac_ct_CC=$CC
2717: # Extract the first word of "gcc", so it can be a program name with args.
2718: set dummy gcc; ac_word=$2
2719: echo "$as_me:$LINENO: checking for $ac_word" >&5
2720: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2721: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2722: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 2723: else
1.15 paf 2724: if test -n "$ac_ct_CC"; then
2725: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.1 parser 2726: else
1.15 paf 2727: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2728: for as_dir in $PATH
2729: do
2730: IFS=$as_save_IFS
2731: test -z "$as_dir" && as_dir=.
2732: for ac_exec_ext in '' $ac_executable_extensions; do
2733: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2734: ac_cv_prog_ac_ct_CC="gcc"
2735: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2736: break 2
2737: fi
2738: done
2739: done
2740:
2741: fi
1.1 parser 2742: fi
1.15 paf 2743: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2744: if test -n "$ac_ct_CC"; then
2745: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2746: echo "${ECHO_T}$ac_ct_CC" >&6
2747: else
2748: echo "$as_me:$LINENO: result: no" >&5
2749: echo "${ECHO_T}no" >&6
1.1 parser 2750: fi
1.15 paf 2751:
2752: CC=$ac_ct_CC
1.1 parser 2753: else
1.15 paf 2754: CC="$ac_cv_prog_CC"
1.1 parser 2755: fi
2756:
1.15 paf 2757: if test -z "$CC"; then
2758: if test -n "$ac_tool_prefix"; then
2759: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2760: set dummy ${ac_tool_prefix}cc; ac_word=$2
2761: echo "$as_me:$LINENO: checking for $ac_word" >&5
2762: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2763: if test "${ac_cv_prog_CC+set}" = set; then
2764: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 2765: else
2766: if test -n "$CC"; then
2767: ac_cv_prog_CC="$CC" # Let the user override the test.
2768: else
1.15 paf 2769: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2770: for as_dir in $PATH
2771: do
2772: IFS=$as_save_IFS
2773: test -z "$as_dir" && as_dir=.
2774: for ac_exec_ext in '' $ac_executable_extensions; do
2775: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2776: ac_cv_prog_CC="${ac_tool_prefix}cc"
2777: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2778: break 2
2779: fi
2780: done
2781: done
2782:
1.1 parser 2783: fi
2784: fi
1.15 paf 2785: CC=$ac_cv_prog_CC
1.1 parser 2786: if test -n "$CC"; then
1.15 paf 2787: echo "$as_me:$LINENO: result: $CC" >&5
2788: echo "${ECHO_T}$CC" >&6
2789: else
2790: echo "$as_me:$LINENO: result: no" >&5
2791: echo "${ECHO_T}no" >&6
2792: fi
2793:
2794: fi
2795: if test -z "$ac_cv_prog_CC"; then
2796: ac_ct_CC=$CC
2797: # Extract the first word of "cc", so it can be a program name with args.
2798: set dummy cc; ac_word=$2
2799: echo "$as_me:$LINENO: checking for $ac_word" >&5
2800: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2801: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2802: echo $ECHO_N "(cached) $ECHO_C" >&6
2803: else
2804: if test -n "$ac_ct_CC"; then
2805: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2806: else
2807: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2808: for as_dir in $PATH
2809: do
2810: IFS=$as_save_IFS
2811: test -z "$as_dir" && as_dir=.
2812: for ac_exec_ext in '' $ac_executable_extensions; do
2813: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2814: ac_cv_prog_ac_ct_CC="cc"
2815: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2816: break 2
2817: fi
2818: done
2819: done
2820:
2821: fi
2822: fi
2823: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2824: if test -n "$ac_ct_CC"; then
2825: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2826: echo "${ECHO_T}$ac_ct_CC" >&6
2827: else
2828: echo "$as_me:$LINENO: result: no" >&5
2829: echo "${ECHO_T}no" >&6
2830: fi
2831:
2832: CC=$ac_ct_CC
1.1 parser 2833: else
1.15 paf 2834: CC="$ac_cv_prog_CC"
1.1 parser 2835: fi
2836:
1.15 paf 2837: fi
1.1 parser 2838: if test -z "$CC"; then
2839: # Extract the first word of "cc", so it can be a program name with args.
2840: set dummy cc; ac_word=$2
1.15 paf 2841: echo "$as_me:$LINENO: checking for $ac_word" >&5
2842: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2843: if test "${ac_cv_prog_CC+set}" = set; then
2844: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 2845: else
2846: if test -n "$CC"; then
2847: ac_cv_prog_CC="$CC" # Let the user override the test.
2848: else
2849: ac_prog_rejected=no
1.15 paf 2850: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2851: for as_dir in $PATH
2852: do
2853: IFS=$as_save_IFS
2854: test -z "$as_dir" && as_dir=.
2855: for ac_exec_ext in '' $ac_executable_extensions; do
2856: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2857: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2858: ac_prog_rejected=yes
2859: continue
2860: fi
2861: ac_cv_prog_CC="cc"
2862: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2863: break 2
2864: fi
2865: done
2866: done
2867:
1.1 parser 2868: if test $ac_prog_rejected = yes; then
2869: # We found a bogon in the path, so make sure we never use it.
2870: set dummy $ac_cv_prog_CC
2871: shift
1.15 paf 2872: if test $# != 0; then
1.1 parser 2873: # We chose a different compiler from the bogus one.
2874: # However, it has the same basename, so the bogon will be chosen
2875: # first if we set CC to just the basename; use the full file name.
2876: shift
1.15 paf 2877: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1.1 parser 2878: fi
2879: fi
2880: fi
2881: fi
1.15 paf 2882: CC=$ac_cv_prog_CC
1.1 parser 2883: if test -n "$CC"; then
1.15 paf 2884: echo "$as_me:$LINENO: result: $CC" >&5
2885: echo "${ECHO_T}$CC" >&6
1.1 parser 2886: else
1.15 paf 2887: echo "$as_me:$LINENO: result: no" >&5
2888: echo "${ECHO_T}no" >&6
1.1 parser 2889: fi
2890:
1.15 paf 2891: fi
2892: if test -z "$CC"; then
2893: if test -n "$ac_tool_prefix"; then
2894: for ac_prog in cl
2895: do
2896: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2897: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2898: echo "$as_me:$LINENO: checking for $ac_word" >&5
2899: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2900: if test "${ac_cv_prog_CC+set}" = set; then
2901: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 2902: else
2903: if test -n "$CC"; then
2904: ac_cv_prog_CC="$CC" # Let the user override the test.
2905: else
1.15 paf 2906: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2907: for as_dir in $PATH
2908: do
2909: IFS=$as_save_IFS
2910: test -z "$as_dir" && as_dir=.
2911: for ac_exec_ext in '' $ac_executable_extensions; do
2912: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2913: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2914: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2915: break 2
2916: fi
2917: done
2918: done
2919:
1.1 parser 2920: fi
2921: fi
1.15 paf 2922: CC=$ac_cv_prog_CC
1.1 parser 2923: if test -n "$CC"; then
1.15 paf 2924: echo "$as_me:$LINENO: result: $CC" >&5
2925: echo "${ECHO_T}$CC" >&6
1.1 parser 2926: else
1.15 paf 2927: echo "$as_me:$LINENO: result: no" >&5
2928: echo "${ECHO_T}no" >&6
2929: fi
2930:
2931: test -n "$CC" && break
2932: done
1.1 parser 2933: fi
1.15 paf 2934: if test -z "$CC"; then
2935: ac_ct_CC=$CC
2936: for ac_prog in cl
2937: do
2938: # Extract the first word of "$ac_prog", so it can be a program name with args.
2939: set dummy $ac_prog; ac_word=$2
2940: echo "$as_me:$LINENO: checking for $ac_word" >&5
2941: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2942: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2943: echo $ECHO_N "(cached) $ECHO_C" >&6
2944: else
2945: if test -n "$ac_ct_CC"; then
2946: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2947: else
2948: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949: for as_dir in $PATH
2950: do
2951: IFS=$as_save_IFS
2952: test -z "$as_dir" && as_dir=.
2953: for ac_exec_ext in '' $ac_executable_extensions; do
2954: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2955: ac_cv_prog_ac_ct_CC="$ac_prog"
2956: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2957: break 2
1.1 parser 2958: fi
1.15 paf 2959: done
2960: done
2961:
2962: fi
2963: fi
2964: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2965: if test -n "$ac_ct_CC"; then
2966: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2967: echo "${ECHO_T}$ac_ct_CC" >&6
2968: else
2969: echo "$as_me:$LINENO: result: no" >&5
2970: echo "${ECHO_T}no" >&6
1.1 parser 2971: fi
2972:
1.15 paf 2973: test -n "$ac_ct_CC" && break
2974: done
1.1 parser 2975:
1.15 paf 2976: CC=$ac_ct_CC
2977: fi
1.1 parser 2978:
1.15 paf 2979: fi
1.1 parser 2980:
2981:
1.15 paf 2982: test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2983: See \`config.log' for more details." >&5
2984: echo "$as_me: error: no acceptable C compiler found in \$PATH
2985: See \`config.log' for more details." >&2;}
2986: { (exit 1); exit 1; }; }
2987:
2988: # Provide some information about the compiler.
2989: echo "$as_me:$LINENO:" \
2990: "checking for C compiler version" >&5
2991: ac_compiler=`set X $ac_compile; echo $2`
2992: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2993: (eval $ac_compiler --version </dev/null >&5) 2>&5
2994: ac_status=$?
2995: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996: (exit $ac_status); }
2997: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2998: (eval $ac_compiler -v </dev/null >&5) 2>&5
2999: ac_status=$?
3000: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001: (exit $ac_status); }
3002: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3003: (eval $ac_compiler -V </dev/null >&5) 2>&5
3004: ac_status=$?
3005: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3006: (exit $ac_status); }
3007:
3008: echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3009: echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3010: if test "${ac_cv_c_compiler_gnu+set}" = set; then
3011: echo $ECHO_N "(cached) $ECHO_C" >&6
3012: else
3013: cat >conftest.$ac_ext <<_ACEOF
3014: /* confdefs.h. */
3015: _ACEOF
3016: cat confdefs.h >>conftest.$ac_ext
3017: cat >>conftest.$ac_ext <<_ACEOF
3018: /* end confdefs.h. */
3019:
3020: int
3021: main ()
3022: {
3023: #ifndef __GNUC__
3024: choke me
1.1 parser 3025: #endif
3026:
1.15 paf 3027: ;
3028: return 0;
3029: }
3030: _ACEOF
3031: rm -f conftest.$ac_objext
3032: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.25 paf 3033: (eval $ac_compile) 2>conftest.er1
1.15 paf 3034: ac_status=$?
1.25 paf 3035: grep -v '^ *+' conftest.er1 >conftest.err
3036: rm -f conftest.er1
3037: cat conftest.err >&5
1.15 paf 3038: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039: (exit $ac_status); } &&
1.25 paf 3040: { ac_try='test -z "$ac_c_werror_flag"
3041: || test ! -s conftest.err'
3042: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3043: (eval $ac_try) 2>&5
3044: ac_status=$?
3045: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046: (exit $ac_status); }; } &&
3047: { ac_try='test -s conftest.$ac_objext'
1.15 paf 3048: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3049: (eval $ac_try) 2>&5
3050: ac_status=$?
3051: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052: (exit $ac_status); }; }; then
3053: ac_compiler_gnu=yes
3054: else
3055: echo "$as_me: failed program was:" >&5
3056: sed 's/^/| /' conftest.$ac_ext >&5
3057:
3058: ac_compiler_gnu=no
3059: fi
1.25 paf 3060: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 paf 3061: ac_cv_c_compiler_gnu=$ac_compiler_gnu
3062:
3063: fi
3064: echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3065: echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3066: GCC=`test $ac_compiler_gnu = yes && echo yes`
3067: ac_test_CFLAGS=${CFLAGS+set}
3068: ac_save_CFLAGS=$CFLAGS
3069: CFLAGS="-g"
3070: echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3071: echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3072: if test "${ac_cv_prog_cc_g+set}" = set; then
3073: echo $ECHO_N "(cached) $ECHO_C" >&6
3074: else
3075: cat >conftest.$ac_ext <<_ACEOF
3076: /* confdefs.h. */
3077: _ACEOF
3078: cat confdefs.h >>conftest.$ac_ext
3079: cat >>conftest.$ac_ext <<_ACEOF
3080: /* end confdefs.h. */
3081:
3082: int
3083: main ()
3084: {
3085:
3086: ;
3087: return 0;
3088: }
3089: _ACEOF
3090: rm -f conftest.$ac_objext
3091: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.25 paf 3092: (eval $ac_compile) 2>conftest.er1
1.15 paf 3093: ac_status=$?
1.25 paf 3094: grep -v '^ *+' conftest.er1 >conftest.err
3095: rm -f conftest.er1
3096: cat conftest.err >&5
1.15 paf 3097: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098: (exit $ac_status); } &&
1.25 paf 3099: { ac_try='test -z "$ac_c_werror_flag"
3100: || test ! -s conftest.err'
3101: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3102: (eval $ac_try) 2>&5
3103: ac_status=$?
3104: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105: (exit $ac_status); }; } &&
3106: { ac_try='test -s conftest.$ac_objext'
1.15 paf 3107: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3108: (eval $ac_try) 2>&5
3109: ac_status=$?
3110: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111: (exit $ac_status); }; }; then
3112: ac_cv_prog_cc_g=yes
1.1 parser 3113: else
1.15 paf 3114: echo "$as_me: failed program was:" >&5
3115: sed 's/^/| /' conftest.$ac_ext >&5
1.1 parser 3116:
1.15 paf 3117: ac_cv_prog_cc_g=no
1.1 parser 3118: fi
1.25 paf 3119: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 parser 3120: fi
1.15 paf 3121: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3122: echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1.1 parser 3123: if test "$ac_test_CFLAGS" = set; then
1.15 paf 3124: CFLAGS=$ac_save_CFLAGS
1.1 parser 3125: elif test $ac_cv_prog_cc_g = yes; then
3126: if test "$GCC" = yes; then
3127: CFLAGS="-g -O2"
3128: else
3129: CFLAGS="-g"
3130: fi
3131: else
3132: if test "$GCC" = yes; then
3133: CFLAGS="-O2"
3134: else
3135: CFLAGS=
3136: fi
3137: fi
1.15 paf 3138: echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3139: echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3140: if test "${ac_cv_prog_cc_stdc+set}" = set; then
3141: echo $ECHO_N "(cached) $ECHO_C" >&6
3142: else
3143: ac_cv_prog_cc_stdc=no
3144: ac_save_CC=$CC
3145: cat >conftest.$ac_ext <<_ACEOF
3146: /* confdefs.h. */
3147: _ACEOF
3148: cat confdefs.h >>conftest.$ac_ext
3149: cat >>conftest.$ac_ext <<_ACEOF
3150: /* end confdefs.h. */
3151: #include <stdarg.h>
3152: #include <stdio.h>
3153: #include <sys/types.h>
3154: #include <sys/stat.h>
3155: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3156: struct buf { int x; };
3157: FILE * (*rcsopen) (struct buf *, struct stat *, int);
3158: static char *e (p, i)
3159: char **p;
3160: int i;
3161: {
3162: return p[i];
3163: }
3164: static char *f (char * (*g) (char **, int), char **p, ...)
3165: {
3166: char *s;
3167: va_list v;
3168: va_start (v,p);
3169: s = g (p, va_arg (v,int));
3170: va_end (v);
3171: return s;
3172: }
1.25 paf 3173:
3174: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3175: function prototypes and stuff, but not '\xHH' hex character constants.
3176: These don't provoke an error unfortunately, instead are silently treated
3177: as 'x'. The following induces an error, until -std1 is added to get
3178: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3179: array size at least. It's necessary to write '\x00'==0 to get something
3180: that's true only with -std1. */
3181: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3182:
1.15 paf 3183: int test (int i, double x);
3184: struct s1 {int (*f) (int a);};
3185: struct s2 {int (*f) (double a);};
3186: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3187: int argc;
3188: char **argv;
3189: int
3190: main ()
3191: {
3192: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3193: ;
3194: return 0;
3195: }
3196: _ACEOF
3197: # Don't try gcc -ansi; that turns off useful extensions and
3198: # breaks some systems' header files.
3199: # AIX -qlanglvl=ansi
3200: # Ultrix and OSF/1 -std1
3201: # HP-UX 10.20 and later -Ae
3202: # HP-UX older versions -Aa -D_HPUX_SOURCE
3203: # SVR4 -Xc -D__EXTENSIONS__
3204: for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3205: do
3206: CC="$ac_save_CC $ac_arg"
3207: rm -f conftest.$ac_objext
3208: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.25 paf 3209: (eval $ac_compile) 2>conftest.er1
1.15 paf 3210: ac_status=$?
1.25 paf 3211: grep -v '^ *+' conftest.er1 >conftest.err
3212: rm -f conftest.er1
3213: cat conftest.err >&5
1.15 paf 3214: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3215: (exit $ac_status); } &&
1.25 paf 3216: { ac_try='test -z "$ac_c_werror_flag"
3217: || test ! -s conftest.err'
3218: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3219: (eval $ac_try) 2>&5
3220: ac_status=$?
3221: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3222: (exit $ac_status); }; } &&
3223: { ac_try='test -s conftest.$ac_objext'
1.15 paf 3224: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3225: (eval $ac_try) 2>&5
3226: ac_status=$?
3227: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228: (exit $ac_status); }; }; then
3229: ac_cv_prog_cc_stdc=$ac_arg
3230: break
3231: else
3232: echo "$as_me: failed program was:" >&5
3233: sed 's/^/| /' conftest.$ac_ext >&5
3234:
3235: fi
1.25 paf 3236: rm -f conftest.err conftest.$ac_objext
1.15 paf 3237: done
3238: rm -f conftest.$ac_ext conftest.$ac_objext
3239: CC=$ac_save_CC
3240:
3241: fi
3242:
3243: case "x$ac_cv_prog_cc_stdc" in
3244: x|xno)
3245: echo "$as_me:$LINENO: result: none needed" >&5
3246: echo "${ECHO_T}none needed" >&6 ;;
3247: *)
3248: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3249: echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3250: CC="$CC $ac_cv_prog_cc_stdc" ;;
3251: esac
3252:
3253: # Some people use a C++ compiler to compile C. Since we use `exit',
3254: # in C++ we need to declare it. In case someone uses the same compiler
3255: # for both compiling C and C++ we need to have the C++ compiler decide
3256: # the declaration of exit, since it's the most demanding environment.
3257: cat >conftest.$ac_ext <<_ACEOF
3258: #ifndef __cplusplus
3259: choke me
3260: #endif
3261: _ACEOF
3262: rm -f conftest.$ac_objext
3263: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.25 paf 3264: (eval $ac_compile) 2>conftest.er1
1.15 paf 3265: ac_status=$?
1.25 paf 3266: grep -v '^ *+' conftest.er1 >conftest.err
3267: rm -f conftest.er1
3268: cat conftest.err >&5
1.15 paf 3269: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270: (exit $ac_status); } &&
1.25 paf 3271: { ac_try='test -z "$ac_c_werror_flag"
3272: || test ! -s conftest.err'
3273: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3274: (eval $ac_try) 2>&5
3275: ac_status=$?
3276: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277: (exit $ac_status); }; } &&
3278: { ac_try='test -s conftest.$ac_objext'
1.15 paf 3279: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3280: (eval $ac_try) 2>&5
3281: ac_status=$?
3282: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283: (exit $ac_status); }; }; then
3284: for ac_declaration in \
1.25 paf 3285: '' \
1.15 paf 3286: 'extern "C" void std::exit (int) throw (); using std::exit;' \
3287: 'extern "C" void std::exit (int); using std::exit;' \
3288: 'extern "C" void exit (int) throw ();' \
3289: 'extern "C" void exit (int);' \
3290: 'void exit (int);'
3291: do
3292: cat >conftest.$ac_ext <<_ACEOF
3293: /* confdefs.h. */
3294: _ACEOF
3295: cat confdefs.h >>conftest.$ac_ext
3296: cat >>conftest.$ac_ext <<_ACEOF
3297: /* end confdefs.h. */
1.25 paf 3298: $ac_declaration
1.15 paf 3299: #include <stdlib.h>
3300: int
3301: main ()
3302: {
3303: exit (42);
3304: ;
3305: return 0;
3306: }
3307: _ACEOF
3308: rm -f conftest.$ac_objext
3309: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.25 paf 3310: (eval $ac_compile) 2>conftest.er1
1.15 paf 3311: ac_status=$?
1.25 paf 3312: grep -v '^ *+' conftest.er1 >conftest.err
3313: rm -f conftest.er1
3314: cat conftest.err >&5
1.15 paf 3315: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3316: (exit $ac_status); } &&
1.25 paf 3317: { ac_try='test -z "$ac_c_werror_flag"
3318: || test ! -s conftest.err'
3319: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3320: (eval $ac_try) 2>&5
3321: ac_status=$?
3322: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323: (exit $ac_status); }; } &&
3324: { ac_try='test -s conftest.$ac_objext'
1.15 paf 3325: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3326: (eval $ac_try) 2>&5
3327: ac_status=$?
3328: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3329: (exit $ac_status); }; }; then
3330: :
3331: else
3332: echo "$as_me: failed program was:" >&5
3333: sed 's/^/| /' conftest.$ac_ext >&5
3334:
3335: continue
3336: fi
1.25 paf 3337: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 paf 3338: cat >conftest.$ac_ext <<_ACEOF
3339: /* confdefs.h. */
3340: _ACEOF
3341: cat confdefs.h >>conftest.$ac_ext
3342: cat >>conftest.$ac_ext <<_ACEOF
3343: /* end confdefs.h. */
3344: $ac_declaration
3345: int
3346: main ()
3347: {
3348: exit (42);
3349: ;
3350: return 0;
3351: }
3352: _ACEOF
3353: rm -f conftest.$ac_objext
3354: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.25 paf 3355: (eval $ac_compile) 2>conftest.er1
1.15 paf 3356: ac_status=$?
1.25 paf 3357: grep -v '^ *+' conftest.er1 >conftest.err
3358: rm -f conftest.er1
3359: cat conftest.err >&5
1.15 paf 3360: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361: (exit $ac_status); } &&
1.25 paf 3362: { ac_try='test -z "$ac_c_werror_flag"
3363: || test ! -s conftest.err'
3364: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3365: (eval $ac_try) 2>&5
3366: ac_status=$?
3367: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368: (exit $ac_status); }; } &&
3369: { ac_try='test -s conftest.$ac_objext'
1.15 paf 3370: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3371: (eval $ac_try) 2>&5
3372: ac_status=$?
3373: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374: (exit $ac_status); }; }; then
3375: break
3376: else
3377: echo "$as_me: failed program was:" >&5
3378: sed 's/^/| /' conftest.$ac_ext >&5
3379:
3380: fi
1.25 paf 3381: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 paf 3382: done
3383: rm -f conftest*
3384: if test -n "$ac_declaration"; then
3385: echo '#ifdef __cplusplus' >>confdefs.h
3386: echo $ac_declaration >>confdefs.h
3387: echo '#endif' >>confdefs.h
3388: fi
3389:
3390: else
3391: echo "$as_me: failed program was:" >&5
3392: sed 's/^/| /' conftest.$ac_ext >&5
3393:
3394: fi
1.25 paf 3395: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.24 paf 3396: ac_ext=c
3397: ac_cpp='$CPP $CPPFLAGS'
3398: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3399: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3400: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.15 paf 3401:
3402: depcc="$CC" am_compiler_list=
3403:
3404: echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3405: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3406: if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3407: echo $ECHO_N "(cached) $ECHO_C" >&6
3408: else
3409: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3410: # We make a subdir and do the tests there. Otherwise we can end up
3411: # making bogus files that we don't know about and never remove. For
3412: # instance it was reported that on HP-UX the gcc test will end up
3413: # making a dummy file named `D' -- because `-MD' means `put the output
3414: # in D'.
3415: mkdir conftest.dir
3416: # Copy depcomp to subdir because otherwise we won't find it if we're
3417: # using a relative directory.
3418: cp "$am_depcomp" conftest.dir
3419: cd conftest.dir
1.25 paf 3420: # We will build objects and dependencies in a subdirectory because
3421: # it helps to detect inapplicable dependency modes. For instance
3422: # both Tru64's cc and ICC support -MD to output dependencies as a
3423: # side effect of compilation, but ICC will put the dependencies in
3424: # the current directory while Tru64 will put them in the object
3425: # directory.
3426: mkdir sub
1.15 paf 3427:
3428: am_cv_CC_dependencies_compiler_type=none
3429: if test "$am_compiler_list" = ""; then
3430: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3431: fi
3432: for depmode in $am_compiler_list; do
1.25 paf 3433: # Setup a source with many dependencies, because some compilers
3434: # like to wrap large dependency lists on column 80 (with \), and
3435: # we should not choose a depcomp mode which is confused by this.
3436: #
1.15 paf 3437: # We need to recreate these files for each test, as the compiler may
3438: # overwrite some of them when testing with obscure command lines.
3439: # This happens at least with the AIX C compiler.
1.25 paf 3440: : > sub/conftest.c
3441: for i in 1 2 3 4 5 6; do
3442: echo '#include "conftst'$i'.h"' >> sub/conftest.c
3443: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3444: # Solaris 8's {/usr,}/bin/sh.
3445: touch sub/conftst$i.h
3446: done
3447: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.15 paf 3448:
3449: case $depmode in
3450: nosideeffect)
3451: # after this tag, mechanisms are not by side-effect, so they'll
3452: # only be used when explicitly requested
3453: if test "x$enable_dependency_tracking" = xyes; then
3454: continue
3455: else
3456: break
3457: fi
3458: ;;
3459: none) break ;;
3460: esac
3461: # We check with `-c' and `-o' for the sake of the "dashmstdout"
3462: # mode. It turns out that the SunPro C++ compiler does not properly
3463: # handle `-M -o', and we need to detect this.
3464: if depmode=$depmode \
1.25 paf 3465: source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3466: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3467: $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3468: >/dev/null 2>conftest.err &&
3469: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3470: grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
1.15 paf 3471: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.25 paf 3472: # icc doesn't choke on unknown options, it will just issue warnings
3473: # or remarks (even with -Werror). So we grep stderr for any message
3474: # that says an option was ignored or not supported.
3475: # When given -MP, icc 7.0 and 7.1 complain thusly:
3476: # icc: Command line warning: ignoring option '-M'; no argument required
3477: # The diagnosis changed in icc 8.0:
3478: # icc: Command line remark: option '-MP' not supported
3479: if (grep 'ignoring option' conftest.err ||
3480: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3481: am_cv_CC_dependencies_compiler_type=$depmode
3482: break
3483: fi
1.15 paf 3484: fi
3485: done
3486:
3487: cd ..
3488: rm -rf conftest.dir
3489: else
3490: am_cv_CC_dependencies_compiler_type=none
3491: fi
3492:
3493: fi
3494: echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3495: echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3496: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3497:
3498:
3499:
3500: if
3501: test "x$enable_dependency_tracking" != xno \
3502: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3503: am__fastdepCC_TRUE=
3504: am__fastdepCC_FALSE='#'
3505: else
3506: am__fastdepCC_TRUE='#'
3507: am__fastdepCC_FALSE=
3508: fi
3509:
3510:
1.24 paf 3511:
1.35 moko 3512:
1.36 ! moko 3513:
! 3514:
! 3515:
! 3516:
! 3517:
! 3518:
! 3519:
1.35 moko 3520: case `pwd` in
3521: *\ * | *\ *)
3522: { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3523: echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3524: esac
3525:
3526:
3527:
3528: macro_version='2.4.2'
3529: macro_revision='1.3337'
3530:
3531:
3532:
3533:
3534:
3535:
3536:
1.24 paf 3537:
3538:
3539:
3540:
3541:
3542:
1.35 moko 3543: ltmain="$ac_aux_dir/ltmain.sh"
1.24 paf 3544:
3545: # Make sure we can run config.sub.
3546: $ac_config_sub sun4 >/dev/null 2>&1 ||
3547: { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3548: echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3549: { (exit 1); exit 1; }; }
3550:
3551: echo "$as_me:$LINENO: checking build system type" >&5
3552: echo $ECHO_N "checking build system type... $ECHO_C" >&6
3553: if test "${ac_cv_build+set}" = set; then
3554: echo $ECHO_N "(cached) $ECHO_C" >&6
3555: else
3556: ac_cv_build_alias=$build_alias
3557: test -z "$ac_cv_build_alias" &&
3558: ac_cv_build_alias=`$ac_config_guess`
3559: test -z "$ac_cv_build_alias" &&
3560: { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3561: echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3562: { (exit 1); exit 1; }; }
3563: ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3564: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3565: echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3566: { (exit 1); exit 1; }; }
3567:
3568: fi
3569: echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3570: echo "${ECHO_T}$ac_cv_build" >&6
3571: build=$ac_cv_build
3572: build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3573: build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3574: build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3575:
3576:
3577: echo "$as_me:$LINENO: checking host system type" >&5
3578: echo $ECHO_N "checking host system type... $ECHO_C" >&6
3579: if test "${ac_cv_host+set}" = set; then
3580: echo $ECHO_N "(cached) $ECHO_C" >&6
3581: else
3582: ac_cv_host_alias=$host_alias
3583: test -z "$ac_cv_host_alias" &&
3584: ac_cv_host_alias=$ac_cv_build_alias
3585: ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3586: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3587: echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3588: { (exit 1); exit 1; }; }
3589:
3590: fi
3591: echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3592: echo "${ECHO_T}$ac_cv_host" >&6
3593: host=$ac_cv_host
3594: host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3595: host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3596: host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3597:
3598:
1.35 moko 3599: # Backslashify metacharacters that are still active within
3600: # double-quoted strings.
3601: sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3602:
3603: # Same as above, but do not quote variable references.
3604: double_quote_subst='s/\(["`\\]\)/\\\1/g'
3605:
3606: # Sed substitution to delay expansion of an escaped shell variable in a
3607: # double_quote_subst'ed string.
3608: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3609:
3610: # Sed substitution to delay expansion of an escaped single quote.
3611: delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
1.15 paf 3612:
1.35 moko 3613: # Sed substitution to avoid accidental globbing in evaled expressions
3614: no_glob_subst='s/\*/\\\*/g'
1.1 parser 3615:
1.35 moko 3616: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3617: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3618: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3619:
3620: echo "$as_me:$LINENO: checking how to print strings" >&5
3621: echo $ECHO_N "checking how to print strings... $ECHO_C" >&6
3622: # Test print first, because it will be a builtin if present.
3623: if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3624: test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3625: ECHO='print -r --'
3626: elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3627: ECHO='printf %s\n'
1.1 parser 3628: else
1.35 moko 3629: # Use this function as a fallback that always works.
3630: func_fallback_echo ()
3631: {
3632: eval 'cat <<_LTECHO_EOF
3633: $1
3634: _LTECHO_EOF'
3635: }
3636: ECHO='func_fallback_echo'
1.1 parser 3637: fi
1.35 moko 3638:
3639: # func_echo_all arg...
3640: # Invoke $ECHO with all args, space-separated.
3641: func_echo_all ()
3642: {
3643: $ECHO ""
3644: }
3645:
3646: case "$ECHO" in
3647: printf*) echo "$as_me:$LINENO: result: printf" >&5
3648: echo "${ECHO_T}printf" >&6 ;;
3649: print*) echo "$as_me:$LINENO: result: print -r" >&5
3650: echo "${ECHO_T}print -r" >&6 ;;
3651: *) echo "$as_me:$LINENO: result: cat" >&5
3652: echo "${ECHO_T}cat" >&6 ;;
3653: esac
3654:
3655:
3656:
3657:
3658:
3659:
3660:
3661:
3662:
3663:
3664:
3665:
3666:
3667:
3668: echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3669: echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3670: if test "${lt_cv_path_SED+set}" = set; then
3671: echo $ECHO_N "(cached) $ECHO_C" >&6
3672: else
3673: # Loop through the user's path and test for sed and gsed.
3674: # Then use that list of sed's as ones to test for truncation.
3675: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3676: for as_dir in $PATH
3677: do
3678: IFS=$as_save_IFS
3679: test -z "$as_dir" && as_dir=.
3680: for lt_ac_prog in sed gsed; do
3681: for ac_exec_ext in '' $ac_executable_extensions; do
3682: if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3683: lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3684: fi
3685: done
3686: done
3687: done
3688: IFS=$as_save_IFS
3689: lt_ac_max=0
3690: lt_ac_count=0
3691: # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3692: # along with /bin/sed that truncates output.
3693: for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3694: test ! -f $lt_ac_sed && continue
3695: cat /dev/null > conftest.in
3696: lt_ac_count=0
3697: echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3698: # Check for GNU sed and select it if it is found.
3699: if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3700: lt_cv_path_SED=$lt_ac_sed
3701: break
3702: fi
3703: while true; do
3704: cat conftest.in conftest.in >conftest.tmp
3705: mv conftest.tmp conftest.in
3706: cp conftest.in conftest.nl
3707: echo >>conftest.nl
3708: $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3709: cmp -s conftest.out conftest.nl || break
3710: # 10000 chars as input seems more than enough
3711: test $lt_ac_count -gt 10 && break
3712: lt_ac_count=`expr $lt_ac_count + 1`
3713: if test $lt_ac_count -gt $lt_ac_max; then
3714: lt_ac_max=$lt_ac_count
3715: lt_cv_path_SED=$lt_ac_sed
3716: fi
3717: done
3718: done
3719:
3720: fi
3721:
3722: SED=$lt_cv_path_SED
3723:
3724: echo "$as_me:$LINENO: result: $SED" >&5
3725: echo "${ECHO_T}$SED" >&6
3726:
3727: test -z "$SED" && SED=sed
3728: Xsed="$SED -e 1s/^X//"
3729:
3730:
3731:
3732:
3733:
3734:
3735:
3736:
3737:
3738:
3739:
3740: echo "$as_me:$LINENO: checking for egrep" >&5
3741: echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3742: if test "${ac_cv_prog_egrep+set}" = set; then
3743: echo $ECHO_N "(cached) $ECHO_C" >&6
3744: else
3745: if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3746: then ac_cv_prog_egrep='grep -E'
3747: else ac_cv_prog_egrep='egrep'
3748: fi
3749: fi
3750: echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3751: echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3752: EGREP=$ac_cv_prog_egrep
3753:
3754:
3755: echo "$as_me:$LINENO: checking for fgrep" >&5
3756: echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
3757: if test "${ac_cv_prog_fgrep+set}" = set; then
3758: echo $ECHO_N "(cached) $ECHO_C" >&6
3759: else
3760: if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
3761: then ac_cv_prog_fgrep='grep -F'
3762: else ac_cv_prog_fgrep='fgrep'
3763: fi
3764: fi
3765: echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
3766: echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
3767: FGREP=$ac_cv_prog_fgrep
3768:
3769:
3770: test -z "$GREP" && GREP=grep
3771:
3772:
3773:
3774:
3775:
3776:
3777:
3778:
3779:
3780:
3781:
3782:
3783:
3784:
3785:
3786:
3787:
3788:
3789:
3790: # Check whether --with-gnu-ld or --without-gnu-ld was given.
3791: if test "${with_gnu_ld+set}" = set; then
3792: withval="$with_gnu_ld"
3793: test "$withval" = no || with_gnu_ld=yes
3794: else
3795: with_gnu_ld=no
3796: fi;
3797: ac_prog=ld
3798: if test "$GCC" = yes; then
3799: # Check if gcc -print-prog-name=ld gives a path.
3800: echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3801: echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3802: case $host in
3803: *-*-mingw*)
3804: # gcc leaves a trailing carriage return which upsets mingw
3805: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3806: *)
3807: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3808: esac
3809: case $ac_prog in
3810: # Accept absolute paths.
3811: [\\/]* | ?:[\\/]*)
3812: re_direlt='/[^/][^/]*/\.\./'
3813: # Canonicalize the pathname of ld
3814: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3815: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3816: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3817: done
3818: test -z "$LD" && LD="$ac_prog"
3819: ;;
3820: "")
3821: # If it fails, then pretend we aren't using GCC.
3822: ac_prog=ld
3823: ;;
3824: *)
3825: # If it is relative, then search for the first ld in PATH.
3826: with_gnu_ld=unknown
3827: ;;
3828: esac
3829: elif test "$with_gnu_ld" = yes; then
3830: echo "$as_me:$LINENO: checking for GNU ld" >&5
3831: echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3832: else
3833: echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3834: echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3835: fi
3836: if test "${lt_cv_path_LD+set}" = set; then
1.15 paf 3837: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 3838: else
3839: if test -z "$LD"; then
1.35 moko 3840: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1.1 parser 3841: for ac_dir in $PATH; do
1.35 moko 3842: IFS="$lt_save_ifs"
1.1 parser 3843: test -z "$ac_dir" && ac_dir=.
3844: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1.15 paf 3845: lt_cv_path_LD="$ac_dir/$ac_prog"
1.1 parser 3846: # Check to see if the program is GNU ld. I'd rather use --version,
1.35 moko 3847: # but apparently some variants of GNU ld only accept -v.
1.1 parser 3848: # Break only if it was the GNU/non-GNU ld that we prefer.
1.35 moko 3849: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3850: *GNU* | *'with BFD'*)
1.1 parser 3851: test "$with_gnu_ld" != no && break
1.35 moko 3852: ;;
3853: *)
1.1 parser 3854: test "$with_gnu_ld" != yes && break
1.35 moko 3855: ;;
3856: esac
1.1 parser 3857: fi
3858: done
1.35 moko 3859: IFS="$lt_save_ifs"
1.1 parser 3860: else
1.15 paf 3861: lt_cv_path_LD="$LD" # Let the user override the test with a path.
1.1 parser 3862: fi
3863: fi
3864:
1.15 paf 3865: LD="$lt_cv_path_LD"
1.1 parser 3866: if test -n "$LD"; then
1.15 paf 3867: echo "$as_me:$LINENO: result: $LD" >&5
3868: echo "${ECHO_T}$LD" >&6
1.1 parser 3869: else
1.15 paf 3870: echo "$as_me:$LINENO: result: no" >&5
3871: echo "${ECHO_T}no" >&6
1.1 parser 3872: fi
1.15 paf 3873: test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3874: echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3875: { (exit 1); exit 1; }; }
3876: echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3877: echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3878: if test "${lt_cv_prog_gnu_ld+set}" = set; then
3879: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 3880: else
1.35 moko 3881: # I'd rather use --version here, but apparently some GNU lds only accept -v.
3882: case `$LD -v 2>&1 </dev/null` in
3883: *GNU* | *'with BFD'*)
1.15 paf 3884: lt_cv_prog_gnu_ld=yes
1.35 moko 3885: ;;
3886: *)
1.15 paf 3887: lt_cv_prog_gnu_ld=no
1.35 moko 3888: ;;
3889: esac
1.1 parser 3890: fi
1.15 paf 3891: echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3892: echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3893: with_gnu_ld=$lt_cv_prog_gnu_ld
1.1 parser 3894:
3895:
3896:
1.35 moko 3897:
3898:
3899:
3900:
3901:
3902:
3903: echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
3904: echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
1.15 paf 3905: if test "${lt_cv_path_NM+set}" = set; then
3906: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 3907: else
3908: if test -n "$NM"; then
3909: # Let the user override the test.
1.15 paf 3910: lt_cv_path_NM="$NM"
1.1 parser 3911: else
1.35 moko 3912: lt_nm_to_check="${ac_tool_prefix}nm"
3913: if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3914: lt_nm_to_check="$lt_nm_to_check nm"
3915: fi
3916: for lt_tmp_nm in $lt_nm_to_check; do
3917: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3918: for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3919: IFS="$lt_save_ifs"
3920: test -z "$ac_dir" && ac_dir=.
3921: tmp_nm="$ac_dir/$lt_tmp_nm"
3922: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3923: # Check to see if the nm accepts a BSD-compat flag.
3924: # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3925: # nm: unknown option "B" ignored
3926: # Tru64's nm complains that /dev/null is an invalid object file
3927: case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3928: */dev/null* | *'Invalid file or object type'*)
3929: lt_cv_path_NM="$tmp_nm -B"
3930: break
3931: ;;
3932: *)
3933: case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3934: */dev/null*)
3935: lt_cv_path_NM="$tmp_nm -p"
3936: break
3937: ;;
3938: *)
3939: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3940: continue # so that we can try to find one that supports BSD flags
3941: ;;
3942: esac
3943: ;;
3944: esac
1.1 parser 3945: fi
1.35 moko 3946: done
3947: IFS="$lt_save_ifs"
1.1 parser 3948: done
1.35 moko 3949: : ${lt_cv_path_NM=no}
1.1 parser 3950: fi
3951: fi
1.35 moko 3952: echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3953: echo "${ECHO_T}$lt_cv_path_NM" >&6
3954: if test "$lt_cv_path_NM" != "no"; then
3955: NM="$lt_cv_path_NM"
3956: else
3957: # Didn't find any BSD compatible name lister, look for dumpbin.
3958: if test -n "$DUMPBIN"; then :
3959: # Let the user override the test.
3960: else
3961: if test -n "$ac_tool_prefix"; then
3962: for ac_prog in dumpbin "link -dump"
3963: do
3964: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3965: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3966: echo "$as_me:$LINENO: checking for $ac_word" >&5
3967: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3968: if test "${ac_cv_prog_DUMPBIN+set}" = set; then
1.15 paf 3969: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 3970: else
1.35 moko 3971: if test -n "$DUMPBIN"; then
3972: ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3973: else
1.15 paf 3974: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3975: for as_dir in $PATH
3976: do
3977: IFS=$as_save_IFS
3978: test -z "$as_dir" && as_dir=.
1.35 moko 3979: for ac_exec_ext in '' $ac_executable_extensions; do
3980: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3981: ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3982: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3983: break 2
3984: fi
3985: done
1.15 paf 3986: done
3987:
1.35 moko 3988: fi
3989: fi
3990: DUMPBIN=$ac_cv_prog_DUMPBIN
3991: if test -n "$DUMPBIN"; then
3992: echo "$as_me:$LINENO: result: $DUMPBIN" >&5
3993: echo "${ECHO_T}$DUMPBIN" >&6
3994: else
3995: echo "$as_me:$LINENO: result: no" >&5
3996: echo "${ECHO_T}no" >&6
3997: fi
1.15 paf 3998:
1.35 moko 3999: test -n "$DUMPBIN" && break
1.15 paf 4000: done
1.35 moko 4001: fi
4002: if test -z "$DUMPBIN"; then
4003: ac_ct_DUMPBIN=$DUMPBIN
4004: for ac_prog in dumpbin "link -dump"
4005: do
4006: # Extract the first word of "$ac_prog", so it can be a program name with args.
4007: set dummy $ac_prog; ac_word=$2
4008: echo "$as_me:$LINENO: checking for $ac_word" >&5
4009: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4010: if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4011: echo $ECHO_N "(cached) $ECHO_C" >&6
4012: else
4013: if test -n "$ac_ct_DUMPBIN"; then
4014: ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4015: else
4016: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4017: for as_dir in $PATH
4018: do
4019: IFS=$as_save_IFS
4020: test -z "$as_dir" && as_dir=.
4021: for ac_exec_ext in '' $ac_executable_extensions; do
4022: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4023: ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4024: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4025: break 2
4026: fi
4027: done
4028: done
1.15 paf 4029:
1.1 parser 4030: fi
1.35 moko 4031: fi
4032: ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4033: if test -n "$ac_ct_DUMPBIN"; then
4034: echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4035: echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
1.11 paf 4036: else
1.35 moko 4037: echo "$as_me:$LINENO: result: no" >&5
4038: echo "${ECHO_T}no" >&6
1.11 paf 4039: fi
1.15 paf 4040:
1.35 moko 4041: test -n "$ac_ct_DUMPBIN" && break
4042: done
4043: test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
4044:
4045: DUMPBIN=$ac_ct_DUMPBIN
1.15 paf 4046: fi
4047:
1.35 moko 4048: case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4049: *COFF*)
4050: DUMPBIN="$DUMPBIN -symbols"
4051: ;;
4052: *)
4053: DUMPBIN=:
4054: ;;
4055: esac
4056: fi
4057:
4058: if test "$DUMPBIN" != ":"; then
4059: NM="$DUMPBIN"
4060: fi
4061: fi
4062: test -z "$NM" && NM=nm
4063:
4064:
4065:
4066:
4067:
4068:
4069: echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4070: echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4071: if test "${lt_cv_nm_interface+set}" = set; then
4072: echo $ECHO_N "(cached) $ECHO_C" >&6
4073: else
4074: lt_cv_nm_interface="BSD nm"
4075: echo "int some_variable = 0;" > conftest.$ac_ext
4076: (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4077: (eval "$ac_compile" 2>conftest.err)
4078: cat conftest.err >&5
4079: (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4080: (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4081: cat conftest.err >&5
4082: (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4083: cat conftest.out >&5
4084: if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4085: lt_cv_nm_interface="MS dumpbin"
4086: fi
4087: rm -f conftest*
4088: fi
4089: echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4090: echo "${ECHO_T}$lt_cv_nm_interface" >&6
4091:
4092: echo "$as_me:$LINENO: checking whether ln -s works" >&5
4093: echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4094: LN_S=$as_ln_s
4095: if test "$LN_S" = "ln -s"; then
4096: echo "$as_me:$LINENO: result: yes" >&5
4097: echo "${ECHO_T}yes" >&6
4098: else
4099: echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4100: echo "${ECHO_T}no, using $LN_S" >&6
4101: fi
4102:
4103: # find the maximum length of command line arguments
4104: echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4105: echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4106: if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4107: echo $ECHO_N "(cached) $ECHO_C" >&6
4108: else
4109: i=0
4110: teststring="ABCD"
4111:
4112: case $build_os in
4113: msdosdjgpp*)
4114: # On DJGPP, this test can blow up pretty badly due to problems in libc
4115: # (any single argument exceeding 2000 bytes causes a buffer overrun
4116: # during glob expansion). Even if it were fixed, the result of this
4117: # check would be larger than it should be.
4118: lt_cv_sys_max_cmd_len=12288; # 12K is about right
4119: ;;
4120:
4121: gnu*)
4122: # Under GNU Hurd, this test is not required because there is
4123: # no limit to the length of command line arguments.
4124: # Libtool will interpret -1 as no limit whatsoever
4125: lt_cv_sys_max_cmd_len=-1;
4126: ;;
4127:
4128: cygwin* | mingw* | cegcc*)
4129: # On Win9x/ME, this test blows up -- it succeeds, but takes
4130: # about 5 minutes as the teststring grows exponentially.
4131: # Worse, since 9x/ME are not pre-emptively multitasking,
4132: # you end up with a "frozen" computer, even though with patience
4133: # the test eventually succeeds (with a max line length of 256k).
4134: # Instead, let's just punt: use the minimum linelength reported by
4135: # all of the supported platforms: 8192 (on NT/2K/XP).
4136: lt_cv_sys_max_cmd_len=8192;
4137: ;;
4138:
4139: mint*)
4140: # On MiNT this can take a long time and run out of memory.
4141: lt_cv_sys_max_cmd_len=8192;
4142: ;;
4143:
4144: amigaos*)
4145: # On AmigaOS with pdksh, this test takes hours, literally.
4146: # So we just punt and use a minimum line length of 8192.
4147: lt_cv_sys_max_cmd_len=8192;
4148: ;;
4149:
4150: netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4151: # This has been around since 386BSD, at least. Likely further.
4152: if test -x /sbin/sysctl; then
4153: lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4154: elif test -x /usr/sbin/sysctl; then
4155: lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4156: else
4157: lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4158: fi
4159: # And add a safety zone
4160: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4161: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4162: ;;
4163:
4164: interix*)
4165: # We know the value 262144 and hardcode it with a safety zone (like BSD)
4166: lt_cv_sys_max_cmd_len=196608
4167: ;;
4168:
4169: os2*)
4170: # The test takes a long time on OS/2.
4171: lt_cv_sys_max_cmd_len=8192
4172: ;;
4173:
4174: osf*)
4175: # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4176: # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4177: # nice to cause kernel panics so lets avoid the loop below.
4178: # First set a reasonable default.
4179: lt_cv_sys_max_cmd_len=16384
4180: #
4181: if test -x /sbin/sysconfig; then
4182: case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4183: *1*) lt_cv_sys_max_cmd_len=-1 ;;
4184: esac
4185: fi
4186: ;;
4187: sco3.2v5*)
4188: lt_cv_sys_max_cmd_len=102400
4189: ;;
4190: sysv5* | sco5v6* | sysv4.2uw2*)
4191: kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4192: if test -n "$kargmax"; then
4193: lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4194: else
4195: lt_cv_sys_max_cmd_len=32768
4196: fi
4197: ;;
4198: *)
4199: lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4200: if test -n "$lt_cv_sys_max_cmd_len"; then
4201: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4202: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4203: else
4204: # Make teststring a little bigger before we do anything with it.
4205: # a 1K string should be a reasonable start.
4206: for i in 1 2 3 4 5 6 7 8 ; do
4207: teststring=$teststring$teststring
4208: done
4209: SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4210: # If test is not a shell built-in, we'll probably end up computing a
4211: # maximum length that is only half of the actual maximum length, but
4212: # we can't tell.
4213: while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4214: = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4215: test $i != 17 # 1/2 MB should be enough
4216: do
4217: i=`expr $i + 1`
4218: teststring=$teststring$teststring
4219: done
4220: # Only check the string length outside the loop.
4221: lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4222: teststring=
4223: # Add a significant safety factor because C++ compilers can tack on
4224: # massive amounts of additional arguments before passing them to the
4225: # linker. It appears as though 1/2 is a usable value.
4226: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4227: fi
4228: ;;
4229: esac
4230:
4231: fi
4232:
4233: if test -n $lt_cv_sys_max_cmd_len ; then
4234: echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4235: echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4236: else
4237: echo "$as_me:$LINENO: result: none" >&5
4238: echo "${ECHO_T}none" >&6
4239: fi
4240: max_cmd_len=$lt_cv_sys_max_cmd_len
4241:
4242:
4243:
4244:
4245:
4246:
4247: : ${CP="cp -f"}
4248: : ${MV="mv -f"}
4249: : ${RM="rm -f"}
4250:
4251: echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4252: echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4253: # Try some XSI features
4254: xsi_shell=no
4255: ( _lt_dummy="a/b/c"
4256: test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4257: = c,a/b,b/c, \
4258: && eval 'test $(( 1 + 1 )) -eq 2 \
4259: && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4260: && xsi_shell=yes
4261: echo "$as_me:$LINENO: result: $xsi_shell" >&5
4262: echo "${ECHO_T}$xsi_shell" >&6
4263:
4264:
4265: echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4266: echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4267: lt_shell_append=no
4268: ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4269: >/dev/null 2>&1 \
4270: && lt_shell_append=yes
4271: echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4272: echo "${ECHO_T}$lt_shell_append" >&6
4273:
4274:
4275: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4276: lt_unset=unset
4277: else
4278: lt_unset=false
4279: fi
4280:
4281:
4282:
4283:
4284:
4285: # test EBCDIC or ASCII
4286: case `echo X|tr X '\101'` in
4287: A) # ASCII based system
4288: # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4289: lt_SP2NL='tr \040 \012'
4290: lt_NL2SP='tr \015\012 \040\040'
4291: ;;
4292: *) # EBCDIC based system
4293: lt_SP2NL='tr \100 \n'
4294: lt_NL2SP='tr \r\n \100\100'
4295: ;;
4296: esac
4297:
4298:
4299:
4300:
4301:
4302:
4303:
4304:
4305:
4306: echo "$as_me:$LINENO: checking how to convert $build file names to $host format" >&5
4307: echo $ECHO_N "checking how to convert $build file names to $host format... $ECHO_C" >&6
4308: if test "${lt_cv_to_host_file_cmd+set}" = set; then
4309: echo $ECHO_N "(cached) $ECHO_C" >&6
4310: else
4311: case $host in
4312: *-*-mingw* )
4313: case $build in
4314: *-*-mingw* ) # actually msys
4315: lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4316: ;;
4317: *-*-cygwin* )
4318: lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4319: ;;
4320: * ) # otherwise, assume *nix
4321: lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4322: ;;
4323: esac
4324: ;;
4325: *-*-cygwin* )
4326: case $build in
4327: *-*-mingw* ) # actually msys
4328: lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4329: ;;
4330: *-*-cygwin* )
4331: lt_cv_to_host_file_cmd=func_convert_file_noop
4332: ;;
4333: * ) # otherwise, assume *nix
4334: lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4335: ;;
4336: esac
4337: ;;
4338: * ) # unhandled hosts (and "normal" native builds)
4339: lt_cv_to_host_file_cmd=func_convert_file_noop
4340: ;;
4341: esac
4342:
4343: fi
4344:
4345: to_host_file_cmd=$lt_cv_to_host_file_cmd
4346: echo "$as_me:$LINENO: result: $lt_cv_to_host_file_cmd" >&5
4347: echo "${ECHO_T}$lt_cv_to_host_file_cmd" >&6
4348:
4349:
4350:
4351:
4352:
4353: echo "$as_me:$LINENO: checking how to convert $build file names to toolchain format" >&5
4354: echo $ECHO_N "checking how to convert $build file names to toolchain format... $ECHO_C" >&6
4355: if test "${lt_cv_to_tool_file_cmd+set}" = set; then
4356: echo $ECHO_N "(cached) $ECHO_C" >&6
4357: else
4358: #assume ordinary cross tools, or native build.
4359: lt_cv_to_tool_file_cmd=func_convert_file_noop
4360: case $host in
4361: *-*-mingw* )
4362: case $build in
4363: *-*-mingw* ) # actually msys
4364: lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4365: ;;
4366: esac
4367: ;;
4368: esac
4369:
4370: fi
4371:
4372: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4373: echo "$as_me:$LINENO: result: $lt_cv_to_tool_file_cmd" >&5
4374: echo "${ECHO_T}$lt_cv_to_tool_file_cmd" >&6
4375:
4376:
4377:
4378:
4379:
4380: echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4381: echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4382: if test "${lt_cv_ld_reload_flag+set}" = set; then
4383: echo $ECHO_N "(cached) $ECHO_C" >&6
4384: else
4385: lt_cv_ld_reload_flag='-r'
4386: fi
4387: echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4388: echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4389: reload_flag=$lt_cv_ld_reload_flag
4390: case $reload_flag in
4391: "" | " "*) ;;
4392: *) reload_flag=" $reload_flag" ;;
4393: esac
4394: reload_cmds='$LD$reload_flag -o $output$reload_objs'
4395: case $host_os in
4396: cygwin* | mingw* | pw32* | cegcc*)
4397: if test "$GCC" != yes; then
4398: reload_cmds=false
4399: fi
4400: ;;
4401: darwin*)
4402: if test "$GCC" = yes; then
4403: reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4404: else
4405: reload_cmds='$LD$reload_flag -o $output$reload_objs'
4406: fi
4407: ;;
4408: esac
4409:
4410:
4411:
4412:
4413:
4414:
4415:
4416:
4417:
4418: if test -n "$ac_tool_prefix"; then
4419: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4420: set dummy ${ac_tool_prefix}objdump; ac_word=$2
4421: echo "$as_me:$LINENO: checking for $ac_word" >&5
4422: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4423: if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4424: echo $ECHO_N "(cached) $ECHO_C" >&6
4425: else
4426: if test -n "$OBJDUMP"; then
4427: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4428: else
4429: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4430: for as_dir in $PATH
4431: do
4432: IFS=$as_save_IFS
4433: test -z "$as_dir" && as_dir=.
4434: for ac_exec_ext in '' $ac_executable_extensions; do
4435: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4436: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4437: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4438: break 2
4439: fi
4440: done
4441: done
4442:
4443: fi
4444: fi
4445: OBJDUMP=$ac_cv_prog_OBJDUMP
4446: if test -n "$OBJDUMP"; then
4447: echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4448: echo "${ECHO_T}$OBJDUMP" >&6
4449: else
4450: echo "$as_me:$LINENO: result: no" >&5
4451: echo "${ECHO_T}no" >&6
4452: fi
4453:
4454: fi
4455: if test -z "$ac_cv_prog_OBJDUMP"; then
4456: ac_ct_OBJDUMP=$OBJDUMP
4457: # Extract the first word of "objdump", so it can be a program name with args.
4458: set dummy objdump; ac_word=$2
4459: echo "$as_me:$LINENO: checking for $ac_word" >&5
4460: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4461: if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4462: echo $ECHO_N "(cached) $ECHO_C" >&6
4463: else
4464: if test -n "$ac_ct_OBJDUMP"; then
4465: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4466: else
4467: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4468: for as_dir in $PATH
4469: do
4470: IFS=$as_save_IFS
4471: test -z "$as_dir" && as_dir=.
4472: for ac_exec_ext in '' $ac_executable_extensions; do
4473: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4474: ac_cv_prog_ac_ct_OBJDUMP="objdump"
4475: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4476: break 2
4477: fi
4478: done
4479: done
4480:
4481: test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
4482: fi
4483: fi
4484: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4485: if test -n "$ac_ct_OBJDUMP"; then
4486: echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4487: echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
4488: else
4489: echo "$as_me:$LINENO: result: no" >&5
4490: echo "${ECHO_T}no" >&6
4491: fi
4492:
4493: OBJDUMP=$ac_ct_OBJDUMP
4494: else
4495: OBJDUMP="$ac_cv_prog_OBJDUMP"
4496: fi
4497:
4498: test -z "$OBJDUMP" && OBJDUMP=objdump
4499:
4500:
4501:
4502:
4503:
4504:
4505: echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4506: echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
1.15 paf 4507: if test "${lt_cv_deplibs_check_method+set}" = set; then
4508: echo $ECHO_N "(cached) $ECHO_C" >&6
4509: else
4510: lt_cv_file_magic_cmd='$MAGIC_CMD'
4511: lt_cv_file_magic_test_file=
4512: lt_cv_deplibs_check_method='unknown'
4513: # Need to set the preceding variable on all platforms that support
4514: # interlibrary dependencies.
4515: # 'none' -- dependencies not supported.
4516: # `unknown' -- same as none, but documents that we really don't know.
4517: # 'pass_all' -- all dependencies passed with no checks.
4518: # 'test_compile' -- check by making test program.
4519: # 'file_magic [[regex]]' -- check by looking for files in library path
1.35 moko 4520: # which responds to the $file_magic_cmd with a given extended regex.
1.15 paf 4521: # If you have `file' or equivalent on your system and you're not sure
4522: # whether `pass_all' will *always* work, you probably want this one.
4523:
4524: case $host_os in
1.35 moko 4525: aix[4-9]*)
1.15 paf 4526: lt_cv_deplibs_check_method=pass_all
4527: ;;
1.11 paf 4528:
1.15 paf 4529: beos*)
4530: lt_cv_deplibs_check_method=pass_all
4531: ;;
1.1 parser 4532:
1.35 moko 4533: bsdi[45]*)
1.15 paf 4534: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4535: lt_cv_file_magic_cmd='/usr/bin/file -L'
4536: lt_cv_file_magic_test_file=/shlib/libc.so
4537: ;;
1.1 parser 4538:
1.35 moko 4539: cygwin*)
4540: # func_win32_libid is a shell function defined in ltmain.sh
4541: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4542: lt_cv_file_magic_cmd='func_win32_libid'
4543: ;;
4544:
4545: mingw* | pw32*)
4546: # Base MSYS/MinGW do not provide the 'file' command needed by
4547: # func_win32_libid shell function, so use a weaker test based on 'objdump',
4548: # unless we find 'file', for example because we are cross-compiling.
4549: # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4550: if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4551: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4552: lt_cv_file_magic_cmd='func_win32_libid'
4553: else
4554: # Keep this pattern in sync with the one in func_win32_libid.
4555: lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4556: lt_cv_file_magic_cmd='$OBJDUMP -f'
4557: fi
4558: ;;
4559:
4560: cegcc*)
4561: # use the weaker test based on 'objdump'. See mingw*.
4562: lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
1.15 paf 4563: lt_cv_file_magic_cmd='$OBJDUMP -f'
4564: ;;
1.1 parser 4565:
1.15 paf 4566: darwin* | rhapsody*)
1.35 moko 4567: lt_cv_deplibs_check_method=pass_all
1.15 paf 4568: ;;
1.1 parser 4569:
1.35 moko 4570: freebsd* | dragonfly*)
4571: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
1.15 paf 4572: case $host_cpu in
4573: i*86 )
4574: # Not sure whether the presence of OpenBSD here was a mistake.
4575: # Let's accept both of them until this is cleared up.
1.35 moko 4576: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
1.15 paf 4577: lt_cv_file_magic_cmd=/usr/bin/file
4578: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1.1 parser 4579: ;;
4580: esac
1.15 paf 4581: else
4582: lt_cv_deplibs_check_method=pass_all
1.1 parser 4583: fi
4584: ;;
4585:
1.15 paf 4586: gnu*)
4587: lt_cv_deplibs_check_method=pass_all
4588: ;;
1.1 parser 4589:
1.35 moko 4590: haiku*)
4591: lt_cv_deplibs_check_method=pass_all
1.15 paf 4592: ;;
1.1 parser 4593:
1.35 moko 4594: hpux10.20* | hpux11*)
4595: lt_cv_file_magic_cmd=/usr/bin/file
4596: case $host_cpu in
4597: ia64*)
4598: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4599: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4600: ;;
4601: hppa*64*)
4602: 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]'
4603: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
1.15 paf 4604: ;;
4605: *)
1.35 moko 4606: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4607: lt_cv_file_magic_test_file=/usr/lib/libc.sl
1.15 paf 4608: ;;
4609: esac
1.35 moko 4610: ;;
4611:
4612: interix[3-9]*)
4613: # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4614: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4615: ;;
4616:
4617: irix5* | irix6* | nonstopux*)
4618: case $LD in
4619: *-32|*"-32 ") libmagic=32-bit;;
4620: *-n32|*"-n32 ") libmagic=N32;;
4621: *-64|*"-64 ") libmagic=64-bit;;
4622: *) libmagic=never-match;;
4623: esac
1.15 paf 4624: lt_cv_deplibs_check_method=pass_all
4625: ;;
4626:
1.35 moko 4627: # This must be glibc/ELF.
4628: linux* | k*bsd*-gnu | kopensolaris*-gnu)
4629: lt_cv_deplibs_check_method=pass_all
1.15 paf 4630: ;;
4631:
4632: netbsd*)
1.35 moko 4633: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4634: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
1.15 paf 4635: else
1.35 moko 4636: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
1.15 paf 4637: fi
4638: ;;
4639:
4640: newos6*)
4641: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4642: lt_cv_file_magic_cmd=/usr/bin/file
4643: lt_cv_file_magic_test_file=/usr/lib/libnls.so
4644: ;;
1.1 parser 4645:
1.35 moko 4646: *nto* | *qnx*)
4647: lt_cv_deplibs_check_method=pass_all
4648: ;;
4649:
1.15 paf 4650: openbsd*)
1.35 moko 4651: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4652: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
1.15 paf 4653: else
1.35 moko 4654: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
1.1 parser 4655: fi
4656: ;;
4657:
1.15 paf 4658: osf3* | osf4* | osf5*)
4659: lt_cv_deplibs_check_method=pass_all
4660: ;;
4661:
1.35 moko 4662: rdos*)
1.15 paf 4663: lt_cv_deplibs_check_method=pass_all
4664: ;;
4665:
4666: solaris*)
4667: lt_cv_deplibs_check_method=pass_all
4668: ;;
4669:
1.35 moko 4670: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
1.15 paf 4671: lt_cv_deplibs_check_method=pass_all
4672: ;;
4673:
1.35 moko 4674: sysv4 | sysv4.3*)
1.15 paf 4675: case $host_vendor in
4676: motorola)
4677: 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]'
4678: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4679: ;;
4680: ncr)
4681: lt_cv_deplibs_check_method=pass_all
4682: ;;
4683: sequent)
4684: lt_cv_file_magic_cmd='/bin/file'
4685: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4686: ;;
4687: sni)
4688: lt_cv_file_magic_cmd='/bin/file'
4689: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4690: lt_cv_file_magic_test_file=/lib/libc.so
4691: ;;
4692: siemens)
4693: lt_cv_deplibs_check_method=pass_all
4694: ;;
1.35 moko 4695: pc)
4696: lt_cv_deplibs_check_method=pass_all
4697: ;;
1.15 paf 4698: esac
4699: ;;
1.35 moko 4700:
4701: tpf*)
4702: lt_cv_deplibs_check_method=pass_all
4703: ;;
1.15 paf 4704: esac
4705:
4706: fi
4707: echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4708: echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
1.35 moko 4709:
4710: file_magic_glob=
4711: want_nocaseglob=no
4712: if test "$build" = "$host"; then
4713: case $host_os in
4714: mingw* | pw32*)
4715: if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
4716: want_nocaseglob=yes
4717: else
4718: file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
4719: fi
4720: ;;
4721: esac
4722: fi
4723:
1.15 paf 4724: file_magic_cmd=$lt_cv_file_magic_cmd
4725: deplibs_check_method=$lt_cv_deplibs_check_method
1.35 moko 4726: test -z "$deplibs_check_method" && deplibs_check_method=unknown
4727:
4728:
1.15 paf 4729:
4730:
4731:
4732:
4733:
4734:
4735:
4736:
1.35 moko 4737:
4738:
4739:
4740:
4741:
4742:
4743:
4744:
4745:
4746:
4747:
4748:
4749: if test -n "$ac_tool_prefix"; then
4750: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4751: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4752: echo "$as_me:$LINENO: checking for $ac_word" >&5
4753: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4754: if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4755: echo $ECHO_N "(cached) $ECHO_C" >&6
4756: else
4757: if test -n "$DLLTOOL"; then
4758: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4759: else
4760: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4761: for as_dir in $PATH
4762: do
4763: IFS=$as_save_IFS
4764: test -z "$as_dir" && as_dir=.
4765: for ac_exec_ext in '' $ac_executable_extensions; do
4766: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4767: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4768: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4769: break 2
4770: fi
4771: done
4772: done
4773:
4774: fi
4775: fi
4776: DLLTOOL=$ac_cv_prog_DLLTOOL
4777: if test -n "$DLLTOOL"; then
4778: echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4779: echo "${ECHO_T}$DLLTOOL" >&6
4780: else
4781: echo "$as_me:$LINENO: result: no" >&5
4782: echo "${ECHO_T}no" >&6
4783: fi
4784:
4785: fi
4786: if test -z "$ac_cv_prog_DLLTOOL"; then
4787: ac_ct_DLLTOOL=$DLLTOOL
4788: # Extract the first word of "dlltool", so it can be a program name with args.
4789: set dummy dlltool; ac_word=$2
4790: echo "$as_me:$LINENO: checking for $ac_word" >&5
4791: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4792: if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
1.15 paf 4793: echo $ECHO_N "(cached) $ECHO_C" >&6
1.11 paf 4794: else
1.35 moko 4795: if test -n "$ac_ct_DLLTOOL"; then
4796: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4797: else
4798: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4799: for as_dir in $PATH
4800: do
4801: IFS=$as_save_IFS
4802: test -z "$as_dir" && as_dir=.
4803: for ac_exec_ext in '' $ac_executable_extensions; do
4804: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4805: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4806: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4807: break 2
4808: fi
4809: done
4810: done
4811:
4812: test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
4813: fi
4814: fi
4815: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4816: if test -n "$ac_ct_DLLTOOL"; then
4817: echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4818: echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
4819: else
4820: echo "$as_me:$LINENO: result: no" >&5
4821: echo "${ECHO_T}no" >&6
4822: fi
4823:
4824: DLLTOOL=$ac_ct_DLLTOOL
4825: else
4826: DLLTOOL="$ac_cv_prog_DLLTOOL"
4827: fi
4828:
4829: test -z "$DLLTOOL" && DLLTOOL=dlltool
4830:
4831:
4832:
4833:
1.15 paf 4834:
4835:
4836:
1.35 moko 4837: echo "$as_me:$LINENO: checking how to associate runtime and link libraries" >&5
4838: echo $ECHO_N "checking how to associate runtime and link libraries... $ECHO_C" >&6
4839: if test "${lt_cv_sharedlib_from_linklib_cmd+set}" = set; then
4840: echo $ECHO_N "(cached) $ECHO_C" >&6
4841: else
4842: lt_cv_sharedlib_from_linklib_cmd='unknown'
1.15 paf 4843:
4844: case $host_os in
1.35 moko 4845: cygwin* | mingw* | pw32* | cegcc*)
4846: # two different shell functions defined in ltmain.sh
4847: # decide which to use based on capabilities of $DLLTOOL
4848: case `$DLLTOOL --help 2>&1` in
4849: *--identify-strict*)
4850: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
4851: ;;
4852: *)
4853: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
4854: ;;
4855: esac
1.15 paf 4856: ;;
1.35 moko 4857: *)
4858: # fallback: assume linklib IS sharedlib
4859: lt_cv_sharedlib_from_linklib_cmd="$ECHO"
1.15 paf 4860: ;;
4861: esac
4862:
4863: fi
1.35 moko 4864: echo "$as_me:$LINENO: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
4865: echo "${ECHO_T}$lt_cv_sharedlib_from_linklib_cmd" >&6
4866: sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
4867: test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
1.15 paf 4868:
4869:
4870:
4871:
4872:
4873:
4874:
4875:
1.35 moko 4876: if test -n "$ac_tool_prefix"; then
4877: for ac_prog in ar
4878: do
4879: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4880: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4881: echo "$as_me:$LINENO: checking for $ac_word" >&5
4882: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4883: if test "${ac_cv_prog_AR+set}" = set; then
4884: echo $ECHO_N "(cached) $ECHO_C" >&6
4885: else
4886: if test -n "$AR"; then
4887: ac_cv_prog_AR="$AR" # Let the user override the test.
4888: else
4889: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4890: for as_dir in $PATH
4891: do
4892: IFS=$as_save_IFS
4893: test -z "$as_dir" && as_dir=.
4894: for ac_exec_ext in '' $ac_executable_extensions; do
4895: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4896: ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4897: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4898: break 2
1.15 paf 4899: fi
1.35 moko 4900: done
1.15 paf 4901: done
4902:
1.11 paf 4903: fi
4904: fi
1.35 moko 4905: AR=$ac_cv_prog_AR
4906: if test -n "$AR"; then
4907: echo "$as_me:$LINENO: result: $AR" >&5
4908: echo "${ECHO_T}$AR" >&6
1.11 paf 4909: else
1.35 moko 4910: echo "$as_me:$LINENO: result: no" >&5
4911: echo "${ECHO_T}no" >&6
1.11 paf 4912: fi
4913:
1.35 moko 4914: test -n "$AR" && break
4915: done
1.24 paf 4916: fi
1.35 moko 4917: if test -z "$AR"; then
4918: ac_ct_AR=$AR
4919: for ac_prog in ar
4920: do
4921: # Extract the first word of "$ac_prog", so it can be a program name with args.
4922: set dummy $ac_prog; ac_word=$2
4923: echo "$as_me:$LINENO: checking for $ac_word" >&5
4924: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4925: if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
1.15 paf 4926: echo $ECHO_N "(cached) $ECHO_C" >&6
1.11 paf 4927: else
1.35 moko 4928: if test -n "$ac_ct_AR"; then
4929: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4930: else
4931: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4932: for as_dir in $PATH
1.15 paf 4933: do
1.35 moko 4934: IFS=$as_save_IFS
4935: test -z "$as_dir" && as_dir=.
4936: for ac_exec_ext in '' $ac_executable_extensions; do
4937: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4938: ac_cv_prog_ac_ct_AR="$ac_prog"
4939: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4940: break 2
1.15 paf 4941: fi
1.35 moko 4942: done
4943: done
1.15 paf 4944:
1.11 paf 4945: fi
4946: fi
1.35 moko 4947: ac_ct_AR=$ac_cv_prog_ac_ct_AR
4948: if test -n "$ac_ct_AR"; then
4949: echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4950: echo "${ECHO_T}$ac_ct_AR" >&6
1.15 paf 4951: else
1.35 moko 4952: echo "$as_me:$LINENO: result: no" >&5
4953: echo "${ECHO_T}no" >&6
1.11 paf 4954: fi
4955:
1.35 moko 4956: test -n "$ac_ct_AR" && break
1.15 paf 4957: done
1.35 moko 4958: test -n "$ac_ct_AR" || ac_ct_AR="false"
4959:
4960: AR=$ac_ct_AR
1.11 paf 4961: fi
1.15 paf 4962:
1.35 moko 4963: : ${AR=ar}
4964: : ${AR_FLAGS=cru}
4965:
1.15 paf 4966:
4967:
1.11 paf 4968:
1.15 paf 4969:
1.11 paf 4970:
4971:
1.15 paf 4972:
1.11 paf 4973:
1.15 paf 4974:
4975:
1.35 moko 4976: echo "$as_me:$LINENO: checking for archiver @FILE support" >&5
4977: echo $ECHO_N "checking for archiver @FILE support... $ECHO_C" >&6
4978: if test "${lt_cv_ar_at_file+set}" = set; then
1.15 paf 4979: echo $ECHO_N "(cached) $ECHO_C" >&6
4980: else
1.35 moko 4981: lt_cv_ar_at_file=no
4982: cat >conftest.$ac_ext <<_ACEOF
1.15 paf 4983: /* confdefs.h. */
4984: _ACEOF
4985: cat confdefs.h >>conftest.$ac_ext
4986: cat >>conftest.$ac_ext <<_ACEOF
4987: /* end confdefs.h. */
4988:
4989: int
4990: main ()
4991: {
4992:
4993: ;
4994: return 0;
4995: }
4996: _ACEOF
4997: rm -f conftest.$ac_objext
4998: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.25 paf 4999: (eval $ac_compile) 2>conftest.er1
1.15 paf 5000: ac_status=$?
1.25 paf 5001: grep -v '^ *+' conftest.er1 >conftest.err
5002: rm -f conftest.er1
5003: cat conftest.err >&5
1.15 paf 5004: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5005: (exit $ac_status); } &&
1.25 paf 5006: { ac_try='test -z "$ac_c_werror_flag"
5007: || test ! -s conftest.err'
5008: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5009: (eval $ac_try) 2>&5
5010: ac_status=$?
5011: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5012: (exit $ac_status); }; } &&
5013: { ac_try='test -s conftest.$ac_objext'
1.15 paf 5014: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5015: (eval $ac_try) 2>&5
5016: ac_status=$?
5017: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5018: (exit $ac_status); }; }; then
1.35 moko 5019: echo conftest.$ac_objext > conftest.lst
5020: lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5021: { (eval echo "$as_me:$LINENO: \"$lt_ar_try\"") >&5
5022: (eval $lt_ar_try) 2>&5
5023: ac_status=$?
5024: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025: (exit $ac_status); }
5026: if test "$ac_status" -eq 0; then
5027: # Ensure the archiver fails upon bogus file names.
5028: rm -f conftest.$ac_objext libconftest.a
5029: { (eval echo "$as_me:$LINENO: \"$lt_ar_try\"") >&5
5030: (eval $lt_ar_try) 2>&5
5031: ac_status=$?
5032: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5033: (exit $ac_status); }
5034: if test "$ac_status" -ne 0; then
5035: lt_cv_ar_at_file=@
5036: fi
5037: fi
5038: rm -f conftest.* libconftest.a
5039:
1.11 paf 5040: else
1.15 paf 5041: echo "$as_me: failed program was:" >&5
5042: sed 's/^/| /' conftest.$ac_ext >&5
5043:
1.11 paf 5044: fi
1.25 paf 5045: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 paf 5046:
1.35 moko 5047: fi
5048: echo "$as_me:$LINENO: result: $lt_cv_ar_at_file" >&5
5049: echo "${ECHO_T}$lt_cv_ar_at_file" >&6
5050:
5051: if test "x$lt_cv_ar_at_file" = xno; then
5052: archiver_list_spec=
1.11 paf 5053: else
1.35 moko 5054: archiver_list_spec=$lt_cv_ar_at_file
1.11 paf 5055: fi
1.15 paf 5056:
1.11 paf 5057:
1.1 parser 5058:
1.35 moko 5059:
5060:
5061:
5062:
5063: if test -n "$ac_tool_prefix"; then
5064: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5065: set dummy ${ac_tool_prefix}strip; ac_word=$2
5066: echo "$as_me:$LINENO: checking for $ac_word" >&5
5067: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5068: if test "${ac_cv_prog_STRIP+set}" = set; then
5069: echo $ECHO_N "(cached) $ECHO_C" >&6
5070: else
5071: if test -n "$STRIP"; then
5072: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5073: else
5074: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5075: for as_dir in $PATH
5076: do
5077: IFS=$as_save_IFS
5078: test -z "$as_dir" && as_dir=.
5079: for ac_exec_ext in '' $ac_executable_extensions; do
5080: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5081: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5082: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5083: break 2
5084: fi
5085: done
5086: done
5087:
5088: fi
5089: fi
5090: STRIP=$ac_cv_prog_STRIP
5091: if test -n "$STRIP"; then
5092: echo "$as_me:$LINENO: result: $STRIP" >&5
5093: echo "${ECHO_T}$STRIP" >&6
1.1 parser 5094: else
1.35 moko 5095: echo "$as_me:$LINENO: result: no" >&5
5096: echo "${ECHO_T}no" >&6
1.1 parser 5097: fi
5098:
1.15 paf 5099: fi
1.35 moko 5100: if test -z "$ac_cv_prog_STRIP"; then
5101: ac_ct_STRIP=$STRIP
5102: # Extract the first word of "strip", so it can be a program name with args.
5103: set dummy strip; ac_word=$2
5104: echo "$as_me:$LINENO: checking for $ac_word" >&5
5105: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5106: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5107: echo $ECHO_N "(cached) $ECHO_C" >&6
1.15 paf 5108: else
1.35 moko 5109: if test -n "$ac_ct_STRIP"; then
5110: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1.1 parser 5111: else
1.35 moko 5112: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5113: for as_dir in $PATH
5114: do
5115: IFS=$as_save_IFS
5116: test -z "$as_dir" && as_dir=.
5117: for ac_exec_ext in '' $ac_executable_extensions; do
5118: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5119: ac_cv_prog_ac_ct_STRIP="strip"
5120: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5121: break 2
5122: fi
5123: done
5124: done
1.15 paf 5125:
1.35 moko 5126: test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1.1 parser 5127: fi
1.15 paf 5128: fi
1.35 moko 5129: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5130: if test -n "$ac_ct_STRIP"; then
5131: echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5132: echo "${ECHO_T}$ac_ct_STRIP" >&6
5133: else
5134: echo "$as_me:$LINENO: result: no" >&5
5135: echo "${ECHO_T}no" >&6
1.15 paf 5136: fi
1.1 parser 5137:
1.35 moko 5138: STRIP=$ac_ct_STRIP
5139: else
5140: STRIP="$ac_cv_prog_STRIP"
1.15 paf 5141: fi
1.1 parser 5142:
1.35 moko 5143: test -z "$STRIP" && STRIP=:
1.1 parser 5144:
5145:
5146:
5147:
5148:
5149:
1.35 moko 5150: if test -n "$ac_tool_prefix"; then
5151: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5152: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5153: echo "$as_me:$LINENO: checking for $ac_word" >&5
5154: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5155: if test "${ac_cv_prog_RANLIB+set}" = set; then
1.15 paf 5156: echo $ECHO_N "(cached) $ECHO_C" >&6
5157: else
1.35 moko 5158: if test -n "$RANLIB"; then
5159: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1.15 paf 5160: else
1.35 moko 5161: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5162: for as_dir in $PATH
5163: do
5164: IFS=$as_save_IFS
5165: test -z "$as_dir" && as_dir=.
5166: for ac_exec_ext in '' $ac_executable_extensions; do
5167: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5168: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5169: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5170: break 2
5171: fi
5172: done
5173: done
1.15 paf 5174:
5175: fi
5176: fi
1.35 moko 5177: RANLIB=$ac_cv_prog_RANLIB
5178: if test -n "$RANLIB"; then
5179: echo "$as_me:$LINENO: result: $RANLIB" >&5
5180: echo "${ECHO_T}$RANLIB" >&6
5181: else
5182: echo "$as_me:$LINENO: result: no" >&5
5183: echo "${ECHO_T}no" >&6
5184: fi
1.15 paf 5185:
5186: fi
1.35 moko 5187: if test -z "$ac_cv_prog_RANLIB"; then
5188: ac_ct_RANLIB=$RANLIB
5189: # Extract the first word of "ranlib", so it can be a program name with args.
5190: set dummy ranlib; ac_word=$2
5191: echo "$as_me:$LINENO: checking for $ac_word" >&5
5192: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5193: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5194: echo $ECHO_N "(cached) $ECHO_C" >&6
5195: else
5196: if test -n "$ac_ct_RANLIB"; then
5197: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5198: else
5199: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5200: for as_dir in $PATH
5201: do
5202: IFS=$as_save_IFS
5203: test -z "$as_dir" && as_dir=.
5204: for ac_exec_ext in '' $ac_executable_extensions; do
5205: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5206: ac_cv_prog_ac_ct_RANLIB="ranlib"
5207: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5208: break 2
5209: fi
5210: done
1.15 paf 5211: done
5212:
1.35 moko 5213: test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5214: fi
1.15 paf 5215: fi
1.35 moko 5216: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5217: if test -n "$ac_ct_RANLIB"; then
5218: echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5219: echo "${ECHO_T}$ac_ct_RANLIB" >&6
1.15 paf 5220: else
1.35 moko 5221: echo "$as_me:$LINENO: result: no" >&5
5222: echo "${ECHO_T}no" >&6
1.15 paf 5223: fi
5224:
1.35 moko 5225: RANLIB=$ac_ct_RANLIB
1.15 paf 5226: else
1.35 moko 5227: RANLIB="$ac_cv_prog_RANLIB"
1.15 paf 5228: fi
5229:
1.35 moko 5230: test -z "$RANLIB" && RANLIB=:
5231:
5232:
5233:
5234:
5235:
5236:
5237: # Determine commands to create old-style static archives.
5238: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5239: old_postinstall_cmds='chmod 644 $oldlib'
5240: old_postuninstall_cmds=
1.15 paf 5241:
1.35 moko 5242: if test -n "$RANLIB"; then
5243: case $host_os in
5244: openbsd*)
5245: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
1.15 paf 5246: ;;
1.35 moko 5247: *)
5248: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
1.15 paf 5249: ;;
1.35 moko 5250: esac
5251: old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5252: fi
5253:
5254: case $host_os in
5255: darwin*)
5256: lock_old_archive_extraction=yes ;;
5257: *)
5258: lock_old_archive_extraction=no ;;
1.15 paf 5259: esac
5260:
5261:
5262:
5263:
5264:
5265:
5266:
5267:
5268:
5269:
5270:
5271:
5272:
5273:
5274:
5275:
5276:
1.1 parser 5277:
5278:
1.15 paf 5279:
5280:
5281:
5282:
5283:
5284:
1.1 parser 5285:
5286:
5287:
1.15 paf 5288:
5289:
5290:
5291:
5292:
5293:
1.35 moko 5294:
5295:
5296:
5297:
5298:
5299: # If no C compiler was specified, use CC.
5300: LTCC=${LTCC-"$CC"}
5301:
5302: # If no C compiler flags were specified, use CFLAGS.
5303: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5304:
5305: # Allow CC to be a program name with arguments.
5306: compiler=$CC
5307:
5308:
5309: # Check for command to grab the raw symbol name followed by C symbol from nm.
5310: echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5311: echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5312: if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
1.15 paf 5313: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 5314: else
5315:
1.35 moko 5316: # These are sane defaults that work on at least a few old systems.
5317: # [They come from Ultrix. What could be older than Ultrix?!! ;)]
1.15 paf 5318:
1.35 moko 5319: # Character class describing NM global symbol codes.
5320: symcode='[BCDEGRST]'
1.15 paf 5321:
1.35 moko 5322: # Regexp to match symbols that can be accessed directly from C.
5323: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
1.15 paf 5324:
1.35 moko 5325: # Define system-specific variables.
5326: case $host_os in
5327: aix*)
5328: symcode='[BCDT]'
5329: ;;
5330: cygwin* | mingw* | pw32* | cegcc*)
5331: symcode='[ABCDGISTW]'
5332: ;;
5333: hpux*)
5334: if test "$host_cpu" = ia64; then
5335: symcode='[ABCDEGRST]'
5336: fi
5337: ;;
5338: irix* | nonstopux*)
5339: symcode='[BCDEGRST]'
5340: ;;
5341: osf*)
5342: symcode='[BCDEGQRST]'
5343: ;;
5344: solaris*)
5345: symcode='[BDRT]'
5346: ;;
5347: sco3.2v5*)
5348: symcode='[DT]'
5349: ;;
5350: sysv4.2uw2*)
5351: symcode='[DT]'
5352: ;;
5353: sysv5* | sco5v6* | unixware* | OpenUNIX*)
5354: symcode='[ABDT]'
5355: ;;
5356: sysv4)
5357: symcode='[DFNSTU]'
5358: ;;
5359: esac
5360:
5361: # If we're using GNU nm, then use its standard symbol codes.
5362: case `$NM -V 2>&1` in
5363: *GNU* | *'with BFD'*)
5364: symcode='[ABCDGIRSTW]' ;;
5365: esac
5366:
5367: # Transform an extracted symbol line into a proper C declaration.
5368: # Some systems (esp. on ia64) link data and code symbols differently,
5369: # so use this general approach.
5370: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5371:
5372: # Transform an extracted symbol line into symbol name and symbol address
5373: lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5374: 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'"
5375:
5376: # Handle CRLF in mingw tool chain
5377: opt_cr=
5378: case $build_os in
5379: mingw*)
5380: opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5381: ;;
5382: esac
5383:
5384: # Try without a prefix underscore, then with it.
5385: for ac_symprfx in "" "_"; do
5386:
5387: # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5388: symxfrm="\\1 $ac_symprfx\\2 \\2"
5389:
5390: # Write the raw and C identifiers.
5391: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5392: # Fake it for dumpbin and say T for any non-static function
5393: # and D for any global variable.
5394: # Also find C++ and __fastcall symbols from MSVC++,
5395: # which start with @ or ?.
5396: lt_cv_sys_global_symbol_pipe="$AWK '"\
5397: " {last_section=section; section=\$ 3};"\
5398: " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5399: " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5400: " \$ 0!~/External *\|/{next};"\
5401: " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5402: " {if(hide[section]) next};"\
5403: " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5404: " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5405: " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5406: " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5407: " ' prfx=^$ac_symprfx"
5408: else
5409: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5410: fi
5411: lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5412:
5413: # Check to see that the pipe works correctly.
5414: pipe_works=no
1.15 paf 5415:
1.35 moko 5416: rm -f conftest*
5417: cat > conftest.$ac_ext <<_LT_EOF
5418: #ifdef __cplusplus
5419: extern "C" {
5420: #endif
5421: char nm_test_var;
5422: void nm_test_func(void);
5423: void nm_test_func(void){}
5424: #ifdef __cplusplus
1.15 paf 5425: }
1.35 moko 5426: #endif
5427: int main(){nm_test_var='a';nm_test_func();return(0);}
5428: _LT_EOF
5429:
5430: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5431: (eval $ac_compile) 2>&5
1.15 paf 5432: ac_status=$?
5433: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.35 moko 5434: (exit $ac_status); }; then
5435: # Now try to grab the symbols.
5436: nlist=conftest.nm
5437: if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\"") >&5
5438: (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
1.25 paf 5439: ac_status=$?
5440: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.35 moko 5441: (exit $ac_status); } && test -s "$nlist"; then
5442: # Try sorting and uniquifying the output.
5443: if sort "$nlist" | uniq > "$nlist"T; then
5444: mv -f "$nlist"T "$nlist"
5445: else
5446: rm -f "$nlist"T
5447: fi
5448:
5449: # Make sure that we snagged all the symbols we need.
5450: if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5451: if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5452: cat <<_LT_EOF > conftest.$ac_ext
5453: /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5454: #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5455: /* DATA imports from DLLs on WIN32 con't be const, because runtime
5456: relocations are performed -- see ld's documentation on pseudo-relocs. */
5457: # define LT_DLSYM_CONST
5458: #elif defined(__osf__)
5459: /* This system does not cope well with relocations in const data. */
5460: # define LT_DLSYM_CONST
5461: #else
5462: # define LT_DLSYM_CONST const
5463: #endif
5464:
5465: #ifdef __cplusplus
5466: extern "C" {
5467: #endif
5468:
5469: _LT_EOF
5470: # Now generate the symbol file.
5471: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5472:
5473: cat <<_LT_EOF >> conftest.$ac_ext
5474:
5475: /* The mapping between symbol names and symbols. */
5476: LT_DLSYM_CONST struct {
5477: const char *name;
5478: void *address;
5479: }
5480: lt__PROGRAM__LTX_preloaded_symbols[] =
5481: {
5482: { "@PROGRAM@", (void *) 0 },
5483: _LT_EOF
5484: $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5485: cat <<\_LT_EOF >> conftest.$ac_ext
5486: {0, (void *) 0}
5487: };
5488:
5489: /* This works around a problem in FreeBSD linker */
5490: #ifdef FREEBSD_WORKAROUND
5491: static const void *lt_preloaded_setup() {
5492: return lt__PROGRAM__LTX_preloaded_symbols;
5493: }
5494: #endif
5495:
5496: #ifdef __cplusplus
5497: }
5498: #endif
5499: _LT_EOF
5500: # Now try linking the two files.
5501: mv conftest.$ac_objext conftstm.$ac_objext
5502: lt_globsym_save_LIBS=$LIBS
5503: lt_globsym_save_CFLAGS=$CFLAGS
5504: LIBS="conftstm.$ac_objext"
5505: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5506: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5507: (eval $ac_link) 2>&5
1.15 paf 5508: ac_status=$?
5509: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.35 moko 5510: (exit $ac_status); } && test -s conftest${ac_exeext}; then
5511: pipe_works=yes
5512: fi
5513: LIBS=$lt_globsym_save_LIBS
5514: CFLAGS=$lt_globsym_save_CFLAGS
5515: else
5516: echo "cannot find nm_test_func in $nlist" >&5
5517: fi
5518: else
5519: echo "cannot find nm_test_var in $nlist" >&5
5520: fi
5521: else
5522: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5523: fi
5524: else
5525: echo "$progname: failed program was:" >&5
5526: cat conftest.$ac_ext >&5
5527: fi
5528: rm -rf conftest* conftst*
5529:
5530: # Do not use the global_symbol_pipe unless it works.
5531: if test "$pipe_works" = yes; then
5532: break
5533: else
5534: lt_cv_sys_global_symbol_pipe=
5535: fi
5536: done
5537:
5538: fi
5539:
5540: if test -z "$lt_cv_sys_global_symbol_pipe"; then
5541: lt_cv_sys_global_symbol_to_cdecl=
5542: fi
5543: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5544: echo "$as_me:$LINENO: result: failed" >&5
5545: echo "${ECHO_T}failed" >&6
1.1 parser 5546: else
1.35 moko 5547: echo "$as_me:$LINENO: result: ok" >&5
5548: echo "${ECHO_T}ok" >&6
5549: fi
1.15 paf 5550:
1.35 moko 5551: # Response file support.
5552: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5553: nm_file_list_spec='@'
5554: elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5555: nm_file_list_spec='@'
1.1 parser 5556: fi
5557:
1.15 paf 5558:
5559:
5560:
5561:
5562:
5563:
5564:
5565:
5566:
5567:
1.1 parser 5568:
5569:
1.15 paf 5570:
5571:
5572:
1.1 parser 5573:
1.15 paf 5574:
5575:
5576:
5577:
1.35 moko 5578:
5579:
5580:
5581:
5582:
5583:
5584: echo "$as_me:$LINENO: checking for sysroot" >&5
5585: echo $ECHO_N "checking for sysroot... $ECHO_C" >&6
5586:
5587: # Check whether --with-sysroot or --without-sysroot was given.
5588: if test "${with_sysroot+set}" = set; then
5589: withval="$with_sysroot"
5590:
1.15 paf 5591: else
1.35 moko 5592: with_sysroot=no
1.15 paf 5593: fi;
5594:
1.35 moko 5595: lt_sysroot=
5596: case ${with_sysroot} in #(
5597: yes)
5598: if test "$GCC" = yes; then
5599: lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5600: fi
5601: ;; #(
5602: /*)
5603: lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5604: ;; #(
5605: no|'')
5606: ;; #(
5607: *)
5608: echo "$as_me:$LINENO: result: ${with_sysroot}" >&5
5609: echo "${ECHO_T}${with_sysroot}" >&6
5610: { { echo "$as_me:$LINENO: error: The sysroot must be an absolute path." >&5
5611: echo "$as_me: error: The sysroot must be an absolute path." >&2;}
5612: { (exit 1); exit 1; }; }
5613: ;;
5614: esac
5615:
5616: echo "$as_me:$LINENO: result: ${lt_sysroot:-no}" >&5
5617: echo "${ECHO_T}${lt_sysroot:-no}" >&6
5618:
5619:
5620:
5621:
5622:
5623: # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5624: if test "${enable_libtool_lock+set}" = set; then
5625: enableval="$enable_libtool_lock"
1.15 paf 5626:
1.35 moko 5627: fi;
5628: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1.1 parser 5629:
1.35 moko 5630: # Some flags need to be propagated to the compiler or linker for good
5631: # libtool support.
5632: case $host in
5633: ia64-*-hpux*)
5634: # Find out which ABI we are using.
5635: echo 'int i;' > conftest.$ac_ext
5636: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5637: (eval $ac_compile) 2>&5
5638: ac_status=$?
5639: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640: (exit $ac_status); }; then
5641: case `/usr/bin/file conftest.$ac_objext` in
5642: *ELF-32*)
5643: HPUX_IA64_MODE="32"
5644: ;;
5645: *ELF-64*)
5646: HPUX_IA64_MODE="64"
5647: ;;
1.15 paf 5648: esac
5649: fi
1.35 moko 5650: rm -rf conftest*
5651: ;;
5652: *-*-irix6*)
5653: # Find out which ABI we are using.
5654: echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5655: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5656: (eval $ac_compile) 2>&5
1.15 paf 5657: ac_status=$?
5658: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.35 moko 5659: (exit $ac_status); }; then
5660: if test "$lt_cv_prog_gnu_ld" = yes; then
5661: case `/usr/bin/file conftest.$ac_objext` in
5662: *32-bit*)
5663: LD="${LD-ld} -melf32bsmip"
5664: ;;
5665: *N32*)
5666: LD="${LD-ld} -melf32bmipn32"
5667: ;;
5668: *64-bit*)
5669: LD="${LD-ld} -melf64bmip"
5670: ;;
5671: esac
5672: else
5673: case `/usr/bin/file conftest.$ac_objext` in
5674: *32-bit*)
5675: LD="${LD-ld} -32"
5676: ;;
5677: *N32*)
5678: LD="${LD-ld} -n32"
5679: ;;
5680: *64-bit*)
5681: LD="${LD-ld} -64"
5682: ;;
5683: esac
5684: fi
5685: fi
5686: rm -rf conftest*
5687: ;;
5688:
5689: x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5690: s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5691: # Find out which ABI we are using.
5692: echo 'int i;' > conftest.$ac_ext
5693: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5694: (eval $ac_compile) 2>&5
1.25 paf 5695: ac_status=$?
5696: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.35 moko 5697: (exit $ac_status); }; then
5698: case `/usr/bin/file conftest.o` in
5699: *32-bit*)
5700: case $host in
5701: x86_64-*kfreebsd*-gnu)
5702: LD="${LD-ld} -m elf_i386_fbsd"
5703: ;;
5704: x86_64-*linux*)
5705: LD="${LD-ld} -m elf_i386"
5706: ;;
5707: ppc64-*linux*|powerpc64-*linux*)
5708: LD="${LD-ld} -m elf32ppclinux"
5709: ;;
5710: s390x-*linux*)
5711: LD="${LD-ld} -m elf_s390"
5712: ;;
5713: sparc64-*linux*)
5714: LD="${LD-ld} -m elf32_sparc"
5715: ;;
5716: esac
1.15 paf 5717: ;;
1.35 moko 5718: *64-bit*)
5719: case $host in
5720: x86_64-*kfreebsd*-gnu)
5721: LD="${LD-ld} -m elf_x86_64_fbsd"
5722: ;;
5723: x86_64-*linux*)
5724: LD="${LD-ld} -m elf_x86_64"
5725: ;;
5726: ppc*-*linux*|powerpc*-*linux*)
5727: LD="${LD-ld} -m elf64ppc"
5728: ;;
5729: s390*-*linux*|s390*-*tpf*)
5730: LD="${LD-ld} -m elf64_s390"
5731: ;;
5732: sparc*-*linux*)
5733: LD="${LD-ld} -m elf64_sparc"
5734: ;;
5735: esac
1.15 paf 5736: ;;
1.35 moko 5737: esac
1.15 paf 5738: fi
1.35 moko 5739: rm -rf conftest*
5740: ;;
1.15 paf 5741:
1.35 moko 5742: *-*-sco3.2v5*)
5743: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5744: SAVE_CFLAGS="$CFLAGS"
5745: CFLAGS="$CFLAGS -belf"
5746: echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5747: echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5748: if test "${lt_cv_cc_needs_belf+set}" = set; then
1.15 paf 5749: echo $ECHO_N "(cached) $ECHO_C" >&6
5750: else
1.35 moko 5751: ac_ext=c
5752: ac_cpp='$CPP $CPPFLAGS'
5753: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5754: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5755: ac_compiler_gnu=$ac_cv_c_compiler_gnu
5756:
5757: cat >conftest.$ac_ext <<_ACEOF
1.15 paf 5758: /* confdefs.h. */
5759: _ACEOF
5760: cat confdefs.h >>conftest.$ac_ext
5761: cat >>conftest.$ac_ext <<_ACEOF
5762: /* end confdefs.h. */
5763:
5764: int
5765: main ()
5766: {
5767:
5768: ;
5769: return 0;
5770: }
5771: _ACEOF
5772: rm -f conftest.$ac_objext conftest$ac_exeext
5773: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25 paf 5774: (eval $ac_link) 2>conftest.er1
1.15 paf 5775: ac_status=$?
1.25 paf 5776: grep -v '^ *+' conftest.er1 >conftest.err
5777: rm -f conftest.er1
5778: cat conftest.err >&5
1.15 paf 5779: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780: (exit $ac_status); } &&
1.25 paf 5781: { ac_try='test -z "$ac_c_werror_flag"
5782: || test ! -s conftest.err'
5783: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5784: (eval $ac_try) 2>&5
5785: ac_status=$?
5786: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787: (exit $ac_status); }; } &&
5788: { ac_try='test -s conftest$ac_exeext'
1.15 paf 5789: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5790: (eval $ac_try) 2>&5
5791: ac_status=$?
5792: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793: (exit $ac_status); }; }; then
1.35 moko 5794: lt_cv_cc_needs_belf=yes
1.15 paf 5795: else
5796: echo "$as_me: failed program was:" >&5
5797: sed 's/^/| /' conftest.$ac_ext >&5
5798:
1.35 moko 5799: lt_cv_cc_needs_belf=no
1.15 paf 5800: fi
1.25 paf 5801: rm -f conftest.err conftest.$ac_objext \
5802: conftest$ac_exeext conftest.$ac_ext
1.35 moko 5803: ac_ext=c
5804: ac_cpp='$CPP $CPPFLAGS'
5805: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5806: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5807: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.15 paf 5808:
5809: fi
1.35 moko 5810: echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5811: echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5812: if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5813: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5814: CFLAGS="$SAVE_CFLAGS"
5815: fi
5816: ;;
5817: *-*solaris*)
5818: # Find out which ABI we are using.
5819: echo 'int i;' > conftest.$ac_ext
5820: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5821: (eval $ac_compile) 2>&5
5822: ac_status=$?
5823: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824: (exit $ac_status); }; then
5825: case `/usr/bin/file conftest.o` in
5826: *64-bit*)
5827: case $lt_cv_prog_gnu_ld in
5828: yes*)
5829: case $host in
5830: i?86-*-solaris*)
5831: LD="${LD-ld} -m elf_x86_64"
5832: ;;
5833: sparc*-*-solaris*)
5834: LD="${LD-ld} -m elf64_sparc"
5835: ;;
5836: esac
5837: # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
5838: if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
5839: LD="${LD-ld}_sol2"
5840: fi
5841: ;;
5842: *)
5843: if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5844: LD="${LD-ld} -64"
5845: fi
5846: ;;
5847: esac
5848: ;;
5849: esac
5850: fi
5851: rm -rf conftest*
5852: ;;
5853: esac
1.15 paf 5854:
1.35 moko 5855: need_locks="$enable_libtool_lock"
1.15 paf 5856:
1.35 moko 5857: if test -n "$ac_tool_prefix"; then
5858: # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
5859: set dummy ${ac_tool_prefix}mt; ac_word=$2
5860: echo "$as_me:$LINENO: checking for $ac_word" >&5
5861: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5862: if test "${ac_cv_prog_MANIFEST_TOOL+set}" = set; then
1.15 paf 5863: echo $ECHO_N "(cached) $ECHO_C" >&6
5864: else
1.35 moko 5865: if test -n "$MANIFEST_TOOL"; then
5866: ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
5867: else
5868: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5869: for as_dir in $PATH
5870: do
5871: IFS=$as_save_IFS
5872: test -z "$as_dir" && as_dir=.
5873: for ac_exec_ext in '' $ac_executable_extensions; do
5874: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5875: ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
5876: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5877: break 2
5878: fi
5879: done
5880: done
1.15 paf 5881:
1.35 moko 5882: fi
5883: fi
5884: MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
5885: if test -n "$MANIFEST_TOOL"; then
5886: echo "$as_me:$LINENO: result: $MANIFEST_TOOL" >&5
5887: echo "${ECHO_T}$MANIFEST_TOOL" >&6
1.15 paf 5888: else
1.35 moko 5889: echo "$as_me:$LINENO: result: no" >&5
5890: echo "${ECHO_T}no" >&6
1.15 paf 5891: fi
5892:
5893: fi
1.35 moko 5894: if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
5895: ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
5896: # Extract the first word of "mt", so it can be a program name with args.
5897: set dummy mt; ac_word=$2
5898: echo "$as_me:$LINENO: checking for $ac_word" >&5
5899: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5900: if test "${ac_cv_prog_ac_ct_MANIFEST_TOOL+set}" = set; then
5901: echo $ECHO_N "(cached) $ECHO_C" >&6
5902: else
5903: if test -n "$ac_ct_MANIFEST_TOOL"; then
5904: ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
5905: else
5906: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5907: for as_dir in $PATH
5908: do
5909: IFS=$as_save_IFS
5910: test -z "$as_dir" && as_dir=.
5911: for ac_exec_ext in '' $ac_executable_extensions; do
5912: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5913: ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
5914: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5915: break 2
5916: fi
5917: done
5918: done
1.15 paf 5919:
1.35 moko 5920: test -z "$ac_cv_prog_ac_ct_MANIFEST_TOOL" && ac_cv_prog_ac_ct_MANIFEST_TOOL=":"
5921: fi
5922: fi
5923: ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
5924: if test -n "$ac_ct_MANIFEST_TOOL"; then
5925: echo "$as_me:$LINENO: result: $ac_ct_MANIFEST_TOOL" >&5
5926: echo "${ECHO_T}$ac_ct_MANIFEST_TOOL" >&6
5927: else
5928: echo "$as_me:$LINENO: result: no" >&5
5929: echo "${ECHO_T}no" >&6
5930: fi
5931:
5932: MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
5933: else
5934: MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
5935: fi
1.15 paf 5936:
1.35 moko 5937: test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
5938: echo "$as_me:$LINENO: checking if $MANIFEST_TOOL is a manifest tool" >&5
5939: echo $ECHO_N "checking if $MANIFEST_TOOL is a manifest tool... $ECHO_C" >&6
5940: if test "${lt_cv_path_mainfest_tool+set}" = set; then
1.15 paf 5941: echo $ECHO_N "(cached) $ECHO_C" >&6
5942: else
1.35 moko 5943: lt_cv_path_mainfest_tool=no
5944: echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
5945: $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
5946: cat conftest.err >&5
5947: if $GREP 'Manifest Tool' conftest.out > /dev/null; then
5948: lt_cv_path_mainfest_tool=yes
5949: fi
5950: rm -f conftest*
5951: fi
5952: echo "$as_me:$LINENO: result: $lt_cv_path_mainfest_tool" >&5
5953: echo "${ECHO_T}$lt_cv_path_mainfest_tool" >&6
5954: if test "x$lt_cv_path_mainfest_tool" != xyes; then
5955: MANIFEST_TOOL=:
5956: fi
5957:
5958:
5959:
1.15 paf 5960:
5961:
5962:
1.35 moko 5963: case $host_os in
5964: rhapsody* | darwin*)
5965: if test -n "$ac_tool_prefix"; then
5966: # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5967: set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5968: echo "$as_me:$LINENO: checking for $ac_word" >&5
5969: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5970: if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5971: echo $ECHO_N "(cached) $ECHO_C" >&6
1.15 paf 5972: else
1.35 moko 5973: if test -n "$DSYMUTIL"; then
5974: ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5975: else
5976: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5977: for as_dir in $PATH
5978: do
5979: IFS=$as_save_IFS
5980: test -z "$as_dir" && as_dir=.
5981: for ac_exec_ext in '' $ac_executable_extensions; do
5982: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5983: ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5984: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5985: break 2
5986: fi
5987: done
5988: done
1.15 paf 5989:
5990: fi
1.35 moko 5991: fi
5992: DSYMUTIL=$ac_cv_prog_DSYMUTIL
5993: if test -n "$DSYMUTIL"; then
5994: echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5995: echo "${ECHO_T}$DSYMUTIL" >&6
5996: else
5997: echo "$as_me:$LINENO: result: no" >&5
5998: echo "${ECHO_T}no" >&6
5999: fi
1.15 paf 6000:
6001: fi
1.35 moko 6002: if test -z "$ac_cv_prog_DSYMUTIL"; then
6003: ac_ct_DSYMUTIL=$DSYMUTIL
6004: # Extract the first word of "dsymutil", so it can be a program name with args.
6005: set dummy dsymutil; ac_word=$2
6006: echo "$as_me:$LINENO: checking for $ac_word" >&5
6007: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6008: if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6009: echo $ECHO_N "(cached) $ECHO_C" >&6
6010: else
6011: if test -n "$ac_ct_DSYMUTIL"; then
6012: ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6013: else
6014: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6015: for as_dir in $PATH
6016: do
6017: IFS=$as_save_IFS
6018: test -z "$as_dir" && as_dir=.
6019: for ac_exec_ext in '' $ac_executable_extensions; do
6020: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6021: ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6022: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6023: break 2
6024: fi
6025: done
6026: done
1.15 paf 6027:
1.35 moko 6028: test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
6029: fi
6030: fi
6031: ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6032: if test -n "$ac_ct_DSYMUTIL"; then
6033: echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6034: echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
1.15 paf 6035: else
1.35 moko 6036: echo "$as_me:$LINENO: result: no" >&5
6037: echo "${ECHO_T}no" >&6
1.15 paf 6038: fi
6039:
1.35 moko 6040: DSYMUTIL=$ac_ct_DSYMUTIL
1.15 paf 6041: else
1.35 moko 6042: DSYMUTIL="$ac_cv_prog_DSYMUTIL"
1.15 paf 6043: fi
6044:
1.35 moko 6045: if test -n "$ac_tool_prefix"; then
6046: # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6047: set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6048: echo "$as_me:$LINENO: checking for $ac_word" >&5
6049: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6050: if test "${ac_cv_prog_NMEDIT+set}" = set; then
6051: echo $ECHO_N "(cached) $ECHO_C" >&6
6052: else
6053: if test -n "$NMEDIT"; then
6054: ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6055: else
6056: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6057: for as_dir in $PATH
6058: do
6059: IFS=$as_save_IFS
6060: test -z "$as_dir" && as_dir=.
6061: for ac_exec_ext in '' $ac_executable_extensions; do
6062: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6063: ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6064: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6065: break 2
6066: fi
6067: done
6068: done
1.15 paf 6069:
1.35 moko 6070: fi
6071: fi
6072: NMEDIT=$ac_cv_prog_NMEDIT
6073: if test -n "$NMEDIT"; then
6074: echo "$as_me:$LINENO: result: $NMEDIT" >&5
6075: echo "${ECHO_T}$NMEDIT" >&6
6076: else
6077: echo "$as_me:$LINENO: result: no" >&5
6078: echo "${ECHO_T}no" >&6
6079: fi
1.15 paf 6080:
1.35 moko 6081: fi
6082: if test -z "$ac_cv_prog_NMEDIT"; then
6083: ac_ct_NMEDIT=$NMEDIT
6084: # Extract the first word of "nmedit", so it can be a program name with args.
6085: set dummy nmedit; ac_word=$2
6086: echo "$as_me:$LINENO: checking for $ac_word" >&5
6087: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6088: if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6089: echo $ECHO_N "(cached) $ECHO_C" >&6
6090: else
6091: if test -n "$ac_ct_NMEDIT"; then
6092: ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
1.15 paf 6093: else
1.35 moko 6094: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6095: for as_dir in $PATH
6096: do
6097: IFS=$as_save_IFS
6098: test -z "$as_dir" && as_dir=.
6099: for ac_exec_ext in '' $ac_executable_extensions; do
6100: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6101: ac_cv_prog_ac_ct_NMEDIT="nmedit"
6102: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6103: break 2
6104: fi
6105: done
6106: done
1.15 paf 6107:
1.35 moko 6108: test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
6109: fi
6110: fi
6111: ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6112: if test -n "$ac_ct_NMEDIT"; then
6113: echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6114: echo "${ECHO_T}$ac_ct_NMEDIT" >&6
6115: else
6116: echo "$as_me:$LINENO: result: no" >&5
6117: echo "${ECHO_T}no" >&6
1.15 paf 6118: fi
6119:
1.35 moko 6120: NMEDIT=$ac_ct_NMEDIT
6121: else
6122: NMEDIT="$ac_cv_prog_NMEDIT"
1.15 paf 6123: fi
6124:
1.35 moko 6125: if test -n "$ac_tool_prefix"; then
6126: # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6127: set dummy ${ac_tool_prefix}lipo; ac_word=$2
6128: echo "$as_me:$LINENO: checking for $ac_word" >&5
6129: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6130: if test "${ac_cv_prog_LIPO+set}" = set; then
6131: echo $ECHO_N "(cached) $ECHO_C" >&6
6132: else
6133: if test -n "$LIPO"; then
6134: ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6135: else
6136: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6137: for as_dir in $PATH
6138: do
6139: IFS=$as_save_IFS
6140: test -z "$as_dir" && as_dir=.
6141: for ac_exec_ext in '' $ac_executable_extensions; do
6142: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6143: ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6144: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6145: break 2
6146: fi
6147: done
6148: done
1.15 paf 6149:
1.35 moko 6150: fi
6151: fi
6152: LIPO=$ac_cv_prog_LIPO
6153: if test -n "$LIPO"; then
6154: echo "$as_me:$LINENO: result: $LIPO" >&5
6155: echo "${ECHO_T}$LIPO" >&6
6156: else
6157: echo "$as_me:$LINENO: result: no" >&5
6158: echo "${ECHO_T}no" >&6
6159: fi
1.15 paf 6160:
1.35 moko 6161: fi
6162: if test -z "$ac_cv_prog_LIPO"; then
6163: ac_ct_LIPO=$LIPO
6164: # Extract the first word of "lipo", so it can be a program name with args.
6165: set dummy lipo; ac_word=$2
6166: echo "$as_me:$LINENO: checking for $ac_word" >&5
6167: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6168: if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6169: echo $ECHO_N "(cached) $ECHO_C" >&6
6170: else
6171: if test -n "$ac_ct_LIPO"; then
6172: ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6173: else
6174: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6175: for as_dir in $PATH
6176: do
6177: IFS=$as_save_IFS
6178: test -z "$as_dir" && as_dir=.
6179: for ac_exec_ext in '' $ac_executable_extensions; do
6180: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6181: ac_cv_prog_ac_ct_LIPO="lipo"
6182: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6183: break 2
1.15 paf 6184: fi
1.35 moko 6185: done
6186: done
6187:
6188: test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
6189: fi
6190: fi
6191: ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6192: if test -n "$ac_ct_LIPO"; then
6193: echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6194: echo "${ECHO_T}$ac_ct_LIPO" >&6
6195: else
6196: echo "$as_me:$LINENO: result: no" >&5
6197: echo "${ECHO_T}no" >&6
6198: fi
6199:
6200: LIPO=$ac_ct_LIPO
6201: else
6202: LIPO="$ac_cv_prog_LIPO"
6203: fi
1.15 paf 6204:
1.35 moko 6205: if test -n "$ac_tool_prefix"; then
6206: # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6207: set dummy ${ac_tool_prefix}otool; ac_word=$2
6208: echo "$as_me:$LINENO: checking for $ac_word" >&5
6209: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6210: if test "${ac_cv_prog_OTOOL+set}" = set; then
6211: echo $ECHO_N "(cached) $ECHO_C" >&6
6212: else
6213: if test -n "$OTOOL"; then
6214: ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6215: else
6216: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6217: for as_dir in $PATH
6218: do
6219: IFS=$as_save_IFS
6220: test -z "$as_dir" && as_dir=.
6221: for ac_exec_ext in '' $ac_executable_extensions; do
6222: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6223: ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6224: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6225: break 2
6226: fi
6227: done
6228: done
1.15 paf 6229:
1.35 moko 6230: fi
6231: fi
6232: OTOOL=$ac_cv_prog_OTOOL
6233: if test -n "$OTOOL"; then
6234: echo "$as_me:$LINENO: result: $OTOOL" >&5
6235: echo "${ECHO_T}$OTOOL" >&6
6236: else
6237: echo "$as_me:$LINENO: result: no" >&5
6238: echo "${ECHO_T}no" >&6
6239: fi
1.15 paf 6240:
1.35 moko 6241: fi
6242: if test -z "$ac_cv_prog_OTOOL"; then
6243: ac_ct_OTOOL=$OTOOL
6244: # Extract the first word of "otool", so it can be a program name with args.
6245: set dummy otool; ac_word=$2
6246: echo "$as_me:$LINENO: checking for $ac_word" >&5
6247: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6248: if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6249: echo $ECHO_N "(cached) $ECHO_C" >&6
6250: else
6251: if test -n "$ac_ct_OTOOL"; then
6252: ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6253: else
6254: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6255: for as_dir in $PATH
6256: do
6257: IFS=$as_save_IFS
6258: test -z "$as_dir" && as_dir=.
6259: for ac_exec_ext in '' $ac_executable_extensions; do
6260: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6261: ac_cv_prog_ac_ct_OTOOL="otool"
6262: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6263: break 2
6264: fi
6265: done
6266: done
1.15 paf 6267:
1.35 moko 6268: test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
6269: fi
6270: fi
6271: ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6272: if test -n "$ac_ct_OTOOL"; then
6273: echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6274: echo "${ECHO_T}$ac_ct_OTOOL" >&6
6275: else
6276: echo "$as_me:$LINENO: result: no" >&5
6277: echo "${ECHO_T}no" >&6
6278: fi
1.15 paf 6279:
1.35 moko 6280: OTOOL=$ac_ct_OTOOL
6281: else
6282: OTOOL="$ac_cv_prog_OTOOL"
6283: fi
1.15 paf 6284:
1.35 moko 6285: if test -n "$ac_tool_prefix"; then
6286: # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6287: set dummy ${ac_tool_prefix}otool64; ac_word=$2
6288: echo "$as_me:$LINENO: checking for $ac_word" >&5
6289: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6290: if test "${ac_cv_prog_OTOOL64+set}" = set; then
6291: echo $ECHO_N "(cached) $ECHO_C" >&6
6292: else
6293: if test -n "$OTOOL64"; then
6294: ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6295: else
6296: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6297: for as_dir in $PATH
6298: do
6299: IFS=$as_save_IFS
6300: test -z "$as_dir" && as_dir=.
6301: for ac_exec_ext in '' $ac_executable_extensions; do
6302: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6303: ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6304: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6305: break 2
6306: fi
6307: done
6308: done
1.15 paf 6309:
1.35 moko 6310: fi
6311: fi
6312: OTOOL64=$ac_cv_prog_OTOOL64
6313: if test -n "$OTOOL64"; then
6314: echo "$as_me:$LINENO: result: $OTOOL64" >&5
6315: echo "${ECHO_T}$OTOOL64" >&6
6316: else
6317: echo "$as_me:$LINENO: result: no" >&5
6318: echo "${ECHO_T}no" >&6
6319: fi
1.15 paf 6320:
1.35 moko 6321: fi
6322: if test -z "$ac_cv_prog_OTOOL64"; then
6323: ac_ct_OTOOL64=$OTOOL64
6324: # Extract the first word of "otool64", so it can be a program name with args.
6325: set dummy otool64; ac_word=$2
6326: echo "$as_me:$LINENO: checking for $ac_word" >&5
6327: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6328: if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6329: echo $ECHO_N "(cached) $ECHO_C" >&6
6330: else
6331: if test -n "$ac_ct_OTOOL64"; then
6332: ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6333: else
6334: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6335: for as_dir in $PATH
6336: do
6337: IFS=$as_save_IFS
6338: test -z "$as_dir" && as_dir=.
6339: for ac_exec_ext in '' $ac_executable_extensions; do
6340: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6341: ac_cv_prog_ac_ct_OTOOL64="otool64"
6342: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6343: break 2
6344: fi
6345: done
6346: done
1.15 paf 6347:
1.35 moko 6348: test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
6349: fi
6350: fi
6351: ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6352: if test -n "$ac_ct_OTOOL64"; then
6353: echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6354: echo "${ECHO_T}$ac_ct_OTOOL64" >&6
6355: else
6356: echo "$as_me:$LINENO: result: no" >&5
6357: echo "${ECHO_T}no" >&6
6358: fi
1.15 paf 6359:
1.35 moko 6360: OTOOL64=$ac_ct_OTOOL64
6361: else
6362: OTOOL64="$ac_cv_prog_OTOOL64"
6363: fi
1.15 paf 6364:
6365:
6366:
6367:
6368:
6369:
6370:
6371:
6372:
6373:
6374:
6375:
6376:
6377:
6378:
6379:
6380:
6381:
6382:
6383:
6384:
6385:
6386:
6387:
6388:
6389:
6390:
1.35 moko 6391: echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6392: echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
6393: if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6394: echo $ECHO_N "(cached) $ECHO_C" >&6
6395: else
6396: lt_cv_apple_cc_single_mod=no
6397: if test -z "${LT_MULTI_MODULE}"; then
6398: # By default we will add the -single_module flag. You can override
6399: # by either setting the environment variable LT_MULTI_MODULE
6400: # non-empty at configure time, or by adding -multi_module to the
6401: # link flags.
6402: rm -rf libconftest.dylib*
6403: echo "int foo(void){return 1;}" > conftest.c
6404: echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6405: -dynamiclib -Wl,-single_module conftest.c" >&5
6406: $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6407: -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6408: _lt_result=$?
6409: # If there is a non-empty error log, and "single_module"
6410: # appears in it, assume the flag caused a linker warning
6411: if test -s conftest.err && $GREP single_module conftest.err; then
6412: cat conftest.err >&5
6413: # Otherwise, if the output was created with a 0 exit code from
6414: # the compiler, it worked.
6415: elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6416: lt_cv_apple_cc_single_mod=yes
6417: else
6418: cat conftest.err >&5
6419: fi
6420: rm -rf libconftest.dylib*
6421: rm -f conftest.*
6422: fi
6423: fi
6424: echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6425: echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
1.15 paf 6426:
1.35 moko 6427: echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6428: echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
6429: if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6430: echo $ECHO_N "(cached) $ECHO_C" >&6
6431: else
6432: lt_cv_ld_exported_symbols_list=no
6433: save_LDFLAGS=$LDFLAGS
6434: echo "_main" > conftest.sym
6435: LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6436: cat >conftest.$ac_ext <<_ACEOF
6437: /* confdefs.h. */
6438: _ACEOF
6439: cat confdefs.h >>conftest.$ac_ext
6440: cat >>conftest.$ac_ext <<_ACEOF
6441: /* end confdefs.h. */
1.15 paf 6442:
1.35 moko 6443: int
6444: main ()
6445: {
1.15 paf 6446:
1.35 moko 6447: ;
6448: return 0;
6449: }
6450: _ACEOF
6451: rm -f conftest.$ac_objext conftest$ac_exeext
6452: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6453: (eval $ac_link) 2>conftest.er1
6454: ac_status=$?
6455: grep -v '^ *+' conftest.er1 >conftest.err
6456: rm -f conftest.er1
6457: cat conftest.err >&5
6458: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459: (exit $ac_status); } &&
6460: { ac_try='test -z "$ac_c_werror_flag"
6461: || test ! -s conftest.err'
6462: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6463: (eval $ac_try) 2>&5
6464: ac_status=$?
6465: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466: (exit $ac_status); }; } &&
6467: { ac_try='test -s conftest$ac_exeext'
6468: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6469: (eval $ac_try) 2>&5
6470: ac_status=$?
6471: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472: (exit $ac_status); }; }; then
6473: lt_cv_ld_exported_symbols_list=yes
6474: else
6475: echo "$as_me: failed program was:" >&5
6476: sed 's/^/| /' conftest.$ac_ext >&5
1.15 paf 6477:
1.35 moko 6478: lt_cv_ld_exported_symbols_list=no
6479: fi
6480: rm -f conftest.err conftest.$ac_objext \
6481: conftest$ac_exeext conftest.$ac_ext
6482: LDFLAGS="$save_LDFLAGS"
1.15 paf 6483:
1.35 moko 6484: fi
6485: echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6486: echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
1.15 paf 6487:
1.35 moko 6488: echo "$as_me:$LINENO: checking for -force_load linker flag" >&5
6489: echo $ECHO_N "checking for -force_load linker flag... $ECHO_C" >&6
6490: if test "${lt_cv_ld_force_load+set}" = set; then
6491: echo $ECHO_N "(cached) $ECHO_C" >&6
6492: else
6493: lt_cv_ld_force_load=no
6494: cat > conftest.c << _LT_EOF
6495: int forced_loaded() { return 2;}
6496: _LT_EOF
6497: echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6498: $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6499: echo "$AR cru libconftest.a conftest.o" >&5
6500: $AR cru libconftest.a conftest.o 2>&5
6501: echo "$RANLIB libconftest.a" >&5
6502: $RANLIB libconftest.a 2>&5
6503: cat > conftest.c << _LT_EOF
6504: int main() { return 0;}
6505: _LT_EOF
6506: echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6507: $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6508: _lt_result=$?
6509: if test -s conftest.err && $GREP force_load conftest.err; then
6510: cat conftest.err >&5
6511: elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
6512: lt_cv_ld_force_load=yes
6513: else
6514: cat conftest.err >&5
6515: fi
6516: rm -f conftest.err libconftest.a conftest conftest.c
6517: rm -rf conftest.dSYM
1.15 paf 6518:
1.35 moko 6519: fi
6520: echo "$as_me:$LINENO: result: $lt_cv_ld_force_load" >&5
6521: echo "${ECHO_T}$lt_cv_ld_force_load" >&6
6522: case $host_os in
6523: rhapsody* | darwin1.[012])
6524: _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6525: darwin1.*)
6526: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6527: darwin*) # darwin 5.x on
6528: # if running on 10.5 or later, the deployment target defaults
6529: # to the OS version, if on x86, and 10.4, the deployment
6530: # target defaults to 10.4. Don't you love it?
6531: case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6532: 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6533: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6534: 10.[012]*)
6535: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6536: 10.*)
6537: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6538: esac
1.15 paf 6539: ;;
1.35 moko 6540: esac
6541: if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6542: _lt_dar_single_mod='$single_module'
6543: fi
6544: if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6545: _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6546: else
6547: _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
1.15 paf 6548: fi
1.35 moko 6549: if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6550: _lt_dsymutil='~$DSYMUTIL $lib || :'
1.15 paf 6551: else
1.35 moko 6552: _lt_dsymutil=
1.15 paf 6553: fi
6554: ;;
1.35 moko 6555: esac
1.15 paf 6556:
1.35 moko 6557: ac_ext=c
6558: ac_cpp='$CPP $CPPFLAGS'
6559: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6560: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6561: ac_compiler_gnu=$ac_cv_c_compiler_gnu
6562: echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6563: echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6564: # On Suns, sometimes $CPP names a directory.
6565: if test -n "$CPP" && test -d "$CPP"; then
6566: CPP=
6567: fi
6568: if test -z "$CPP"; then
6569: if test "${ac_cv_prog_CPP+set}" = set; then
6570: echo $ECHO_N "(cached) $ECHO_C" >&6
6571: else
6572: # Double quotes because CPP needs to be expanded
6573: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6574: do
6575: ac_preproc_ok=false
6576: for ac_c_preproc_warn_flag in '' yes
6577: do
6578: # Use a header file that comes with gcc, so configuring glibc
6579: # with a fresh cross-compiler works.
6580: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6581: # <limits.h> exists even on freestanding compilers.
6582: # On the NeXT, cc -E runs the code through the compiler's parser,
6583: # not just through cpp. "Syntax error" is here to catch this case.
6584: cat >conftest.$ac_ext <<_ACEOF
6585: /* confdefs.h. */
6586: _ACEOF
6587: cat confdefs.h >>conftest.$ac_ext
6588: cat >>conftest.$ac_ext <<_ACEOF
6589: /* end confdefs.h. */
6590: #ifdef __STDC__
6591: # include <limits.h>
6592: #else
6593: # include <assert.h>
6594: #endif
6595: Syntax error
6596: _ACEOF
6597: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6598: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6599: ac_status=$?
6600: grep -v '^ *+' conftest.er1 >conftest.err
6601: rm -f conftest.er1
6602: cat conftest.err >&5
6603: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604: (exit $ac_status); } >/dev/null; then
6605: if test -s conftest.err; then
6606: ac_cpp_err=$ac_c_preproc_warn_flag
6607: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6608: else
6609: ac_cpp_err=
6610: fi
6611: else
6612: ac_cpp_err=yes
1.15 paf 6613: fi
1.35 moko 6614: if test -z "$ac_cpp_err"; then
6615: :
6616: else
6617: echo "$as_me: failed program was:" >&5
6618: sed 's/^/| /' conftest.$ac_ext >&5
1.15 paf 6619:
1.35 moko 6620: # Broken: fails on valid input.
6621: continue
6622: fi
6623: rm -f conftest.err conftest.$ac_ext
1.15 paf 6624:
1.35 moko 6625: # OK, works on sane cases. Now check whether non-existent headers
6626: # can be detected and how.
6627: cat >conftest.$ac_ext <<_ACEOF
6628: /* confdefs.h. */
6629: _ACEOF
6630: cat confdefs.h >>conftest.$ac_ext
6631: cat >>conftest.$ac_ext <<_ACEOF
6632: /* end confdefs.h. */
6633: #include <ac_nonexistent.h>
6634: _ACEOF
6635: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6636: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6637: ac_status=$?
6638: grep -v '^ *+' conftest.er1 >conftest.err
6639: rm -f conftest.er1
6640: cat conftest.err >&5
6641: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642: (exit $ac_status); } >/dev/null; then
6643: if test -s conftest.err; then
6644: ac_cpp_err=$ac_c_preproc_warn_flag
6645: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1.15 paf 6646: else
1.35 moko 6647: ac_cpp_err=
1.15 paf 6648: fi
6649: else
1.35 moko 6650: ac_cpp_err=yes
6651: fi
6652: if test -z "$ac_cpp_err"; then
6653: # Broken: success on invalid input.
6654: continue
6655: else
6656: echo "$as_me: failed program was:" >&5
6657: sed 's/^/| /' conftest.$ac_ext >&5
6658:
6659: # Passes both tests.
6660: ac_preproc_ok=:
6661: break
1.15 paf 6662: fi
1.35 moko 6663: rm -f conftest.err conftest.$ac_ext
1.15 paf 6664:
1.35 moko 6665: done
6666: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6667: rm -f conftest.err conftest.$ac_ext
6668: if $ac_preproc_ok; then
6669: break
1.15 paf 6670: fi
6671:
1.35 moko 6672: done
6673: ac_cv_prog_CPP=$CPP
1.15 paf 6674:
1.35 moko 6675: fi
6676: CPP=$ac_cv_prog_CPP
6677: else
6678: ac_cv_prog_CPP=$CPP
6679: fi
6680: echo "$as_me:$LINENO: result: $CPP" >&5
6681: echo "${ECHO_T}$CPP" >&6
6682: ac_preproc_ok=false
6683: for ac_c_preproc_warn_flag in '' yes
6684: do
6685: # Use a header file that comes with gcc, so configuring glibc
6686: # with a fresh cross-compiler works.
6687: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6688: # <limits.h> exists even on freestanding compilers.
6689: # On the NeXT, cc -E runs the code through the compiler's parser,
6690: # not just through cpp. "Syntax error" is here to catch this case.
6691: cat >conftest.$ac_ext <<_ACEOF
6692: /* confdefs.h. */
6693: _ACEOF
6694: cat confdefs.h >>conftest.$ac_ext
6695: cat >>conftest.$ac_ext <<_ACEOF
6696: /* end confdefs.h. */
6697: #ifdef __STDC__
6698: # include <limits.h>
6699: #else
6700: # include <assert.h>
6701: #endif
6702: Syntax error
6703: _ACEOF
6704: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6705: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6706: ac_status=$?
6707: grep -v '^ *+' conftest.er1 >conftest.err
6708: rm -f conftest.er1
6709: cat conftest.err >&5
6710: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6711: (exit $ac_status); } >/dev/null; then
6712: if test -s conftest.err; then
6713: ac_cpp_err=$ac_c_preproc_warn_flag
6714: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6715: else
6716: ac_cpp_err=
6717: fi
6718: else
6719: ac_cpp_err=yes
6720: fi
6721: if test -z "$ac_cpp_err"; then
6722: :
6723: else
6724: echo "$as_me: failed program was:" >&5
6725: sed 's/^/| /' conftest.$ac_ext >&5
1.15 paf 6726:
1.35 moko 6727: # Broken: fails on valid input.
6728: continue
6729: fi
6730: rm -f conftest.err conftest.$ac_ext
1.15 paf 6731:
1.35 moko 6732: # OK, works on sane cases. Now check whether non-existent headers
6733: # can be detected and how.
6734: cat >conftest.$ac_ext <<_ACEOF
6735: /* confdefs.h. */
6736: _ACEOF
6737: cat confdefs.h >>conftest.$ac_ext
6738: cat >>conftest.$ac_ext <<_ACEOF
6739: /* end confdefs.h. */
6740: #include <ac_nonexistent.h>
6741: _ACEOF
6742: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6743: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6744: ac_status=$?
6745: grep -v '^ *+' conftest.er1 >conftest.err
6746: rm -f conftest.er1
6747: cat conftest.err >&5
6748: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6749: (exit $ac_status); } >/dev/null; then
6750: if test -s conftest.err; then
6751: ac_cpp_err=$ac_c_preproc_warn_flag
6752: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1.15 paf 6753: else
1.35 moko 6754: ac_cpp_err=
1.15 paf 6755: fi
1.35 moko 6756: else
6757: ac_cpp_err=yes
6758: fi
6759: if test -z "$ac_cpp_err"; then
6760: # Broken: success on invalid input.
6761: continue
6762: else
6763: echo "$as_me: failed program was:" >&5
6764: sed 's/^/| /' conftest.$ac_ext >&5
6765:
6766: # Passes both tests.
6767: ac_preproc_ok=:
6768: break
6769: fi
6770: rm -f conftest.err conftest.$ac_ext
6771:
6772: done
6773: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6774: rm -f conftest.err conftest.$ac_ext
6775: if $ac_preproc_ok; then
6776: :
6777: else
6778: { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6779: See \`config.log' for more details." >&5
6780: echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6781: See \`config.log' for more details." >&2;}
6782: { (exit 1); exit 1; }; }
6783: fi
1.15 paf 6784:
1.35 moko 6785: ac_ext=c
6786: ac_cpp='$CPP $CPPFLAGS'
6787: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6788: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6789: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.15 paf 6790:
6791:
1.35 moko 6792: echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6793: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6794: if test "${ac_cv_header_stdc+set}" = set; then
6795: echo $ECHO_N "(cached) $ECHO_C" >&6
6796: else
6797: cat >conftest.$ac_ext <<_ACEOF
6798: /* confdefs.h. */
6799: _ACEOF
6800: cat confdefs.h >>conftest.$ac_ext
6801: cat >>conftest.$ac_ext <<_ACEOF
6802: /* end confdefs.h. */
6803: #include <stdlib.h>
6804: #include <stdarg.h>
6805: #include <string.h>
6806: #include <float.h>
1.15 paf 6807:
1.35 moko 6808: int
6809: main ()
6810: {
1.15 paf 6811:
1.35 moko 6812: ;
6813: return 0;
6814: }
6815: _ACEOF
6816: rm -f conftest.$ac_objext
6817: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6818: (eval $ac_compile) 2>conftest.er1
6819: ac_status=$?
6820: grep -v '^ *+' conftest.er1 >conftest.err
6821: rm -f conftest.er1
6822: cat conftest.err >&5
6823: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6824: (exit $ac_status); } &&
6825: { ac_try='test -z "$ac_c_werror_flag"
6826: || test ! -s conftest.err'
6827: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6828: (eval $ac_try) 2>&5
6829: ac_status=$?
6830: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831: (exit $ac_status); }; } &&
6832: { ac_try='test -s conftest.$ac_objext'
6833: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6834: (eval $ac_try) 2>&5
6835: ac_status=$?
6836: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6837: (exit $ac_status); }; }; then
6838: ac_cv_header_stdc=yes
6839: else
6840: echo "$as_me: failed program was:" >&5
6841: sed 's/^/| /' conftest.$ac_ext >&5
1.15 paf 6842:
1.35 moko 6843: ac_cv_header_stdc=no
6844: fi
6845: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 paf 6846:
1.35 moko 6847: if test $ac_cv_header_stdc = yes; then
6848: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6849: cat >conftest.$ac_ext <<_ACEOF
6850: /* confdefs.h. */
6851: _ACEOF
6852: cat confdefs.h >>conftest.$ac_ext
6853: cat >>conftest.$ac_ext <<_ACEOF
6854: /* end confdefs.h. */
6855: #include <string.h>
6856:
6857: _ACEOF
6858: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6859: $EGREP "memchr" >/dev/null 2>&1; then
6860: :
6861: else
6862: ac_cv_header_stdc=no
6863: fi
6864: rm -f conftest*
6865:
6866: fi
6867:
6868: if test $ac_cv_header_stdc = yes; then
6869: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6870: cat >conftest.$ac_ext <<_ACEOF
6871: /* confdefs.h. */
6872: _ACEOF
6873: cat confdefs.h >>conftest.$ac_ext
6874: cat >>conftest.$ac_ext <<_ACEOF
6875: /* end confdefs.h. */
6876: #include <stdlib.h>
6877:
6878: _ACEOF
6879: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6880: $EGREP "free" >/dev/null 2>&1; then
6881: :
6882: else
6883: ac_cv_header_stdc=no
6884: fi
6885: rm -f conftest*
6886:
6887: fi
1.15 paf 6888:
1.35 moko 6889: if test $ac_cv_header_stdc = yes; then
6890: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6891: if test "$cross_compiling" = yes; then
6892: :
6893: else
6894: cat >conftest.$ac_ext <<_ACEOF
6895: /* confdefs.h. */
6896: _ACEOF
6897: cat confdefs.h >>conftest.$ac_ext
6898: cat >>conftest.$ac_ext <<_ACEOF
6899: /* end confdefs.h. */
6900: #include <ctype.h>
6901: #if ((' ' & 0x0FF) == 0x020)
6902: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6903: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6904: #else
6905: # define ISLOWER(c) \
6906: (('a' <= (c) && (c) <= 'i') \
6907: || ('j' <= (c) && (c) <= 'r') \
6908: || ('s' <= (c) && (c) <= 'z'))
6909: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6910: #endif
1.15 paf 6911:
1.35 moko 6912: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6913: int
6914: main ()
6915: {
6916: int i;
6917: for (i = 0; i < 256; i++)
6918: if (XOR (islower (i), ISLOWER (i))
6919: || toupper (i) != TOUPPER (i))
6920: exit(2);
6921: exit (0);
6922: }
6923: _ACEOF
6924: rm -f conftest$ac_exeext
6925: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6926: (eval $ac_link) 2>&5
6927: ac_status=$?
6928: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6929: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6930: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6931: (eval $ac_try) 2>&5
6932: ac_status=$?
6933: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6934: (exit $ac_status); }; }; then
6935: :
6936: else
6937: echo "$as_me: program exited with status $ac_status" >&5
6938: echo "$as_me: failed program was:" >&5
6939: sed 's/^/| /' conftest.$ac_ext >&5
1.15 paf 6940:
1.35 moko 6941: ( exit $ac_status )
6942: ac_cv_header_stdc=no
6943: fi
6944: rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6945: fi
6946: fi
6947: fi
6948: echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6949: echo "${ECHO_T}$ac_cv_header_stdc" >&6
6950: if test $ac_cv_header_stdc = yes; then
1.15 paf 6951:
1.35 moko 6952: cat >>confdefs.h <<\_ACEOF
6953: #define STDC_HEADERS 1
6954: _ACEOF
1.15 paf 6955:
1.35 moko 6956: fi
1.15 paf 6957:
1.35 moko 6958: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
1.15 paf 6959:
6960:
6961:
6962:
6963:
6964:
6965:
6966:
6967:
1.35 moko 6968: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6969: inttypes.h stdint.h unistd.h
6970: do
6971: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6972: echo "$as_me:$LINENO: checking for $ac_header" >&5
6973: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6974: if eval "test \"\${$as_ac_Header+set}\" = set"; then
6975: echo $ECHO_N "(cached) $ECHO_C" >&6
1.15 paf 6976: else
6977: cat >conftest.$ac_ext <<_ACEOF
6978: /* confdefs.h. */
6979: _ACEOF
6980: cat confdefs.h >>conftest.$ac_ext
6981: cat >>conftest.$ac_ext <<_ACEOF
6982: /* end confdefs.h. */
1.35 moko 6983: $ac_includes_default
1.25 paf 6984:
1.35 moko 6985: #include <$ac_header>
1.15 paf 6986: _ACEOF
1.35 moko 6987: rm -f conftest.$ac_objext
6988: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6989: (eval $ac_compile) 2>conftest.er1
1.15 paf 6990: ac_status=$?
1.25 paf 6991: grep -v '^ *+' conftest.er1 >conftest.err
6992: rm -f conftest.er1
6993: cat conftest.err >&5
1.15 paf 6994: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6995: (exit $ac_status); } &&
1.25 paf 6996: { ac_try='test -z "$ac_c_werror_flag"
6997: || test ! -s conftest.err'
6998: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6999: (eval $ac_try) 2>&5
7000: ac_status=$?
7001: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002: (exit $ac_status); }; } &&
1.35 moko 7003: { ac_try='test -s conftest.$ac_objext'
1.15 paf 7004: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7005: (eval $ac_try) 2>&5
7006: ac_status=$?
7007: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008: (exit $ac_status); }; }; then
1.35 moko 7009: eval "$as_ac_Header=yes"
1.15 paf 7010: else
7011: echo "$as_me: failed program was:" >&5
7012: sed 's/^/| /' conftest.$ac_ext >&5
7013:
1.35 moko 7014: eval "$as_ac_Header=no"
7015: fi
7016: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 paf 7017: fi
1.35 moko 7018: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7019: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7020: if test `eval echo '${'$as_ac_Header'}'` = yes; then
7021: cat >>confdefs.h <<_ACEOF
7022: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7023: _ACEOF
7024:
1.15 paf 7025: fi
1.35 moko 7026:
7027: done
7028:
7029:
7030:
7031: for ac_header in dlfcn.h
7032: do
7033: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7034: echo "$as_me:$LINENO: checking for $ac_header" >&5
7035: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7036: if eval "test \"\${$as_ac_Header+set}\" = set"; then
1.15 paf 7037: echo $ECHO_N "(cached) $ECHO_C" >&6
7038: else
1.35 moko 7039: cat >conftest.$ac_ext <<_ACEOF
1.15 paf 7040: /* confdefs.h. */
7041: _ACEOF
7042: cat confdefs.h >>conftest.$ac_ext
7043: cat >>conftest.$ac_ext <<_ACEOF
7044: /* end confdefs.h. */
1.35 moko 7045: $ac_includes_default
1.15 paf 7046:
1.35 moko 7047: #include <$ac_header>
1.15 paf 7048: _ACEOF
1.35 moko 7049: rm -f conftest.$ac_objext
7050: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7051: (eval $ac_compile) 2>conftest.er1
1.15 paf 7052: ac_status=$?
1.25 paf 7053: grep -v '^ *+' conftest.er1 >conftest.err
7054: rm -f conftest.er1
7055: cat conftest.err >&5
1.15 paf 7056: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7057: (exit $ac_status); } &&
1.25 paf 7058: { ac_try='test -z "$ac_c_werror_flag"
7059: || test ! -s conftest.err'
7060: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7061: (eval $ac_try) 2>&5
7062: ac_status=$?
7063: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064: (exit $ac_status); }; } &&
1.35 moko 7065: { ac_try='test -s conftest.$ac_objext'
1.15 paf 7066: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7067: (eval $ac_try) 2>&5
7068: ac_status=$?
7069: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7070: (exit $ac_status); }; }; then
1.35 moko 7071: eval "$as_ac_Header=yes"
1.15 paf 7072: else
7073: echo "$as_me: failed program was:" >&5
7074: sed 's/^/| /' conftest.$ac_ext >&5
7075:
1.35 moko 7076: eval "$as_ac_Header=no"
1.15 paf 7077: fi
1.35 moko 7078: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 paf 7079: fi
1.35 moko 7080: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7081: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7082: if test `eval echo '${'$as_ac_Header'}'` = yes; then
7083: cat >>confdefs.h <<_ACEOF
7084: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.15 paf 7085: _ACEOF
1.25 paf 7086:
1.35 moko 7087: fi
7088:
7089: done
1.25 paf 7090:
7091:
7092:
1.35 moko 7093:
7094: func_stripname_cnf ()
1.15 paf 7095: {
1.35 moko 7096: case ${2} in
7097: .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
7098: *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
7099: esac
7100: } # func_stripname_cnf
7101:
7102:
7103:
7104:
7105:
7106: # Set options
7107: enable_dlopen=yes
1.36 ! moko 7108: enable_win32_dll=yes
1.35 moko 7109:
1.36 ! moko 7110: case $host in
! 7111: *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
! 7112: if test -n "$ac_tool_prefix"; then
! 7113: # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
! 7114: set dummy ${ac_tool_prefix}as; ac_word=$2
! 7115: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 7116: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 7117: if test "${ac_cv_prog_AS+set}" = set; then
! 7118: echo $ECHO_N "(cached) $ECHO_C" >&6
! 7119: else
! 7120: if test -n "$AS"; then
! 7121: ac_cv_prog_AS="$AS" # Let the user override the test.
! 7122: else
! 7123: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 7124: for as_dir in $PATH
! 7125: do
! 7126: IFS=$as_save_IFS
! 7127: test -z "$as_dir" && as_dir=.
! 7128: for ac_exec_ext in '' $ac_executable_extensions; do
! 7129: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 7130: ac_cv_prog_AS="${ac_tool_prefix}as"
! 7131: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 7132: break 2
! 7133: fi
! 7134: done
! 7135: done
1.35 moko 7136:
1.36 ! moko 7137: fi
! 7138: fi
! 7139: AS=$ac_cv_prog_AS
! 7140: if test -n "$AS"; then
! 7141: echo "$as_me:$LINENO: result: $AS" >&5
! 7142: echo "${ECHO_T}$AS" >&6
! 7143: else
! 7144: echo "$as_me:$LINENO: result: no" >&5
! 7145: echo "${ECHO_T}no" >&6
! 7146: fi
1.35 moko 7147:
1.36 ! moko 7148: fi
! 7149: if test -z "$ac_cv_prog_AS"; then
! 7150: ac_ct_AS=$AS
! 7151: # Extract the first word of "as", so it can be a program name with args.
! 7152: set dummy as; ac_word=$2
! 7153: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 7154: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 7155: if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
! 7156: echo $ECHO_N "(cached) $ECHO_C" >&6
! 7157: else
! 7158: if test -n "$ac_ct_AS"; then
! 7159: ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
! 7160: else
! 7161: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 7162: for as_dir in $PATH
! 7163: do
! 7164: IFS=$as_save_IFS
! 7165: test -z "$as_dir" && as_dir=.
! 7166: for ac_exec_ext in '' $ac_executable_extensions; do
! 7167: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 7168: ac_cv_prog_ac_ct_AS="as"
! 7169: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 7170: break 2
! 7171: fi
! 7172: done
! 7173: done
1.35 moko 7174:
1.36 ! moko 7175: test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
! 7176: fi
! 7177: fi
! 7178: ac_ct_AS=$ac_cv_prog_ac_ct_AS
! 7179: if test -n "$ac_ct_AS"; then
! 7180: echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
! 7181: echo "${ECHO_T}$ac_ct_AS" >&6
! 7182: else
! 7183: echo "$as_me:$LINENO: result: no" >&5
! 7184: echo "${ECHO_T}no" >&6
! 7185: fi
1.35 moko 7186:
1.36 ! moko 7187: AS=$ac_ct_AS
! 7188: else
! 7189: AS="$ac_cv_prog_AS"
! 7190: fi
1.15 paf 7191:
1.36 ! moko 7192: if test -n "$ac_tool_prefix"; then
! 7193: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
! 7194: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
! 7195: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 7196: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 7197: if test "${ac_cv_prog_DLLTOOL+set}" = set; then
! 7198: echo $ECHO_N "(cached) $ECHO_C" >&6
! 7199: else
! 7200: if test -n "$DLLTOOL"; then
! 7201: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
1.15 paf 7202: else
1.36 ! moko 7203: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 7204: for as_dir in $PATH
! 7205: do
! 7206: IFS=$as_save_IFS
! 7207: test -z "$as_dir" && as_dir=.
! 7208: for ac_exec_ext in '' $ac_executable_extensions; do
! 7209: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 7210: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
! 7211: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 7212: break 2
! 7213: fi
! 7214: done
! 7215: done
! 7216:
! 7217: fi
! 7218: fi
! 7219: DLLTOOL=$ac_cv_prog_DLLTOOL
! 7220: if test -n "$DLLTOOL"; then
! 7221: echo "$as_me:$LINENO: result: $DLLTOOL" >&5
! 7222: echo "${ECHO_T}$DLLTOOL" >&6
! 7223: else
! 7224: echo "$as_me:$LINENO: result: no" >&5
! 7225: echo "${ECHO_T}no" >&6
! 7226: fi
! 7227:
! 7228: fi
! 7229: if test -z "$ac_cv_prog_DLLTOOL"; then
! 7230: ac_ct_DLLTOOL=$DLLTOOL
! 7231: # Extract the first word of "dlltool", so it can be a program name with args.
! 7232: set dummy dlltool; ac_word=$2
! 7233: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 7234: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 7235: if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
! 7236: echo $ECHO_N "(cached) $ECHO_C" >&6
! 7237: else
! 7238: if test -n "$ac_ct_DLLTOOL"; then
! 7239: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
! 7240: else
! 7241: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 7242: for as_dir in $PATH
! 7243: do
! 7244: IFS=$as_save_IFS
! 7245: test -z "$as_dir" && as_dir=.
! 7246: for ac_exec_ext in '' $ac_executable_extensions; do
! 7247: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 7248: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
! 7249: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 7250: break 2
! 7251: fi
! 7252: done
! 7253: done
! 7254:
! 7255: test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
! 7256: fi
! 7257: fi
! 7258: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
! 7259: if test -n "$ac_ct_DLLTOOL"; then
! 7260: echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
! 7261: echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
! 7262: else
! 7263: echo "$as_me:$LINENO: result: no" >&5
! 7264: echo "${ECHO_T}no" >&6
! 7265: fi
! 7266:
! 7267: DLLTOOL=$ac_ct_DLLTOOL
! 7268: else
! 7269: DLLTOOL="$ac_cv_prog_DLLTOOL"
! 7270: fi
! 7271:
! 7272: if test -n "$ac_tool_prefix"; then
! 7273: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
! 7274: set dummy ${ac_tool_prefix}objdump; ac_word=$2
! 7275: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 7276: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 7277: if test "${ac_cv_prog_OBJDUMP+set}" = set; then
! 7278: echo $ECHO_N "(cached) $ECHO_C" >&6
! 7279: else
! 7280: if test -n "$OBJDUMP"; then
! 7281: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
! 7282: else
! 7283: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 7284: for as_dir in $PATH
! 7285: do
! 7286: IFS=$as_save_IFS
! 7287: test -z "$as_dir" && as_dir=.
! 7288: for ac_exec_ext in '' $ac_executable_extensions; do
! 7289: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 7290: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
! 7291: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 7292: break 2
! 7293: fi
! 7294: done
! 7295: done
! 7296:
! 7297: fi
! 7298: fi
! 7299: OBJDUMP=$ac_cv_prog_OBJDUMP
! 7300: if test -n "$OBJDUMP"; then
! 7301: echo "$as_me:$LINENO: result: $OBJDUMP" >&5
! 7302: echo "${ECHO_T}$OBJDUMP" >&6
! 7303: else
! 7304: echo "$as_me:$LINENO: result: no" >&5
! 7305: echo "${ECHO_T}no" >&6
! 7306: fi
! 7307:
! 7308: fi
! 7309: if test -z "$ac_cv_prog_OBJDUMP"; then
! 7310: ac_ct_OBJDUMP=$OBJDUMP
! 7311: # Extract the first word of "objdump", so it can be a program name with args.
! 7312: set dummy objdump; ac_word=$2
! 7313: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 7314: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 7315: if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
! 7316: echo $ECHO_N "(cached) $ECHO_C" >&6
! 7317: else
! 7318: if test -n "$ac_ct_OBJDUMP"; then
! 7319: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
! 7320: else
! 7321: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 7322: for as_dir in $PATH
! 7323: do
! 7324: IFS=$as_save_IFS
! 7325: test -z "$as_dir" && as_dir=.
! 7326: for ac_exec_ext in '' $ac_executable_extensions; do
! 7327: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 7328: ac_cv_prog_ac_ct_OBJDUMP="objdump"
! 7329: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 7330: break 2
! 7331: fi
! 7332: done
! 7333: done
! 7334:
! 7335: test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
! 7336: fi
! 7337: fi
! 7338: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
! 7339: if test -n "$ac_ct_OBJDUMP"; then
! 7340: echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
! 7341: echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
! 7342: else
! 7343: echo "$as_me:$LINENO: result: no" >&5
! 7344: echo "${ECHO_T}no" >&6
! 7345: fi
! 7346:
! 7347: OBJDUMP=$ac_ct_OBJDUMP
! 7348: else
! 7349: OBJDUMP="$ac_cv_prog_OBJDUMP"
! 7350: fi
! 7351:
! 7352: ;;
! 7353: esac
! 7354:
! 7355: test -z "$AS" && AS=as
! 7356:
! 7357:
! 7358:
! 7359:
! 7360:
! 7361: test -z "$DLLTOOL" && DLLTOOL=dlltool
! 7362:
! 7363:
! 7364:
! 7365:
! 7366:
! 7367: test -z "$OBJDUMP" && OBJDUMP=objdump
! 7368:
! 7369:
! 7370:
! 7371:
! 7372:
! 7373:
! 7374:
! 7375:
! 7376:
! 7377: # Check whether --enable-shared or --disable-shared was given.
! 7378: if test "${enable_shared+set}" = set; then
! 7379: enableval="$enable_shared"
! 7380: p=${PACKAGE-default}
! 7381: case $enableval in
! 7382: yes) enable_shared=yes ;;
! 7383: no) enable_shared=no ;;
! 7384: *)
! 7385: enable_shared=no
! 7386: # Look at the argument we got. We use all the common list separators.
! 7387: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
! 7388: for pkg in $enableval; do
! 7389: IFS="$lt_save_ifs"
! 7390: if test "X$pkg" = "X$p"; then
! 7391: enable_shared=yes
! 7392: fi
! 7393: done
! 7394: IFS="$lt_save_ifs"
! 7395: ;;
! 7396: esac
! 7397: else
! 7398: enable_shared=yes
! 7399: fi;
1.35 moko 7400:
7401:
7402:
7403:
7404:
7405:
7406:
1.15 paf 7407:
1.35 moko 7408: # Check whether --enable-static or --disable-static was given.
7409: if test "${enable_static+set}" = set; then
7410: enableval="$enable_static"
7411: p=${PACKAGE-default}
7412: case $enableval in
7413: yes) enable_static=yes ;;
7414: no) enable_static=no ;;
7415: *)
7416: enable_static=no
7417: # Look at the argument we got. We use all the common list separators.
7418: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7419: for pkg in $enableval; do
7420: IFS="$lt_save_ifs"
7421: if test "X$pkg" = "X$p"; then
7422: enable_static=yes
7423: fi
7424: done
7425: IFS="$lt_save_ifs"
7426: ;;
7427: esac
1.15 paf 7428: else
1.35 moko 7429: enable_static=yes
7430: fi;
7431:
7432:
7433:
7434:
7435:
7436:
7437:
7438:
7439:
7440: # Check whether --with-pic or --without-pic was given.
7441: if test "${with_pic+set}" = set; then
7442: withval="$with_pic"
7443: lt_p=${PACKAGE-default}
7444: case $withval in
7445: yes|no) pic_mode=$withval ;;
7446: *)
7447: pic_mode=default
7448: # Look at the argument we got. We use all the common list separators.
7449: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7450: for lt_pkg in $withval; do
7451: IFS="$lt_save_ifs"
7452: if test "X$lt_pkg" = "X$lt_p"; then
7453: pic_mode=yes
7454: fi
7455: done
7456: IFS="$lt_save_ifs"
7457: ;;
7458: esac
1.15 paf 7459: else
1.35 moko 7460: pic_mode=default
7461: fi;
7462:
7463: test -z "$pic_mode" && pic_mode=default
7464:
7465:
7466:
7467:
7468:
7469:
1.15 paf 7470:
1.35 moko 7471: # Check whether --enable-fast-install or --disable-fast-install was given.
7472: if test "${enable_fast_install+set}" = set; then
7473: enableval="$enable_fast_install"
7474: p=${PACKAGE-default}
7475: case $enableval in
7476: yes) enable_fast_install=yes ;;
7477: no) enable_fast_install=no ;;
7478: *)
7479: enable_fast_install=no
7480: # Look at the argument we got. We use all the common list separators.
7481: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7482: for pkg in $enableval; do
7483: IFS="$lt_save_ifs"
7484: if test "X$pkg" = "X$p"; then
7485: enable_fast_install=yes
7486: fi
7487: done
7488: IFS="$lt_save_ifs"
7489: ;;
7490: esac
1.15 paf 7491: else
1.35 moko 7492: enable_fast_install=yes
7493: fi;
7494:
7495:
7496:
7497:
7498:
7499:
7500:
7501:
7502:
7503:
7504: # This can be used to rebuild libtool when needed
7505: LIBTOOL_DEPS="$ltmain"
7506:
7507: # Always use our own libtool.
7508: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7509:
7510:
7511:
7512:
7513:
7514:
7515:
7516:
7517:
7518:
7519:
7520:
7521:
7522:
7523:
7524:
7525:
7526:
7527:
7528:
7529:
7530:
7531:
7532:
7533:
7534:
7535:
7536:
7537:
7538:
7539: test -z "$LN_S" && LN_S="ln -s"
7540:
7541:
7542:
7543:
7544:
7545:
7546:
7547:
7548:
7549:
7550:
7551:
7552:
1.15 paf 7553:
1.35 moko 7554: if test -n "${ZSH_VERSION+set}" ; then
7555: setopt NO_GLOB_SUBST
1.15 paf 7556: fi
1.35 moko 7557:
7558: echo "$as_me:$LINENO: checking for objdir" >&5
7559: echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7560: if test "${lt_cv_objdir+set}" = set; then
7561: echo $ECHO_N "(cached) $ECHO_C" >&6
7562: else
7563: rm -f .libs 2>/dev/null
7564: mkdir .libs 2>/dev/null
7565: if test -d .libs; then
7566: lt_cv_objdir=.libs
7567: else
7568: # MS-DOS does not allow filenames that begin with a dot.
7569: lt_cv_objdir=_libs
1.15 paf 7570: fi
1.35 moko 7571: rmdir .libs 2>/dev/null
7572: fi
7573: echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7574: echo "${ECHO_T}$lt_cv_objdir" >&6
7575: objdir=$lt_cv_objdir
1.15 paf 7576:
7577:
7578:
7579:
7580:
1.35 moko 7581: cat >>confdefs.h <<_ACEOF
7582: #define LT_OBJDIR "$lt_cv_objdir/"
7583: _ACEOF
1.15 paf 7584:
7585:
7586:
7587:
1.35 moko 7588: case $host_os in
7589: aix3*)
7590: # AIX sometimes has problems with the GCC collect2 program. For some
7591: # reason, if we set the COLLECT_NAMES environment variable, the problems
7592: # vanish in a puff of smoke.
7593: if test "X${COLLECT_NAMES+set}" != Xset; then
7594: COLLECT_NAMES=
7595: export COLLECT_NAMES
7596: fi
7597: ;;
7598: esac
1.15 paf 7599:
1.35 moko 7600: # Global variables:
7601: ofile=libtool
7602: can_build_shared=yes
1.15 paf 7603:
1.35 moko 7604: # All known linkers require a `.a' archive for static linking (except MSVC,
7605: # which needs '.lib').
7606: libext=a
1.15 paf 7607:
1.35 moko 7608: with_gnu_ld="$lt_cv_prog_gnu_ld"
1.15 paf 7609:
1.35 moko 7610: old_CC="$CC"
7611: old_CFLAGS="$CFLAGS"
1.15 paf 7612:
1.35 moko 7613: # Set sane defaults for various variables
7614: test -z "$CC" && CC=cc
7615: test -z "$LTCC" && LTCC=$CC
7616: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7617: test -z "$LD" && LD=ld
7618: test -z "$ac_objext" && ac_objext=o
1.15 paf 7619:
1.35 moko 7620: for cc_temp in $compiler""; do
7621: case $cc_temp in
7622: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7623: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7624: \-*) ;;
7625: *) break;;
1.15 paf 7626: esac
1.35 moko 7627: done
7628: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
1.15 paf 7629:
7630:
1.35 moko 7631: # Only perform the check for file, if the check method requires it
7632: test -z "$MAGIC_CMD" && MAGIC_CMD=file
7633: case $deplibs_check_method in
7634: file_magic*)
7635: if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7636: echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7637: echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7638: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7639: echo $ECHO_N "(cached) $ECHO_C" >&6
7640: else
7641: case $MAGIC_CMD in
7642: [\\/*] | ?:[\\/]*)
7643: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7644: ;;
7645: *)
7646: lt_save_MAGIC_CMD="$MAGIC_CMD"
7647: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7648: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7649: for ac_dir in $ac_dummy; do
7650: IFS="$lt_save_ifs"
7651: test -z "$ac_dir" && ac_dir=.
7652: if test -f $ac_dir/${ac_tool_prefix}file; then
7653: lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7654: if test -n "$file_magic_test_file"; then
7655: case $deplibs_check_method in
7656: "file_magic "*)
7657: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7658: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7659: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7660: $EGREP "$file_magic_regex" > /dev/null; then
7661: :
7662: else
7663: cat <<_LT_EOF 1>&2
1.15 paf 7664:
1.35 moko 7665: *** Warning: the command libtool uses to detect shared libraries,
7666: *** $file_magic_cmd, produces output that libtool cannot recognize.
7667: *** The result is that libtool may fail to recognize shared libraries
7668: *** as such. This will affect the creation of libtool libraries that
7669: *** depend on shared libraries, but programs linked with such libtool
7670: *** libraries will work regardless of this problem. Nevertheless, you
7671: *** may want to report the problem to your system manager and/or to
7672: *** bug-libtool@gnu.org
1.15 paf 7673:
1.35 moko 7674: _LT_EOF
7675: fi ;;
7676: esac
7677: fi
7678: break
7679: fi
7680: done
7681: IFS="$lt_save_ifs"
7682: MAGIC_CMD="$lt_save_MAGIC_CMD"
7683: ;;
7684: esac
7685: fi
1.15 paf 7686:
1.35 moko 7687: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7688: if test -n "$MAGIC_CMD"; then
7689: echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7690: echo "${ECHO_T}$MAGIC_CMD" >&6
1.15 paf 7691: else
1.35 moko 7692: echo "$as_me:$LINENO: result: no" >&5
7693: echo "${ECHO_T}no" >&6
7694: fi
7695:
1.15 paf 7696:
7697:
7698:
7699:
1.35 moko 7700: if test -z "$lt_cv_path_MAGIC_CMD"; then
7701: if test -n "$ac_tool_prefix"; then
7702: echo "$as_me:$LINENO: checking for file" >&5
7703: echo $ECHO_N "checking for file... $ECHO_C" >&6
7704: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7705: echo $ECHO_N "(cached) $ECHO_C" >&6
7706: else
7707: case $MAGIC_CMD in
7708: [\\/*] | ?:[\\/]*)
7709: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7710: ;;
7711: *)
7712: lt_save_MAGIC_CMD="$MAGIC_CMD"
7713: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7714: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7715: for ac_dir in $ac_dummy; do
7716: IFS="$lt_save_ifs"
7717: test -z "$ac_dir" && ac_dir=.
7718: if test -f $ac_dir/file; then
7719: lt_cv_path_MAGIC_CMD="$ac_dir/file"
7720: if test -n "$file_magic_test_file"; then
7721: case $deplibs_check_method in
7722: "file_magic "*)
7723: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7724: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7725: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7726: $EGREP "$file_magic_regex" > /dev/null; then
7727: :
7728: else
7729: cat <<_LT_EOF 1>&2
7730:
7731: *** Warning: the command libtool uses to detect shared libraries,
7732: *** $file_magic_cmd, produces output that libtool cannot recognize.
7733: *** The result is that libtool may fail to recognize shared libraries
7734: *** as such. This will affect the creation of libtool libraries that
7735: *** depend on shared libraries, but programs linked with such libtool
7736: *** libraries will work regardless of this problem. Nevertheless, you
7737: *** may want to report the problem to your system manager and/or to
7738: *** bug-libtool@gnu.org
1.15 paf 7739:
1.35 moko 7740: _LT_EOF
7741: fi ;;
7742: esac
7743: fi
7744: break
7745: fi
7746: done
7747: IFS="$lt_save_ifs"
7748: MAGIC_CMD="$lt_save_MAGIC_CMD"
7749: ;;
7750: esac
7751: fi
1.15 paf 7752:
1.35 moko 7753: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7754: if test -n "$MAGIC_CMD"; then
7755: echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7756: echo "${ECHO_T}$MAGIC_CMD" >&6
7757: else
7758: echo "$as_me:$LINENO: result: no" >&5
7759: echo "${ECHO_T}no" >&6
7760: fi
1.15 paf 7761:
7762:
1.35 moko 7763: else
7764: MAGIC_CMD=:
1.15 paf 7765: fi
7766: fi
1.35 moko 7767:
7768: fi
7769: ;;
7770: esac
7771:
7772: # Use C for the default configuration in the libtool script
7773:
7774: lt_save_CC="$CC"
7775: ac_ext=c
7776: ac_cpp='$CPP $CPPFLAGS'
7777: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7778: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7779: ac_compiler_gnu=$ac_cv_c_compiler_gnu
7780:
7781:
7782: # Source file extension for C test sources.
7783: ac_ext=c
7784:
7785: # Object file extension for compiled C test sources.
7786: objext=o
7787: objext=$objext
7788:
7789: # Code to be used in simple compile tests
7790: lt_simple_compile_test_code="int some_variable = 0;"
7791:
7792: # Code to be used in simple link tests
7793: lt_simple_link_test_code='int main(){return(0);}'
1.15 paf 7794:
7795:
7796:
7797:
7798:
7799:
7800:
1.35 moko 7801: # If no C compiler was specified, use CC.
7802: LTCC=${LTCC-"$CC"}
1.15 paf 7803:
1.35 moko 7804: # If no C compiler flags were specified, use CFLAGS.
7805: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1.15 paf 7806:
1.35 moko 7807: # Allow CC to be a program name with arguments.
7808: compiler=$CC
1.15 paf 7809:
1.35 moko 7810: # Save the default compiler, since it gets overwritten when the other
7811: # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7812: compiler_DEFAULT=$CC
1.15 paf 7813:
1.35 moko 7814: # save warnings/boilerplate of simple test code
7815: ac_outfile=conftest.$ac_objext
7816: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7817: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7818: _lt_compiler_boilerplate=`cat conftest.err`
7819: $RM conftest*
1.15 paf 7820:
1.35 moko 7821: ac_outfile=conftest.$ac_objext
7822: echo "$lt_simple_link_test_code" >conftest.$ac_ext
7823: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7824: _lt_linker_boilerplate=`cat conftest.err`
7825: $RM -r conftest*
1.15 paf 7826:
7827:
1.36 ! moko 7828: ## CAVEAT EMPTOR:
! 7829: ## There is no encapsulation within the following macros, do not change
! 7830: ## the running order or otherwise move them around unless you know exactly
! 7831: ## what you are doing...
1.35 moko 7832: if test -n "$compiler"; then
1.15 paf 7833:
1.35 moko 7834: lt_prog_compiler_no_builtin_flag=
1.15 paf 7835:
1.35 moko 7836: if test "$GCC" = yes; then
7837: case $cc_basename in
7838: nvcc*)
7839: lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7840: *)
7841: lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
1.15 paf 7842: esac
7843:
1.35 moko 7844: echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7845: echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7846: if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
1.15 paf 7847: echo $ECHO_N "(cached) $ECHO_C" >&6
7848: else
1.35 moko 7849: lt_cv_prog_compiler_rtti_exceptions=no
7850: ac_outfile=conftest.$ac_objext
7851: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7852: lt_compiler_flag="-fno-rtti -fno-exceptions"
7853: # Insert the option either (1) after the last *FLAGS variable, or
7854: # (2) before a word containing "conftest.", or (3) at the end.
7855: # Note that $ac_compile itself does not contain backslashes and begins
7856: # with a dollar sign (not a hyphen), so the echo should work correctly.
7857: # The option is referenced via a variable to avoid confusing sed.
7858: lt_compile=`echo "$ac_compile" | $SED \
7859: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7860: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7861: -e 's:$: $lt_compiler_flag:'`
7862: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7863: (eval "$lt_compile" 2>conftest.err)
7864: ac_status=$?
7865: cat conftest.err >&5
7866: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867: if (exit $ac_status) && test -s "$ac_outfile"; then
7868: # The compiler can only warn and ignore the option if not recognized
7869: # So say no if there are warnings other than the usual output.
7870: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7871: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7872: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7873: lt_cv_prog_compiler_rtti_exceptions=yes
7874: fi
7875: fi
7876: $RM conftest*
1.15 paf 7877:
7878: fi
1.35 moko 7879: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7880: echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
1.15 paf 7881:
1.35 moko 7882: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7883: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7884: else
7885: :
1.15 paf 7886: fi
7887:
1.35 moko 7888: fi
1.15 paf 7889:
7890:
7891:
7892:
7893:
7894:
1.35 moko 7895: lt_prog_compiler_wl=
7896: lt_prog_compiler_pic=
7897: lt_prog_compiler_static=
1.15 paf 7898:
7899:
1.35 moko 7900: if test "$GCC" = yes; then
7901: lt_prog_compiler_wl='-Wl,'
7902: lt_prog_compiler_static='-static'
1.15 paf 7903:
1.35 moko 7904: case $host_os in
7905: aix*)
7906: # All AIX code is PIC.
7907: if test "$host_cpu" = ia64; then
7908: # AIX 5 now supports IA64 processor
7909: lt_prog_compiler_static='-Bstatic'
7910: fi
7911: ;;
1.15 paf 7912:
1.35 moko 7913: amigaos*)
7914: case $host_cpu in
7915: powerpc)
7916: # see comment about AmigaOS4 .so support
7917: lt_prog_compiler_pic='-fPIC'
7918: ;;
7919: m68k)
7920: # FIXME: we need at least 68020 code to build shared libraries, but
7921: # adding the `-m68020' flag to GCC prevents building anything better,
7922: # like `-m68040'.
7923: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7924: ;;
7925: esac
7926: ;;
1.15 paf 7927:
1.35 moko 7928: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7929: # PIC is the default for these OSes.
7930: ;;
1.15 paf 7931:
1.35 moko 7932: mingw* | cygwin* | pw32* | os2* | cegcc*)
7933: # This hack is so that the source file can tell whether it is being
7934: # built for inclusion in a dll (and should export symbols for example).
7935: # Although the cygwin gcc ignores -fPIC, still need this for old-style
7936: # (--disable-auto-import) libraries
7937: lt_prog_compiler_pic='-DDLL_EXPORT'
7938: ;;
1.15 paf 7939:
1.35 moko 7940: darwin* | rhapsody*)
7941: # PIC is the default on this platform
7942: # Common symbols not allowed in MH_DYLIB files
7943: lt_prog_compiler_pic='-fno-common'
7944: ;;
1.15 paf 7945:
1.35 moko 7946: haiku*)
7947: # PIC is the default for Haiku.
7948: # The "-static" flag exists, but is broken.
7949: lt_prog_compiler_static=
7950: ;;
1.15 paf 7951:
1.35 moko 7952: hpux*)
7953: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7954: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7955: # sets the default TLS model and affects inlining.
7956: case $host_cpu in
7957: hppa*64*)
7958: # +Z the default
7959: ;;
7960: *)
7961: lt_prog_compiler_pic='-fPIC'
7962: ;;
7963: esac
7964: ;;
1.15 paf 7965:
1.35 moko 7966: interix[3-9]*)
7967: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7968: # Instead, we relocate shared libraries at runtime.
7969: ;;
1.15 paf 7970:
1.35 moko 7971: msdosdjgpp*)
7972: # Just because we use GCC doesn't mean we suddenly get shared libraries
7973: # on systems that don't support them.
7974: lt_prog_compiler_can_build_shared=no
7975: enable_shared=no
7976: ;;
1.15 paf 7977:
1.35 moko 7978: *nto* | *qnx*)
7979: # QNX uses GNU C++, but need to define -shared option too, otherwise
7980: # it will coredump.
7981: lt_prog_compiler_pic='-fPIC -shared'
7982: ;;
1.15 paf 7983:
1.35 moko 7984: sysv4*MP*)
7985: if test -d /usr/nec; then
7986: lt_prog_compiler_pic=-Kconform_pic
7987: fi
7988: ;;
1.15 paf 7989:
1.35 moko 7990: *)
7991: lt_prog_compiler_pic='-fPIC'
7992: ;;
7993: esac
1.15 paf 7994:
1.35 moko 7995: case $cc_basename in
7996: nvcc*) # Cuda Compiler Driver 2.2
7997: lt_prog_compiler_wl='-Xlinker '
7998: if test -n "$lt_prog_compiler_pic"; then
7999: lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8000: fi
8001: ;;
8002: esac
8003: else
8004: # PORTME Check for flag to pass linker flags through the system compiler.
8005: case $host_os in
8006: aix*)
8007: lt_prog_compiler_wl='-Wl,'
8008: if test "$host_cpu" = ia64; then
8009: # AIX 5 now supports IA64 processor
8010: lt_prog_compiler_static='-Bstatic'
8011: else
8012: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8013: fi
8014: ;;
1.15 paf 8015:
1.35 moko 8016: mingw* | cygwin* | pw32* | os2* | cegcc*)
8017: # This hack is so that the source file can tell whether it is being
8018: # built for inclusion in a dll (and should export symbols for example).
8019: lt_prog_compiler_pic='-DDLL_EXPORT'
8020: ;;
1.15 paf 8021:
1.35 moko 8022: hpux9* | hpux10* | hpux11*)
8023: lt_prog_compiler_wl='-Wl,'
8024: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8025: # not for PA HP-UX.
8026: case $host_cpu in
8027: hppa*64*|ia64*)
8028: # +Z the default
8029: ;;
8030: *)
8031: lt_prog_compiler_pic='+Z'
8032: ;;
8033: esac
8034: # Is there a better lt_prog_compiler_static that works with the bundled CC?
8035: lt_prog_compiler_static='${wl}-a ${wl}archive'
8036: ;;
1.15 paf 8037:
1.35 moko 8038: irix5* | irix6* | nonstopux*)
8039: lt_prog_compiler_wl='-Wl,'
8040: # PIC (with -KPIC) is the default.
8041: lt_prog_compiler_static='-non_shared'
8042: ;;
1.15 paf 8043:
1.35 moko 8044: linux* | k*bsd*-gnu | kopensolaris*-gnu)
8045: case $cc_basename in
8046: # old Intel for x86_64 which still supported -KPIC.
8047: ecc*)
8048: lt_prog_compiler_wl='-Wl,'
8049: lt_prog_compiler_pic='-KPIC'
8050: lt_prog_compiler_static='-static'
8051: ;;
8052: # icc used to be incompatible with GCC.
8053: # ICC 10 doesn't accept -KPIC any more.
8054: icc* | ifort*)
8055: lt_prog_compiler_wl='-Wl,'
8056: lt_prog_compiler_pic='-fPIC'
8057: lt_prog_compiler_static='-static'
8058: ;;
8059: # Lahey Fortran 8.1.
8060: lf95*)
8061: lt_prog_compiler_wl='-Wl,'
8062: lt_prog_compiler_pic='--shared'
8063: lt_prog_compiler_static='--static'
8064: ;;
8065: nagfor*)
8066: # NAG Fortran compiler
8067: lt_prog_compiler_wl='-Wl,-Wl,,'
8068: lt_prog_compiler_pic='-PIC'
8069: lt_prog_compiler_static='-Bstatic'
8070: ;;
8071: pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8072: # Portland Group compilers (*not* the Pentium gcc compiler,
8073: # which looks to be a dead project)
8074: lt_prog_compiler_wl='-Wl,'
8075: lt_prog_compiler_pic='-fpic'
8076: lt_prog_compiler_static='-Bstatic'
8077: ;;
8078: ccc*)
8079: lt_prog_compiler_wl='-Wl,'
8080: # All Alpha code is PIC.
8081: lt_prog_compiler_static='-non_shared'
8082: ;;
8083: xl* | bgxl* | bgf* | mpixl*)
8084: # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8085: lt_prog_compiler_wl='-Wl,'
8086: lt_prog_compiler_pic='-qpic'
8087: lt_prog_compiler_static='-qstaticlink'
8088: ;;
8089: *)
8090: case `$CC -V 2>&1 | sed 5q` in
8091: *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8092: # Sun Fortran 8.3 passes all unrecognized flags to the linker
8093: lt_prog_compiler_pic='-KPIC'
8094: lt_prog_compiler_static='-Bstatic'
8095: lt_prog_compiler_wl=''
8096: ;;
8097: *Sun\ F* | *Sun*Fortran*)
8098: lt_prog_compiler_pic='-KPIC'
8099: lt_prog_compiler_static='-Bstatic'
8100: lt_prog_compiler_wl='-Qoption ld '
8101: ;;
8102: *Sun\ C*)
8103: # Sun C 5.9
8104: lt_prog_compiler_pic='-KPIC'
8105: lt_prog_compiler_static='-Bstatic'
8106: lt_prog_compiler_wl='-Wl,'
8107: ;;
8108: *Intel*\ [CF]*Compiler*)
8109: lt_prog_compiler_wl='-Wl,'
8110: lt_prog_compiler_pic='-fPIC'
8111: lt_prog_compiler_static='-static'
8112: ;;
8113: *Portland\ Group*)
8114: lt_prog_compiler_wl='-Wl,'
8115: lt_prog_compiler_pic='-fpic'
8116: lt_prog_compiler_static='-Bstatic'
8117: ;;
8118: esac
8119: ;;
8120: esac
8121: ;;
1.15 paf 8122:
1.35 moko 8123: newsos6)
8124: lt_prog_compiler_pic='-KPIC'
8125: lt_prog_compiler_static='-Bstatic'
8126: ;;
1.15 paf 8127:
1.35 moko 8128: *nto* | *qnx*)
8129: # QNX uses GNU C++, but need to define -shared option too, otherwise
8130: # it will coredump.
8131: lt_prog_compiler_pic='-fPIC -shared'
8132: ;;
1.15 paf 8133:
1.35 moko 8134: osf3* | osf4* | osf5*)
8135: lt_prog_compiler_wl='-Wl,'
8136: # All OSF/1 code is PIC.
8137: lt_prog_compiler_static='-non_shared'
8138: ;;
1.15 paf 8139:
1.35 moko 8140: rdos*)
8141: lt_prog_compiler_static='-non_shared'
8142: ;;
1.15 paf 8143:
1.35 moko 8144: solaris*)
8145: lt_prog_compiler_pic='-KPIC'
8146: lt_prog_compiler_static='-Bstatic'
8147: case $cc_basename in
8148: f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8149: lt_prog_compiler_wl='-Qoption ld ';;
8150: *)
8151: lt_prog_compiler_wl='-Wl,';;
8152: esac
8153: ;;
1.15 paf 8154:
1.35 moko 8155: sunos4*)
8156: lt_prog_compiler_wl='-Qoption ld '
8157: lt_prog_compiler_pic='-PIC'
8158: lt_prog_compiler_static='-Bstatic'
8159: ;;
1.15 paf 8160:
1.35 moko 8161: sysv4 | sysv4.2uw2* | sysv4.3*)
8162: lt_prog_compiler_wl='-Wl,'
8163: lt_prog_compiler_pic='-KPIC'
8164: lt_prog_compiler_static='-Bstatic'
8165: ;;
1.15 paf 8166:
1.35 moko 8167: sysv4*MP*)
8168: if test -d /usr/nec ;then
8169: lt_prog_compiler_pic='-Kconform_pic'
8170: lt_prog_compiler_static='-Bstatic'
8171: fi
8172: ;;
1.15 paf 8173:
1.35 moko 8174: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8175: lt_prog_compiler_wl='-Wl,'
8176: lt_prog_compiler_pic='-KPIC'
8177: lt_prog_compiler_static='-Bstatic'
8178: ;;
1.15 paf 8179:
1.35 moko 8180: unicos*)
8181: lt_prog_compiler_wl='-Wl,'
8182: lt_prog_compiler_can_build_shared=no
8183: ;;
1.15 paf 8184:
1.35 moko 8185: uts4*)
8186: lt_prog_compiler_pic='-pic'
8187: lt_prog_compiler_static='-Bstatic'
8188: ;;
1.15 paf 8189:
1.35 moko 8190: *)
8191: lt_prog_compiler_can_build_shared=no
8192: ;;
8193: esac
8194: fi
1.15 paf 8195:
1.35 moko 8196: case $host_os in
8197: # For platforms which do not support PIC, -DPIC is meaningless:
8198: *djgpp*)
8199: lt_prog_compiler_pic=
8200: ;;
8201: *)
8202: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8203: ;;
8204: esac
1.15 paf 8205:
1.35 moko 8206: echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8207: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8208: if test "${lt_cv_prog_compiler_pic+set}" = set; then
8209: echo $ECHO_N "(cached) $ECHO_C" >&6
8210: else
8211: lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8212: fi
8213: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic" >&5
8214: echo "${ECHO_T}$lt_cv_prog_compiler_pic" >&6
8215: lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
1.15 paf 8216:
1.35 moko 8217: #
8218: # Check to make sure the PIC flag actually works.
8219: #
8220: if test -n "$lt_prog_compiler_pic"; then
8221: echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8222: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8223: if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8224: echo $ECHO_N "(cached) $ECHO_C" >&6
8225: else
8226: lt_cv_prog_compiler_pic_works=no
8227: ac_outfile=conftest.$ac_objext
8228: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8229: lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8230: # Insert the option either (1) after the last *FLAGS variable, or
8231: # (2) before a word containing "conftest.", or (3) at the end.
8232: # Note that $ac_compile itself does not contain backslashes and begins
8233: # with a dollar sign (not a hyphen), so the echo should work correctly.
8234: # The option is referenced via a variable to avoid confusing sed.
8235: lt_compile=`echo "$ac_compile" | $SED \
8236: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8237: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8238: -e 's:$: $lt_compiler_flag:'`
8239: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8240: (eval "$lt_compile" 2>conftest.err)
8241: ac_status=$?
8242: cat conftest.err >&5
8243: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244: if (exit $ac_status) && test -s "$ac_outfile"; then
8245: # The compiler can only warn and ignore the option if not recognized
8246: # So say no if there are warnings other than the usual output.
8247: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8248: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8249: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8250: lt_cv_prog_compiler_pic_works=yes
8251: fi
8252: fi
8253: $RM conftest*
1.15 paf 8254:
1.35 moko 8255: fi
8256: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8257: echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
1.15 paf 8258:
1.35 moko 8259: if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8260: case $lt_prog_compiler_pic in
8261: "" | " "*) ;;
8262: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8263: esac
8264: else
8265: lt_prog_compiler_pic=
8266: lt_prog_compiler_can_build_shared=no
8267: fi
1.15 paf 8268:
1.35 moko 8269: fi
1.15 paf 8270:
8271:
8272:
8273:
8274:
8275:
8276:
8277:
8278:
8279:
8280:
1.35 moko 8281: #
8282: # Check to make sure the static flag actually works.
8283: #
8284: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8285: echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8286: echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8287: if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8288: echo $ECHO_N "(cached) $ECHO_C" >&6
8289: else
8290: lt_cv_prog_compiler_static_works=no
8291: save_LDFLAGS="$LDFLAGS"
8292: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8293: echo "$lt_simple_link_test_code" > conftest.$ac_ext
8294: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8295: # The linker can only warn and ignore the option if not recognized
8296: # So say no if there are warnings
8297: if test -s conftest.err; then
8298: # Append any errors to the config.log.
8299: cat conftest.err 1>&5
8300: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8301: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8302: if diff conftest.exp conftest.er2 >/dev/null; then
8303: lt_cv_prog_compiler_static_works=yes
8304: fi
8305: else
8306: lt_cv_prog_compiler_static_works=yes
8307: fi
8308: fi
8309: $RM -r conftest*
8310: LDFLAGS="$save_LDFLAGS"
1.15 paf 8311:
1.35 moko 8312: fi
8313: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8314: echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
1.15 paf 8315:
1.35 moko 8316: if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8317: :
8318: else
8319: lt_prog_compiler_static=
8320: fi
1.15 paf 8321:
8322:
8323:
8324:
8325:
8326:
8327:
1.35 moko 8328: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8329: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8330: if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8331: echo $ECHO_N "(cached) $ECHO_C" >&6
8332: else
8333: lt_cv_prog_compiler_c_o=no
8334: $RM -r conftest 2>/dev/null
8335: mkdir conftest
8336: cd conftest
8337: mkdir out
8338: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8339:
8340: lt_compiler_flag="-o out/conftest2.$ac_objext"
8341: # Insert the option either (1) after the last *FLAGS variable, or
8342: # (2) before a word containing "conftest.", or (3) at the end.
8343: # Note that $ac_compile itself does not contain backslashes and begins
8344: # with a dollar sign (not a hyphen), so the echo should work correctly.
8345: lt_compile=`echo "$ac_compile" | $SED \
8346: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8347: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8348: -e 's:$: $lt_compiler_flag:'`
8349: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8350: (eval "$lt_compile" 2>out/conftest.err)
8351: ac_status=$?
8352: cat out/conftest.err >&5
8353: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8354: if (exit $ac_status) && test -s out/conftest2.$ac_objext
8355: then
8356: # The compiler can only warn and ignore the option if not recognized
8357: # So say no if there are warnings
8358: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8359: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8360: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8361: lt_cv_prog_compiler_c_o=yes
8362: fi
8363: fi
8364: chmod u+w . 2>&5
8365: $RM conftest*
8366: # SGI C++ compiler will create directory out/ii_files/ for
8367: # template instantiation
8368: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8369: $RM out/* && rmdir out
8370: cd ..
8371: $RM -r conftest
8372: $RM conftest*
1.15 paf 8373:
1.35 moko 8374: fi
8375: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8376: echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
1.15 paf 8377:
8378:
8379:
8380:
8381:
8382:
1.35 moko 8383: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8384: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8385: if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8386: echo $ECHO_N "(cached) $ECHO_C" >&6
8387: else
8388: lt_cv_prog_compiler_c_o=no
8389: $RM -r conftest 2>/dev/null
8390: mkdir conftest
8391: cd conftest
8392: mkdir out
8393: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8394:
8395: lt_compiler_flag="-o out/conftest2.$ac_objext"
8396: # Insert the option either (1) after the last *FLAGS variable, or
8397: # (2) before a word containing "conftest.", or (3) at the end.
8398: # Note that $ac_compile itself does not contain backslashes and begins
8399: # with a dollar sign (not a hyphen), so the echo should work correctly.
8400: lt_compile=`echo "$ac_compile" | $SED \
8401: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8402: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8403: -e 's:$: $lt_compiler_flag:'`
8404: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8405: (eval "$lt_compile" 2>out/conftest.err)
8406: ac_status=$?
8407: cat out/conftest.err >&5
8408: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409: if (exit $ac_status) && test -s out/conftest2.$ac_objext
8410: then
8411: # The compiler can only warn and ignore the option if not recognized
8412: # So say no if there are warnings
8413: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8414: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8415: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8416: lt_cv_prog_compiler_c_o=yes
8417: fi
8418: fi
8419: chmod u+w . 2>&5
8420: $RM conftest*
8421: # SGI C++ compiler will create directory out/ii_files/ for
8422: # template instantiation
8423: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8424: $RM out/* && rmdir out
8425: cd ..
8426: $RM -r conftest
8427: $RM conftest*
1.15 paf 8428:
1.35 moko 8429: fi
8430: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8431: echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
1.15 paf 8432:
8433:
8434:
8435:
1.35 moko 8436: hard_links="nottested"
8437: if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8438: # do not overwrite the value of need_locks provided by the user
8439: echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8440: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8441: hard_links=yes
8442: $RM conftest*
8443: ln conftest.a conftest.b 2>/dev/null && hard_links=no
8444: touch conftest.a
8445: ln conftest.a conftest.b 2>&5 || hard_links=no
8446: ln conftest.a conftest.b 2>/dev/null && hard_links=no
8447: echo "$as_me:$LINENO: result: $hard_links" >&5
8448: echo "${ECHO_T}$hard_links" >&6
8449: if test "$hard_links" = no; then
8450: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8451: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8452: need_locks=warn
8453: fi
8454: else
8455: need_locks=no
8456: fi
1.15 paf 8457:
8458:
8459:
8460:
8461:
8462:
1.35 moko 8463: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8464: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
1.15 paf 8465:
1.35 moko 8466: runpath_var=
8467: allow_undefined_flag=
8468: always_export_symbols=no
8469: archive_cmds=
8470: archive_expsym_cmds=
8471: compiler_needs_object=no
8472: enable_shared_with_static_runtimes=no
8473: export_dynamic_flag_spec=
8474: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8475: hardcode_automatic=no
8476: hardcode_direct=no
8477: hardcode_direct_absolute=no
8478: hardcode_libdir_flag_spec=
8479: hardcode_libdir_separator=
8480: hardcode_minus_L=no
8481: hardcode_shlibpath_var=unsupported
8482: inherit_rpath=no
8483: link_all_deplibs=unknown
8484: module_cmds=
8485: module_expsym_cmds=
8486: old_archive_from_new_cmds=
8487: old_archive_from_expsyms_cmds=
8488: thread_safe_flag_spec=
8489: whole_archive_flag_spec=
8490: # include_expsyms should be a list of space-separated symbols to be *always*
8491: # included in the symbol list
8492: include_expsyms=
8493: # exclude_expsyms can be an extended regexp of symbols to exclude
8494: # it will be wrapped by ` (' and `)$', so one must not match beginning or
8495: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8496: # as well as any symbol that contains `d'.
8497: exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8498: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8499: # platforms (ab)use it in PIC code, but their linkers get confused if
8500: # the symbol is explicitly referenced. Since portable code cannot
8501: # rely on this symbol name, it's probably fine to never include it in
8502: # preloaded symbol tables.
8503: # Exclude shared library initialization/finalization symbols.
8504: extract_expsyms_cmds=
1.15 paf 8505:
8506: case $host_os in
1.35 moko 8507: cygwin* | mingw* | pw32* | cegcc*)
8508: # FIXME: the MSVC++ port hasn't been tested in a loooong time
8509: # When not using gcc, we currently assume that we are using
8510: # Microsoft Visual C++.
8511: if test "$GCC" != yes; then
8512: with_gnu_ld=no
8513: fi
8514: ;;
8515: interix*)
8516: # we just hope/assume this is gcc and not c89 (= MSVC++)
8517: with_gnu_ld=yes
8518: ;;
8519: openbsd*)
8520: with_gnu_ld=no
1.15 paf 8521: ;;
8522: esac
8523:
1.35 moko 8524: ld_shlibs=yes
1.15 paf 8525:
1.35 moko 8526: # On some targets, GNU ld is compatible enough with the native linker
8527: # that we're better off using the native interface for both.
8528: lt_use_gnu_ld_interface=no
8529: if test "$with_gnu_ld" = yes; then
8530: case $host_os in
8531: aix*)
8532: # The AIX port of GNU ld has always aspired to compatibility
8533: # with the native linker. However, as the warning in the GNU ld
8534: # block says, versions before 2.19.5* couldn't really create working
8535: # shared libraries, regardless of the interface used.
8536: case `$LD -v 2>&1` in
8537: *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8538: *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8539: *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8540: *)
8541: lt_use_gnu_ld_interface=yes
8542: ;;
8543: esac
8544: ;;
8545: *)
8546: lt_use_gnu_ld_interface=yes
8547: ;;
8548: esac
8549: fi
1.15 paf 8550:
1.35 moko 8551: if test "$lt_use_gnu_ld_interface" = yes; then
8552: # If archive_cmds runs LD, not CC, wlarc should be empty
8553: wlarc='${wl}'
8554:
8555: # Set some defaults for GNU ld with shared library support. These
8556: # are reset later if shared libraries are not supported. Putting them
8557: # here allows them to be overridden if necessary.
8558: runpath_var=LD_RUN_PATH
8559: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8560: export_dynamic_flag_spec='${wl}--export-dynamic'
8561: # ancient GNU ld didn't support --whole-archive et. al.
8562: if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8563: whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8564: else
8565: whole_archive_flag_spec=
8566: fi
8567: supports_anon_versioning=no
8568: case `$LD -v 2>&1` in
8569: *GNU\ gold*) supports_anon_versioning=yes ;;
8570: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8571: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8572: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8573: *\ 2.11.*) ;; # other 2.11 versions
8574: *) supports_anon_versioning=yes ;;
8575: esac
1.15 paf 8576:
1.35 moko 8577: # See if GNU ld supports shared libraries.
8578: case $host_os in
8579: aix[3-9]*)
8580: # On AIX/PPC, the GNU linker is very broken
8581: if test "$host_cpu" != ia64; then
8582: ld_shlibs=no
8583: cat <<_LT_EOF 1>&2
1.15 paf 8584:
1.35 moko 8585: *** Warning: the GNU linker, at least up to release 2.19, is reported
8586: *** to be unable to reliably create shared libraries on AIX.
8587: *** Therefore, libtool is disabling shared libraries support. If you
8588: *** really care for shared libraries, you may want to install binutils
8589: *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8590: *** You will then need to restart the configuration process.
1.15 paf 8591:
1.35 moko 8592: _LT_EOF
8593: fi
8594: ;;
1.15 paf 8595:
1.35 moko 8596: amigaos*)
8597: case $host_cpu in
8598: powerpc)
8599: # see comment about AmigaOS4 .so support
8600: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8601: archive_expsym_cmds=''
8602: ;;
8603: m68k)
8604: 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)'
8605: hardcode_libdir_flag_spec='-L$libdir'
8606: hardcode_minus_L=yes
8607: ;;
8608: esac
8609: ;;
1.15 paf 8610:
1.35 moko 8611: beos*)
8612: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8613: allow_undefined_flag=unsupported
8614: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8615: # support --undefined. This deserves some investigation. FIXME
8616: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8617: else
8618: ld_shlibs=no
8619: fi
8620: ;;
1.15 paf 8621:
1.35 moko 8622: cygwin* | mingw* | pw32* | cegcc*)
8623: # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8624: # as there is no search path for DLLs.
8625: hardcode_libdir_flag_spec='-L$libdir'
8626: export_dynamic_flag_spec='${wl}--export-all-symbols'
8627: allow_undefined_flag=unsupported
8628: always_export_symbols=no
8629: enable_shared_with_static_runtimes=yes
8630: 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'
8631: exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8632:
8633: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8634: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8635: # If the export-symbols file already is a .def file (1st line
8636: # is EXPORTS), use it as is; otherwise, prepend...
8637: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8638: cp $export_symbols $output_objdir/$soname.def;
8639: else
8640: echo EXPORTS > $output_objdir/$soname.def;
8641: cat $export_symbols >> $output_objdir/$soname.def;
8642: fi~
8643: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8644: else
8645: ld_shlibs=no
8646: fi
8647: ;;
1.15 paf 8648:
1.35 moko 8649: haiku*)
8650: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8651: link_all_deplibs=yes
8652: ;;
1.15 paf 8653:
1.35 moko 8654: interix[3-9]*)
8655: hardcode_direct=no
8656: hardcode_shlibpath_var=no
8657: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8658: export_dynamic_flag_spec='${wl}-E'
8659: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8660: # Instead, shared libraries are loaded at an image base (0x10000000 by
8661: # default) and relocated if they conflict, which is a slow very memory
8662: # consuming and fragmenting process. To avoid this, we pick a random,
8663: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8664: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8665: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8666: 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'
8667: ;;
1.15 paf 8668:
1.35 moko 8669: gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8670: tmp_diet=no
8671: if test "$host_os" = linux-dietlibc; then
8672: case $cc_basename in
8673: diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8674: esac
8675: fi
8676: if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8677: && test "$tmp_diet" = no
8678: then
8679: tmp_addflag=' $pic_flag'
8680: tmp_sharedflag='-shared'
8681: case $cc_basename,$host_cpu in
8682: pgcc*) # Portland Group C compiler
8683: 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'
8684: tmp_addflag=' $pic_flag'
8685: ;;
8686: pgf77* | pgf90* | pgf95* | pgfortran*)
8687: # Portland Group f77 and f90 compilers
8688: 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'
8689: tmp_addflag=' $pic_flag -Mnomain' ;;
8690: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8691: tmp_addflag=' -i_dynamic' ;;
8692: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8693: tmp_addflag=' -i_dynamic -nofor_main' ;;
8694: ifc* | ifort*) # Intel Fortran compiler
8695: tmp_addflag=' -nofor_main' ;;
8696: lf95*) # Lahey Fortran 8.1
8697: whole_archive_flag_spec=
8698: tmp_sharedflag='--shared' ;;
8699: xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8700: tmp_sharedflag='-qmkshrobj'
8701: tmp_addflag= ;;
8702: nvcc*) # Cuda Compiler Driver 2.2
8703: 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'
8704: compiler_needs_object=yes
8705: ;;
8706: esac
8707: case `$CC -V 2>&1 | sed 5q` in
8708: *Sun\ C*) # Sun C 5.9
8709: 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'
8710: compiler_needs_object=yes
8711: tmp_sharedflag='-G' ;;
8712: *Sun\ F*) # Sun Fortran 8.3
8713: tmp_sharedflag='-G' ;;
8714: esac
8715: archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1.15 paf 8716:
1.35 moko 8717: if test "x$supports_anon_versioning" = xyes; then
8718: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8719: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8720: echo "local: *; };" >> $output_objdir/$libname.ver~
8721: $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8722: fi
8723:
8724: case $cc_basename in
8725: xlf* | bgf* | bgxlf* | mpixlf*)
8726: # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8727: whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8728: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8729: archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8730: if test "x$supports_anon_versioning" = xyes; then
8731: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8732: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8733: echo "local: *; };" >> $output_objdir/$libname.ver~
8734: $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8735: fi
8736: ;;
8737: esac
8738: else
8739: ld_shlibs=no
8740: fi
8741: ;;
1.15 paf 8742:
1.35 moko 8743: netbsd*)
8744: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8745: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8746: wlarc=
8747: else
8748: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8749: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8750: fi
8751: ;;
1.15 paf 8752:
1.35 moko 8753: solaris*)
8754: if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8755: ld_shlibs=no
8756: cat <<_LT_EOF 1>&2
1.15 paf 8757:
1.35 moko 8758: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8759: *** create shared libraries on Solaris systems. Therefore, libtool
8760: *** is disabling shared libraries support. We urge you to upgrade GNU
8761: *** binutils to release 2.9.1 or newer. Another option is to modify
8762: *** your PATH or compiler configuration so that the native linker is
8763: *** used, and then restart.
1.15 paf 8764:
1.35 moko 8765: _LT_EOF
8766: elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8767: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8768: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8769: else
8770: ld_shlibs=no
8771: fi
8772: ;;
1.15 paf 8773:
1.35 moko 8774: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8775: case `$LD -v 2>&1` in
8776: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8777: ld_shlibs=no
8778: cat <<_LT_EOF 1>&2
1.31 misha 8779:
1.35 moko 8780: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8781: *** reliably create shared libraries on SCO systems. Therefore, libtool
8782: *** is disabling shared libraries support. We urge you to upgrade GNU
8783: *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8784: *** your PATH or compiler configuration so that the native linker is
8785: *** used, and then restart.
1.31 misha 8786:
1.35 moko 8787: _LT_EOF
8788: ;;
8789: *)
8790: # For security reasons, it is highly recommended that you always
8791: # use absolute paths for naming shared libraries, and exclude the
8792: # DT_RUNPATH tag from executables and libraries. But doing so
8793: # requires that you compile everything twice, which is a pain.
8794: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8795: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8796: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8797: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8798: else
8799: ld_shlibs=no
8800: fi
8801: ;;
8802: esac
8803: ;;
1.31 misha 8804:
1.35 moko 8805: sunos4*)
8806: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8807: wlarc=
8808: hardcode_direct=yes
8809: hardcode_shlibpath_var=no
8810: ;;
1.15 paf 8811:
1.35 moko 8812: *)
8813: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8814: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8815: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8816: else
8817: ld_shlibs=no
8818: fi
8819: ;;
8820: esac
1.15 paf 8821:
1.35 moko 8822: if test "$ld_shlibs" = no; then
8823: runpath_var=
8824: hardcode_libdir_flag_spec=
8825: export_dynamic_flag_spec=
8826: whole_archive_flag_spec=
8827: fi
8828: else
8829: # PORTME fill in a description of your system's linker (not GNU ld)
8830: case $host_os in
8831: aix3*)
8832: allow_undefined_flag=unsupported
8833: always_export_symbols=yes
8834: 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'
8835: # Note: this linker hardcodes the directories in LIBPATH if there
8836: # are no directories specified by -L.
8837: hardcode_minus_L=yes
8838: if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8839: # Neither direct hardcoding nor static linking is supported with a
8840: # broken collect2.
8841: hardcode_direct=unsupported
8842: fi
8843: ;;
1.15 paf 8844:
1.35 moko 8845: aix[4-9]*)
8846: if test "$host_cpu" = ia64; then
8847: # On IA64, the linker does run time linking by default, so we don't
8848: # have to do anything special.
8849: aix_use_runtimelinking=no
8850: exp_sym_flag='-Bexport'
8851: no_entry_flag=""
8852: else
8853: # If we're using GNU nm, then we don't want the "-C" option.
8854: # -C means demangle to AIX nm, but means don't demangle with GNU nm
8855: # Also, AIX nm treats weak defined symbols like other global
8856: # defined symbols, whereas GNU nm marks them as "W".
8857: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8858: 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'
8859: else
8860: 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'
8861: fi
8862: aix_use_runtimelinking=no
1.15 paf 8863:
1.35 moko 8864: # Test if we are trying to use run time linking or normal
8865: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8866: # need to do runtime linking.
8867: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8868: for ld_flag in $LDFLAGS; do
8869: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8870: aix_use_runtimelinking=yes
8871: break
8872: fi
8873: done
8874: ;;
8875: esac
1.15 paf 8876:
1.35 moko 8877: exp_sym_flag='-bexport'
8878: no_entry_flag='-bnoentry'
8879: fi
1.23 paf 8880:
1.35 moko 8881: # When large executables or shared objects are built, AIX ld can
8882: # have problems creating the table of contents. If linking a library
8883: # or program results in "error TOC overflow" add -mminimal-toc to
8884: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8885: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8886:
8887: archive_cmds=''
8888: hardcode_direct=yes
8889: hardcode_direct_absolute=yes
8890: hardcode_libdir_separator=':'
8891: link_all_deplibs=yes
8892: file_list_spec='${wl}-f,'
8893:
8894: if test "$GCC" = yes; then
8895: case $host_os in aix4.[012]|aix4.[012].*)
8896: # We only want to do this on AIX 4.2 and lower, the check
8897: # below for broken collect2 doesn't work under 4.3+
8898: collect2name=`${CC} -print-prog-name=collect2`
8899: if test -f "$collect2name" &&
8900: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8901: then
8902: # We have reworked collect2
8903: :
8904: else
8905: # We have old collect2
8906: hardcode_direct=unsupported
8907: # It fails to find uninstalled libraries when the uninstalled
8908: # path is not listed in the libpath. Setting hardcode_minus_L
8909: # to unsupported forces relinking
8910: hardcode_minus_L=yes
8911: hardcode_libdir_flag_spec='-L$libdir'
8912: hardcode_libdir_separator=
8913: fi
8914: ;;
8915: esac
8916: shared_flag='-shared'
8917: if test "$aix_use_runtimelinking" = yes; then
8918: shared_flag="$shared_flag "'${wl}-G'
8919: fi
8920: else
8921: # not using gcc
8922: if test "$host_cpu" = ia64; then
8923: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8924: # chokes on -Wl,-G. The following line is correct:
8925: shared_flag='-G'
8926: else
8927: if test "$aix_use_runtimelinking" = yes; then
8928: shared_flag='${wl}-G'
8929: else
8930: shared_flag='${wl}-bM:SRE'
8931: fi
8932: fi
8933: fi
1.15 paf 8934:
1.35 moko 8935: export_dynamic_flag_spec='${wl}-bexpall'
8936: # It seems that -bexpall does not export symbols beginning with
8937: # underscore (_), so it is better to generate a list of symbols to export.
8938: always_export_symbols=yes
8939: if test "$aix_use_runtimelinking" = yes; then
8940: # Warning - without using the other runtime loading flags (-brtl),
8941: # -berok will link without error, but may produce a broken library.
8942: allow_undefined_flag='-berok'
8943: # Determine the default libpath from the value encoded in an
8944: # empty executable.
8945: if test "${lt_cv_aix_libpath+set}" = set; then
8946: aix_libpath=$lt_cv_aix_libpath
8947: else
8948: if test "${lt_cv_aix_libpath_+set}" = set; then
1.15 paf 8949: echo $ECHO_N "(cached) $ECHO_C" >&6
8950: else
1.35 moko 8951: cat >conftest.$ac_ext <<_ACEOF
1.15 paf 8952: /* confdefs.h. */
8953: _ACEOF
8954: cat confdefs.h >>conftest.$ac_ext
8955: cat >>conftest.$ac_ext <<_ACEOF
8956: /* end confdefs.h. */
1.35 moko 8957:
8958: int
8959: main ()
8960: {
8961:
8962: ;
8963: return 0;
8964: }
1.15 paf 8965: _ACEOF
1.35 moko 8966: rm -f conftest.$ac_objext conftest$ac_exeext
8967: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8968: (eval $ac_link) 2>conftest.er1
1.15 paf 8969: ac_status=$?
1.25 paf 8970: grep -v '^ *+' conftest.er1 >conftest.err
8971: rm -f conftest.er1
8972: cat conftest.err >&5
1.15 paf 8973: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974: (exit $ac_status); } &&
1.25 paf 8975: { ac_try='test -z "$ac_c_werror_flag"
8976: || test ! -s conftest.err'
8977: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8978: (eval $ac_try) 2>&5
8979: ac_status=$?
8980: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981: (exit $ac_status); }; } &&
1.35 moko 8982: { ac_try='test -s conftest$ac_exeext'
1.15 paf 8983: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8984: (eval $ac_try) 2>&5
8985: ac_status=$?
8986: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987: (exit $ac_status); }; }; then
1.35 moko 8988:
8989: lt_aix_libpath_sed='
8990: /Import File Strings/,/^$/ {
8991: /^0/ {
8992: s/^0 *\([^ ]*\) *$/\1/
8993: p
8994: }
8995: }'
8996: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8997: # Check for a 64-bit object if we didn't find anything.
8998: if test -z "$lt_cv_aix_libpath_"; then
8999: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9000: fi
1.15 paf 9001: else
9002: echo "$as_me: failed program was:" >&5
9003: sed 's/^/| /' conftest.$ac_ext >&5
9004:
9005: fi
1.35 moko 9006: rm -f conftest.err conftest.$ac_objext \
9007: conftest$ac_exeext conftest.$ac_ext
9008: if test -z "$lt_cv_aix_libpath_"; then
9009: lt_cv_aix_libpath_="/usr/lib:/lib"
9010: fi
9011:
9012: fi
9013:
9014: aix_libpath=$lt_cv_aix_libpath_
9015: fi
1.15 paf 9016:
1.35 moko 9017: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9018: 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"
9019: else
9020: if test "$host_cpu" = ia64; then
9021: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9022: allow_undefined_flag="-z nodefs"
9023: 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"
9024: else
9025: # Determine the default libpath from the value encoded in an
9026: # empty executable.
9027: if test "${lt_cv_aix_libpath+set}" = set; then
9028: aix_libpath=$lt_cv_aix_libpath
9029: else
9030: if test "${lt_cv_aix_libpath_+set}" = set; then
9031: echo $ECHO_N "(cached) $ECHO_C" >&6
9032: else
9033: cat >conftest.$ac_ext <<_ACEOF
9034: /* confdefs.h. */
1.15 paf 9035: _ACEOF
9036: cat confdefs.h >>conftest.$ac_ext
9037: cat >>conftest.$ac_ext <<_ACEOF
9038: /* end confdefs.h. */
1.35 moko 9039:
9040: int
9041: main ()
9042: {
9043:
9044: ;
9045: return 0;
9046: }
1.15 paf 9047: _ACEOF
1.35 moko 9048: rm -f conftest.$ac_objext conftest$ac_exeext
9049: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9050: (eval $ac_link) 2>conftest.er1
1.15 paf 9051: ac_status=$?
9052: grep -v '^ *+' conftest.er1 >conftest.err
9053: rm -f conftest.er1
9054: cat conftest.err >&5
9055: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.35 moko 9056: (exit $ac_status); } &&
9057: { ac_try='test -z "$ac_c_werror_flag"
9058: || test ! -s conftest.err'
9059: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9060: (eval $ac_try) 2>&5
9061: ac_status=$?
9062: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063: (exit $ac_status); }; } &&
9064: { ac_try='test -s conftest$ac_exeext'
9065: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9066: (eval $ac_try) 2>&5
9067: ac_status=$?
9068: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069: (exit $ac_status); }; }; then
9070:
9071: lt_aix_libpath_sed='
9072: /Import File Strings/,/^$/ {
9073: /^0/ {
9074: s/^0 *\([^ ]*\) *$/\1/
9075: p
9076: }
9077: }'
9078: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9079: # Check for a 64-bit object if we didn't find anything.
9080: if test -z "$lt_cv_aix_libpath_"; then
9081: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1.15 paf 9082: fi
9083: else
9084: echo "$as_me: failed program was:" >&5
9085: sed 's/^/| /' conftest.$ac_ext >&5
9086:
9087: fi
1.35 moko 9088: rm -f conftest.err conftest.$ac_objext \
9089: conftest$ac_exeext conftest.$ac_ext
9090: if test -z "$lt_cv_aix_libpath_"; then
9091: lt_cv_aix_libpath_="/usr/lib:/lib"
9092: fi
9093:
9094: fi
9095:
9096: aix_libpath=$lt_cv_aix_libpath_
9097: fi
9098:
9099: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9100: # Warning - without using the other run time loading flags,
9101: # -berok will link without error, but may produce a broken library.
9102: no_undefined_flag=' ${wl}-bernotok'
9103: allow_undefined_flag=' ${wl}-berok'
9104: if test "$with_gnu_ld" = yes; then
9105: # We only use this code for GNU lds that support --whole-archive.
9106: whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9107: else
9108: # Exported symbols can be pulled into shared objects from archives
9109: whole_archive_flag_spec='$convenience'
9110: fi
9111: archive_cmds_need_lc=yes
9112: # This is similar to how AIX traditionally builds its shared libraries.
9113: 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'
9114: fi
9115: fi
9116: ;;
9117:
9118: amigaos*)
9119: case $host_cpu in
9120: powerpc)
9121: # see comment about AmigaOS4 .so support
9122: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9123: archive_expsym_cmds=''
9124: ;;
9125: m68k)
9126: 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)'
9127: hardcode_libdir_flag_spec='-L$libdir'
9128: hardcode_minus_L=yes
9129: ;;
9130: esac
9131: ;;
9132:
9133: bsdi[45]*)
9134: export_dynamic_flag_spec=-rdynamic
9135: ;;
9136:
9137: cygwin* | mingw* | pw32* | cegcc*)
9138: # When not using gcc, we currently assume that we are using
9139: # Microsoft Visual C++.
9140: # hardcode_libdir_flag_spec is actually meaningless, as there is
9141: # no search path for DLLs.
9142: case $cc_basename in
9143: cl*)
9144: # Native MSVC
9145: hardcode_libdir_flag_spec=' '
9146: allow_undefined_flag=unsupported
9147: always_export_symbols=yes
9148: file_list_spec='@'
9149: # Tell ltmain to make .lib files, not .a files.
9150: libext=lib
9151: # Tell ltmain to make .dll files, not .so files.
9152: shrext_cmds=".dll"
9153: # FIXME: Setting linknames here is a bad hack.
9154: archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9155: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9156: sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9157: else
9158: sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9159: fi~
9160: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9161: linknames='
9162: # The linker will not automatically build a static lib if we build a DLL.
9163: # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9164: enable_shared_with_static_runtimes=yes
9165: exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9166: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9167: # Don't use ranlib
9168: old_postinstall_cmds='chmod 644 $oldlib'
9169: postlink_cmds='lt_outputfile="@OUTPUT@"~
9170: lt_tool_outputfile="@TOOL_OUTPUT@"~
9171: case $lt_outputfile in
9172: *.exe|*.EXE) ;;
9173: *)
9174: lt_outputfile="$lt_outputfile.exe"
9175: lt_tool_outputfile="$lt_tool_outputfile.exe"
9176: ;;
9177: esac~
9178: if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9179: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9180: $RM "$lt_outputfile.manifest";
9181: fi'
9182: ;;
9183: *)
9184: # Assume MSVC wrapper
9185: hardcode_libdir_flag_spec=' '
9186: allow_undefined_flag=unsupported
9187: # Tell ltmain to make .lib files, not .a files.
9188: libext=lib
9189: # Tell ltmain to make .dll files, not .so files.
9190: shrext_cmds=".dll"
9191: # FIXME: Setting linknames here is a bad hack.
9192: archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9193: # The linker will automatically build a .lib file if we build a DLL.
9194: old_archive_from_new_cmds='true'
9195: # FIXME: Should let the user specify the lib program.
9196: old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9197: enable_shared_with_static_runtimes=yes
9198: ;;
9199: esac
9200: ;;
9201:
9202: darwin* | rhapsody*)
9203:
9204:
9205: archive_cmds_need_lc=no
9206: hardcode_direct=no
9207: hardcode_automatic=yes
9208: hardcode_shlibpath_var=unsupported
9209: if test "$lt_cv_ld_force_load" = "yes"; then
9210: 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\"`'
9211:
9212: else
9213: whole_archive_flag_spec=''
9214: fi
9215: link_all_deplibs=yes
9216: allow_undefined_flag="$_lt_dar_allow_undefined"
9217: case $cc_basename in
9218: ifort*) _lt_dar_can_shared=yes ;;
9219: *) _lt_dar_can_shared=$GCC ;;
9220: esac
9221: if test "$_lt_dar_can_shared" = "yes"; then
9222: output_verbose_link_cmd=func_echo_all
9223: archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9224: module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9225: 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}"
9226: 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}"
9227:
9228: else
9229: ld_shlibs=no
9230: fi
9231:
9232: ;;
9233:
9234: dgux*)
9235: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9236: hardcode_libdir_flag_spec='-L$libdir'
9237: hardcode_shlibpath_var=no
9238: ;;
9239:
9240: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9241: # support. Future versions do this automatically, but an explicit c++rt0.o
9242: # does not break anything, and helps significantly (at the cost of a little
9243: # extra space).
9244: freebsd2.2*)
9245: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9246: hardcode_libdir_flag_spec='-R$libdir'
9247: hardcode_direct=yes
9248: hardcode_shlibpath_var=no
9249: ;;
9250:
9251: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9252: freebsd2.*)
9253: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9254: hardcode_direct=yes
9255: hardcode_minus_L=yes
9256: hardcode_shlibpath_var=no
9257: ;;
9258:
9259: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9260: freebsd* | dragonfly*)
9261: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9262: hardcode_libdir_flag_spec='-R$libdir'
9263: hardcode_direct=yes
9264: hardcode_shlibpath_var=no
9265: ;;
9266:
9267: hpux9*)
9268: if test "$GCC" = yes; then
9269: 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'
9270: else
9271: 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'
9272: fi
9273: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9274: hardcode_libdir_separator=:
9275: hardcode_direct=yes
9276:
9277: # hardcode_minus_L: Not really in the search PATH,
9278: # but as the default location of the library.
9279: hardcode_minus_L=yes
9280: export_dynamic_flag_spec='${wl}-E'
9281: ;;
9282:
9283: hpux10*)
9284: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9285: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9286: else
9287: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9288: fi
9289: if test "$with_gnu_ld" = no; then
9290: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9291: hardcode_libdir_separator=:
9292: hardcode_direct=yes
9293: hardcode_direct_absolute=yes
9294: export_dynamic_flag_spec='${wl}-E'
9295: # hardcode_minus_L: Not really in the search PATH,
9296: # but as the default location of the library.
9297: hardcode_minus_L=yes
9298: fi
9299: ;;
9300:
9301: hpux11*)
9302: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9303: case $host_cpu in
9304: hppa*64*)
9305: archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9306: ;;
9307: ia64*)
9308: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9309: ;;
9310: *)
9311: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9312: ;;
9313: esac
9314: else
9315: case $host_cpu in
9316: hppa*64*)
9317: archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9318: ;;
9319: ia64*)
9320: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9321: ;;
9322: *)
1.15 paf 9323:
1.35 moko 9324: # Older versions of the 11.00 compiler do not understand -b yet
9325: # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9326: echo "$as_me:$LINENO: checking if $CC understands -b" >&5
9327: echo $ECHO_N "checking if $CC understands -b... $ECHO_C" >&6
9328: if test "${lt_cv_prog_compiler__b+set}" = set; then
1.15 paf 9329: echo $ECHO_N "(cached) $ECHO_C" >&6
9330: else
1.35 moko 9331: lt_cv_prog_compiler__b=no
9332: save_LDFLAGS="$LDFLAGS"
9333: LDFLAGS="$LDFLAGS -b"
9334: echo "$lt_simple_link_test_code" > conftest.$ac_ext
9335: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9336: # The linker can only warn and ignore the option if not recognized
9337: # So say no if there are warnings
9338: if test -s conftest.err; then
9339: # Append any errors to the config.log.
9340: cat conftest.err 1>&5
9341: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9342: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9343: if diff conftest.exp conftest.er2 >/dev/null; then
9344: lt_cv_prog_compiler__b=yes
9345: fi
9346: else
9347: lt_cv_prog_compiler__b=yes
9348: fi
9349: fi
9350: $RM -r conftest*
9351: LDFLAGS="$save_LDFLAGS"
1.15 paf 9352:
1.1 parser 9353: fi
1.35 moko 9354: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler__b" >&5
9355: echo "${ECHO_T}$lt_cv_prog_compiler__b" >&6
1.1 parser 9356:
1.35 moko 9357: if test x"$lt_cv_prog_compiler__b" = xyes; then
9358: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9359: else
9360: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
1.1 parser 9361: fi
9362:
1.35 moko 9363: ;;
9364: esac
9365: fi
9366: if test "$with_gnu_ld" = no; then
9367: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9368: hardcode_libdir_separator=:
9369:
9370: case $host_cpu in
9371: hppa*64*|ia64*)
9372: hardcode_direct=no
9373: hardcode_shlibpath_var=no
9374: ;;
9375: *)
9376: hardcode_direct=yes
9377: hardcode_direct_absolute=yes
9378: export_dynamic_flag_spec='${wl}-E'
1.15 paf 9379:
1.35 moko 9380: # hardcode_minus_L: Not really in the search PATH,
9381: # but as the default location of the library.
9382: hardcode_minus_L=yes
9383: ;;
9384: esac
9385: fi
9386: ;;
1.1 parser 9387:
1.35 moko 9388: irix5* | irix6* | nonstopux*)
9389: if test "$GCC" = yes; then
9390: 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'
9391: # Try to use the -exported_symbol ld option, if it does not
9392: # work, assume that -exports_file does not work either and
9393: # implicitly export all symbols.
9394: # This should be the same for all languages, so no per-tag cache variable.
9395: echo "$as_me:$LINENO: checking whether the $host_os linker accepts -exported_symbol" >&5
9396: echo $ECHO_N "checking whether the $host_os linker accepts -exported_symbol... $ECHO_C" >&6
9397: if test "${lt_cv_irix_exported_symbol+set}" = set; then
1.15 paf 9398: echo $ECHO_N "(cached) $ECHO_C" >&6
9399: else
1.35 moko 9400: save_LDFLAGS="$LDFLAGS"
9401: LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9402: cat >conftest.$ac_ext <<_ACEOF
1.15 paf 9403: /* confdefs.h. */
9404: _ACEOF
9405: cat confdefs.h >>conftest.$ac_ext
9406: cat >>conftest.$ac_ext <<_ACEOF
9407: /* end confdefs.h. */
1.35 moko 9408: int foo (void) { return 0; }
1.15 paf 9409: _ACEOF
1.35 moko 9410: rm -f conftest.$ac_objext conftest$ac_exeext
9411: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9412: (eval $ac_link) 2>conftest.er1
1.15 paf 9413: ac_status=$?
1.25 paf 9414: grep -v '^ *+' conftest.er1 >conftest.err
9415: rm -f conftest.er1
9416: cat conftest.err >&5
1.15 paf 9417: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9418: (exit $ac_status); } &&
1.25 paf 9419: { ac_try='test -z "$ac_c_werror_flag"
9420: || test ! -s conftest.err'
9421: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9422: (eval $ac_try) 2>&5
9423: ac_status=$?
9424: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9425: (exit $ac_status); }; } &&
1.35 moko 9426: { ac_try='test -s conftest$ac_exeext'
1.15 paf 9427: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9428: (eval $ac_try) 2>&5
9429: ac_status=$?
9430: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9431: (exit $ac_status); }; }; then
1.35 moko 9432: lt_cv_irix_exported_symbol=yes
1.1 parser 9433: else
1.15 paf 9434: echo "$as_me: failed program was:" >&5
9435: sed 's/^/| /' conftest.$ac_ext >&5
9436:
1.35 moko 9437: lt_cv_irix_exported_symbol=no
1.15 paf 9438: fi
1.35 moko 9439: rm -f conftest.err conftest.$ac_objext \
9440: conftest$ac_exeext conftest.$ac_ext
9441: LDFLAGS="$save_LDFLAGS"
1.1 parser 9442: fi
1.35 moko 9443: echo "$as_me:$LINENO: result: $lt_cv_irix_exported_symbol" >&5
9444: echo "${ECHO_T}$lt_cv_irix_exported_symbol" >&6
9445: if test "$lt_cv_irix_exported_symbol" = yes; then
9446: 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'
9447: fi
9448: else
9449: 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'
9450: 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'
9451: fi
9452: archive_cmds_need_lc='no'
9453: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9454: hardcode_libdir_separator=:
9455: inherit_rpath=yes
9456: link_all_deplibs=yes
9457: ;;
9458:
9459: netbsd*)
9460: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9461: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9462: else
9463: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9464: fi
9465: hardcode_libdir_flag_spec='-R$libdir'
9466: hardcode_direct=yes
9467: hardcode_shlibpath_var=no
9468: ;;
9469:
9470: newsos6)
9471: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9472: hardcode_direct=yes
9473: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9474: hardcode_libdir_separator=:
9475: hardcode_shlibpath_var=no
9476: ;;
9477:
9478: *nto* | *qnx*)
9479: ;;
1.1 parser 9480:
1.35 moko 9481: openbsd*)
9482: if test -f /usr/libexec/ld.so; then
9483: hardcode_direct=yes
9484: hardcode_shlibpath_var=no
9485: hardcode_direct_absolute=yes
9486: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9487: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9488: archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9489: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9490: export_dynamic_flag_spec='${wl}-E'
9491: else
9492: case $host_os in
9493: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9494: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9495: hardcode_libdir_flag_spec='-R$libdir'
9496: ;;
9497: *)
9498: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9499: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9500: ;;
9501: esac
9502: fi
9503: else
9504: ld_shlibs=no
9505: fi
9506: ;;
1.1 parser 9507:
1.35 moko 9508: os2*)
9509: hardcode_libdir_flag_spec='-L$libdir'
9510: hardcode_minus_L=yes
9511: allow_undefined_flag=unsupported
9512: 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'
9513: old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9514: ;;
1.1 parser 9515:
1.35 moko 9516: osf3*)
9517: if test "$GCC" = yes; then
9518: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9519: 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'
9520: else
9521: allow_undefined_flag=' -expect_unresolved \*'
9522: 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'
9523: fi
9524: archive_cmds_need_lc='no'
9525: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9526: hardcode_libdir_separator=:
9527: ;;
1.1 parser 9528:
1.35 moko 9529: osf4* | osf5*) # as osf3* with the addition of -msym flag
9530: if test "$GCC" = yes; then
9531: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9532: 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'
9533: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9534: else
9535: allow_undefined_flag=' -expect_unresolved \*'
9536: 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'
9537: 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~
9538: $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 9539:
1.35 moko 9540: # Both c and cxx compiler support -rpath directly
9541: hardcode_libdir_flag_spec='-rpath $libdir'
9542: fi
9543: archive_cmds_need_lc='no'
9544: hardcode_libdir_separator=:
9545: ;;
1.1 parser 9546:
1.35 moko 9547: solaris*)
9548: no_undefined_flag=' -z defs'
9549: if test "$GCC" = yes; then
9550: wlarc='${wl}'
9551: archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9552: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9553: $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'
9554: else
9555: case `$CC -V 2>&1` in
9556: *"Compilers 5.0"*)
9557: wlarc=''
9558: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9559: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9560: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9561: ;;
9562: *)
9563: wlarc='${wl}'
9564: archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9565: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9566: $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9567: ;;
9568: esac
9569: fi
9570: hardcode_libdir_flag_spec='-R$libdir'
9571: hardcode_shlibpath_var=no
9572: case $host_os in
9573: solaris2.[0-5] | solaris2.[0-5].*) ;;
9574: *)
9575: # The compiler driver will combine and reorder linker options,
9576: # but understands `-z linker_flag'. GCC discards it without `$wl',
9577: # but is careful enough not to reorder.
9578: # Supported since Solaris 2.6 (maybe 2.5.1?)
9579: if test "$GCC" = yes; then
9580: whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9581: else
9582: whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9583: fi
9584: ;;
9585: esac
9586: link_all_deplibs=yes
9587: ;;
9588:
9589: sunos4*)
9590: if test "x$host_vendor" = xsequent; then
9591: # Use $CC to link under sequent, because it throws in some extra .o
9592: # files that make .init and .fini sections work.
9593: archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9594: else
9595: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9596: fi
9597: hardcode_libdir_flag_spec='-L$libdir'
9598: hardcode_direct=yes
9599: hardcode_minus_L=yes
9600: hardcode_shlibpath_var=no
9601: ;;
9602:
9603: sysv4)
9604: case $host_vendor in
9605: sni)
9606: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9607: hardcode_direct=yes # is this really true???
9608: ;;
9609: siemens)
9610: ## LD is ld it makes a PLAMLIB
9611: ## CC just makes a GrossModule.
9612: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9613: reload_cmds='$CC -r -o $output$reload_objs'
9614: hardcode_direct=no
9615: ;;
9616: motorola)
9617: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9618: hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9619: ;;
9620: esac
9621: runpath_var='LD_RUN_PATH'
9622: hardcode_shlibpath_var=no
9623: ;;
9624:
9625: sysv4.3*)
9626: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9627: hardcode_shlibpath_var=no
9628: export_dynamic_flag_spec='-Bexport'
9629: ;;
9630:
9631: sysv4*MP*)
9632: if test -d /usr/nec; then
9633: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9634: hardcode_shlibpath_var=no
9635: runpath_var=LD_RUN_PATH
9636: hardcode_runpath_var=yes
9637: ld_shlibs=yes
9638: fi
9639: ;;
9640:
9641: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9642: no_undefined_flag='${wl}-z,text'
9643: archive_cmds_need_lc=no
9644: hardcode_shlibpath_var=no
9645: runpath_var='LD_RUN_PATH'
9646:
9647: if test "$GCC" = yes; then
9648: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9649: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9650: else
9651: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9652: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9653: fi
9654: ;;
1.15 paf 9655:
1.35 moko 9656: sysv5* | sco3.2v5* | sco5v6*)
9657: # Note: We can NOT use -z defs as we might desire, because we do not
9658: # link with -lc, and that would cause any symbols used from libc to
9659: # always be unresolved, which means just about no library would
9660: # ever link correctly. If we're not using GNU ld we use -z text
9661: # though, which does catch some bad symbols but isn't as heavy-handed
9662: # as -z defs.
9663: no_undefined_flag='${wl}-z,text'
9664: allow_undefined_flag='${wl}-z,nodefs'
9665: archive_cmds_need_lc=no
9666: hardcode_shlibpath_var=no
9667: hardcode_libdir_flag_spec='${wl}-R,$libdir'
9668: hardcode_libdir_separator=':'
9669: link_all_deplibs=yes
9670: export_dynamic_flag_spec='${wl}-Bexport'
9671: runpath_var='LD_RUN_PATH'
9672:
9673: if test "$GCC" = yes; then
9674: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9675: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9676: else
9677: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9678: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9679: fi
9680: ;;
1.15 paf 9681:
1.35 moko 9682: uts4*)
9683: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9684: hardcode_libdir_flag_spec='-L$libdir'
9685: hardcode_shlibpath_var=no
1.15 paf 9686: ;;
1.35 moko 9687:
1.15 paf 9688: *)
1.35 moko 9689: ld_shlibs=no
1.15 paf 9690: ;;
1.35 moko 9691: esac
9692:
9693: if test x$host_vendor = xsni; then
9694: case $host in
9695: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9696: export_dynamic_flag_spec='${wl}-Blargedynsym'
9697: ;;
9698: esac
9699: fi
1.1 parser 9700: fi
9701:
1.35 moko 9702: echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9703: echo "${ECHO_T}$ld_shlibs" >&6
9704: test "$ld_shlibs" = no && can_build_shared=no
9705:
9706: with_gnu_ld=$with_gnu_ld
1.1 parser 9707:
9708:
1.15 paf 9709:
9710:
9711:
1.1 parser 9712:
9713:
1.15 paf 9714:
9715:
9716:
9717:
9718:
9719:
9720:
9721:
1.35 moko 9722: #
9723: # Do we need to explicitly link libc?
9724: #
9725: case "x$archive_cmds_need_lc" in
9726: x|xyes)
9727: # Assume -lc should be added
9728: archive_cmds_need_lc=yes
9729:
9730: if test "$enable_shared" = yes && test "$GCC" = yes; then
9731: case $archive_cmds in
9732: *'~'*)
9733: # FIXME: we may have to deal with multi-command sequences.
9734: ;;
9735: '$CC '*)
9736: # Test whether the compiler implicitly links with -lc since on some
9737: # systems, -lgcc has to come before -lc. If gcc already passes -lc
9738: # to ld, don't add -lc before -lgcc.
9739: echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9740: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9741: if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
9742: echo $ECHO_N "(cached) $ECHO_C" >&6
1.15 paf 9743: else
1.35 moko 9744: $RM conftest*
9745: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9746:
9747: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9748: (eval $ac_compile) 2>&5
9749: ac_status=$?
9750: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751: (exit $ac_status); } 2>conftest.err; then
9752: soname=conftest
9753: lib=conftest
9754: libobjs=conftest.$ac_objext
9755: deplibs=
9756: wl=$lt_prog_compiler_wl
9757: pic_flag=$lt_prog_compiler_pic
9758: compiler_flags=-v
9759: linker_flags=-v
9760: verstring=
9761: output_objdir=.
9762: libname=conftest
9763: lt_save_allow_undefined_flag=$allow_undefined_flag
9764: allow_undefined_flag=
9765: if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9766: (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9767: ac_status=$?
9768: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769: (exit $ac_status); }
9770: then
9771: lt_cv_archive_cmds_need_lc=no
9772: else
9773: lt_cv_archive_cmds_need_lc=yes
9774: fi
9775: allow_undefined_flag=$lt_save_allow_undefined_flag
9776: else
9777: cat conftest.err 1>&5
9778: fi
9779: $RM conftest*
9780:
1.15 paf 9781: fi
1.35 moko 9782: echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
9783: echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
9784: archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9785: ;;
9786: esac
9787: fi
9788: ;;
9789: esac
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:
9822:
9823:
9824:
9825:
9826:
9827:
9828:
9829:
9830:
9831:
9832:
9833:
9834:
9835:
9836:
9837:
9838:
9839:
9840:
9841:
9842:
9843:
9844:
1.15 paf 9845:
9846:
9847:
9848:
9849:
9850:
9851:
9852:
9853:
9854:
9855:
9856:
9857:
9858:
9859:
9860:
9861:
9862:
9863:
9864:
9865:
9866:
9867:
9868:
9869:
9870:
9871:
9872:
9873:
9874:
9875:
9876:
9877:
9878:
9879:
9880:
9881:
9882:
9883:
9884:
9885:
9886:
9887:
9888:
9889:
1.1 parser 9890:
1.15 paf 9891:
9892:
9893:
9894:
9895:
1.1 parser 9896:
1.15 paf 9897:
9898:
9899:
9900:
1.1 parser 9901:
1.15 paf 9902:
9903:
9904:
9905:
1.1 parser 9906:
9907:
9908:
9909:
9910:
9911:
9912:
1.15 paf 9913:
9914:
9915:
1.25 paf 9916:
1.15 paf 9917:
9918:
1.1 parser 9919:
1.15 paf 9920:
9921:
9922:
1.1 parser 9923:
9924:
9925:
9926:
1.15 paf 9927:
9928:
1.1 parser 9929:
1.15 paf 9930:
9931:
9932:
9933:
1.1 parser 9934:
1.25 paf 9935:
1.15 paf 9936:
9937:
1.25 paf 9938:
1.15 paf 9939:
9940:
1.35 moko 9941:
9942: echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9943: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9944:
9945: if test "$GCC" = yes; then
9946: case $host_os in
9947: darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9948: *) lt_awk_arg="/^libraries:/" ;;
9949: esac
9950: case $host_os in
9951: mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9952: *) lt_sed_strip_eq="s,=/,/,g" ;;
9953: esac
9954: lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9955: case $lt_search_path_spec in
9956: *\;*)
9957: # if the path contains ";" then we assume it to be the separator
9958: # otherwise default to the standard path separator (i.e. ":") - it is
9959: # assumed that no part of a normal pathname contains ";" but that should
9960: # okay in the real world where ";" in dirpaths is itself problematic.
9961: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9962: ;;
9963: *)
9964: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9965: ;;
9966: esac
9967: # Ok, now we have the path, separated by spaces, we can step through it
9968: # and add multilib dir if necessary.
9969: lt_tmp_lt_search_path_spec=
9970: lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9971: for lt_sys_path in $lt_search_path_spec; do
9972: if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9973: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9974: else
9975: test -d "$lt_sys_path" && \
9976: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9977: fi
9978: done
9979: lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9980: BEGIN {RS=" "; FS="/|\n";} {
9981: lt_foo="";
9982: lt_count=0;
9983: for (lt_i = NF; lt_i > 0; lt_i--) {
9984: if ($lt_i != "" && $lt_i != ".") {
9985: if ($lt_i == "..") {
9986: lt_count++;
9987: } else {
9988: if (lt_count == 0) {
9989: lt_foo="/" $lt_i lt_foo;
9990: } else {
9991: lt_count--;
9992: }
9993: }
9994: }
9995: }
9996: if (lt_foo != "") { lt_freq[lt_foo]++; }
9997: if (lt_freq[lt_foo] == 1) { print lt_foo; }
9998: }'`
9999: # AWK program above erroneously prepends '/' to C:/dos/paths
10000: # for these hosts.
10001: case $host_os in
10002: mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10003: $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10004: esac
10005: sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10006: else
10007: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10008: fi
10009: library_names_spec=
10010: libname_spec='lib$name'
10011: soname_spec=
10012: shrext_cmds=".so"
10013: postinstall_cmds=
10014: postuninstall_cmds=
10015: finish_cmds=
10016: finish_eval=
10017: shlibpath_var=
10018: shlibpath_overrides_runpath=unknown
10019: version_type=none
10020: dynamic_linker="$host_os ld.so"
10021: sys_lib_dlsearch_path_spec="/lib /usr/lib"
10022: need_lib_prefix=unknown
10023: hardcode_into_libs=no
10024:
10025: # when you set need_version to no, make sure it does not cause -set_version
10026: # flags to be left without arguments
10027: need_version=unknown
10028:
10029: case $host_os in
10030: aix3*)
10031: version_type=linux # correct to gnu/linux during the next big refactor
10032: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10033: shlibpath_var=LIBPATH
10034:
10035: # AIX 3 has no versioning support, so we append a major version to the name.
10036: soname_spec='${libname}${release}${shared_ext}$major'
10037: ;;
10038:
10039: aix[4-9]*)
10040: version_type=linux # correct to gnu/linux during the next big refactor
10041: need_lib_prefix=no
10042: need_version=no
10043: hardcode_into_libs=yes
10044: if test "$host_cpu" = ia64; then
10045: # AIX 5 supports IA64
10046: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10047: shlibpath_var=LD_LIBRARY_PATH
1.15 paf 10048: else
1.35 moko 10049: # With GCC up to 2.95.x, collect2 would create an import file
10050: # for dependence libraries. The import file would start with
10051: # the line `#! .'. This would cause the generated library to
10052: # depend on `.', always an invalid library. This was fixed in
10053: # development snapshots of GCC prior to 3.0.
10054: case $host_os in
10055: aix4 | aix4.[01] | aix4.[01].*)
10056: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10057: echo ' yes '
10058: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10059: :
10060: else
10061: can_build_shared=no
10062: fi
10063: ;;
10064: esac
10065: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10066: # soname into executable. Probably we can add versioning support to
10067: # collect2, so additional links can be useful in future.
10068: if test "$aix_use_runtimelinking" = yes; then
10069: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10070: # instead of lib<name>.a to let people know that these are not
10071: # typical AIX shared libraries.
10072: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10073: else
10074: # We preserve .a as extension for shared libraries through AIX4.2
10075: # and later when we are not doing run time linking.
10076: library_names_spec='${libname}${release}.a $libname.a'
10077: soname_spec='${libname}${release}${shared_ext}$major'
10078: fi
10079: shlibpath_var=LIBPATH
1.15 paf 10080: fi
1.35 moko 10081: ;;
10082:
10083: amigaos*)
10084: case $host_cpu in
10085: powerpc)
10086: # Since July 2007 AmigaOS4 officially supports .so libraries.
10087: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10088: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10089: ;;
10090: m68k)
10091: library_names_spec='$libname.ixlibrary $libname.a'
10092: # Create ${libname}_ixlibrary.a entries in /sys/libs.
10093: 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'
10094: ;;
10095: esac
10096: ;;
10097:
10098: beos*)
10099: library_names_spec='${libname}${shared_ext}'
10100: dynamic_linker="$host_os ld.so"
10101: shlibpath_var=LIBRARY_PATH
10102: ;;
10103:
10104: bsdi[45]*)
10105: version_type=linux # correct to gnu/linux during the next big refactor
10106: need_version=no
10107: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10108: soname_spec='${libname}${release}${shared_ext}$major'
10109: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10110: shlibpath_var=LD_LIBRARY_PATH
10111: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10112: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10113: # the default ld.so.conf also contains /usr/contrib/lib and
10114: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10115: # libtool to hard-code these into programs
10116: ;;
10117:
10118: cygwin* | mingw* | pw32* | cegcc*)
10119: version_type=windows
10120: shrext_cmds=".dll"
10121: need_version=no
10122: need_lib_prefix=no
10123:
10124: case $GCC,$cc_basename in
10125: yes,*)
10126: # gcc
10127: library_names_spec='$libname.dll.a'
10128: # DLL is installed to $(libdir)/../bin by postinstall_cmds
10129: postinstall_cmds='base_file=`basename \${file}`~
10130: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10131: dldir=$destdir/`dirname \$dlpath`~
10132: test -d \$dldir || mkdir -p \$dldir~
10133: $install_prog $dir/$dlname \$dldir/$dlname~
10134: chmod a+x \$dldir/$dlname~
10135: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10136: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10137: fi'
10138: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10139: dlpath=$dir/\$dldll~
10140: $RM \$dlpath'
10141: shlibpath_overrides_runpath=yes
10142:
10143: case $host_os in
10144: cygwin*)
10145: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10146: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10147:
10148: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10149: ;;
10150: mingw* | cegcc*)
10151: # MinGW DLLs use traditional 'lib' prefix
10152: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10153: ;;
10154: pw32*)
10155: # pw32 DLLs use 'pw' prefix rather than 'lib'
10156: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10157: ;;
10158: esac
10159: dynamic_linker='Win32 ld.exe'
10160: ;;
10161:
10162: *,cl*)
10163: # Native MSVC
10164: libname_spec='$name'
10165: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10166: library_names_spec='${libname}.dll.lib'
10167:
10168: case $build_os in
10169: mingw*)
10170: sys_lib_search_path_spec=
10171: lt_save_ifs=$IFS
10172: IFS=';'
10173: for lt_path in $LIB
10174: do
10175: IFS=$lt_save_ifs
10176: # Let DOS variable expansion print the short 8.3 style file name.
10177: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10178: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10179: done
10180: IFS=$lt_save_ifs
10181: # Convert to MSYS style.
10182: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10183: ;;
10184: cygwin*)
10185: # Convert to unix form, then to dos form, then back to unix form
10186: # but this time dos style (no spaces!) so that the unix form looks
10187: # like /cygdrive/c/PROGRA~1:/cygdr...
10188: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10189: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10190: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10191: ;;
10192: *)
10193: sys_lib_search_path_spec="$LIB"
10194: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10195: # It is most probably a Windows format PATH.
10196: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10197: else
10198: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10199: fi
10200: # FIXME: find the short name or the path components, as spaces are
10201: # common. (e.g. "Program Files" -> "PROGRA~1")
10202: ;;
10203: esac
10204:
10205: # DLL is installed to $(libdir)/../bin by postinstall_cmds
10206: postinstall_cmds='base_file=`basename \${file}`~
10207: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10208: dldir=$destdir/`dirname \$dlpath`~
10209: test -d \$dldir || mkdir -p \$dldir~
10210: $install_prog $dir/$dlname \$dldir/$dlname'
10211: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10212: dlpath=$dir/\$dldll~
10213: $RM \$dlpath'
10214: shlibpath_overrides_runpath=yes
10215: dynamic_linker='Win32 link.exe'
10216: ;;
10217:
10218: *)
10219: # Assume MSVC wrapper
10220: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10221: dynamic_linker='Win32 ld.exe'
10222: ;;
10223: esac
10224: # FIXME: first we should search . and the directory the executable is in
10225: shlibpath_var=PATH
10226: ;;
10227:
10228: darwin* | rhapsody*)
10229: dynamic_linker="$host_os dyld"
10230: version_type=darwin
10231: need_lib_prefix=no
10232: need_version=no
10233: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10234: soname_spec='${libname}${release}${major}$shared_ext'
10235: shlibpath_overrides_runpath=yes
10236: shlibpath_var=DYLD_LIBRARY_PATH
10237: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10238:
10239: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10240: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10241: ;;
10242:
10243: dgux*)
10244: version_type=linux # correct to gnu/linux during the next big refactor
10245: need_lib_prefix=no
10246: need_version=no
10247: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10248: soname_spec='${libname}${release}${shared_ext}$major'
10249: shlibpath_var=LD_LIBRARY_PATH
10250: ;;
10251:
10252: freebsd* | dragonfly*)
10253: # DragonFly does not have aout. When/if they implement a new
10254: # versioning mechanism, adjust this.
10255: if test -x /usr/bin/objformat; then
10256: objformat=`/usr/bin/objformat`
1.15 paf 10257: else
1.35 moko 10258: case $host_os in
10259: freebsd[23].*) objformat=aout ;;
10260: *) objformat=elf ;;
10261: esac
10262: fi
10263: version_type=freebsd-$objformat
10264: case $version_type in
10265: freebsd-elf*)
10266: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10267: need_version=no
10268: need_lib_prefix=no
10269: ;;
10270: freebsd-*)
10271: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10272: need_version=yes
10273: ;;
10274: esac
10275: shlibpath_var=LD_LIBRARY_PATH
10276: case $host_os in
10277: freebsd2.*)
10278: shlibpath_overrides_runpath=yes
10279: ;;
10280: freebsd3.[01]* | freebsdelf3.[01]*)
10281: shlibpath_overrides_runpath=yes
10282: hardcode_into_libs=yes
10283: ;;
10284: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10285: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10286: shlibpath_overrides_runpath=no
10287: hardcode_into_libs=yes
10288: ;;
10289: *) # from 4.6 on, and DragonFly
10290: shlibpath_overrides_runpath=yes
10291: hardcode_into_libs=yes
10292: ;;
10293: esac
10294: ;;
10295:
10296: gnu*)
10297: version_type=linux # correct to gnu/linux during the next big refactor
10298: need_lib_prefix=no
10299: need_version=no
10300: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10301: soname_spec='${libname}${release}${shared_ext}$major'
10302: shlibpath_var=LD_LIBRARY_PATH
10303: shlibpath_overrides_runpath=no
10304: hardcode_into_libs=yes
10305: ;;
10306:
10307: haiku*)
10308: version_type=linux # correct to gnu/linux during the next big refactor
10309: need_lib_prefix=no
10310: need_version=no
10311: dynamic_linker="$host_os runtime_loader"
10312: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10313: soname_spec='${libname}${release}${shared_ext}$major'
10314: shlibpath_var=LIBRARY_PATH
10315: shlibpath_overrides_runpath=yes
10316: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10317: hardcode_into_libs=yes
10318: ;;
10319:
10320: hpux9* | hpux10* | hpux11*)
10321: # Give a soname corresponding to the major version so that dld.sl refuses to
10322: # link against other versions.
10323: version_type=sunos
10324: need_lib_prefix=no
10325: need_version=no
10326: case $host_cpu in
10327: ia64*)
10328: shrext_cmds='.so'
10329: hardcode_into_libs=yes
10330: dynamic_linker="$host_os dld.so"
10331: shlibpath_var=LD_LIBRARY_PATH
10332: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10333: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10334: soname_spec='${libname}${release}${shared_ext}$major'
10335: if test "X$HPUX_IA64_MODE" = X32; then
10336: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10337: else
10338: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10339: fi
10340: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10341: ;;
10342: hppa*64*)
10343: shrext_cmds='.sl'
10344: hardcode_into_libs=yes
10345: dynamic_linker="$host_os dld.sl"
10346: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10347: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10348: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10349: soname_spec='${libname}${release}${shared_ext}$major'
10350: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10351: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10352: ;;
10353: *)
10354: shrext_cmds='.sl'
10355: dynamic_linker="$host_os dld.sl"
10356: shlibpath_var=SHLIB_PATH
10357: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10358: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10359: soname_spec='${libname}${release}${shared_ext}$major'
10360: ;;
10361: esac
10362: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10363: postinstall_cmds='chmod 555 $lib'
10364: # or fails outright, so override atomically:
10365: install_override_mode=555
10366: ;;
10367:
10368: interix[3-9]*)
10369: version_type=linux # correct to gnu/linux during the next big refactor
10370: need_lib_prefix=no
10371: need_version=no
10372: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10373: soname_spec='${libname}${release}${shared_ext}$major'
10374: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10375: shlibpath_var=LD_LIBRARY_PATH
10376: shlibpath_overrides_runpath=no
10377: hardcode_into_libs=yes
10378: ;;
10379:
10380: irix5* | irix6* | nonstopux*)
10381: case $host_os in
10382: nonstopux*) version_type=nonstopux ;;
10383: *)
10384: if test "$lt_cv_prog_gnu_ld" = yes; then
10385: version_type=linux # correct to gnu/linux during the next big refactor
10386: else
10387: version_type=irix
10388: fi ;;
10389: esac
10390: need_lib_prefix=no
10391: need_version=no
10392: soname_spec='${libname}${release}${shared_ext}$major'
10393: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10394: case $host_os in
10395: irix5* | nonstopux*)
10396: libsuff= shlibsuff=
10397: ;;
10398: *)
10399: case $LD in # libtool.m4 will add one of these switches to LD
10400: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10401: libsuff= shlibsuff= libmagic=32-bit;;
10402: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10403: libsuff=32 shlibsuff=N32 libmagic=N32;;
10404: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10405: libsuff=64 shlibsuff=64 libmagic=64-bit;;
10406: *) libsuff= shlibsuff= libmagic=never-match;;
10407: esac
10408: ;;
10409: esac
10410: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10411: shlibpath_overrides_runpath=no
10412: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10413: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10414: hardcode_into_libs=yes
10415: ;;
10416:
10417: # No shared lib support for Linux oldld, aout, or coff.
10418: linux*oldld* | linux*aout* | linux*coff*)
10419: dynamic_linker=no
10420: ;;
10421:
10422: # This must be glibc/ELF.
10423: linux* | k*bsd*-gnu | kopensolaris*-gnu)
10424: version_type=linux # correct to gnu/linux during the next big refactor
10425: need_lib_prefix=no
10426: need_version=no
10427: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10428: soname_spec='${libname}${release}${shared_ext}$major'
10429: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10430: shlibpath_var=LD_LIBRARY_PATH
10431: shlibpath_overrides_runpath=no
10432:
10433: # Some binutils ld are patched to set DT_RUNPATH
10434: if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
10435: echo $ECHO_N "(cached) $ECHO_C" >&6
10436: else
10437: lt_cv_shlibpath_overrides_runpath=no
10438: save_LDFLAGS=$LDFLAGS
10439: save_libdir=$libdir
10440: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10441: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10442: cat >conftest.$ac_ext <<_ACEOF
10443: /* confdefs.h. */
10444: _ACEOF
10445: cat confdefs.h >>conftest.$ac_ext
10446: cat >>conftest.$ac_ext <<_ACEOF
10447: /* end confdefs.h. */
10448:
10449: int
10450: main ()
10451: {
10452:
10453: ;
10454: return 0;
10455: }
10456: _ACEOF
10457: rm -f conftest.$ac_objext conftest$ac_exeext
10458: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10459: (eval $ac_link) 2>conftest.er1
10460: ac_status=$?
10461: grep -v '^ *+' conftest.er1 >conftest.err
10462: rm -f conftest.er1
10463: cat conftest.err >&5
10464: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465: (exit $ac_status); } &&
10466: { ac_try='test -z "$ac_c_werror_flag"
10467: || test ! -s conftest.err'
10468: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10469: (eval $ac_try) 2>&5
10470: ac_status=$?
10471: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472: (exit $ac_status); }; } &&
10473: { ac_try='test -s conftest$ac_exeext'
10474: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10475: (eval $ac_try) 2>&5
10476: ac_status=$?
10477: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10478: (exit $ac_status); }; }; then
10479: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10480: lt_cv_shlibpath_overrides_runpath=yes
10481: fi
10482:
10483: else
10484: echo "$as_me: failed program was:" >&5
10485: sed 's/^/| /' conftest.$ac_ext >&5
10486:
10487: fi
10488: rm -f conftest.err conftest.$ac_objext \
10489: conftest$ac_exeext conftest.$ac_ext
10490: LDFLAGS=$save_LDFLAGS
10491: libdir=$save_libdir
10492:
10493: fi
10494:
10495: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10496:
10497: # This implies no fast_install, which is unacceptable.
10498: # Some rework will be needed to allow for fast_install
10499: # before this can be enabled.
10500: hardcode_into_libs=yes
10501:
10502: # Append ld.so.conf contents to the search path
10503: if test -f /etc/ld.so.conf; then
10504: 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' ' '`
10505: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10506: fi
10507:
10508: # We used to test for /lib/ld.so.1 and disable shared libraries on
10509: # powerpc, because MkLinux only supported shared libraries with the
10510: # GNU dynamic linker. Since this was broken with cross compilers,
10511: # most powerpc-linux boxes support dynamic linking these days and
10512: # people can always --disable-shared, the test was removed, and we
10513: # assume the GNU/Linux dynamic linker is in use.
10514: dynamic_linker='GNU/Linux ld.so'
10515: ;;
10516:
10517: netbsd*)
10518: version_type=sunos
10519: need_lib_prefix=no
10520: need_version=no
10521: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10522: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10523: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10524: dynamic_linker='NetBSD (a.out) ld.so'
10525: else
10526: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10527: soname_spec='${libname}${release}${shared_ext}$major'
10528: dynamic_linker='NetBSD ld.elf_so'
10529: fi
10530: shlibpath_var=LD_LIBRARY_PATH
10531: shlibpath_overrides_runpath=yes
10532: hardcode_into_libs=yes
10533: ;;
10534:
10535: newsos6)
10536: version_type=linux # correct to gnu/linux during the next big refactor
10537: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10538: shlibpath_var=LD_LIBRARY_PATH
10539: shlibpath_overrides_runpath=yes
10540: ;;
10541:
10542: *nto* | *qnx*)
10543: version_type=qnx
10544: need_lib_prefix=no
10545: need_version=no
10546: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10547: soname_spec='${libname}${release}${shared_ext}$major'
10548: shlibpath_var=LD_LIBRARY_PATH
10549: shlibpath_overrides_runpath=no
10550: hardcode_into_libs=yes
10551: dynamic_linker='ldqnx.so'
10552: ;;
10553:
10554: openbsd*)
10555: version_type=sunos
10556: sys_lib_dlsearch_path_spec="/usr/lib"
10557: need_lib_prefix=no
10558: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10559: case $host_os in
10560: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10561: *) need_version=no ;;
10562: esac
10563: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10564: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10565: shlibpath_var=LD_LIBRARY_PATH
10566: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10567: case $host_os in
10568: openbsd2.[89] | openbsd2.[89].*)
10569: shlibpath_overrides_runpath=no
10570: ;;
10571: *)
10572: shlibpath_overrides_runpath=yes
10573: ;;
10574: esac
10575: else
10576: shlibpath_overrides_runpath=yes
10577: fi
10578: ;;
10579:
10580: os2*)
10581: libname_spec='$name'
10582: shrext_cmds=".dll"
10583: need_lib_prefix=no
10584: library_names_spec='$libname${shared_ext} $libname.a'
10585: dynamic_linker='OS/2 ld.exe'
10586: shlibpath_var=LIBPATH
10587: ;;
10588:
10589: osf3* | osf4* | osf5*)
10590: version_type=osf
10591: need_lib_prefix=no
10592: need_version=no
10593: soname_spec='${libname}${release}${shared_ext}$major'
10594: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10595: shlibpath_var=LD_LIBRARY_PATH
10596: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10597: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10598: ;;
10599:
10600: rdos*)
10601: dynamic_linker=no
10602: ;;
10603:
10604: solaris*)
10605: version_type=linux # correct to gnu/linux during the next big refactor
10606: need_lib_prefix=no
10607: need_version=no
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: shlibpath_overrides_runpath=yes
10612: hardcode_into_libs=yes
10613: # ldd complains unless libraries are executable
10614: postinstall_cmds='chmod +x $lib'
10615: ;;
10616:
10617: sunos4*)
10618: version_type=sunos
10619: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10620: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10621: shlibpath_var=LD_LIBRARY_PATH
10622: shlibpath_overrides_runpath=yes
10623: if test "$with_gnu_ld" = yes; then
10624: need_lib_prefix=no
10625: fi
10626: need_version=yes
10627: ;;
10628:
10629: sysv4 | sysv4.3*)
10630: version_type=linux # correct to gnu/linux during the next big refactor
10631: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10632: soname_spec='${libname}${release}${shared_ext}$major'
10633: shlibpath_var=LD_LIBRARY_PATH
10634: case $host_vendor in
10635: sni)
10636: shlibpath_overrides_runpath=no
10637: need_lib_prefix=no
10638: runpath_var=LD_RUN_PATH
10639: ;;
10640: siemens)
10641: need_lib_prefix=no
10642: ;;
10643: motorola)
10644: need_lib_prefix=no
10645: need_version=no
10646: shlibpath_overrides_runpath=no
10647: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10648: ;;
10649: esac
10650: ;;
10651:
10652: sysv4*MP*)
10653: if test -d /usr/nec ;then
10654: version_type=linux # correct to gnu/linux during the next big refactor
10655: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10656: soname_spec='$libname${shared_ext}.$major'
10657: shlibpath_var=LD_LIBRARY_PATH
10658: fi
10659: ;;
10660:
10661: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10662: version_type=freebsd-elf
10663: need_lib_prefix=no
10664: need_version=no
10665: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10666: soname_spec='${libname}${release}${shared_ext}$major'
10667: shlibpath_var=LD_LIBRARY_PATH
10668: shlibpath_overrides_runpath=yes
10669: hardcode_into_libs=yes
10670: if test "$with_gnu_ld" = yes; then
10671: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10672: else
10673: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10674: case $host_os in
10675: sco3.2v5*)
10676: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10677: ;;
10678: esac
10679: fi
10680: sys_lib_dlsearch_path_spec='/usr/lib'
10681: ;;
10682:
10683: tpf*)
10684: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10685: version_type=linux # correct to gnu/linux during the next big refactor
10686: need_lib_prefix=no
10687: need_version=no
10688: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10689: shlibpath_var=LD_LIBRARY_PATH
10690: shlibpath_overrides_runpath=no
10691: hardcode_into_libs=yes
10692: ;;
10693:
10694: uts4*)
10695: version_type=linux # correct to gnu/linux during the next big refactor
10696: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10697: soname_spec='${libname}${release}${shared_ext}$major'
10698: shlibpath_var=LD_LIBRARY_PATH
10699: ;;
10700:
10701: *)
10702: dynamic_linker=no
10703: ;;
10704: esac
10705: echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10706: echo "${ECHO_T}$dynamic_linker" >&6
10707: test "$dynamic_linker" = no && can_build_shared=no
10708:
10709: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10710: if test "$GCC" = yes; then
10711: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10712: fi
10713:
10714: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10715: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10716: fi
10717: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10718: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10719: fi
10720:
10721:
10722:
10723:
10724:
10725:
10726:
10727:
10728:
10729:
10730:
10731:
10732:
10733:
10734:
10735:
10736:
10737:
10738:
10739:
10740:
10741:
10742:
10743:
10744:
10745:
10746:
10747:
10748:
10749:
10750:
10751:
10752:
10753:
10754:
10755:
10756:
10757:
10758:
10759:
10760:
10761:
10762:
10763:
10764:
10765:
10766:
10767:
10768:
10769:
10770:
10771:
10772:
10773:
10774:
10775:
10776:
10777:
10778:
10779:
10780:
10781:
10782:
10783:
10784:
10785:
10786:
10787:
10788:
10789:
10790:
10791:
10792:
10793:
10794:
10795:
10796:
10797:
10798:
10799:
10800:
10801:
10802:
10803:
10804:
10805:
10806:
10807:
10808:
10809:
10810:
10811:
10812: echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10813: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10814: hardcode_action=
10815: if test -n "$hardcode_libdir_flag_spec" ||
10816: test -n "$runpath_var" ||
10817: test "X$hardcode_automatic" = "Xyes" ; then
10818:
10819: # We can hardcode non-existent directories.
10820: if test "$hardcode_direct" != no &&
10821: # If the only mechanism to avoid hardcoding is shlibpath_var, we
10822: # have to relink, otherwise we might link with an installed library
10823: # when we should be linking with a yet-to-be-installed one
10824: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10825: test "$hardcode_minus_L" != no; then
10826: # Linking always hardcodes the temporary library directory.
10827: hardcode_action=relink
10828: else
10829: # We can link without hardcoding, and we can hardcode nonexisting dirs.
10830: hardcode_action=immediate
10831: fi
10832: else
10833: # We cannot hardcode anything, or else we can only hardcode existing
10834: # directories.
10835: hardcode_action=unsupported
10836: fi
10837: echo "$as_me:$LINENO: result: $hardcode_action" >&5
10838: echo "${ECHO_T}$hardcode_action" >&6
10839:
10840: if test "$hardcode_action" = relink ||
10841: test "$inherit_rpath" = yes; then
10842: # Fast installation is not supported
10843: enable_fast_install=no
10844: elif test "$shlibpath_overrides_runpath" = yes ||
10845: test "$enable_shared" = no; then
10846: # Fast installation is not necessary
10847: enable_fast_install=needless
10848: fi
10849:
10850:
10851:
10852:
10853:
10854:
10855: if test "x$enable_dlopen" != xyes; then
10856: enable_dlopen=unknown
10857: enable_dlopen_self=unknown
10858: enable_dlopen_self_static=unknown
10859: else
10860: lt_cv_dlopen=no
10861: lt_cv_dlopen_libs=
10862:
10863: case $host_os in
10864: beos*)
10865: lt_cv_dlopen="load_add_on"
10866: lt_cv_dlopen_libs=
10867: lt_cv_dlopen_self=yes
10868: ;;
10869:
10870: mingw* | pw32* | cegcc*)
10871: lt_cv_dlopen="LoadLibrary"
10872: lt_cv_dlopen_libs=
10873: ;;
10874:
10875: cygwin*)
10876: lt_cv_dlopen="dlopen"
10877: lt_cv_dlopen_libs=
10878: ;;
10879:
10880: darwin*)
10881: # if libdl is installed we need to link against it
10882: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10883: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10884: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10885: echo $ECHO_N "(cached) $ECHO_C" >&6
10886: else
10887: ac_check_lib_save_LIBS=$LIBS
10888: LIBS="-ldl $LIBS"
10889: cat >conftest.$ac_ext <<_ACEOF
10890: /* confdefs.h. */
10891: _ACEOF
10892: cat confdefs.h >>conftest.$ac_ext
10893: cat >>conftest.$ac_ext <<_ACEOF
10894: /* end confdefs.h. */
10895:
10896: /* Override any gcc2 internal prototype to avoid an error. */
10897: #ifdef __cplusplus
10898: extern "C"
10899: #endif
10900: /* We use char because int might match the return type of a gcc2
10901: builtin and then its argument prototype would still apply. */
10902: char dlopen ();
10903: int
10904: main ()
10905: {
10906: dlopen ();
10907: ;
10908: return 0;
10909: }
10910: _ACEOF
10911: rm -f conftest.$ac_objext conftest$ac_exeext
10912: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10913: (eval $ac_link) 2>conftest.er1
10914: ac_status=$?
10915: grep -v '^ *+' conftest.er1 >conftest.err
10916: rm -f conftest.er1
10917: cat conftest.err >&5
10918: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10919: (exit $ac_status); } &&
10920: { ac_try='test -z "$ac_c_werror_flag"
10921: || test ! -s conftest.err'
10922: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10923: (eval $ac_try) 2>&5
10924: ac_status=$?
10925: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10926: (exit $ac_status); }; } &&
10927: { ac_try='test -s conftest$ac_exeext'
10928: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10929: (eval $ac_try) 2>&5
10930: ac_status=$?
10931: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932: (exit $ac_status); }; }; then
10933: ac_cv_lib_dl_dlopen=yes
10934: else
10935: echo "$as_me: failed program was:" >&5
10936: sed 's/^/| /' conftest.$ac_ext >&5
10937:
10938: ac_cv_lib_dl_dlopen=no
10939: fi
10940: rm -f conftest.err conftest.$ac_objext \
10941: conftest$ac_exeext conftest.$ac_ext
10942: LIBS=$ac_check_lib_save_LIBS
10943: fi
10944: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10945: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10946: if test $ac_cv_lib_dl_dlopen = yes; then
10947: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10948: else
10949:
10950: lt_cv_dlopen="dyld"
10951: lt_cv_dlopen_libs=
10952: lt_cv_dlopen_self=yes
10953:
10954: fi
10955:
10956: ;;
10957:
10958: *)
10959: echo "$as_me:$LINENO: checking for shl_load" >&5
10960: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10961: if test "${ac_cv_func_shl_load+set}" = set; then
10962: echo $ECHO_N "(cached) $ECHO_C" >&6
10963: else
10964: cat >conftest.$ac_ext <<_ACEOF
10965: /* confdefs.h. */
10966: _ACEOF
10967: cat confdefs.h >>conftest.$ac_ext
10968: cat >>conftest.$ac_ext <<_ACEOF
10969: /* end confdefs.h. */
10970: /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10971: For example, HP-UX 11i <limits.h> declares gettimeofday. */
10972: #define shl_load innocuous_shl_load
10973:
10974: /* System header to define __stub macros and hopefully few prototypes,
10975: which can conflict with char shl_load (); below.
10976: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10977: <limits.h> exists even on freestanding compilers. */
10978:
10979: #ifdef __STDC__
10980: # include <limits.h>
10981: #else
10982: # include <assert.h>
10983: #endif
10984:
10985: #undef shl_load
10986:
10987: /* Override any gcc2 internal prototype to avoid an error. */
10988: #ifdef __cplusplus
10989: extern "C"
10990: {
10991: #endif
10992: /* We use char because int might match the return type of a gcc2
10993: builtin and then its argument prototype would still apply. */
10994: char shl_load ();
10995: /* The GNU C library defines this for functions which it implements
10996: to always fail with ENOSYS. Some functions are actually named
10997: something starting with __ and the normal name is an alias. */
10998: #if defined (__stub_shl_load) || defined (__stub___shl_load)
10999: choke me
11000: #else
11001: char (*f) () = shl_load;
11002: #endif
11003: #ifdef __cplusplus
11004: }
11005: #endif
11006:
11007: int
11008: main ()
11009: {
11010: return f != shl_load;
11011: ;
11012: return 0;
11013: }
11014: _ACEOF
11015: rm -f conftest.$ac_objext conftest$ac_exeext
11016: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11017: (eval $ac_link) 2>conftest.er1
11018: ac_status=$?
11019: grep -v '^ *+' conftest.er1 >conftest.err
11020: rm -f conftest.er1
11021: cat conftest.err >&5
11022: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11023: (exit $ac_status); } &&
11024: { ac_try='test -z "$ac_c_werror_flag"
11025: || test ! -s conftest.err'
11026: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11027: (eval $ac_try) 2>&5
11028: ac_status=$?
11029: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030: (exit $ac_status); }; } &&
11031: { ac_try='test -s conftest$ac_exeext'
11032: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11033: (eval $ac_try) 2>&5
11034: ac_status=$?
11035: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11036: (exit $ac_status); }; }; then
11037: ac_cv_func_shl_load=yes
11038: else
11039: echo "$as_me: failed program was:" >&5
11040: sed 's/^/| /' conftest.$ac_ext >&5
11041:
11042: ac_cv_func_shl_load=no
11043: fi
11044: rm -f conftest.err conftest.$ac_objext \
11045: conftest$ac_exeext conftest.$ac_ext
11046: fi
11047: echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11048: echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11049: if test $ac_cv_func_shl_load = yes; then
11050: lt_cv_dlopen="shl_load"
11051: else
11052: echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11053: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11054: if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11055: echo $ECHO_N "(cached) $ECHO_C" >&6
11056: else
11057: ac_check_lib_save_LIBS=$LIBS
11058: LIBS="-ldld $LIBS"
11059: cat >conftest.$ac_ext <<_ACEOF
11060: /* confdefs.h. */
11061: _ACEOF
11062: cat confdefs.h >>conftest.$ac_ext
11063: cat >>conftest.$ac_ext <<_ACEOF
11064: /* end confdefs.h. */
11065:
11066: /* Override any gcc2 internal prototype to avoid an error. */
11067: #ifdef __cplusplus
11068: extern "C"
11069: #endif
11070: /* We use char because int might match the return type of a gcc2
11071: builtin and then its argument prototype would still apply. */
11072: char shl_load ();
11073: int
11074: main ()
11075: {
11076: shl_load ();
11077: ;
11078: return 0;
11079: }
11080: _ACEOF
11081: rm -f conftest.$ac_objext conftest$ac_exeext
11082: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11083: (eval $ac_link) 2>conftest.er1
11084: ac_status=$?
11085: grep -v '^ *+' conftest.er1 >conftest.err
11086: rm -f conftest.er1
11087: cat conftest.err >&5
11088: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11089: (exit $ac_status); } &&
11090: { ac_try='test -z "$ac_c_werror_flag"
11091: || test ! -s conftest.err'
11092: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11093: (eval $ac_try) 2>&5
11094: ac_status=$?
11095: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11096: (exit $ac_status); }; } &&
11097: { ac_try='test -s conftest$ac_exeext'
11098: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11099: (eval $ac_try) 2>&5
11100: ac_status=$?
11101: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11102: (exit $ac_status); }; }; then
11103: ac_cv_lib_dld_shl_load=yes
11104: else
11105: echo "$as_me: failed program was:" >&5
11106: sed 's/^/| /' conftest.$ac_ext >&5
11107:
11108: ac_cv_lib_dld_shl_load=no
11109: fi
11110: rm -f conftest.err conftest.$ac_objext \
11111: conftest$ac_exeext conftest.$ac_ext
11112: LIBS=$ac_check_lib_save_LIBS
11113: fi
11114: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11115: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11116: if test $ac_cv_lib_dld_shl_load = yes; then
11117: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11118: else
11119: echo "$as_me:$LINENO: checking for dlopen" >&5
11120: echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11121: if test "${ac_cv_func_dlopen+set}" = set; then
11122: echo $ECHO_N "(cached) $ECHO_C" >&6
11123: else
11124: cat >conftest.$ac_ext <<_ACEOF
11125: /* confdefs.h. */
11126: _ACEOF
11127: cat confdefs.h >>conftest.$ac_ext
11128: cat >>conftest.$ac_ext <<_ACEOF
11129: /* end confdefs.h. */
11130: /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11131: For example, HP-UX 11i <limits.h> declares gettimeofday. */
11132: #define dlopen innocuous_dlopen
11133:
11134: /* System header to define __stub macros and hopefully few prototypes,
11135: which can conflict with char dlopen (); below.
11136: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11137: <limits.h> exists even on freestanding compilers. */
11138:
11139: #ifdef __STDC__
11140: # include <limits.h>
11141: #else
11142: # include <assert.h>
11143: #endif
11144:
11145: #undef dlopen
11146:
11147: /* Override any gcc2 internal prototype to avoid an error. */
11148: #ifdef __cplusplus
11149: extern "C"
11150: {
11151: #endif
11152: /* We use char because int might match the return type of a gcc2
11153: builtin and then its argument prototype would still apply. */
11154: char dlopen ();
11155: /* The GNU C library defines this for functions which it implements
11156: to always fail with ENOSYS. Some functions are actually named
11157: something starting with __ and the normal name is an alias. */
11158: #if defined (__stub_dlopen) || defined (__stub___dlopen)
11159: choke me
11160: #else
11161: char (*f) () = dlopen;
11162: #endif
11163: #ifdef __cplusplus
11164: }
11165: #endif
11166:
11167: int
11168: main ()
11169: {
11170: return f != dlopen;
11171: ;
11172: return 0;
11173: }
11174: _ACEOF
11175: rm -f conftest.$ac_objext conftest$ac_exeext
11176: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11177: (eval $ac_link) 2>conftest.er1
11178: ac_status=$?
11179: grep -v '^ *+' conftest.er1 >conftest.err
11180: rm -f conftest.er1
11181: cat conftest.err >&5
11182: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11183: (exit $ac_status); } &&
11184: { ac_try='test -z "$ac_c_werror_flag"
11185: || test ! -s conftest.err'
11186: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11187: (eval $ac_try) 2>&5
11188: ac_status=$?
11189: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11190: (exit $ac_status); }; } &&
11191: { ac_try='test -s conftest$ac_exeext'
11192: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11193: (eval $ac_try) 2>&5
11194: ac_status=$?
11195: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11196: (exit $ac_status); }; }; then
11197: ac_cv_func_dlopen=yes
11198: else
11199: echo "$as_me: failed program was:" >&5
11200: sed 's/^/| /' conftest.$ac_ext >&5
11201:
11202: ac_cv_func_dlopen=no
11203: fi
11204: rm -f conftest.err conftest.$ac_objext \
11205: conftest$ac_exeext conftest.$ac_ext
11206: fi
11207: echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11208: echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11209: if test $ac_cv_func_dlopen = yes; then
11210: lt_cv_dlopen="dlopen"
11211: else
11212: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11213: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11214: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11215: echo $ECHO_N "(cached) $ECHO_C" >&6
11216: else
11217: ac_check_lib_save_LIBS=$LIBS
11218: LIBS="-ldl $LIBS"
11219: cat >conftest.$ac_ext <<_ACEOF
11220: /* confdefs.h. */
11221: _ACEOF
11222: cat confdefs.h >>conftest.$ac_ext
11223: cat >>conftest.$ac_ext <<_ACEOF
11224: /* end confdefs.h. */
11225:
11226: /* Override any gcc2 internal prototype to avoid an error. */
11227: #ifdef __cplusplus
11228: extern "C"
11229: #endif
11230: /* We use char because int might match the return type of a gcc2
11231: builtin and then its argument prototype would still apply. */
11232: char dlopen ();
11233: int
11234: main ()
11235: {
11236: dlopen ();
11237: ;
11238: return 0;
11239: }
11240: _ACEOF
11241: rm -f conftest.$ac_objext conftest$ac_exeext
11242: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11243: (eval $ac_link) 2>conftest.er1
11244: ac_status=$?
11245: grep -v '^ *+' conftest.er1 >conftest.err
11246: rm -f conftest.er1
11247: cat conftest.err >&5
11248: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11249: (exit $ac_status); } &&
11250: { ac_try='test -z "$ac_c_werror_flag"
11251: || test ! -s conftest.err'
11252: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11253: (eval $ac_try) 2>&5
11254: ac_status=$?
11255: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11256: (exit $ac_status); }; } &&
11257: { ac_try='test -s conftest$ac_exeext'
11258: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11259: (eval $ac_try) 2>&5
11260: ac_status=$?
11261: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262: (exit $ac_status); }; }; then
11263: ac_cv_lib_dl_dlopen=yes
11264: else
11265: echo "$as_me: failed program was:" >&5
11266: sed 's/^/| /' conftest.$ac_ext >&5
11267:
11268: ac_cv_lib_dl_dlopen=no
11269: fi
11270: rm -f conftest.err conftest.$ac_objext \
11271: conftest$ac_exeext conftest.$ac_ext
11272: LIBS=$ac_check_lib_save_LIBS
11273: fi
11274: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11275: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11276: if test $ac_cv_lib_dl_dlopen = yes; then
11277: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11278: else
11279: echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11280: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11281: if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11282: echo $ECHO_N "(cached) $ECHO_C" >&6
11283: else
11284: ac_check_lib_save_LIBS=$LIBS
11285: LIBS="-lsvld $LIBS"
11286: cat >conftest.$ac_ext <<_ACEOF
11287: /* confdefs.h. */
11288: _ACEOF
11289: cat confdefs.h >>conftest.$ac_ext
11290: cat >>conftest.$ac_ext <<_ACEOF
11291: /* end confdefs.h. */
11292:
11293: /* Override any gcc2 internal prototype to avoid an error. */
11294: #ifdef __cplusplus
11295: extern "C"
11296: #endif
11297: /* We use char because int might match the return type of a gcc2
11298: builtin and then its argument prototype would still apply. */
11299: char dlopen ();
11300: int
11301: main ()
11302: {
11303: dlopen ();
11304: ;
11305: return 0;
11306: }
11307: _ACEOF
11308: rm -f conftest.$ac_objext conftest$ac_exeext
11309: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11310: (eval $ac_link) 2>conftest.er1
11311: ac_status=$?
11312: grep -v '^ *+' conftest.er1 >conftest.err
11313: rm -f conftest.er1
11314: cat conftest.err >&5
11315: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11316: (exit $ac_status); } &&
11317: { ac_try='test -z "$ac_c_werror_flag"
11318: || test ! -s conftest.err'
11319: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11320: (eval $ac_try) 2>&5
11321: ac_status=$?
11322: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323: (exit $ac_status); }; } &&
11324: { ac_try='test -s conftest$ac_exeext'
11325: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11326: (eval $ac_try) 2>&5
11327: ac_status=$?
11328: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11329: (exit $ac_status); }; }; then
11330: ac_cv_lib_svld_dlopen=yes
11331: else
11332: echo "$as_me: failed program was:" >&5
11333: sed 's/^/| /' conftest.$ac_ext >&5
11334:
11335: ac_cv_lib_svld_dlopen=no
11336: fi
11337: rm -f conftest.err conftest.$ac_objext \
11338: conftest$ac_exeext conftest.$ac_ext
11339: LIBS=$ac_check_lib_save_LIBS
11340: fi
11341: echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11342: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11343: if test $ac_cv_lib_svld_dlopen = yes; then
11344: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11345: else
11346: echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11347: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11348: if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11349: echo $ECHO_N "(cached) $ECHO_C" >&6
11350: else
11351: ac_check_lib_save_LIBS=$LIBS
11352: LIBS="-ldld $LIBS"
11353: cat >conftest.$ac_ext <<_ACEOF
11354: /* confdefs.h. */
11355: _ACEOF
11356: cat confdefs.h >>conftest.$ac_ext
11357: cat >>conftest.$ac_ext <<_ACEOF
11358: /* end confdefs.h. */
11359:
11360: /* Override any gcc2 internal prototype to avoid an error. */
11361: #ifdef __cplusplus
11362: extern "C"
11363: #endif
11364: /* We use char because int might match the return type of a gcc2
11365: builtin and then its argument prototype would still apply. */
11366: char dld_link ();
11367: int
11368: main ()
11369: {
11370: dld_link ();
11371: ;
11372: return 0;
11373: }
11374: _ACEOF
11375: rm -f conftest.$ac_objext conftest$ac_exeext
11376: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11377: (eval $ac_link) 2>conftest.er1
11378: ac_status=$?
11379: grep -v '^ *+' conftest.er1 >conftest.err
11380: rm -f conftest.er1
11381: cat conftest.err >&5
11382: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11383: (exit $ac_status); } &&
11384: { ac_try='test -z "$ac_c_werror_flag"
11385: || test ! -s conftest.err'
11386: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11387: (eval $ac_try) 2>&5
11388: ac_status=$?
11389: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11390: (exit $ac_status); }; } &&
11391: { ac_try='test -s conftest$ac_exeext'
11392: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11393: (eval $ac_try) 2>&5
11394: ac_status=$?
11395: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11396: (exit $ac_status); }; }; then
11397: ac_cv_lib_dld_dld_link=yes
11398: else
11399: echo "$as_me: failed program was:" >&5
11400: sed 's/^/| /' conftest.$ac_ext >&5
11401:
11402: ac_cv_lib_dld_dld_link=no
11403: fi
11404: rm -f conftest.err conftest.$ac_objext \
11405: conftest$ac_exeext conftest.$ac_ext
11406: LIBS=$ac_check_lib_save_LIBS
11407: fi
11408: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11409: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11410: if test $ac_cv_lib_dld_dld_link = yes; then
11411: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11412: fi
11413:
11414:
11415: fi
11416:
11417:
11418: fi
11419:
11420:
11421: fi
11422:
11423:
11424: fi
11425:
11426:
11427: fi
11428:
11429: ;;
11430: esac
11431:
11432: if test "x$lt_cv_dlopen" != xno; then
11433: enable_dlopen=yes
11434: else
11435: enable_dlopen=no
11436: fi
11437:
11438: case $lt_cv_dlopen in
11439: dlopen)
11440: save_CPPFLAGS="$CPPFLAGS"
11441: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11442:
11443: save_LDFLAGS="$LDFLAGS"
11444: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11445:
11446: save_LIBS="$LIBS"
11447: LIBS="$lt_cv_dlopen_libs $LIBS"
11448:
11449: echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11450: echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11451: if test "${lt_cv_dlopen_self+set}" = set; then
11452: echo $ECHO_N "(cached) $ECHO_C" >&6
11453: else
11454: if test "$cross_compiling" = yes; then :
11455: lt_cv_dlopen_self=cross
11456: else
11457: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11458: lt_status=$lt_dlunknown
11459: cat > conftest.$ac_ext <<_LT_EOF
11460: #line $LINENO "configure"
11461: #include "confdefs.h"
11462:
11463: #if HAVE_DLFCN_H
11464: #include <dlfcn.h>
11465: #endif
11466:
11467: #include <stdio.h>
11468:
11469: #ifdef RTLD_GLOBAL
11470: # define LT_DLGLOBAL RTLD_GLOBAL
11471: #else
11472: # ifdef DL_GLOBAL
11473: # define LT_DLGLOBAL DL_GLOBAL
11474: # else
11475: # define LT_DLGLOBAL 0
11476: # endif
11477: #endif
11478:
11479: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11480: find out it does not work in some platform. */
11481: #ifndef LT_DLLAZY_OR_NOW
11482: # ifdef RTLD_LAZY
11483: # define LT_DLLAZY_OR_NOW RTLD_LAZY
11484: # else
11485: # ifdef DL_LAZY
11486: # define LT_DLLAZY_OR_NOW DL_LAZY
11487: # else
11488: # ifdef RTLD_NOW
11489: # define LT_DLLAZY_OR_NOW RTLD_NOW
11490: # else
11491: # ifdef DL_NOW
11492: # define LT_DLLAZY_OR_NOW DL_NOW
11493: # else
11494: # define LT_DLLAZY_OR_NOW 0
11495: # endif
11496: # endif
11497: # endif
11498: # endif
11499: #endif
11500:
11501: /* When -fvisbility=hidden is used, assume the code has been annotated
11502: correspondingly for the symbols needed. */
11503: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11504: int fnord () __attribute__((visibility("default")));
11505: #endif
11506:
11507: int fnord () { return 42; }
11508: int main ()
11509: {
11510: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11511: int status = $lt_dlunknown;
11512:
11513: if (self)
11514: {
11515: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11516: else
11517: {
11518: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11519: else puts (dlerror ());
11520: }
11521: /* dlclose (self); */
11522: }
11523: else
11524: puts (dlerror ());
11525:
11526: return status;
11527: }
11528: _LT_EOF
11529: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11530: (eval $ac_link) 2>&5
11531: ac_status=$?
11532: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11533: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11534: (./conftest; exit; ) >&5 2>/dev/null
11535: lt_status=$?
11536: case x$lt_status in
11537: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11538: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11539: x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11540: esac
11541: else :
11542: # compilation failed
11543: lt_cv_dlopen_self=no
11544: fi
11545: fi
11546: rm -fr conftest*
11547:
11548:
11549: fi
11550: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11551: echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11552:
11553: if test "x$lt_cv_dlopen_self" = xyes; then
11554: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11555: echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11556: echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11557: if test "${lt_cv_dlopen_self_static+set}" = set; then
11558: echo $ECHO_N "(cached) $ECHO_C" >&6
11559: else
11560: if test "$cross_compiling" = yes; then :
11561: lt_cv_dlopen_self_static=cross
11562: else
11563: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11564: lt_status=$lt_dlunknown
11565: cat > conftest.$ac_ext <<_LT_EOF
11566: #line $LINENO "configure"
11567: #include "confdefs.h"
11568:
11569: #if HAVE_DLFCN_H
11570: #include <dlfcn.h>
11571: #endif
11572:
11573: #include <stdio.h>
11574:
11575: #ifdef RTLD_GLOBAL
11576: # define LT_DLGLOBAL RTLD_GLOBAL
11577: #else
11578: # ifdef DL_GLOBAL
11579: # define LT_DLGLOBAL DL_GLOBAL
11580: # else
11581: # define LT_DLGLOBAL 0
11582: # endif
11583: #endif
11584:
11585: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11586: find out it does not work in some platform. */
11587: #ifndef LT_DLLAZY_OR_NOW
11588: # ifdef RTLD_LAZY
11589: # define LT_DLLAZY_OR_NOW RTLD_LAZY
11590: # else
11591: # ifdef DL_LAZY
11592: # define LT_DLLAZY_OR_NOW DL_LAZY
11593: # else
11594: # ifdef RTLD_NOW
11595: # define LT_DLLAZY_OR_NOW RTLD_NOW
11596: # else
11597: # ifdef DL_NOW
11598: # define LT_DLLAZY_OR_NOW DL_NOW
11599: # else
11600: # define LT_DLLAZY_OR_NOW 0
11601: # endif
11602: # endif
11603: # endif
11604: # endif
11605: #endif
11606:
11607: /* When -fvisbility=hidden is used, assume the code has been annotated
11608: correspondingly for the symbols needed. */
11609: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11610: int fnord () __attribute__((visibility("default")));
11611: #endif
11612:
11613: int fnord () { return 42; }
11614: int main ()
11615: {
11616: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11617: int status = $lt_dlunknown;
11618:
11619: if (self)
11620: {
11621: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11622: else
11623: {
11624: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11625: else puts (dlerror ());
11626: }
11627: /* dlclose (self); */
11628: }
11629: else
11630: puts (dlerror ());
11631:
11632: return status;
11633: }
11634: _LT_EOF
11635: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11636: (eval $ac_link) 2>&5
11637: ac_status=$?
11638: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11639: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11640: (./conftest; exit; ) >&5 2>/dev/null
11641: lt_status=$?
11642: case x$lt_status in
11643: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11644: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11645: x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11646: esac
11647: else :
11648: # compilation failed
11649: lt_cv_dlopen_self_static=no
11650: fi
11651: fi
11652: rm -fr conftest*
11653:
11654:
11655: fi
11656: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11657: echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11658: fi
11659:
11660: CPPFLAGS="$save_CPPFLAGS"
11661: LDFLAGS="$save_LDFLAGS"
11662: LIBS="$save_LIBS"
11663: ;;
11664: esac
11665:
11666: case $lt_cv_dlopen_self in
11667: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11668: *) enable_dlopen_self=unknown ;;
11669: esac
11670:
11671: case $lt_cv_dlopen_self_static in
11672: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11673: *) enable_dlopen_self_static=unknown ;;
11674: esac
11675: fi
11676:
11677:
11678:
11679:
11680:
11681:
11682:
11683:
11684:
11685:
11686:
11687:
11688:
11689:
11690:
11691:
11692:
11693: striplib=
11694: old_striplib=
11695: echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11696: echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11697: if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11698: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11699: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11700: echo "$as_me:$LINENO: result: yes" >&5
11701: echo "${ECHO_T}yes" >&6
11702: else
11703: # FIXME - insert some real tests, host_os isn't really good enough
11704: case $host_os in
11705: darwin*)
11706: if test -n "$STRIP" ; then
11707: striplib="$STRIP -x"
11708: old_striplib="$STRIP -S"
11709: echo "$as_me:$LINENO: result: yes" >&5
11710: echo "${ECHO_T}yes" >&6
11711: else
11712: echo "$as_me:$LINENO: result: no" >&5
11713: echo "${ECHO_T}no" >&6
11714: fi
11715: ;;
11716: *)
11717: echo "$as_me:$LINENO: result: no" >&5
11718: echo "${ECHO_T}no" >&6
11719: ;;
11720: esac
11721: fi
11722:
11723:
11724:
11725:
11726:
11727:
11728:
11729:
11730:
11731:
11732:
11733:
11734: # Report which library types will actually be built
11735: echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11736: echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11737: echo "$as_me:$LINENO: result: $can_build_shared" >&5
11738: echo "${ECHO_T}$can_build_shared" >&6
11739:
11740: echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11741: echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11742: test "$can_build_shared" = "no" && enable_shared=no
11743:
11744: # On AIX, shared libraries and static libraries use the same namespace, and
11745: # are all built from PIC.
11746: case $host_os in
11747: aix3*)
11748: test "$enable_shared" = yes && enable_static=no
11749: if test -n "$RANLIB"; then
11750: archive_cmds="$archive_cmds~\$RANLIB \$lib"
11751: postinstall_cmds='$RANLIB $lib'
11752: fi
11753: ;;
11754:
11755: aix[4-9]*)
11756: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11757: test "$enable_shared" = yes && enable_static=no
11758: fi
11759: ;;
11760: esac
11761: echo "$as_me:$LINENO: result: $enable_shared" >&5
11762: echo "${ECHO_T}$enable_shared" >&6
11763:
11764: echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11765: echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11766: # Make sure either enable_shared or enable_static is yes.
11767: test "$enable_shared" = yes || enable_static=yes
11768: echo "$as_me:$LINENO: result: $enable_static" >&5
11769: echo "${ECHO_T}$enable_static" >&6
11770:
11771:
11772:
11773:
11774: fi
11775: ac_ext=c
11776: ac_cpp='$CPP $CPPFLAGS'
11777: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11778: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11779: ac_compiler_gnu=$ac_cv_c_compiler_gnu
11780:
11781: CC="$lt_save_CC"
11782:
11783: if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11784: ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11785: (test "X$CXX" != "Xg++"))) ; then
11786: ac_ext=cc
11787: ac_cpp='$CXXCPP $CPPFLAGS'
11788: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11789: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11790: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11791: echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
11792: echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
11793: if test -z "$CXXCPP"; then
11794: if test "${ac_cv_prog_CXXCPP+set}" = set; then
11795: echo $ECHO_N "(cached) $ECHO_C" >&6
11796: else
11797: # Double quotes because CXXCPP needs to be expanded
11798: for CXXCPP in "$CXX -E" "/lib/cpp"
11799: do
11800: ac_preproc_ok=false
11801: for ac_cxx_preproc_warn_flag in '' yes
11802: do
11803: # Use a header file that comes with gcc, so configuring glibc
11804: # with a fresh cross-compiler works.
11805: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11806: # <limits.h> exists even on freestanding compilers.
11807: # On the NeXT, cc -E runs the code through the compiler's parser,
11808: # not just through cpp. "Syntax error" is here to catch this case.
11809: cat >conftest.$ac_ext <<_ACEOF
11810: /* confdefs.h. */
11811: _ACEOF
11812: cat confdefs.h >>conftest.$ac_ext
11813: cat >>conftest.$ac_ext <<_ACEOF
11814: /* end confdefs.h. */
11815: #ifdef __STDC__
11816: # include <limits.h>
11817: #else
11818: # include <assert.h>
11819: #endif
11820: Syntax error
11821: _ACEOF
11822: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11823: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11824: ac_status=$?
11825: grep -v '^ *+' conftest.er1 >conftest.err
11826: rm -f conftest.er1
11827: cat conftest.err >&5
11828: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11829: (exit $ac_status); } >/dev/null; then
11830: if test -s conftest.err; then
11831: ac_cpp_err=$ac_cxx_preproc_warn_flag
11832: ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11833: else
11834: ac_cpp_err=
11835: fi
11836: else
11837: ac_cpp_err=yes
11838: fi
11839: if test -z "$ac_cpp_err"; then
11840: :
11841: else
11842: echo "$as_me: failed program was:" >&5
11843: sed 's/^/| /' conftest.$ac_ext >&5
11844:
11845: # Broken: fails on valid input.
11846: continue
11847: fi
11848: rm -f conftest.err conftest.$ac_ext
11849:
11850: # OK, works on sane cases. Now check whether non-existent headers
11851: # can be detected and how.
11852: cat >conftest.$ac_ext <<_ACEOF
11853: /* confdefs.h. */
11854: _ACEOF
11855: cat confdefs.h >>conftest.$ac_ext
11856: cat >>conftest.$ac_ext <<_ACEOF
11857: /* end confdefs.h. */
11858: #include <ac_nonexistent.h>
11859: _ACEOF
11860: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11861: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11862: ac_status=$?
11863: grep -v '^ *+' conftest.er1 >conftest.err
11864: rm -f conftest.er1
11865: cat conftest.err >&5
11866: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11867: (exit $ac_status); } >/dev/null; then
11868: if test -s conftest.err; then
11869: ac_cpp_err=$ac_cxx_preproc_warn_flag
11870: ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11871: else
11872: ac_cpp_err=
11873: fi
11874: else
11875: ac_cpp_err=yes
11876: fi
11877: if test -z "$ac_cpp_err"; then
11878: # Broken: success on invalid input.
11879: continue
11880: else
11881: echo "$as_me: failed program was:" >&5
11882: sed 's/^/| /' conftest.$ac_ext >&5
11883:
11884: # Passes both tests.
11885: ac_preproc_ok=:
11886: break
11887: fi
11888: rm -f conftest.err conftest.$ac_ext
11889:
11890: done
11891: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11892: rm -f conftest.err conftest.$ac_ext
11893: if $ac_preproc_ok; then
11894: break
11895: fi
11896:
11897: done
11898: ac_cv_prog_CXXCPP=$CXXCPP
11899:
11900: fi
11901: CXXCPP=$ac_cv_prog_CXXCPP
11902: else
11903: ac_cv_prog_CXXCPP=$CXXCPP
11904: fi
11905: echo "$as_me:$LINENO: result: $CXXCPP" >&5
11906: echo "${ECHO_T}$CXXCPP" >&6
11907: ac_preproc_ok=false
11908: for ac_cxx_preproc_warn_flag in '' yes
11909: do
11910: # Use a header file that comes with gcc, so configuring glibc
11911: # with a fresh cross-compiler works.
11912: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11913: # <limits.h> exists even on freestanding compilers.
11914: # On the NeXT, cc -E runs the code through the compiler's parser,
11915: # not just through cpp. "Syntax error" is here to catch this case.
11916: cat >conftest.$ac_ext <<_ACEOF
11917: /* confdefs.h. */
11918: _ACEOF
11919: cat confdefs.h >>conftest.$ac_ext
11920: cat >>conftest.$ac_ext <<_ACEOF
11921: /* end confdefs.h. */
11922: #ifdef __STDC__
11923: # include <limits.h>
11924: #else
11925: # include <assert.h>
11926: #endif
11927: Syntax error
11928: _ACEOF
11929: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11930: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11931: ac_status=$?
11932: grep -v '^ *+' conftest.er1 >conftest.err
11933: rm -f conftest.er1
11934: cat conftest.err >&5
11935: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11936: (exit $ac_status); } >/dev/null; then
11937: if test -s conftest.err; then
11938: ac_cpp_err=$ac_cxx_preproc_warn_flag
11939: ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11940: else
11941: ac_cpp_err=
11942: fi
11943: else
11944: ac_cpp_err=yes
11945: fi
11946: if test -z "$ac_cpp_err"; then
11947: :
11948: else
11949: echo "$as_me: failed program was:" >&5
11950: sed 's/^/| /' conftest.$ac_ext >&5
11951:
11952: # Broken: fails on valid input.
11953: continue
11954: fi
11955: rm -f conftest.err conftest.$ac_ext
11956:
11957: # OK, works on sane cases. Now check whether non-existent headers
11958: # can be detected and how.
11959: cat >conftest.$ac_ext <<_ACEOF
11960: /* confdefs.h. */
11961: _ACEOF
11962: cat confdefs.h >>conftest.$ac_ext
11963: cat >>conftest.$ac_ext <<_ACEOF
11964: /* end confdefs.h. */
11965: #include <ac_nonexistent.h>
11966: _ACEOF
11967: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11968: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11969: ac_status=$?
11970: grep -v '^ *+' conftest.er1 >conftest.err
11971: rm -f conftest.er1
11972: cat conftest.err >&5
11973: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974: (exit $ac_status); } >/dev/null; then
11975: if test -s conftest.err; then
11976: ac_cpp_err=$ac_cxx_preproc_warn_flag
11977: ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11978: else
11979: ac_cpp_err=
11980: fi
11981: else
11982: ac_cpp_err=yes
11983: fi
11984: if test -z "$ac_cpp_err"; then
11985: # Broken: success on invalid input.
11986: continue
11987: else
11988: echo "$as_me: failed program was:" >&5
11989: sed 's/^/| /' conftest.$ac_ext >&5
11990:
11991: # Passes both tests.
11992: ac_preproc_ok=:
11993: break
11994: fi
11995: rm -f conftest.err conftest.$ac_ext
11996:
11997: done
11998: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11999: rm -f conftest.err conftest.$ac_ext
12000: if $ac_preproc_ok; then
12001: :
12002: else
12003: { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12004: See \`config.log' for more details." >&5
12005: echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12006: See \`config.log' for more details." >&2;}
12007: { (exit 1); exit 1; }; }
12008: fi
12009:
12010: ac_ext=c
12011: ac_cpp='$CPP $CPPFLAGS'
12012: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12013: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12014: ac_compiler_gnu=$ac_cv_c_compiler_gnu
12015:
12016: else
12017: _lt_caught_CXX_error=yes
12018: fi
12019:
12020: ac_ext=cc
12021: ac_cpp='$CXXCPP $CPPFLAGS'
12022: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12023: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12024: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12025:
12026: archive_cmds_need_lc_CXX=no
12027: allow_undefined_flag_CXX=
12028: always_export_symbols_CXX=no
12029: archive_expsym_cmds_CXX=
12030: compiler_needs_object_CXX=no
12031: export_dynamic_flag_spec_CXX=
12032: hardcode_direct_CXX=no
12033: hardcode_direct_absolute_CXX=no
12034: hardcode_libdir_flag_spec_CXX=
12035: hardcode_libdir_separator_CXX=
12036: hardcode_minus_L_CXX=no
12037: hardcode_shlibpath_var_CXX=unsupported
12038: hardcode_automatic_CXX=no
12039: inherit_rpath_CXX=no
12040: module_cmds_CXX=
12041: module_expsym_cmds_CXX=
12042: link_all_deplibs_CXX=unknown
12043: old_archive_cmds_CXX=$old_archive_cmds
12044: reload_flag_CXX=$reload_flag
12045: reload_cmds_CXX=$reload_cmds
12046: no_undefined_flag_CXX=
12047: whole_archive_flag_spec_CXX=
12048: enable_shared_with_static_runtimes_CXX=no
12049:
12050: # Source file extension for C++ test sources.
12051: ac_ext=cpp
12052:
12053: # Object file extension for compiled C++ test sources.
12054: objext=o
12055: objext_CXX=$objext
12056:
12057: # No sense in running all these tests if we already determined that
12058: # the CXX compiler isn't working. Some variables (like enable_shared)
12059: # are currently assumed to apply to all compilers on this platform,
12060: # and will be corrupted by setting them based on a non-working compiler.
12061: if test "$_lt_caught_CXX_error" != yes; then
12062: # Code to be used in simple compile tests
12063: lt_simple_compile_test_code="int some_variable = 0;"
12064:
12065: # Code to be used in simple link tests
12066: lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12067:
12068: # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12069:
12070:
12071:
12072:
12073:
12074:
12075: # If no C compiler was specified, use CC.
12076: LTCC=${LTCC-"$CC"}
12077:
12078: # If no C compiler flags were specified, use CFLAGS.
12079: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12080:
12081: # Allow CC to be a program name with arguments.
12082: compiler=$CC
12083:
12084:
12085: # save warnings/boilerplate of simple test code
12086: ac_outfile=conftest.$ac_objext
12087: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12088: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12089: _lt_compiler_boilerplate=`cat conftest.err`
12090: $RM conftest*
12091:
12092: ac_outfile=conftest.$ac_objext
12093: echo "$lt_simple_link_test_code" >conftest.$ac_ext
12094: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12095: _lt_linker_boilerplate=`cat conftest.err`
12096: $RM -r conftest*
12097:
12098:
12099: # Allow CC to be a program name with arguments.
12100: lt_save_CC=$CC
12101: lt_save_CFLAGS=$CFLAGS
12102: lt_save_LD=$LD
12103: lt_save_GCC=$GCC
12104: GCC=$GXX
12105: lt_save_with_gnu_ld=$with_gnu_ld
12106: lt_save_path_LD=$lt_cv_path_LD
12107: if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12108: lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12109: else
12110: $as_unset lt_cv_prog_gnu_ld
12111: fi
12112: if test -n "${lt_cv_path_LDCXX+set}"; then
12113: lt_cv_path_LD=$lt_cv_path_LDCXX
12114: else
12115: $as_unset lt_cv_path_LD
12116: fi
12117: test -z "${LDCXX+set}" || LD=$LDCXX
12118: CC=${CXX-"c++"}
12119: CFLAGS=$CXXFLAGS
12120: compiler=$CC
12121: compiler_CXX=$CC
12122: for cc_temp in $compiler""; do
12123: case $cc_temp in
12124: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12125: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12126: \-*) ;;
12127: *) break;;
12128: esac
12129: done
12130: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12131:
12132:
12133: if test -n "$compiler"; then
12134: # We don't want -fno-exception when compiling C++ code, so set the
12135: # no_builtin_flag separately
12136: if test "$GXX" = yes; then
12137: lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12138: else
12139: lt_prog_compiler_no_builtin_flag_CXX=
12140: fi
12141:
12142: if test "$GXX" = yes; then
12143: # Set up default GNU C++ configuration
12144:
12145:
12146:
12147: # Check whether --with-gnu-ld or --without-gnu-ld was given.
12148: if test "${with_gnu_ld+set}" = set; then
12149: withval="$with_gnu_ld"
12150: test "$withval" = no || with_gnu_ld=yes
12151: else
12152: with_gnu_ld=no
12153: fi;
12154: ac_prog=ld
12155: if test "$GCC" = yes; then
12156: # Check if gcc -print-prog-name=ld gives a path.
12157: echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12158: echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
12159: case $host in
12160: *-*-mingw*)
12161: # gcc leaves a trailing carriage return which upsets mingw
12162: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12163: *)
12164: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12165: esac
12166: case $ac_prog in
12167: # Accept absolute paths.
12168: [\\/]* | ?:[\\/]*)
12169: re_direlt='/[^/][^/]*/\.\./'
12170: # Canonicalize the pathname of ld
12171: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12172: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12173: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12174: done
12175: test -z "$LD" && LD="$ac_prog"
12176: ;;
12177: "")
12178: # If it fails, then pretend we aren't using GCC.
12179: ac_prog=ld
12180: ;;
12181: *)
12182: # If it is relative, then search for the first ld in PATH.
12183: with_gnu_ld=unknown
12184: ;;
12185: esac
12186: elif test "$with_gnu_ld" = yes; then
12187: echo "$as_me:$LINENO: checking for GNU ld" >&5
12188: echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
12189: else
12190: echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12191: echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
12192: fi
12193: if test "${lt_cv_path_LD+set}" = set; then
12194: echo $ECHO_N "(cached) $ECHO_C" >&6
12195: else
12196: if test -z "$LD"; then
12197: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12198: for ac_dir in $PATH; do
12199: IFS="$lt_save_ifs"
12200: test -z "$ac_dir" && ac_dir=.
12201: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12202: lt_cv_path_LD="$ac_dir/$ac_prog"
12203: # Check to see if the program is GNU ld. I'd rather use --version,
12204: # but apparently some variants of GNU ld only accept -v.
12205: # Break only if it was the GNU/non-GNU ld that we prefer.
12206: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12207: *GNU* | *'with BFD'*)
12208: test "$with_gnu_ld" != no && break
12209: ;;
12210: *)
12211: test "$with_gnu_ld" != yes && break
12212: ;;
12213: esac
12214: fi
12215: done
12216: IFS="$lt_save_ifs"
12217: else
12218: lt_cv_path_LD="$LD" # Let the user override the test with a path.
12219: fi
12220: fi
12221:
12222: LD="$lt_cv_path_LD"
12223: if test -n "$LD"; then
12224: echo "$as_me:$LINENO: result: $LD" >&5
12225: echo "${ECHO_T}$LD" >&6
12226: else
12227: echo "$as_me:$LINENO: result: no" >&5
12228: echo "${ECHO_T}no" >&6
12229: fi
12230: test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12231: echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12232: { (exit 1); exit 1; }; }
12233: echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12234: echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
12235: if test "${lt_cv_prog_gnu_ld+set}" = set; then
12236: echo $ECHO_N "(cached) $ECHO_C" >&6
12237: else
12238: # I'd rather use --version here, but apparently some GNU lds only accept -v.
12239: case `$LD -v 2>&1 </dev/null` in
12240: *GNU* | *'with BFD'*)
12241: lt_cv_prog_gnu_ld=yes
12242: ;;
12243: *)
12244: lt_cv_prog_gnu_ld=no
12245: ;;
12246: esac
12247: fi
12248: echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12249: echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
12250: with_gnu_ld=$lt_cv_prog_gnu_ld
12251:
12252:
12253:
12254:
12255:
12256:
12257:
12258: # Check if GNU C++ uses GNU ld as the underlying linker, since the
12259: # archiving commands below assume that GNU ld is being used.
12260: if test "$with_gnu_ld" = yes; then
12261: archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12262: 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'
12263:
12264: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12265: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12266:
12267: # If archive_cmds runs LD, not CC, wlarc should be empty
12268: # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12269: # investigate it a little bit more. (MM)
12270: wlarc='${wl}'
12271:
12272: # ancient GNU ld didn't support --whole-archive et. al.
12273: if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12274: $GREP 'no-whole-archive' > /dev/null; then
12275: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12276: else
12277: whole_archive_flag_spec_CXX=
12278: fi
12279: else
12280: with_gnu_ld=no
12281: wlarc=
12282:
12283: # A generic and very simple default shared library creation
12284: # command for GNU C++ for the case where it uses the native
12285: # linker, instead of GNU ld. If possible, this setting should
12286: # overridden to take advantage of the native linker features on
12287: # the platform it is being used on.
12288: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12289: fi
12290:
12291: # Commands to make compiler produce verbose output that lists
12292: # what "hidden" libraries, object files and flags are used when
12293: # linking a shared library.
12294: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12295:
12296: else
12297: GXX=no
12298: with_gnu_ld=no
12299: wlarc=
12300: fi
12301:
12302: # PORTME: fill in a description of your system's C++ link characteristics
12303: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12304: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12305: ld_shlibs_CXX=yes
12306: case $host_os in
12307: aix3*)
12308: # FIXME: insert proper C++ library support
12309: ld_shlibs_CXX=no
12310: ;;
12311: aix[4-9]*)
12312: if test "$host_cpu" = ia64; then
12313: # On IA64, the linker does run time linking by default, so we don't
12314: # have to do anything special.
12315: aix_use_runtimelinking=no
12316: exp_sym_flag='-Bexport'
12317: no_entry_flag=""
12318: else
12319: aix_use_runtimelinking=no
12320:
12321: # Test if we are trying to use run time linking or normal
12322: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12323: # need to do runtime linking.
12324: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12325: for ld_flag in $LDFLAGS; do
12326: case $ld_flag in
12327: *-brtl*)
12328: aix_use_runtimelinking=yes
12329: break
12330: ;;
12331: esac
12332: done
12333: ;;
12334: esac
12335:
12336: exp_sym_flag='-bexport'
12337: no_entry_flag='-bnoentry'
12338: fi
12339:
12340: # When large executables or shared objects are built, AIX ld can
12341: # have problems creating the table of contents. If linking a library
12342: # or program results in "error TOC overflow" add -mminimal-toc to
12343: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12344: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12345:
12346: archive_cmds_CXX=''
12347: hardcode_direct_CXX=yes
12348: hardcode_direct_absolute_CXX=yes
12349: hardcode_libdir_separator_CXX=':'
12350: link_all_deplibs_CXX=yes
12351: file_list_spec_CXX='${wl}-f,'
12352:
12353: if test "$GXX" = yes; then
12354: case $host_os in aix4.[012]|aix4.[012].*)
12355: # We only want to do this on AIX 4.2 and lower, the check
12356: # below for broken collect2 doesn't work under 4.3+
12357: collect2name=`${CC} -print-prog-name=collect2`
12358: if test -f "$collect2name" &&
12359: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12360: then
12361: # We have reworked collect2
12362: :
12363: else
12364: # We have old collect2
12365: hardcode_direct_CXX=unsupported
12366: # It fails to find uninstalled libraries when the uninstalled
12367: # path is not listed in the libpath. Setting hardcode_minus_L
12368: # to unsupported forces relinking
12369: hardcode_minus_L_CXX=yes
12370: hardcode_libdir_flag_spec_CXX='-L$libdir'
12371: hardcode_libdir_separator_CXX=
12372: fi
12373: esac
12374: shared_flag='-shared'
12375: if test "$aix_use_runtimelinking" = yes; then
12376: shared_flag="$shared_flag "'${wl}-G'
12377: fi
12378: else
12379: # not using gcc
12380: if test "$host_cpu" = ia64; then
12381: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12382: # chokes on -Wl,-G. The following line is correct:
12383: shared_flag='-G'
12384: else
12385: if test "$aix_use_runtimelinking" = yes; then
12386: shared_flag='${wl}-G'
12387: else
12388: shared_flag='${wl}-bM:SRE'
12389: fi
12390: fi
12391: fi
12392:
12393: export_dynamic_flag_spec_CXX='${wl}-bexpall'
12394: # It seems that -bexpall does not export symbols beginning with
12395: # underscore (_), so it is better to generate a list of symbols to
12396: # export.
12397: always_export_symbols_CXX=yes
12398: if test "$aix_use_runtimelinking" = yes; then
12399: # Warning - without using the other runtime loading flags (-brtl),
12400: # -berok will link without error, but may produce a broken library.
12401: allow_undefined_flag_CXX='-berok'
12402: # Determine the default libpath from the value encoded in an empty
12403: # executable.
12404: if test "${lt_cv_aix_libpath+set}" = set; then
12405: aix_libpath=$lt_cv_aix_libpath
12406: else
12407: if test "${lt_cv_aix_libpath__CXX+set}" = set; then
12408: echo $ECHO_N "(cached) $ECHO_C" >&6
12409: else
12410: cat >conftest.$ac_ext <<_ACEOF
12411: /* confdefs.h. */
12412: _ACEOF
12413: cat confdefs.h >>conftest.$ac_ext
12414: cat >>conftest.$ac_ext <<_ACEOF
12415: /* end confdefs.h. */
12416:
12417: int
12418: main ()
12419: {
12420:
12421: ;
12422: return 0;
12423: }
12424: _ACEOF
12425: rm -f conftest.$ac_objext conftest$ac_exeext
12426: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12427: (eval $ac_link) 2>conftest.er1
12428: ac_status=$?
12429: grep -v '^ *+' conftest.er1 >conftest.err
12430: rm -f conftest.er1
12431: cat conftest.err >&5
12432: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433: (exit $ac_status); } &&
12434: { ac_try='test -z "$ac_cxx_werror_flag"
12435: || test ! -s conftest.err'
12436: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12437: (eval $ac_try) 2>&5
12438: ac_status=$?
12439: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440: (exit $ac_status); }; } &&
12441: { ac_try='test -s conftest$ac_exeext'
12442: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12443: (eval $ac_try) 2>&5
12444: ac_status=$?
12445: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12446: (exit $ac_status); }; }; then
12447:
12448: lt_aix_libpath_sed='
12449: /Import File Strings/,/^$/ {
12450: /^0/ {
12451: s/^0 *\([^ ]*\) *$/\1/
12452: p
12453: }
12454: }'
12455: lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12456: # Check for a 64-bit object if we didn't find anything.
12457: if test -z "$lt_cv_aix_libpath__CXX"; then
12458: lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12459: fi
12460: else
12461: echo "$as_me: failed program was:" >&5
12462: sed 's/^/| /' conftest.$ac_ext >&5
12463:
12464: fi
12465: rm -f conftest.err conftest.$ac_objext \
12466: conftest$ac_exeext conftest.$ac_ext
12467: if test -z "$lt_cv_aix_libpath__CXX"; then
12468: lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12469: fi
12470:
12471: fi
12472:
12473: aix_libpath=$lt_cv_aix_libpath__CXX
12474: fi
12475:
12476: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12477:
12478: 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"
12479: else
12480: if test "$host_cpu" = ia64; then
12481: hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12482: allow_undefined_flag_CXX="-z nodefs"
12483: 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"
12484: else
12485: # Determine the default libpath from the value encoded in an
12486: # empty executable.
12487: if test "${lt_cv_aix_libpath+set}" = set; then
12488: aix_libpath=$lt_cv_aix_libpath
12489: else
12490: if test "${lt_cv_aix_libpath__CXX+set}" = set; then
12491: echo $ECHO_N "(cached) $ECHO_C" >&6
12492: else
12493: cat >conftest.$ac_ext <<_ACEOF
12494: /* confdefs.h. */
12495: _ACEOF
12496: cat confdefs.h >>conftest.$ac_ext
12497: cat >>conftest.$ac_ext <<_ACEOF
12498: /* end confdefs.h. */
12499:
12500: int
12501: main ()
12502: {
12503:
12504: ;
12505: return 0;
12506: }
12507: _ACEOF
12508: rm -f conftest.$ac_objext conftest$ac_exeext
12509: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12510: (eval $ac_link) 2>conftest.er1
12511: ac_status=$?
12512: grep -v '^ *+' conftest.er1 >conftest.err
12513: rm -f conftest.er1
12514: cat conftest.err >&5
12515: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516: (exit $ac_status); } &&
12517: { ac_try='test -z "$ac_cxx_werror_flag"
12518: || test ! -s conftest.err'
12519: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12520: (eval $ac_try) 2>&5
12521: ac_status=$?
12522: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523: (exit $ac_status); }; } &&
12524: { ac_try='test -s conftest$ac_exeext'
12525: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12526: (eval $ac_try) 2>&5
12527: ac_status=$?
12528: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529: (exit $ac_status); }; }; then
12530:
12531: lt_aix_libpath_sed='
12532: /Import File Strings/,/^$/ {
12533: /^0/ {
12534: s/^0 *\([^ ]*\) *$/\1/
12535: p
12536: }
12537: }'
12538: lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12539: # Check for a 64-bit object if we didn't find anything.
12540: if test -z "$lt_cv_aix_libpath__CXX"; then
12541: lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12542: fi
12543: else
12544: echo "$as_me: failed program was:" >&5
12545: sed 's/^/| /' conftest.$ac_ext >&5
12546:
12547: fi
12548: rm -f conftest.err conftest.$ac_objext \
12549: conftest$ac_exeext conftest.$ac_ext
12550: if test -z "$lt_cv_aix_libpath__CXX"; then
12551: lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12552: fi
12553:
12554: fi
12555:
12556: aix_libpath=$lt_cv_aix_libpath__CXX
12557: fi
12558:
12559: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12560: # Warning - without using the other run time loading flags,
12561: # -berok will link without error, but may produce a broken library.
12562: no_undefined_flag_CXX=' ${wl}-bernotok'
12563: allow_undefined_flag_CXX=' ${wl}-berok'
12564: if test "$with_gnu_ld" = yes; then
12565: # We only use this code for GNU lds that support --whole-archive.
12566: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12567: else
12568: # Exported symbols can be pulled into shared objects from archives
12569: whole_archive_flag_spec_CXX='$convenience'
12570: fi
12571: archive_cmds_need_lc_CXX=yes
12572: # This is similar to how AIX traditionally builds its shared
12573: # libraries.
12574: 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'
12575: fi
12576: fi
12577: ;;
12578:
12579: beos*)
12580: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12581: allow_undefined_flag_CXX=unsupported
12582: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12583: # support --undefined. This deserves some investigation. FIXME
12584: archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12585: else
12586: ld_shlibs_CXX=no
12587: fi
12588: ;;
12589:
12590: chorus*)
12591: case $cc_basename in
12592: *)
12593: # FIXME: insert proper C++ library support
12594: ld_shlibs_CXX=no
12595: ;;
12596: esac
12597: ;;
12598:
12599: cygwin* | mingw* | pw32* | cegcc*)
12600: case $GXX,$cc_basename in
12601: ,cl* | no,cl*)
12602: # Native MSVC
12603: # hardcode_libdir_flag_spec is actually meaningless, as there is
12604: # no search path for DLLs.
12605: hardcode_libdir_flag_spec_CXX=' '
12606: allow_undefined_flag_CXX=unsupported
12607: always_export_symbols_CXX=yes
12608: file_list_spec_CXX='@'
12609: # Tell ltmain to make .lib files, not .a files.
12610: libext=lib
12611: # Tell ltmain to make .dll files, not .so files.
12612: shrext_cmds=".dll"
12613: # FIXME: Setting linknames here is a bad hack.
12614: archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12615: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12616: $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12617: else
12618: $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12619: fi~
12620: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12621: linknames='
12622: # The linker will not automatically build a static lib if we build a DLL.
12623: # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12624: enable_shared_with_static_runtimes_CXX=yes
12625: # Don't use ranlib
12626: old_postinstall_cmds_CXX='chmod 644 $oldlib'
12627: postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12628: lt_tool_outputfile="@TOOL_OUTPUT@"~
12629: case $lt_outputfile in
12630: *.exe|*.EXE) ;;
12631: *)
12632: lt_outputfile="$lt_outputfile.exe"
12633: lt_tool_outputfile="$lt_tool_outputfile.exe"
12634: ;;
12635: esac~
12636: func_to_tool_file "$lt_outputfile"~
12637: if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12638: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12639: $RM "$lt_outputfile.manifest";
12640: fi'
12641: ;;
12642: *)
12643: # g++
12644: # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12645: # as there is no search path for DLLs.
12646: hardcode_libdir_flag_spec_CXX='-L$libdir'
12647: export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12648: allow_undefined_flag_CXX=unsupported
12649: always_export_symbols_CXX=no
12650: enable_shared_with_static_runtimes_CXX=yes
12651:
12652: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12653: 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'
12654: # If the export-symbols file already is a .def file (1st line
12655: # is EXPORTS), use it as is; otherwise, prepend...
12656: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12657: cp $export_symbols $output_objdir/$soname.def;
12658: else
12659: echo EXPORTS > $output_objdir/$soname.def;
12660: cat $export_symbols >> $output_objdir/$soname.def;
12661: fi~
12662: $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'
12663: else
12664: ld_shlibs_CXX=no
12665: fi
12666: ;;
12667: esac
12668: ;;
12669: darwin* | rhapsody*)
12670:
12671:
12672: archive_cmds_need_lc_CXX=no
12673: hardcode_direct_CXX=no
12674: hardcode_automatic_CXX=yes
12675: hardcode_shlibpath_var_CXX=unsupported
12676: if test "$lt_cv_ld_force_load" = "yes"; then
12677: 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\"`'
12678:
12679: else
12680: whole_archive_flag_spec_CXX=''
12681: fi
12682: link_all_deplibs_CXX=yes
12683: allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12684: case $cc_basename in
12685: ifort*) _lt_dar_can_shared=yes ;;
12686: *) _lt_dar_can_shared=$GCC ;;
12687: esac
12688: if test "$_lt_dar_can_shared" = "yes"; then
12689: output_verbose_link_cmd=func_echo_all
12690: 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}"
12691: module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12692: 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}"
12693: 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}"
12694: if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12695: 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}"
12696: 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}"
12697: fi
12698:
12699: else
12700: ld_shlibs_CXX=no
12701: fi
12702:
12703: ;;
12704:
12705: dgux*)
12706: case $cc_basename in
12707: ec++*)
12708: # FIXME: insert proper C++ library support
12709: ld_shlibs_CXX=no
12710: ;;
12711: ghcx*)
12712: # Green Hills C++ Compiler
12713: # FIXME: insert proper C++ library support
12714: ld_shlibs_CXX=no
12715: ;;
12716: *)
12717: # FIXME: insert proper C++ library support
12718: ld_shlibs_CXX=no
12719: ;;
12720: esac
12721: ;;
12722:
12723: freebsd2.*)
12724: # C++ shared libraries reported to be fairly broken before
12725: # switch to ELF
12726: ld_shlibs_CXX=no
12727: ;;
12728:
12729: freebsd-elf*)
12730: archive_cmds_need_lc_CXX=no
12731: ;;
12732:
12733: freebsd* | dragonfly*)
12734: # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12735: # conventions
12736: ld_shlibs_CXX=yes
12737: ;;
12738:
12739: gnu*)
12740: ;;
12741:
12742: haiku*)
12743: archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12744: link_all_deplibs_CXX=yes
12745: ;;
12746:
12747: hpux9*)
12748: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12749: hardcode_libdir_separator_CXX=:
12750: export_dynamic_flag_spec_CXX='${wl}-E'
12751: hardcode_direct_CXX=yes
12752: hardcode_minus_L_CXX=yes # Not in the search PATH,
12753: # but as the default
12754: # location of the library.
12755:
12756: case $cc_basename in
12757: CC*)
12758: # FIXME: insert proper C++ library support
12759: ld_shlibs_CXX=no
12760: ;;
12761: aCC*)
12762: 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'
12763: # Commands to make compiler produce verbose output that lists
12764: # what "hidden" libraries, object files and flags are used when
12765: # linking a shared library.
12766: #
12767: # There doesn't appear to be a way to prevent this compiler from
12768: # explicitly linking system object files so we need to strip them
12769: # from the output so that they don't get included in the library
12770: # dependencies.
12771: 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"'
12772: ;;
12773: *)
12774: if test "$GXX" = yes; then
12775: 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'
12776: else
12777: # FIXME: insert proper C++ library support
12778: ld_shlibs_CXX=no
12779: fi
12780: ;;
12781: esac
12782: ;;
12783:
12784: hpux10*|hpux11*)
12785: if test $with_gnu_ld = no; then
12786: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12787: hardcode_libdir_separator_CXX=:
12788:
12789: case $host_cpu in
12790: hppa*64*|ia64*)
12791: ;;
12792: *)
12793: export_dynamic_flag_spec_CXX='${wl}-E'
12794: ;;
12795: esac
12796: fi
12797: case $host_cpu in
12798: hppa*64*|ia64*)
12799: hardcode_direct_CXX=no
12800: hardcode_shlibpath_var_CXX=no
12801: ;;
12802: *)
12803: hardcode_direct_CXX=yes
12804: hardcode_direct_absolute_CXX=yes
12805: hardcode_minus_L_CXX=yes # Not in the search PATH,
12806: # but as the default
12807: # location of the library.
12808: ;;
12809: esac
12810:
12811: case $cc_basename in
12812: CC*)
12813: # FIXME: insert proper C++ library support
12814: ld_shlibs_CXX=no
12815: ;;
12816: aCC*)
12817: case $host_cpu in
12818: hppa*64*)
12819: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12820: ;;
12821: ia64*)
12822: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12823: ;;
12824: *)
12825: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12826: ;;
12827: esac
12828: # Commands to make compiler produce verbose output that lists
12829: # what "hidden" libraries, object files and flags are used when
12830: # linking a shared library.
12831: #
12832: # There doesn't appear to be a way to prevent this compiler from
12833: # explicitly linking system object files so we need to strip them
12834: # from the output so that they don't get included in the library
12835: # dependencies.
12836: 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"'
12837: ;;
12838: *)
12839: if test "$GXX" = yes; then
12840: if test $with_gnu_ld = no; then
12841: case $host_cpu in
12842: hppa*64*)
12843: archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12844: ;;
12845: ia64*)
12846: archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12847: ;;
12848: *)
12849: 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'
12850: ;;
12851: esac
12852: fi
12853: else
12854: # FIXME: insert proper C++ library support
12855: ld_shlibs_CXX=no
12856: fi
12857: ;;
12858: esac
12859: ;;
12860:
12861: interix[3-9]*)
12862: hardcode_direct_CXX=no
12863: hardcode_shlibpath_var_CXX=no
12864: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12865: export_dynamic_flag_spec_CXX='${wl}-E'
12866: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12867: # Instead, shared libraries are loaded at an image base (0x10000000 by
12868: # default) and relocated if they conflict, which is a slow very memory
12869: # consuming and fragmenting process. To avoid this, we pick a random,
12870: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12871: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12872: 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'
12873: 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'
12874: ;;
12875: irix5* | irix6*)
12876: case $cc_basename in
12877: CC*)
12878: # SGI C++
12879: 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'
12880:
12881: # Archives containing C++ object files must be created using
12882: # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12883: # necessary to make sure instantiated templates are included
12884: # in the archive.
12885: old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12886: ;;
12887: *)
12888: if test "$GXX" = yes; then
12889: if test "$with_gnu_ld" = no; then
12890: 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'
12891: else
12892: 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'
12893: fi
12894: fi
12895: link_all_deplibs_CXX=yes
12896: ;;
12897: esac
12898: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12899: hardcode_libdir_separator_CXX=:
12900: inherit_rpath_CXX=yes
12901: ;;
12902:
12903: linux* | k*bsd*-gnu | kopensolaris*-gnu)
12904: case $cc_basename in
12905: KCC*)
12906: # Kuck and Associates, Inc. (KAI) C++ Compiler
12907:
12908: # KCC will only create a shared library if the output file
12909: # ends with ".so" (or ".sl" for HP-UX), so rename the library
12910: # to its proper name (with version) after linking.
12911: 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'
12912: 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'
12913: # Commands to make compiler produce verbose output that lists
12914: # what "hidden" libraries, object files and flags are used when
12915: # linking a shared library.
12916: #
12917: # There doesn't appear to be a way to prevent this compiler from
12918: # explicitly linking system object files so we need to strip them
12919: # from the output so that they don't get included in the library
12920: # dependencies.
12921: 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"'
12922:
12923: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12924: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12925:
12926: # Archives containing C++ object files must be created using
12927: # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12928: old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12929: ;;
12930: icpc* | ecpc* )
12931: # Intel C++
12932: with_gnu_ld=yes
12933: # version 8.0 and above of icpc choke on multiply defined symbols
12934: # if we add $predep_objects and $postdep_objects, however 7.1 and
12935: # earlier do not add the objects themselves.
12936: case `$CC -V 2>&1` in
12937: *"Version 7."*)
12938: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12939: 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'
12940: ;;
12941: *) # Version 8.0 or newer
12942: tmp_idyn=
12943: case $host_cpu in
12944: ia64*) tmp_idyn=' -i_dynamic';;
12945: esac
12946: archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12947: 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'
12948: ;;
12949: esac
12950: archive_cmds_need_lc_CXX=no
12951: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12952: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12953: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12954: ;;
12955: pgCC* | pgcpp*)
12956: # Portland Group C++ compiler
12957: case `$CC -V` in
12958: *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12959: prelink_cmds_CXX='tpldir=Template.dir~
12960: rm -rf $tpldir~
12961: $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12962: compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12963: old_archive_cmds_CXX='tpldir=Template.dir~
12964: rm -rf $tpldir~
12965: $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12966: $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12967: $RANLIB $oldlib'
12968: archive_cmds_CXX='tpldir=Template.dir~
12969: rm -rf $tpldir~
12970: $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12971: $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12972: archive_expsym_cmds_CXX='tpldir=Template.dir~
12973: rm -rf $tpldir~
12974: $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12975: $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'
12976: ;;
12977: *) # Version 6 and above use weak symbols
12978: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12979: 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'
12980: ;;
12981: esac
12982:
12983: hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12984: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12985: 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'
12986: ;;
12987: cxx*)
12988: # Compaq C++
12989: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12990: 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'
12991:
12992: runpath_var=LD_RUN_PATH
12993: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12994: hardcode_libdir_separator_CXX=:
12995:
12996: # Commands to make compiler produce verbose output that lists
12997: # what "hidden" libraries, object files and flags are used when
12998: # linking a shared library.
12999: #
13000: # There doesn't appear to be a way to prevent this compiler from
13001: # explicitly linking system object files so we need to strip them
13002: # from the output so that they don't get included in the library
13003: # dependencies.
13004: 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'
13005: ;;
13006: xl* | mpixl* | bgxl*)
13007: # IBM XL 8.0 on PPC, with GNU ld
13008: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13009: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13010: archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13011: if test "x$supports_anon_versioning" = xyes; then
13012: archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13013: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13014: echo "local: *; };" >> $output_objdir/$libname.ver~
13015: $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13016: fi
13017: ;;
13018: *)
13019: case `$CC -V 2>&1 | sed 5q` in
13020: *Sun\ C*)
13021: # Sun C++ 5.9
13022: no_undefined_flag_CXX=' -zdefs'
13023: archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13024: 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'
13025: hardcode_libdir_flag_spec_CXX='-R$libdir'
13026: 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'
13027: compiler_needs_object_CXX=yes
13028:
13029: # Not sure whether something based on
13030: # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13031: # would be better.
13032: output_verbose_link_cmd='func_echo_all'
13033:
13034: # Archives containing C++ object files must be created using
13035: # "CC -xar", where "CC" is the Sun C++ compiler. This is
13036: # necessary to make sure instantiated templates are included
13037: # in the archive.
13038: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13039: ;;
13040: esac
13041: ;;
13042: esac
13043: ;;
13044:
13045: lynxos*)
13046: # FIXME: insert proper C++ library support
13047: ld_shlibs_CXX=no
13048: ;;
13049:
13050: m88k*)
13051: # FIXME: insert proper C++ library support
13052: ld_shlibs_CXX=no
13053: ;;
13054:
13055: mvs*)
13056: case $cc_basename in
13057: cxx*)
13058: # FIXME: insert proper C++ library support
13059: ld_shlibs_CXX=no
13060: ;;
13061: *)
13062: # FIXME: insert proper C++ library support
13063: ld_shlibs_CXX=no
13064: ;;
13065: esac
13066: ;;
13067:
13068: netbsd*)
13069: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13070: archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13071: wlarc=
13072: hardcode_libdir_flag_spec_CXX='-R$libdir'
13073: hardcode_direct_CXX=yes
13074: hardcode_shlibpath_var_CXX=no
13075: fi
13076: # Workaround some broken pre-1.5 toolchains
13077: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13078: ;;
13079:
13080: *nto* | *qnx*)
13081: ld_shlibs_CXX=yes
13082: ;;
13083:
13084: openbsd2*)
13085: # C++ shared libraries are fairly broken
13086: ld_shlibs_CXX=no
13087: ;;
13088:
13089: openbsd*)
13090: if test -f /usr/libexec/ld.so; then
13091: hardcode_direct_CXX=yes
13092: hardcode_shlibpath_var_CXX=no
13093: hardcode_direct_absolute_CXX=yes
13094: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13095: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13096: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13097: archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13098: export_dynamic_flag_spec_CXX='${wl}-E'
13099: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13100: fi
13101: output_verbose_link_cmd=func_echo_all
13102: else
13103: ld_shlibs_CXX=no
13104: fi
13105: ;;
13106:
13107: osf3* | osf4* | osf5*)
13108: case $cc_basename in
13109: KCC*)
13110: # Kuck and Associates, Inc. (KAI) C++ Compiler
13111:
13112: # KCC will only create a shared library if the output file
13113: # ends with ".so" (or ".sl" for HP-UX), so rename the library
13114: # to its proper name (with version) after linking.
13115: 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'
13116:
13117: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13118: hardcode_libdir_separator_CXX=:
13119:
13120: # Archives containing C++ object files must be created using
13121: # the KAI C++ compiler.
13122: case $host in
13123: osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13124: *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13125: esac
13126: ;;
13127: RCC*)
13128: # Rational C++ 2.4.1
13129: # FIXME: insert proper C++ library support
13130: ld_shlibs_CXX=no
13131: ;;
13132: cxx*)
13133: case $host in
13134: osf3*)
13135: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13136: 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'
13137: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13138: ;;
13139: *)
13140: allow_undefined_flag_CXX=' -expect_unresolved \*'
13141: 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'
13142: archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13143: echo "-hidden">> $lib.exp~
13144: $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~
13145: $RM $lib.exp'
13146: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13147: ;;
13148: esac
13149:
13150: hardcode_libdir_separator_CXX=:
13151:
13152: # Commands to make compiler produce verbose output that lists
13153: # what "hidden" libraries, object files and flags are used when
13154: # linking a shared library.
13155: #
13156: # There doesn't appear to be a way to prevent this compiler from
13157: # explicitly linking system object files so we need to strip them
13158: # from the output so that they don't get included in the library
13159: # dependencies.
13160: 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"'
13161: ;;
13162: *)
13163: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13164: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13165: case $host in
13166: osf3*)
13167: 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'
13168: ;;
13169: *)
13170: 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'
13171: ;;
13172: esac
13173:
13174: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13175: hardcode_libdir_separator_CXX=:
13176:
13177: # Commands to make compiler produce verbose output that lists
13178: # what "hidden" libraries, object files and flags are used when
13179: # linking a shared library.
13180: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13181:
13182: else
13183: # FIXME: insert proper C++ library support
13184: ld_shlibs_CXX=no
13185: fi
13186: ;;
13187: esac
13188: ;;
13189:
13190: psos*)
13191: # FIXME: insert proper C++ library support
13192: ld_shlibs_CXX=no
13193: ;;
13194:
13195: sunos4*)
13196: case $cc_basename in
13197: CC*)
13198: # Sun C++ 4.x
13199: # FIXME: insert proper C++ library support
13200: ld_shlibs_CXX=no
13201: ;;
13202: lcc*)
13203: # Lucid
13204: # FIXME: insert proper C++ library support
13205: ld_shlibs_CXX=no
13206: ;;
13207: *)
13208: # FIXME: insert proper C++ library support
13209: ld_shlibs_CXX=no
13210: ;;
13211: esac
13212: ;;
13213:
13214: solaris*)
13215: case $cc_basename in
13216: CC* | sunCC*)
13217: # Sun C++ 4.2, 5.x and Centerline C++
13218: archive_cmds_need_lc_CXX=yes
13219: no_undefined_flag_CXX=' -zdefs'
13220: archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13221: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13222: $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'
13223:
13224: hardcode_libdir_flag_spec_CXX='-R$libdir'
13225: hardcode_shlibpath_var_CXX=no
13226: case $host_os in
13227: solaris2.[0-5] | solaris2.[0-5].*) ;;
13228: *)
13229: # The compiler driver will combine and reorder linker options,
13230: # but understands `-z linker_flag'.
13231: # Supported since Solaris 2.6 (maybe 2.5.1?)
13232: whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13233: ;;
13234: esac
13235: link_all_deplibs_CXX=yes
13236:
13237: output_verbose_link_cmd='func_echo_all'
13238:
13239: # Archives containing C++ object files must be created using
13240: # "CC -xar", where "CC" is the Sun C++ compiler. This is
13241: # necessary to make sure instantiated templates are included
13242: # in the archive.
13243: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13244: ;;
13245: gcx*)
13246: # Green Hills C++ Compiler
13247: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13248:
13249: # The C++ compiler must be used to create the archive.
13250: old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13251: ;;
13252: *)
13253: # GNU C++ compiler with Solaris linker
13254: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13255: no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13256: if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13257: archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13258: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13259: $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13260:
13261: # Commands to make compiler produce verbose output that lists
13262: # what "hidden" libraries, object files and flags are used when
13263: # linking a shared library.
13264: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13265: else
13266: # g++ 2.7 appears to require `-G' NOT `-shared' on this
13267: # platform.
13268: archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13269: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13270: $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13271:
13272: # Commands to make compiler produce verbose output that lists
13273: # what "hidden" libraries, object files and flags are used when
13274: # linking a shared library.
13275: output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13276: fi
13277:
13278: hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13279: case $host_os in
13280: solaris2.[0-5] | solaris2.[0-5].*) ;;
13281: *)
13282: whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13283: ;;
13284: esac
13285: fi
13286: ;;
13287: esac
13288: ;;
13289:
13290: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13291: no_undefined_flag_CXX='${wl}-z,text'
13292: archive_cmds_need_lc_CXX=no
13293: hardcode_shlibpath_var_CXX=no
13294: runpath_var='LD_RUN_PATH'
13295:
13296: case $cc_basename in
13297: CC*)
13298: archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13299: archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13300: ;;
13301: *)
13302: archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13303: archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13304: ;;
13305: esac
13306: ;;
13307:
13308: sysv5* | sco3.2v5* | sco5v6*)
13309: # Note: We can NOT use -z defs as we might desire, because we do not
13310: # link with -lc, and that would cause any symbols used from libc to
13311: # always be unresolved, which means just about no library would
13312: # ever link correctly. If we're not using GNU ld we use -z text
13313: # though, which does catch some bad symbols but isn't as heavy-handed
13314: # as -z defs.
13315: no_undefined_flag_CXX='${wl}-z,text'
13316: allow_undefined_flag_CXX='${wl}-z,nodefs'
13317: archive_cmds_need_lc_CXX=no
13318: hardcode_shlibpath_var_CXX=no
13319: hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13320: hardcode_libdir_separator_CXX=':'
13321: link_all_deplibs_CXX=yes
13322: export_dynamic_flag_spec_CXX='${wl}-Bexport'
13323: runpath_var='LD_RUN_PATH'
13324:
13325: case $cc_basename in
13326: CC*)
13327: archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13328: archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13329: old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13330: '"$old_archive_cmds_CXX"
13331: reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13332: '"$reload_cmds_CXX"
13333: ;;
13334: *)
13335: archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13336: archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13337: ;;
13338: esac
13339: ;;
13340:
13341: tandem*)
13342: case $cc_basename in
13343: NCC*)
13344: # NonStop-UX NCC 3.20
13345: # FIXME: insert proper C++ library support
13346: ld_shlibs_CXX=no
13347: ;;
13348: *)
13349: # FIXME: insert proper C++ library support
13350: ld_shlibs_CXX=no
13351: ;;
13352: esac
13353: ;;
13354:
13355: vxworks*)
13356: # FIXME: insert proper C++ library support
13357: ld_shlibs_CXX=no
13358: ;;
13359:
13360: *)
13361: # FIXME: insert proper C++ library support
13362: ld_shlibs_CXX=no
13363: ;;
13364: esac
13365:
13366: echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13367: echo "${ECHO_T}$ld_shlibs_CXX" >&6
13368: test "$ld_shlibs_CXX" = no && can_build_shared=no
13369:
13370: GCC_CXX="$GXX"
13371: LD_CXX="$LD"
13372:
13373: ## CAVEAT EMPTOR:
13374: ## There is no encapsulation within the following macros, do not change
13375: ## the running order or otherwise move them around unless you know exactly
13376: ## what you are doing...
13377: # Dependencies to place before and after the object being linked:
13378: predep_objects_CXX=
13379: postdep_objects_CXX=
13380: predeps_CXX=
13381: postdeps_CXX=
13382: compiler_lib_search_path_CXX=
13383:
13384: cat > conftest.$ac_ext <<_LT_EOF
13385: class Foo
13386: {
13387: public:
13388: Foo (void) { a = 0; }
13389: private:
13390: int a;
13391: };
13392: _LT_EOF
13393:
13394:
13395: _lt_libdeps_save_CFLAGS=$CFLAGS
13396: case "$CC $CFLAGS " in #(
13397: *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13398: *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13399: *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13400: esac
13401:
13402: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13403: (eval $ac_compile) 2>&5
13404: ac_status=$?
13405: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13406: (exit $ac_status); }; then
13407: # Parse the compiler output and extract the necessary
13408: # objects, libraries and library flags.
13409:
13410: # Sentinel used to keep track of whether or not we are before
13411: # the conftest object file.
13412: pre_test_object_deps_done=no
13413:
13414: for p in `eval "$output_verbose_link_cmd"`; do
13415: case ${prev}${p} in
13416:
13417: -L* | -R* | -l*)
13418: # Some compilers place space between "-{L,R}" and the path.
13419: # Remove the space.
13420: if test $p = "-L" ||
13421: test $p = "-R"; then
13422: prev=$p
13423: continue
13424: fi
13425:
13426: # Expand the sysroot to ease extracting the directories later.
13427: if test -z "$prev"; then
13428: case $p in
13429: -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13430: -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13431: -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13432: esac
13433: fi
13434: case $p in
13435: =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13436: esac
13437: if test "$pre_test_object_deps_done" = no; then
13438: case ${prev} in
13439: -L | -R)
13440: # Internal compiler library paths should come after those
13441: # provided the user. The postdeps already come after the
13442: # user supplied libs so there is no need to process them.
13443: if test -z "$compiler_lib_search_path_CXX"; then
13444: compiler_lib_search_path_CXX="${prev}${p}"
13445: else
13446: compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13447: fi
13448: ;;
13449: # The "-l" case would never come before the object being
13450: # linked, so don't bother handling this case.
13451: esac
13452: else
13453: if test -z "$postdeps_CXX"; then
13454: postdeps_CXX="${prev}${p}"
13455: else
13456: postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13457: fi
13458: fi
13459: prev=
13460: ;;
13461:
13462: *.lto.$objext) ;; # Ignore GCC LTO objects
13463: *.$objext)
13464: # This assumes that the test object file only shows up
13465: # once in the compiler output.
13466: if test "$p" = "conftest.$objext"; then
13467: pre_test_object_deps_done=yes
13468: continue
13469: fi
13470:
13471: if test "$pre_test_object_deps_done" = no; then
13472: if test -z "$predep_objects_CXX"; then
13473: predep_objects_CXX="$p"
13474: else
13475: predep_objects_CXX="$predep_objects_CXX $p"
13476: fi
13477: else
13478: if test -z "$postdep_objects_CXX"; then
13479: postdep_objects_CXX="$p"
13480: else
13481: postdep_objects_CXX="$postdep_objects_CXX $p"
13482: fi
13483: fi
13484: ;;
13485:
13486: *) ;; # Ignore the rest.
13487:
13488: esac
13489: done
13490:
13491: # Clean up.
13492: rm -f a.out a.exe
13493: else
13494: echo "libtool.m4: error: problem compiling CXX test program"
13495: fi
13496:
13497: $RM -f confest.$objext
13498: CFLAGS=$_lt_libdeps_save_CFLAGS
13499:
13500: # PORTME: override above test on systems where it is broken
13501: case $host_os in
13502: interix[3-9]*)
13503: # Interix 3.5 installs completely hosed .la files for C++, so rather than
13504: # hack all around it, let's just trust "g++" to DTRT.
13505: predep_objects_CXX=
13506: postdep_objects_CXX=
13507: postdeps_CXX=
13508: ;;
13509:
13510: linux*)
13511: case `$CC -V 2>&1 | sed 5q` in
13512: *Sun\ C*)
13513: # Sun C++ 5.9
13514:
13515: # The more standards-conforming stlport4 library is
13516: # incompatible with the Cstd library. Avoid specifying
13517: # it if it's in CXXFLAGS. Ignore libCrun as
13518: # -library=stlport4 depends on it.
13519: case " $CXX $CXXFLAGS " in
13520: *" -library=stlport4 "*)
13521: solaris_use_stlport4=yes
13522: ;;
13523: esac
13524:
13525: if test "$solaris_use_stlport4" != yes; then
13526: postdeps_CXX='-library=Cstd -library=Crun'
13527: fi
13528: ;;
13529: esac
13530: ;;
13531:
13532: solaris*)
13533: case $cc_basename in
13534: CC* | sunCC*)
13535: # The more standards-conforming stlport4 library is
13536: # incompatible with the Cstd library. Avoid specifying
13537: # it if it's in CXXFLAGS. Ignore libCrun as
13538: # -library=stlport4 depends on it.
13539: case " $CXX $CXXFLAGS " in
13540: *" -library=stlport4 "*)
13541: solaris_use_stlport4=yes
13542: ;;
13543: esac
13544:
13545: # Adding this requires a known-good setup of shared libraries for
13546: # Sun compiler versions before 5.6, else PIC objects from an old
13547: # archive will be linked into the output, leading to subtle bugs.
13548: if test "$solaris_use_stlport4" != yes; then
13549: postdeps_CXX='-library=Cstd -library=Crun'
13550: fi
13551: ;;
13552: esac
13553: ;;
13554: esac
13555:
13556:
13557: case " $postdeps_CXX " in
13558: *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13559: esac
13560: compiler_lib_search_dirs_CXX=
13561: if test -n "${compiler_lib_search_path_CXX}"; then
13562: compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13563: fi
13564:
13565:
13566:
13567:
13568:
13569:
13570:
13571:
13572:
13573:
13574:
13575:
13576:
13577:
13578:
13579:
13580:
13581:
13582:
13583:
13584:
13585:
13586:
13587:
13588:
13589:
13590:
13591:
13592:
13593:
13594:
13595: lt_prog_compiler_wl_CXX=
13596: lt_prog_compiler_pic_CXX=
13597: lt_prog_compiler_static_CXX=
13598:
13599:
13600: # C++ specific cases for pic, static, wl, etc.
13601: if test "$GXX" = yes; then
13602: lt_prog_compiler_wl_CXX='-Wl,'
13603: lt_prog_compiler_static_CXX='-static'
13604:
13605: case $host_os in
13606: aix*)
13607: # All AIX code is PIC.
13608: if test "$host_cpu" = ia64; then
13609: # AIX 5 now supports IA64 processor
13610: lt_prog_compiler_static_CXX='-Bstatic'
13611: fi
13612: ;;
13613:
13614: amigaos*)
13615: case $host_cpu in
13616: powerpc)
13617: # see comment about AmigaOS4 .so support
13618: lt_prog_compiler_pic_CXX='-fPIC'
13619: ;;
13620: m68k)
13621: # FIXME: we need at least 68020 code to build shared libraries, but
13622: # adding the `-m68020' flag to GCC prevents building anything better,
13623: # like `-m68040'.
13624: lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13625: ;;
13626: esac
13627: ;;
13628:
13629: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13630: # PIC is the default for these OSes.
13631: ;;
13632: mingw* | cygwin* | os2* | pw32* | cegcc*)
13633: # This hack is so that the source file can tell whether it is being
13634: # built for inclusion in a dll (and should export symbols for example).
13635: # Although the cygwin gcc ignores -fPIC, still need this for old-style
13636: # (--disable-auto-import) libraries
13637: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13638: ;;
13639: darwin* | rhapsody*)
13640: # PIC is the default on this platform
13641: # Common symbols not allowed in MH_DYLIB files
13642: lt_prog_compiler_pic_CXX='-fno-common'
13643: ;;
13644: *djgpp*)
13645: # DJGPP does not support shared libraries at all
13646: lt_prog_compiler_pic_CXX=
13647: ;;
13648: haiku*)
13649: # PIC is the default for Haiku.
13650: # The "-static" flag exists, but is broken.
13651: lt_prog_compiler_static_CXX=
13652: ;;
13653: interix[3-9]*)
13654: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13655: # Instead, we relocate shared libraries at runtime.
13656: ;;
13657: sysv4*MP*)
13658: if test -d /usr/nec; then
13659: lt_prog_compiler_pic_CXX=-Kconform_pic
13660: fi
13661: ;;
13662: hpux*)
13663: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13664: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13665: # sets the default TLS model and affects inlining.
13666: case $host_cpu in
13667: hppa*64*)
13668: ;;
13669: *)
13670: lt_prog_compiler_pic_CXX='-fPIC'
13671: ;;
13672: esac
13673: ;;
13674: *qnx* | *nto*)
13675: # QNX uses GNU C++, but need to define -shared option too, otherwise
13676: # it will coredump.
13677: lt_prog_compiler_pic_CXX='-fPIC -shared'
13678: ;;
13679: *)
13680: lt_prog_compiler_pic_CXX='-fPIC'
13681: ;;
13682: esac
13683: else
13684: case $host_os in
13685: aix[4-9]*)
13686: # All AIX code is PIC.
13687: if test "$host_cpu" = ia64; then
13688: # AIX 5 now supports IA64 processor
13689: lt_prog_compiler_static_CXX='-Bstatic'
13690: else
13691: lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13692: fi
13693: ;;
13694: chorus*)
13695: case $cc_basename in
13696: cxch68*)
13697: # Green Hills C++ Compiler
13698: # _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"
13699: ;;
13700: esac
13701: ;;
13702: mingw* | cygwin* | os2* | pw32* | cegcc*)
13703: # This hack is so that the source file can tell whether it is being
13704: # built for inclusion in a dll (and should export symbols for example).
13705: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13706: ;;
13707: dgux*)
13708: case $cc_basename in
13709: ec++*)
13710: lt_prog_compiler_pic_CXX='-KPIC'
13711: ;;
13712: ghcx*)
13713: # Green Hills C++ Compiler
13714: lt_prog_compiler_pic_CXX='-pic'
13715: ;;
13716: *)
13717: ;;
13718: esac
13719: ;;
13720: freebsd* | dragonfly*)
13721: # FreeBSD uses GNU C++
13722: ;;
13723: hpux9* | hpux10* | hpux11*)
13724: case $cc_basename in
13725: CC*)
13726: lt_prog_compiler_wl_CXX='-Wl,'
13727: lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13728: if test "$host_cpu" != ia64; then
13729: lt_prog_compiler_pic_CXX='+Z'
13730: fi
13731: ;;
13732: aCC*)
13733: lt_prog_compiler_wl_CXX='-Wl,'
13734: lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13735: case $host_cpu in
13736: hppa*64*|ia64*)
13737: # +Z the default
13738: ;;
13739: *)
13740: lt_prog_compiler_pic_CXX='+Z'
13741: ;;
13742: esac
13743: ;;
13744: *)
13745: ;;
13746: esac
13747: ;;
13748: interix*)
13749: # This is c89, which is MS Visual C++ (no shared libs)
13750: # Anyone wants to do a port?
13751: ;;
13752: irix5* | irix6* | nonstopux*)
13753: case $cc_basename in
13754: CC*)
13755: lt_prog_compiler_wl_CXX='-Wl,'
13756: lt_prog_compiler_static_CXX='-non_shared'
13757: # CC pic flag -KPIC is the default.
13758: ;;
13759: *)
13760: ;;
13761: esac
13762: ;;
13763: linux* | k*bsd*-gnu | kopensolaris*-gnu)
13764: case $cc_basename in
13765: KCC*)
13766: # KAI C++ Compiler
13767: lt_prog_compiler_wl_CXX='--backend -Wl,'
13768: lt_prog_compiler_pic_CXX='-fPIC'
13769: ;;
13770: ecpc* )
13771: # old Intel C++ for x86_64 which still supported -KPIC.
13772: lt_prog_compiler_wl_CXX='-Wl,'
13773: lt_prog_compiler_pic_CXX='-KPIC'
13774: lt_prog_compiler_static_CXX='-static'
13775: ;;
13776: icpc* )
13777: # Intel C++, used to be incompatible with GCC.
13778: # ICC 10 doesn't accept -KPIC any more.
13779: lt_prog_compiler_wl_CXX='-Wl,'
13780: lt_prog_compiler_pic_CXX='-fPIC'
13781: lt_prog_compiler_static_CXX='-static'
13782: ;;
13783: pgCC* | pgcpp*)
13784: # Portland Group C++ compiler
13785: lt_prog_compiler_wl_CXX='-Wl,'
13786: lt_prog_compiler_pic_CXX='-fpic'
13787: lt_prog_compiler_static_CXX='-Bstatic'
13788: ;;
13789: cxx*)
13790: # Compaq C++
13791: # Make sure the PIC flag is empty. It appears that all Alpha
13792: # Linux and Compaq Tru64 Unix objects are PIC.
13793: lt_prog_compiler_pic_CXX=
13794: lt_prog_compiler_static_CXX='-non_shared'
13795: ;;
13796: xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13797: # IBM XL 8.0, 9.0 on PPC and BlueGene
13798: lt_prog_compiler_wl_CXX='-Wl,'
13799: lt_prog_compiler_pic_CXX='-qpic'
13800: lt_prog_compiler_static_CXX='-qstaticlink'
13801: ;;
13802: *)
13803: case `$CC -V 2>&1 | sed 5q` in
13804: *Sun\ C*)
13805: # Sun C++ 5.9
13806: lt_prog_compiler_pic_CXX='-KPIC'
13807: lt_prog_compiler_static_CXX='-Bstatic'
13808: lt_prog_compiler_wl_CXX='-Qoption ld '
13809: ;;
13810: esac
13811: ;;
13812: esac
13813: ;;
13814: lynxos*)
13815: ;;
13816: m88k*)
13817: ;;
13818: mvs*)
13819: case $cc_basename in
13820: cxx*)
13821: lt_prog_compiler_pic_CXX='-W c,exportall'
13822: ;;
13823: *)
13824: ;;
13825: esac
13826: ;;
13827: netbsd*)
13828: ;;
13829: *qnx* | *nto*)
13830: # QNX uses GNU C++, but need to define -shared option too, otherwise
13831: # it will coredump.
13832: lt_prog_compiler_pic_CXX='-fPIC -shared'
13833: ;;
13834: osf3* | osf4* | osf5*)
13835: case $cc_basename in
13836: KCC*)
13837: lt_prog_compiler_wl_CXX='--backend -Wl,'
13838: ;;
13839: RCC*)
13840: # Rational C++ 2.4.1
13841: lt_prog_compiler_pic_CXX='-pic'
13842: ;;
13843: cxx*)
13844: # Digital/Compaq C++
13845: lt_prog_compiler_wl_CXX='-Wl,'
13846: # Make sure the PIC flag is empty. It appears that all Alpha
13847: # Linux and Compaq Tru64 Unix objects are PIC.
13848: lt_prog_compiler_pic_CXX=
13849: lt_prog_compiler_static_CXX='-non_shared'
13850: ;;
13851: *)
13852: ;;
13853: esac
13854: ;;
13855: psos*)
13856: ;;
13857: solaris*)
13858: case $cc_basename in
13859: CC* | sunCC*)
13860: # Sun C++ 4.2, 5.x and Centerline C++
13861: lt_prog_compiler_pic_CXX='-KPIC'
13862: lt_prog_compiler_static_CXX='-Bstatic'
13863: lt_prog_compiler_wl_CXX='-Qoption ld '
13864: ;;
13865: gcx*)
13866: # Green Hills C++ Compiler
13867: lt_prog_compiler_pic_CXX='-PIC'
13868: ;;
13869: *)
13870: ;;
13871: esac
13872: ;;
13873: sunos4*)
13874: case $cc_basename in
13875: CC*)
13876: # Sun C++ 4.x
13877: lt_prog_compiler_pic_CXX='-pic'
13878: lt_prog_compiler_static_CXX='-Bstatic'
13879: ;;
13880: lcc*)
13881: # Lucid
13882: lt_prog_compiler_pic_CXX='-pic'
13883: ;;
13884: *)
13885: ;;
13886: esac
13887: ;;
13888: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13889: case $cc_basename in
13890: CC*)
13891: lt_prog_compiler_wl_CXX='-Wl,'
13892: lt_prog_compiler_pic_CXX='-KPIC'
13893: lt_prog_compiler_static_CXX='-Bstatic'
13894: ;;
13895: esac
13896: ;;
13897: tandem*)
13898: case $cc_basename in
13899: NCC*)
13900: # NonStop-UX NCC 3.20
13901: lt_prog_compiler_pic_CXX='-KPIC'
13902: ;;
13903: *)
13904: ;;
13905: esac
13906: ;;
13907: vxworks*)
13908: ;;
13909: *)
13910: lt_prog_compiler_can_build_shared_CXX=no
13911: ;;
13912: esac
13913: fi
13914:
13915: case $host_os in
13916: # For platforms which do not support PIC, -DPIC is meaningless:
13917: *djgpp*)
13918: lt_prog_compiler_pic_CXX=
13919: ;;
13920: *)
13921: lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13922: ;;
13923: esac
13924:
13925: echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13926: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13927: if test "${lt_cv_prog_compiler_pic_CXX+set}" = set; then
13928: echo $ECHO_N "(cached) $ECHO_C" >&6
13929: else
13930: lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
13931: fi
13932: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_CXX" >&5
13933: echo "${ECHO_T}$lt_cv_prog_compiler_pic_CXX" >&6
13934: lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
13935:
13936: #
13937: # Check to make sure the PIC flag actually works.
13938: #
13939: if test -n "$lt_prog_compiler_pic_CXX"; then
13940: echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13941: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
13942: if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
13943: echo $ECHO_N "(cached) $ECHO_C" >&6
13944: else
13945: lt_cv_prog_compiler_pic_works_CXX=no
13946: ac_outfile=conftest.$ac_objext
13947: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13948: lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13949: # Insert the option either (1) after the last *FLAGS variable, or
13950: # (2) before a word containing "conftest.", or (3) at the end.
13951: # Note that $ac_compile itself does not contain backslashes and begins
13952: # with a dollar sign (not a hyphen), so the echo should work correctly.
13953: # The option is referenced via a variable to avoid confusing sed.
13954: lt_compile=`echo "$ac_compile" | $SED \
13955: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13956: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13957: -e 's:$: $lt_compiler_flag:'`
13958: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13959: (eval "$lt_compile" 2>conftest.err)
13960: ac_status=$?
13961: cat conftest.err >&5
13962: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13963: if (exit $ac_status) && test -s "$ac_outfile"; then
13964: # The compiler can only warn and ignore the option if not recognized
13965: # So say no if there are warnings other than the usual output.
13966: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13967: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13968: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13969: lt_cv_prog_compiler_pic_works_CXX=yes
13970: fi
13971: fi
13972: $RM conftest*
13973:
13974: fi
13975: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13976: echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6
13977:
13978: if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13979: case $lt_prog_compiler_pic_CXX in
13980: "" | " "*) ;;
13981: *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13982: esac
13983: else
13984: lt_prog_compiler_pic_CXX=
13985: lt_prog_compiler_can_build_shared_CXX=no
13986: fi
13987:
13988: fi
13989:
13990:
13991:
13992:
13993:
13994: #
13995: # Check to make sure the static flag actually works.
13996: #
13997: wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13998: echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13999: echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
14000: if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14001: echo $ECHO_N "(cached) $ECHO_C" >&6
14002: else
14003: lt_cv_prog_compiler_static_works_CXX=no
14004: save_LDFLAGS="$LDFLAGS"
14005: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14006: echo "$lt_simple_link_test_code" > conftest.$ac_ext
14007: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14008: # The linker can only warn and ignore the option if not recognized
14009: # So say no if there are warnings
14010: if test -s conftest.err; then
14011: # Append any errors to the config.log.
14012: cat conftest.err 1>&5
14013: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14014: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14015: if diff conftest.exp conftest.er2 >/dev/null; then
14016: lt_cv_prog_compiler_static_works_CXX=yes
14017: fi
14018: else
14019: lt_cv_prog_compiler_static_works_CXX=yes
14020: fi
14021: fi
14022: $RM -r conftest*
14023: LDFLAGS="$save_LDFLAGS"
14024:
14025: fi
14026: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14027: echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6
14028:
14029: if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14030: :
14031: else
14032: lt_prog_compiler_static_CXX=
14033: fi
14034:
14035:
14036:
14037:
14038: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14039: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14040: if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14041: echo $ECHO_N "(cached) $ECHO_C" >&6
14042: else
14043: lt_cv_prog_compiler_c_o_CXX=no
14044: $RM -r conftest 2>/dev/null
14045: mkdir conftest
14046: cd conftest
14047: mkdir out
14048: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14049:
14050: lt_compiler_flag="-o out/conftest2.$ac_objext"
14051: # Insert the option either (1) after the last *FLAGS variable, or
14052: # (2) before a word containing "conftest.", or (3) at the end.
14053: # Note that $ac_compile itself does not contain backslashes and begins
14054: # with a dollar sign (not a hyphen), so the echo should work correctly.
14055: lt_compile=`echo "$ac_compile" | $SED \
14056: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14057: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14058: -e 's:$: $lt_compiler_flag:'`
14059: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14060: (eval "$lt_compile" 2>out/conftest.err)
14061: ac_status=$?
14062: cat out/conftest.err >&5
14063: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14064: if (exit $ac_status) && test -s out/conftest2.$ac_objext
14065: then
14066: # The compiler can only warn and ignore the option if not recognized
14067: # So say no if there are warnings
14068: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14069: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14070: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14071: lt_cv_prog_compiler_c_o_CXX=yes
14072: fi
14073: fi
14074: chmod u+w . 2>&5
14075: $RM conftest*
14076: # SGI C++ compiler will create directory out/ii_files/ for
14077: # template instantiation
14078: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14079: $RM out/* && rmdir out
14080: cd ..
14081: $RM -r conftest
14082: $RM conftest*
14083:
14084: fi
14085: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14086: echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
14087:
14088:
14089:
14090: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14091: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14092: if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14093: echo $ECHO_N "(cached) $ECHO_C" >&6
14094: else
14095: lt_cv_prog_compiler_c_o_CXX=no
14096: $RM -r conftest 2>/dev/null
14097: mkdir conftest
14098: cd conftest
14099: mkdir out
14100: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14101:
14102: lt_compiler_flag="-o out/conftest2.$ac_objext"
14103: # Insert the option either (1) after the last *FLAGS variable, or
14104: # (2) before a word containing "conftest.", or (3) at the end.
14105: # Note that $ac_compile itself does not contain backslashes and begins
14106: # with a dollar sign (not a hyphen), so the echo should work correctly.
14107: lt_compile=`echo "$ac_compile" | $SED \
14108: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14109: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14110: -e 's:$: $lt_compiler_flag:'`
14111: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14112: (eval "$lt_compile" 2>out/conftest.err)
14113: ac_status=$?
14114: cat out/conftest.err >&5
14115: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116: if (exit $ac_status) && test -s out/conftest2.$ac_objext
14117: then
14118: # The compiler can only warn and ignore the option if not recognized
14119: # So say no if there are warnings
14120: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14121: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14122: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14123: lt_cv_prog_compiler_c_o_CXX=yes
14124: fi
14125: fi
14126: chmod u+w . 2>&5
14127: $RM conftest*
14128: # SGI C++ compiler will create directory out/ii_files/ for
14129: # template instantiation
14130: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14131: $RM out/* && rmdir out
14132: cd ..
14133: $RM -r conftest
14134: $RM conftest*
14135:
14136: fi
14137: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14138: echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
14139:
14140:
14141:
14142:
14143: hard_links="nottested"
14144: if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14145: # do not overwrite the value of need_locks provided by the user
14146: echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14147: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14148: hard_links=yes
14149: $RM conftest*
14150: ln conftest.a conftest.b 2>/dev/null && hard_links=no
14151: touch conftest.a
14152: ln conftest.a conftest.b 2>&5 || hard_links=no
14153: ln conftest.a conftest.b 2>/dev/null && hard_links=no
14154: echo "$as_me:$LINENO: result: $hard_links" >&5
14155: echo "${ECHO_T}$hard_links" >&6
14156: if test "$hard_links" = no; then
14157: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14158: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14159: need_locks=warn
14160: fi
14161: else
14162: need_locks=no
14163: fi
14164:
14165:
14166:
14167: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14168: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14169:
14170: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14171: exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14172: case $host_os in
14173: aix[4-9]*)
14174: # If we're using GNU nm, then we don't want the "-C" option.
14175: # -C means demangle to AIX nm, but means don't demangle with GNU nm
14176: # Also, AIX nm treats weak defined symbols like other global defined
14177: # symbols, whereas GNU nm marks them as "W".
14178: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14179: 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'
14180: else
14181: 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'
14182: fi
14183: ;;
14184: pw32*)
14185: export_symbols_cmds_CXX="$ltdll_cmds"
14186: ;;
14187: cygwin* | mingw* | cegcc*)
14188: case $cc_basename in
14189: cl*)
14190: exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14191: ;;
14192: *)
14193: 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'
14194: exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14195: ;;
14196: esac
14197: ;;
14198: *)
14199: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14200: ;;
14201: esac
14202:
14203: echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14204: echo "${ECHO_T}$ld_shlibs_CXX" >&6
14205: test "$ld_shlibs_CXX" = no && can_build_shared=no
14206:
14207: with_gnu_ld_CXX=$with_gnu_ld
14208:
14209:
14210:
14211:
14212:
14213:
14214: #
14215: # Do we need to explicitly link libc?
14216: #
14217: case "x$archive_cmds_need_lc_CXX" in
14218: x|xyes)
14219: # Assume -lc should be added
14220: archive_cmds_need_lc_CXX=yes
14221:
14222: if test "$enable_shared" = yes && test "$GCC" = yes; then
14223: case $archive_cmds_CXX in
14224: *'~'*)
14225: # FIXME: we may have to deal with multi-command sequences.
14226: ;;
14227: '$CC '*)
14228: # Test whether the compiler implicitly links with -lc since on some
14229: # systems, -lgcc has to come before -lc. If gcc already passes -lc
14230: # to ld, don't add -lc before -lgcc.
14231: echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14232: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14233: if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then
14234: echo $ECHO_N "(cached) $ECHO_C" >&6
14235: else
14236: $RM conftest*
14237: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14238:
14239: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14240: (eval $ac_compile) 2>&5
14241: ac_status=$?
14242: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14243: (exit $ac_status); } 2>conftest.err; then
14244: soname=conftest
14245: lib=conftest
14246: libobjs=conftest.$ac_objext
14247: deplibs=
14248: wl=$lt_prog_compiler_wl_CXX
14249: pic_flag=$lt_prog_compiler_pic_CXX
14250: compiler_flags=-v
14251: linker_flags=-v
14252: verstring=
14253: output_objdir=.
14254: libname=conftest
14255: lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14256: allow_undefined_flag_CXX=
14257: if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
14258: (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14259: ac_status=$?
14260: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14261: (exit $ac_status); }
14262: then
14263: lt_cv_archive_cmds_need_lc_CXX=no
14264: else
14265: lt_cv_archive_cmds_need_lc_CXX=yes
14266: fi
14267: allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14268: else
14269: cat conftest.err 1>&5
14270: fi
14271: $RM conftest*
14272:
14273: fi
14274: echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14275: echo "${ECHO_T}$lt_cv_archive_cmds_need_lc_CXX" >&6
14276: archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14277: ;;
14278: esac
14279: fi
14280: ;;
14281: esac
14282:
14283:
14284:
14285:
14286:
14287:
14288:
14289:
14290:
14291:
14292:
14293:
14294:
14295:
14296:
14297:
14298:
14299:
14300:
14301:
14302:
14303:
14304:
14305:
14306:
14307:
14308:
14309:
14310:
14311:
14312:
14313:
14314:
14315:
14316:
14317:
14318:
14319:
14320:
14321:
14322:
14323:
14324:
14325:
14326:
14327:
14328:
14329:
14330:
14331:
14332:
14333:
14334:
14335:
14336:
14337:
14338:
14339:
14340:
14341:
14342:
14343:
14344: echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14345: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14346:
14347: library_names_spec=
14348: libname_spec='lib$name'
14349: soname_spec=
14350: shrext_cmds=".so"
14351: postinstall_cmds=
14352: postuninstall_cmds=
14353: finish_cmds=
14354: finish_eval=
14355: shlibpath_var=
14356: shlibpath_overrides_runpath=unknown
14357: version_type=none
14358: dynamic_linker="$host_os ld.so"
14359: sys_lib_dlsearch_path_spec="/lib /usr/lib"
14360: need_lib_prefix=unknown
14361: hardcode_into_libs=no
14362:
14363: # when you set need_version to no, make sure it does not cause -set_version
14364: # flags to be left without arguments
14365: need_version=unknown
14366:
14367: case $host_os in
14368: aix3*)
14369: version_type=linux # correct to gnu/linux during the next big refactor
14370: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14371: shlibpath_var=LIBPATH
14372:
14373: # AIX 3 has no versioning support, so we append a major version to the name.
14374: soname_spec='${libname}${release}${shared_ext}$major'
14375: ;;
14376:
14377: aix[4-9]*)
14378: version_type=linux # correct to gnu/linux during the next big refactor
14379: need_lib_prefix=no
14380: need_version=no
14381: hardcode_into_libs=yes
14382: if test "$host_cpu" = ia64; then
14383: # AIX 5 supports IA64
14384: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14385: shlibpath_var=LD_LIBRARY_PATH
14386: else
14387: # With GCC up to 2.95.x, collect2 would create an import file
14388: # for dependence libraries. The import file would start with
14389: # the line `#! .'. This would cause the generated library to
14390: # depend on `.', always an invalid library. This was fixed in
14391: # development snapshots of GCC prior to 3.0.
14392: case $host_os in
14393: aix4 | aix4.[01] | aix4.[01].*)
14394: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14395: echo ' yes '
14396: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14397: :
14398: else
14399: can_build_shared=no
14400: fi
14401: ;;
14402: esac
14403: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14404: # soname into executable. Probably we can add versioning support to
14405: # collect2, so additional links can be useful in future.
14406: if test "$aix_use_runtimelinking" = yes; then
14407: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14408: # instead of lib<name>.a to let people know that these are not
14409: # typical AIX shared libraries.
14410: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14411: else
14412: # We preserve .a as extension for shared libraries through AIX4.2
14413: # and later when we are not doing run time linking.
14414: library_names_spec='${libname}${release}.a $libname.a'
14415: soname_spec='${libname}${release}${shared_ext}$major'
14416: fi
14417: shlibpath_var=LIBPATH
14418: fi
14419: ;;
14420:
14421: amigaos*)
14422: case $host_cpu in
14423: powerpc)
14424: # Since July 2007 AmigaOS4 officially supports .so libraries.
14425: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14426: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14427: ;;
14428: m68k)
14429: library_names_spec='$libname.ixlibrary $libname.a'
14430: # Create ${libname}_ixlibrary.a entries in /sys/libs.
14431: 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'
14432: ;;
14433: esac
14434: ;;
14435:
14436: beos*)
14437: library_names_spec='${libname}${shared_ext}'
14438: dynamic_linker="$host_os ld.so"
14439: shlibpath_var=LIBRARY_PATH
14440: ;;
14441:
14442: bsdi[45]*)
14443: version_type=linux # correct to gnu/linux during the next big refactor
14444: need_version=no
14445: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14446: soname_spec='${libname}${release}${shared_ext}$major'
14447: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14448: shlibpath_var=LD_LIBRARY_PATH
14449: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14450: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14451: # the default ld.so.conf also contains /usr/contrib/lib and
14452: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14453: # libtool to hard-code these into programs
14454: ;;
14455:
14456: cygwin* | mingw* | pw32* | cegcc*)
14457: version_type=windows
14458: shrext_cmds=".dll"
14459: need_version=no
14460: need_lib_prefix=no
14461:
14462: case $GCC,$cc_basename in
14463: yes,*)
14464: # gcc
14465: library_names_spec='$libname.dll.a'
14466: # DLL is installed to $(libdir)/../bin by postinstall_cmds
14467: postinstall_cmds='base_file=`basename \${file}`~
14468: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14469: dldir=$destdir/`dirname \$dlpath`~
14470: test -d \$dldir || mkdir -p \$dldir~
14471: $install_prog $dir/$dlname \$dldir/$dlname~
14472: chmod a+x \$dldir/$dlname~
14473: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14474: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14475: fi'
14476: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14477: dlpath=$dir/\$dldll~
14478: $RM \$dlpath'
14479: shlibpath_overrides_runpath=yes
14480:
14481: case $host_os in
14482: cygwin*)
14483: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14484: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14485:
14486: ;;
14487: mingw* | cegcc*)
14488: # MinGW DLLs use traditional 'lib' prefix
14489: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14490: ;;
14491: pw32*)
14492: # pw32 DLLs use 'pw' prefix rather than 'lib'
14493: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14494: ;;
14495: esac
14496: dynamic_linker='Win32 ld.exe'
14497: ;;
14498:
14499: *,cl*)
14500: # Native MSVC
14501: libname_spec='$name'
14502: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14503: library_names_spec='${libname}.dll.lib'
14504:
14505: case $build_os in
14506: mingw*)
14507: sys_lib_search_path_spec=
14508: lt_save_ifs=$IFS
14509: IFS=';'
14510: for lt_path in $LIB
14511: do
14512: IFS=$lt_save_ifs
14513: # Let DOS variable expansion print the short 8.3 style file name.
14514: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14515: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14516: done
14517: IFS=$lt_save_ifs
14518: # Convert to MSYS style.
14519: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14520: ;;
14521: cygwin*)
14522: # Convert to unix form, then to dos form, then back to unix form
14523: # but this time dos style (no spaces!) so that the unix form looks
14524: # like /cygdrive/c/PROGRA~1:/cygdr...
14525: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14526: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14527: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14528: ;;
14529: *)
14530: sys_lib_search_path_spec="$LIB"
14531: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14532: # It is most probably a Windows format PATH.
14533: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14534: else
14535: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14536: fi
14537: # FIXME: find the short name or the path components, as spaces are
14538: # common. (e.g. "Program Files" -> "PROGRA~1")
14539: ;;
14540: esac
14541:
14542: # DLL is installed to $(libdir)/../bin by postinstall_cmds
14543: postinstall_cmds='base_file=`basename \${file}`~
14544: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14545: dldir=$destdir/`dirname \$dlpath`~
14546: test -d \$dldir || mkdir -p \$dldir~
14547: $install_prog $dir/$dlname \$dldir/$dlname'
14548: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14549: dlpath=$dir/\$dldll~
14550: $RM \$dlpath'
14551: shlibpath_overrides_runpath=yes
14552: dynamic_linker='Win32 link.exe'
14553: ;;
14554:
14555: *)
14556: # Assume MSVC wrapper
14557: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14558: dynamic_linker='Win32 ld.exe'
14559: ;;
14560: esac
14561: # FIXME: first we should search . and the directory the executable is in
14562: shlibpath_var=PATH
14563: ;;
14564:
14565: darwin* | rhapsody*)
14566: dynamic_linker="$host_os dyld"
14567: version_type=darwin
14568: need_lib_prefix=no
14569: need_version=no
14570: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14571: soname_spec='${libname}${release}${major}$shared_ext'
14572: shlibpath_overrides_runpath=yes
14573: shlibpath_var=DYLD_LIBRARY_PATH
14574: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14575:
14576: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14577: ;;
14578:
14579: dgux*)
14580: version_type=linux # correct to gnu/linux during the next big refactor
14581: need_lib_prefix=no
14582: need_version=no
14583: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14584: soname_spec='${libname}${release}${shared_ext}$major'
14585: shlibpath_var=LD_LIBRARY_PATH
14586: ;;
14587:
14588: freebsd* | dragonfly*)
14589: # DragonFly does not have aout. When/if they implement a new
14590: # versioning mechanism, adjust this.
14591: if test -x /usr/bin/objformat; then
14592: objformat=`/usr/bin/objformat`
14593: else
14594: case $host_os in
14595: freebsd[23].*) objformat=aout ;;
14596: *) objformat=elf ;;
14597: esac
14598: fi
14599: version_type=freebsd-$objformat
14600: case $version_type in
14601: freebsd-elf*)
14602: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14603: need_version=no
14604: need_lib_prefix=no
14605: ;;
14606: freebsd-*)
14607: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14608: need_version=yes
14609: ;;
14610: esac
14611: shlibpath_var=LD_LIBRARY_PATH
14612: case $host_os in
14613: freebsd2.*)
14614: shlibpath_overrides_runpath=yes
14615: ;;
14616: freebsd3.[01]* | freebsdelf3.[01]*)
14617: shlibpath_overrides_runpath=yes
14618: hardcode_into_libs=yes
14619: ;;
14620: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14621: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14622: shlibpath_overrides_runpath=no
14623: hardcode_into_libs=yes
14624: ;;
14625: *) # from 4.6 on, and DragonFly
14626: shlibpath_overrides_runpath=yes
14627: hardcode_into_libs=yes
14628: ;;
14629: esac
14630: ;;
14631:
14632: gnu*)
14633: version_type=linux # correct to gnu/linux during the next big refactor
14634: need_lib_prefix=no
14635: need_version=no
14636: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14637: soname_spec='${libname}${release}${shared_ext}$major'
14638: shlibpath_var=LD_LIBRARY_PATH
14639: shlibpath_overrides_runpath=no
14640: hardcode_into_libs=yes
14641: ;;
14642:
14643: haiku*)
14644: version_type=linux # correct to gnu/linux during the next big refactor
14645: need_lib_prefix=no
14646: need_version=no
14647: dynamic_linker="$host_os runtime_loader"
14648: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14649: soname_spec='${libname}${release}${shared_ext}$major'
14650: shlibpath_var=LIBRARY_PATH
14651: shlibpath_overrides_runpath=yes
14652: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14653: hardcode_into_libs=yes
14654: ;;
14655:
14656: hpux9* | hpux10* | hpux11*)
14657: # Give a soname corresponding to the major version so that dld.sl refuses to
14658: # link against other versions.
14659: version_type=sunos
14660: need_lib_prefix=no
14661: need_version=no
14662: case $host_cpu in
14663: ia64*)
14664: shrext_cmds='.so'
14665: hardcode_into_libs=yes
14666: dynamic_linker="$host_os dld.so"
14667: shlibpath_var=LD_LIBRARY_PATH
14668: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14669: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14670: soname_spec='${libname}${release}${shared_ext}$major'
14671: if test "X$HPUX_IA64_MODE" = X32; then
14672: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14673: else
14674: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14675: fi
14676: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14677: ;;
14678: hppa*64*)
14679: shrext_cmds='.sl'
14680: hardcode_into_libs=yes
14681: dynamic_linker="$host_os dld.sl"
14682: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14683: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14684: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14685: soname_spec='${libname}${release}${shared_ext}$major'
14686: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14687: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14688: ;;
14689: *)
14690: shrext_cmds='.sl'
14691: dynamic_linker="$host_os dld.sl"
14692: shlibpath_var=SHLIB_PATH
14693: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14694: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14695: soname_spec='${libname}${release}${shared_ext}$major'
14696: ;;
14697: esac
14698: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14699: postinstall_cmds='chmod 555 $lib'
14700: # or fails outright, so override atomically:
14701: install_override_mode=555
14702: ;;
14703:
14704: interix[3-9]*)
14705: version_type=linux # correct to gnu/linux during the next big refactor
14706: need_lib_prefix=no
14707: need_version=no
14708: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14709: soname_spec='${libname}${release}${shared_ext}$major'
14710: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14711: shlibpath_var=LD_LIBRARY_PATH
14712: shlibpath_overrides_runpath=no
14713: hardcode_into_libs=yes
14714: ;;
14715:
14716: irix5* | irix6* | nonstopux*)
14717: case $host_os in
14718: nonstopux*) version_type=nonstopux ;;
14719: *)
14720: if test "$lt_cv_prog_gnu_ld" = yes; then
14721: version_type=linux # correct to gnu/linux during the next big refactor
14722: else
14723: version_type=irix
14724: fi ;;
14725: esac
14726: need_lib_prefix=no
14727: need_version=no
14728: soname_spec='${libname}${release}${shared_ext}$major'
14729: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14730: case $host_os in
14731: irix5* | nonstopux*)
14732: libsuff= shlibsuff=
14733: ;;
14734: *)
14735: case $LD in # libtool.m4 will add one of these switches to LD
14736: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14737: libsuff= shlibsuff= libmagic=32-bit;;
14738: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14739: libsuff=32 shlibsuff=N32 libmagic=N32;;
14740: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14741: libsuff=64 shlibsuff=64 libmagic=64-bit;;
14742: *) libsuff= shlibsuff= libmagic=never-match;;
14743: esac
14744: ;;
14745: esac
14746: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14747: shlibpath_overrides_runpath=no
14748: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14749: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14750: hardcode_into_libs=yes
14751: ;;
14752:
14753: # No shared lib support for Linux oldld, aout, or coff.
14754: linux*oldld* | linux*aout* | linux*coff*)
14755: dynamic_linker=no
14756: ;;
14757:
14758: # This must be glibc/ELF.
14759: linux* | k*bsd*-gnu | kopensolaris*-gnu)
14760: version_type=linux # correct to gnu/linux during the next big refactor
14761: need_lib_prefix=no
14762: need_version=no
14763: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14764: soname_spec='${libname}${release}${shared_ext}$major'
14765: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14766: shlibpath_var=LD_LIBRARY_PATH
14767: shlibpath_overrides_runpath=no
14768:
14769: # Some binutils ld are patched to set DT_RUNPATH
14770: if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
14771: echo $ECHO_N "(cached) $ECHO_C" >&6
14772: else
14773: lt_cv_shlibpath_overrides_runpath=no
14774: save_LDFLAGS=$LDFLAGS
14775: save_libdir=$libdir
14776: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14777: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14778: cat >conftest.$ac_ext <<_ACEOF
14779: /* confdefs.h. */
14780: _ACEOF
14781: cat confdefs.h >>conftest.$ac_ext
14782: cat >>conftest.$ac_ext <<_ACEOF
14783: /* end confdefs.h. */
14784:
14785: int
14786: main ()
14787: {
14788:
14789: ;
14790: return 0;
14791: }
14792: _ACEOF
14793: rm -f conftest.$ac_objext conftest$ac_exeext
14794: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14795: (eval $ac_link) 2>conftest.er1
14796: ac_status=$?
14797: grep -v '^ *+' conftest.er1 >conftest.err
14798: rm -f conftest.er1
14799: cat conftest.err >&5
14800: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14801: (exit $ac_status); } &&
14802: { ac_try='test -z "$ac_cxx_werror_flag"
14803: || test ! -s conftest.err'
14804: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14805: (eval $ac_try) 2>&5
14806: ac_status=$?
14807: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14808: (exit $ac_status); }; } &&
14809: { ac_try='test -s conftest$ac_exeext'
14810: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14811: (eval $ac_try) 2>&5
14812: ac_status=$?
14813: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14814: (exit $ac_status); }; }; then
14815: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
14816: lt_cv_shlibpath_overrides_runpath=yes
14817: fi
14818:
14819: else
14820: echo "$as_me: failed program was:" >&5
14821: sed 's/^/| /' conftest.$ac_ext >&5
14822:
14823: fi
14824: rm -f conftest.err conftest.$ac_objext \
14825: conftest$ac_exeext conftest.$ac_ext
14826: LDFLAGS=$save_LDFLAGS
14827: libdir=$save_libdir
14828:
14829: fi
14830:
14831: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14832:
14833: # This implies no fast_install, which is unacceptable.
14834: # Some rework will be needed to allow for fast_install
14835: # before this can be enabled.
14836: hardcode_into_libs=yes
14837:
14838: # Append ld.so.conf contents to the search path
14839: if test -f /etc/ld.so.conf; then
14840: 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' ' '`
14841: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14842: fi
14843:
14844: # We used to test for /lib/ld.so.1 and disable shared libraries on
14845: # powerpc, because MkLinux only supported shared libraries with the
14846: # GNU dynamic linker. Since this was broken with cross compilers,
14847: # most powerpc-linux boxes support dynamic linking these days and
14848: # people can always --disable-shared, the test was removed, and we
14849: # assume the GNU/Linux dynamic linker is in use.
14850: dynamic_linker='GNU/Linux ld.so'
14851: ;;
14852:
14853: netbsd*)
14854: version_type=sunos
14855: need_lib_prefix=no
14856: need_version=no
14857: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14858: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14859: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14860: dynamic_linker='NetBSD (a.out) ld.so'
14861: else
14862: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14863: soname_spec='${libname}${release}${shared_ext}$major'
14864: dynamic_linker='NetBSD ld.elf_so'
14865: fi
14866: shlibpath_var=LD_LIBRARY_PATH
14867: shlibpath_overrides_runpath=yes
14868: hardcode_into_libs=yes
14869: ;;
14870:
14871: newsos6)
14872: version_type=linux # correct to gnu/linux during the next big refactor
14873: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14874: shlibpath_var=LD_LIBRARY_PATH
14875: shlibpath_overrides_runpath=yes
14876: ;;
14877:
14878: *nto* | *qnx*)
14879: version_type=qnx
14880: need_lib_prefix=no
14881: need_version=no
14882: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14883: soname_spec='${libname}${release}${shared_ext}$major'
14884: shlibpath_var=LD_LIBRARY_PATH
14885: shlibpath_overrides_runpath=no
14886: hardcode_into_libs=yes
14887: dynamic_linker='ldqnx.so'
14888: ;;
14889:
14890: openbsd*)
14891: version_type=sunos
14892: sys_lib_dlsearch_path_spec="/usr/lib"
14893: need_lib_prefix=no
14894: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14895: case $host_os in
14896: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14897: *) need_version=no ;;
14898: esac
14899: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14900: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14901: shlibpath_var=LD_LIBRARY_PATH
14902: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14903: case $host_os in
14904: openbsd2.[89] | openbsd2.[89].*)
14905: shlibpath_overrides_runpath=no
14906: ;;
14907: *)
14908: shlibpath_overrides_runpath=yes
14909: ;;
14910: esac
14911: else
14912: shlibpath_overrides_runpath=yes
14913: fi
14914: ;;
14915:
14916: os2*)
14917: libname_spec='$name'
14918: shrext_cmds=".dll"
14919: need_lib_prefix=no
14920: library_names_spec='$libname${shared_ext} $libname.a'
14921: dynamic_linker='OS/2 ld.exe'
14922: shlibpath_var=LIBPATH
14923: ;;
14924:
14925: osf3* | osf4* | osf5*)
14926: version_type=osf
14927: need_lib_prefix=no
14928: need_version=no
14929: soname_spec='${libname}${release}${shared_ext}$major'
14930: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14931: shlibpath_var=LD_LIBRARY_PATH
14932: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14933: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14934: ;;
14935:
14936: rdos*)
14937: dynamic_linker=no
14938: ;;
14939:
14940: solaris*)
14941: version_type=linux # correct to gnu/linux during the next big refactor
14942: need_lib_prefix=no
14943: need_version=no
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: shlibpath_overrides_runpath=yes
14948: hardcode_into_libs=yes
14949: # ldd complains unless libraries are executable
14950: postinstall_cmds='chmod +x $lib'
14951: ;;
14952:
14953: sunos4*)
14954: version_type=sunos
14955: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14956: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14957: shlibpath_var=LD_LIBRARY_PATH
14958: shlibpath_overrides_runpath=yes
14959: if test "$with_gnu_ld" = yes; then
14960: need_lib_prefix=no
14961: fi
14962: need_version=yes
14963: ;;
14964:
14965: sysv4 | sysv4.3*)
14966: version_type=linux # correct to gnu/linux during the next big refactor
14967: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14968: soname_spec='${libname}${release}${shared_ext}$major'
14969: shlibpath_var=LD_LIBRARY_PATH
14970: case $host_vendor in
14971: sni)
14972: shlibpath_overrides_runpath=no
14973: need_lib_prefix=no
14974: runpath_var=LD_RUN_PATH
14975: ;;
14976: siemens)
14977: need_lib_prefix=no
14978: ;;
14979: motorola)
14980: need_lib_prefix=no
14981: need_version=no
14982: shlibpath_overrides_runpath=no
14983: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14984: ;;
14985: esac
14986: ;;
14987:
14988: sysv4*MP*)
14989: if test -d /usr/nec ;then
14990: version_type=linux # correct to gnu/linux during the next big refactor
14991: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14992: soname_spec='$libname${shared_ext}.$major'
14993: shlibpath_var=LD_LIBRARY_PATH
14994: fi
14995: ;;
14996:
14997: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14998: version_type=freebsd-elf
14999: need_lib_prefix=no
15000: need_version=no
15001: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15002: soname_spec='${libname}${release}${shared_ext}$major'
15003: shlibpath_var=LD_LIBRARY_PATH
15004: shlibpath_overrides_runpath=yes
15005: hardcode_into_libs=yes
15006: if test "$with_gnu_ld" = yes; then
15007: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15008: else
15009: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15010: case $host_os in
15011: sco3.2v5*)
15012: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15013: ;;
15014: esac
15015: fi
15016: sys_lib_dlsearch_path_spec='/usr/lib'
15017: ;;
15018:
15019: tpf*)
15020: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15021: version_type=linux # correct to gnu/linux during the next big refactor
15022: need_lib_prefix=no
15023: need_version=no
15024: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15025: shlibpath_var=LD_LIBRARY_PATH
15026: shlibpath_overrides_runpath=no
15027: hardcode_into_libs=yes
15028: ;;
15029:
15030: uts4*)
15031: version_type=linux # correct to gnu/linux during the next big refactor
15032: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15033: soname_spec='${libname}${release}${shared_ext}$major'
15034: shlibpath_var=LD_LIBRARY_PATH
15035: ;;
15036:
15037: *)
15038: dynamic_linker=no
15039: ;;
15040: esac
15041: echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15042: echo "${ECHO_T}$dynamic_linker" >&6
15043: test "$dynamic_linker" = no && can_build_shared=no
15044:
15045: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15046: if test "$GCC" = yes; then
15047: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15048: fi
15049:
15050: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15051: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15052: fi
15053: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15054: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15055: fi
15056:
15057:
15058:
15059:
15060:
15061:
15062:
15063:
15064:
15065:
15066:
15067:
15068:
15069:
15070:
15071:
15072:
15073:
15074:
15075:
15076:
15077:
15078:
15079:
15080:
15081:
15082:
15083:
15084:
15085:
15086:
15087:
15088:
15089:
15090:
15091:
15092:
15093:
15094: echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15095: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15096: hardcode_action_CXX=
15097: if test -n "$hardcode_libdir_flag_spec_CXX" ||
15098: test -n "$runpath_var_CXX" ||
15099: test "X$hardcode_automatic_CXX" = "Xyes" ; then
15100:
15101: # We can hardcode non-existent directories.
15102: if test "$hardcode_direct_CXX" != no &&
15103: # If the only mechanism to avoid hardcoding is shlibpath_var, we
15104: # have to relink, otherwise we might link with an installed library
15105: # when we should be linking with a yet-to-be-installed one
15106: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15107: test "$hardcode_minus_L_CXX" != no; then
15108: # Linking always hardcodes the temporary library directory.
15109: hardcode_action_CXX=relink
15110: else
15111: # We can link without hardcoding, and we can hardcode nonexisting dirs.
15112: hardcode_action_CXX=immediate
15113: fi
15114: else
15115: # We cannot hardcode anything, or else we can only hardcode existing
15116: # directories.
15117: hardcode_action_CXX=unsupported
15118: fi
15119: echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15120: echo "${ECHO_T}$hardcode_action_CXX" >&6
15121:
15122: if test "$hardcode_action_CXX" = relink ||
15123: test "$inherit_rpath_CXX" = yes; then
15124: # Fast installation is not supported
15125: enable_fast_install=no
15126: elif test "$shlibpath_overrides_runpath" = yes ||
15127: test "$enable_shared" = no; then
15128: # Fast installation is not necessary
15129: enable_fast_install=needless
15130: fi
15131:
15132:
15133:
15134:
15135:
15136:
15137:
15138: fi # test -n "$compiler"
15139:
15140: CC=$lt_save_CC
15141: CFLAGS=$lt_save_CFLAGS
15142: LDCXX=$LD
15143: LD=$lt_save_LD
15144: GCC=$lt_save_GCC
15145: with_gnu_ld=$lt_save_with_gnu_ld
15146: lt_cv_path_LDCXX=$lt_cv_path_LD
15147: lt_cv_path_LD=$lt_save_path_LD
15148: lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15149: lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15150: fi # test "$_lt_caught_CXX_error" != yes
15151:
15152: ac_ext=c
15153: ac_cpp='$CPP $CPPFLAGS'
15154: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15155: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15156: ac_compiler_gnu=$ac_cv_c_compiler_gnu
15157:
15158:
15159:
15160:
15161:
15162:
15163:
15164:
15165:
15166:
15167:
15168:
15169:
15170:
15171:
15172: ac_config_commands="$ac_config_commands libtool"
15173:
15174:
15175:
15176:
15177: # Only expand once:
15178:
15179:
15180: echo "$as_me:$LINENO: checking which extension is used for runtime loadable modules" >&5
15181: echo $ECHO_N "checking which extension is used for runtime loadable modules... $ECHO_C" >&6
15182: if test "${libltdl_cv_shlibext+set}" = set; then
15183: echo $ECHO_N "(cached) $ECHO_C" >&6
15184: else
15185:
15186: module=yes
15187: eval libltdl_cv_shlibext=$shrext_cmds
15188: module=no
15189: eval libltdl_cv_shrext=$shrext_cmds
15190:
15191: fi
15192: echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
15193: echo "${ECHO_T}$libltdl_cv_shlibext" >&6
15194: if test -n "$libltdl_cv_shlibext"; then
15195:
15196: cat >>confdefs.h <<_ACEOF
15197: #define LT_MODULE_EXT "$libltdl_cv_shlibext"
15198: _ACEOF
15199:
15200: fi
15201: if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
15202:
15203: cat >>confdefs.h <<_ACEOF
15204: #define LT_SHARED_EXT "$libltdl_cv_shrext"
15205: _ACEOF
15206:
15207: fi
15208:
15209: echo "$as_me:$LINENO: checking which variable specifies run-time module search path" >&5
15210: echo $ECHO_N "checking which variable specifies run-time module search path... $ECHO_C" >&6
15211: if test "${lt_cv_module_path_var+set}" = set; then
15212: echo $ECHO_N "(cached) $ECHO_C" >&6
15213: else
15214: lt_cv_module_path_var="$shlibpath_var"
15215: fi
15216: echo "$as_me:$LINENO: result: $lt_cv_module_path_var" >&5
15217: echo "${ECHO_T}$lt_cv_module_path_var" >&6
15218: if test -n "$lt_cv_module_path_var"; then
15219:
15220: cat >>confdefs.h <<_ACEOF
15221: #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
15222: _ACEOF
15223:
15224: fi
15225:
15226: echo "$as_me:$LINENO: checking for the default library search path" >&5
15227: echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
15228: if test "${lt_cv_sys_dlsearch_path+set}" = set; then
15229: echo $ECHO_N "(cached) $ECHO_C" >&6
15230: else
15231: lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
15232: fi
15233: echo "$as_me:$LINENO: result: $lt_cv_sys_dlsearch_path" >&5
15234: echo "${ECHO_T}$lt_cv_sys_dlsearch_path" >&6
15235: if test -n "$lt_cv_sys_dlsearch_path"; then
15236: sys_dlsearch_path=
15237: for dir in $lt_cv_sys_dlsearch_path; do
15238: if test -z "$sys_dlsearch_path"; then
15239: sys_dlsearch_path="$dir"
15240: else
15241: sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
15242: fi
15243: done
15244:
15245: cat >>confdefs.h <<_ACEOF
15246: #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
15247: _ACEOF
15248:
15249: fi
15250:
15251:
15252: LT_DLLOADERS=
15253:
15254:
15255: ac_ext=c
15256: ac_cpp='$CPP $CPPFLAGS'
15257: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15258: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15259: ac_compiler_gnu=$ac_cv_c_compiler_gnu
15260:
15261:
15262: LIBADD_DLOPEN=
15263: echo "$as_me:$LINENO: checking for library containing dlopen" >&5
15264: echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
15265: if test "${ac_cv_search_dlopen+set}" = set; then
15266: echo $ECHO_N "(cached) $ECHO_C" >&6
15267: else
15268: ac_func_search_save_LIBS=$LIBS
15269: ac_cv_search_dlopen=no
15270: cat >conftest.$ac_ext <<_ACEOF
15271: /* confdefs.h. */
15272: _ACEOF
15273: cat confdefs.h >>conftest.$ac_ext
15274: cat >>conftest.$ac_ext <<_ACEOF
15275: /* end confdefs.h. */
15276:
15277: /* Override any gcc2 internal prototype to avoid an error. */
15278: #ifdef __cplusplus
15279: extern "C"
15280: #endif
15281: /* We use char because int might match the return type of a gcc2
15282: builtin and then its argument prototype would still apply. */
15283: char dlopen ();
15284: int
15285: main ()
15286: {
15287: dlopen ();
15288: ;
15289: return 0;
15290: }
15291: _ACEOF
15292: rm -f conftest.$ac_objext conftest$ac_exeext
15293: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15294: (eval $ac_link) 2>conftest.er1
15295: ac_status=$?
15296: grep -v '^ *+' conftest.er1 >conftest.err
15297: rm -f conftest.er1
15298: cat conftest.err >&5
15299: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15300: (exit $ac_status); } &&
15301: { ac_try='test -z "$ac_c_werror_flag"
15302: || test ! -s conftest.err'
15303: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15304: (eval $ac_try) 2>&5
15305: ac_status=$?
15306: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15307: (exit $ac_status); }; } &&
15308: { ac_try='test -s conftest$ac_exeext'
15309: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15310: (eval $ac_try) 2>&5
15311: ac_status=$?
15312: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15313: (exit $ac_status); }; }; then
15314: ac_cv_search_dlopen="none required"
15315: else
15316: echo "$as_me: failed program was:" >&5
15317: sed 's/^/| /' conftest.$ac_ext >&5
15318:
15319: fi
15320: rm -f conftest.err conftest.$ac_objext \
15321: conftest$ac_exeext conftest.$ac_ext
15322: if test "$ac_cv_search_dlopen" = no; then
15323: for ac_lib in dl; do
15324: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15325: cat >conftest.$ac_ext <<_ACEOF
15326: /* confdefs.h. */
15327: _ACEOF
15328: cat confdefs.h >>conftest.$ac_ext
15329: cat >>conftest.$ac_ext <<_ACEOF
15330: /* end confdefs.h. */
15331:
15332: /* Override any gcc2 internal prototype to avoid an error. */
15333: #ifdef __cplusplus
15334: extern "C"
15335: #endif
15336: /* We use char because int might match the return type of a gcc2
15337: builtin and then its argument prototype would still apply. */
15338: char dlopen ();
15339: int
15340: main ()
15341: {
15342: dlopen ();
15343: ;
15344: return 0;
15345: }
15346: _ACEOF
15347: rm -f conftest.$ac_objext conftest$ac_exeext
15348: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15349: (eval $ac_link) 2>conftest.er1
15350: ac_status=$?
15351: grep -v '^ *+' conftest.er1 >conftest.err
15352: rm -f conftest.er1
15353: cat conftest.err >&5
15354: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15355: (exit $ac_status); } &&
15356: { ac_try='test -z "$ac_c_werror_flag"
15357: || test ! -s conftest.err'
15358: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15359: (eval $ac_try) 2>&5
15360: ac_status=$?
15361: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15362: (exit $ac_status); }; } &&
15363: { ac_try='test -s conftest$ac_exeext'
15364: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15365: (eval $ac_try) 2>&5
15366: ac_status=$?
15367: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15368: (exit $ac_status); }; }; then
15369: ac_cv_search_dlopen="-l$ac_lib"
15370: break
15371: else
15372: echo "$as_me: failed program was:" >&5
15373: sed 's/^/| /' conftest.$ac_ext >&5
15374:
15375: fi
15376: rm -f conftest.err conftest.$ac_objext \
15377: conftest$ac_exeext conftest.$ac_ext
15378: done
15379: fi
15380: LIBS=$ac_func_search_save_LIBS
15381: fi
15382: echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
15383: echo "${ECHO_T}$ac_cv_search_dlopen" >&6
15384: if test "$ac_cv_search_dlopen" != no; then
15385: test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
15386:
15387: cat >>confdefs.h <<\_ACEOF
15388: #define HAVE_LIBDL 1
15389: _ACEOF
15390:
15391: if test "$ac_cv_search_dlopen" != "none required" ; then
15392: LIBADD_DLOPEN="-ldl"
15393: fi
15394: libltdl_cv_lib_dl_dlopen="yes"
15395: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
15396: else
15397: cat >conftest.$ac_ext <<_ACEOF
15398: /* confdefs.h. */
15399: _ACEOF
15400: cat confdefs.h >>conftest.$ac_ext
15401: cat >>conftest.$ac_ext <<_ACEOF
15402: /* end confdefs.h. */
15403: #if HAVE_DLFCN_H
15404: # include <dlfcn.h>
15405: #endif
15406:
15407: int
15408: main ()
15409: {
15410: dlopen(0, 0);
15411: ;
15412: return 0;
15413: }
15414: _ACEOF
15415: rm -f conftest.$ac_objext conftest$ac_exeext
15416: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15417: (eval $ac_link) 2>conftest.er1
15418: ac_status=$?
15419: grep -v '^ *+' conftest.er1 >conftest.err
15420: rm -f conftest.er1
15421: cat conftest.err >&5
15422: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15423: (exit $ac_status); } &&
15424: { ac_try='test -z "$ac_c_werror_flag"
15425: || test ! -s conftest.err'
15426: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15427: (eval $ac_try) 2>&5
15428: ac_status=$?
15429: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15430: (exit $ac_status); }; } &&
15431: { ac_try='test -s conftest$ac_exeext'
15432: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15433: (eval $ac_try) 2>&5
15434: ac_status=$?
15435: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15436: (exit $ac_status); }; }; then
15437:
15438: cat >>confdefs.h <<\_ACEOF
15439: #define HAVE_LIBDL 1
15440: _ACEOF
15441:
15442: libltdl_cv_func_dlopen="yes"
15443: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
15444: else
15445: echo "$as_me: failed program was:" >&5
15446: sed 's/^/| /' conftest.$ac_ext >&5
15447:
15448: echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
15449: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
15450: if test "${ac_cv_lib_svld_dlopen+set}" = set; then
15451: echo $ECHO_N "(cached) $ECHO_C" >&6
15452: else
15453: ac_check_lib_save_LIBS=$LIBS
15454: LIBS="-lsvld $LIBS"
15455: cat >conftest.$ac_ext <<_ACEOF
15456: /* confdefs.h. */
15457: _ACEOF
15458: cat confdefs.h >>conftest.$ac_ext
15459: cat >>conftest.$ac_ext <<_ACEOF
15460: /* end confdefs.h. */
15461:
15462: /* Override any gcc2 internal prototype to avoid an error. */
15463: #ifdef __cplusplus
15464: extern "C"
15465: #endif
15466: /* We use char because int might match the return type of a gcc2
15467: builtin and then its argument prototype would still apply. */
15468: char dlopen ();
15469: int
15470: main ()
15471: {
15472: dlopen ();
15473: ;
15474: return 0;
15475: }
15476: _ACEOF
15477: rm -f conftest.$ac_objext conftest$ac_exeext
15478: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15479: (eval $ac_link) 2>conftest.er1
15480: ac_status=$?
15481: grep -v '^ *+' conftest.er1 >conftest.err
15482: rm -f conftest.er1
15483: cat conftest.err >&5
15484: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15485: (exit $ac_status); } &&
15486: { ac_try='test -z "$ac_c_werror_flag"
15487: || test ! -s conftest.err'
15488: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15489: (eval $ac_try) 2>&5
15490: ac_status=$?
15491: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15492: (exit $ac_status); }; } &&
15493: { ac_try='test -s conftest$ac_exeext'
15494: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15495: (eval $ac_try) 2>&5
15496: ac_status=$?
15497: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15498: (exit $ac_status); }; }; then
15499: ac_cv_lib_svld_dlopen=yes
15500: else
15501: echo "$as_me: failed program was:" >&5
15502: sed 's/^/| /' conftest.$ac_ext >&5
15503:
15504: ac_cv_lib_svld_dlopen=no
15505: fi
15506: rm -f conftest.err conftest.$ac_objext \
15507: conftest$ac_exeext conftest.$ac_ext
15508: LIBS=$ac_check_lib_save_LIBS
15509: fi
15510: echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
15511: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
15512: if test $ac_cv_lib_svld_dlopen = yes; then
15513:
15514: cat >>confdefs.h <<\_ACEOF
15515: #define HAVE_LIBDL 1
15516: _ACEOF
15517:
15518: LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
15519: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
15520: fi
15521:
15522: fi
15523: rm -f conftest.err conftest.$ac_objext \
15524: conftest$ac_exeext conftest.$ac_ext
15525: fi
15526:
15527: if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
15528: then
15529: lt_save_LIBS="$LIBS"
15530: LIBS="$LIBS $LIBADD_DLOPEN"
15531:
15532: for ac_func in dlerror
15533: do
15534: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15535: echo "$as_me:$LINENO: checking for $ac_func" >&5
15536: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15537: if eval "test \"\${$as_ac_var+set}\" = set"; then
15538: echo $ECHO_N "(cached) $ECHO_C" >&6
15539: else
15540: cat >conftest.$ac_ext <<_ACEOF
15541: /* confdefs.h. */
15542: _ACEOF
15543: cat confdefs.h >>conftest.$ac_ext
15544: cat >>conftest.$ac_ext <<_ACEOF
15545: /* end confdefs.h. */
15546: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15547: For example, HP-UX 11i <limits.h> declares gettimeofday. */
15548: #define $ac_func innocuous_$ac_func
15549:
15550: /* System header to define __stub macros and hopefully few prototypes,
15551: which can conflict with char $ac_func (); below.
15552: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15553: <limits.h> exists even on freestanding compilers. */
15554:
15555: #ifdef __STDC__
15556: # include <limits.h>
15557: #else
15558: # include <assert.h>
15559: #endif
15560:
15561: #undef $ac_func
15562:
15563: /* Override any gcc2 internal prototype to avoid an error. */
15564: #ifdef __cplusplus
15565: extern "C"
15566: {
15567: #endif
15568: /* We use char because int might match the return type of a gcc2
15569: builtin and then its argument prototype would still apply. */
15570: char $ac_func ();
15571: /* The GNU C library defines this for functions which it implements
15572: to always fail with ENOSYS. Some functions are actually named
15573: something starting with __ and the normal name is an alias. */
15574: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15575: choke me
15576: #else
15577: char (*f) () = $ac_func;
15578: #endif
15579: #ifdef __cplusplus
15580: }
15581: #endif
15582:
15583: int
15584: main ()
15585: {
15586: return f != $ac_func;
15587: ;
15588: return 0;
15589: }
15590: _ACEOF
15591: rm -f conftest.$ac_objext conftest$ac_exeext
15592: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15593: (eval $ac_link) 2>conftest.er1
15594: ac_status=$?
15595: grep -v '^ *+' conftest.er1 >conftest.err
15596: rm -f conftest.er1
15597: cat conftest.err >&5
15598: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15599: (exit $ac_status); } &&
15600: { ac_try='test -z "$ac_c_werror_flag"
15601: || test ! -s conftest.err'
15602: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15603: (eval $ac_try) 2>&5
15604: ac_status=$?
15605: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15606: (exit $ac_status); }; } &&
15607: { ac_try='test -s conftest$ac_exeext'
15608: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15609: (eval $ac_try) 2>&5
15610: ac_status=$?
15611: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15612: (exit $ac_status); }; }; then
15613: eval "$as_ac_var=yes"
15614: else
15615: echo "$as_me: failed program was:" >&5
15616: sed 's/^/| /' conftest.$ac_ext >&5
15617:
15618: eval "$as_ac_var=no"
15619: fi
15620: rm -f conftest.err conftest.$ac_objext \
15621: conftest$ac_exeext conftest.$ac_ext
15622: fi
15623: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15624: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15625: if test `eval echo '${'$as_ac_var'}'` = yes; then
15626: cat >>confdefs.h <<_ACEOF
15627: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15628: _ACEOF
15629:
15630: fi
15631: done
15632:
15633: LIBS="$lt_save_LIBS"
15634: fi
15635:
15636:
15637: LIBADD_SHL_LOAD=
15638: echo "$as_me:$LINENO: checking for shl_load" >&5
15639: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
15640: if test "${ac_cv_func_shl_load+set}" = set; then
15641: echo $ECHO_N "(cached) $ECHO_C" >&6
15642: else
15643: cat >conftest.$ac_ext <<_ACEOF
15644: /* confdefs.h. */
15645: _ACEOF
15646: cat confdefs.h >>conftest.$ac_ext
15647: cat >>conftest.$ac_ext <<_ACEOF
15648: /* end confdefs.h. */
15649: /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
15650: For example, HP-UX 11i <limits.h> declares gettimeofday. */
15651: #define shl_load innocuous_shl_load
15652:
15653: /* System header to define __stub macros and hopefully few prototypes,
15654: which can conflict with char shl_load (); below.
15655: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15656: <limits.h> exists even on freestanding compilers. */
15657:
15658: #ifdef __STDC__
15659: # include <limits.h>
15660: #else
15661: # include <assert.h>
15662: #endif
15663:
15664: #undef shl_load
15665:
15666: /* Override any gcc2 internal prototype to avoid an error. */
15667: #ifdef __cplusplus
15668: extern "C"
15669: {
15670: #endif
15671: /* We use char because int might match the return type of a gcc2
15672: builtin and then its argument prototype would still apply. */
15673: char shl_load ();
15674: /* The GNU C library defines this for functions which it implements
15675: to always fail with ENOSYS. Some functions are actually named
15676: something starting with __ and the normal name is an alias. */
15677: #if defined (__stub_shl_load) || defined (__stub___shl_load)
15678: choke me
15679: #else
15680: char (*f) () = shl_load;
15681: #endif
15682: #ifdef __cplusplus
15683: }
15684: #endif
15685:
15686: int
15687: main ()
15688: {
15689: return f != shl_load;
15690: ;
15691: return 0;
15692: }
15693: _ACEOF
15694: rm -f conftest.$ac_objext conftest$ac_exeext
15695: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15696: (eval $ac_link) 2>conftest.er1
15697: ac_status=$?
15698: grep -v '^ *+' conftest.er1 >conftest.err
15699: rm -f conftest.er1
15700: cat conftest.err >&5
15701: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15702: (exit $ac_status); } &&
15703: { ac_try='test -z "$ac_c_werror_flag"
15704: || test ! -s conftest.err'
15705: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15706: (eval $ac_try) 2>&5
15707: ac_status=$?
15708: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15709: (exit $ac_status); }; } &&
15710: { ac_try='test -s conftest$ac_exeext'
15711: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15712: (eval $ac_try) 2>&5
15713: ac_status=$?
15714: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15715: (exit $ac_status); }; }; then
15716: ac_cv_func_shl_load=yes
15717: else
15718: echo "$as_me: failed program was:" >&5
15719: sed 's/^/| /' conftest.$ac_ext >&5
15720:
15721: ac_cv_func_shl_load=no
15722: fi
15723: rm -f conftest.err conftest.$ac_objext \
15724: conftest$ac_exeext conftest.$ac_ext
15725: fi
15726: echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
15727: echo "${ECHO_T}$ac_cv_func_shl_load" >&6
15728: if test $ac_cv_func_shl_load = yes; then
15729:
15730: cat >>confdefs.h <<\_ACEOF
15731: #define HAVE_SHL_LOAD 1
15732: _ACEOF
15733:
15734: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
15735: else
15736: echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
15737: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
15738: if test "${ac_cv_lib_dld_shl_load+set}" = set; then
15739: echo $ECHO_N "(cached) $ECHO_C" >&6
15740: else
15741: ac_check_lib_save_LIBS=$LIBS
15742: LIBS="-ldld $LIBS"
15743: cat >conftest.$ac_ext <<_ACEOF
15744: /* confdefs.h. */
15745: _ACEOF
15746: cat confdefs.h >>conftest.$ac_ext
15747: cat >>conftest.$ac_ext <<_ACEOF
15748: /* end confdefs.h. */
15749:
15750: /* Override any gcc2 internal prototype to avoid an error. */
15751: #ifdef __cplusplus
15752: extern "C"
15753: #endif
15754: /* We use char because int might match the return type of a gcc2
15755: builtin and then its argument prototype would still apply. */
15756: char shl_load ();
15757: int
15758: main ()
15759: {
15760: shl_load ();
15761: ;
15762: return 0;
15763: }
15764: _ACEOF
15765: rm -f conftest.$ac_objext conftest$ac_exeext
15766: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15767: (eval $ac_link) 2>conftest.er1
15768: ac_status=$?
15769: grep -v '^ *+' conftest.er1 >conftest.err
15770: rm -f conftest.er1
15771: cat conftest.err >&5
15772: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15773: (exit $ac_status); } &&
15774: { ac_try='test -z "$ac_c_werror_flag"
15775: || test ! -s conftest.err'
15776: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15777: (eval $ac_try) 2>&5
15778: ac_status=$?
15779: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15780: (exit $ac_status); }; } &&
15781: { ac_try='test -s conftest$ac_exeext'
15782: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15783: (eval $ac_try) 2>&5
15784: ac_status=$?
15785: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15786: (exit $ac_status); }; }; then
15787: ac_cv_lib_dld_shl_load=yes
15788: else
15789: echo "$as_me: failed program was:" >&5
15790: sed 's/^/| /' conftest.$ac_ext >&5
15791:
15792: ac_cv_lib_dld_shl_load=no
15793: fi
15794: rm -f conftest.err conftest.$ac_objext \
15795: conftest$ac_exeext conftest.$ac_ext
15796: LIBS=$ac_check_lib_save_LIBS
15797: fi
15798: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
15799: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
15800: if test $ac_cv_lib_dld_shl_load = yes; then
15801:
15802: cat >>confdefs.h <<\_ACEOF
15803: #define HAVE_SHL_LOAD 1
15804: _ACEOF
15805:
15806: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
15807: LIBADD_SHL_LOAD="-ldld"
15808: fi
15809:
15810: fi
15811:
15812:
15813:
15814: case $host_os in
15815: darwin[1567].*)
15816: # We only want this for pre-Mac OS X 10.4.
15817: echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
15818: echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
15819: if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
15820: echo $ECHO_N "(cached) $ECHO_C" >&6
15821: else
15822: cat >conftest.$ac_ext <<_ACEOF
15823: /* confdefs.h. */
15824: _ACEOF
15825: cat confdefs.h >>conftest.$ac_ext
15826: cat >>conftest.$ac_ext <<_ACEOF
15827: /* end confdefs.h. */
15828: /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
15829: For example, HP-UX 11i <limits.h> declares gettimeofday. */
15830: #define _dyld_func_lookup innocuous__dyld_func_lookup
15831:
15832: /* System header to define __stub macros and hopefully few prototypes,
15833: which can conflict with char _dyld_func_lookup (); below.
15834: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15835: <limits.h> exists even on freestanding compilers. */
15836:
15837: #ifdef __STDC__
15838: # include <limits.h>
15839: #else
15840: # include <assert.h>
15841: #endif
15842:
15843: #undef _dyld_func_lookup
15844:
15845: /* Override any gcc2 internal prototype to avoid an error. */
15846: #ifdef __cplusplus
15847: extern "C"
15848: {
15849: #endif
15850: /* We use char because int might match the return type of a gcc2
15851: builtin and then its argument prototype would still apply. */
15852: char _dyld_func_lookup ();
15853: /* The GNU C library defines this for functions which it implements
15854: to always fail with ENOSYS. Some functions are actually named
15855: something starting with __ and the normal name is an alias. */
15856: #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
15857: choke me
15858: #else
15859: char (*f) () = _dyld_func_lookup;
15860: #endif
15861: #ifdef __cplusplus
15862: }
15863: #endif
15864:
15865: int
15866: main ()
15867: {
15868: return f != _dyld_func_lookup;
15869: ;
15870: return 0;
15871: }
15872: _ACEOF
15873: rm -f conftest.$ac_objext conftest$ac_exeext
15874: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15875: (eval $ac_link) 2>conftest.er1
15876: ac_status=$?
15877: grep -v '^ *+' conftest.er1 >conftest.err
15878: rm -f conftest.er1
15879: cat conftest.err >&5
15880: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15881: (exit $ac_status); } &&
15882: { ac_try='test -z "$ac_c_werror_flag"
15883: || test ! -s conftest.err'
15884: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15885: (eval $ac_try) 2>&5
15886: ac_status=$?
15887: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15888: (exit $ac_status); }; } &&
15889: { ac_try='test -s conftest$ac_exeext'
15890: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15891: (eval $ac_try) 2>&5
15892: ac_status=$?
15893: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15894: (exit $ac_status); }; }; then
15895: ac_cv_func__dyld_func_lookup=yes
15896: else
15897: echo "$as_me: failed program was:" >&5
15898: sed 's/^/| /' conftest.$ac_ext >&5
15899:
15900: ac_cv_func__dyld_func_lookup=no
15901: fi
15902: rm -f conftest.err conftest.$ac_objext \
15903: conftest$ac_exeext conftest.$ac_ext
15904: fi
15905: echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
15906: echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
15907: if test $ac_cv_func__dyld_func_lookup = yes; then
15908:
15909: cat >>confdefs.h <<\_ACEOF
15910: #define HAVE_DYLD 1
15911: _ACEOF
15912:
15913: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
15914: fi
15915:
15916: ;;
15917: beos*)
15918: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
15919: ;;
15920: cygwin* | mingw* | os2* | pw32*)
15921: echo "$as_me:$LINENO: checking whether cygwin_conv_path is declared" >&5
15922: echo $ECHO_N "checking whether cygwin_conv_path is declared... $ECHO_C" >&6
15923: if test "${ac_cv_have_decl_cygwin_conv_path+set}" = set; then
15924: echo $ECHO_N "(cached) $ECHO_C" >&6
15925: else
15926: cat >conftest.$ac_ext <<_ACEOF
15927: /* confdefs.h. */
15928: _ACEOF
15929: cat confdefs.h >>conftest.$ac_ext
15930: cat >>conftest.$ac_ext <<_ACEOF
15931: /* end confdefs.h. */
15932: #include <sys/cygwin.h>
15933:
15934: int
15935: main ()
15936: {
15937: #ifndef cygwin_conv_path
15938: char *p = (char *) cygwin_conv_path;
15939: #endif
15940:
15941: ;
15942: return 0;
15943: }
15944: _ACEOF
15945: rm -f conftest.$ac_objext
15946: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15947: (eval $ac_compile) 2>conftest.er1
15948: ac_status=$?
15949: grep -v '^ *+' conftest.er1 >conftest.err
15950: rm -f conftest.er1
15951: cat conftest.err >&5
15952: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15953: (exit $ac_status); } &&
15954: { ac_try='test -z "$ac_c_werror_flag"
15955: || test ! -s conftest.err'
15956: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15957: (eval $ac_try) 2>&5
15958: ac_status=$?
15959: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15960: (exit $ac_status); }; } &&
15961: { ac_try='test -s conftest.$ac_objext'
15962: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15963: (eval $ac_try) 2>&5
15964: ac_status=$?
15965: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15966: (exit $ac_status); }; }; then
15967: ac_cv_have_decl_cygwin_conv_path=yes
15968: else
15969: echo "$as_me: failed program was:" >&5
15970: sed 's/^/| /' conftest.$ac_ext >&5
15971:
15972: ac_cv_have_decl_cygwin_conv_path=no
15973: fi
15974: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15975: fi
15976: echo "$as_me:$LINENO: result: $ac_cv_have_decl_cygwin_conv_path" >&5
15977: echo "${ECHO_T}$ac_cv_have_decl_cygwin_conv_path" >&6
15978: if test $ac_cv_have_decl_cygwin_conv_path = yes; then
15979:
15980: cat >>confdefs.h <<_ACEOF
15981: #define HAVE_DECL_CYGWIN_CONV_PATH 1
15982: _ACEOF
15983:
15984:
15985: else
15986: cat >>confdefs.h <<_ACEOF
15987: #define HAVE_DECL_CYGWIN_CONV_PATH 0
15988: _ACEOF
15989:
15990:
15991: fi
15992:
15993:
15994: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
15995: ;;
15996: esac
15997:
15998: echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
15999: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
16000: if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16001: echo $ECHO_N "(cached) $ECHO_C" >&6
16002: else
16003: ac_check_lib_save_LIBS=$LIBS
16004: LIBS="-ldld $LIBS"
16005: cat >conftest.$ac_ext <<_ACEOF
16006: /* confdefs.h. */
16007: _ACEOF
16008: cat confdefs.h >>conftest.$ac_ext
16009: cat >>conftest.$ac_ext <<_ACEOF
16010: /* end confdefs.h. */
16011:
16012: /* Override any gcc2 internal prototype to avoid an error. */
16013: #ifdef __cplusplus
16014: extern "C"
16015: #endif
16016: /* We use char because int might match the return type of a gcc2
16017: builtin and then its argument prototype would still apply. */
16018: char dld_link ();
16019: int
16020: main ()
16021: {
16022: dld_link ();
16023: ;
16024: return 0;
16025: }
16026: _ACEOF
16027: rm -f conftest.$ac_objext conftest$ac_exeext
16028: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16029: (eval $ac_link) 2>conftest.er1
16030: ac_status=$?
16031: grep -v '^ *+' conftest.er1 >conftest.err
16032: rm -f conftest.er1
16033: cat conftest.err >&5
16034: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16035: (exit $ac_status); } &&
16036: { ac_try='test -z "$ac_c_werror_flag"
16037: || test ! -s conftest.err'
16038: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16039: (eval $ac_try) 2>&5
16040: ac_status=$?
16041: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16042: (exit $ac_status); }; } &&
16043: { ac_try='test -s conftest$ac_exeext'
16044: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16045: (eval $ac_try) 2>&5
16046: ac_status=$?
16047: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16048: (exit $ac_status); }; }; then
16049: ac_cv_lib_dld_dld_link=yes
16050: else
16051: echo "$as_me: failed program was:" >&5
16052: sed 's/^/| /' conftest.$ac_ext >&5
16053:
16054: ac_cv_lib_dld_dld_link=no
16055: fi
16056: rm -f conftest.err conftest.$ac_objext \
16057: conftest$ac_exeext conftest.$ac_ext
16058: LIBS=$ac_check_lib_save_LIBS
16059: fi
16060: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16061: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
16062: if test $ac_cv_lib_dld_dld_link = yes; then
16063:
16064: cat >>confdefs.h <<\_ACEOF
16065: #define HAVE_DLD 1
16066: _ACEOF
16067:
16068: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
16069: fi
16070:
16071:
16072:
16073:
16074: LT_DLPREOPEN=
16075: if test -n "$LT_DLLOADERS"
16076: then
16077: for lt_loader in $LT_DLLOADERS; do
16078: LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
16079: done
16080:
16081: cat >>confdefs.h <<\_ACEOF
16082: #define HAVE_LIBDLLOADER 1
16083: _ACEOF
16084:
16085: fi
16086:
16087:
16088: LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
16089:
16090:
16091: ac_ext=c
16092: ac_cpp='$CPP $CPPFLAGS'
16093: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16094: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16095: ac_compiler_gnu=$ac_cv_c_compiler_gnu
16096:
16097:
16098: echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
16099: echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
16100: if test "${lt_cv_sys_symbol_underscore+set}" = set; then
16101: echo $ECHO_N "(cached) $ECHO_C" >&6
16102: else
16103: lt_cv_sys_symbol_underscore=no
16104: cat > conftest.$ac_ext <<_LT_EOF
16105: void nm_test_func(){}
16106: int main(){nm_test_func;return 0;}
16107: _LT_EOF
16108: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16109: (eval $ac_compile) 2>&5
16110: ac_status=$?
16111: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16112: (exit $ac_status); }; then
16113: # Now try to grab the symbols.
16114: ac_nlist=conftest.nm
16115: if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
16116: (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
16117: ac_status=$?
16118: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16119: (exit $ac_status); } && test -s "$ac_nlist"; then
16120: # See whether the symbols have a leading underscore.
16121: if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
16122: lt_cv_sys_symbol_underscore=yes
16123: else
16124: if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
16125: :
16126: else
16127: echo "configure: cannot find nm_test_func in $ac_nlist" >&5
16128: fi
16129: fi
16130: else
16131: echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
16132: fi
16133: else
16134: echo "configure: failed program was:" >&5
16135: cat conftest.c >&5
16136: fi
16137: rm -rf conftest*
16138:
16139: fi
16140: echo "$as_me:$LINENO: result: $lt_cv_sys_symbol_underscore" >&5
16141: echo "${ECHO_T}$lt_cv_sys_symbol_underscore" >&6
16142: sys_symbol_underscore=$lt_cv_sys_symbol_underscore
16143:
16144:
16145: if test x"$lt_cv_sys_symbol_underscore" = xyes; then
16146: if test x"$libltdl_cv_func_dlopen" = xyes ||
16147: test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
16148: echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
16149: echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
16150: if test "${libltdl_cv_need_uscore+set}" = set; then
16151: echo $ECHO_N "(cached) $ECHO_C" >&6
16152: else
16153: libltdl_cv_need_uscore=unknown
16154: save_LIBS="$LIBS"
16155: LIBS="$LIBS $LIBADD_DLOPEN"
16156: if test "$cross_compiling" = yes; then :
16157: libltdl_cv_need_uscore=cross
16158: else
16159: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16160: lt_status=$lt_dlunknown
16161: cat > conftest.$ac_ext <<_LT_EOF
16162: #line $LINENO "configure"
16163: #include "confdefs.h"
16164:
16165: #if HAVE_DLFCN_H
16166: #include <dlfcn.h>
16167: #endif
16168:
16169: #include <stdio.h>
16170:
16171: #ifdef RTLD_GLOBAL
16172: # define LT_DLGLOBAL RTLD_GLOBAL
16173: #else
16174: # ifdef DL_GLOBAL
16175: # define LT_DLGLOBAL DL_GLOBAL
16176: # else
16177: # define LT_DLGLOBAL 0
16178: # endif
16179: #endif
16180:
16181: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16182: find out it does not work in some platform. */
16183: #ifndef LT_DLLAZY_OR_NOW
16184: # ifdef RTLD_LAZY
16185: # define LT_DLLAZY_OR_NOW RTLD_LAZY
16186: # else
16187: # ifdef DL_LAZY
16188: # define LT_DLLAZY_OR_NOW DL_LAZY
16189: # else
16190: # ifdef RTLD_NOW
16191: # define LT_DLLAZY_OR_NOW RTLD_NOW
16192: # else
16193: # ifdef DL_NOW
16194: # define LT_DLLAZY_OR_NOW DL_NOW
16195: # else
16196: # define LT_DLLAZY_OR_NOW 0
16197: # endif
16198: # endif
16199: # endif
16200: # endif
16201: #endif
16202:
16203: /* When -fvisbility=hidden is used, assume the code has been annotated
16204: correspondingly for the symbols needed. */
16205: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16206: int fnord () __attribute__((visibility("default")));
16207: #endif
16208:
16209: int fnord () { return 42; }
16210: int main ()
16211: {
16212: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16213: int status = $lt_dlunknown;
16214:
16215: if (self)
16216: {
16217: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16218: else
16219: {
16220: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16221: else puts (dlerror ());
16222: }
16223: /* dlclose (self); */
16224: }
16225: else
16226: puts (dlerror ());
16227:
16228: return status;
16229: }
16230: _LT_EOF
16231: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16232: (eval $ac_link) 2>&5
16233: ac_status=$?
16234: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16235: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16236: (./conftest; exit; ) >&5 2>/dev/null
16237: lt_status=$?
16238: case x$lt_status in
16239: x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
16240: x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
16241: x$lt_dlunknown|x*) ;;
16242: esac
16243: else :
16244: # compilation failed
16245:
16246: fi
16247: fi
16248: rm -fr conftest*
16249:
16250: LIBS="$save_LIBS"
16251:
16252: fi
16253: echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
16254: echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
16255: fi
16256: fi
16257:
16258: if test x"$libltdl_cv_need_uscore" = xyes; then
16259:
16260: cat >>confdefs.h <<\_ACEOF
16261: #define NEED_USCORE 1
16262: _ACEOF
16263:
16264: fi
16265:
16266: echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
16267: echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
16268: if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then
16269: echo $ECHO_N "(cached) $ECHO_C" >&6
16270: else
16271: # PORTME does your system automatically load deplibs for dlopen?
16272: # or its logical equivalent (e.g. shl_load for HP-UX < 11)
16273: # For now, we just catch OSes we know something about -- in the
16274: # future, we'll try test this programmatically.
16275: lt_cv_sys_dlopen_deplibs=unknown
16276: case $host_os in
16277: aix3*|aix4.1.*|aix4.2.*)
16278: # Unknown whether this is true for these versions of AIX, but
16279: # we want this `case' here to explicitly catch those versions.
16280: lt_cv_sys_dlopen_deplibs=unknown
16281: ;;
16282: aix[4-9]*)
16283: lt_cv_sys_dlopen_deplibs=yes
16284: ;;
16285: amigaos*)
16286: case $host_cpu in
16287: powerpc)
16288: lt_cv_sys_dlopen_deplibs=no
16289: ;;
16290: esac
16291: ;;
16292: darwin*)
16293: # Assuming the user has installed a libdl from somewhere, this is true
16294: # If you are looking for one http://www.opendarwin.org/projects/dlcompat
16295: lt_cv_sys_dlopen_deplibs=yes
16296: ;;
16297: freebsd* | dragonfly*)
16298: lt_cv_sys_dlopen_deplibs=yes
16299: ;;
16300: gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
16301: # GNU and its variants, using gnu ld.so (Glibc)
16302: lt_cv_sys_dlopen_deplibs=yes
16303: ;;
16304: hpux10*|hpux11*)
16305: lt_cv_sys_dlopen_deplibs=yes
16306: ;;
16307: interix*)
16308: lt_cv_sys_dlopen_deplibs=yes
16309: ;;
16310: irix[12345]*|irix6.[01]*)
16311: # Catch all versions of IRIX before 6.2, and indicate that we don't
16312: # know how it worked for any of those versions.
16313: lt_cv_sys_dlopen_deplibs=unknown
16314: ;;
16315: irix*)
16316: # The case above catches anything before 6.2, and it's known that
16317: # at 6.2 and later dlopen does load deplibs.
16318: lt_cv_sys_dlopen_deplibs=yes
16319: ;;
16320: netbsd*)
16321: lt_cv_sys_dlopen_deplibs=yes
16322: ;;
16323: openbsd*)
16324: lt_cv_sys_dlopen_deplibs=yes
16325: ;;
16326: osf[1234]*)
16327: # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
16328: # it did *not* use an RPATH in a shared library to find objects the
16329: # library depends on, so we explicitly say `no'.
16330: lt_cv_sys_dlopen_deplibs=no
16331: ;;
16332: osf5.0|osf5.0a|osf5.1)
16333: # dlopen *does* load deplibs and with the right loader patch applied
16334: # it even uses RPATH in a shared library to search for shared objects
16335: # that the library depends on, but there's no easy way to know if that
16336: # patch is installed. Since this is the case, all we can really
16337: # say is unknown -- it depends on the patch being installed. If
16338: # it is, this changes to `yes'. Without it, it would be `no'.
16339: lt_cv_sys_dlopen_deplibs=unknown
16340: ;;
16341: osf*)
16342: # the two cases above should catch all versions of osf <= 5.1. Read
16343: # the comments above for what we know about them.
16344: # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
16345: # is used to find them so we can finally say `yes'.
16346: lt_cv_sys_dlopen_deplibs=yes
16347: ;;
16348: qnx*)
16349: lt_cv_sys_dlopen_deplibs=yes
16350: ;;
16351: solaris*)
16352: lt_cv_sys_dlopen_deplibs=yes
16353: ;;
16354: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16355: libltdl_cv_sys_dlopen_deplibs=yes
16356: ;;
16357: esac
16358:
16359: fi
16360: echo "$as_me:$LINENO: result: $lt_cv_sys_dlopen_deplibs" >&5
16361: echo "${ECHO_T}$lt_cv_sys_dlopen_deplibs" >&6
16362: if test "$lt_cv_sys_dlopen_deplibs" != yes; then
16363:
16364: cat >>confdefs.h <<\_ACEOF
16365: #define LTDL_DLOPEN_DEPLIBS 1
16366: _ACEOF
16367:
16368: fi
16369:
16370: :
16371:
16372:
16373: for ac_header in argz.h
16374: do
16375: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16376: echo "$as_me:$LINENO: checking for $ac_header" >&5
16377: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16378: if eval "test \"\${$as_ac_Header+set}\" = set"; then
16379: echo $ECHO_N "(cached) $ECHO_C" >&6
16380: else
16381: cat >conftest.$ac_ext <<_ACEOF
16382: /* confdefs.h. */
16383: _ACEOF
16384: cat confdefs.h >>conftest.$ac_ext
16385: cat >>conftest.$ac_ext <<_ACEOF
16386: /* end confdefs.h. */
16387: $ac_includes_default
16388:
16389: #include <$ac_header>
16390: _ACEOF
16391: rm -f conftest.$ac_objext
16392: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16393: (eval $ac_compile) 2>conftest.er1
16394: ac_status=$?
16395: grep -v '^ *+' conftest.er1 >conftest.err
16396: rm -f conftest.er1
16397: cat conftest.err >&5
16398: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16399: (exit $ac_status); } &&
16400: { ac_try='test -z "$ac_c_werror_flag"
16401: || test ! -s conftest.err'
16402: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16403: (eval $ac_try) 2>&5
16404: ac_status=$?
16405: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16406: (exit $ac_status); }; } &&
16407: { ac_try='test -s conftest.$ac_objext'
16408: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16409: (eval $ac_try) 2>&5
16410: ac_status=$?
16411: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16412: (exit $ac_status); }; }; then
16413: eval "$as_ac_Header=yes"
16414: else
16415: echo "$as_me: failed program was:" >&5
16416: sed 's/^/| /' conftest.$ac_ext >&5
16417:
16418: eval "$as_ac_Header=no"
16419: fi
16420: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16421: fi
16422: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16423: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16424: if test `eval echo '${'$as_ac_Header'}'` = yes; then
16425: cat >>confdefs.h <<_ACEOF
16426: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16427: _ACEOF
16428:
16429: fi
16430:
16431: done
16432:
16433:
16434: echo "$as_me:$LINENO: checking for error_t" >&5
16435: echo $ECHO_N "checking for error_t... $ECHO_C" >&6
16436: if test "${ac_cv_type_error_t+set}" = set; then
16437: echo $ECHO_N "(cached) $ECHO_C" >&6
16438: else
16439: cat >conftest.$ac_ext <<_ACEOF
16440: /* confdefs.h. */
16441: _ACEOF
16442: cat confdefs.h >>conftest.$ac_ext
16443: cat >>conftest.$ac_ext <<_ACEOF
16444: /* end confdefs.h. */
16445: #if defined(HAVE_ARGZ_H)
16446: # include <argz.h>
16447: #endif
16448:
16449: int
16450: main ()
16451: {
16452: if ((error_t *) 0)
16453: return 0;
16454: if (sizeof (error_t))
16455: return 0;
16456: ;
16457: return 0;
16458: }
16459: _ACEOF
16460: rm -f conftest.$ac_objext
16461: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16462: (eval $ac_compile) 2>conftest.er1
16463: ac_status=$?
16464: grep -v '^ *+' conftest.er1 >conftest.err
16465: rm -f conftest.er1
16466: cat conftest.err >&5
16467: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16468: (exit $ac_status); } &&
16469: { ac_try='test -z "$ac_c_werror_flag"
16470: || test ! -s conftest.err'
16471: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16472: (eval $ac_try) 2>&5
16473: ac_status=$?
16474: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16475: (exit $ac_status); }; } &&
16476: { ac_try='test -s conftest.$ac_objext'
16477: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16478: (eval $ac_try) 2>&5
16479: ac_status=$?
16480: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16481: (exit $ac_status); }; }; then
16482: ac_cv_type_error_t=yes
16483: else
16484: echo "$as_me: failed program was:" >&5
16485: sed 's/^/| /' conftest.$ac_ext >&5
16486:
16487: ac_cv_type_error_t=no
16488: fi
16489: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16490: fi
16491: echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
16492: echo "${ECHO_T}$ac_cv_type_error_t" >&6
16493: if test $ac_cv_type_error_t = yes; then
16494:
16495: cat >>confdefs.h <<_ACEOF
16496: #define HAVE_ERROR_T 1
16497: _ACEOF
16498:
16499:
16500: else
16501:
16502: cat >>confdefs.h <<\_ACEOF
16503: #define error_t int
16504: _ACEOF
16505:
16506:
16507: cat >>confdefs.h <<\_ACEOF
16508: #define __error_t_defined 1
16509: _ACEOF
16510:
16511: fi
16512:
16513:
16514: ARGZ_H=
16515:
16516:
16517:
16518:
16519:
16520:
16521:
16522: for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
16523: argz_next argz_stringify
16524: do
16525: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16526: echo "$as_me:$LINENO: checking for $ac_func" >&5
16527: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16528: if eval "test \"\${$as_ac_var+set}\" = set"; then
16529: echo $ECHO_N "(cached) $ECHO_C" >&6
16530: else
16531: cat >conftest.$ac_ext <<_ACEOF
16532: /* confdefs.h. */
16533: _ACEOF
16534: cat confdefs.h >>conftest.$ac_ext
16535: cat >>conftest.$ac_ext <<_ACEOF
16536: /* end confdefs.h. */
16537: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16538: For example, HP-UX 11i <limits.h> declares gettimeofday. */
16539: #define $ac_func innocuous_$ac_func
16540:
16541: /* System header to define __stub macros and hopefully few prototypes,
16542: which can conflict with char $ac_func (); below.
16543: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16544: <limits.h> exists even on freestanding compilers. */
16545:
16546: #ifdef __STDC__
16547: # include <limits.h>
16548: #else
16549: # include <assert.h>
16550: #endif
16551:
16552: #undef $ac_func
16553:
16554: /* Override any gcc2 internal prototype to avoid an error. */
16555: #ifdef __cplusplus
16556: extern "C"
16557: {
16558: #endif
16559: /* We use char because int might match the return type of a gcc2
16560: builtin and then its argument prototype would still apply. */
16561: char $ac_func ();
16562: /* The GNU C library defines this for functions which it implements
16563: to always fail with ENOSYS. Some functions are actually named
16564: something starting with __ and the normal name is an alias. */
16565: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16566: choke me
16567: #else
16568: char (*f) () = $ac_func;
16569: #endif
16570: #ifdef __cplusplus
16571: }
16572: #endif
16573:
16574: int
16575: main ()
16576: {
16577: return f != $ac_func;
16578: ;
16579: return 0;
16580: }
16581: _ACEOF
16582: rm -f conftest.$ac_objext conftest$ac_exeext
16583: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16584: (eval $ac_link) 2>conftest.er1
16585: ac_status=$?
16586: grep -v '^ *+' conftest.er1 >conftest.err
16587: rm -f conftest.er1
16588: cat conftest.err >&5
16589: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16590: (exit $ac_status); } &&
16591: { ac_try='test -z "$ac_c_werror_flag"
16592: || test ! -s conftest.err'
16593: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16594: (eval $ac_try) 2>&5
16595: ac_status=$?
16596: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16597: (exit $ac_status); }; } &&
16598: { ac_try='test -s conftest$ac_exeext'
16599: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16600: (eval $ac_try) 2>&5
16601: ac_status=$?
16602: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16603: (exit $ac_status); }; }; then
16604: eval "$as_ac_var=yes"
16605: else
16606: echo "$as_me: failed program was:" >&5
16607: sed 's/^/| /' conftest.$ac_ext >&5
16608:
16609: eval "$as_ac_var=no"
16610: fi
16611: rm -f conftest.err conftest.$ac_objext \
16612: conftest$ac_exeext conftest.$ac_ext
16613: fi
16614: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16615: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16616: if test `eval echo '${'$as_ac_var'}'` = yes; then
16617: cat >>confdefs.h <<_ACEOF
16618: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16619: _ACEOF
16620:
16621: else
16622: ARGZ_H=argz.h;
16623:
16624: _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
16625:
16626: fi
16627: done
16628:
16629:
16630: if test -z "$ARGZ_H"; then
16631: echo "$as_me:$LINENO: checking if argz actually works" >&5
16632: echo $ECHO_N "checking if argz actually works... $ECHO_C" >&6
16633: if test "${lt_cv_sys_argz_works+set}" = set; then
16634: echo $ECHO_N "(cached) $ECHO_C" >&6
16635: else
16636: case $host_os in #(
16637: *cygwin*)
16638: lt_cv_sys_argz_works=no
16639: if test "$cross_compiling" != no; then
16640: lt_cv_sys_argz_works="guessing no"
16641: else
16642: lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
16643: save_IFS=$IFS
16644: IFS=-.
16645: set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
16646: IFS=$save_IFS
16647: lt_os_major=${2-0}
16648: lt_os_minor=${3-0}
16649: lt_os_micro=${4-0}
16650: if test "$lt_os_major" -gt 1 \
16651: || { test "$lt_os_major" -eq 1 \
16652: && { test "$lt_os_minor" -gt 5 \
16653: || { test "$lt_os_minor" -eq 5 \
16654: && test "$lt_os_micro" -gt 24; }; }; }; then
16655: lt_cv_sys_argz_works=yes
16656: fi
16657: fi
16658: ;; #(
16659: *) lt_cv_sys_argz_works=yes ;;
16660: esac
16661: fi
16662: echo "$as_me:$LINENO: result: $lt_cv_sys_argz_works" >&5
16663: echo "${ECHO_T}$lt_cv_sys_argz_works" >&6
16664: if test "$lt_cv_sys_argz_works" = yes; then
16665:
16666: cat >>confdefs.h <<\_ACEOF
16667: #define HAVE_WORKING_ARGZ 1
16668: _ACEOF
16669:
16670: else
16671: ARGZ_H=argz.h
16672:
16673:
16674: _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
16675:
16676: fi
16677:
16678: fi
16679:
16680:
16681:
16682:
16683: echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
16684: echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
16685: if test "${libltdl_cv_preloaded_symbols+set}" = set; then
16686: echo $ECHO_N "(cached) $ECHO_C" >&6
16687: else
16688: if test -n "$lt_cv_sys_global_symbol_pipe"; then
16689: libltdl_cv_preloaded_symbols=yes
16690: else
16691: libltdl_cv_preloaded_symbols=no
16692: fi
16693:
16694: fi
16695: echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
16696: echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
16697: if test x"$libltdl_cv_preloaded_symbols" = xyes; then
16698:
16699: cat >>confdefs.h <<\_ACEOF
16700: #define HAVE_PRELOADED_SYMBOLS 1
16701: _ACEOF
16702:
16703: fi
16704:
16705: # Set options
16706:
16707:
16708:
16709:
16710:
16711:
16712:
16713:
16714:
16715:
16716:
16717:
16718: # Check whether --with-included_ltdl or --without-included_ltdl was given.
16719: if test "${with_included_ltdl+set}" = set; then
16720: withval="$with_included_ltdl"
16721:
16722: fi;
16723:
16724: if test "x$with_included_ltdl" != xyes; then
16725: # We are not being forced to use the included libltdl sources, so
16726: # decide whether there is a useful installed version we can use.
16727: echo "$as_me:$LINENO: checking for ltdl.h" >&5
16728: echo $ECHO_N "checking for ltdl.h... $ECHO_C" >&6
16729: if test "${ac_cv_header_ltdl_h+set}" = set; then
16730: echo $ECHO_N "(cached) $ECHO_C" >&6
16731: else
16732: cat >conftest.$ac_ext <<_ACEOF
16733: /* confdefs.h. */
16734: _ACEOF
16735: cat confdefs.h >>conftest.$ac_ext
16736: cat >>conftest.$ac_ext <<_ACEOF
16737: /* end confdefs.h. */
16738: $ac_includes_default
16739:
16740:
16741: #include <ltdl.h>
16742: _ACEOF
16743: rm -f conftest.$ac_objext
16744: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16745: (eval $ac_compile) 2>conftest.er1
16746: ac_status=$?
16747: grep -v '^ *+' conftest.er1 >conftest.err
16748: rm -f conftest.er1
16749: cat conftest.err >&5
16750: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16751: (exit $ac_status); } &&
16752: { ac_try='test -z "$ac_c_werror_flag"
16753: || test ! -s conftest.err'
16754: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16755: (eval $ac_try) 2>&5
16756: ac_status=$?
16757: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16758: (exit $ac_status); }; } &&
16759: { ac_try='test -s conftest.$ac_objext'
16760: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16761: (eval $ac_try) 2>&5
16762: ac_status=$?
16763: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16764: (exit $ac_status); }; }; then
16765: ac_cv_header_ltdl_h=yes
16766: else
16767: echo "$as_me: failed program was:" >&5
16768: sed 's/^/| /' conftest.$ac_ext >&5
16769:
16770: ac_cv_header_ltdl_h=no
16771: fi
16772: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16773: fi
16774: echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
16775: echo "${ECHO_T}$ac_cv_header_ltdl_h" >&6
16776: if test $ac_cv_header_ltdl_h = yes; then
16777: echo "$as_me:$LINENO: checking whether lt_dlinterface_register is declared" >&5
16778: echo $ECHO_N "checking whether lt_dlinterface_register is declared... $ECHO_C" >&6
16779: if test "${ac_cv_have_decl_lt_dlinterface_register+set}" = set; then
16780: echo $ECHO_N "(cached) $ECHO_C" >&6
16781: else
16782: cat >conftest.$ac_ext <<_ACEOF
16783: /* confdefs.h. */
16784: _ACEOF
16785: cat confdefs.h >>conftest.$ac_ext
16786: cat >>conftest.$ac_ext <<_ACEOF
16787: /* end confdefs.h. */
16788: $ac_includes_default
16789: #include <ltdl.h>
16790:
16791: int
16792: main ()
16793: {
16794: #ifndef lt_dlinterface_register
16795: char *p = (char *) lt_dlinterface_register;
16796: #endif
16797:
16798: ;
16799: return 0;
16800: }
16801: _ACEOF
16802: rm -f conftest.$ac_objext
16803: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16804: (eval $ac_compile) 2>conftest.er1
16805: ac_status=$?
16806: grep -v '^ *+' conftest.er1 >conftest.err
16807: rm -f conftest.er1
16808: cat conftest.err >&5
16809: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16810: (exit $ac_status); } &&
16811: { ac_try='test -z "$ac_c_werror_flag"
16812: || test ! -s conftest.err'
16813: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16814: (eval $ac_try) 2>&5
16815: ac_status=$?
16816: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16817: (exit $ac_status); }; } &&
16818: { ac_try='test -s conftest.$ac_objext'
16819: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16820: (eval $ac_try) 2>&5
16821: ac_status=$?
16822: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823: (exit $ac_status); }; }; then
16824: ac_cv_have_decl_lt_dlinterface_register=yes
16825: else
16826: echo "$as_me: failed program was:" >&5
16827: sed 's/^/| /' conftest.$ac_ext >&5
16828:
16829: ac_cv_have_decl_lt_dlinterface_register=no
16830: fi
16831: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16832: fi
16833: echo "$as_me:$LINENO: result: $ac_cv_have_decl_lt_dlinterface_register" >&5
16834: echo "${ECHO_T}$ac_cv_have_decl_lt_dlinterface_register" >&6
16835: if test $ac_cv_have_decl_lt_dlinterface_register = yes; then
16836: echo "$as_me:$LINENO: checking for lt_dladvise_preload in -lltdl" >&5
16837: echo $ECHO_N "checking for lt_dladvise_preload in -lltdl... $ECHO_C" >&6
16838: if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then
16839: echo $ECHO_N "(cached) $ECHO_C" >&6
16840: else
16841: ac_check_lib_save_LIBS=$LIBS
16842: LIBS="-lltdl $LIBS"
16843: cat >conftest.$ac_ext <<_ACEOF
16844: /* confdefs.h. */
16845: _ACEOF
16846: cat confdefs.h >>conftest.$ac_ext
16847: cat >>conftest.$ac_ext <<_ACEOF
16848: /* end confdefs.h. */
16849:
16850: /* Override any gcc2 internal prototype to avoid an error. */
16851: #ifdef __cplusplus
16852: extern "C"
16853: #endif
16854: /* We use char because int might match the return type of a gcc2
16855: builtin and then its argument prototype would still apply. */
16856: char lt_dladvise_preload ();
16857: int
16858: main ()
16859: {
16860: lt_dladvise_preload ();
16861: ;
16862: return 0;
16863: }
16864: _ACEOF
16865: rm -f conftest.$ac_objext conftest$ac_exeext
16866: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16867: (eval $ac_link) 2>conftest.er1
16868: ac_status=$?
16869: grep -v '^ *+' conftest.er1 >conftest.err
16870: rm -f conftest.er1
16871: cat conftest.err >&5
16872: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16873: (exit $ac_status); } &&
16874: { ac_try='test -z "$ac_c_werror_flag"
16875: || test ! -s conftest.err'
16876: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16877: (eval $ac_try) 2>&5
16878: ac_status=$?
16879: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16880: (exit $ac_status); }; } &&
16881: { ac_try='test -s conftest$ac_exeext'
16882: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16883: (eval $ac_try) 2>&5
16884: ac_status=$?
16885: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16886: (exit $ac_status); }; }; then
16887: ac_cv_lib_ltdl_lt_dladvise_preload=yes
16888: else
16889: echo "$as_me: failed program was:" >&5
16890: sed 's/^/| /' conftest.$ac_ext >&5
16891:
16892: ac_cv_lib_ltdl_lt_dladvise_preload=no
16893: fi
16894: rm -f conftest.err conftest.$ac_objext \
16895: conftest$ac_exeext conftest.$ac_ext
16896: LIBS=$ac_check_lib_save_LIBS
16897: fi
16898: echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
16899: echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dladvise_preload" >&6
16900: if test $ac_cv_lib_ltdl_lt_dladvise_preload = yes; then
16901: with_included_ltdl=no
16902: else
16903: with_included_ltdl=yes
16904: fi
16905:
16906: else
16907: with_included_ltdl=yes
16908: fi
16909:
16910: else
16911: with_included_ltdl=yes
16912: fi
16913:
16914:
16915: fi
16916:
16917:
16918:
16919:
16920: # Check whether --with-ltdl_include or --without-ltdl_include was given.
16921: if test "${with_ltdl_include+set}" = set; then
16922: withval="$with_ltdl_include"
16923:
16924: fi;
16925:
16926: if test -n "$with_ltdl_include"; then
16927: if test -f "$with_ltdl_include/ltdl.h"; then :
16928: else
16929: { { echo "$as_me:$LINENO: error: invalid ltdl include directory: \`$with_ltdl_include'" >&5
16930: echo "$as_me: error: invalid ltdl include directory: \`$with_ltdl_include'" >&2;}
16931: { (exit 1); exit 1; }; }
16932: fi
16933: else
16934: with_ltdl_include=no
16935: fi
16936:
16937:
16938: # Check whether --with-ltdl_lib or --without-ltdl_lib was given.
16939: if test "${with_ltdl_lib+set}" = set; then
16940: withval="$with_ltdl_lib"
16941:
16942: fi;
16943:
16944: if test -n "$with_ltdl_lib"; then
16945: if test -f "$with_ltdl_lib/libltdl.la"; then :
16946: else
16947: { { echo "$as_me:$LINENO: error: invalid ltdl library directory: \`$with_ltdl_lib'" >&5
16948: echo "$as_me: error: invalid ltdl library directory: \`$with_ltdl_lib'" >&2;}
16949: { (exit 1); exit 1; }; }
16950: fi
16951: else
16952: with_ltdl_lib=no
16953: fi
16954:
16955: case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
16956: ,yes,no,no,)
16957: case $enable_ltdl_convenience in
16958: no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
16959: echo "$as_me: error: this package needs a convenience libltdl" >&2;}
16960: { (exit 1); exit 1; }; } ;;
16961: "") enable_ltdl_convenience=yes
16962: ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
16963: esac
16964: LIBLTDL='${top_builddir}/'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
16965: LTDLDEPS=$LIBLTDL
16966: LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
16967:
16968:
16969:
16970:
16971:
16972: # For backwards non-gettext consistent compatibility...
16973: INCLTDL="$LTDLINCL"
16974:
16975:
16976: ;;
16977: ,no,no,no,)
16978: # If the included ltdl is not to be used, then use the
16979: # preinstalled libltdl we found.
16980:
16981: cat >>confdefs.h <<\_ACEOF
16982: #define HAVE_LTDL 1
16983: _ACEOF
16984:
16985: LIBLTDL=-lltdl
16986: LTDLDEPS=
16987: LTDLINCL=
16988: ;;
16989: ,no*,no,*)
16990: { { echo "$as_me:$LINENO: error: \`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" >&5
16991: echo "$as_me: error: \`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" >&2;}
16992: { (exit 1); exit 1; }; }
16993: ;;
16994: *) with_included_ltdl=no
16995: LIBLTDL="-L$with_ltdl_lib -lltdl"
16996: LTDLDEPS=
16997: LTDLINCL="-I$with_ltdl_include"
16998: ;;
16999: esac
17000: INCLTDL="$LTDLINCL"
17001:
17002: # Report our decision...
17003: echo "$as_me:$LINENO: checking where to find libltdl headers" >&5
17004: echo $ECHO_N "checking where to find libltdl headers... $ECHO_C" >&6
17005: echo "$as_me:$LINENO: result: $LTDLINCL" >&5
17006: echo "${ECHO_T}$LTDLINCL" >&6
17007: echo "$as_me:$LINENO: checking where to find libltdl library" >&5
17008: echo $ECHO_N "checking where to find libltdl library... $ECHO_C" >&6
17009: echo "$as_me:$LINENO: result: $LIBLTDL" >&5
17010: echo "${ECHO_T}$LIBLTDL" >&6
17011:
17012:
17013:
17014: # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
17015: if test "${enable_ltdl_install+set}" = set; then
17016: enableval="$enable_ltdl_install"
17017:
17018: fi;
17019:
17020: case ,${enable_ltdl_install},${enable_ltdl_convenience} in
17021: *yes*) ;;
17022: *) enable_ltdl_convenience=yes ;;
17023: esac
17024:
17025:
17026:
17027: if test x"${enable_ltdl_install-no}" != xno; then
17028: INSTALL_LTDL_TRUE=
17029: INSTALL_LTDL_FALSE='#'
17030: else
17031: INSTALL_LTDL_TRUE='#'
17032: INSTALL_LTDL_FALSE=
17033: fi
17034:
17035:
17036:
17037: if test x"${enable_ltdl_convenience-no}" != xno; then
17038: CONVENIENCE_LTDL_TRUE=
17039: CONVENIENCE_LTDL_FALSE='#'
17040: else
17041: CONVENIENCE_LTDL_TRUE='#'
17042: CONVENIENCE_LTDL_FALSE=
17043: fi
17044:
17045:
17046:
17047:
17048:
17049: subdirs="$subdirs libltdl"
17050:
17051:
17052:
17053:
17054: # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
17055: # the user used. This is so that ltdl.h can pick up the parent projects
17056: # config.h file, The first file in AC_CONFIG_HEADERS must contain the
17057: # definitions required by ltdl.c.
17058: # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
17059:
17060:
17061:
17062:
17063:
17064:
17065:
17066:
17067:
17068: for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
17069: do
17070: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17071: echo "$as_me:$LINENO: checking for $ac_header" >&5
17072: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17073: if eval "test \"\${$as_ac_Header+set}\" = set"; then
17074: echo $ECHO_N "(cached) $ECHO_C" >&6
17075: else
17076: cat >conftest.$ac_ext <<_ACEOF
17077: /* confdefs.h. */
17078: _ACEOF
17079: cat confdefs.h >>conftest.$ac_ext
17080: cat >>conftest.$ac_ext <<_ACEOF
17081: /* end confdefs.h. */
17082: $ac_includes_default
17083:
17084: #include <$ac_header>
17085: _ACEOF
17086: rm -f conftest.$ac_objext
17087: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17088: (eval $ac_compile) 2>conftest.er1
17089: ac_status=$?
17090: grep -v '^ *+' conftest.er1 >conftest.err
17091: rm -f conftest.er1
17092: cat conftest.err >&5
17093: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094: (exit $ac_status); } &&
17095: { ac_try='test -z "$ac_c_werror_flag"
17096: || test ! -s conftest.err'
17097: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17098: (eval $ac_try) 2>&5
17099: ac_status=$?
17100: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17101: (exit $ac_status); }; } &&
17102: { ac_try='test -s conftest.$ac_objext'
17103: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17104: (eval $ac_try) 2>&5
17105: ac_status=$?
17106: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17107: (exit $ac_status); }; }; then
17108: eval "$as_ac_Header=yes"
17109: else
17110: echo "$as_me: failed program was:" >&5
17111: sed 's/^/| /' conftest.$ac_ext >&5
17112:
17113: eval "$as_ac_Header=no"
17114: fi
17115: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17116: fi
17117: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17118: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17119: if test `eval echo '${'$as_ac_Header'}'` = yes; then
17120: cat >>confdefs.h <<_ACEOF
17121: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17122: _ACEOF
17123:
17124: fi
17125:
17126: done
17127:
17128:
17129:
17130:
17131:
17132: for ac_func in closedir opendir readdir
17133: do
17134: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17135: echo "$as_me:$LINENO: checking for $ac_func" >&5
17136: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17137: if eval "test \"\${$as_ac_var+set}\" = set"; then
17138: echo $ECHO_N "(cached) $ECHO_C" >&6
17139: else
17140: cat >conftest.$ac_ext <<_ACEOF
17141: /* confdefs.h. */
17142: _ACEOF
17143: cat confdefs.h >>conftest.$ac_ext
17144: cat >>conftest.$ac_ext <<_ACEOF
17145: /* end confdefs.h. */
17146: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17147: For example, HP-UX 11i <limits.h> declares gettimeofday. */
17148: #define $ac_func innocuous_$ac_func
17149:
17150: /* System header to define __stub macros and hopefully few prototypes,
17151: which can conflict with char $ac_func (); below.
17152: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17153: <limits.h> exists even on freestanding compilers. */
17154:
17155: #ifdef __STDC__
17156: # include <limits.h>
17157: #else
17158: # include <assert.h>
17159: #endif
17160:
17161: #undef $ac_func
17162:
17163: /* Override any gcc2 internal prototype to avoid an error. */
17164: #ifdef __cplusplus
17165: extern "C"
17166: {
17167: #endif
17168: /* We use char because int might match the return type of a gcc2
17169: builtin and then its argument prototype would still apply. */
17170: char $ac_func ();
17171: /* The GNU C library defines this for functions which it implements
17172: to always fail with ENOSYS. Some functions are actually named
17173: something starting with __ and the normal name is an alias. */
17174: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17175: choke me
17176: #else
17177: char (*f) () = $ac_func;
17178: #endif
17179: #ifdef __cplusplus
17180: }
17181: #endif
17182:
17183: int
17184: main ()
17185: {
17186: return f != $ac_func;
17187: ;
17188: return 0;
17189: }
17190: _ACEOF
17191: rm -f conftest.$ac_objext conftest$ac_exeext
17192: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17193: (eval $ac_link) 2>conftest.er1
17194: ac_status=$?
17195: grep -v '^ *+' conftest.er1 >conftest.err
17196: rm -f conftest.er1
17197: cat conftest.err >&5
17198: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17199: (exit $ac_status); } &&
17200: { ac_try='test -z "$ac_c_werror_flag"
17201: || test ! -s conftest.err'
17202: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17203: (eval $ac_try) 2>&5
17204: ac_status=$?
17205: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17206: (exit $ac_status); }; } &&
17207: { ac_try='test -s conftest$ac_exeext'
17208: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17209: (eval $ac_try) 2>&5
17210: ac_status=$?
17211: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17212: (exit $ac_status); }; }; then
17213: eval "$as_ac_var=yes"
17214: else
17215: echo "$as_me: failed program was:" >&5
17216: sed 's/^/| /' conftest.$ac_ext >&5
17217:
17218: eval "$as_ac_var=no"
17219: fi
17220: rm -f conftest.err conftest.$ac_objext \
17221: conftest$ac_exeext conftest.$ac_ext
17222: fi
17223: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17224: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17225: if test `eval echo '${'$as_ac_var'}'` = yes; then
17226: cat >>confdefs.h <<_ACEOF
17227: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17228: _ACEOF
17229:
17230: else
17231:
17232:
17233: _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
17234:
17235: fi
17236: done
17237:
17238:
17239:
17240: for ac_func in strlcat strlcpy
17241: do
17242: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17243: echo "$as_me:$LINENO: checking for $ac_func" >&5
17244: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17245: if eval "test \"\${$as_ac_var+set}\" = set"; then
17246: echo $ECHO_N "(cached) $ECHO_C" >&6
17247: else
17248: cat >conftest.$ac_ext <<_ACEOF
17249: /* confdefs.h. */
17250: _ACEOF
17251: cat confdefs.h >>conftest.$ac_ext
17252: cat >>conftest.$ac_ext <<_ACEOF
17253: /* end confdefs.h. */
17254: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17255: For example, HP-UX 11i <limits.h> declares gettimeofday. */
17256: #define $ac_func innocuous_$ac_func
17257:
17258: /* System header to define __stub macros and hopefully few prototypes,
17259: which can conflict with char $ac_func (); below.
17260: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17261: <limits.h> exists even on freestanding compilers. */
17262:
17263: #ifdef __STDC__
17264: # include <limits.h>
17265: #else
17266: # include <assert.h>
17267: #endif
17268:
17269: #undef $ac_func
17270:
17271: /* Override any gcc2 internal prototype to avoid an error. */
17272: #ifdef __cplusplus
17273: extern "C"
17274: {
17275: #endif
17276: /* We use char because int might match the return type of a gcc2
17277: builtin and then its argument prototype would still apply. */
17278: char $ac_func ();
17279: /* The GNU C library defines this for functions which it implements
17280: to always fail with ENOSYS. Some functions are actually named
17281: something starting with __ and the normal name is an alias. */
17282: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17283: choke me
17284: #else
17285: char (*f) () = $ac_func;
17286: #endif
17287: #ifdef __cplusplus
17288: }
17289: #endif
17290:
17291: int
17292: main ()
17293: {
17294: return f != $ac_func;
17295: ;
17296: return 0;
17297: }
17298: _ACEOF
17299: rm -f conftest.$ac_objext conftest$ac_exeext
17300: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17301: (eval $ac_link) 2>conftest.er1
17302: ac_status=$?
17303: grep -v '^ *+' conftest.er1 >conftest.err
17304: rm -f conftest.er1
17305: cat conftest.err >&5
17306: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17307: (exit $ac_status); } &&
17308: { ac_try='test -z "$ac_c_werror_flag"
17309: || test ! -s conftest.err'
17310: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17311: (eval $ac_try) 2>&5
17312: ac_status=$?
17313: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17314: (exit $ac_status); }; } &&
17315: { ac_try='test -s conftest$ac_exeext'
17316: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17317: (eval $ac_try) 2>&5
17318: ac_status=$?
17319: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17320: (exit $ac_status); }; }; then
17321: eval "$as_ac_var=yes"
17322: else
17323: echo "$as_me: failed program was:" >&5
17324: sed 's/^/| /' conftest.$ac_ext >&5
17325:
17326: eval "$as_ac_var=no"
17327: fi
17328: rm -f conftest.err conftest.$ac_objext \
17329: conftest$ac_exeext conftest.$ac_ext
17330: fi
17331: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17332: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17333: if test `eval echo '${'$as_ac_var'}'` = yes; then
17334: cat >>confdefs.h <<_ACEOF
17335: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17336: _ACEOF
17337:
17338: else
17339:
17340:
17341: _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
17342:
17343: fi
17344: done
17345:
17346:
17347:
17348: cat >>confdefs.h <<_ACEOF
17349: #define LT_LIBEXT "$libext"
17350: _ACEOF
17351:
17352:
17353: name=
17354: eval "lt_libprefix=\"$libname_spec\""
17355:
17356: cat >>confdefs.h <<_ACEOF
17357: #define LT_LIBPREFIX "$lt_libprefix"
17358: _ACEOF
17359:
17360:
17361: name=ltdl
17362: eval "LTDLOPEN=\"$libname_spec\""
17363:
17364:
17365:
17366:
17367:
17368:
17369:
17370:
17371: # Only expand once:
17372:
17373:
17374:
17375:
1.36 ! moko 17376: # Check whether --enable-static or --disable-static was given.
! 17377: if test "${enable_static+set}" = set; then
! 17378: enableval="$enable_static"
! 17379: p=${PACKAGE-default}
! 17380: case $enableval in
! 17381: yes) enable_static=yes ;;
! 17382: no) enable_static=no ;;
! 17383: *)
! 17384: enable_static=no
! 17385: # Look at the argument we got. We use all the common list separators.
! 17386: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
! 17387: for pkg in $enableval; do
! 17388: IFS="$lt_save_ifs"
! 17389: if test "X$pkg" = "X$p"; then
! 17390: enable_static=yes
! 17391: fi
! 17392: done
! 17393: IFS="$lt_save_ifs"
! 17394: ;;
! 17395: esac
! 17396: else
! 17397: enable_static=no
! 17398: fi;
! 17399:
! 17400:
! 17401:
! 17402:
! 17403:
! 17404:
! 17405:
! 17406:
1.35 moko 17407: case "$host" in
17408: *-freebsd4*)
17409:
17410: cat >>confdefs.h <<\_ACEOF
17411: #define FREEBSD4
17412: _ACEOF
17413:
17414: esac
17415:
17416:
17417:
17418:
17419:
17420:
17421:
17422: for ac_header in stdio.h \
17423: stdlib.h \
17424: string.h \
17425: setjmp.h \
17426: ctype.h
17427:
17428: do
17429: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17430: if eval "test \"\${$as_ac_Header+set}\" = set"; then
17431: echo "$as_me:$LINENO: checking for $ac_header" >&5
17432: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17433: if eval "test \"\${$as_ac_Header+set}\" = set"; then
17434: echo $ECHO_N "(cached) $ECHO_C" >&6
17435: fi
17436: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17437: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17438: else
17439: # Is the header compilable?
17440: echo "$as_me:$LINENO: checking $ac_header usability" >&5
17441: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17442: cat >conftest.$ac_ext <<_ACEOF
17443: /* confdefs.h. */
17444: _ACEOF
17445: cat confdefs.h >>conftest.$ac_ext
17446: cat >>conftest.$ac_ext <<_ACEOF
17447: /* end confdefs.h. */
17448: $ac_includes_default
17449: #include <$ac_header>
17450: _ACEOF
17451: rm -f conftest.$ac_objext
17452: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17453: (eval $ac_compile) 2>conftest.er1
17454: ac_status=$?
17455: grep -v '^ *+' conftest.er1 >conftest.err
17456: rm -f conftest.er1
17457: cat conftest.err >&5
17458: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17459: (exit $ac_status); } &&
17460: { ac_try='test -z "$ac_c_werror_flag"
17461: || test ! -s conftest.err'
17462: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17463: (eval $ac_try) 2>&5
17464: ac_status=$?
17465: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17466: (exit $ac_status); }; } &&
17467: { ac_try='test -s conftest.$ac_objext'
17468: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17469: (eval $ac_try) 2>&5
17470: ac_status=$?
17471: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17472: (exit $ac_status); }; }; then
17473: ac_header_compiler=yes
17474: else
17475: echo "$as_me: failed program was:" >&5
17476: sed 's/^/| /' conftest.$ac_ext >&5
17477:
17478: ac_header_compiler=no
17479: fi
17480: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17481: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17482: echo "${ECHO_T}$ac_header_compiler" >&6
17483:
17484: # Is the header present?
17485: echo "$as_me:$LINENO: checking $ac_header presence" >&5
17486: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17487: cat >conftest.$ac_ext <<_ACEOF
17488: /* confdefs.h. */
17489: _ACEOF
17490: cat confdefs.h >>conftest.$ac_ext
17491: cat >>conftest.$ac_ext <<_ACEOF
17492: /* end confdefs.h. */
17493: #include <$ac_header>
17494: _ACEOF
17495: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17496: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17497: ac_status=$?
17498: grep -v '^ *+' conftest.er1 >conftest.err
17499: rm -f conftest.er1
17500: cat conftest.err >&5
17501: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17502: (exit $ac_status); } >/dev/null; then
17503: if test -s conftest.err; then
17504: ac_cpp_err=$ac_c_preproc_warn_flag
17505: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17506: else
17507: ac_cpp_err=
17508: fi
17509: else
17510: ac_cpp_err=yes
17511: fi
17512: if test -z "$ac_cpp_err"; then
17513: ac_header_preproc=yes
17514: else
17515: echo "$as_me: failed program was:" >&5
17516: sed 's/^/| /' conftest.$ac_ext >&5
17517:
17518: ac_header_preproc=no
17519: fi
17520: rm -f conftest.err conftest.$ac_ext
17521: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17522: echo "${ECHO_T}$ac_header_preproc" >&6
17523:
17524: # So? What about this header?
17525: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17526: yes:no: )
17527: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17528: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17529: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17530: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17531: ac_header_preproc=yes
17532: ;;
17533: no:yes:* )
17534: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17535: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17536: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17537: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17538: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17539: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17540: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17541: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17542: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17543: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17544: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17545: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17546: (
17547: cat <<\_ASBOX
1.36 ! moko 17548: ## ----------------------------------------- ##
! 17549: ## Report this to the parser3mysql.C lists. ##
! 17550: ## ----------------------------------------- ##
1.35 moko 17551: _ASBOX
17552: ) |
17553: sed "s/^/$as_me: WARNING: /" >&2
17554: ;;
17555: esac
17556: echo "$as_me:$LINENO: checking for $ac_header" >&5
17557: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17558: if eval "test \"\${$as_ac_Header+set}\" = set"; then
17559: echo $ECHO_N "(cached) $ECHO_C" >&6
17560: else
17561: eval "$as_ac_Header=\$ac_header_preproc"
17562: fi
17563: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17564: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17565:
17566: fi
17567: if test `eval echo '${'$as_ac_Header'}'` = yes; then
17568: cat >>confdefs.h <<_ACEOF
17569: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17570: _ACEOF
17571:
17572: fi
17573:
17574: done
17575:
17576:
17577:
17578: echo "$as_me:$LINENO: checking for size_t" >&5
17579: echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17580: if test "${ac_cv_type_size_t+set}" = set; then
17581: echo $ECHO_N "(cached) $ECHO_C" >&6
17582: else
17583: cat >conftest.$ac_ext <<_ACEOF
17584: /* confdefs.h. */
17585: _ACEOF
17586: cat confdefs.h >>conftest.$ac_ext
17587: cat >>conftest.$ac_ext <<_ACEOF
17588: /* end confdefs.h. */
17589: $ac_includes_default
17590: int
17591: main ()
17592: {
17593: if ((size_t *) 0)
17594: return 0;
17595: if (sizeof (size_t))
17596: return 0;
17597: ;
17598: return 0;
17599: }
17600: _ACEOF
17601: rm -f conftest.$ac_objext
17602: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17603: (eval $ac_compile) 2>conftest.er1
17604: ac_status=$?
17605: grep -v '^ *+' conftest.er1 >conftest.err
17606: rm -f conftest.er1
17607: cat conftest.err >&5
17608: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17609: (exit $ac_status); } &&
17610: { ac_try='test -z "$ac_c_werror_flag"
17611: || test ! -s conftest.err'
17612: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17613: (eval $ac_try) 2>&5
17614: ac_status=$?
17615: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17616: (exit $ac_status); }; } &&
17617: { ac_try='test -s conftest.$ac_objext'
17618: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17619: (eval $ac_try) 2>&5
17620: ac_status=$?
17621: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17622: (exit $ac_status); }; }; then
17623: ac_cv_type_size_t=yes
17624: else
17625: echo "$as_me: failed program was:" >&5
17626: sed 's/^/| /' conftest.$ac_ext >&5
17627:
17628: ac_cv_type_size_t=no
17629: fi
17630: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17631: fi
17632: echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17633: echo "${ECHO_T}$ac_cv_type_size_t" >&6
17634: if test $ac_cv_type_size_t = yes; then
17635: :
17636: else
17637:
17638: cat >>confdefs.h <<_ACEOF
17639: #define size_t unsigned
17640: _ACEOF
17641:
17642: fi
17643:
17644:
17645:
17646:
17647: ac_config_files="$ac_config_files Makefile"
17648: cat >confcache <<\_ACEOF
17649: # This file is a shell script that caches the results of configure
17650: # tests run on this system so they can be shared between configure
17651: # scripts and configure runs, see configure's option --config-cache.
17652: # It is not useful on other systems. If it contains results you don't
17653: # want to keep, you may remove or edit it.
17654: #
17655: # config.status only pays attention to the cache file if you give it
17656: # the --recheck option to rerun configure.
17657: #
17658: # `ac_cv_env_foo' variables (set or unset) will be overridden when
17659: # loading this file, other *unset* `ac_cv_foo' will be assigned the
17660: # following values.
17661:
17662: _ACEOF
17663:
17664: # The following way of writing the cache mishandles newlines in values,
17665: # but we know of no workaround that is simple, portable, and efficient.
17666: # So, don't put newlines in cache variables' values.
17667: # Ultrix sh set writes to stderr and can't be redirected directly,
17668: # and sets the high bit in the cache file unless we assign to the vars.
17669: {
17670: (set) 2>&1 |
17671: case `(ac_space=' '; set | grep ac_space) 2>&1` in
17672: *ac_space=\ *)
17673: # `set' does not quote correctly, so add quotes (double-quote
17674: # substitution turns \\\\ into \\, and sed turns \\ into \).
17675: sed -n \
17676: "s/'/'\\\\''/g;
17677: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17678: ;;
17679: *)
17680: # `set' quotes correctly as required by POSIX, so do not add quotes.
17681: sed -n \
17682: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17683: ;;
17684: esac;
17685: } |
17686: sed '
17687: t clear
17688: : clear
17689: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17690: t end
17691: /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17692: : end' >>confcache
17693: if diff $cache_file confcache >/dev/null 2>&1; then :; else
17694: if test -w $cache_file; then
17695: test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17696: cat confcache >$cache_file
17697: else
17698: echo "not updating unwritable cache $cache_file"
17699: fi
17700: fi
17701: rm -f confcache
17702:
17703: test "x$prefix" = xNONE && prefix=$ac_default_prefix
17704: # Let make expand exec_prefix.
17705: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17706:
17707: # VPATH may cause trouble with some makes, so we remove $(srcdir),
17708: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17709: # trailing colons and then remove the whole line if VPATH becomes empty
17710: # (actually we leave an empty line to preserve line numbers).
17711: if test "x$srcdir" = x.; then
17712: ac_vpsub='/^[ ]*VPATH[ ]*=/{
17713: s/:*\$(srcdir):*/:/;
17714: s/:*\${srcdir}:*/:/;
17715: s/:*@srcdir@:*/:/;
17716: s/^\([^=]*=[ ]*\):*/\1/;
17717: s/:*$//;
17718: s/^[^=]*=[ ]*$//;
17719: }'
17720: fi
17721:
17722: DEFS=-DHAVE_CONFIG_H
17723:
17724: ac_libobjs=
17725: ac_ltlibobjs=
17726: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17727: # 1. Remove the extension, and $U if already installed.
17728: ac_i=`echo "$ac_i" |
17729: sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
17730: # 2. Add them.
17731: ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
17732: ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
17733: done
17734: LIBOBJS=$ac_libobjs
17735:
17736: LTLIBOBJS=$ac_ltlibobjs
17737:
17738:
17739: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17740: { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
17741: Usually this means the macro was only invoked conditionally." >&5
17742: echo "$as_me: error: conditional \"AMDEP\" was never defined.
17743: Usually this means the macro was only invoked conditionally." >&2;}
17744: { (exit 1); exit 1; }; }
17745: fi
17746: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17747: { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
17748: Usually this means the macro was only invoked conditionally." >&5
17749: echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
17750: Usually this means the macro was only invoked conditionally." >&2;}
17751: { (exit 1); exit 1; }; }
17752: fi
17753: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17754: { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
17755: Usually this means the macro was only invoked conditionally." >&5
17756: echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
17757: Usually this means the macro was only invoked conditionally." >&2;}
17758: { (exit 1); exit 1; }; }
17759: fi
17760: if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
17761: { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
17762: Usually this means the macro was only invoked conditionally." >&5
17763: echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
17764: Usually this means the macro was only invoked conditionally." >&2;}
17765: { (exit 1); exit 1; }; }
17766: fi
17767: if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
17768: { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
17769: Usually this means the macro was only invoked conditionally." >&5
17770: echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
17771: Usually this means the macro was only invoked conditionally." >&2;}
17772: { (exit 1); exit 1; }; }
17773: fi
17774: LT_CONFIG_H=`echo " config_auto.h" | $SED 's,^[ ]*,,;s,[ :].*$,,'`
17775:
17776: _ltdl_libobjs=
17777: _ltdl_ltlibobjs=
17778: if test -n "$_LT_LIBOBJS"; then
17779: # Remove the extension.
17780: _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
17781: for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
17782: _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
17783: _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
17784: done
17785: fi
17786: ltdl_LIBOBJS=$_ltdl_libobjs
17787:
17788: ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
17789:
17790:
17791:
17792: : ${CONFIG_STATUS=./config.status}
17793: ac_clean_files_save=$ac_clean_files
17794: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17795: { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17796: echo "$as_me: creating $CONFIG_STATUS" >&6;}
17797: cat >$CONFIG_STATUS <<_ACEOF
17798: #! $SHELL
17799: # Generated by $as_me.
17800: # Run this file to recreate the current configuration.
17801: # Compiler output produced by configure, useful for debugging
17802: # configure, is in config.log if it exists.
17803:
17804: debug=false
17805: ac_cs_recheck=false
17806: ac_cs_silent=false
17807: SHELL=\${CONFIG_SHELL-$SHELL}
17808: _ACEOF
17809:
17810: cat >>$CONFIG_STATUS <<\_ACEOF
17811: ## --------------------- ##
17812: ## M4sh Initialization. ##
17813: ## --------------------- ##
17814:
17815: # Be Bourne compatible
17816: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17817: emulate sh
17818: NULLCMD=:
17819: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17820: # is contrary to our usage. Disable this feature.
17821: alias -g '${1+"$@"}'='"$@"'
17822: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17823: set -o posix
17824: fi
17825: DUALCASE=1; export DUALCASE # for MKS sh
17826:
17827: # Support unset when possible.
17828: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17829: as_unset=unset
17830: else
17831: as_unset=false
17832: fi
17833:
17834:
17835: # Work around bugs in pre-3.0 UWIN ksh.
17836: $as_unset ENV MAIL MAILPATH
17837: PS1='$ '
17838: PS2='> '
17839: PS4='+ '
17840:
17841: # NLS nuisances.
17842: for as_var in \
17843: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17844: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17845: LC_TELEPHONE LC_TIME
17846: do
17847: if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
17848: eval $as_var=C; export $as_var
17849: else
17850: $as_unset $as_var
17851: fi
17852: done
17853:
17854: # Required to use basename.
17855: if expr a : '\(a\)' >/dev/null 2>&1; then
17856: as_expr=expr
17857: else
17858: as_expr=false
17859: fi
17860:
17861: if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
17862: as_basename=basename
17863: else
17864: as_basename=false
17865: fi
17866:
17867:
17868: # Name of the executable.
17869: as_me=`$as_basename "$0" ||
17870: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17871: X"$0" : 'X\(//\)$' \| \
17872: X"$0" : 'X\(/\)$' \| \
17873: . : '\(.\)' 2>/dev/null ||
17874: echo X/"$0" |
17875: sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17876: /^X\/\(\/\/\)$/{ s//\1/; q; }
17877: /^X\/\(\/\).*/{ s//\1/; q; }
17878: s/.*/./; q'`
17879:
17880:
17881: # PATH needs CR, and LINENO needs CR and PATH.
17882: # Avoid depending upon Character Ranges.
17883: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17884: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17885: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17886: as_cr_digits='0123456789'
17887: as_cr_alnum=$as_cr_Letters$as_cr_digits
17888:
17889: # The user is always right.
17890: if test "${PATH_SEPARATOR+set}" != set; then
17891: echo "#! /bin/sh" >conf$$.sh
17892: echo "exit 0" >>conf$$.sh
17893: chmod +x conf$$.sh
17894: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17895: PATH_SEPARATOR=';'
17896: else
17897: PATH_SEPARATOR=:
17898: fi
17899: rm -f conf$$.sh
17900: fi
17901:
17902:
17903: as_lineno_1=$LINENO
17904: as_lineno_2=$LINENO
17905: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17906: test "x$as_lineno_1" != "x$as_lineno_2" &&
17907: test "x$as_lineno_3" = "x$as_lineno_2" || {
17908: # Find who we are. Look in the path if we contain no path at all
17909: # relative or not.
17910: case $0 in
17911: *[\\/]* ) as_myself=$0 ;;
17912: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17913: for as_dir in $PATH
17914: do
17915: IFS=$as_save_IFS
17916: test -z "$as_dir" && as_dir=.
17917: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17918: done
17919:
17920: ;;
17921: esac
17922: # We did not find ourselves, most probably we were run as `sh COMMAND'
17923: # in which case we are not to be found in the path.
17924: if test "x$as_myself" = x; then
17925: as_myself=$0
17926: fi
17927: if test ! -f "$as_myself"; then
17928: { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17929: echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17930: { (exit 1); exit 1; }; }
17931: fi
17932: case $CONFIG_SHELL in
17933: '')
17934: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17935: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17936: do
17937: IFS=$as_save_IFS
17938: test -z "$as_dir" && as_dir=.
17939: for as_base in sh bash ksh sh5; do
17940: case $as_dir in
17941: /*)
17942: if ("$as_dir/$as_base" -c '
17943: as_lineno_1=$LINENO
17944: as_lineno_2=$LINENO
17945: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17946: test "x$as_lineno_1" != "x$as_lineno_2" &&
17947: test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17948: $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17949: $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17950: CONFIG_SHELL=$as_dir/$as_base
17951: export CONFIG_SHELL
17952: exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17953: fi;;
17954: esac
17955: done
17956: done
17957: ;;
17958: esac
17959:
17960: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17961: # uniformly replaced by the line number. The first 'sed' inserts a
17962: # line-number line before each line; the second 'sed' does the real
17963: # work. The second script uses 'N' to pair each line-number line
17964: # with the numbered line, and appends trailing '-' during
17965: # substitution so that $LINENO is not a special case at line end.
17966: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17967: # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17968: sed '=' <$as_myself |
17969: sed '
17970: N
17971: s,$,-,
17972: : loop
17973: s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17974: t loop
17975: s,-$,,
17976: s,^['$as_cr_digits']*\n,,
17977: ' >$as_me.lineno &&
17978: chmod +x $as_me.lineno ||
17979: { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17980: echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17981: { (exit 1); exit 1; }; }
17982:
17983: # Don't try to exec as it changes $[0], causing all sort of problems
17984: # (the dirname of $[0] is not the place where we might find the
17985: # original and so on. Autoconf is especially sensible to this).
17986: . ./$as_me.lineno
17987: # Exit status is that of the last command.
17988: exit
17989: }
17990:
17991:
17992: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17993: *c*,-n*) ECHO_N= ECHO_C='
17994: ' ECHO_T=' ' ;;
17995: *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17996: *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17997: esac
17998:
17999: if expr a : '\(a\)' >/dev/null 2>&1; then
18000: as_expr=expr
18001: else
18002: as_expr=false
18003: fi
18004:
18005: rm -f conf$$ conf$$.exe conf$$.file
18006: echo >conf$$.file
18007: if ln -s conf$$.file conf$$ 2>/dev/null; then
18008: # We could just check for DJGPP; but this test a) works b) is more generic
18009: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18010: if test -f conf$$.exe; then
18011: # Don't use ln at all; we don't have any links
18012: as_ln_s='cp -p'
18013: else
18014: as_ln_s='ln -s'
18015: fi
18016: elif ln conf$$.file conf$$ 2>/dev/null; then
18017: as_ln_s=ln
18018: else
18019: as_ln_s='cp -p'
18020: fi
18021: rm -f conf$$ conf$$.exe conf$$.file
18022:
18023: if mkdir -p . 2>/dev/null; then
18024: as_mkdir_p=:
18025: else
18026: test -d ./-p && rmdir ./-p
18027: as_mkdir_p=false
18028: fi
18029:
18030: as_executable_p="test -f"
18031:
18032: # Sed expression to map a string onto a valid CPP name.
18033: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18034:
18035: # Sed expression to map a string onto a valid variable name.
18036: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18037:
18038:
18039: # IFS
18040: # We need space, tab and new line, in precisely that order.
18041: as_nl='
18042: '
18043: IFS=" $as_nl"
18044:
18045: # CDPATH.
18046: $as_unset CDPATH
18047:
18048: exec 6>&1
18049:
18050: # Open the log real soon, to keep \$[0] and so on meaningful, and to
18051: # report actual input values of CONFIG_FILES etc. instead of their
18052: # values after options handling. Logging --version etc. is OK.
18053: exec 5>>config.log
18054: {
18055: echo
18056: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18057: ## Running $as_me. ##
18058: _ASBOX
18059: } >&5
18060: cat >&5 <<_CSEOF
18061:
1.36 ! moko 18062: This file was extended by parser3mysql.C $as_me 10.3, which was
1.35 moko 18063: generated by GNU Autoconf 2.59. Invocation command line was
18064:
18065: CONFIG_FILES = $CONFIG_FILES
18066: CONFIG_HEADERS = $CONFIG_HEADERS
18067: CONFIG_LINKS = $CONFIG_LINKS
18068: CONFIG_COMMANDS = $CONFIG_COMMANDS
18069: $ $0 $@
18070:
18071: _CSEOF
18072: echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18073: echo >&5
18074: _ACEOF
18075:
18076: # Files that config.status was made for.
18077: if test -n "$ac_config_files"; then
18078: echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18079: fi
18080:
18081: if test -n "$ac_config_headers"; then
18082: echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18083: fi
18084:
18085: if test -n "$ac_config_links"; then
18086: echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18087: fi
18088:
18089: if test -n "$ac_config_commands"; then
18090: echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18091: fi
18092:
18093: cat >>$CONFIG_STATUS <<\_ACEOF
18094:
18095: ac_cs_usage="\
18096: \`$as_me' instantiates files from templates according to the
18097: current configuration.
18098:
18099: Usage: $0 [OPTIONS] [FILE]...
18100:
18101: -h, --help print this help, then exit
18102: -V, --version print version number, then exit
18103: -q, --quiet do not print progress messages
18104: -d, --debug don't remove temporary files
18105: --recheck update $as_me by reconfiguring in the same conditions
18106: --file=FILE[:TEMPLATE]
18107: instantiate the configuration file FILE
18108: --header=FILE[:TEMPLATE]
18109: instantiate the configuration header FILE
18110:
18111: Configuration files:
18112: $config_files
18113:
18114: Configuration headers:
18115: $config_headers
18116:
18117: Configuration commands:
18118: $config_commands
18119:
18120: Report bugs to <bug-autoconf@gnu.org>."
18121: _ACEOF
18122:
18123: cat >>$CONFIG_STATUS <<_ACEOF
18124: ac_cs_version="\\
1.36 ! moko 18125: parser3mysql.C config.status 10.3
1.35 moko 18126: configured by $0, generated by GNU Autoconf 2.59,
18127: with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18128:
18129: Copyright (C) 2003 Free Software Foundation, Inc.
18130: This config.status script is free software; the Free Software Foundation
18131: gives unlimited permission to copy, distribute and modify it."
18132: srcdir=$srcdir
18133: INSTALL="$INSTALL"
18134: _ACEOF
18135:
18136: cat >>$CONFIG_STATUS <<\_ACEOF
18137: # If no file are specified by the user, then we need to provide default
18138: # value. By we need to know if files were specified by the user.
18139: ac_need_defaults=:
18140: while test $# != 0
18141: do
18142: case $1 in
18143: --*=*)
18144: ac_option=`expr "x$1" : 'x\([^=]*\)='`
18145: ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18146: ac_shift=:
18147: ;;
18148: -*)
18149: ac_option=$1
18150: ac_optarg=$2
18151: ac_shift=shift
18152: ;;
18153: *) # This is not an option, so the user has probably given explicit
18154: # arguments.
18155: ac_option=$1
18156: ac_need_defaults=false;;
18157: esac
18158:
18159: case $ac_option in
18160: # Handling of the options.
18161: _ACEOF
18162: cat >>$CONFIG_STATUS <<\_ACEOF
18163: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18164: ac_cs_recheck=: ;;
18165: --version | --vers* | -V )
18166: echo "$ac_cs_version"; exit 0 ;;
18167: --he | --h)
18168: # Conflict between --help and --header
18169: { { echo "$as_me:$LINENO: error: ambiguous option: $1
18170: Try \`$0 --help' for more information." >&5
18171: echo "$as_me: error: ambiguous option: $1
18172: Try \`$0 --help' for more information." >&2;}
18173: { (exit 1); exit 1; }; };;
18174: --help | --hel | -h )
18175: echo "$ac_cs_usage"; exit 0 ;;
18176: --debug | --d* | -d )
18177: debug=: ;;
18178: --file | --fil | --fi | --f )
18179: $ac_shift
18180: CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18181: ac_need_defaults=false;;
18182: --header | --heade | --head | --hea )
18183: $ac_shift
18184: CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18185: ac_need_defaults=false;;
18186: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18187: | -silent | --silent | --silen | --sile | --sil | --si | --s)
18188: ac_cs_silent=: ;;
18189:
18190: # This is an error.
18191: -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18192: Try \`$0 --help' for more information." >&5
18193: echo "$as_me: error: unrecognized option: $1
18194: Try \`$0 --help' for more information." >&2;}
18195: { (exit 1); exit 1; }; } ;;
18196:
18197: *) ac_config_targets="$ac_config_targets $1" ;;
18198:
18199: esac
18200: shift
18201: done
18202:
18203: ac_configure_extra_args=
18204:
18205: if $ac_cs_silent; then
18206: exec 6>/dev/null
18207: ac_configure_extra_args="$ac_configure_extra_args --silent"
18208: fi
18209:
18210: _ACEOF
18211: cat >>$CONFIG_STATUS <<_ACEOF
18212: if \$ac_cs_recheck; then
18213: echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18214: exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18215: fi
18216:
18217: _ACEOF
18218:
18219: cat >>$CONFIG_STATUS <<_ACEOF
18220: #
18221: # INIT-COMMANDS section.
18222: #
18223:
18224: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18225:
18226:
18227: # The HP-UX ksh and POSIX shell print the target directory to stdout
18228: # if CDPATH is set.
18229: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18230:
18231: sed_quote_subst='$sed_quote_subst'
18232: double_quote_subst='$double_quote_subst'
18233: delay_variable_subst='$delay_variable_subst'
18234: macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18235: macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
1.36 ! moko 18236: AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
! 18237: DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
! 18238: OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
1.35 moko 18239: enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18240: enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18241: pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18242: enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18243: SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18244: ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18245: PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18246: host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18247: host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18248: host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18249: build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18250: build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18251: build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18252: SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18253: Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18254: GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18255: EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18256: FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18257: LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18258: NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18259: LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18260: max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18261: ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18262: exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18263: lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18264: lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18265: lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18266: lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18267: lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18268: reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18269: reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18270: deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18271: file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18272: file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18273: want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18274: sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18275: AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18276: AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18277: archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18278: STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18279: RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18280: old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18281: old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18282: old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18283: lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18284: CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18285: CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18286: compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18287: GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18288: lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18289: lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18290: lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18291: 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"`'
18292: nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18293: lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18294: objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18295: MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18296: lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18297: lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18298: lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18299: lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18300: lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18301: need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18302: MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18303: DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18304: NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18305: LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18306: OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18307: OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18308: libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18309: shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18310: extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18311: archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18312: enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18313: export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18314: whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18315: compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18316: old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18317: old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18318: archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18319: archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18320: module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18321: module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18322: with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18323: allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18324: no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18325: hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18326: hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18327: hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18328: hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18329: hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18330: hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18331: hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18332: inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18333: link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18334: always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18335: export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18336: exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18337: include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18338: prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18339: postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18340: file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18341: variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18342: need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18343: need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18344: version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18345: runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18346: shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18347: shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18348: libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18349: library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18350: soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18351: install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18352: postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18353: postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18354: finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18355: finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18356: hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18357: sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18358: sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18359: hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18360: enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18361: enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18362: enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18363: old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18364: striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18365: compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18366: predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18367: postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18368: predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18369: postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18370: compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18371: LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18372: reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18373: reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18374: old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18375: compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18376: GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18377: lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18378: lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18379: lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18380: lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18381: lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18382: archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18383: enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18384: export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18385: whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18386: compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18387: old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18388: old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18389: archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18390: archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18391: module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18392: module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18393: with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18394: allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18395: no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18396: hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18397: hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18398: hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18399: hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18400: hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18401: hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18402: hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18403: inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18404: link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18405: always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18406: export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18407: exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18408: include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18409: prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18410: postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18411: file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18412: hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18413: compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18414: predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18415: postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18416: predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18417: postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18418: compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18419:
18420: LTCC='$LTCC'
18421: LTCFLAGS='$LTCFLAGS'
18422: compiler='$compiler_DEFAULT'
18423:
18424: # A function that is used when there is no print builtin or printf.
18425: func_fallback_echo ()
18426: {
18427: eval 'cat <<_LTECHO_EOF
18428: \$1
18429: _LTECHO_EOF'
18430: }
18431:
18432: # Quote evaled strings.
1.36 ! moko 18433: for var in AS \
! 18434: DLLTOOL \
! 18435: OBJDUMP \
! 18436: SHELL \
1.35 moko 18437: ECHO \
18438: PATH_SEPARATOR \
18439: SED \
18440: GREP \
18441: EGREP \
18442: FGREP \
18443: LD \
18444: NM \
18445: LN_S \
18446: lt_SP2NL \
18447: lt_NL2SP \
18448: reload_flag \
18449: deplibs_check_method \
18450: file_magic_cmd \
18451: file_magic_glob \
18452: want_nocaseglob \
18453: sharedlib_from_linklib_cmd \
18454: AR \
18455: AR_FLAGS \
18456: archiver_list_spec \
18457: STRIP \
18458: RANLIB \
18459: CC \
18460: CFLAGS \
18461: compiler \
18462: lt_cv_sys_global_symbol_pipe \
18463: lt_cv_sys_global_symbol_to_cdecl \
18464: lt_cv_sys_global_symbol_to_c_name_address \
18465: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18466: nm_file_list_spec \
18467: lt_prog_compiler_no_builtin_flag \
18468: lt_prog_compiler_pic \
18469: lt_prog_compiler_wl \
18470: lt_prog_compiler_static \
18471: lt_cv_prog_compiler_c_o \
18472: need_locks \
18473: MANIFEST_TOOL \
18474: DSYMUTIL \
18475: NMEDIT \
18476: LIPO \
18477: OTOOL \
18478: OTOOL64 \
18479: shrext_cmds \
18480: export_dynamic_flag_spec \
18481: whole_archive_flag_spec \
18482: compiler_needs_object \
18483: with_gnu_ld \
18484: allow_undefined_flag \
18485: no_undefined_flag \
18486: hardcode_libdir_flag_spec \
18487: hardcode_libdir_separator \
18488: exclude_expsyms \
18489: include_expsyms \
18490: file_list_spec \
18491: variables_saved_for_relink \
18492: libname_spec \
18493: library_names_spec \
18494: soname_spec \
18495: install_override_mode \
18496: finish_eval \
18497: old_striplib \
18498: striplib \
18499: compiler_lib_search_dirs \
18500: predep_objects \
18501: postdep_objects \
18502: predeps \
18503: postdeps \
18504: compiler_lib_search_path \
18505: LD_CXX \
18506: reload_flag_CXX \
18507: compiler_CXX \
18508: lt_prog_compiler_no_builtin_flag_CXX \
18509: lt_prog_compiler_pic_CXX \
18510: lt_prog_compiler_wl_CXX \
18511: lt_prog_compiler_static_CXX \
18512: lt_cv_prog_compiler_c_o_CXX \
18513: export_dynamic_flag_spec_CXX \
18514: whole_archive_flag_spec_CXX \
18515: compiler_needs_object_CXX \
18516: with_gnu_ld_CXX \
18517: allow_undefined_flag_CXX \
18518: no_undefined_flag_CXX \
18519: hardcode_libdir_flag_spec_CXX \
18520: hardcode_libdir_separator_CXX \
18521: exclude_expsyms_CXX \
18522: include_expsyms_CXX \
18523: file_list_spec_CXX \
18524: compiler_lib_search_dirs_CXX \
18525: predep_objects_CXX \
18526: postdep_objects_CXX \
18527: predeps_CXX \
18528: postdeps_CXX \
18529: compiler_lib_search_path_CXX; do
18530: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18531: *[\\\\\\\`\\"\\\$]*)
18532: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18533: ;;
18534: *)
18535: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18536: ;;
18537: esac
18538: done
18539:
18540: # Double-quote double-evaled strings.
18541: for var in reload_cmds \
18542: old_postinstall_cmds \
18543: old_postuninstall_cmds \
18544: old_archive_cmds \
18545: extract_expsyms_cmds \
18546: old_archive_from_new_cmds \
18547: old_archive_from_expsyms_cmds \
18548: archive_cmds \
18549: archive_expsym_cmds \
18550: module_cmds \
18551: module_expsym_cmds \
18552: export_symbols_cmds \
18553: prelink_cmds \
18554: postlink_cmds \
18555: postinstall_cmds \
18556: postuninstall_cmds \
18557: finish_cmds \
18558: sys_lib_search_path_spec \
18559: sys_lib_dlsearch_path_spec \
18560: reload_cmds_CXX \
18561: old_archive_cmds_CXX \
18562: old_archive_from_new_cmds_CXX \
18563: old_archive_from_expsyms_cmds_CXX \
18564: archive_cmds_CXX \
18565: archive_expsym_cmds_CXX \
18566: module_cmds_CXX \
18567: module_expsym_cmds_CXX \
18568: export_symbols_cmds_CXX \
18569: prelink_cmds_CXX \
18570: postlink_cmds_CXX; do
18571: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18572: *[\\\\\\\`\\"\\\$]*)
18573: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18574: ;;
18575: *)
18576: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18577: ;;
18578: esac
18579: done
18580:
18581: ac_aux_dir='$ac_aux_dir'
18582: xsi_shell='$xsi_shell'
18583: lt_shell_append='$lt_shell_append'
18584:
18585: # See if we are running on zsh, and set the options which allow our
18586: # commands through without removal of \ escapes INIT.
18587: if test -n "\${ZSH_VERSION+set}" ; then
18588: setopt NO_GLOB_SUBST
18589: fi
18590:
18591:
18592: PACKAGE='$PACKAGE'
18593: VERSION='$VERSION'
18594: TIMESTAMP='$TIMESTAMP'
18595: RM='$RM'
18596: ofile='$ofile'
18597:
18598:
18599:
18600:
18601:
18602:
18603: _ACEOF
18604:
18605:
18606:
18607: cat >>$CONFIG_STATUS <<\_ACEOF
18608: for ac_config_target in $ac_config_targets
18609: do
18610: case "$ac_config_target" in
18611: # Handling of arguments.
18612: "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18613: "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18614: "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18615: "config_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config_auto.h" ;;
18616: *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18617: echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18618: { (exit 1); exit 1; }; };;
18619: esac
18620: done
18621:
18622: # If the user did not use the arguments to specify the items to instantiate,
18623: # then the envvar interface is used. Set only those that are not.
18624: # We use the long form for the default assignment because of an extremely
18625: # bizarre bug on SunOS 4.1.3.
18626: if $ac_need_defaults; then
18627: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18628: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18629: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18630: fi
18631:
18632: # Have a temporary directory for convenience. Make it in the build tree
18633: # simply because there is no reason to put it here, and in addition,
18634: # creating and moving files from /tmp can sometimes cause problems.
18635: # Create a temporary directory, and hook for its removal unless debugging.
18636: $debug ||
18637: {
18638: trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18639: trap '{ (exit 1); exit 1; }' 1 2 13 15
18640: }
18641:
18642: # Create a (secure) tmp directory for tmp files.
18643:
18644: {
18645: tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
18646: test -n "$tmp" && test -d "$tmp"
18647: } ||
18648: {
18649: tmp=./confstat$$-$RANDOM
18650: (umask 077 && mkdir $tmp)
18651: } ||
18652: {
18653: echo "$me: cannot create a temporary directory in ." >&2
18654: { (exit 1); exit 1; }
18655: }
18656:
18657: _ACEOF
18658:
18659: cat >>$CONFIG_STATUS <<_ACEOF
18660:
18661: #
18662: # CONFIG_FILES section.
18663: #
18664:
18665: # No need to generate the scripts if there are no CONFIG_FILES.
18666: # This happens for instance when ./config.status config.h
18667: if test -n "\$CONFIG_FILES"; then
18668: # Protect against being on the right side of a sed subst in config.status.
18669: sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18670: s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18671: s,@SHELL@,$SHELL,;t t
18672: s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18673: s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18674: s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18675: s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18676: s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18677: s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18678: s,@exec_prefix@,$exec_prefix,;t t
18679: s,@prefix@,$prefix,;t t
18680: s,@program_transform_name@,$program_transform_name,;t t
18681: s,@bindir@,$bindir,;t t
18682: s,@sbindir@,$sbindir,;t t
18683: s,@libexecdir@,$libexecdir,;t t
18684: s,@datadir@,$datadir,;t t
18685: s,@sysconfdir@,$sysconfdir,;t t
18686: s,@sharedstatedir@,$sharedstatedir,;t t
18687: s,@localstatedir@,$localstatedir,;t t
18688: s,@libdir@,$libdir,;t t
18689: s,@includedir@,$includedir,;t t
18690: s,@oldincludedir@,$oldincludedir,;t t
18691: s,@infodir@,$infodir,;t t
18692: s,@mandir@,$mandir,;t t
18693: s,@build_alias@,$build_alias,;t t
18694: s,@host_alias@,$host_alias,;t t
18695: s,@target_alias@,$target_alias,;t t
18696: s,@DEFS@,$DEFS,;t t
18697: s,@ECHO_C@,$ECHO_C,;t t
18698: s,@ECHO_N@,$ECHO_N,;t t
18699: s,@ECHO_T@,$ECHO_T,;t t
18700: s,@LIBS@,$LIBS,;t t
18701: s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18702: s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18703: s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18704: s,@CYGPATH_W@,$CYGPATH_W,;t t
18705: s,@PACKAGE@,$PACKAGE,;t t
18706: s,@VERSION@,$VERSION,;t t
18707: s,@ACLOCAL@,$ACLOCAL,;t t
18708: s,@AUTOCONF@,$AUTOCONF,;t t
18709: s,@AUTOMAKE@,$AUTOMAKE,;t t
18710: s,@AUTOHEADER@,$AUTOHEADER,;t t
18711: s,@MAKEINFO@,$MAKEINFO,;t t
18712: s,@install_sh@,$install_sh,;t t
18713: s,@STRIP@,$STRIP,;t t
18714: s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
18715: s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
18716: s,@mkdir_p@,$mkdir_p,;t t
18717: s,@AWK@,$AWK,;t t
18718: s,@SET_MAKE@,$SET_MAKE,;t t
18719: s,@am__leading_dot@,$am__leading_dot,;t t
18720: s,@AMTAR@,$AMTAR,;t t
18721: s,@am__tar@,$am__tar,;t t
18722: s,@am__untar@,$am__untar,;t t
18723: s,@MYSQL_INC@,$MYSQL_INC,;t t
18724: s,@LDFLAGS@,$LDFLAGS,;t t
18725: s,@CXX@,$CXX,;t t
18726: s,@CXXFLAGS@,$CXXFLAGS,;t t
18727: s,@CPPFLAGS@,$CPPFLAGS,;t t
18728: s,@ac_ct_CXX@,$ac_ct_CXX,;t t
18729: s,@EXEEXT@,$EXEEXT,;t t
18730: s,@OBJEXT@,$OBJEXT,;t t
18731: s,@DEPDIR@,$DEPDIR,;t t
18732: s,@am__include@,$am__include,;t t
18733: s,@am__quote@,$am__quote,;t t
18734: s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
18735: s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
18736: s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
18737: s,@CXXDEPMODE@,$CXXDEPMODE,;t t
18738: s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
18739: s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
18740: s,@CC@,$CC,;t t
18741: s,@CFLAGS@,$CFLAGS,;t t
18742: s,@ac_ct_CC@,$ac_ct_CC,;t t
18743: s,@CCDEPMODE@,$CCDEPMODE,;t t
18744: s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
18745: s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
1.36 ! moko 18746: s,@AS@,$AS,;t t
! 18747: s,@ac_ct_AS@,$ac_ct_AS,;t t
! 18748: s,@DLLTOOL@,$DLLTOOL,;t t
! 18749: s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
! 18750: s,@OBJDUMP@,$OBJDUMP,;t t
! 18751: s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
1.35 moko 18752: s,@LIBTOOL@,$LIBTOOL,;t t
18753: s,@build@,$build,;t t
18754: s,@build_cpu@,$build_cpu,;t t
18755: s,@build_vendor@,$build_vendor,;t t
18756: s,@build_os@,$build_os,;t t
18757: s,@host@,$host,;t t
18758: s,@host_cpu@,$host_cpu,;t t
18759: s,@host_vendor@,$host_vendor,;t t
18760: s,@host_os@,$host_os,;t t
18761: s,@SED@,$SED,;t t
18762: s,@EGREP@,$EGREP,;t t
18763: s,@FGREP@,$FGREP,;t t
18764: s,@GREP@,$GREP,;t t
18765: s,@LD@,$LD,;t t
18766: s,@DUMPBIN@,$DUMPBIN,;t t
18767: s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
18768: s,@NM@,$NM,;t t
18769: s,@LN_S@,$LN_S,;t t
18770: s,@AR@,$AR,;t t
18771: s,@ac_ct_AR@,$ac_ct_AR,;t t
18772: s,@RANLIB@,$RANLIB,;t t
18773: s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18774: s,@MANIFEST_TOOL@,$MANIFEST_TOOL,;t t
18775: s,@ac_ct_MANIFEST_TOOL@,$ac_ct_MANIFEST_TOOL,;t t
18776: s,@DSYMUTIL@,$DSYMUTIL,;t t
18777: s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
18778: s,@NMEDIT@,$NMEDIT,;t t
18779: s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
18780: s,@LIPO@,$LIPO,;t t
18781: s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
18782: s,@OTOOL@,$OTOOL,;t t
18783: s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
18784: s,@OTOOL64@,$OTOOL64,;t t
18785: s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
18786: s,@CPP@,$CPP,;t t
18787: s,@CXXCPP@,$CXXCPP,;t t
18788: s,@LIBLTDL@,$LIBLTDL,;t t
18789: s,@LTDLDEPS@,$LTDLDEPS,;t t
18790: s,@LTDLINCL@,$LTDLINCL,;t t
18791: s,@INCLTDL@,$INCLTDL,;t t
18792: s,@LT_DLLOADERS@,$LT_DLLOADERS,;t t
18793: s,@LIBADD_DLOPEN@,$LIBADD_DLOPEN,;t t
18794: s,@LIBADD_SHL_LOAD@,$LIBADD_SHL_LOAD,;t t
18795: s,@LIBADD_DLD_LINK@,$LIBADD_DLD_LINK,;t t
18796: s,@LT_DLPREOPEN@,$LT_DLPREOPEN,;t t
1.36 ! moko 18797: s,@LIBADD_DL@,$LIBADD_DL,;t t
1.35 moko 18798: s,@sys_symbol_underscore@,$sys_symbol_underscore,;t t
18799: s,@ARGZ_H@,$ARGZ_H,;t t
18800: s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
18801: s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
18802: s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
18803: s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
18804: s,@subdirs@,$subdirs,;t t
18805: s,@LT_CONFIG_H@,$LT_CONFIG_H,;t t
18806: s,@LTDLOPEN@,$LTDLOPEN,;t t
18807: s,@LIBOBJS@,$LIBOBJS,;t t
18808: s,@LTLIBOBJS@,$LTLIBOBJS,;t t
18809: s,@ltdl_LIBOBJS@,$ltdl_LIBOBJS,;t t
18810: s,@ltdl_LTLIBOBJS@,$ltdl_LTLIBOBJS,;t t
18811: CEOF
18812:
18813: _ACEOF
18814:
18815: cat >>$CONFIG_STATUS <<\_ACEOF
18816: # Split the substitutions into bite-sized pieces for seds with
18817: # small command number limits, like on Digital OSF/1 and HP-UX.
18818: ac_max_sed_lines=48
18819: ac_sed_frag=1 # Number of current file.
18820: ac_beg=1 # First line for current file.
18821: ac_end=$ac_max_sed_lines # Line after last line for current file.
18822: ac_more_lines=:
18823: ac_sed_cmds=
18824: while $ac_more_lines; do
18825: if test $ac_beg -gt 1; then
18826: sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18827: else
18828: sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18829: fi
18830: if test ! -s $tmp/subs.frag; then
18831: ac_more_lines=false
18832: else
18833: # The purpose of the label and of the branching condition is to
18834: # speed up the sed processing (if there are no `@' at all, there
18835: # is no need to browse any of the substitutions).
18836: # These are the two extra sed commands mentioned above.
18837: (echo ':t
18838: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18839: if test -z "$ac_sed_cmds"; then
18840: ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18841: else
18842: ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18843: fi
18844: ac_sed_frag=`expr $ac_sed_frag + 1`
18845: ac_beg=$ac_end
18846: ac_end=`expr $ac_end + $ac_max_sed_lines`
18847: fi
18848: done
18849: if test -z "$ac_sed_cmds"; then
18850: ac_sed_cmds=cat
18851: fi
18852: fi # test -n "$CONFIG_FILES"
18853:
18854: _ACEOF
18855: cat >>$CONFIG_STATUS <<\_ACEOF
18856: for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18857: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18858: case $ac_file in
18859: - | *:- | *:-:* ) # input from stdin
18860: cat >$tmp/stdin
18861: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18862: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18863: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18864: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18865: * ) ac_file_in=$ac_file.in ;;
18866: esac
18867:
18868: # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18869: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18870: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18871: X"$ac_file" : 'X\(//\)[^/]' \| \
18872: X"$ac_file" : 'X\(//\)$' \| \
18873: X"$ac_file" : 'X\(/\)' \| \
18874: . : '\(.\)' 2>/dev/null ||
18875: echo X"$ac_file" |
18876: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18877: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18878: /^X\(\/\/\)$/{ s//\1/; q; }
18879: /^X\(\/\).*/{ s//\1/; q; }
18880: s/.*/./; q'`
18881: { if $as_mkdir_p; then
18882: mkdir -p "$ac_dir"
18883: else
18884: as_dir="$ac_dir"
18885: as_dirs=
18886: while test ! -d "$as_dir"; do
18887: as_dirs="$as_dir $as_dirs"
18888: as_dir=`(dirname "$as_dir") 2>/dev/null ||
18889: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18890: X"$as_dir" : 'X\(//\)[^/]' \| \
18891: X"$as_dir" : 'X\(//\)$' \| \
18892: X"$as_dir" : 'X\(/\)' \| \
18893: . : '\(.\)' 2>/dev/null ||
18894: echo X"$as_dir" |
18895: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18896: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18897: /^X\(\/\/\)$/{ s//\1/; q; }
18898: /^X\(\/\).*/{ s//\1/; q; }
18899: s/.*/./; q'`
18900: done
18901: test ! -n "$as_dirs" || mkdir $as_dirs
18902: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18903: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18904: { (exit 1); exit 1; }; }; }
18905:
18906: ac_builddir=.
18907:
18908: if test "$ac_dir" != .; then
18909: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18910: # A "../" for each directory in $ac_dir_suffix.
18911: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18912: else
18913: ac_dir_suffix= ac_top_builddir=
18914: fi
18915:
18916: case $srcdir in
18917: .) # No --srcdir option. We are building in place.
18918: ac_srcdir=.
18919: if test -z "$ac_top_builddir"; then
18920: ac_top_srcdir=.
18921: else
18922: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18923: fi ;;
18924: [\\/]* | ?:[\\/]* ) # Absolute path.
18925: ac_srcdir=$srcdir$ac_dir_suffix;
18926: ac_top_srcdir=$srcdir ;;
18927: *) # Relative path.
18928: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18929: ac_top_srcdir=$ac_top_builddir$srcdir ;;
18930: esac
18931:
18932: # Do not use `cd foo && pwd` to compute absolute paths, because
18933: # the directories may not exist.
18934: case `pwd` in
18935: .) ac_abs_builddir="$ac_dir";;
18936: *)
18937: case "$ac_dir" in
18938: .) ac_abs_builddir=`pwd`;;
18939: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18940: *) ac_abs_builddir=`pwd`/"$ac_dir";;
18941: esac;;
18942: esac
18943: case $ac_abs_builddir in
18944: .) ac_abs_top_builddir=${ac_top_builddir}.;;
18945: *)
18946: case ${ac_top_builddir}. in
18947: .) ac_abs_top_builddir=$ac_abs_builddir;;
18948: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18949: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18950: esac;;
18951: esac
18952: case $ac_abs_builddir in
18953: .) ac_abs_srcdir=$ac_srcdir;;
18954: *)
18955: case $ac_srcdir in
18956: .) ac_abs_srcdir=$ac_abs_builddir;;
18957: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18958: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18959: esac;;
18960: esac
18961: case $ac_abs_builddir in
18962: .) ac_abs_top_srcdir=$ac_top_srcdir;;
18963: *)
18964: case $ac_top_srcdir in
18965: .) ac_abs_top_srcdir=$ac_abs_builddir;;
18966: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18967: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18968: esac;;
18969: esac
18970:
18971:
18972: case $INSTALL in
18973: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18974: *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
18975: esac
18976:
18977: if test x"$ac_file" != x-; then
18978: { echo "$as_me:$LINENO: creating $ac_file" >&5
18979: echo "$as_me: creating $ac_file" >&6;}
18980: rm -f "$ac_file"
18981: fi
18982: # Let's still pretend it is `configure' which instantiates (i.e., don't
18983: # use $as_me), people would be surprised to read:
18984: # /* config.h. Generated by config.status. */
18985: if test x"$ac_file" = x-; then
18986: configure_input=
18987: else
18988: configure_input="$ac_file. "
18989: fi
18990: configure_input=$configure_input"Generated from `echo $ac_file_in |
18991: sed 's,.*/,,'` by configure."
18992:
18993: # First look for the input files in the build tree, otherwise in the
18994: # src tree.
18995: ac_file_inputs=`IFS=:
18996: for f in $ac_file_in; do
18997: case $f in
18998: -) echo $tmp/stdin ;;
18999: [\\/$]*)
19000: # Absolute (can't be DOS-style, as IFS=:)
19001: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19002: echo "$as_me: error: cannot find input file: $f" >&2;}
19003: { (exit 1); exit 1; }; }
19004: echo "$f";;
19005: *) # Relative
19006: if test -f "$f"; then
19007: # Build tree
19008: echo "$f"
19009: elif test -f "$srcdir/$f"; then
19010: # Source tree
19011: echo "$srcdir/$f"
19012: else
19013: # /dev/null tree
19014: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19015: echo "$as_me: error: cannot find input file: $f" >&2;}
19016: { (exit 1); exit 1; }; }
19017: fi;;
19018: esac
19019: done` || { (exit 1); exit 1; }
19020: _ACEOF
19021: cat >>$CONFIG_STATUS <<_ACEOF
19022: sed "$ac_vpsub
19023: $extrasub
19024: _ACEOF
19025: cat >>$CONFIG_STATUS <<\_ACEOF
19026: :t
19027: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19028: s,@configure_input@,$configure_input,;t t
19029: s,@srcdir@,$ac_srcdir,;t t
19030: s,@abs_srcdir@,$ac_abs_srcdir,;t t
19031: s,@top_srcdir@,$ac_top_srcdir,;t t
19032: s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19033: s,@builddir@,$ac_builddir,;t t
19034: s,@abs_builddir@,$ac_abs_builddir,;t t
19035: s,@top_builddir@,$ac_top_builddir,;t t
19036: s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19037: s,@INSTALL@,$ac_INSTALL,;t t
19038: " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19039: rm -f $tmp/stdin
19040: if test x"$ac_file" != x-; then
19041: mv $tmp/out $ac_file
19042: else
19043: cat $tmp/out
19044: rm -f $tmp/out
19045: fi
19046:
19047: done
19048: _ACEOF
19049: cat >>$CONFIG_STATUS <<\_ACEOF
19050:
19051: #
19052: # CONFIG_HEADER section.
19053: #
19054:
19055: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19056: # NAME is the cpp macro being defined and VALUE is the value it is being given.
19057: #
19058: # ac_d sets the value in "#define NAME VALUE" lines.
19059: ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19060: ac_dB='[ ].*$,\1#\2'
19061: ac_dC=' '
19062: ac_dD=',;t'
19063: # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19064: ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19065: ac_uB='$,\1#\2define\3'
19066: ac_uC=' '
19067: ac_uD=',;t'
19068:
19069: for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19070: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19071: case $ac_file in
19072: - | *:- | *:-:* ) # input from stdin
19073: cat >$tmp/stdin
19074: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19075: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19076: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19077: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19078: * ) ac_file_in=$ac_file.in ;;
19079: esac
19080:
19081: test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19082: echo "$as_me: creating $ac_file" >&6;}
19083:
19084: # First look for the input files in the build tree, otherwise in the
19085: # src tree.
19086: ac_file_inputs=`IFS=:
19087: for f in $ac_file_in; do
19088: case $f in
19089: -) echo $tmp/stdin ;;
19090: [\\/$]*)
19091: # Absolute (can't be DOS-style, as IFS=:)
19092: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19093: echo "$as_me: error: cannot find input file: $f" >&2;}
19094: { (exit 1); exit 1; }; }
19095: # Do quote $f, to prevent DOS paths from being IFS'd.
19096: echo "$f";;
19097: *) # Relative
19098: if test -f "$f"; then
19099: # Build tree
19100: echo "$f"
19101: elif test -f "$srcdir/$f"; then
19102: # Source tree
19103: echo "$srcdir/$f"
19104: else
19105: # /dev/null tree
19106: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19107: echo "$as_me: error: cannot find input file: $f" >&2;}
19108: { (exit 1); exit 1; }; }
19109: fi;;
19110: esac
19111: done` || { (exit 1); exit 1; }
19112: # Remove the trailing spaces.
19113: sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
19114:
19115: _ACEOF
19116:
19117: # Transform confdefs.h into two sed scripts, `conftest.defines' and
19118: # `conftest.undefs', that substitutes the proper values into
19119: # config.h.in to produce config.h. The first handles `#define'
19120: # templates, and the second `#undef' templates.
19121: # And first: Protect against being on the right side of a sed subst in
19122: # config.status. Protect against being in an unquoted here document
19123: # in config.status.
19124: rm -f conftest.defines conftest.undefs
19125: # Using a here document instead of a string reduces the quoting nightmare.
19126: # Putting comments in sed scripts is not portable.
19127: #
19128: # `end' is used to avoid that the second main sed command (meant for
19129: # 0-ary CPP macros) applies to n-ary macro definitions.
19130: # See the Autoconf documentation for `clear'.
19131: cat >confdef2sed.sed <<\_ACEOF
19132: s/[\\&,]/\\&/g
19133: s,[\\$`],\\&,g
19134: t clear
19135: : clear
19136: s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19137: t end
19138: s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19139: : end
19140: _ACEOF
19141: # If some macros were called several times there might be several times
19142: # the same #defines, which is useless. Nevertheless, we may not want to
19143: # sort them, since we want the *last* AC-DEFINE to be honored.
19144: uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19145: sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19146: rm -f confdef2sed.sed
19147:
19148: # This sed command replaces #undef with comments. This is necessary, for
19149: # example, in the case of _POSIX_SOURCE, which is predefined and required
19150: # on some systems where configure will not decide to define it.
19151: cat >>conftest.undefs <<\_ACEOF
19152: s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19153: _ACEOF
19154:
19155: # Break up conftest.defines because some shells have a limit on the size
19156: # of here documents, and old seds have small limits too (100 cmds).
19157: echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19158: echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19159: echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19160: echo ' :' >>$CONFIG_STATUS
19161: rm -f conftest.tail
19162: while grep . conftest.defines >/dev/null
19163: do
19164: # Write a limited-size here document to $tmp/defines.sed.
19165: echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19166: # Speed up: don't consider the non `#define' lines.
19167: echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
19168: # Work around the forget-to-reset-the-flag bug.
19169: echo 't clr' >>$CONFIG_STATUS
19170: echo ': clr' >>$CONFIG_STATUS
19171: sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19172: echo 'CEOF
19173: sed -f $tmp/defines.sed $tmp/in >$tmp/out
19174: rm -f $tmp/in
19175: mv $tmp/out $tmp/in
19176: ' >>$CONFIG_STATUS
19177: sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19178: rm -f conftest.defines
19179: mv conftest.tail conftest.defines
19180: done
19181: rm -f conftest.defines
19182: echo ' fi # grep' >>$CONFIG_STATUS
19183: echo >>$CONFIG_STATUS
19184:
19185: # Break up conftest.undefs because some shells have a limit on the size
19186: # of here documents, and old seds have small limits too (100 cmds).
19187: echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
19188: rm -f conftest.tail
19189: while grep . conftest.undefs >/dev/null
19190: do
19191: # Write a limited-size here document to $tmp/undefs.sed.
19192: echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19193: # Speed up: don't consider the non `#undef'
19194: echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
19195: # Work around the forget-to-reset-the-flag bug.
19196: echo 't clr' >>$CONFIG_STATUS
19197: echo ': clr' >>$CONFIG_STATUS
19198: sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19199: echo 'CEOF
19200: sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19201: rm -f $tmp/in
19202: mv $tmp/out $tmp/in
19203: ' >>$CONFIG_STATUS
19204: sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19205: rm -f conftest.undefs
19206: mv conftest.tail conftest.undefs
19207: done
19208: rm -f conftest.undefs
19209:
19210: cat >>$CONFIG_STATUS <<\_ACEOF
19211: # Let's still pretend it is `configure' which instantiates (i.e., don't
19212: # use $as_me), people would be surprised to read:
19213: # /* config.h. Generated by config.status. */
19214: if test x"$ac_file" = x-; then
19215: echo "/* Generated by configure. */" >$tmp/config.h
19216: else
19217: echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
19218: fi
19219: cat $tmp/in >>$tmp/config.h
19220: rm -f $tmp/in
19221: if test x"$ac_file" != x-; then
19222: if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
19223: { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19224: echo "$as_me: $ac_file is unchanged" >&6;}
19225: else
19226: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19227: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19228: X"$ac_file" : 'X\(//\)[^/]' \| \
19229: X"$ac_file" : 'X\(//\)$' \| \
19230: X"$ac_file" : 'X\(/\)' \| \
19231: . : '\(.\)' 2>/dev/null ||
19232: echo X"$ac_file" |
19233: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19234: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19235: /^X\(\/\/\)$/{ s//\1/; q; }
19236: /^X\(\/\).*/{ s//\1/; q; }
19237: s/.*/./; q'`
19238: { if $as_mkdir_p; then
19239: mkdir -p "$ac_dir"
19240: else
19241: as_dir="$ac_dir"
19242: as_dirs=
19243: while test ! -d "$as_dir"; do
19244: as_dirs="$as_dir $as_dirs"
19245: as_dir=`(dirname "$as_dir") 2>/dev/null ||
19246: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19247: X"$as_dir" : 'X\(//\)[^/]' \| \
19248: X"$as_dir" : 'X\(//\)$' \| \
19249: X"$as_dir" : 'X\(/\)' \| \
19250: . : '\(.\)' 2>/dev/null ||
19251: echo X"$as_dir" |
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: done
19258: test ! -n "$as_dirs" || mkdir $as_dirs
19259: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19260: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19261: { (exit 1); exit 1; }; }; }
19262:
19263: rm -f $ac_file
19264: mv $tmp/config.h $ac_file
19265: fi
19266: else
19267: cat $tmp/config.h
19268: rm -f $tmp/config.h
19269: fi
19270: # Compute $ac_file's index in $config_headers.
19271: _am_stamp_count=1
19272: for _am_header in $config_headers :; do
19273: case $_am_header in
19274: $ac_file | $ac_file:* )
19275: break ;;
19276: * )
19277: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19278: esac
19279: done
19280: echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
19281: $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19282: X$ac_file : 'X\(//\)[^/]' \| \
19283: X$ac_file : 'X\(//\)$' \| \
19284: X$ac_file : 'X\(/\)' \| \
19285: . : '\(.\)' 2>/dev/null ||
19286: echo X$ac_file |
19287: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19288: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19289: /^X\(\/\/\)$/{ s//\1/; q; }
19290: /^X\(\/\).*/{ s//\1/; q; }
19291: s/.*/./; q'`/stamp-h$_am_stamp_count
19292: done
19293: _ACEOF
19294: cat >>$CONFIG_STATUS <<\_ACEOF
19295:
19296: #
19297: # CONFIG_COMMANDS section.
19298: #
19299: for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19300: ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19301: ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19302: ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19303: $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19304: X"$ac_dest" : 'X\(//\)[^/]' \| \
19305: X"$ac_dest" : 'X\(//\)$' \| \
19306: X"$ac_dest" : 'X\(/\)' \| \
19307: . : '\(.\)' 2>/dev/null ||
19308: echo X"$ac_dest" |
19309: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19310: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19311: /^X\(\/\/\)$/{ s//\1/; q; }
19312: /^X\(\/\).*/{ s//\1/; q; }
19313: s/.*/./; q'`
19314: { if $as_mkdir_p; then
19315: mkdir -p "$ac_dir"
19316: else
19317: as_dir="$ac_dir"
19318: as_dirs=
19319: while test ! -d "$as_dir"; do
19320: as_dirs="$as_dir $as_dirs"
19321: as_dir=`(dirname "$as_dir") 2>/dev/null ||
19322: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19323: X"$as_dir" : 'X\(//\)[^/]' \| \
19324: X"$as_dir" : 'X\(//\)$' \| \
19325: X"$as_dir" : 'X\(/\)' \| \
19326: . : '\(.\)' 2>/dev/null ||
19327: echo X"$as_dir" |
19328: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19329: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19330: /^X\(\/\/\)$/{ s//\1/; q; }
19331: /^X\(\/\).*/{ s//\1/; q; }
19332: s/.*/./; q'`
19333: done
19334: test ! -n "$as_dirs" || mkdir $as_dirs
19335: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19336: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19337: { (exit 1); exit 1; }; }; }
19338:
19339: ac_builddir=.
19340:
19341: if test "$ac_dir" != .; then
19342: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19343: # A "../" for each directory in $ac_dir_suffix.
19344: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19345: else
19346: ac_dir_suffix= ac_top_builddir=
19347: fi
19348:
19349: case $srcdir in
19350: .) # No --srcdir option. We are building in place.
19351: ac_srcdir=.
19352: if test -z "$ac_top_builddir"; then
19353: ac_top_srcdir=.
19354: else
19355: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19356: fi ;;
19357: [\\/]* | ?:[\\/]* ) # Absolute path.
19358: ac_srcdir=$srcdir$ac_dir_suffix;
19359: ac_top_srcdir=$srcdir ;;
19360: *) # Relative path.
19361: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19362: ac_top_srcdir=$ac_top_builddir$srcdir ;;
19363: esac
19364:
19365: # Do not use `cd foo && pwd` to compute absolute paths, because
19366: # the directories may not exist.
19367: case `pwd` in
19368: .) ac_abs_builddir="$ac_dir";;
19369: *)
19370: case "$ac_dir" in
19371: .) ac_abs_builddir=`pwd`;;
19372: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
19373: *) ac_abs_builddir=`pwd`/"$ac_dir";;
19374: esac;;
19375: esac
19376: case $ac_abs_builddir in
19377: .) ac_abs_top_builddir=${ac_top_builddir}.;;
19378: *)
19379: case ${ac_top_builddir}. in
19380: .) ac_abs_top_builddir=$ac_abs_builddir;;
19381: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
19382: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
19383: esac;;
19384: esac
19385: case $ac_abs_builddir in
19386: .) ac_abs_srcdir=$ac_srcdir;;
19387: *)
19388: case $ac_srcdir in
19389: .) ac_abs_srcdir=$ac_abs_builddir;;
19390: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
19391: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
19392: esac;;
19393: esac
19394: case $ac_abs_builddir in
19395: .) ac_abs_top_srcdir=$ac_top_srcdir;;
19396: *)
19397: case $ac_top_srcdir in
19398: .) ac_abs_top_srcdir=$ac_abs_builddir;;
19399: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
19400: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
19401: esac;;
19402: esac
19403:
19404:
19405: { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19406: echo "$as_me: executing $ac_dest commands" >&6;}
19407: case $ac_dest in
19408: depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
19409: # Strip MF so we end up with the name of the file.
19410: mf=`echo "$mf" | sed -e 's/:.*$//'`
19411: # Check whether this is an Automake generated Makefile or not.
19412: # We used to match only the files named `Makefile.in', but
19413: # some people rename them; so instead we look at the file content.
19414: # Grep'ing the first line is not enough: some people post-process
19415: # each Makefile.in and add a new line on top of each file to say so.
19416: # So let's grep whole file.
19417: if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
19418: dirpart=`(dirname "$mf") 2>/dev/null ||
19419: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19420: X"$mf" : 'X\(//\)[^/]' \| \
19421: X"$mf" : 'X\(//\)$' \| \
19422: X"$mf" : 'X\(/\)' \| \
19423: . : '\(.\)' 2>/dev/null ||
19424: echo X"$mf" |
19425: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19426: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19427: /^X\(\/\/\)$/{ s//\1/; q; }
19428: /^X\(\/\).*/{ s//\1/; q; }
19429: s/.*/./; q'`
19430: else
19431: continue
19432: fi
19433: # Extract the definition of DEPDIR, am__include, and am__quote
19434: # from the Makefile without running `make'.
19435: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19436: test -z "$DEPDIR" && continue
19437: am__include=`sed -n 's/^am__include = //p' < "$mf"`
19438: test -z "am__include" && continue
19439: am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19440: # When using ansi2knr, U may be empty or an underscore; expand it
19441: U=`sed -n 's/^U = //p' < "$mf"`
19442: # Find all dependency output files, they are included files with
19443: # $(DEPDIR) in their names. We invoke sed twice because it is the
19444: # simplest approach to changing $(DEPDIR) to its actual value in the
19445: # expansion.
19446: for file in `sed -n "
19447: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19448: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19449: # Make sure the directory exists.
19450: test -f "$dirpart/$file" && continue
19451: fdir=`(dirname "$file") 2>/dev/null ||
19452: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19453: X"$file" : 'X\(//\)[^/]' \| \
19454: X"$file" : 'X\(//\)$' \| \
19455: X"$file" : 'X\(/\)' \| \
19456: . : '\(.\)' 2>/dev/null ||
19457: echo X"$file" |
19458: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19459: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19460: /^X\(\/\/\)$/{ s//\1/; q; }
19461: /^X\(\/\).*/{ s//\1/; q; }
19462: s/.*/./; q'`
19463: { if $as_mkdir_p; then
19464: mkdir -p $dirpart/$fdir
19465: else
19466: as_dir=$dirpart/$fdir
19467: as_dirs=
19468: while test ! -d "$as_dir"; do
19469: as_dirs="$as_dir $as_dirs"
19470: as_dir=`(dirname "$as_dir") 2>/dev/null ||
19471: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19472: X"$as_dir" : 'X\(//\)[^/]' \| \
19473: X"$as_dir" : 'X\(//\)$' \| \
19474: X"$as_dir" : 'X\(/\)' \| \
19475: . : '\(.\)' 2>/dev/null ||
19476: echo X"$as_dir" |
19477: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19478: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19479: /^X\(\/\/\)$/{ s//\1/; q; }
19480: /^X\(\/\).*/{ s//\1/; q; }
19481: s/.*/./; q'`
19482: done
19483: test ! -n "$as_dirs" || mkdir $as_dirs
19484: fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
19485: echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
19486: { (exit 1); exit 1; }; }; }
19487:
19488: # echo "creating $dirpart/$file"
19489: echo '# dummy' > "$dirpart/$file"
19490: done
19491: done
19492: ;;
19493: libtool )
19494:
19495: # See if we are running on zsh, and set the options which allow our
19496: # commands through without removal of \ escapes.
19497: if test -n "${ZSH_VERSION+set}" ; then
19498: setopt NO_GLOB_SUBST
19499: fi
19500:
19501: cfgfile="${ofile}T"
19502: trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19503: $RM "$cfgfile"
19504:
19505: cat <<_LT_EOF >> "$cfgfile"
19506: #! $SHELL
19507:
19508: # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19509: # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19510: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19511: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19512: #
19513: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19514: # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19515: # Foundation, Inc.
19516: # Written by Gordon Matzigkeit, 1996
19517: #
19518: # This file is part of GNU Libtool.
19519: #
19520: # GNU Libtool is free software; you can redistribute it and/or
19521: # modify it under the terms of the GNU General Public License as
19522: # published by the Free Software Foundation; either version 2 of
19523: # the License, or (at your option) any later version.
19524: #
19525: # As a special exception to the GNU General Public License,
19526: # if you distribute this file as part of a program or library that
19527: # is built using GNU Libtool, you may include this file under the
19528: # same distribution terms that you use for the rest of that program.
19529: #
19530: # GNU Libtool is distributed in the hope that it will be useful,
19531: # but WITHOUT ANY WARRANTY; without even the implied warranty of
19532: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19533: # GNU General Public License for more details.
19534: #
19535: # You should have received a copy of the GNU General Public License
19536: # along with GNU Libtool; see the file COPYING. If not, a copy
19537: # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19538: # obtained by writing to the Free Software Foundation, Inc.,
19539: # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19540:
19541:
19542: # The names of the tagged configurations supported by this script.
19543: available_tags="CXX "
19544:
19545: # ### BEGIN LIBTOOL CONFIG
19546:
19547: # Which release of libtool.m4 was used?
19548: macro_version=$macro_version
19549: macro_revision=$macro_revision
19550:
1.36 ! moko 19551: # Assembler program.
! 19552: AS=$lt_AS
! 19553:
! 19554: # DLL creation program.
! 19555: DLLTOOL=$lt_DLLTOOL
! 19556:
! 19557: # Object dumper program.
! 19558: OBJDUMP=$lt_OBJDUMP
! 19559:
1.35 moko 19560: # Whether or not to build shared libraries.
19561: build_libtool_libs=$enable_shared
19562:
19563: # Whether or not to build static libraries.
19564: build_old_libs=$enable_static
19565:
19566: # What type of objects to build.
19567: pic_mode=$pic_mode
19568:
19569: # Whether or not to optimize for fast installation.
19570: fast_install=$enable_fast_install
19571:
19572: # Shell to use when invoking shell scripts.
19573: SHELL=$lt_SHELL
19574:
19575: # An echo program that protects backslashes.
19576: ECHO=$lt_ECHO
19577:
19578: # The PATH separator for the build system.
19579: PATH_SEPARATOR=$lt_PATH_SEPARATOR
19580:
19581: # The host system.
19582: host_alias=$host_alias
19583: host=$host
19584: host_os=$host_os
19585:
19586: # The build system.
19587: build_alias=$build_alias
19588: build=$build
19589: build_os=$build_os
19590:
19591: # A sed program that does not truncate output.
19592: SED=$lt_SED
19593:
19594: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19595: Xsed="\$SED -e 1s/^X//"
19596:
19597: # A grep program that handles long lines.
19598: GREP=$lt_GREP
19599:
19600: # An ERE matcher.
19601: EGREP=$lt_EGREP
19602:
19603: # A literal string matcher.
19604: FGREP=$lt_FGREP
19605:
19606: # A BSD- or MS-compatible name lister.
19607: NM=$lt_NM
19608:
19609: # Whether we need soft or hard links.
19610: LN_S=$lt_LN_S
19611:
19612: # What is the maximum length of a command?
19613: max_cmd_len=$max_cmd_len
19614:
19615: # Object file suffix (normally "o").
19616: objext=$ac_objext
19617:
19618: # Executable file suffix (normally "").
19619: exeext=$exeext
19620:
19621: # whether the shell understands "unset".
19622: lt_unset=$lt_unset
19623:
19624: # turn spaces into newlines.
19625: SP2NL=$lt_lt_SP2NL
19626:
19627: # turn newlines into spaces.
19628: NL2SP=$lt_lt_NL2SP
19629:
19630: # convert \$build file names to \$host format.
19631: to_host_file_cmd=$lt_cv_to_host_file_cmd
19632:
19633: # convert \$build files to toolchain format.
19634: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19635:
19636: # Method to check whether dependent libraries are shared objects.
19637: deplibs_check_method=$lt_deplibs_check_method
19638:
19639: # Command to use when deplibs_check_method = "file_magic".
19640: file_magic_cmd=$lt_file_magic_cmd
19641:
19642: # How to find potential files when deplibs_check_method = "file_magic".
19643: file_magic_glob=$lt_file_magic_glob
19644:
19645: # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19646: want_nocaseglob=$lt_want_nocaseglob
19647:
19648: # Command to associate shared and link libraries.
19649: sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19650:
19651: # The archiver.
19652: AR=$lt_AR
19653:
19654: # Flags to create an archive.
19655: AR_FLAGS=$lt_AR_FLAGS
19656:
19657: # How to feed a file listing to the archiver.
19658: archiver_list_spec=$lt_archiver_list_spec
19659:
19660: # A symbol stripping program.
19661: STRIP=$lt_STRIP
19662:
19663: # Commands used to install an old-style archive.
19664: RANLIB=$lt_RANLIB
19665: old_postinstall_cmds=$lt_old_postinstall_cmds
19666: old_postuninstall_cmds=$lt_old_postuninstall_cmds
19667:
19668: # Whether to use a lock for old archive extraction.
19669: lock_old_archive_extraction=$lock_old_archive_extraction
19670:
19671: # A C compiler.
19672: LTCC=$lt_CC
19673:
19674: # LTCC compiler flags.
19675: LTCFLAGS=$lt_CFLAGS
19676:
19677: # Take the output of nm and produce a listing of raw symbols and C names.
19678: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19679:
19680: # Transform the output of nm in a proper C declaration.
19681: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19682:
19683: # Transform the output of nm in a C name address pair.
19684: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19685:
19686: # Transform the output of nm in a C name address pair when lib prefix is needed.
19687: global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19688:
19689: # Specify filename containing input files for \$NM.
19690: nm_file_list_spec=$lt_nm_file_list_spec
19691:
19692: # The root where to search for dependent libraries,and in which our libraries should be installed.
19693: lt_sysroot=$lt_sysroot
19694:
19695: # The name of the directory that contains temporary libtool files.
19696: objdir=$objdir
19697:
19698: # Used to examine libraries when file_magic_cmd begins with "file".
19699: MAGIC_CMD=$MAGIC_CMD
19700:
19701: # Must we lock files when doing compilation?
19702: need_locks=$lt_need_locks
19703:
19704: # Manifest tool.
19705: MANIFEST_TOOL=$lt_MANIFEST_TOOL
19706:
19707: # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19708: DSYMUTIL=$lt_DSYMUTIL
19709:
19710: # Tool to change global to local symbols on Mac OS X.
19711: NMEDIT=$lt_NMEDIT
19712:
19713: # Tool to manipulate fat objects and archives on Mac OS X.
19714: LIPO=$lt_LIPO
19715:
19716: # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19717: OTOOL=$lt_OTOOL
19718:
19719: # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19720: OTOOL64=$lt_OTOOL64
19721:
19722: # Old archive suffix (normally "a").
19723: libext=$libext
19724:
19725: # Shared library suffix (normally ".so").
19726: shrext_cmds=$lt_shrext_cmds
19727:
19728: # The commands to extract the exported symbol list from a shared archive.
19729: extract_expsyms_cmds=$lt_extract_expsyms_cmds
19730:
19731: # Variables whose values should be saved in libtool wrapper scripts and
19732: # restored at link time.
19733: variables_saved_for_relink=$lt_variables_saved_for_relink
19734:
19735: # Do we need the "lib" prefix for modules?
19736: need_lib_prefix=$need_lib_prefix
19737:
19738: # Do we need a version for libraries?
19739: need_version=$need_version
19740:
19741: # Library versioning type.
19742: version_type=$version_type
19743:
19744: # Shared library runtime path variable.
19745: runpath_var=$runpath_var
19746:
19747: # Shared library path variable.
19748: shlibpath_var=$shlibpath_var
19749:
19750: # Is shlibpath searched before the hard-coded library search path?
19751: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19752:
19753: # Format of library name prefix.
19754: libname_spec=$lt_libname_spec
19755:
19756: # List of archive names. First name is the real one, the rest are links.
19757: # The last name is the one that the linker finds with -lNAME
19758: library_names_spec=$lt_library_names_spec
19759:
19760: # The coded name of the library, if different from the real name.
19761: soname_spec=$lt_soname_spec
19762:
19763: # Permission mode override for installation of shared libraries.
19764: install_override_mode=$lt_install_override_mode
19765:
19766: # Command to use after installation of a shared archive.
19767: postinstall_cmds=$lt_postinstall_cmds
19768:
19769: # Command to use after uninstallation of a shared archive.
19770: postuninstall_cmds=$lt_postuninstall_cmds
19771:
19772: # Commands used to finish a libtool library installation in a directory.
19773: finish_cmds=$lt_finish_cmds
19774:
19775: # As "finish_cmds", except a single script fragment to be evaled but
19776: # not shown.
19777: finish_eval=$lt_finish_eval
19778:
19779: # Whether we should hardcode library paths into libraries.
19780: hardcode_into_libs=$hardcode_into_libs
19781:
19782: # Compile-time system search path for libraries.
19783: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19784:
19785: # Run-time system search path for libraries.
19786: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19787:
19788: # Whether dlopen is supported.
19789: dlopen_support=$enable_dlopen
19790:
19791: # Whether dlopen of programs is supported.
19792: dlopen_self=$enable_dlopen_self
19793:
19794: # Whether dlopen of statically linked programs is supported.
19795: dlopen_self_static=$enable_dlopen_self_static
19796:
19797: # Commands to strip libraries.
19798: old_striplib=$lt_old_striplib
19799: striplib=$lt_striplib
19800:
19801:
19802: # The linker used to build libraries.
19803: LD=$lt_LD
19804:
19805: # How to create reloadable object files.
19806: reload_flag=$lt_reload_flag
19807: reload_cmds=$lt_reload_cmds
19808:
19809: # Commands used to build an old-style archive.
19810: old_archive_cmds=$lt_old_archive_cmds
19811:
19812: # A language specific compiler.
19813: CC=$lt_compiler
19814:
19815: # Is the compiler the GNU compiler?
19816: with_gcc=$GCC
19817:
19818: # Compiler flag to turn off builtin functions.
19819: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19820:
19821: # Additional compiler flags for building library objects.
19822: pic_flag=$lt_lt_prog_compiler_pic
19823:
19824: # How to pass a linker flag through the compiler.
19825: wl=$lt_lt_prog_compiler_wl
19826:
19827: # Compiler flag to prevent dynamic linking.
19828: link_static_flag=$lt_lt_prog_compiler_static
19829:
19830: # Does compiler simultaneously support -c and -o options?
19831: compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19832:
19833: # Whether or not to add -lc for building shared libraries.
19834: build_libtool_need_lc=$archive_cmds_need_lc
19835:
19836: # Whether or not to disallow shared libs when runtime libs are static.
19837: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19838:
19839: # Compiler flag to allow reflexive dlopens.
19840: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19841:
19842: # Compiler flag to generate shared objects directly from archives.
19843: whole_archive_flag_spec=$lt_whole_archive_flag_spec
19844:
19845: # Whether the compiler copes with passing no objects directly.
19846: compiler_needs_object=$lt_compiler_needs_object
19847:
19848: # Create an old-style archive from a shared archive.
19849: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19850:
19851: # Create a temporary old-style archive to link instead of a shared archive.
19852: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19853:
19854: # Commands used to build a shared archive.
19855: archive_cmds=$lt_archive_cmds
19856: archive_expsym_cmds=$lt_archive_expsym_cmds
19857:
19858: # Commands used to build a loadable module if different from building
19859: # a shared archive.
19860: module_cmds=$lt_module_cmds
19861: module_expsym_cmds=$lt_module_expsym_cmds
19862:
19863: # Whether we are building with GNU ld or not.
19864: with_gnu_ld=$lt_with_gnu_ld
19865:
19866: # Flag that allows shared libraries with undefined symbols to be built.
19867: allow_undefined_flag=$lt_allow_undefined_flag
19868:
19869: # Flag that enforces no undefined symbols.
19870: no_undefined_flag=$lt_no_undefined_flag
19871:
19872: # Flag to hardcode \$libdir into a binary during linking.
19873: # This must work even if \$libdir does not exist
19874: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19875:
19876: # Whether we need a single "-rpath" flag with a separated argument.
19877: hardcode_libdir_separator=$lt_hardcode_libdir_separator
19878:
19879: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19880: # DIR into the resulting binary.
19881: hardcode_direct=$hardcode_direct
19882:
19883: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19884: # DIR into the resulting binary and the resulting library dependency is
19885: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19886: # library is relocated.
19887: hardcode_direct_absolute=$hardcode_direct_absolute
19888:
19889: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19890: # into the resulting binary.
19891: hardcode_minus_L=$hardcode_minus_L
19892:
19893: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19894: # into the resulting binary.
19895: hardcode_shlibpath_var=$hardcode_shlibpath_var
19896:
19897: # Set to "yes" if building a shared library automatically hardcodes DIR
19898: # into the library and all subsequent libraries and executables linked
19899: # against it.
19900: hardcode_automatic=$hardcode_automatic
19901:
19902: # Set to yes if linker adds runtime paths of dependent libraries
19903: # to runtime path list.
19904: inherit_rpath=$inherit_rpath
19905:
19906: # Whether libtool must link a program against all its dependency libraries.
19907: link_all_deplibs=$link_all_deplibs
19908:
19909: # Set to "yes" if exported symbols are required.
19910: always_export_symbols=$always_export_symbols
19911:
19912: # The commands to list exported symbols.
19913: export_symbols_cmds=$lt_export_symbols_cmds
19914:
19915: # Symbols that should not be listed in the preloaded symbols.
19916: exclude_expsyms=$lt_exclude_expsyms
19917:
19918: # Symbols that must always be exported.
19919: include_expsyms=$lt_include_expsyms
19920:
19921: # Commands necessary for linking programs (against libraries) with templates.
19922: prelink_cmds=$lt_prelink_cmds
19923:
19924: # Commands necessary for finishing linking programs.
19925: postlink_cmds=$lt_postlink_cmds
19926:
19927: # Specify filename containing input files.
19928: file_list_spec=$lt_file_list_spec
19929:
19930: # How to hardcode a shared library path into an executable.
19931: hardcode_action=$hardcode_action
19932:
19933: # The directories searched by this compiler when creating a shared library.
19934: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19935:
19936: # Dependencies to place before and after the objects being linked to
19937: # create a shared library.
19938: predep_objects=$lt_predep_objects
19939: postdep_objects=$lt_postdep_objects
19940: predeps=$lt_predeps
19941: postdeps=$lt_postdeps
19942:
19943: # The library search path used internally by the compiler when linking
19944: # a shared library.
19945: compiler_lib_search_path=$lt_compiler_lib_search_path
19946:
19947: # ### END LIBTOOL CONFIG
19948:
19949: _LT_EOF
19950:
19951: case $host_os in
19952: aix3*)
19953: cat <<\_LT_EOF >> "$cfgfile"
19954: # AIX sometimes has problems with the GCC collect2 program. For some
19955: # reason, if we set the COLLECT_NAMES environment variable, the problems
19956: # vanish in a puff of smoke.
19957: if test "X${COLLECT_NAMES+set}" != Xset; then
19958: COLLECT_NAMES=
19959: export COLLECT_NAMES
19960: fi
19961: _LT_EOF
19962: ;;
19963: esac
19964:
19965:
19966: ltmain="$ac_aux_dir/ltmain.sh"
19967:
19968:
19969: # We use sed instead of cat because bash on DJGPP gets confused if
19970: # if finds mixed CR/LF and LF-only lines. Since sed operates in
19971: # text mode, it properly converts lines to CR/LF. This bash problem
19972: # is reportedly fixed, but why not run on old versions too?
19973: sed '$q' "$ltmain" >> "$cfgfile" \
19974: || (rm -f "$cfgfile"; exit 1)
19975:
19976: if test x"$xsi_shell" = xyes; then
19977: sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19978: func_dirname ()\
19979: {\
19980: \ case ${1} in\
19981: \ */*) func_dirname_result="${1%/*}${2}" ;;\
19982: \ * ) func_dirname_result="${3}" ;;\
19983: \ esac\
19984: } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19985: && mv -f "$cfgfile.tmp" "$cfgfile" \
19986: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19987: test 0 -eq $? || _lt_function_replace_fail=:
19988:
19989:
19990: sed -e '/^func_basename ()$/,/^} # func_basename /c\
19991: func_basename ()\
19992: {\
19993: \ func_basename_result="${1##*/}"\
19994: } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
19995: && mv -f "$cfgfile.tmp" "$cfgfile" \
19996: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19997: test 0 -eq $? || _lt_function_replace_fail=:
19998:
19999:
20000: sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20001: func_dirname_and_basename ()\
20002: {\
20003: \ case ${1} in\
20004: \ */*) func_dirname_result="${1%/*}${2}" ;;\
20005: \ * ) func_dirname_result="${3}" ;;\
20006: \ esac\
20007: \ func_basename_result="${1##*/}"\
20008: } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20009: && mv -f "$cfgfile.tmp" "$cfgfile" \
20010: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20011: test 0 -eq $? || _lt_function_replace_fail=:
20012:
20013:
20014: sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20015: func_stripname ()\
20016: {\
20017: \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20018: \ # positional parameters, so assign one to ordinary parameter first.\
20019: \ func_stripname_result=${3}\
20020: \ func_stripname_result=${func_stripname_result#"${1}"}\
20021: \ func_stripname_result=${func_stripname_result%"${2}"}\
20022: } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20023: && mv -f "$cfgfile.tmp" "$cfgfile" \
20024: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20025: test 0 -eq $? || _lt_function_replace_fail=:
20026:
20027:
20028: sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20029: func_split_long_opt ()\
20030: {\
20031: \ func_split_long_opt_name=${1%%=*}\
20032: \ func_split_long_opt_arg=${1#*=}\
20033: } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20034: && mv -f "$cfgfile.tmp" "$cfgfile" \
20035: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20036: test 0 -eq $? || _lt_function_replace_fail=:
20037:
20038:
20039: sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20040: func_split_short_opt ()\
20041: {\
20042: \ func_split_short_opt_arg=${1#??}\
20043: \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20044: } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20045: && mv -f "$cfgfile.tmp" "$cfgfile" \
20046: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20047: test 0 -eq $? || _lt_function_replace_fail=:
20048:
20049:
20050: sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20051: func_lo2o ()\
20052: {\
20053: \ case ${1} in\
20054: \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20055: \ *) func_lo2o_result=${1} ;;\
20056: \ esac\
20057: } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20058: && mv -f "$cfgfile.tmp" "$cfgfile" \
20059: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20060: test 0 -eq $? || _lt_function_replace_fail=:
20061:
20062:
20063: sed -e '/^func_xform ()$/,/^} # func_xform /c\
20064: func_xform ()\
20065: {\
20066: func_xform_result=${1%.*}.lo\
20067: } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20068: && mv -f "$cfgfile.tmp" "$cfgfile" \
20069: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20070: test 0 -eq $? || _lt_function_replace_fail=:
20071:
20072:
20073: sed -e '/^func_arith ()$/,/^} # func_arith /c\
20074: func_arith ()\
20075: {\
20076: func_arith_result=$(( $* ))\
20077: } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20078: && mv -f "$cfgfile.tmp" "$cfgfile" \
20079: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20080: test 0 -eq $? || _lt_function_replace_fail=:
20081:
20082:
20083: sed -e '/^func_len ()$/,/^} # func_len /c\
20084: func_len ()\
20085: {\
20086: func_len_result=${#1}\
20087: } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20088: && mv -f "$cfgfile.tmp" "$cfgfile" \
20089: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20090: test 0 -eq $? || _lt_function_replace_fail=:
20091:
20092: fi
20093:
20094: if test x"$lt_shell_append" = xyes; then
20095: sed -e '/^func_append ()$/,/^} # func_append /c\
20096: func_append ()\
20097: {\
20098: eval "${1}+=\\${2}"\
20099: } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20100: && mv -f "$cfgfile.tmp" "$cfgfile" \
20101: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20102: test 0 -eq $? || _lt_function_replace_fail=:
20103:
20104:
20105: sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20106: func_append_quoted ()\
20107: {\
20108: \ func_quote_for_eval "${2}"\
20109: \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20110: } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20111: && mv -f "$cfgfile.tmp" "$cfgfile" \
20112: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20113: test 0 -eq $? || _lt_function_replace_fail=:
20114:
20115:
20116: # Save a `func_append' function call where possible by direct use of '+='
20117: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20118: && mv -f "$cfgfile.tmp" "$cfgfile" \
20119: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20120: test 0 -eq $? || _lt_function_replace_fail=:
20121: else
20122: # Save a `func_append' function call even when '+=' is not available
20123: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20124: && mv -f "$cfgfile.tmp" "$cfgfile" \
20125: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20126: test 0 -eq $? || _lt_function_replace_fail=:
20127: fi
20128:
20129: if test x"$_lt_function_replace_fail" = x":"; then
20130: { echo "$as_me:$LINENO: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20131: echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20132: fi
20133:
20134:
20135: mv -f "$cfgfile" "$ofile" ||
20136: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20137: chmod +x "$ofile"
20138:
20139:
20140: cat <<_LT_EOF >> "$ofile"
20141:
20142: # ### BEGIN LIBTOOL TAG CONFIG: CXX
20143:
20144: # The linker used to build libraries.
20145: LD=$lt_LD_CXX
20146:
20147: # How to create reloadable object files.
20148: reload_flag=$lt_reload_flag_CXX
20149: reload_cmds=$lt_reload_cmds_CXX
20150:
20151: # Commands used to build an old-style archive.
20152: old_archive_cmds=$lt_old_archive_cmds_CXX
20153:
20154: # A language specific compiler.
20155: CC=$lt_compiler_CXX
20156:
20157: # Is the compiler the GNU compiler?
20158: with_gcc=$GCC_CXX
20159:
20160: # Compiler flag to turn off builtin functions.
20161: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20162:
20163: # Additional compiler flags for building library objects.
20164: pic_flag=$lt_lt_prog_compiler_pic_CXX
20165:
20166: # How to pass a linker flag through the compiler.
20167: wl=$lt_lt_prog_compiler_wl_CXX
20168:
20169: # Compiler flag to prevent dynamic linking.
20170: link_static_flag=$lt_lt_prog_compiler_static_CXX
20171:
20172: # Does compiler simultaneously support -c and -o options?
20173: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20174:
20175: # Whether or not to add -lc for building shared libraries.
20176: build_libtool_need_lc=$archive_cmds_need_lc_CXX
20177:
20178: # Whether or not to disallow shared libs when runtime libs are static.
20179: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20180:
20181: # Compiler flag to allow reflexive dlopens.
20182: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20183:
20184: # Compiler flag to generate shared objects directly from archives.
20185: whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20186:
20187: # Whether the compiler copes with passing no objects directly.
20188: compiler_needs_object=$lt_compiler_needs_object_CXX
20189:
20190: # Create an old-style archive from a shared archive.
20191: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20192:
20193: # Create a temporary old-style archive to link instead of a shared archive.
20194: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20195:
20196: # Commands used to build a shared archive.
20197: archive_cmds=$lt_archive_cmds_CXX
20198: archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20199:
20200: # Commands used to build a loadable module if different from building
20201: # a shared archive.
20202: module_cmds=$lt_module_cmds_CXX
20203: module_expsym_cmds=$lt_module_expsym_cmds_CXX
20204:
20205: # Whether we are building with GNU ld or not.
20206: with_gnu_ld=$lt_with_gnu_ld_CXX
20207:
20208: # Flag that allows shared libraries with undefined symbols to be built.
20209: allow_undefined_flag=$lt_allow_undefined_flag_CXX
20210:
20211: # Flag that enforces no undefined symbols.
20212: no_undefined_flag=$lt_no_undefined_flag_CXX
20213:
20214: # Flag to hardcode \$libdir into a binary during linking.
20215: # This must work even if \$libdir does not exist
20216: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20217:
20218: # Whether we need a single "-rpath" flag with a separated argument.
20219: hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20220:
20221: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20222: # DIR into the resulting binary.
20223: hardcode_direct=$hardcode_direct_CXX
20224:
20225: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20226: # DIR into the resulting binary and the resulting library dependency is
20227: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20228: # library is relocated.
20229: hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20230:
20231: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20232: # into the resulting binary.
20233: hardcode_minus_L=$hardcode_minus_L_CXX
20234:
20235: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20236: # into the resulting binary.
20237: hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20238:
20239: # Set to "yes" if building a shared library automatically hardcodes DIR
20240: # into the library and all subsequent libraries and executables linked
20241: # against it.
20242: hardcode_automatic=$hardcode_automatic_CXX
20243:
20244: # Set to yes if linker adds runtime paths of dependent libraries
20245: # to runtime path list.
20246: inherit_rpath=$inherit_rpath_CXX
20247:
20248: # Whether libtool must link a program against all its dependency libraries.
20249: link_all_deplibs=$link_all_deplibs_CXX
20250:
20251: # Set to "yes" if exported symbols are required.
20252: always_export_symbols=$always_export_symbols_CXX
20253:
20254: # The commands to list exported symbols.
20255: export_symbols_cmds=$lt_export_symbols_cmds_CXX
20256:
20257: # Symbols that should not be listed in the preloaded symbols.
20258: exclude_expsyms=$lt_exclude_expsyms_CXX
20259:
20260: # Symbols that must always be exported.
20261: include_expsyms=$lt_include_expsyms_CXX
20262:
20263: # Commands necessary for linking programs (against libraries) with templates.
20264: prelink_cmds=$lt_prelink_cmds_CXX
20265:
20266: # Commands necessary for finishing linking programs.
20267: postlink_cmds=$lt_postlink_cmds_CXX
20268:
20269: # Specify filename containing input files.
20270: file_list_spec=$lt_file_list_spec_CXX
20271:
20272: # How to hardcode a shared library path into an executable.
20273: hardcode_action=$hardcode_action_CXX
20274:
20275: # The directories searched by this compiler when creating a shared library.
20276: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20277:
20278: # Dependencies to place before and after the objects being linked to
20279: # create a shared library.
20280: predep_objects=$lt_predep_objects_CXX
20281: postdep_objects=$lt_postdep_objects_CXX
20282: predeps=$lt_predeps_CXX
20283: postdeps=$lt_postdeps_CXX
20284:
20285: # The library search path used internally by the compiler when linking
20286: # a shared library.
20287: compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20288:
20289: # ### END LIBTOOL TAG CONFIG: CXX
20290: _LT_EOF
1.1 parser 20291:
1.15 paf 20292: ;;
20293: esac
20294: done
20295: _ACEOF
1.1 parser 20296:
1.15 paf 20297: cat >>$CONFIG_STATUS <<\_ACEOF
1.1 parser 20298:
1.15 paf 20299: { (exit 0); exit 0; }
20300: _ACEOF
1.1 parser 20301: chmod +x $CONFIG_STATUS
1.15 paf 20302: ac_clean_files=$ac_clean_files_save
20303:
20304:
20305: # configure is writing to config.log, and then calls config.status.
20306: # config.status does its own redirection, appending to config.log.
20307: # Unfortunately, on DOS this fails, as config.log is still kept open
20308: # by configure, so config.status won't be able to write to it; its
20309: # output is simply discarded. So we exec the FD to /dev/null,
20310: # effectively closing config.log, so it can be properly (re)opened and
20311: # appended to by config.status. When coming back to configure, we
20312: # need to make the FD available again.
20313: if test "$no_create" != yes; then
20314: ac_cs_success=:
20315: ac_config_status_args=
20316: test "$silent" = yes &&
20317: ac_config_status_args="$ac_config_status_args --quiet"
20318: exec 5>/dev/null
20319: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20320: exec 5>>config.log
20321: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20322: # would make configure fail if this is the last instruction.
20323: $ac_cs_success || { (exit 1); exit 1; }
20324: fi
1.1 parser 20325:
1.15 paf 20326: #
20327: # CONFIG_SUBDIRS section.
20328: #
1.1 parser 20329: if test "$no_recursion" != yes; then
20330:
20331: # Remove --cache-file and --srcdir arguments so they do not pile up.
20332: ac_sub_configure_args=
20333: ac_prev=
20334: for ac_arg in $ac_configure_args; do
20335: if test -n "$ac_prev"; then
20336: ac_prev=
20337: continue
20338: fi
1.15 paf 20339: case $ac_arg in
1.1 parser 20340: -cache-file | --cache-file | --cache-fil | --cache-fi \
20341: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
20342: ac_prev=cache_file ;;
20343: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1.15 paf 20344: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
20345: | --c=*)
20346: ;;
20347: --config-cache | -C)
1.1 parser 20348: ;;
20349: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
20350: ac_prev=srcdir ;;
20351: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
20352: ;;
1.15 paf 20353: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
20354: ac_prev=prefix ;;
20355: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
20356: ;;
1.1 parser 20357: *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
20358: esac
20359: done
20360:
1.15 paf 20361: # Always prepend --prefix to ensure using the same prefix
20362: # in subdir configurations.
20363: ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
20364:
20365: ac_popdir=`pwd`
20366: for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
1.1 parser 20367:
20368: # Do not complain, so a configure script can configure whichever
20369: # parts of a large source tree are present.
1.15 paf 20370: test -d $srcdir/$ac_dir || continue
1.1 parser 20371:
1.15 paf 20372: { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
20373: echo "$as_me: configuring in $ac_dir" >&6;}
20374: { if $as_mkdir_p; then
20375: mkdir -p "$ac_dir"
20376: else
20377: as_dir="$ac_dir"
20378: as_dirs=
20379: while test ! -d "$as_dir"; do
20380: as_dirs="$as_dir $as_dirs"
20381: as_dir=`(dirname "$as_dir") 2>/dev/null ||
20382: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.25 paf 20383: X"$as_dir" : 'X\(//\)[^/]' \| \
20384: X"$as_dir" : 'X\(//\)$' \| \
20385: X"$as_dir" : 'X\(/\)' \| \
20386: . : '\(.\)' 2>/dev/null ||
1.15 paf 20387: echo X"$as_dir" |
20388: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20389: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20390: /^X\(\/\/\)$/{ s//\1/; q; }
20391: /^X\(\/\).*/{ s//\1/; q; }
20392: s/.*/./; q'`
20393: done
20394: test ! -n "$as_dirs" || mkdir $as_dirs
20395: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20396: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20397: { (exit 1); exit 1; }; }; }
20398:
20399: ac_builddir=.
20400:
20401: if test "$ac_dir" != .; then
20402: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20403: # A "../" for each directory in $ac_dir_suffix.
20404: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20405: else
20406: ac_dir_suffix= ac_top_builddir=
20407: fi
20408:
20409: case $srcdir in
20410: .) # No --srcdir option. We are building in place.
20411: ac_srcdir=.
20412: if test -z "$ac_top_builddir"; then
20413: ac_top_srcdir=.
20414: else
20415: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20416: fi ;;
20417: [\\/]* | ?:[\\/]* ) # Absolute path.
20418: ac_srcdir=$srcdir$ac_dir_suffix;
20419: ac_top_srcdir=$srcdir ;;
20420: *) # Relative path.
20421: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20422: ac_top_srcdir=$ac_top_builddir$srcdir ;;
20423: esac
1.25 paf 20424:
20425: # Do not use `cd foo && pwd` to compute absolute paths, because
20426: # the directories may not exist.
20427: case `pwd` in
20428: .) ac_abs_builddir="$ac_dir";;
20429: *)
20430: case "$ac_dir" in
20431: .) ac_abs_builddir=`pwd`;;
20432: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20433: *) ac_abs_builddir=`pwd`/"$ac_dir";;
20434: esac;;
20435: esac
20436: case $ac_abs_builddir in
20437: .) ac_abs_top_builddir=${ac_top_builddir}.;;
20438: *)
20439: case ${ac_top_builddir}. in
20440: .) ac_abs_top_builddir=$ac_abs_builddir;;
20441: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20442: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20443: esac;;
20444: esac
20445: case $ac_abs_builddir in
20446: .) ac_abs_srcdir=$ac_srcdir;;
20447: *)
20448: case $ac_srcdir in
20449: .) ac_abs_srcdir=$ac_abs_builddir;;
20450: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20451: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20452: esac;;
20453: esac
20454: case $ac_abs_builddir in
20455: .) ac_abs_top_srcdir=$ac_top_srcdir;;
20456: *)
20457: case $ac_top_srcdir in
20458: .) ac_abs_top_srcdir=$ac_abs_builddir;;
20459: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20460: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20461: esac;;
20462: esac
1.1 parser 20463:
20464:
1.15 paf 20465: cd $ac_dir
1.1 parser 20466:
20467: # Check for guested configure; otherwise get Cygnus style configure.
1.15 paf 20468: if test -f $ac_srcdir/configure.gnu; then
20469: ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
20470: elif test -f $ac_srcdir/configure; then
20471: ac_sub_configure="$SHELL '$ac_srcdir/configure'"
20472: elif test -f $ac_srcdir/configure.in; then
1.1 parser 20473: ac_sub_configure=$ac_configure
20474: else
1.15 paf 20475: { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
20476: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
1.1 parser 20477: ac_sub_configure=
20478: fi
20479:
20480: # The recursion is here.
20481: if test -n "$ac_sub_configure"; then
20482: # Make the cache file name correct relative to the subdirectory.
1.15 paf 20483: case $cache_file in
20484: [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
1.1 parser 20485: *) # Relative path.
1.25 paf 20486: ac_sub_cache_file=$ac_top_builddir$cache_file ;;
1.1 parser 20487: esac
20488:
1.15 paf 20489: { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
20490: echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
1.1 parser 20491: # The eval makes quoting arguments work.
1.15 paf 20492: eval $ac_sub_configure $ac_sub_configure_args \
1.25 paf 20493: --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
20494: { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
1.15 paf 20495: echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
20496: { (exit 1); exit 1; }; }
1.1 parser 20497: fi
20498:
20499: cd $ac_popdir
20500: done
20501: fi
20502:
E-mail: