Annotation of parser3/configure, revision 1.141
1.1 paf 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.128 moko 3: # Generated by GNU Autoconf 2.59 for parser 3.4.2b.
1.1 paf 4: #
1.86 paf 5: # Copyright (C) 2003 Free Software Foundation, Inc.
1.1 paf 6: # This configure script is free software; the Free Software Foundation
7: # gives unlimited permission to copy, distribute and modify it.
1.62 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.86 paf 22: DUALCASE=1; export DUALCASE # for MKS sh
1.62 paf 23:
24: # Support unset when possible.
1.86 paf 25: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
1.62 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.86 paf 44: if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
1.62 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.86 paf 221: test -d ./-p && rmdir ./-p
1.62 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.86 paf 228: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.62 paf 229:
230: # Sed expression to map a string onto a valid variable name.
1.86 paf 231: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.62 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.128 moko 243: lt_ltdl_dir='src/lib/ltdl'
244:
245: SHELL=${CONFIG_SHELL-/bin/sh}
246:
247: lt_dlopen_dir="$lt_ltdl_dir"
248:
1.1 paf 249:
1.62 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 paf 260: ac_default_prefix=/usr/local
1.62 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.128 moko 274: PACKAGE_NAME='parser'
275: PACKAGE_TARNAME='parser'
276: PACKAGE_VERSION='3.4.2b'
277: PACKAGE_STRING='parser 3.4.2b'
278: PACKAGE_BUGREPORT=''
1.62 paf 279:
280: ac_unique_file="README"
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:
1.128 moko 318: ac_subdirs_all="$ac_subdirs_all src/lib/ltdl"
1.132 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 P3S build build_cpu build_vendor build_os host host_cpu host_vendor host_os YACC CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE dll_extension GC_LIBS PCRE_INCLUDES PCRE_LIBS XML_INCLUDES XML_LIBS MIME_INCLUDES MIME_LIBS APACHE APACHE_INC APACHE_CFLAGS COMPILE_APACHE_MODULE_TRUE COMPILE_APACHE_MODULE_FALSE AS ac_ct_AS DLLTOOL ac_ct_DLLTOOL OBJDUMP ac_ct_OBJDUMP LIBTOOL 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.62 paf 320: ac_subst_files=''
1.1 paf 321:
322: # Initialize some variables set by options.
1.62 paf 323: ac_init_help=
324: ac_init_version=false
1.1 paf 325: # The variables have the same names as the options, with
326: # dashes changed to underlines.
1.62 paf 327: cache_file=/dev/null
1.1 paf 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.62 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 paf 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.62 paf 370: ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
1.1 paf 371:
372: # Accept the important Cygnus configure options, so we can diagnose typos.
373:
1.62 paf 374: case $ac_option in
1.1 paf 375:
376: -bindir | --bindir | --bindi | --bind | --bin | --bi)
377: ac_prev=bindir ;;
378: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1.62 paf 379: bindir=$ac_optarg ;;
1.1 paf 380:
381: -build | --build | --buil | --bui | --bu)
1.62 paf 382: ac_prev=build_alias ;;
1.1 paf 383: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1.62 paf 384: build_alias=$ac_optarg ;;
1.1 paf 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.62 paf 391: cache_file=$ac_optarg ;;
392:
393: --config-cache | -C)
394: cache_file=config.cache ;;
1.1 paf 395:
396: -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
397: ac_prev=datadir ;;
398: -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
399: | --da=*)
1.62 paf 400: datadir=$ac_optarg ;;
1.1 paf 401:
402: -disable-* | --disable-*)
1.62 paf 403: ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1 paf 404: # Reject names that are not valid shell variable names.
1.62 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 paf 410:
411: -enable-* | --enable-*)
1.62 paf 412: ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1 paf 413: # Reject names that are not valid shell variable names.
1.62 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 paf 420: *) ac_optarg=yes ;;
421: esac
1.62 paf 422: eval "enable_$ac_feature='$ac_optarg'" ;;
1.1 paf 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.62 paf 431: exec_prefix=$ac_optarg ;;
1.1 paf 432:
433: -gas | --gas | --ga | --g)
434: # Obsolete; use --with-gas.
435: with_gas=yes ;;
436:
1.62 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 paf 443:
444: -host | --host | --hos | --ho)
1.62 paf 445: ac_prev=host_alias ;;
1.1 paf 446: -host=* | --host=* | --hos=* | --ho=*)
1.62 paf 447: host_alias=$ac_optarg ;;
1.1 paf 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.62 paf 454: includedir=$ac_optarg ;;
1.1 paf 455:
456: -infodir | --infodir | --infodi | --infod | --info | --inf)
457: ac_prev=infodir ;;
458: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1.62 paf 459: infodir=$ac_optarg ;;
1.1 paf 460:
461: -libdir | --libdir | --libdi | --libd)
462: ac_prev=libdir ;;
463: -libdir=* | --libdir=* | --libdi=* | --libd=*)
1.62 paf 464: libdir=$ac_optarg ;;
1.1 paf 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.62 paf 471: libexecdir=$ac_optarg ;;
1.1 paf 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.62 paf 480: localstatedir=$ac_optarg ;;
1.1 paf 481:
482: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
483: ac_prev=mandir ;;
484: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1.62 paf 485: mandir=$ac_optarg ;;
1.1 paf 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.62 paf 492: | --no-cr | --no-c | -n)
1.1 paf 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.62 paf 506: oldincludedir=$ac_optarg ;;
1.1 paf 507:
508: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
509: ac_prev=prefix ;;
510: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1.62 paf 511: prefix=$ac_optarg ;;
1.1 paf 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.62 paf 518: program_prefix=$ac_optarg ;;
1.1 paf 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.62 paf 525: program_suffix=$ac_optarg ;;
1.1 paf 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.62 paf 542: program_transform_name=$ac_optarg ;;
1.1 paf 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.62 paf 552: sbindir=$ac_optarg ;;
1.1 paf 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.62 paf 563: sharedstatedir=$ac_optarg ;;
1.1 paf 564:
565: -site | --site | --sit)
566: ac_prev=site ;;
567: -site=* | --site=* | --sit=*)
1.62 paf 568: site=$ac_optarg ;;
1.1 paf 569:
570: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
571: ac_prev=srcdir ;;
572: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1.62 paf 573: srcdir=$ac_optarg ;;
1.1 paf 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.62 paf 580: sysconfdir=$ac_optarg ;;
1.1 paf 581:
582: -target | --target | --targe | --targ | --tar | --ta | --t)
1.62 paf 583: ac_prev=target_alias ;;
1.1 paf 584: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1.62 paf 585: target_alias=$ac_optarg ;;
1.1 paf 586:
587: -v | -verbose | --verbose | --verbos | --verbo | --verb)
588: verbose=yes ;;
589:
1.62 paf 590: -version | --version | --versio | --versi | --vers | -V)
591: ac_init_version=: ;;
1.1 paf 592:
593: -with-* | --with-*)
1.62 paf 594: ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1 paf 595: # Reject names that are not valid shell variable names.
1.62 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 paf 599: ac_package=`echo $ac_package| sed 's/-/_/g'`
1.62 paf 600: case $ac_option in
601: *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
1.1 paf 602: *) ac_optarg=yes ;;
603: esac
1.62 paf 604: eval "with_$ac_package='$ac_optarg'" ;;
1.1 paf 605:
606: -without-* | --without-*)
1.62 paf 607: ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1 paf 608: # Reject names that are not valid shell variable names.
1.62 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 paf 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.62 paf 624: x_includes=$ac_optarg ;;
1.1 paf 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.62 paf 631: x_libraries=$ac_optarg ;;
1.1 paf 632:
1.62 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 paf 636: ;;
637:
1.62 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 paf 648: *)
1.62 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 paf 654: ;;
655:
656: esac
657: done
658:
659: if test -n "$ac_prev"; then
1.62 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 paf 663: fi
664:
1.62 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 paf 675:
1.62 paf 676: # Be sure to have absolute paths.
677: for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
1.86 paf 678: localstatedir libdir includedir oldincludedir infodir mandir
1.1 paf 679: do
1.62 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 paf 685: esac
686: done
687:
1.62 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 paf 708:
1.62 paf 709: test "$silent" = yes && exec 6>/dev/null
1.1 paf 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.62 paf 716: ac_confdir=`(dirname "$0") 2>/dev/null ||
717: $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 718: X"$0" : 'X\(//\)[^/]' \| \
719: X"$0" : 'X\(//\)$' \| \
720: X"$0" : 'X\(/\)' \| \
721: . : '\(.\)' 2>/dev/null ||
1.62 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 paf 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.62 paf 737: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
738: { (exit 1); exit 1; }; }
1.1 paf 739: else
1.62 paf 740: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
741: { (exit 1); exit 1; }; }
1.1 paf 742: fi
743: fi
1.62 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
1.66 paf 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
1.62 paf 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.66 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.128 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.62 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.128 moko 800: \`configure' configures parser 3.4.2b to adapt to many kinds of systems.
1.62 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.86 paf 825: [$ac_default_prefix]
1.62 paf 826: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1.86 paf 827: [PREFIX]
1.62 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.128 moko 865: case $ac_init_help in
866: short | recursive ) echo "Configuration of parser 3.4.2b:";;
867: esac
1.62 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.86 paf 873: --disable-dependency-tracking speeds up one-time build
874: --enable-dependency-tracking do not reject slow dependency extractors
1.67 paf 875: --disable-safe-mode to enable reading and executing
1.62 paf 876: files belonging to group+user other then effective
1.94 misha 877: --disable-execs to disable any execs
1.62 paf 878: (file::exec, file::cgi, unix mail:send)
1.94 misha 879: --disable-stringstream to disable stringstream usage.
880: when disabled table.save use more memory but it's safer on freebsd 4.x
1.128 moko 881: --enable-shared[=PKGS]
882: build shared libraries [default=yes]
1.138 moko 883: --enable-static[=PKGS]
884: build static libraries [default=yes]
1.128 moko 885: --enable-fast-install[=PKGS]
886: optimize for fast installation [default=yes]
887: --disable-libtool-lock avoid locking (might break parallel builds)
888: --enable-ltdl-install install libltdl
1.62 paf 889:
890: Optional Packages:
891: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
892: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1.71 paf 893: --with-build-warnings to enable build-time compiler warnings if gcc is used
1.67 paf 894: --with-assertions to enable assertions
1.62 paf 895: --with-pathlink=LKEY put dynamic libraries paths to binary
896: using linker key (-R, -rpath-link)
1.128 moko 897: --with-sjlj-exceptions enable simple 'throw' from dynamic library
1.67 paf 898: --with-shared-gc=D D is the directory where
899: Boehm garbage collecting library is installed (shared lib)
900: --with-static-gc=D D is the directory where
901: Boehm garbage collecting library is installed (static lib)
1.119 misha 902: --with-static-pcre=D D is the directory where
1.100 misha 903: PCRE library is installed (static lib)
1.62 paf 904: --with-shared-xml=D D is the directory where
905: Gnome XML libraries are installed (shared libs)
906: --with-static-xml=D D is the directory where
907: Gnome XML libraries are installed (static libs)
1.90 paf 908: --with-glib-config=FILE FILE is glib library
909: configuration file (search for glib*-config)
1.62 paf 910: --with-shared-mailreceive=D is the directory where
1.67 paf 911: Gnome MIME library is installed (shared lib)
1.62 paf 912: --with-static-mailreceive=D is the directory where
913: Gnome MIME library is installed (static lib)
914: \"--with-sendmail=COMMAND\" forces this command to send mail.
915: example: \"--with-sendmail=/usr/sbin/sendmail -t\"
916: (makes parser ignore user-defined sendmail commands)
1.122 moko 917: --with-apache=FILE is the full path for APXS
918: builds apache DSO module using apxs
1.128 moko 919: --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
920: both]
921: --with-gnu-ld assume the C compiler uses GNU ld [default=no]
922: --with-sysroot=DIR Search for dependent libraries within DIR
923: (or the compiler's sysroot if not specified).
924: --with-included-ltdl use the GNU ltdl sources included here
925: --with-ltdl-include=DIR use the ltdl headers installed in DIR
926: --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1.62 paf 927:
928: Some influential environment variables:
1.66 paf 929: CXX C++ compiler command
930: CXXFLAGS C++ compiler flags
1.62 paf 931: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
932: nonstandard directory <lib dir>
933: CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
934: headers in a nonstandard directory <include dir>
1.66 paf 935: CC C compiler command
936: CFLAGS C compiler flags
937: CPP C preprocessor
1.128 moko 938: CXXCPP C++ preprocessor
1.62 paf 939:
940: Use these variables to override the choices made by `configure' or to help
941: it to find libraries and programs with nonstandard names/locations.
942:
943: _ACEOF
944: fi
945:
946: if test "$ac_init_help" = "recursive"; then
947: # If there are subdirs, report their specific --help.
948: ac_popdir=`pwd`
949: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
950: test -d $ac_dir || continue
951: ac_builddir=.
952:
953: if test "$ac_dir" != .; then
954: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
955: # A "../" for each directory in $ac_dir_suffix.
956: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
957: else
958: ac_dir_suffix= ac_top_builddir=
959: fi
960:
961: case $srcdir in
962: .) # No --srcdir option. We are building in place.
963: ac_srcdir=.
964: if test -z "$ac_top_builddir"; then
965: ac_top_srcdir=.
966: else
967: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
968: fi ;;
969: [\\/]* | ?:[\\/]* ) # Absolute path.
970: ac_srcdir=$srcdir$ac_dir_suffix;
971: ac_top_srcdir=$srcdir ;;
972: *) # Relative path.
973: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
974: ac_top_srcdir=$ac_top_builddir$srcdir ;;
975: esac
1.86 paf 976:
977: # Do not use `cd foo && pwd` to compute absolute paths, because
978: # the directories may not exist.
979: case `pwd` in
980: .) ac_abs_builddir="$ac_dir";;
981: *)
982: case "$ac_dir" in
983: .) ac_abs_builddir=`pwd`;;
984: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
985: *) ac_abs_builddir=`pwd`/"$ac_dir";;
986: esac;;
987: esac
988: case $ac_abs_builddir in
989: .) ac_abs_top_builddir=${ac_top_builddir}.;;
990: *)
991: case ${ac_top_builddir}. in
992: .) ac_abs_top_builddir=$ac_abs_builddir;;
993: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
994: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
995: esac;;
996: esac
997: case $ac_abs_builddir in
998: .) ac_abs_srcdir=$ac_srcdir;;
999: *)
1000: case $ac_srcdir in
1001: .) ac_abs_srcdir=$ac_abs_builddir;;
1002: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1003: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1004: esac;;
1005: esac
1006: case $ac_abs_builddir in
1007: .) ac_abs_top_srcdir=$ac_top_srcdir;;
1008: *)
1009: case $ac_top_srcdir in
1010: .) ac_abs_top_srcdir=$ac_abs_builddir;;
1011: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1012: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1013: esac;;
1014: esac
1.62 paf 1015:
1016: cd $ac_dir
1017: # Check for guested configure; otherwise get Cygnus style configure.
1018: if test -f $ac_srcdir/configure.gnu; then
1019: echo
1020: $SHELL $ac_srcdir/configure.gnu --help=recursive
1021: elif test -f $ac_srcdir/configure; then
1022: echo
1023: $SHELL $ac_srcdir/configure --help=recursive
1024: elif test -f $ac_srcdir/configure.ac ||
1.86 paf 1025: test -f $ac_srcdir/configure.in; then
1.62 paf 1026: echo
1027: $ac_configure --help
1028: else
1029: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1030: fi
1031: cd $ac_popdir
1032: done
1033: fi
1034:
1035: test -n "$ac_init_help" && exit 0
1036: if $ac_init_version; then
1037: cat <<\_ACEOF
1.128 moko 1038: parser configure 3.4.2b
1039: generated by GNU Autoconf 2.59
1.62 paf 1040:
1.86 paf 1041: Copyright (C) 2003 Free Software Foundation, Inc.
1.62 paf 1042: This configure script is free software; the Free Software Foundation
1043: gives unlimited permission to copy, distribute and modify it.
1044: _ACEOF
1045: exit 0
1046: fi
1047: exec 5>config.log
1048: cat >&5 <<_ACEOF
1049: This file contains any messages produced by compilers while
1050: running configure, to aid debugging if configure makes a mistake.
1051:
1.128 moko 1052: It was created by parser $as_me 3.4.2b, which was
1.86 paf 1053: generated by GNU Autoconf 2.59. Invocation command line was
1.62 paf 1054:
1055: $ $0 $@
1056:
1057: _ACEOF
1058: {
1059: cat <<_ASUNAME
1060: ## --------- ##
1061: ## Platform. ##
1062: ## --------- ##
1063:
1064: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1065: uname -m = `(uname -m) 2>/dev/null || echo unknown`
1066: uname -r = `(uname -r) 2>/dev/null || echo unknown`
1067: uname -s = `(uname -s) 2>/dev/null || echo unknown`
1068: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1069:
1070: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1071: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1072:
1073: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1074: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1075: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1076: hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1077: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1078: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1079: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1080:
1081: _ASUNAME
1082:
1083: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1084: for as_dir in $PATH
1085: do
1086: IFS=$as_save_IFS
1087: test -z "$as_dir" && as_dir=.
1088: echo "PATH: $as_dir"
1089: done
1.1 paf 1090:
1.62 paf 1091: } >&5
1092:
1093: cat >&5 <<_ACEOF
1094:
1095:
1096: ## ----------- ##
1097: ## Core tests. ##
1098: ## ----------- ##
1099:
1100: _ACEOF
1101:
1102:
1103: # Keep a trace of the command line.
1104: # Strip out --no-create and --no-recursion so they do not pile up.
1105: # Strip out --silent because we don't want to record it for future runs.
1106: # Also quote any args containing shell meta-characters.
1107: # Make two passes to allow for proper duplicate-argument suppression.
1108: ac_configure_args=
1109: ac_configure_args0=
1110: ac_configure_args1=
1111: ac_sep=
1112: ac_must_keep_next=false
1113: for ac_pass in 1 2
1114: do
1115: for ac_arg
1116: do
1117: case $ac_arg in
1118: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1119: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1120: | -silent | --silent | --silen | --sile | --sil)
1121: continue ;;
1122: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1123: ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1124: esac
1125: case $ac_pass in
1126: 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1127: 2)
1128: ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1129: if test $ac_must_keep_next = true; then
1.86 paf 1130: ac_must_keep_next=false # Got value, back to normal.
1.62 paf 1131: else
1.86 paf 1132: case $ac_arg in
1133: *=* | --config-cache | -C | -disable-* | --disable-* \
1134: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1135: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1136: | -with-* | --with-* | -without-* | --without-* | --x)
1137: case "$ac_configure_args0 " in
1138: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1139: esac
1140: ;;
1141: -* ) ac_must_keep_next=true ;;
1142: esac
1.62 paf 1143: fi
1144: ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1145: # Get rid of the leading space.
1146: ac_sep=" "
1147: ;;
1148: esac
1149: done
1150: done
1151: $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1152: $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1153:
1154: # When interrupted or exit'd, cleanup temporary files, and complete
1155: # config.log. We remove comments because anyway the quotes in there
1156: # would cause problems or look ugly.
1157: # WARNING: Be sure not to use single quotes in there, as some shells,
1158: # such as our DU 5.0 friend, will then `close' the trap.
1159: trap 'exit_status=$?
1160: # Save into config.log some information that might help in debugging.
1161: {
1162: echo
1163:
1164: cat <<\_ASBOX
1165: ## ---------------- ##
1166: ## Cache variables. ##
1167: ## ---------------- ##
1168: _ASBOX
1169: echo
1170: # The following way of writing the cache mishandles newlines in values,
1171: {
1172: (set) 2>&1 |
1173: case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1174: *ac_space=\ *)
1175: sed -n \
1.86 paf 1176: "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1177: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1.62 paf 1178: ;;
1179: *)
1180: sed -n \
1.86 paf 1181: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1.62 paf 1182: ;;
1183: esac;
1184: }
1185: echo
1186:
1187: cat <<\_ASBOX
1188: ## ----------------- ##
1189: ## Output variables. ##
1190: ## ----------------- ##
1191: _ASBOX
1192: echo
1193: for ac_var in $ac_subst_vars
1194: do
1195: eval ac_val=$`echo $ac_var`
1196: echo "$ac_var='"'"'$ac_val'"'"'"
1197: done | sort
1198: echo
1199:
1200: if test -n "$ac_subst_files"; then
1201: cat <<\_ASBOX
1202: ## ------------- ##
1203: ## Output files. ##
1204: ## ------------- ##
1205: _ASBOX
1206: echo
1207: for ac_var in $ac_subst_files
1208: do
1209: eval ac_val=$`echo $ac_var`
1.86 paf 1210: echo "$ac_var='"'"'$ac_val'"'"'"
1.62 paf 1211: done | sort
1212: echo
1213: fi
1214:
1215: if test -s confdefs.h; then
1216: cat <<\_ASBOX
1217: ## ----------- ##
1218: ## confdefs.h. ##
1219: ## ----------- ##
1220: _ASBOX
1221: echo
1222: sed "/^$/d" confdefs.h | sort
1223: echo
1224: fi
1225: test "$ac_signal" != 0 &&
1226: echo "$as_me: caught signal $ac_signal"
1227: echo "$as_me: exit $exit_status"
1228: } >&5
1.86 paf 1229: rm -f core *.core &&
1.62 paf 1230: rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1231: exit $exit_status
1232: ' 0
1233: for ac_signal in 1 2 13 15; do
1234: trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1235: done
1236: ac_signal=0
1237:
1238: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1239: rm -rf conftest* confdefs.h
1240: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1241: echo >confdefs.h
1242:
1243: # Predefined preprocessor variables.
1244:
1245: cat >>confdefs.h <<_ACEOF
1246: #define PACKAGE_NAME "$PACKAGE_NAME"
1247: _ACEOF
1248:
1249:
1250: cat >>confdefs.h <<_ACEOF
1251: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1252: _ACEOF
1253:
1254:
1255: cat >>confdefs.h <<_ACEOF
1256: #define PACKAGE_VERSION "$PACKAGE_VERSION"
1257: _ACEOF
1258:
1259:
1260: cat >>confdefs.h <<_ACEOF
1261: #define PACKAGE_STRING "$PACKAGE_STRING"
1262: _ACEOF
1263:
1264:
1265: cat >>confdefs.h <<_ACEOF
1266: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1267: _ACEOF
1268:
1269:
1270: # Let the site file select an alternate cache file if it wants to.
1.1 paf 1271: # Prefer explicitly selected file to automatically selected ones.
1272: if test -z "$CONFIG_SITE"; then
1273: if test "x$prefix" != xNONE; then
1274: CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1275: else
1276: CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1277: fi
1278: fi
1279: for ac_site_file in $CONFIG_SITE; do
1280: if test -r "$ac_site_file"; then
1.62 paf 1281: { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1282: echo "$as_me: loading site script $ac_site_file" >&6;}
1283: sed 's/^/| /' "$ac_site_file" >&5
1.1 paf 1284: . "$ac_site_file"
1285: fi
1286: done
1287:
1288: if test -r "$cache_file"; then
1.62 paf 1289: # Some versions of bash will fail to source /dev/null (special
1290: # files actually), so we avoid doing that.
1291: if test -f "$cache_file"; then
1292: { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1293: echo "$as_me: loading cache $cache_file" >&6;}
1294: case $cache_file in
1295: [\\/]* | ?:[\\/]* ) . $cache_file;;
1296: *) . ./$cache_file;;
1297: esac
1298: fi
1.1 paf 1299: else
1.62 paf 1300: { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1301: echo "$as_me: creating cache $cache_file" >&6;}
1302: >$cache_file
1303: fi
1304:
1305: # Check that the precious variables saved in the cache have kept the same
1306: # value.
1307: ac_cache_corrupted=false
1308: for ac_var in `(set) 2>&1 |
1.86 paf 1309: sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1.62 paf 1310: eval ac_old_set=\$ac_cv_env_${ac_var}_set
1311: eval ac_new_set=\$ac_env_${ac_var}_set
1312: eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1313: eval ac_new_val="\$ac_env_${ac_var}_value"
1314: case $ac_old_set,$ac_new_set in
1315: set,)
1316: { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1317: echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1318: ac_cache_corrupted=: ;;
1319: ,set)
1320: { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1321: echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1322: ac_cache_corrupted=: ;;
1323: ,);;
1324: *)
1325: if test "x$ac_old_val" != "x$ac_new_val"; then
1.86 paf 1326: { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1.62 paf 1327: echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1.86 paf 1328: { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1.62 paf 1329: echo "$as_me: former value: $ac_old_val" >&2;}
1.86 paf 1330: { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1.62 paf 1331: echo "$as_me: current value: $ac_new_val" >&2;}
1.86 paf 1332: ac_cache_corrupted=:
1.62 paf 1333: fi;;
1334: esac
1335: # Pass precious variables to config.status.
1336: if test "$ac_new_set" = set; then
1337: case $ac_new_val in
1338: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1339: ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1340: *) ac_arg=$ac_var=$ac_new_val ;;
1341: esac
1342: case " $ac_configure_args " in
1343: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1344: *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1345: esac
1346: fi
1347: done
1348: if $ac_cache_corrupted; then
1349: { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1350: echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1351: { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1352: echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1353: { (exit 1); exit 1; }; }
1.1 paf 1354: fi
1355:
1356: ac_ext=c
1357: ac_cpp='$CPP $CPPFLAGS'
1.62 paf 1358: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1359: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1360: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1361:
1362:
1363:
1364:
1365:
1366:
1367:
1368:
1369:
1370:
1371:
1.1 paf 1372:
1373:
1.62 paf 1374:
1375:
1376:
1377:
1378:
1379:
1.63 paf 1380:
1381:
1.128 moko 1382:
1383:
1384:
1385:
1386:
1387:
1388:
1389:
1390:
1.86 paf 1391: am__api_version="1.9"
1.1 paf 1392: ac_aux_dir=
1393: for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1394: if test -f $ac_dir/install-sh; then
1395: ac_aux_dir=$ac_dir
1396: ac_install_sh="$ac_aux_dir/install-sh -c"
1397: break
1398: elif test -f $ac_dir/install.sh; then
1399: ac_aux_dir=$ac_dir
1400: ac_install_sh="$ac_aux_dir/install.sh -c"
1401: break
1.62 paf 1402: elif test -f $ac_dir/shtool; then
1403: ac_aux_dir=$ac_dir
1404: ac_install_sh="$ac_aux_dir/shtool install -c"
1405: break
1.1 paf 1406: fi
1407: done
1408: if test -z "$ac_aux_dir"; then
1.62 paf 1409: { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1410: echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1411: { (exit 1); exit 1; }; }
1412: fi
1413: ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1414: ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1415: ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1.1 paf 1416:
1417: # Find a good install program. We prefer a C program (faster),
1418: # so one script is as good as another. But avoid the broken or
1419: # incompatible versions:
1420: # SysV /etc/install, /usr/sbin/install
1421: # SunOS /usr/etc/install
1422: # IRIX /sbin/install
1423: # AIX /bin/install
1.62 paf 1424: # AmigaOS /C/install, which installs bootblocks on floppy discs
1.1 paf 1425: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1426: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1427: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1.86 paf 1428: # OS/2's system install, which has a completely different semantic
1.1 paf 1429: # ./install, which can be erroneously created by make from ./install.sh.
1.62 paf 1430: echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1431: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1.1 paf 1432: if test -z "$INSTALL"; then
1.62 paf 1433: if test "${ac_cv_path_install+set}" = set; then
1434: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 1435: else
1.62 paf 1436: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1437: for as_dir in $PATH
1438: do
1439: IFS=$as_save_IFS
1440: test -z "$as_dir" && as_dir=.
1441: # Account for people who put trailing slashes in PATH elements.
1442: case $as_dir/ in
1443: ./ | .// | /cC/* | \
1444: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.86 paf 1445: ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1.62 paf 1446: /usr/ucb/* ) ;;
1447: *)
1448: # OSF1 and SCO ODT 3.0 have their own names for install.
1449: # Don't use installbsd from OSF since it installs stuff as root
1450: # by default.
1451: for ac_prog in ginstall scoinst install; do
1452: for ac_exec_ext in '' $ac_executable_extensions; do
1.86 paf 1453: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1454: if test $ac_prog = install &&
1455: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1456: # AIX install. It has an incompatible calling convention.
1457: :
1458: elif test $ac_prog = install &&
1459: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1460: # program-specific install script used by HP pwplus--don't use.
1461: :
1462: else
1463: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1464: break 3
1465: fi
1466: fi
1.1 paf 1467: done
1.62 paf 1468: done
1469: ;;
1470: esac
1471: done
1472:
1.1 paf 1473:
1474: fi
1475: if test "${ac_cv_path_install+set}" = set; then
1.62 paf 1476: INSTALL=$ac_cv_path_install
1.1 paf 1477: else
1478: # As a last resort, use the slow shell script. We don't cache a
1479: # path for INSTALL within a source directory, because that will
1480: # break other packages using the cache if that directory is
1481: # removed, or if the path is relative.
1.62 paf 1482: INSTALL=$ac_install_sh
1.1 paf 1483: fi
1484: fi
1.62 paf 1485: echo "$as_me:$LINENO: result: $INSTALL" >&5
1486: echo "${ECHO_T}$INSTALL" >&6
1.1 paf 1487:
1488: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1489: # It thinks the first close brace ends the variable substitution.
1490: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1491:
1.62 paf 1492: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.1 paf 1493:
1494: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1495:
1.62 paf 1496: echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1497: echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1.1 paf 1498: # Just in case
1499: sleep 1
1.62 paf 1500: echo timestamp > conftest.file
1.1 paf 1501: # Do `set' in a subshell so we don't clobber the current shell's
1502: # arguments. Must try -L first in case configure is actually a
1503: # symlink; some systems play weird games with the mod time of symlinks
1504: # (eg FreeBSD returns the mod time of the symlink's containing
1505: # directory).
1506: if (
1.62 paf 1507: set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1.1 paf 1508: if test "$*" = "X"; then
1509: # -L didn't work.
1.62 paf 1510: set X `ls -t $srcdir/configure conftest.file`
1.1 paf 1511: fi
1.62 paf 1512: rm -f conftest.file
1513: if test "$*" != "X $srcdir/configure conftest.file" \
1514: && test "$*" != "X conftest.file $srcdir/configure"; then
1.1 paf 1515:
1516: # If neither matched, then we have a broken ls. This can happen
1517: # if, for instance, CONFIG_SHELL is bash and it inherits a
1518: # broken ls alias from the environment. This has actually
1519: # happened. Such a system could not be considered "sane".
1.62 paf 1520: { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1521: alias in your environment" >&5
1522: echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1523: alias in your environment" >&2;}
1524: { (exit 1); exit 1; }; }
1.1 paf 1525: fi
1526:
1.62 paf 1527: test "$2" = conftest.file
1.1 paf 1528: )
1529: then
1530: # Ok.
1531: :
1532: else
1.62 paf 1533: { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1534: Check your system clock" >&5
1535: echo "$as_me: error: newly created file is older than distributed files!
1536: Check your system clock" >&2;}
1537: { (exit 1); exit 1; }; }
1.1 paf 1538: fi
1.62 paf 1539: echo "$as_me:$LINENO: result: yes" >&5
1540: echo "${ECHO_T}yes" >&6
1.1 paf 1541: test "$program_prefix" != NONE &&
1.62 paf 1542: program_transform_name="s,^,$program_prefix,;$program_transform_name"
1.1 paf 1543: # Use a double $ so make ignores it.
1544: test "$program_suffix" != NONE &&
1.62 paf 1545: program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1546: # Double any \ or $. echo might interpret backslashes.
1547: # By default was `s,x,x', remove it if useless.
1548: cat <<\_ACEOF >conftest.sed
1549: s/[\\$]/&&/g;s/;s,x,x,$//
1550: _ACEOF
1551: program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1552: rm conftest.sed
1553:
1554: # expand $ac_aux_dir to an absolute path
1555: am_aux_dir=`cd $ac_aux_dir && pwd`
1556:
1557: test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1558: # Use eval to expand $SHELL
1559: if eval "$MISSING --run true"; then
1560: am_missing_run="$MISSING --run "
1561: else
1562: am_missing_run=
1563: { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1564: echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1565: fi
1566:
1.86 paf 1567: if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1568: # We used to keeping the `.' as first argument, in order to
1569: # allow $(mkdir_p) to be used without argument. As in
1570: # $(mkdir_p) $(somedir)
1571: # where $(somedir) is conditionally defined. However this is wrong
1572: # for two reasons:
1573: # 1. if the package is installed by a user who cannot write `.'
1574: # make install will fail,
1575: # 2. the above comment should most certainly read
1576: # $(mkdir_p) $(DESTDIR)$(somedir)
1577: # so it does not work when $(somedir) is undefined and
1578: # $(DESTDIR) is not.
1579: # To support the latter case, we have to write
1580: # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1581: # so the `.' trick is pointless.
1582: mkdir_p='mkdir -p --'
1583: else
1584: # On NextStep and OpenStep, the `mkdir' command does not
1585: # recognize any option. It will interpret all options as
1586: # directories to create, and then abort because `.' already
1587: # exists.
1588: for d in ./-p ./--version;
1589: do
1590: test -d $d && rmdir $d
1591: done
1592: # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1593: if test -f "$ac_aux_dir/mkinstalldirs"; then
1594: mkdir_p='$(mkinstalldirs)'
1595: else
1596: mkdir_p='$(install_sh) -d'
1597: fi
1598: fi
1599:
1.62 paf 1600: for ac_prog in gawk mawk nawk awk
1601: do
1602: # Extract the first word of "$ac_prog", so it can be a program name with args.
1603: set dummy $ac_prog; ac_word=$2
1604: echo "$as_me:$LINENO: checking for $ac_word" >&5
1605: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1606: if test "${ac_cv_prog_AWK+set}" = set; then
1607: echo $ECHO_N "(cached) $ECHO_C" >&6
1608: else
1609: if test -n "$AWK"; then
1610: ac_cv_prog_AWK="$AWK" # Let the user override the test.
1611: else
1612: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1613: for as_dir in $PATH
1614: do
1615: IFS=$as_save_IFS
1616: test -z "$as_dir" && as_dir=.
1617: for ac_exec_ext in '' $ac_executable_extensions; do
1618: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1619: ac_cv_prog_AWK="$ac_prog"
1620: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1621: break 2
1622: fi
1623: done
1624: done
1625:
1626: fi
1627: fi
1628: AWK=$ac_cv_prog_AWK
1629: if test -n "$AWK"; then
1630: echo "$as_me:$LINENO: result: $AWK" >&5
1631: echo "${ECHO_T}$AWK" >&6
1632: else
1633: echo "$as_me:$LINENO: result: no" >&5
1634: echo "${ECHO_T}no" >&6
1635: fi
1.1 paf 1636:
1.62 paf 1637: test -n "$AWK" && break
1638: done
1.1 paf 1639:
1.62 paf 1640: echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1641: echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1.86 paf 1642: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1.62 paf 1643: if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1644: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 1645: else
1.62 paf 1646: cat >conftest.make <<\_ACEOF
1.1 paf 1647: all:
1.62 paf 1648: @echo 'ac_maketemp="$(MAKE)"'
1649: _ACEOF
1.1 paf 1650: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1.62 paf 1651: eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1.1 paf 1652: if test -n "$ac_maketemp"; then
1653: eval ac_cv_prog_make_${ac_make}_set=yes
1654: else
1655: eval ac_cv_prog_make_${ac_make}_set=no
1656: fi
1.62 paf 1657: rm -f conftest.make
1.1 paf 1658: fi
1659: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1.62 paf 1660: echo "$as_me:$LINENO: result: yes" >&5
1661: echo "${ECHO_T}yes" >&6
1.1 paf 1662: SET_MAKE=
1663: else
1.62 paf 1664: echo "$as_me:$LINENO: result: no" >&5
1665: echo "${ECHO_T}no" >&6
1.1 paf 1666: SET_MAKE="MAKE=${MAKE-make}"
1667: fi
1668:
1.86 paf 1669: rm -rf .tst 2>/dev/null
1670: mkdir .tst 2>/dev/null
1671: if test -d .tst; then
1672: am__leading_dot=.
1673: else
1674: am__leading_dot=_
1675: fi
1676: rmdir .tst 2>/dev/null
1677:
1678: # test to see if srcdir already configured
1.62 paf 1679: if test "`cd $srcdir && pwd`" != "`pwd`" &&
1680: test -f $srcdir/config.status; then
1681: { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1682: echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1683: { (exit 1); exit 1; }; }
1684: fi
1685:
1686: # test whether we have cygpath
1687: if test -z "$CYGPATH_W"; then
1688: if (cygpath --version) >/dev/null 2>/dev/null; then
1689: CYGPATH_W='cygpath -w'
1690: else
1691: CYGPATH_W=echo
1692: fi
1693: fi
1694:
1695:
1696: # Define the identity of the package.
1.128 moko 1697: PACKAGE='parser'
1698: VERSION='3.4.2b'
1699:
1700:
1701: cat >>confdefs.h <<_ACEOF
1702: #define PACKAGE "$PACKAGE"
1703: _ACEOF
1.1 paf 1704:
1705:
1.128 moko 1706: cat >>confdefs.h <<_ACEOF
1707: #define VERSION "$VERSION"
1708: _ACEOF
1709:
1.62 paf 1710: # Some tools Automake needs.
1711:
1712: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1713:
1714:
1715: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1716:
1717:
1718: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1719:
1720:
1721: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1722:
1723:
1724: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1.1 paf 1725:
1.62 paf 1726: install_sh=${install_sh-"$am_aux_dir/install-sh"}
1.1 paf 1727:
1.62 paf 1728: # Installed binaries are usually stripped using `strip' when the user
1729: # run `make install-strip'. However `strip' might not be the right
1730: # tool to use in cross-compilation environments, therefore Automake
1731: # will honor the `STRIP' environment variable to overrule this program.
1732: if test "$cross_compiling" != no; then
1733: if test -n "$ac_tool_prefix"; then
1734: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1735: set dummy ${ac_tool_prefix}strip; ac_word=$2
1736: echo "$as_me:$LINENO: checking for $ac_word" >&5
1737: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1738: if test "${ac_cv_prog_STRIP+set}" = set; then
1739: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 1740: else
1.62 paf 1741: if test -n "$STRIP"; then
1742: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1743: else
1744: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1745: for as_dir in $PATH
1746: do
1747: IFS=$as_save_IFS
1748: test -z "$as_dir" && as_dir=.
1749: for ac_exec_ext in '' $ac_executable_extensions; do
1750: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1751: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1752: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1753: break 2
1754: fi
1755: done
1756: done
1757:
1758: fi
1759: fi
1760: STRIP=$ac_cv_prog_STRIP
1761: if test -n "$STRIP"; then
1762: echo "$as_me:$LINENO: result: $STRIP" >&5
1763: echo "${ECHO_T}$STRIP" >&6
1764: else
1765: echo "$as_me:$LINENO: result: no" >&5
1766: echo "${ECHO_T}no" >&6
1.1 paf 1767: fi
1768:
1.62 paf 1769: fi
1770: if test -z "$ac_cv_prog_STRIP"; then
1771: ac_ct_STRIP=$STRIP
1772: # Extract the first word of "strip", so it can be a program name with args.
1773: set dummy strip; ac_word=$2
1774: echo "$as_me:$LINENO: checking for $ac_word" >&5
1775: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1776: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1777: echo $ECHO_N "(cached) $ECHO_C" >&6
1778: else
1779: if test -n "$ac_ct_STRIP"; then
1780: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1.1 paf 1781: else
1.62 paf 1782: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1783: for as_dir in $PATH
1784: do
1785: IFS=$as_save_IFS
1786: test -z "$as_dir" && as_dir=.
1787: for ac_exec_ext in '' $ac_executable_extensions; do
1788: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1789: ac_cv_prog_ac_ct_STRIP="strip"
1790: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1791: break 2
1792: fi
1793: done
1794: done
1795:
1796: test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1797: fi
1.1 paf 1798: fi
1.62 paf 1799: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1800: if test -n "$ac_ct_STRIP"; then
1801: echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1802: echo "${ECHO_T}$ac_ct_STRIP" >&6
1.1 paf 1803: else
1.62 paf 1804: echo "$as_me:$LINENO: result: no" >&5
1805: echo "${ECHO_T}no" >&6
1.1 paf 1806: fi
1807:
1.62 paf 1808: STRIP=$ac_ct_STRIP
1.1 paf 1809: else
1.62 paf 1810: STRIP="$ac_cv_prog_STRIP"
1.1 paf 1811: fi
1812:
1813: fi
1.62 paf 1814: INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1815:
1816: # We need awk for the "check" target. The system "awk" is bad on
1817: # some platforms.
1.86 paf 1818: # Always define AMTAR for backward compatibility.
1819:
1820: AMTAR=${AMTAR-"${am_missing_run}tar"}
1821:
1822: am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1823:
1824:
1.62 paf 1825:
1.1 paf 1826:
1827:
1828:
1.128 moko 1829:
1.12 paf 1830: P3S=`cd $srcdir/src ; pwd`
1.1 paf 1831:
1832:
1.128 moko 1833:
1.41 paf 1834: # Make sure we can run config.sub.
1.62 paf 1835: $ac_config_sub sun4 >/dev/null 2>&1 ||
1836: { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1837: echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1838: { (exit 1); exit 1; }; }
1839:
1840: echo "$as_me:$LINENO: checking build system type" >&5
1841: echo $ECHO_N "checking build system type... $ECHO_C" >&6
1842: if test "${ac_cv_build+set}" = set; then
1843: echo $ECHO_N "(cached) $ECHO_C" >&6
1844: else
1845: ac_cv_build_alias=$build_alias
1846: test -z "$ac_cv_build_alias" &&
1847: ac_cv_build_alias=`$ac_config_guess`
1848: test -z "$ac_cv_build_alias" &&
1849: { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1850: echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1851: { (exit 1); exit 1; }; }
1852: ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1853: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1854: echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1855: { (exit 1); exit 1; }; }
1856:
1857: fi
1858: echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1859: echo "${ECHO_T}$ac_cv_build" >&6
1860: build=$ac_cv_build
1861: build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1862: build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1863: build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1864:
1865:
1866: echo "$as_me:$LINENO: checking host system type" >&5
1867: echo $ECHO_N "checking host system type... $ECHO_C" >&6
1868: if test "${ac_cv_host+set}" = set; then
1869: echo $ECHO_N "(cached) $ECHO_C" >&6
1870: else
1871: ac_cv_host_alias=$host_alias
1872: test -z "$ac_cv_host_alias" &&
1873: ac_cv_host_alias=$ac_cv_build_alias
1874: ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1875: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1876: echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1877: { (exit 1); exit 1; }; }
1878:
1879: fi
1880: echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1881: echo "${ECHO_T}$ac_cv_host" >&6
1882: host=$ac_cv_host
1883: host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1884: host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1885: host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1.81 paf 1886:
1887:
1888:
1889: PARSER_VERSION="$VERSION (compiled on $host)"
1890: echo "/* automatically generated by configure */" > $srcdir/src/include/pa_version.h.new
1891: echo "/* edit configure.in to change version number */" >> $srcdir/src/include/pa_version.h.new
1892: echo "#define PARSER_VERSION \"$PARSER_VERSION\"" >> $srcdir/src/include/pa_version.h.new
1893: cmp $srcdir/src/include/pa_version.h.new $srcdir/src/include/pa_version.h >/dev/null 2>&1
1894: if test $? -ne 0 ; then
1895: rm -f $srcdir/src/include/pa_version.h && mv $srcdir/src/include/pa_version.h.new $srcdir/src/include/pa_version.h && \
1896: echo Updated $srcdir/src/include/pa_version.h
1897: else
1898: rm -f $srcdir/src/include/pa_version.h.new
1899: fi
1900:
1.41 paf 1901:
1.67 paf 1902: case $host_os in
1903: *cygwin* )
1904: cat >>confdefs.h <<\_ACEOF
1905: #define CYGWIN
1906: _ACEOF
1907: ;;
1908: esac
1.41 paf 1909:
1.128 moko 1910:
1.1 paf 1911: # Find a good install program. We prefer a C program (faster),
1912: # so one script is as good as another. But avoid the broken or
1913: # incompatible versions:
1914: # SysV /etc/install, /usr/sbin/install
1915: # SunOS /usr/etc/install
1916: # IRIX /sbin/install
1917: # AIX /bin/install
1.62 paf 1918: # AmigaOS /C/install, which installs bootblocks on floppy discs
1.1 paf 1919: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1920: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1921: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1.86 paf 1922: # OS/2's system install, which has a completely different semantic
1.1 paf 1923: # ./install, which can be erroneously created by make from ./install.sh.
1.62 paf 1924: echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1925: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1.1 paf 1926: if test -z "$INSTALL"; then
1.62 paf 1927: if test "${ac_cv_path_install+set}" = set; then
1928: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 1929: else
1.62 paf 1930: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1931: for as_dir in $PATH
1932: do
1933: IFS=$as_save_IFS
1934: test -z "$as_dir" && as_dir=.
1935: # Account for people who put trailing slashes in PATH elements.
1936: case $as_dir/ in
1937: ./ | .// | /cC/* | \
1938: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.86 paf 1939: ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1.62 paf 1940: /usr/ucb/* ) ;;
1941: *)
1942: # OSF1 and SCO ODT 3.0 have their own names for install.
1943: # Don't use installbsd from OSF since it installs stuff as root
1944: # by default.
1945: for ac_prog in ginstall scoinst install; do
1946: for ac_exec_ext in '' $ac_executable_extensions; do
1.86 paf 1947: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1948: if test $ac_prog = install &&
1949: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1950: # AIX install. It has an incompatible calling convention.
1951: :
1952: elif test $ac_prog = install &&
1953: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1954: # program-specific install script used by HP pwplus--don't use.
1955: :
1956: else
1957: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1958: break 3
1959: fi
1960: fi
1.1 paf 1961: done
1.62 paf 1962: done
1963: ;;
1964: esac
1965: done
1966:
1.1 paf 1967:
1968: fi
1969: if test "${ac_cv_path_install+set}" = set; then
1.62 paf 1970: INSTALL=$ac_cv_path_install
1.1 paf 1971: else
1972: # As a last resort, use the slow shell script. We don't cache a
1973: # path for INSTALL within a source directory, because that will
1974: # break other packages using the cache if that directory is
1975: # removed, or if the path is relative.
1.62 paf 1976: INSTALL=$ac_install_sh
1.1 paf 1977: fi
1978: fi
1.62 paf 1979: echo "$as_me:$LINENO: result: $INSTALL" >&5
1980: echo "${ECHO_T}$INSTALL" >&6
1.1 paf 1981:
1982: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1983: # It thinks the first close brace ends the variable substitution.
1984: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1985:
1.62 paf 1986: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.1 paf 1987:
1988: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1989:
1.62 paf 1990: for ac_prog in gawk mawk nawk awk
1.41 paf 1991: do
1.62 paf 1992: # Extract the first word of "$ac_prog", so it can be a program name with args.
1.41 paf 1993: set dummy $ac_prog; ac_word=$2
1.62 paf 1994: echo "$as_me:$LINENO: checking for $ac_word" >&5
1995: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1996: if test "${ac_cv_prog_AWK+set}" = set; then
1997: echo $ECHO_N "(cached) $ECHO_C" >&6
1.41 paf 1998: else
1999: if test -n "$AWK"; then
2000: ac_cv_prog_AWK="$AWK" # Let the user override the test.
2001: else
1.62 paf 2002: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2003: for as_dir in $PATH
2004: do
2005: IFS=$as_save_IFS
2006: test -z "$as_dir" && as_dir=.
2007: for ac_exec_ext in '' $ac_executable_extensions; do
2008: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2009: ac_cv_prog_AWK="$ac_prog"
2010: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2011: break 2
2012: fi
2013: done
2014: done
2015:
1.41 paf 2016: fi
2017: fi
1.62 paf 2018: AWK=$ac_cv_prog_AWK
1.41 paf 2019: if test -n "$AWK"; then
1.62 paf 2020: echo "$as_me:$LINENO: result: $AWK" >&5
2021: echo "${ECHO_T}$AWK" >&6
1.41 paf 2022: else
1.62 paf 2023: echo "$as_me:$LINENO: result: no" >&5
2024: echo "${ECHO_T}no" >&6
1.41 paf 2025: fi
2026:
1.62 paf 2027: test -n "$AWK" && break
1.41 paf 2028: done
2029:
2030:
2031: for ac_prog in 'bison -y' byacc
2032: do
1.62 paf 2033: # Extract the first word of "$ac_prog", so it can be a program name with args.
1.41 paf 2034: set dummy $ac_prog; ac_word=$2
1.62 paf 2035: echo "$as_me:$LINENO: checking for $ac_word" >&5
2036: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2037: if test "${ac_cv_prog_YACC+set}" = set; then
2038: echo $ECHO_N "(cached) $ECHO_C" >&6
1.41 paf 2039: else
2040: if test -n "$YACC"; then
2041: ac_cv_prog_YACC="$YACC" # Let the user override the test.
2042: else
1.62 paf 2043: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2044: for as_dir in $PATH
2045: do
2046: IFS=$as_save_IFS
2047: test -z "$as_dir" && as_dir=.
2048: for ac_exec_ext in '' $ac_executable_extensions; do
2049: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2050: ac_cv_prog_YACC="$ac_prog"
2051: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2052: break 2
2053: fi
2054: done
2055: done
2056:
1.41 paf 2057: fi
2058: fi
1.62 paf 2059: YACC=$ac_cv_prog_YACC
1.41 paf 2060: if test -n "$YACC"; then
1.62 paf 2061: echo "$as_me:$LINENO: result: $YACC" >&5
2062: echo "${ECHO_T}$YACC" >&6
1.41 paf 2063: else
1.62 paf 2064: echo "$as_me:$LINENO: result: no" >&5
2065: echo "${ECHO_T}no" >&6
1.41 paf 2066: fi
2067:
1.62 paf 2068: test -n "$YACC" && break
1.41 paf 2069: done
2070: test -n "$YACC" || YACC="yacc"
2071:
2072: if test "$YACC" != "bison -y"; then
1.67 paf 2073: { echo "$as_me:$LINENO: WARNING: to regenerate Parser grammar YOU WOULD NEED BISON" >&5
1.62 paf 2074: echo "$as_me: WARNING: to regenerate Parser grammar YOU WOULD NEED BISON" >&2;}
1.41 paf 2075: else
1.67 paf 2076: echo "$as_me:$LINENO: checking bison version" >&5
1.62 paf 2077: echo $ECHO_N "checking bison version... $ECHO_C" >&6
1.67 paf 2078: oldIFS=$IFS; IFS=.
2079: set `bison -V | sed -e 's/^GNU Bison version //' -e 's/^bison (GNU Bison) //' -e 's/$/./'`
2080: IFS=$oldIFS
2081: if test "$1" = "1" -a "$2" -lt "25"; then
2082: { echo "$as_me:$LINENO: WARNING: Bison 1.25 or newer needed to regenerate Parser compiler (found $1.$2)." >&5
1.62 paf 2083: echo "$as_me: WARNING: Bison 1.25 or newer needed to regenerate Parser compiler (found $1.$2)." >&2;}
1.67 paf 2084: fi
2085: echo "$as_me:$LINENO: result: $1.$2 (ok)" >&5
1.62 paf 2086: echo "${ECHO_T}$1.$2 (ok)" >&6
2087: fi
2088:
1.66 paf 2089: ac_ext=cc
2090: ac_cpp='$CXXCPP $CPPFLAGS'
2091: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2092: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2093: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1.62 paf 2094: if test -n "$ac_tool_prefix"; then
1.66 paf 2095: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2096: do
2097: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2098: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.62 paf 2099: echo "$as_me:$LINENO: checking for $ac_word" >&5
2100: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1.66 paf 2101: if test "${ac_cv_prog_CXX+set}" = set; then
1.62 paf 2102: echo $ECHO_N "(cached) $ECHO_C" >&6
2103: else
1.66 paf 2104: if test -n "$CXX"; then
2105: ac_cv_prog_CXX="$CXX" # Let the user override the test.
1.62 paf 2106: else
2107: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2108: for as_dir in $PATH
2109: do
2110: IFS=$as_save_IFS
2111: test -z "$as_dir" && as_dir=.
2112: for ac_exec_ext in '' $ac_executable_extensions; do
2113: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.66 paf 2114: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1.62 paf 2115: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2116: break 2
2117: fi
2118: done
2119: done
2120:
2121: fi
2122: fi
1.66 paf 2123: CXX=$ac_cv_prog_CXX
2124: if test -n "$CXX"; then
2125: echo "$as_me:$LINENO: result: $CXX" >&5
2126: echo "${ECHO_T}$CXX" >&6
1.62 paf 2127: else
2128: echo "$as_me:$LINENO: result: no" >&5
2129: echo "${ECHO_T}no" >&6
1.41 paf 2130: fi
2131:
1.66 paf 2132: test -n "$CXX" && break
2133: done
1.62 paf 2134: fi
1.66 paf 2135: if test -z "$CXX"; then
2136: ac_ct_CXX=$CXX
2137: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2138: do
2139: # Extract the first word of "$ac_prog", so it can be a program name with args.
2140: set dummy $ac_prog; ac_word=$2
1.62 paf 2141: echo "$as_me:$LINENO: checking for $ac_word" >&5
2142: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1.66 paf 2143: if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1.62 paf 2144: echo $ECHO_N "(cached) $ECHO_C" >&6
2145: else
1.66 paf 2146: if test -n "$ac_ct_CXX"; then
2147: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1.62 paf 2148: else
2149: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2150: for as_dir in $PATH
2151: do
2152: IFS=$as_save_IFS
2153: test -z "$as_dir" && as_dir=.
2154: for ac_exec_ext in '' $ac_executable_extensions; do
2155: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.66 paf 2156: ac_cv_prog_ac_ct_CXX="$ac_prog"
1.62 paf 2157: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2158: break 2
2159: fi
2160: done
2161: done
2162:
2163: fi
2164: fi
1.66 paf 2165: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2166: if test -n "$ac_ct_CXX"; then
2167: echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2168: echo "${ECHO_T}$ac_ct_CXX" >&6
1.62 paf 2169: else
2170: echo "$as_me:$LINENO: result: no" >&5
2171: echo "${ECHO_T}no" >&6
2172: fi
2173:
1.66 paf 2174: test -n "$ac_ct_CXX" && break
2175: done
2176: test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2177:
2178: CXX=$ac_ct_CXX
1.62 paf 2179: fi
2180:
1.66 paf 2181:
2182: # Provide some information about the compiler.
2183: echo "$as_me:$LINENO:" \
2184: "checking for C++ compiler version" >&5
2185: ac_compiler=`set X $ac_compile; echo $2`
2186: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2187: (eval $ac_compiler --version </dev/null >&5) 2>&5
2188: ac_status=$?
2189: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190: (exit $ac_status); }
2191: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2192: (eval $ac_compiler -v </dev/null >&5) 2>&5
2193: ac_status=$?
2194: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2195: (exit $ac_status); }
2196: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2197: (eval $ac_compiler -V </dev/null >&5) 2>&5
2198: ac_status=$?
2199: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2200: (exit $ac_status); }
2201:
2202: cat >conftest.$ac_ext <<_ACEOF
2203: /* confdefs.h. */
2204: _ACEOF
2205: cat confdefs.h >>conftest.$ac_ext
2206: cat >>conftest.$ac_ext <<_ACEOF
2207: /* end confdefs.h. */
2208:
2209: int
2210: main ()
2211: {
2212:
2213: ;
2214: return 0;
2215: }
2216: _ACEOF
2217: ac_clean_files_save=$ac_clean_files
2218: ac_clean_files="$ac_clean_files a.out a.exe b.out"
2219: # Try to create an executable without -o first, disregard a.out.
2220: # It will help us diagnose broken compilers, and finding out an intuition
2221: # of exeext.
1.86 paf 2222: echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2223: echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
1.66 paf 2224: ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2225: if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2226: (eval $ac_link_default) 2>&5
2227: ac_status=$?
2228: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229: (exit $ac_status); }; then
2230: # Find the output, starting from the most likely. This scheme is
2231: # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2232: # resort.
2233:
2234: # Be careful to initialize this variable, since it used to be cached.
2235: # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2236: ac_cv_exeext=
2237: # b.out is created by i960 compilers.
2238: for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1.62 paf 2239: do
1.66 paf 2240: test -f "$ac_file" || continue
2241: case $ac_file in
2242: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1.86 paf 2243: ;;
1.66 paf 2244: conftest.$ac_ext )
1.86 paf 2245: # This is the source file.
2246: ;;
1.66 paf 2247: [ab].out )
1.86 paf 2248: # We found the default executable, but exeext='' is most
2249: # certainly right.
2250: break;;
1.66 paf 2251: *.* )
1.86 paf 2252: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2253: # FIXME: I believe we export ac_cv_exeext for Libtool,
2254: # but it would be cool to find out if it's true. Does anybody
2255: # maintain Libtool? --akim.
2256: export ac_cv_exeext
2257: break;;
1.66 paf 2258: * )
1.86 paf 2259: break;;
1.66 paf 2260: esac
1.62 paf 2261: done
1.66 paf 2262: else
2263: echo "$as_me: failed program was:" >&5
2264: sed 's/^/| /' conftest.$ac_ext >&5
1.62 paf 2265:
1.66 paf 2266: { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2267: See \`config.log' for more details." >&5
2268: echo "$as_me: error: C++ compiler cannot create executables
2269: See \`config.log' for more details." >&2;}
2270: { (exit 77); exit 77; }; }
1.1 paf 2271: fi
1.66 paf 2272:
2273: ac_exeext=$ac_cv_exeext
2274: echo "$as_me:$LINENO: result: $ac_file" >&5
2275: echo "${ECHO_T}$ac_file" >&6
2276:
2277: # Check the compiler produces executables we can run. If not, either
2278: # the compiler is broken, or we cross compile.
2279: echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2280: echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2281: # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2282: # If not cross compiling, check that we can run a simple program.
2283: if test "$cross_compiling" != yes; then
2284: if { ac_try='./$ac_file'
2285: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2286: (eval $ac_try) 2>&5
2287: ac_status=$?
2288: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2289: (exit $ac_status); }; }; then
2290: cross_compiling=no
2291: else
2292: if test "$cross_compiling" = maybe; then
2293: cross_compiling=yes
2294: else
2295: { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2296: If you meant to cross compile, use \`--host'.
2297: See \`config.log' for more details." >&5
2298: echo "$as_me: error: cannot run C++ compiled programs.
2299: If you meant to cross compile, use \`--host'.
2300: See \`config.log' for more details." >&2;}
2301: { (exit 1); exit 1; }; }
2302: fi
2303: fi
1.1 paf 2304: fi
1.66 paf 2305: echo "$as_me:$LINENO: result: yes" >&5
2306: echo "${ECHO_T}yes" >&6
1.62 paf 2307:
1.66 paf 2308: rm -f a.out a.exe conftest$ac_cv_exeext b.out
2309: ac_clean_files=$ac_clean_files_save
2310: # Check the compiler produces executables we can run. If not, either
1.62 paf 2311: # the compiler is broken, or we cross compile.
2312: echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2313: echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2314: echo "$as_me:$LINENO: result: $cross_compiling" >&5
2315: echo "${ECHO_T}$cross_compiling" >&6
2316:
2317: echo "$as_me:$LINENO: checking for suffix of executables" >&5
2318: echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2319: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2320: (eval $ac_link) 2>&5
2321: ac_status=$?
2322: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323: (exit $ac_status); }; then
2324: # If both `conftest.exe' and `conftest' are `present' (well, observable)
2325: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2326: # work properly (i.e., refer to `conftest.exe'), while it won't with
2327: # `rm'.
2328: for ac_file in conftest.exe conftest conftest.*; do
2329: test -f "$ac_file" || continue
2330: case $ac_file in
2331: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2332: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1.86 paf 2333: export ac_cv_exeext
2334: break;;
1.62 paf 2335: * ) break;;
2336: esac
2337: done
2338: else
2339: { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2340: See \`config.log' for more details." >&5
2341: echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2342: See \`config.log' for more details." >&2;}
2343: { (exit 1); exit 1; }; }
2344: fi
2345:
2346: rm -f conftest$ac_cv_exeext
2347: echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2348: echo "${ECHO_T}$ac_cv_exeext" >&6
2349:
2350: rm -f conftest.$ac_ext
2351: EXEEXT=$ac_cv_exeext
2352: ac_exeext=$EXEEXT
2353: echo "$as_me:$LINENO: checking for suffix of object files" >&5
2354: echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2355: if test "${ac_cv_objext+set}" = set; then
2356: echo $ECHO_N "(cached) $ECHO_C" >&6
2357: else
2358: cat >conftest.$ac_ext <<_ACEOF
2359: /* confdefs.h. */
2360: _ACEOF
2361: cat confdefs.h >>conftest.$ac_ext
2362: cat >>conftest.$ac_ext <<_ACEOF
2363: /* end confdefs.h. */
2364:
2365: int
2366: main ()
2367: {
2368:
2369: ;
2370: return 0;
2371: }
2372: _ACEOF
2373: rm -f conftest.o conftest.obj
2374: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2375: (eval $ac_compile) 2>&5
2376: ac_status=$?
2377: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378: (exit $ac_status); }; then
2379: for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2380: case $ac_file in
2381: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2382: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2383: break;;
2384: esac
2385: done
2386: else
2387: echo "$as_me: failed program was:" >&5
2388: sed 's/^/| /' conftest.$ac_ext >&5
2389:
2390: { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2391: See \`config.log' for more details." >&5
2392: echo "$as_me: error: cannot compute suffix of object files: cannot compile
2393: See \`config.log' for more details." >&2;}
2394: { (exit 1); exit 1; }; }
2395: fi
2396:
2397: rm -f conftest.$ac_cv_objext conftest.$ac_ext
2398: fi
1.66 paf 2399: echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2400: echo "${ECHO_T}$ac_cv_objext" >&6
2401: OBJEXT=$ac_cv_objext
2402: ac_objext=$OBJEXT
2403: echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2404: echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2405: if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
1.62 paf 2406: echo $ECHO_N "(cached) $ECHO_C" >&6
2407: else
1.66 paf 2408: cat >conftest.$ac_ext <<_ACEOF
1.62 paf 2409: /* confdefs.h. */
2410: _ACEOF
2411: cat confdefs.h >>conftest.$ac_ext
2412: cat >>conftest.$ac_ext <<_ACEOF
2413: /* end confdefs.h. */
1.66 paf 2414:
1.62 paf 2415: int
2416: main ()
2417: {
1.66 paf 2418: #ifndef __GNUC__
2419: choke me
2420: #endif
2421:
1.62 paf 2422: ;
2423: return 0;
2424: }
2425: _ACEOF
1.66 paf 2426: rm -f conftest.$ac_objext
1.62 paf 2427: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 2428: (eval $ac_compile) 2>conftest.er1
1.62 paf 2429: ac_status=$?
1.86 paf 2430: grep -v '^ *+' conftest.er1 >conftest.err
2431: rm -f conftest.er1
2432: cat conftest.err >&5
1.62 paf 2433: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434: (exit $ac_status); } &&
1.86 paf 2435: { ac_try='test -z "$ac_cxx_werror_flag"
2436: || test ! -s conftest.err'
2437: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2438: (eval $ac_try) 2>&5
2439: ac_status=$?
2440: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441: (exit $ac_status); }; } &&
2442: { ac_try='test -s conftest.$ac_objext'
1.62 paf 2443: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2444: (eval $ac_try) 2>&5
2445: ac_status=$?
2446: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447: (exit $ac_status); }; }; then
1.66 paf 2448: ac_compiler_gnu=yes
1.62 paf 2449: else
2450: echo "$as_me: failed program was:" >&5
2451: sed 's/^/| /' conftest.$ac_ext >&5
1.1 paf 2452:
1.66 paf 2453: ac_compiler_gnu=no
1.1 paf 2454: fi
1.86 paf 2455: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.66 paf 2456: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1.1 paf 2457:
2458: fi
1.66 paf 2459: echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2460: echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2461: GXX=`test $ac_compiler_gnu = yes && echo yes`
2462: ac_test_CXXFLAGS=${CXXFLAGS+set}
2463: ac_save_CXXFLAGS=$CXXFLAGS
2464: CXXFLAGS="-g"
2465: echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2466: echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2467: if test "${ac_cv_prog_cxx_g+set}" = set; then
2468: echo $ECHO_N "(cached) $ECHO_C" >&6
2469: else
2470: cat >conftest.$ac_ext <<_ACEOF
2471: /* confdefs.h. */
2472: _ACEOF
2473: cat confdefs.h >>conftest.$ac_ext
2474: cat >>conftest.$ac_ext <<_ACEOF
2475: /* end confdefs.h. */
1.1 paf 2476:
1.66 paf 2477: int
2478: main ()
2479: {
1.1 paf 2480:
1.66 paf 2481: ;
2482: return 0;
2483: }
1.62 paf 2484: _ACEOF
2485: rm -f conftest.$ac_objext
2486: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 2487: (eval $ac_compile) 2>conftest.er1
1.62 paf 2488: ac_status=$?
1.86 paf 2489: grep -v '^ *+' conftest.er1 >conftest.err
2490: rm -f conftest.er1
2491: cat conftest.err >&5
1.62 paf 2492: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493: (exit $ac_status); } &&
1.86 paf 2494: { ac_try='test -z "$ac_cxx_werror_flag"
2495: || test ! -s conftest.err'
2496: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2497: (eval $ac_try) 2>&5
2498: ac_status=$?
2499: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500: (exit $ac_status); }; } &&
2501: { ac_try='test -s conftest.$ac_objext'
1.62 paf 2502: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2503: (eval $ac_try) 2>&5
2504: ac_status=$?
2505: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506: (exit $ac_status); }; }; then
1.66 paf 2507: ac_cv_prog_cxx_g=yes
2508: else
2509: echo "$as_me: failed program was:" >&5
2510: sed 's/^/| /' conftest.$ac_ext >&5
2511:
2512: ac_cv_prog_cxx_g=no
2513: fi
1.86 paf 2514: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.66 paf 2515: fi
2516: echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2517: echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2518: if test "$ac_test_CXXFLAGS" = set; then
2519: CXXFLAGS=$ac_save_CXXFLAGS
2520: elif test $ac_cv_prog_cxx_g = yes; then
2521: if test "$GXX" = yes; then
2522: CXXFLAGS="-g -O2"
2523: else
2524: CXXFLAGS="-g"
2525: fi
2526: else
2527: if test "$GXX" = yes; then
2528: CXXFLAGS="-O2"
2529: else
2530: CXXFLAGS=
2531: fi
2532: fi
2533: for ac_declaration in \
1.86 paf 2534: '' \
1.62 paf 2535: 'extern "C" void std::exit (int) throw (); using std::exit;' \
2536: 'extern "C" void std::exit (int); using std::exit;' \
2537: 'extern "C" void exit (int) throw ();' \
2538: 'extern "C" void exit (int);' \
2539: 'void exit (int);'
1.1 paf 2540: do
1.62 paf 2541: cat >conftest.$ac_ext <<_ACEOF
2542: /* confdefs.h. */
2543: _ACEOF
2544: cat confdefs.h >>conftest.$ac_ext
2545: cat >>conftest.$ac_ext <<_ACEOF
2546: /* end confdefs.h. */
1.86 paf 2547: $ac_declaration
1.62 paf 2548: #include <stdlib.h>
2549: int
2550: main ()
2551: {
2552: exit (42);
2553: ;
2554: return 0;
2555: }
2556: _ACEOF
2557: rm -f conftest.$ac_objext
2558: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 2559: (eval $ac_compile) 2>conftest.er1
1.62 paf 2560: ac_status=$?
1.86 paf 2561: grep -v '^ *+' conftest.er1 >conftest.err
2562: rm -f conftest.er1
2563: cat conftest.err >&5
1.62 paf 2564: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565: (exit $ac_status); } &&
1.86 paf 2566: { ac_try='test -z "$ac_cxx_werror_flag"
2567: || test ! -s conftest.err'
2568: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2569: (eval $ac_try) 2>&5
2570: ac_status=$?
2571: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572: (exit $ac_status); }; } &&
2573: { ac_try='test -s conftest.$ac_objext'
1.62 paf 2574: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2575: (eval $ac_try) 2>&5
2576: ac_status=$?
2577: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578: (exit $ac_status); }; }; then
2579: :
1.1 paf 2580: else
1.62 paf 2581: echo "$as_me: failed program was:" >&5
2582: sed 's/^/| /' conftest.$ac_ext >&5
2583:
2584: continue
2585: fi
1.86 paf 2586: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.62 paf 2587: cat >conftest.$ac_ext <<_ACEOF
2588: /* confdefs.h. */
2589: _ACEOF
2590: cat confdefs.h >>conftest.$ac_ext
2591: cat >>conftest.$ac_ext <<_ACEOF
2592: /* end confdefs.h. */
2593: $ac_declaration
2594: int
2595: main ()
2596: {
2597: exit (42);
2598: ;
2599: return 0;
2600: }
2601: _ACEOF
2602: rm -f conftest.$ac_objext
2603: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 2604: (eval $ac_compile) 2>conftest.er1
1.62 paf 2605: ac_status=$?
1.86 paf 2606: grep -v '^ *+' conftest.er1 >conftest.err
2607: rm -f conftest.er1
2608: cat conftest.err >&5
1.62 paf 2609: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610: (exit $ac_status); } &&
1.86 paf 2611: { ac_try='test -z "$ac_cxx_werror_flag"
2612: || test ! -s conftest.err'
2613: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2614: (eval $ac_try) 2>&5
2615: ac_status=$?
2616: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617: (exit $ac_status); }; } &&
2618: { ac_try='test -s conftest.$ac_objext'
1.62 paf 2619: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2620: (eval $ac_try) 2>&5
2621: ac_status=$?
2622: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623: (exit $ac_status); }; }; then
2624: break
1.1 paf 2625: else
1.62 paf 2626: echo "$as_me: failed program was:" >&5
2627: sed 's/^/| /' conftest.$ac_ext >&5
2628:
1.1 paf 2629: fi
1.86 paf 2630: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.62 paf 2631: done
2632: rm -f conftest*
2633: if test -n "$ac_declaration"; then
2634: echo '#ifdef __cplusplus' >>confdefs.h
2635: echo $ac_declaration >>confdefs.h
2636: echo '#endif' >>confdefs.h
1.1 paf 2637: fi
1.62 paf 2638:
2639: ac_ext=c
2640: ac_cpp='$CPP $CPPFLAGS'
2641: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2642: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2643: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.86 paf 2644: DEPDIR="${am__leading_dot}deps"
1.62 paf 2645:
2646: ac_config_commands="$ac_config_commands depfiles"
2647:
2648:
2649: am_make=${MAKE-make}
2650: cat > confinc << 'END'
1.86 paf 2651: am__doit:
1.62 paf 2652: @echo done
1.86 paf 2653: .PHONY: am__doit
1.62 paf 2654: END
2655: # If we don't find an include directive, just comment out the code.
2656: echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2657: echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2658: am__include="#"
2659: am__quote=
2660: _am_result=none
2661: # First try GNU make style include.
2662: echo "include confinc" > confmf
2663: # We grep out `Entering directory' and `Leaving directory'
2664: # messages which can occur if `w' ends up in MAKEFLAGS.
2665: # In particular we don't look at `^make:' because GNU make might
2666: # be invoked under some other name (usually "gmake"), in which
2667: # case it prints its new name instead of `make'.
2668: if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2669: am__include=include
2670: am__quote=
2671: _am_result=GNU
2672: fi
2673: # Now try BSD make style include.
2674: if test "$am__include" = "#"; then
2675: echo '.include "confinc"' > confmf
2676: if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2677: am__include=.include
2678: am__quote="\""
2679: _am_result=BSD
2680: fi
2681: fi
2682:
2683:
2684: echo "$as_me:$LINENO: result: $_am_result" >&5
2685: echo "${ECHO_T}$_am_result" >&6
2686: rm -f confinc confmf
2687:
2688: # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2689: if test "${enable_dependency_tracking+set}" = set; then
2690: enableval="$enable_dependency_tracking"
2691:
2692: fi;
2693: if test "x$enable_dependency_tracking" != xno; then
2694: am_depcomp="$ac_aux_dir/depcomp"
2695: AMDEPBACKSLASH='\'
1.1 paf 2696: fi
2697:
1.62 paf 2698:
2699: if test "x$enable_dependency_tracking" != xno; then
2700: AMDEP_TRUE=
2701: AMDEP_FALSE='#'
2702: else
2703: AMDEP_TRUE='#'
2704: AMDEP_FALSE=
2705: fi
1.1 paf 2706:
2707:
2708:
2709:
1.66 paf 2710: depcc="$CXX" am_compiler_list=
1.1 paf 2711:
1.62 paf 2712: echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2713: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
1.66 paf 2714: if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
1.62 paf 2715: echo $ECHO_N "(cached) $ECHO_C" >&6
2716: else
2717: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2718: # We make a subdir and do the tests there. Otherwise we can end up
2719: # making bogus files that we don't know about and never remove. For
2720: # instance it was reported that on HP-UX the gcc test will end up
2721: # making a dummy file named `D' -- because `-MD' means `put the output
2722: # in D'.
2723: mkdir conftest.dir
2724: # Copy depcomp to subdir because otherwise we won't find it if we're
2725: # using a relative directory.
2726: cp "$am_depcomp" conftest.dir
2727: cd conftest.dir
1.86 paf 2728: # We will build objects and dependencies in a subdirectory because
2729: # it helps to detect inapplicable dependency modes. For instance
2730: # both Tru64's cc and ICC support -MD to output dependencies as a
2731: # side effect of compilation, but ICC will put the dependencies in
2732: # the current directory while Tru64 will put them in the object
2733: # directory.
2734: mkdir sub
1.1 paf 2735:
1.66 paf 2736: am_cv_CXX_dependencies_compiler_type=none
1.62 paf 2737: if test "$am_compiler_list" = ""; then
2738: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
1.1 paf 2739: fi
1.62 paf 2740: for depmode in $am_compiler_list; do
1.86 paf 2741: # Setup a source with many dependencies, because some compilers
2742: # like to wrap large dependency lists on column 80 (with \), and
2743: # we should not choose a depcomp mode which is confused by this.
2744: #
1.62 paf 2745: # We need to recreate these files for each test, as the compiler may
2746: # overwrite some of them when testing with obscure command lines.
2747: # This happens at least with the AIX C compiler.
1.86 paf 2748: : > sub/conftest.c
2749: for i in 1 2 3 4 5 6; do
2750: echo '#include "conftst'$i'.h"' >> sub/conftest.c
2751: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2752: # Solaris 8's {/usr,}/bin/sh.
2753: touch sub/conftst$i.h
2754: done
2755: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.62 paf 2756:
2757: case $depmode in
2758: nosideeffect)
2759: # after this tag, mechanisms are not by side-effect, so they'll
2760: # only be used when explicitly requested
2761: if test "x$enable_dependency_tracking" = xyes; then
2762: continue
2763: else
2764: break
2765: fi
2766: ;;
2767: none) break ;;
2768: esac
2769: # We check with `-c' and `-o' for the sake of the "dashmstdout"
2770: # mode. It turns out that the SunPro C++ compiler does not properly
2771: # handle `-M -o', and we need to detect this.
2772: if depmode=$depmode \
1.86 paf 2773: source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2774: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2775: $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2776: >/dev/null 2>conftest.err &&
2777: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2778: grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
1.62 paf 2779: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.86 paf 2780: # icc doesn't choke on unknown options, it will just issue warnings
2781: # or remarks (even with -Werror). So we grep stderr for any message
2782: # that says an option was ignored or not supported.
2783: # When given -MP, icc 7.0 and 7.1 complain thusly:
2784: # icc: Command line warning: ignoring option '-M'; no argument required
2785: # The diagnosis changed in icc 8.0:
2786: # icc: Command line remark: option '-MP' not supported
2787: if (grep 'ignoring option' conftest.err ||
2788: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2789: am_cv_CXX_dependencies_compiler_type=$depmode
2790: break
2791: fi
1.66 paf 2792: fi
2793: done
2794:
2795: cd ..
2796: rm -rf conftest.dir
2797: else
2798: am_cv_CXX_dependencies_compiler_type=none
2799: fi
2800:
2801: fi
2802: echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2803: echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2804: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2805:
2806:
2807:
2808: if
2809: test "x$enable_dependency_tracking" != xno \
2810: && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2811: am__fastdepCXX_TRUE=
2812: am__fastdepCXX_FALSE='#'
2813: else
2814: am__fastdepCXX_TRUE='#'
2815: am__fastdepCXX_FALSE=
2816: fi
2817:
2818:
2819: ac_ext=c
2820: ac_cpp='$CPP $CPPFLAGS'
2821: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2822: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2823: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2824: if test -n "$ac_tool_prefix"; then
2825: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2826: set dummy ${ac_tool_prefix}gcc; ac_word=$2
2827: echo "$as_me:$LINENO: checking for $ac_word" >&5
2828: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2829: if test "${ac_cv_prog_CC+set}" = set; then
2830: echo $ECHO_N "(cached) $ECHO_C" >&6
2831: else
2832: if test -n "$CC"; then
2833: ac_cv_prog_CC="$CC" # Let the user override the test.
2834: else
2835: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2836: for as_dir in $PATH
2837: do
2838: IFS=$as_save_IFS
2839: test -z "$as_dir" && as_dir=.
2840: for ac_exec_ext in '' $ac_executable_extensions; do
2841: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2842: ac_cv_prog_CC="${ac_tool_prefix}gcc"
2843: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2844: break 2
2845: fi
2846: done
2847: done
2848:
2849: fi
2850: fi
2851: CC=$ac_cv_prog_CC
2852: if test -n "$CC"; then
2853: echo "$as_me:$LINENO: result: $CC" >&5
2854: echo "${ECHO_T}$CC" >&6
2855: else
2856: echo "$as_me:$LINENO: result: no" >&5
2857: echo "${ECHO_T}no" >&6
2858: fi
2859:
2860: fi
2861: if test -z "$ac_cv_prog_CC"; then
2862: ac_ct_CC=$CC
2863: # Extract the first word of "gcc", so it can be a program name with args.
2864: set dummy gcc; ac_word=$2
2865: echo "$as_me:$LINENO: checking for $ac_word" >&5
2866: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2867: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2868: echo $ECHO_N "(cached) $ECHO_C" >&6
2869: else
2870: if test -n "$ac_ct_CC"; then
2871: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2872: else
2873: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2874: for as_dir in $PATH
2875: do
2876: IFS=$as_save_IFS
2877: test -z "$as_dir" && as_dir=.
2878: for ac_exec_ext in '' $ac_executable_extensions; do
2879: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2880: ac_cv_prog_ac_ct_CC="gcc"
2881: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2882: break 2
2883: fi
2884: done
2885: done
2886:
2887: fi
2888: fi
2889: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2890: if test -n "$ac_ct_CC"; then
2891: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2892: echo "${ECHO_T}$ac_ct_CC" >&6
1.1 paf 2893: else
1.66 paf 2894: echo "$as_me:$LINENO: result: no" >&5
2895: echo "${ECHO_T}no" >&6
1.62 paf 2896: fi
2897:
1.66 paf 2898: CC=$ac_ct_CC
2899: else
2900: CC="$ac_cv_prog_CC"
1.1 paf 2901: fi
1.62 paf 2902:
1.66 paf 2903: if test -z "$CC"; then
2904: if test -n "$ac_tool_prefix"; then
2905: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2906: set dummy ${ac_tool_prefix}cc; ac_word=$2
2907: echo "$as_me:$LINENO: checking for $ac_word" >&5
2908: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2909: if test "${ac_cv_prog_CC+set}" = set; then
2910: echo $ECHO_N "(cached) $ECHO_C" >&6
2911: else
2912: if test -n "$CC"; then
2913: ac_cv_prog_CC="$CC" # Let the user override the test.
2914: else
2915: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2916: for as_dir in $PATH
2917: do
2918: IFS=$as_save_IFS
2919: test -z "$as_dir" && as_dir=.
2920: for ac_exec_ext in '' $ac_executable_extensions; do
2921: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2922: ac_cv_prog_CC="${ac_tool_prefix}cc"
2923: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2924: break 2
2925: fi
2926: done
2927: done
1.62 paf 2928:
1.66 paf 2929: fi
2930: fi
2931: CC=$ac_cv_prog_CC
2932: if test -n "$CC"; then
2933: echo "$as_me:$LINENO: result: $CC" >&5
2934: echo "${ECHO_T}$CC" >&6
1.62 paf 2935: else
1.66 paf 2936: echo "$as_me:$LINENO: result: no" >&5
2937: echo "${ECHO_T}no" >&6
1.1 paf 2938: fi
2939:
1.66 paf 2940: fi
2941: if test -z "$ac_cv_prog_CC"; then
2942: ac_ct_CC=$CC
2943: # Extract the first word of "cc", so it can be a program name with args.
2944: set dummy cc; ac_word=$2
2945: echo "$as_me:$LINENO: checking for $ac_word" >&5
2946: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2947: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2948: echo $ECHO_N "(cached) $ECHO_C" >&6
2949: else
2950: if test -n "$ac_ct_CC"; then
2951: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2952: else
2953: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2954: for as_dir in $PATH
2955: do
2956: IFS=$as_save_IFS
2957: test -z "$as_dir" && as_dir=.
2958: for ac_exec_ext in '' $ac_executable_extensions; do
2959: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2960: ac_cv_prog_ac_ct_CC="cc"
2961: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2962: break 2
2963: fi
2964: done
2965: done
1.62 paf 2966:
1.66 paf 2967: fi
2968: fi
2969: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2970: if test -n "$ac_ct_CC"; then
2971: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2972: echo "${ECHO_T}$ac_ct_CC" >&6
1.1 paf 2973: else
1.66 paf 2974: echo "$as_me:$LINENO: result: no" >&5
2975: echo "${ECHO_T}no" >&6
2976: fi
1.62 paf 2977:
1.66 paf 2978: CC=$ac_ct_CC
1.1 paf 2979: else
1.66 paf 2980: CC="$ac_cv_prog_CC"
2981: fi
1.62 paf 2982:
1.1 paf 2983: fi
1.66 paf 2984: if test -z "$CC"; then
2985: # Extract the first word of "cc", so it can be a program name with args.
2986: set dummy cc; ac_word=$2
2987: echo "$as_me:$LINENO: checking for $ac_word" >&5
2988: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2989: if test "${ac_cv_prog_CC+set}" = set; then
2990: echo $ECHO_N "(cached) $ECHO_C" >&6
2991: else
2992: if test -n "$CC"; then
2993: ac_cv_prog_CC="$CC" # Let the user override the test.
2994: else
2995: ac_prog_rejected=no
2996: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2997: for as_dir in $PATH
2998: do
2999: IFS=$as_save_IFS
3000: test -z "$as_dir" && as_dir=.
3001: for ac_exec_ext in '' $ac_executable_extensions; do
3002: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3003: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3004: ac_prog_rejected=yes
3005: continue
3006: fi
3007: ac_cv_prog_CC="cc"
3008: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3009: break 2
3010: fi
3011: done
1.62 paf 3012: done
3013:
1.66 paf 3014: if test $ac_prog_rejected = yes; then
3015: # We found a bogon in the path, so make sure we never use it.
3016: set dummy $ac_cv_prog_CC
3017: shift
3018: if test $# != 0; then
3019: # We chose a different compiler from the bogus one.
3020: # However, it has the same basename, so the bogon will be chosen
3021: # first if we set CC to just the basename; use the full file name.
3022: shift
3023: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3024: fi
3025: fi
3026: fi
3027: fi
3028: CC=$ac_cv_prog_CC
3029: if test -n "$CC"; then
3030: echo "$as_me:$LINENO: result: $CC" >&5
3031: echo "${ECHO_T}$CC" >&6
3032: else
3033: echo "$as_me:$LINENO: result: no" >&5
3034: echo "${ECHO_T}no" >&6
1.1 paf 3035: fi
3036:
1.66 paf 3037: fi
3038: if test -z "$CC"; then
3039: if test -n "$ac_tool_prefix"; then
3040: for ac_prog in cl
1.62 paf 3041: do
3042: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3043: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3044: echo "$as_me:$LINENO: checking for $ac_word" >&5
3045: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1.66 paf 3046: if test "${ac_cv_prog_CC+set}" = set; then
1.62 paf 3047: echo $ECHO_N "(cached) $ECHO_C" >&6
3048: else
1.66 paf 3049: if test -n "$CC"; then
3050: ac_cv_prog_CC="$CC" # Let the user override the test.
1.62 paf 3051: else
3052: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3053: for as_dir in $PATH
3054: do
3055: IFS=$as_save_IFS
3056: test -z "$as_dir" && as_dir=.
3057: for ac_exec_ext in '' $ac_executable_extensions; do
3058: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.66 paf 3059: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1.62 paf 3060: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3061: break 2
3062: fi
3063: done
3064: done
1.1 paf 3065:
1.62 paf 3066: fi
3067: fi
1.66 paf 3068: CC=$ac_cv_prog_CC
3069: if test -n "$CC"; then
3070: echo "$as_me:$LINENO: result: $CC" >&5
3071: echo "${ECHO_T}$CC" >&6
1.1 paf 3072: else
1.62 paf 3073: echo "$as_me:$LINENO: result: no" >&5
3074: echo "${ECHO_T}no" >&6
1.1 paf 3075: fi
3076:
1.66 paf 3077: test -n "$CC" && break
1.62 paf 3078: done
3079: fi
1.66 paf 3080: if test -z "$CC"; then
3081: ac_ct_CC=$CC
3082: for ac_prog in cl
1.62 paf 3083: do
3084: # Extract the first word of "$ac_prog", so it can be a program name with args.
3085: set dummy $ac_prog; ac_word=$2
3086: echo "$as_me:$LINENO: checking for $ac_word" >&5
3087: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1.66 paf 3088: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1.62 paf 3089: echo $ECHO_N "(cached) $ECHO_C" >&6
3090: else
1.66 paf 3091: if test -n "$ac_ct_CC"; then
3092: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.1 paf 3093: else
1.62 paf 3094: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3095: for as_dir in $PATH
3096: do
3097: IFS=$as_save_IFS
3098: test -z "$as_dir" && as_dir=.
3099: for ac_exec_ext in '' $ac_executable_extensions; do
3100: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.66 paf 3101: ac_cv_prog_ac_ct_CC="$ac_prog"
1.62 paf 3102: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3103: break 2
3104: fi
3105: done
3106: done
3107:
3108: fi
3109: fi
1.66 paf 3110: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3111: if test -n "$ac_ct_CC"; then
3112: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3113: echo "${ECHO_T}$ac_ct_CC" >&6
1.1 paf 3114: else
1.62 paf 3115: echo "$as_me:$LINENO: result: no" >&5
3116: echo "${ECHO_T}no" >&6
1.1 paf 3117: fi
3118:
1.66 paf 3119: test -n "$ac_ct_CC" && break
3120: done
3121:
3122: CC=$ac_ct_CC
3123: fi
3124:
3125: fi
1.62 paf 3126:
1.1 paf 3127:
1.66 paf 3128: test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3129: See \`config.log' for more details." >&5
3130: echo "$as_me: error: no acceptable C compiler found in \$PATH
3131: See \`config.log' for more details." >&2;}
3132: { (exit 1); exit 1; }; }
1.62 paf 3133:
3134: # Provide some information about the compiler.
3135: echo "$as_me:$LINENO:" \
1.66 paf 3136: "checking for C compiler version" >&5
1.62 paf 3137: ac_compiler=`set X $ac_compile; echo $2`
3138: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3139: (eval $ac_compiler --version </dev/null >&5) 2>&5
3140: ac_status=$?
3141: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142: (exit $ac_status); }
3143: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3144: (eval $ac_compiler -v </dev/null >&5) 2>&5
3145: ac_status=$?
3146: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147: (exit $ac_status); }
3148: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3149: (eval $ac_compiler -V </dev/null >&5) 2>&5
3150: ac_status=$?
3151: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152: (exit $ac_status); }
3153:
1.66 paf 3154: echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3155: echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3156: if test "${ac_cv_c_compiler_gnu+set}" = set; then
1.62 paf 3157: echo $ECHO_N "(cached) $ECHO_C" >&6
3158: else
3159: cat >conftest.$ac_ext <<_ACEOF
3160: /* confdefs.h. */
3161: _ACEOF
3162: cat confdefs.h >>conftest.$ac_ext
3163: cat >>conftest.$ac_ext <<_ACEOF
3164: /* end confdefs.h. */
3165:
3166: int
3167: main ()
3168: {
3169: #ifndef __GNUC__
3170: choke me
3171: #endif
3172:
3173: ;
3174: return 0;
3175: }
3176: _ACEOF
3177: rm -f conftest.$ac_objext
3178: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 3179: (eval $ac_compile) 2>conftest.er1
1.62 paf 3180: ac_status=$?
1.86 paf 3181: grep -v '^ *+' conftest.er1 >conftest.err
3182: rm -f conftest.er1
3183: cat conftest.err >&5
1.62 paf 3184: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185: (exit $ac_status); } &&
1.86 paf 3186: { ac_try='test -z "$ac_c_werror_flag"
3187: || test ! -s conftest.err'
3188: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3189: (eval $ac_try) 2>&5
3190: ac_status=$?
3191: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192: (exit $ac_status); }; } &&
3193: { ac_try='test -s conftest.$ac_objext'
1.62 paf 3194: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3195: (eval $ac_try) 2>&5
3196: ac_status=$?
3197: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198: (exit $ac_status); }; }; then
3199: ac_compiler_gnu=yes
3200: else
3201: echo "$as_me: failed program was:" >&5
3202: sed 's/^/| /' conftest.$ac_ext >&5
3203:
3204: ac_compiler_gnu=no
3205: fi
1.86 paf 3206: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.66 paf 3207: ac_cv_c_compiler_gnu=$ac_compiler_gnu
1.62 paf 3208:
3209: fi
1.66 paf 3210: echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3211: echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3212: GCC=`test $ac_compiler_gnu = yes && echo yes`
3213: ac_test_CFLAGS=${CFLAGS+set}
3214: ac_save_CFLAGS=$CFLAGS
3215: CFLAGS="-g"
3216: echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3217: echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3218: if test "${ac_cv_prog_cc_g+set}" = set; then
1.62 paf 3219: echo $ECHO_N "(cached) $ECHO_C" >&6
3220: else
3221: cat >conftest.$ac_ext <<_ACEOF
3222: /* confdefs.h. */
3223: _ACEOF
3224: cat confdefs.h >>conftest.$ac_ext
3225: cat >>conftest.$ac_ext <<_ACEOF
3226: /* end confdefs.h. */
3227:
3228: int
3229: main ()
3230: {
3231:
3232: ;
3233: return 0;
3234: }
3235: _ACEOF
3236: rm -f conftest.$ac_objext
3237: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 3238: (eval $ac_compile) 2>conftest.er1
1.62 paf 3239: ac_status=$?
1.86 paf 3240: grep -v '^ *+' conftest.er1 >conftest.err
3241: rm -f conftest.er1
3242: cat conftest.err >&5
1.62 paf 3243: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244: (exit $ac_status); } &&
1.86 paf 3245: { ac_try='test -z "$ac_c_werror_flag"
3246: || test ! -s conftest.err'
3247: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3248: (eval $ac_try) 2>&5
3249: ac_status=$?
3250: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251: (exit $ac_status); }; } &&
3252: { ac_try='test -s conftest.$ac_objext'
1.62 paf 3253: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3254: (eval $ac_try) 2>&5
3255: ac_status=$?
3256: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257: (exit $ac_status); }; }; then
1.66 paf 3258: ac_cv_prog_cc_g=yes
1.62 paf 3259: else
3260: echo "$as_me: failed program was:" >&5
3261: sed 's/^/| /' conftest.$ac_ext >&5
3262:
1.66 paf 3263: ac_cv_prog_cc_g=no
1.62 paf 3264: fi
1.86 paf 3265: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.62 paf 3266: fi
1.66 paf 3267: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3268: echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3269: if test "$ac_test_CFLAGS" = set; then
3270: CFLAGS=$ac_save_CFLAGS
3271: elif test $ac_cv_prog_cc_g = yes; then
3272: if test "$GCC" = yes; then
3273: CFLAGS="-g -O2"
1.1 paf 3274: else
1.66 paf 3275: CFLAGS="-g"
1.1 paf 3276: fi
3277: else
1.66 paf 3278: if test "$GCC" = yes; then
3279: CFLAGS="-O2"
1.1 paf 3280: else
1.66 paf 3281: CFLAGS=
1.1 paf 3282: fi
3283: fi
1.66 paf 3284: echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3285: echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3286: if test "${ac_cv_prog_cc_stdc+set}" = set; then
3287: echo $ECHO_N "(cached) $ECHO_C" >&6
3288: else
3289: ac_cv_prog_cc_stdc=no
3290: ac_save_CC=$CC
3291: cat >conftest.$ac_ext <<_ACEOF
3292: /* confdefs.h. */
3293: _ACEOF
3294: cat confdefs.h >>conftest.$ac_ext
3295: cat >>conftest.$ac_ext <<_ACEOF
3296: /* end confdefs.h. */
3297: #include <stdarg.h>
3298: #include <stdio.h>
3299: #include <sys/types.h>
3300: #include <sys/stat.h>
3301: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3302: struct buf { int x; };
3303: FILE * (*rcsopen) (struct buf *, struct stat *, int);
3304: static char *e (p, i)
3305: char **p;
3306: int i;
3307: {
3308: return p[i];
3309: }
3310: static char *f (char * (*g) (char **, int), char **p, ...)
3311: {
3312: char *s;
3313: va_list v;
3314: va_start (v,p);
3315: s = g (p, va_arg (v,int));
3316: va_end (v);
3317: return s;
3318: }
1.86 paf 3319:
3320: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3321: function prototypes and stuff, but not '\xHH' hex character constants.
3322: These don't provoke an error unfortunately, instead are silently treated
3323: as 'x'. The following induces an error, until -std1 is added to get
3324: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3325: array size at least. It's necessary to write '\x00'==0 to get something
3326: that's true only with -std1. */
3327: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3328:
1.66 paf 3329: int test (int i, double x);
3330: struct s1 {int (*f) (int a);};
3331: struct s2 {int (*f) (double a);};
3332: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3333: int argc;
3334: char **argv;
3335: int
3336: main ()
3337: {
3338: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3339: ;
3340: return 0;
3341: }
3342: _ACEOF
3343: # Don't try gcc -ansi; that turns off useful extensions and
3344: # breaks some systems' header files.
3345: # AIX -qlanglvl=ansi
3346: # Ultrix and OSF/1 -std1
3347: # HP-UX 10.20 and later -Ae
3348: # HP-UX older versions -Aa -D_HPUX_SOURCE
3349: # SVR4 -Xc -D__EXTENSIONS__
3350: for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3351: do
3352: CC="$ac_save_CC $ac_arg"
3353: rm -f conftest.$ac_objext
3354: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 3355: (eval $ac_compile) 2>conftest.er1
1.66 paf 3356: ac_status=$?
1.86 paf 3357: grep -v '^ *+' conftest.er1 >conftest.err
3358: rm -f conftest.er1
3359: cat conftest.err >&5
1.66 paf 3360: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361: (exit $ac_status); } &&
1.86 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.66 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: ac_cv_prog_cc_stdc=$ac_arg
3376: break
3377: else
3378: echo "$as_me: failed program was:" >&5
3379: sed 's/^/| /' conftest.$ac_ext >&5
3380:
3381: fi
1.86 paf 3382: rm -f conftest.err conftest.$ac_objext
1.66 paf 3383: done
3384: rm -f conftest.$ac_ext conftest.$ac_objext
3385: CC=$ac_save_CC
3386:
3387: fi
3388:
3389: case "x$ac_cv_prog_cc_stdc" in
3390: x|xno)
3391: echo "$as_me:$LINENO: result: none needed" >&5
3392: echo "${ECHO_T}none needed" >&6 ;;
3393: *)
3394: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3395: echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3396: CC="$CC $ac_cv_prog_cc_stdc" ;;
3397: esac
3398:
3399: # Some people use a C++ compiler to compile C. Since we use `exit',
3400: # in C++ we need to declare it. In case someone uses the same compiler
3401: # for both compiling C and C++ we need to have the C++ compiler decide
3402: # the declaration of exit, since it's the most demanding environment.
3403: cat >conftest.$ac_ext <<_ACEOF
3404: #ifndef __cplusplus
3405: choke me
3406: #endif
3407: _ACEOF
3408: rm -f conftest.$ac_objext
3409: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 3410: (eval $ac_compile) 2>conftest.er1
1.66 paf 3411: ac_status=$?
1.86 paf 3412: grep -v '^ *+' conftest.er1 >conftest.err
3413: rm -f conftest.er1
3414: cat conftest.err >&5
1.66 paf 3415: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416: (exit $ac_status); } &&
1.86 paf 3417: { ac_try='test -z "$ac_c_werror_flag"
3418: || test ! -s conftest.err'
3419: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3420: (eval $ac_try) 2>&5
3421: ac_status=$?
3422: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3423: (exit $ac_status); }; } &&
3424: { ac_try='test -s conftest.$ac_objext'
1.66 paf 3425: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3426: (eval $ac_try) 2>&5
3427: ac_status=$?
3428: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3429: (exit $ac_status); }; }; then
3430: for ac_declaration in \
1.86 paf 3431: '' \
1.62 paf 3432: 'extern "C" void std::exit (int) throw (); using std::exit;' \
3433: 'extern "C" void std::exit (int); using std::exit;' \
3434: 'extern "C" void exit (int) throw ();' \
3435: 'extern "C" void exit (int);' \
3436: 'void exit (int);'
3437: do
3438: cat >conftest.$ac_ext <<_ACEOF
3439: /* confdefs.h. */
3440: _ACEOF
3441: cat confdefs.h >>conftest.$ac_ext
3442: cat >>conftest.$ac_ext <<_ACEOF
3443: /* end confdefs.h. */
1.86 paf 3444: $ac_declaration
1.62 paf 3445: #include <stdlib.h>
3446: int
3447: main ()
3448: {
3449: exit (42);
3450: ;
3451: return 0;
3452: }
3453: _ACEOF
3454: rm -f conftest.$ac_objext
3455: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 3456: (eval $ac_compile) 2>conftest.er1
1.62 paf 3457: ac_status=$?
1.86 paf 3458: grep -v '^ *+' conftest.er1 >conftest.err
3459: rm -f conftest.er1
3460: cat conftest.err >&5
1.62 paf 3461: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3462: (exit $ac_status); } &&
1.86 paf 3463: { ac_try='test -z "$ac_c_werror_flag"
3464: || test ! -s conftest.err'
3465: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3466: (eval $ac_try) 2>&5
3467: ac_status=$?
3468: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469: (exit $ac_status); }; } &&
3470: { ac_try='test -s conftest.$ac_objext'
1.62 paf 3471: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3472: (eval $ac_try) 2>&5
3473: ac_status=$?
3474: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475: (exit $ac_status); }; }; then
3476: :
3477: else
3478: echo "$as_me: failed program was:" >&5
3479: sed 's/^/| /' conftest.$ac_ext >&5
3480:
3481: continue
3482: fi
1.86 paf 3483: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.62 paf 3484: cat >conftest.$ac_ext <<_ACEOF
3485: /* confdefs.h. */
3486: _ACEOF
3487: cat confdefs.h >>conftest.$ac_ext
3488: cat >>conftest.$ac_ext <<_ACEOF
3489: /* end confdefs.h. */
3490: $ac_declaration
3491: int
3492: main ()
3493: {
3494: exit (42);
3495: ;
3496: return 0;
3497: }
3498: _ACEOF
3499: rm -f conftest.$ac_objext
3500: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 3501: (eval $ac_compile) 2>conftest.er1
1.62 paf 3502: ac_status=$?
1.86 paf 3503: grep -v '^ *+' conftest.er1 >conftest.err
3504: rm -f conftest.er1
3505: cat conftest.err >&5
1.62 paf 3506: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507: (exit $ac_status); } &&
1.86 paf 3508: { ac_try='test -z "$ac_c_werror_flag"
3509: || test ! -s conftest.err'
3510: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3511: (eval $ac_try) 2>&5
3512: ac_status=$?
3513: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514: (exit $ac_status); }; } &&
3515: { ac_try='test -s conftest.$ac_objext'
1.62 paf 3516: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3517: (eval $ac_try) 2>&5
3518: ac_status=$?
3519: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520: (exit $ac_status); }; }; then
3521: break
3522: else
3523: echo "$as_me: failed program was:" >&5
3524: sed 's/^/| /' conftest.$ac_ext >&5
3525:
3526: fi
1.86 paf 3527: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.62 paf 3528: done
3529: rm -f conftest*
3530: if test -n "$ac_declaration"; then
3531: echo '#ifdef __cplusplus' >>confdefs.h
3532: echo $ac_declaration >>confdefs.h
3533: echo '#endif' >>confdefs.h
3534: fi
3535:
1.66 paf 3536: else
3537: echo "$as_me: failed program was:" >&5
3538: sed 's/^/| /' conftest.$ac_ext >&5
3539:
3540: fi
1.86 paf 3541: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.62 paf 3542: ac_ext=c
3543: ac_cpp='$CPP $CPPFLAGS'
3544: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3545: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3546: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3547:
1.66 paf 3548: depcc="$CC" am_compiler_list=
1.62 paf 3549:
3550: echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3551: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
1.66 paf 3552: if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
1.62 paf 3553: echo $ECHO_N "(cached) $ECHO_C" >&6
3554: else
3555: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3556: # We make a subdir and do the tests there. Otherwise we can end up
3557: # making bogus files that we don't know about and never remove. For
3558: # instance it was reported that on HP-UX the gcc test will end up
3559: # making a dummy file named `D' -- because `-MD' means `put the output
3560: # in D'.
3561: mkdir conftest.dir
3562: # Copy depcomp to subdir because otherwise we won't find it if we're
3563: # using a relative directory.
3564: cp "$am_depcomp" conftest.dir
3565: cd conftest.dir
1.86 paf 3566: # We will build objects and dependencies in a subdirectory because
3567: # it helps to detect inapplicable dependency modes. For instance
3568: # both Tru64's cc and ICC support -MD to output dependencies as a
3569: # side effect of compilation, but ICC will put the dependencies in
3570: # the current directory while Tru64 will put them in the object
3571: # directory.
3572: mkdir sub
1.62 paf 3573:
1.66 paf 3574: am_cv_CC_dependencies_compiler_type=none
1.62 paf 3575: if test "$am_compiler_list" = ""; then
3576: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3577: fi
3578: for depmode in $am_compiler_list; do
1.86 paf 3579: # Setup a source with many dependencies, because some compilers
3580: # like to wrap large dependency lists on column 80 (with \), and
3581: # we should not choose a depcomp mode which is confused by this.
3582: #
1.62 paf 3583: # We need to recreate these files for each test, as the compiler may
3584: # overwrite some of them when testing with obscure command lines.
3585: # This happens at least with the AIX C compiler.
1.86 paf 3586: : > sub/conftest.c
3587: for i in 1 2 3 4 5 6; do
3588: echo '#include "conftst'$i'.h"' >> sub/conftest.c
3589: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3590: # Solaris 8's {/usr,}/bin/sh.
3591: touch sub/conftst$i.h
3592: done
3593: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.62 paf 3594:
3595: case $depmode in
3596: nosideeffect)
3597: # after this tag, mechanisms are not by side-effect, so they'll
3598: # only be used when explicitly requested
3599: if test "x$enable_dependency_tracking" = xyes; then
3600: continue
3601: else
3602: break
3603: fi
3604: ;;
3605: none) break ;;
3606: esac
3607: # We check with `-c' and `-o' for the sake of the "dashmstdout"
3608: # mode. It turns out that the SunPro C++ compiler does not properly
3609: # handle `-M -o', and we need to detect this.
1.66 paf 3610: if depmode=$depmode \
1.86 paf 3611: source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3612: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3613: $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3614: >/dev/null 2>conftest.err &&
3615: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3616: grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
1.66 paf 3617: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.86 paf 3618: # icc doesn't choke on unknown options, it will just issue warnings
3619: # or remarks (even with -Werror). So we grep stderr for any message
3620: # that says an option was ignored or not supported.
3621: # When given -MP, icc 7.0 and 7.1 complain thusly:
3622: # icc: Command line warning: ignoring option '-M'; no argument required
3623: # The diagnosis changed in icc 8.0:
3624: # icc: Command line remark: option '-MP' not supported
3625: if (grep 'ignoring option' conftest.err ||
3626: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3627: am_cv_CC_dependencies_compiler_type=$depmode
3628: break
3629: fi
1.66 paf 3630: fi
3631: done
3632:
3633: cd ..
3634: rm -rf conftest.dir
3635: else
3636: am_cv_CC_dependencies_compiler_type=none
3637: fi
3638:
3639: fi
3640: echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3641: echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3642: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3643:
3644:
3645:
3646: if
3647: test "x$enable_dependency_tracking" != xno \
3648: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3649: am__fastdepCC_TRUE=
3650: am__fastdepCC_FALSE='#'
3651: else
3652: am__fastdepCC_TRUE='#'
3653: am__fastdepCC_FALSE=
3654: fi
3655:
3656:
1.128 moko 3657:
1.66 paf 3658: ac_ext=c
3659: ac_cpp='$CPP $CPPFLAGS'
3660: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3661: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3662: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3663:
1.67 paf 3664:
1.62 paf 3665:
1.128 moko 3666: echo "$as_me:$LINENO: checking for dynamic-link library extension" >&5
3667: echo $ECHO_N "checking for dynamic-link library extension... $ECHO_C" >&6
3668: case "$host_os" in
3669: cygwin)
3670: dll_extension=dll
3671: ;;
3672: *)
3673: dll_extension=so
1.66 paf 3674: esac
1.128 moko 3675: echo "$as_me:$LINENO: result: $dll_extension" >&5
3676: echo "${ECHO_T}$dll_extension" >&6
1.1 paf 3677:
1.71 paf 3678:
3679:
3680:
3681: # Check whether --with-build-warnings or --without-build-warnings was given.
3682: if test "${with_build_warnings+set}" = set; then
3683: withval="$with_build_warnings"
3684: { echo "$as_me:$LINENO: WARNING: enabling compiler warnings" >&5
3685: echo "$as_me: WARNING: enabling compiler warnings" >&2;}
3686: CXXFLAGS="$CXXFLAGS -W -Wall -Wstrict-prototypes -Wmissing-prototypes"
3687:
3688: fi;
1.1 paf 3689:
3690:
1.67 paf 3691: # Check whether --with-assertions or --without-assertions was given.
3692: if test "${with_assertions+set}" = set; then
3693: withval="$with_assertions"
3694: { echo "$as_me:$LINENO: WARNING: enabling assertions" >&5
3695: echo "$as_me: WARNING: enabling assertions" >&2;}
3696:
3697: else
3698:
3699: cat >>confdefs.h <<\_ACEOF
3700: #define NDEBUG
3701: _ACEOF
3702:
3703:
3704: fi;
3705:
1.94 misha 3706:
1.128 moko 3707: # Check whether --with-pathlink or --without-pathlink was given.
3708: if test "${with_pathlink+set}" = set; then
3709: withval="$with_pathlink"
3710: LD_PATHLINK=$withval
3711:
3712: fi;
3713:
3714:
3715: # Check whether --with-sjlj-exceptions or --without-sjlj-exceptions was given.
3716: if test "${with_sjlj_exceptions+set}" = set; then
3717: withval="$with_sjlj_exceptions"
3718:
3719: cat >>confdefs.h <<\_ACEOF
3720: #define PA_WITH_SJLJ_EXCEPTIONS
3721: _ACEOF
3722:
3723:
3724: fi;
3725:
3726:
1.60 paf 3727: # Check whether --enable-safe-mode or --disable-safe-mode was given.
3728: if test "${enable_safe_mode+set}" = set; then
3729: enableval="$enable_safe_mode"
1.62 paf 3730:
1.67 paf 3731: SAFE_MODE=$enableval
1.60 paf 3732:
1.1 paf 3733:
1.62 paf 3734: fi;
1.128 moko 3735:
1.60 paf 3736: if test "$SAFE_MODE" = "no"; then
1.62 paf 3737: { echo "$as_me:$LINENO: WARNING: enabling reading of files belonging to group+user other then effective" >&5
3738: echo "$as_me: WARNING: enabling reading of files belonging to group+user other then effective" >&2;}
1.60 paf 3739: else
1.62 paf 3740:
3741: cat >>confdefs.h <<\_ACEOF
3742: #define PA_SAFE_MODE
3743: _ACEOF
1.1 paf 3744:
3745: fi
3746:
1.94 misha 3747:
1.13 paf 3748: # Check whether --enable-execs or --disable-execs was given.
3749: if test "${enable_execs+set}" = set; then
3750: enableval="$enable_execs"
1.62 paf 3751:
1.13 paf 3752: if test "$enableval" = "no"; then
1.62 paf 3753: { echo "$as_me:$LINENO: WARNING: disabling file execs" >&5
3754: echo "$as_me: WARNING: disabling file execs" >&2;}
3755:
3756: cat >>confdefs.h <<\_ACEOF
3757: #define NO_PA_EXECS
3758: _ACEOF
1.13 paf 3759:
3760: fi
3761:
3762:
1.62 paf 3763: fi;
1.13 paf 3764:
1.60 paf 3765:
1.94 misha 3766: # Check whether --enable-stringstream or --disable-stringstream was given.
3767: if test "${enable_stringstream+set}" = set; then
3768: enableval="$enable_stringstream"
3769:
3770: if test "$enableval" = "no"; then
3771: { echo "$as_me:$LINENO: WARNING: disabling stringstream usage" >&5
3772: echo "$as_me: WARNING: disabling stringstream usage" >&2;}
3773:
3774: cat >>confdefs.h <<\_ACEOF
3775: #define NO_STRINGSTREAM
3776: _ACEOF
3777:
3778: fi
3779:
3780:
3781: fi;
3782:
3783:
1.128 moko 3784: GC_LIB_NAME=gc
1.62 paf 3785:
1.128 moko 3786: # Check whether --with-shared-gc or --without-shared-gc was given.
3787: if test "${with_shared_gc+set}" = set; then
3788: withval="$with_shared_gc"
1.17 paf 3789:
1.128 moko 3790: GC_LIBS="-L$withval -l$GC_LIB_NAME"
1.17 paf 3791:
1.128 moko 3792: fi;
1.62 paf 3793:
1.128 moko 3794: # Check whether --with-static-gc or --without-static-gc was given.
3795: if test "${with_static_gc+set}" = set; then
3796: withval="$with_static_gc"
1.17 paf 3797:
1.138 moko 3798: GC_LIBS="$withval/lib$GC_LIB_NAME.la"
1.17 paf 3799:
1.128 moko 3800: fi;
3801: if test -z "$GC_LIBS"; then
3802: #undefined? use any found in system
3803: GC_LIBS="-l$GC_LIB_NAME"
3804: { echo "$as_me:$LINENO: WARNING: neither --with-shared/static-gc were specified, hoping linker would find it" >&5
3805: echo "$as_me: WARNING: neither --with-shared/static-gc were specified, hoping linker would find it" >&2;}
1.17 paf 3806:
1.138 moko 3807: echo "$as_me:$LINENO: checking for libgc" >&5
1.128 moko 3808: echo $ECHO_N "checking for libgc... $ECHO_C" >&6
1.138 moko 3809: SAVE_LIBS=$LIBS
3810: LIBS="$LIBS $GC_LIBS"
1.128 moko 3811:
1.67 paf 3812: cat >conftest.$ac_ext <<_ACEOF
3813: /* confdefs.h. */
3814: _ACEOF
3815: cat confdefs.h >>conftest.$ac_ext
3816: cat >>conftest.$ac_ext <<_ACEOF
3817: /* end confdefs.h. */
3818:
1.138 moko 3819: extern int GC_dont_gc;
1.67 paf 3820:
3821: int
3822: main ()
3823: {
3824:
1.138 moko 3825: GC_dont_gc=0;
1.67 paf 3826:
3827: ;
3828: return 0;
3829: }
3830: _ACEOF
3831: rm -f conftest.$ac_objext conftest$ac_exeext
3832: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 3833: (eval $ac_link) 2>conftest.er1
1.67 paf 3834: ac_status=$?
1.86 paf 3835: grep -v '^ *+' conftest.er1 >conftest.err
3836: rm -f conftest.er1
3837: cat conftest.err >&5
1.67 paf 3838: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839: (exit $ac_status); } &&
1.86 paf 3840: { ac_try='test -z "$ac_c_werror_flag"
3841: || test ! -s conftest.err'
3842: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3843: (eval $ac_try) 2>&5
3844: ac_status=$?
3845: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846: (exit $ac_status); }; } &&
3847: { ac_try='test -s conftest$ac_exeext'
1.67 paf 3848: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3849: (eval $ac_try) 2>&5
3850: ac_status=$?
3851: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852: (exit $ac_status); }; }; then
3853: echo "$as_me:$LINENO: result: yes" >&5
3854: echo "${ECHO_T}yes" >&6
3855:
3856: else
3857: echo "$as_me: failed program was:" >&5
3858: sed 's/^/| /' conftest.$ac_ext >&5
3859:
3860: echo "$as_me:$LINENO: result: no" >&5
3861: echo "${ECHO_T}no" >&6
1.138 moko 3862: { { echo "$as_me:$LINENO: error: please specify path to libgc: --with-shared-gc OR --with-static-gc" >&5
1.67 paf 3863: echo "$as_me: error: please specify path to libgc: --with-shared-gc OR --with-static-gc" >&2;}
3864: { (exit 1); exit 1; }; }
3865:
3866: fi
1.86 paf 3867: rm -f conftest.err conftest.$ac_objext \
3868: conftest$ac_exeext conftest.$ac_ext
1.138 moko 3869: LIBS=$SAVE_LIBS
3870: fi
1.67 paf 3871:
3872:
1.1 paf 3873:
1.15 paf 3874:
1.100 misha 3875: # Check whether --with-static-pcre or --without-static-pcre was given.
3876: if test "${with_static_pcre+set}" = set; then
3877: withval="$with_static_pcre"
3878:
3879: PCRE=$withval
3880: PCREINC="$PCRE/include"
3881: PCRELIB="$PCRE/lib"
3882:
3883: if test \! -d $PCREINC -o \! -d $PCRELIB; then
3884: { { echo "$as_me:$LINENO: error: $PCRE does not seem to be valid PCRE installation directory" >&5
3885: echo "$as_me: error: $PCRE does not seem to be valid PCRE installation directory" >&2;}
3886: { (exit 1); exit 1; }; }
3887: fi
3888:
3889: PCRE_INCLUDES="-I$PCREINC"
1.138 moko 3890: PCRE_LIBS="$PCRELIB/libpcre.la"
1.100 misha 3891:
3892: fi;
3893:
3894:
3895:
3896:
3897:
1.66 paf 3898: # Check whether --with-shared-xml or --without-shared-xml was given.
3899: if test "${with_shared_xml+set}" = set; then
3900: withval="$with_shared_xml"
3901:
1.67 paf 3902: GNOME_XML=$withval
3903: XMLBIN="$GNOME_XML/bin"
3904: XMLINC="$GNOME_XML/include"
3905: XMLLIB="$GNOME_XML/lib"
1.66 paf 3906:
1.67 paf 3907: if test \! -d $XMLBIN -o \! -d $XMLINC -o \! -d $XMLLIB; then
3908: { { echo "$as_me:$LINENO: error: $GNOME_XML does not seem to be valid Gnome installation directory" >&5
1.66 paf 3909: echo "$as_me: error: $GNOME_XML does not seem to be valid Gnome installation directory" >&2;}
3910: { (exit 1); exit 1; }; }
1.67 paf 3911: fi
1.66 paf 3912:
3913:
3914: cat >>confdefs.h <<\_ACEOF
3915: #define XML
3916: _ACEOF
3917:
3918:
1.67 paf 3919: LIBXML2_SO_NAME=`cd $XMLLIB ; ls libxml2.?? libxml2.??? 2>/dev/null | grep -v \.la$ | sed 's/lib//' | sed 's/\..*//'`
3920: LIBXSLT_SO_NAME=`cd $XMLLIB ; ls libxslt.?? libxslt.??? 2>/dev/null | grep -v \.la$ | sed 's/lib//' | sed 's/\..*//'`
3921: LIBEXSLT_SO_NAME=`cd $XMLLIB ; ls libexslt.?? libexslt.??? 2>/dev/null | grep -v \.la$ | sed 's/lib//' | sed 's/\..*//'`
3922:
1.90 paf 3923: XML_INCLUDES="$GLIB_CFLAGS -I$XMLINC -I$XMLINC/libxml2"
3924: XML_LIBS="-L$XMLLIB -l$LIBXML2_SO_NAME -l$LIBXSLT_SO_NAME -l$LIBEXSLT_SO_NAME"
1.67 paf 3925: if test \! -z "$LD_PATHLINK"; then
1.66 paf 3926: XML_LIBS="$XML_LIBS -Wl,$LD_PATHLINK -Wl,$XMLLIB"
1.67 paf 3927: fi
1.66 paf 3928:
3929: fi;
3930:
3931: # Check whether --with-static-xml or --without-static-xml was given.
3932: if test "${with_static_xml+set}" = set; then
3933: withval="$with_static_xml"
3934:
1.67 paf 3935: GNOME_XML=$withval
3936: XMLBIN="$GNOME_XML/bin"
3937: XMLINC="$GNOME_XML/include"
3938: XMLLIB="$GNOME_XML/lib"
1.66 paf 3939:
1.67 paf 3940: if test \! -d $XMLBIN -o \! -d $XMLINC -o \! -d $XMLLIB; then
3941: { { echo "$as_me:$LINENO: error: $GNOME_XML does not seem to be valid Gnome installation directory" >&5
1.66 paf 3942: echo "$as_me: error: $GNOME_XML does not seem to be valid Gnome installation directory" >&2;}
3943: { (exit 1); exit 1; }; }
1.67 paf 3944: fi
1.66 paf 3945:
3946:
3947: cat >>confdefs.h <<\_ACEOF
3948: #define XML
3949: _ACEOF
3950:
3951:
1.90 paf 3952: XML_INCLUDES="$GLIB_CFLAGS -I$XMLINC -I$XMLINC/libxml2"
1.138 moko 3953: XML_LIBS="$XMLLIB/libxslt.la $XMLLIB/libexslt.la $XMLLIB/libxml2.la"
1.90 paf 3954:
3955: fi;
1.66 paf 3956:
3957:
3958:
3959:
1.90 paf 3960: # Check whether --with-glib-config or --without-glib-config was given.
3961: if test "${with_glib_config+set}" = set; then
3962: withval="$with_glib_config"
3963: GLIB_CONFIG=$withval
3964:
3965: fi;
1.66 paf 3966:
3967:
3968: # Check whether --with-shared-mailreceive or --without-shared-mailreceive was given.
3969: if test "${with_shared_mailreceive+set}" = set; then
3970: withval="$with_shared_mailreceive"
3971:
1.67 paf 3972: GNOME_MIME=$withval
3973: MIMEBIN="$GNOME_MIME/bin"
3974: MIMEINC="$GNOME_MIME/include"
3975: MIMELIB="$GNOME_MIME/lib"
1.66 paf 3976:
1.67 paf 3977: if test \! -d $MIMEBIN -o \! -d $MIMEINC -o \! -d $MIMELIB; then
3978: { { echo "$as_me:$LINENO: error: $GNOME_MIME does not seem to be valid Gnome installation directory" >&5
1.66 paf 3979: echo "$as_me: error: $GNOME_MIME does not seem to be valid Gnome installation directory" >&2;}
3980: { (exit 1); exit 1; }; }
1.67 paf 3981: fi
1.66 paf 3982:
3983:
3984: cat >>confdefs.h <<\_ACEOF
3985: #define WITH_MAILRECEIVE
3986: _ACEOF
3987:
3988:
1.67 paf 3989: LIBMIME_SO_NAME=`cd $MIMELIB ; ls libgmime.?? libgmime.??? 2>/dev/null | grep -v \.la$ | sed 's/lib//' | sed 's/\..*//'`
1.66 paf 3990:
1.67 paf 3991: if test -z "$GLIB_CONFIG"; then
1.90 paf 3992: GLIB_CONFIG=$XMLBIN/glib-config
1.67 paf 3993: if test \! -x $GLIB_CONFIG; then
1.90 paf 3994: GLIB_CONFIG=$XMLBIN/glib2-config
3995: if test \! -x $GLIB_CONFIG; then
3996: GLIB_CONFIG=glib-config
3997: fi
1.67 paf 3998: fi
3999: fi
4000: GLIB_CFLAGS=`$GLIB_CONFIG --cflags`
4001: GLIB_LIBS=`$GLIB_CONFIG --libs`
1.66 paf 4002:
1.67 paf 4003: MIME_INCLUDES="$GLIB_CFLAGS -I$MIMEINC/gmime"
4004: MIME_LIBS="$GLIB_LIBS -L$MIMELIB -l$LIBMIME_SO_NAME"
4005: if test \! -z "$LD_PATHLINK"; then
1.66 paf 4006: MIME_LIBS="$MIME_LIBS -Wl,$LD_PATHLINK -Wl,$MIMELIB"
1.67 paf 4007: fi
1.66 paf 4008:
4009: fi;
4010:
4011: # Check whether --with-static-mailreceive or --without-static-mailreceive was given.
4012: if test "${with_static_mailreceive+set}" = set; then
4013: withval="$with_static_mailreceive"
4014:
1.67 paf 4015: GNOME_MIME=$withval
4016: MIMEBIN="$GNOME_MIME/bin"
4017: MIMEINC="$GNOME_MIME/include"
4018: MIMELIB="$GNOME_MIME/lib"
1.66 paf 4019:
1.67 paf 4020: if test \! -d $MIMEBIN -o \! -d $MIMEINC -o \! -d $MIMELIB; then
4021: { { echo "$as_me:$LINENO: error: $GNOME_MIME does not seem to be valid Gnome installation directory" >&5
1.66 paf 4022: echo "$as_me: error: $GNOME_MIME does not seem to be valid Gnome installation directory" >&2;}
4023: { (exit 1); exit 1; }; }
1.67 paf 4024: fi
1.66 paf 4025:
4026:
4027: cat >>confdefs.h <<\_ACEOF
4028: #define WITH_MAILRECEIVE
4029: _ACEOF
4030:
4031:
1.67 paf 4032: if test -z "$GLIB_CONFIG"; then
1.90 paf 4033: GLIB_CONFIG=$XMLBIN/glib-config
1.67 paf 4034: if test \! -x $GLIB_CONFIG; then
1.90 paf 4035: GLIB_CONFIG=$XMLBIN/glib2-config
4036: if test \! -x $GLIB_CONFIG; then
4037: GLIB_CONFIG=glib-config
4038: fi
1.67 paf 4039: fi
4040: fi
4041: GLIB_CFLAGS=`$GLIB_CONFIG --cflags`
1.66 paf 4042:
1.67 paf 4043: GLIB_DIR=`$GLIB_CONFIG --libs | sed 's/.*-L\([^ ]*\).*/\1/'`
4044: GLIB_NAME=`$GLIB_CONFIG --libs | sed 's/.*-l\([^ ]*\).*/\1/'`
4045: MIME_INCLUDES="$GLIB_CFLAGS -I$MIMEINC/gmime"
1.138 moko 4046: MIME_LIBS="$MIMELIB/libgmime.la $GLIB_DIR/lib$GLIB_NAME.la"
1.66 paf 4047:
4048: fi;
4049:
4050:
4051:
4052:
4053:
4054: # Check whether --with-sendmail or --without-sendmail was given.
4055: if test "${with_sendmail+set}" = set; then
4056: withval="$with_sendmail"
4057:
4058: cat >>confdefs.h <<_ACEOF
4059: #define PA_FORCED_SENDMAIL "$withval"
4060: _ACEOF
4061:
4062:
4063: fi;
4064:
4065:
4066:
1.122 moko 4067: # Check whether --with-apache or --without-apache was given.
4068: if test "${with_apache+set}" = set; then
4069: withval="$with_apache"
4070:
4071: APXS=$withval
4072:
4073: if test -z "$APXS" -o "$APXS" = "yes"; then
4074: APXS=`which apxs 2>/dev/null`
4075: fi;
4076:
4077: APACHE=`$APXS -q TARGET 2>/dev/null`
4078:
4079: if test -z "$APACHE"; then
1.132 moko 4080: APXS=`which apxs2 2>/dev/null`
4081: APACHE=`$APXS -q TARGET 2>/dev/null`
4082:
4083: if test -z "$APACHE"; then
4084: { { echo "$as_me:$LINENO: error: $APXS does not seem to be valid apache apxs utility path" >&5
1.122 moko 4085: echo "$as_me: error: $APXS does not seem to be valid apache apxs utility path" >&2;}
1.66 paf 4086: { (exit 1); exit 1; }; }
1.132 moko 4087: fi
1.67 paf 4088: fi
1.7 paf 4089:
1.122 moko 4090: APACHE_MAIN_INC=`$APXS -q INCLUDEDIR`
4091: APACHE_EXTRA_INC=`$APXS -q EXTRA_INCLUDES 2>/dev/null`
4092: APACHE_INC="-I$APACHE_MAIN_INC $APACHE_EXTRA_INC"
4093: APACHE_CFLAGS=`$APXS -q CFLAGS`
4094:
1.62 paf 4095: fi;
1.7 paf 4096:
4097:
1.62 paf 4098:
1.122 moko 4099:
4100:
4101: if test -n "$APACHE"; then
4102: COMPILE_APACHE_MODULE_TRUE=
4103: COMPILE_APACHE_MODULE_FALSE='#'
1.66 paf 4104: else
1.122 moko 4105: COMPILE_APACHE_MODULE_TRUE='#'
4106: COMPILE_APACHE_MODULE_FALSE=
1.66 paf 4107: fi
1.1 paf 4108:
4109:
4110:
1.62 paf 4111:
4112:
1.7 paf 4113:
1.1 paf 4114:
4115:
4116:
1.62 paf 4117:
1.128 moko 4118: case `pwd` in
4119: *\ * | *\ *)
4120: { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4121: echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4122: esac
4123:
4124:
4125:
4126: macro_version='2.4.2'
4127: macro_revision='1.3337'
4128:
4129:
4130:
4131:
4132:
4133:
4134:
4135:
4136:
4137:
4138:
4139:
4140:
4141: ltmain="$ac_aux_dir/ltmain.sh"
4142:
4143: # Backslashify metacharacters that are still active within
4144: # double-quoted strings.
4145: sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
1.10 paf 4146:
1.128 moko 4147: # Same as above, but do not quote variable references.
4148: double_quote_subst='s/\(["`\\]\)/\\\1/g'
1.10 paf 4149:
1.128 moko 4150: # Sed substitution to delay expansion of an escaped shell variable in a
4151: # double_quote_subst'ed string.
4152: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1.62 paf 4153:
1.128 moko 4154: # Sed substitution to delay expansion of an escaped single quote.
4155: delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
1.86 paf 4156:
1.128 moko 4157: # Sed substitution to avoid accidental globbing in evaled expressions
4158: no_glob_subst='s/\*/\\\*/g'
1.86 paf 4159:
1.128 moko 4160: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4161: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4162: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1.86 paf 4163:
1.128 moko 4164: echo "$as_me:$LINENO: checking how to print strings" >&5
4165: echo $ECHO_N "checking how to print strings... $ECHO_C" >&6
4166: # Test print first, because it will be a builtin if present.
4167: if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4168: test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4169: ECHO='print -r --'
4170: elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4171: ECHO='printf %s\n'
4172: else
4173: # Use this function as a fallback that always works.
4174: func_fallback_echo ()
4175: {
4176: eval 'cat <<_LTECHO_EOF
4177: $1
4178: _LTECHO_EOF'
4179: }
4180: ECHO='func_fallback_echo'
4181: fi
1.86 paf 4182:
1.128 moko 4183: # func_echo_all arg...
4184: # Invoke $ECHO with all args, space-separated.
4185: func_echo_all ()
1.66 paf 4186: {
1.128 moko 4187: $ECHO ""
1.66 paf 4188: }
1.10 paf 4189:
1.128 moko 4190: case "$ECHO" in
4191: printf*) echo "$as_me:$LINENO: result: printf" >&5
4192: echo "${ECHO_T}printf" >&6 ;;
4193: print*) echo "$as_me:$LINENO: result: print -r" >&5
4194: echo "${ECHO_T}print -r" >&6 ;;
4195: *) echo "$as_me:$LINENO: result: cat" >&5
4196: echo "${ECHO_T}cat" >&6 ;;
4197: esac
4198:
4199:
4200:
4201:
4202:
4203:
4204:
4205:
4206:
4207:
4208:
4209:
4210:
4211:
4212: echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4213: echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4214: if test "${lt_cv_path_SED+set}" = set; then
4215: echo $ECHO_N "(cached) $ECHO_C" >&6
1.66 paf 4216: else
1.128 moko 4217: # Loop through the user's path and test for sed and gsed.
4218: # Then use that list of sed's as ones to test for truncation.
4219: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4220: for as_dir in $PATH
4221: do
4222: IFS=$as_save_IFS
4223: test -z "$as_dir" && as_dir=.
4224: for lt_ac_prog in sed gsed; do
4225: for ac_exec_ext in '' $ac_executable_extensions; do
4226: if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4227: lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4228: fi
4229: done
4230: done
4231: done
4232: IFS=$as_save_IFS
4233: lt_ac_max=0
4234: lt_ac_count=0
4235: # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4236: # along with /bin/sed that truncates output.
4237: for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4238: test ! -f $lt_ac_sed && continue
4239: cat /dev/null > conftest.in
4240: lt_ac_count=0
4241: echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4242: # Check for GNU sed and select it if it is found.
4243: if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4244: lt_cv_path_SED=$lt_ac_sed
4245: break
4246: fi
4247: while true; do
4248: cat conftest.in conftest.in >conftest.tmp
4249: mv conftest.tmp conftest.in
4250: cp conftest.in conftest.nl
4251: echo >>conftest.nl
4252: $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4253: cmp -s conftest.out conftest.nl || break
4254: # 10000 chars as input seems more than enough
4255: test $lt_ac_count -gt 10 && break
4256: lt_ac_count=`expr $lt_ac_count + 1`
4257: if test $lt_ac_count -gt $lt_ac_max; then
4258: lt_ac_max=$lt_ac_count
4259: lt_cv_path_SED=$lt_ac_sed
4260: fi
4261: done
4262: done
1.10 paf 4263:
1.66 paf 4264: fi
1.10 paf 4265:
1.128 moko 4266: SED=$lt_cv_path_SED
4267:
4268: echo "$as_me:$LINENO: result: $SED" >&5
4269: echo "${ECHO_T}$SED" >&6
4270:
4271: test -z "$SED" && SED=sed
4272: Xsed="$SED -e 1s/^X//"
1.10 paf 4273:
1.128 moko 4274:
4275:
4276:
4277:
4278:
4279:
4280:
4281:
4282:
4283:
4284: echo "$as_me:$LINENO: checking for egrep" >&5
4285: echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4286: if test "${ac_cv_prog_egrep+set}" = set; then
4287: echo $ECHO_N "(cached) $ECHO_C" >&6
4288: else
4289: if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4290: then ac_cv_prog_egrep='grep -E'
4291: else ac_cv_prog_egrep='egrep'
4292: fi
4293: fi
4294: echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4295: echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4296: EGREP=$ac_cv_prog_egrep
4297:
4298:
4299: echo "$as_me:$LINENO: checking for fgrep" >&5
4300: echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4301: if test "${ac_cv_prog_fgrep+set}" = set; then
4302: echo $ECHO_N "(cached) $ECHO_C" >&6
4303: else
4304: if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4305: then ac_cv_prog_fgrep='grep -F'
4306: else ac_cv_prog_fgrep='fgrep'
4307: fi
4308: fi
4309: echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4310: echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4311: FGREP=$ac_cv_prog_fgrep
4312:
4313:
4314: test -z "$GREP" && GREP=grep
4315:
4316:
4317:
4318:
4319:
4320:
4321:
4322:
4323:
4324:
4325:
4326:
4327:
4328:
4329:
4330:
4331:
4332:
4333:
4334: # Check whether --with-gnu-ld or --without-gnu-ld was given.
4335: if test "${with_gnu_ld+set}" = set; then
4336: withval="$with_gnu_ld"
4337: test "$withval" = no || with_gnu_ld=yes
4338: else
4339: with_gnu_ld=no
4340: fi;
4341: ac_prog=ld
4342: if test "$GCC" = yes; then
4343: # Check if gcc -print-prog-name=ld gives a path.
4344: echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4345: echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4346: case $host in
4347: *-*-mingw*)
4348: # gcc leaves a trailing carriage return which upsets mingw
4349: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4350: *)
4351: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4352: esac
4353: case $ac_prog in
4354: # Accept absolute paths.
4355: [\\/]* | ?:[\\/]*)
4356: re_direlt='/[^/][^/]*/\.\./'
4357: # Canonicalize the pathname of ld
4358: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4359: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4360: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4361: done
4362: test -z "$LD" && LD="$ac_prog"
4363: ;;
4364: "")
4365: # If it fails, then pretend we aren't using GCC.
4366: ac_prog=ld
4367: ;;
4368: *)
4369: # If it is relative, then search for the first ld in PATH.
4370: with_gnu_ld=unknown
4371: ;;
4372: esac
4373: elif test "$with_gnu_ld" = yes; then
4374: echo "$as_me:$LINENO: checking for GNU ld" >&5
4375: echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4376: else
4377: echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4378: echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4379: fi
4380: if test "${lt_cv_path_LD+set}" = set; then
4381: echo $ECHO_N "(cached) $ECHO_C" >&6
4382: else
4383: if test -z "$LD"; then
4384: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4385: for ac_dir in $PATH; do
4386: IFS="$lt_save_ifs"
4387: test -z "$ac_dir" && ac_dir=.
4388: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4389: lt_cv_path_LD="$ac_dir/$ac_prog"
4390: # Check to see if the program is GNU ld. I'd rather use --version,
4391: # but apparently some variants of GNU ld only accept -v.
4392: # Break only if it was the GNU/non-GNU ld that we prefer.
4393: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4394: *GNU* | *'with BFD'*)
4395: test "$with_gnu_ld" != no && break
4396: ;;
4397: *)
4398: test "$with_gnu_ld" != yes && break
4399: ;;
4400: esac
4401: fi
4402: done
4403: IFS="$lt_save_ifs"
4404: else
4405: lt_cv_path_LD="$LD" # Let the user override the test with a path.
4406: fi
4407: fi
4408:
4409: LD="$lt_cv_path_LD"
4410: if test -n "$LD"; then
4411: echo "$as_me:$LINENO: result: $LD" >&5
4412: echo "${ECHO_T}$LD" >&6
4413: else
4414: echo "$as_me:$LINENO: result: no" >&5
4415: echo "${ECHO_T}no" >&6
4416: fi
4417: test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4418: echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4419: { (exit 1); exit 1; }; }
4420: echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4421: echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4422: if test "${lt_cv_prog_gnu_ld+set}" = set; then
4423: echo $ECHO_N "(cached) $ECHO_C" >&6
4424: else
4425: # I'd rather use --version here, but apparently some GNU lds only accept -v.
4426: case `$LD -v 2>&1 </dev/null` in
4427: *GNU* | *'with BFD'*)
4428: lt_cv_prog_gnu_ld=yes
4429: ;;
4430: *)
4431: lt_cv_prog_gnu_ld=no
4432: ;;
4433: esac
4434: fi
4435: echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4436: echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4437: with_gnu_ld=$lt_cv_prog_gnu_ld
4438:
4439:
4440:
4441:
4442:
4443:
4444:
4445:
4446:
4447: echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4448: echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
4449: if test "${lt_cv_path_NM+set}" = set; then
4450: echo $ECHO_N "(cached) $ECHO_C" >&6
4451: else
4452: if test -n "$NM"; then
4453: # Let the user override the test.
4454: lt_cv_path_NM="$NM"
4455: else
4456: lt_nm_to_check="${ac_tool_prefix}nm"
4457: if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4458: lt_nm_to_check="$lt_nm_to_check nm"
4459: fi
4460: for lt_tmp_nm in $lt_nm_to_check; do
4461: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4462: for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4463: IFS="$lt_save_ifs"
4464: test -z "$ac_dir" && ac_dir=.
4465: tmp_nm="$ac_dir/$lt_tmp_nm"
4466: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4467: # Check to see if the nm accepts a BSD-compat flag.
4468: # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4469: # nm: unknown option "B" ignored
4470: # Tru64's nm complains that /dev/null is an invalid object file
4471: case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4472: */dev/null* | *'Invalid file or object type'*)
4473: lt_cv_path_NM="$tmp_nm -B"
4474: break
4475: ;;
4476: *)
4477: case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4478: */dev/null*)
4479: lt_cv_path_NM="$tmp_nm -p"
4480: break
4481: ;;
4482: *)
4483: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4484: continue # so that we can try to find one that supports BSD flags
4485: ;;
4486: esac
4487: ;;
4488: esac
4489: fi
4490: done
4491: IFS="$lt_save_ifs"
4492: done
4493: : ${lt_cv_path_NM=no}
4494: fi
4495: fi
4496: echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4497: echo "${ECHO_T}$lt_cv_path_NM" >&6
4498: if test "$lt_cv_path_NM" != "no"; then
4499: NM="$lt_cv_path_NM"
4500: else
4501: # Didn't find any BSD compatible name lister, look for dumpbin.
4502: if test -n "$DUMPBIN"; then :
4503: # Let the user override the test.
4504: else
4505: if test -n "$ac_tool_prefix"; then
4506: for ac_prog in dumpbin "link -dump"
4507: do
4508: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4509: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4510: echo "$as_me:$LINENO: checking for $ac_word" >&5
4511: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4512: if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4513: echo $ECHO_N "(cached) $ECHO_C" >&6
4514: else
4515: if test -n "$DUMPBIN"; then
4516: ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4517: else
4518: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4519: for as_dir in $PATH
4520: do
4521: IFS=$as_save_IFS
4522: test -z "$as_dir" && as_dir=.
4523: for ac_exec_ext in '' $ac_executable_extensions; do
4524: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4525: ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4526: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4527: break 2
4528: fi
4529: done
4530: done
4531:
4532: fi
4533: fi
4534: DUMPBIN=$ac_cv_prog_DUMPBIN
4535: if test -n "$DUMPBIN"; then
4536: echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4537: echo "${ECHO_T}$DUMPBIN" >&6
4538: else
4539: echo "$as_me:$LINENO: result: no" >&5
4540: echo "${ECHO_T}no" >&6
4541: fi
4542:
4543: test -n "$DUMPBIN" && break
4544: done
4545: fi
4546: if test -z "$DUMPBIN"; then
4547: ac_ct_DUMPBIN=$DUMPBIN
4548: for ac_prog in dumpbin "link -dump"
4549: do
4550: # Extract the first word of "$ac_prog", so it can be a program name with args.
4551: set dummy $ac_prog; ac_word=$2
4552: echo "$as_me:$LINENO: checking for $ac_word" >&5
4553: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4554: if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4555: echo $ECHO_N "(cached) $ECHO_C" >&6
4556: else
4557: if test -n "$ac_ct_DUMPBIN"; then
4558: ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4559: else
4560: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4561: for as_dir in $PATH
4562: do
4563: IFS=$as_save_IFS
4564: test -z "$as_dir" && as_dir=.
4565: for ac_exec_ext in '' $ac_executable_extensions; do
4566: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4567: ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4568: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4569: break 2
4570: fi
4571: done
4572: done
4573:
4574: fi
4575: fi
4576: ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4577: if test -n "$ac_ct_DUMPBIN"; then
4578: echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4579: echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4580: else
4581: echo "$as_me:$LINENO: result: no" >&5
4582: echo "${ECHO_T}no" >&6
4583: fi
4584:
4585: test -n "$ac_ct_DUMPBIN" && break
4586: done
4587: test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
4588:
4589: DUMPBIN=$ac_ct_DUMPBIN
4590: fi
4591:
4592: case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4593: *COFF*)
4594: DUMPBIN="$DUMPBIN -symbols"
4595: ;;
4596: *)
4597: DUMPBIN=:
4598: ;;
4599: esac
4600: fi
4601:
4602: if test "$DUMPBIN" != ":"; then
4603: NM="$DUMPBIN"
4604: fi
4605: fi
4606: test -z "$NM" && NM=nm
4607:
4608:
4609:
4610:
4611:
4612:
4613: echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4614: echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4615: if test "${lt_cv_nm_interface+set}" = set; then
4616: echo $ECHO_N "(cached) $ECHO_C" >&6
4617: else
4618: lt_cv_nm_interface="BSD nm"
4619: echo "int some_variable = 0;" > conftest.$ac_ext
4620: (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4621: (eval "$ac_compile" 2>conftest.err)
4622: cat conftest.err >&5
4623: (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4624: (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4625: cat conftest.err >&5
4626: (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4627: cat conftest.out >&5
4628: if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4629: lt_cv_nm_interface="MS dumpbin"
4630: fi
4631: rm -f conftest*
4632: fi
4633: echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4634: echo "${ECHO_T}$lt_cv_nm_interface" >&6
4635:
4636: echo "$as_me:$LINENO: checking whether ln -s works" >&5
4637: echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4638: LN_S=$as_ln_s
4639: if test "$LN_S" = "ln -s"; then
4640: echo "$as_me:$LINENO: result: yes" >&5
4641: echo "${ECHO_T}yes" >&6
4642: else
4643: echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4644: echo "${ECHO_T}no, using $LN_S" >&6
4645: fi
4646:
4647: # find the maximum length of command line arguments
4648: echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4649: echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4650: if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4651: echo $ECHO_N "(cached) $ECHO_C" >&6
4652: else
4653: i=0
4654: teststring="ABCD"
4655:
4656: case $build_os in
4657: msdosdjgpp*)
4658: # On DJGPP, this test can blow up pretty badly due to problems in libc
4659: # (any single argument exceeding 2000 bytes causes a buffer overrun
4660: # during glob expansion). Even if it were fixed, the result of this
4661: # check would be larger than it should be.
4662: lt_cv_sys_max_cmd_len=12288; # 12K is about right
4663: ;;
4664:
4665: gnu*)
4666: # Under GNU Hurd, this test is not required because there is
4667: # no limit to the length of command line arguments.
4668: # Libtool will interpret -1 as no limit whatsoever
4669: lt_cv_sys_max_cmd_len=-1;
4670: ;;
4671:
4672: cygwin* | mingw* | cegcc*)
4673: # On Win9x/ME, this test blows up -- it succeeds, but takes
4674: # about 5 minutes as the teststring grows exponentially.
4675: # Worse, since 9x/ME are not pre-emptively multitasking,
4676: # you end up with a "frozen" computer, even though with patience
4677: # the test eventually succeeds (with a max line length of 256k).
4678: # Instead, let's just punt: use the minimum linelength reported by
4679: # all of the supported platforms: 8192 (on NT/2K/XP).
4680: lt_cv_sys_max_cmd_len=8192;
4681: ;;
4682:
4683: mint*)
4684: # On MiNT this can take a long time and run out of memory.
4685: lt_cv_sys_max_cmd_len=8192;
4686: ;;
4687:
4688: amigaos*)
4689: # On AmigaOS with pdksh, this test takes hours, literally.
4690: # So we just punt and use a minimum line length of 8192.
4691: lt_cv_sys_max_cmd_len=8192;
4692: ;;
4693:
4694: netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4695: # This has been around since 386BSD, at least. Likely further.
4696: if test -x /sbin/sysctl; then
4697: lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4698: elif test -x /usr/sbin/sysctl; then
4699: lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4700: else
4701: lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4702: fi
4703: # And add a safety zone
4704: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4705: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4706: ;;
4707:
4708: interix*)
4709: # We know the value 262144 and hardcode it with a safety zone (like BSD)
4710: lt_cv_sys_max_cmd_len=196608
4711: ;;
4712:
4713: os2*)
4714: # The test takes a long time on OS/2.
4715: lt_cv_sys_max_cmd_len=8192
4716: ;;
4717:
4718: osf*)
4719: # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4720: # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4721: # nice to cause kernel panics so lets avoid the loop below.
4722: # First set a reasonable default.
4723: lt_cv_sys_max_cmd_len=16384
4724: #
4725: if test -x /sbin/sysconfig; then
4726: case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4727: *1*) lt_cv_sys_max_cmd_len=-1 ;;
4728: esac
4729: fi
4730: ;;
4731: sco3.2v5*)
4732: lt_cv_sys_max_cmd_len=102400
4733: ;;
4734: sysv5* | sco5v6* | sysv4.2uw2*)
4735: kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4736: if test -n "$kargmax"; then
4737: lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4738: else
4739: lt_cv_sys_max_cmd_len=32768
4740: fi
4741: ;;
4742: *)
4743: lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4744: if test -n "$lt_cv_sys_max_cmd_len"; then
4745: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4746: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4747: else
4748: # Make teststring a little bigger before we do anything with it.
4749: # a 1K string should be a reasonable start.
4750: for i in 1 2 3 4 5 6 7 8 ; do
4751: teststring=$teststring$teststring
4752: done
4753: SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4754: # If test is not a shell built-in, we'll probably end up computing a
4755: # maximum length that is only half of the actual maximum length, but
4756: # we can't tell.
4757: while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4758: = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4759: test $i != 17 # 1/2 MB should be enough
4760: do
4761: i=`expr $i + 1`
4762: teststring=$teststring$teststring
4763: done
4764: # Only check the string length outside the loop.
4765: lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4766: teststring=
4767: # Add a significant safety factor because C++ compilers can tack on
4768: # massive amounts of additional arguments before passing them to the
4769: # linker. It appears as though 1/2 is a usable value.
4770: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4771: fi
4772: ;;
4773: esac
4774:
4775: fi
4776:
4777: if test -n $lt_cv_sys_max_cmd_len ; then
4778: echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4779: echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4780: else
4781: echo "$as_me:$LINENO: result: none" >&5
4782: echo "${ECHO_T}none" >&6
4783: fi
4784: max_cmd_len=$lt_cv_sys_max_cmd_len
4785:
4786:
4787:
4788:
4789:
4790:
4791: : ${CP="cp -f"}
4792: : ${MV="mv -f"}
4793: : ${RM="rm -f"}
4794:
4795: echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4796: echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4797: # Try some XSI features
4798: xsi_shell=no
4799: ( _lt_dummy="a/b/c"
4800: test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4801: = c,a/b,b/c, \
4802: && eval 'test $(( 1 + 1 )) -eq 2 \
4803: && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4804: && xsi_shell=yes
4805: echo "$as_me:$LINENO: result: $xsi_shell" >&5
4806: echo "${ECHO_T}$xsi_shell" >&6
4807:
4808:
4809: echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4810: echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4811: lt_shell_append=no
4812: ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4813: >/dev/null 2>&1 \
4814: && lt_shell_append=yes
4815: echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4816: echo "${ECHO_T}$lt_shell_append" >&6
4817:
4818:
4819: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4820: lt_unset=unset
4821: else
4822: lt_unset=false
4823: fi
4824:
4825:
4826:
4827:
4828:
4829: # test EBCDIC or ASCII
4830: case `echo X|tr X '\101'` in
4831: A) # ASCII based system
4832: # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4833: lt_SP2NL='tr \040 \012'
4834: lt_NL2SP='tr \015\012 \040\040'
4835: ;;
4836: *) # EBCDIC based system
4837: lt_SP2NL='tr \100 \n'
4838: lt_NL2SP='tr \r\n \100\100'
4839: ;;
4840: esac
4841:
4842:
4843:
4844:
4845:
4846:
4847:
4848:
4849:
4850: echo "$as_me:$LINENO: checking how to convert $build file names to $host format" >&5
4851: echo $ECHO_N "checking how to convert $build file names to $host format... $ECHO_C" >&6
4852: if test "${lt_cv_to_host_file_cmd+set}" = set; then
4853: echo $ECHO_N "(cached) $ECHO_C" >&6
4854: else
4855: case $host in
4856: *-*-mingw* )
4857: case $build in
4858: *-*-mingw* ) # actually msys
4859: lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4860: ;;
4861: *-*-cygwin* )
4862: lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4863: ;;
4864: * ) # otherwise, assume *nix
4865: lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4866: ;;
4867: esac
4868: ;;
4869: *-*-cygwin* )
4870: case $build in
4871: *-*-mingw* ) # actually msys
4872: lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4873: ;;
4874: *-*-cygwin* )
4875: lt_cv_to_host_file_cmd=func_convert_file_noop
4876: ;;
4877: * ) # otherwise, assume *nix
4878: lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4879: ;;
4880: esac
4881: ;;
4882: * ) # unhandled hosts (and "normal" native builds)
4883: lt_cv_to_host_file_cmd=func_convert_file_noop
4884: ;;
4885: esac
4886:
4887: fi
4888:
4889: to_host_file_cmd=$lt_cv_to_host_file_cmd
4890: echo "$as_me:$LINENO: result: $lt_cv_to_host_file_cmd" >&5
4891: echo "${ECHO_T}$lt_cv_to_host_file_cmd" >&6
4892:
4893:
4894:
4895:
4896:
4897: echo "$as_me:$LINENO: checking how to convert $build file names to toolchain format" >&5
4898: echo $ECHO_N "checking how to convert $build file names to toolchain format... $ECHO_C" >&6
4899: if test "${lt_cv_to_tool_file_cmd+set}" = set; then
4900: echo $ECHO_N "(cached) $ECHO_C" >&6
4901: else
4902: #assume ordinary cross tools, or native build.
4903: lt_cv_to_tool_file_cmd=func_convert_file_noop
4904: case $host in
4905: *-*-mingw* )
4906: case $build in
4907: *-*-mingw* ) # actually msys
4908: lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4909: ;;
4910: esac
4911: ;;
4912: esac
4913:
4914: fi
4915:
4916: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4917: echo "$as_me:$LINENO: result: $lt_cv_to_tool_file_cmd" >&5
4918: echo "${ECHO_T}$lt_cv_to_tool_file_cmd" >&6
4919:
4920:
4921:
4922:
4923:
4924: echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4925: echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4926: if test "${lt_cv_ld_reload_flag+set}" = set; then
4927: echo $ECHO_N "(cached) $ECHO_C" >&6
4928: else
4929: lt_cv_ld_reload_flag='-r'
4930: fi
4931: echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4932: echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4933: reload_flag=$lt_cv_ld_reload_flag
4934: case $reload_flag in
4935: "" | " "*) ;;
4936: *) reload_flag=" $reload_flag" ;;
4937: esac
4938: reload_cmds='$LD$reload_flag -o $output$reload_objs'
4939: case $host_os in
4940: cygwin* | mingw* | pw32* | cegcc*)
4941: if test "$GCC" != yes; then
4942: reload_cmds=false
4943: fi
4944: ;;
4945: darwin*)
4946: if test "$GCC" = yes; then
4947: reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4948: else
4949: reload_cmds='$LD$reload_flag -o $output$reload_objs'
4950: fi
4951: ;;
4952: esac
4953:
4954:
4955:
4956:
4957:
4958:
4959:
4960:
4961:
4962: if test -n "$ac_tool_prefix"; then
4963: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4964: set dummy ${ac_tool_prefix}objdump; ac_word=$2
4965: echo "$as_me:$LINENO: checking for $ac_word" >&5
4966: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4967: if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4968: echo $ECHO_N "(cached) $ECHO_C" >&6
4969: else
4970: if test -n "$OBJDUMP"; then
4971: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4972: else
4973: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4974: for as_dir in $PATH
4975: do
4976: IFS=$as_save_IFS
4977: test -z "$as_dir" && as_dir=.
4978: for ac_exec_ext in '' $ac_executable_extensions; do
4979: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4980: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4981: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4982: break 2
4983: fi
4984: done
4985: done
4986:
4987: fi
4988: fi
4989: OBJDUMP=$ac_cv_prog_OBJDUMP
4990: if test -n "$OBJDUMP"; then
4991: echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4992: echo "${ECHO_T}$OBJDUMP" >&6
4993: else
4994: echo "$as_me:$LINENO: result: no" >&5
4995: echo "${ECHO_T}no" >&6
4996: fi
4997:
4998: fi
4999: if test -z "$ac_cv_prog_OBJDUMP"; then
5000: ac_ct_OBJDUMP=$OBJDUMP
5001: # Extract the first word of "objdump", so it can be a program name with args.
5002: set dummy objdump; ac_word=$2
5003: echo "$as_me:$LINENO: checking for $ac_word" >&5
5004: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5005: if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5006: echo $ECHO_N "(cached) $ECHO_C" >&6
5007: else
5008: if test -n "$ac_ct_OBJDUMP"; then
5009: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5010: else
5011: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5012: for as_dir in $PATH
5013: do
5014: IFS=$as_save_IFS
5015: test -z "$as_dir" && as_dir=.
5016: for ac_exec_ext in '' $ac_executable_extensions; do
5017: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5018: ac_cv_prog_ac_ct_OBJDUMP="objdump"
5019: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5020: break 2
5021: fi
5022: done
5023: done
5024:
5025: test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
5026: fi
5027: fi
5028: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5029: if test -n "$ac_ct_OBJDUMP"; then
5030: echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5031: echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
5032: else
5033: echo "$as_me:$LINENO: result: no" >&5
5034: echo "${ECHO_T}no" >&6
5035: fi
5036:
5037: OBJDUMP=$ac_ct_OBJDUMP
5038: else
5039: OBJDUMP="$ac_cv_prog_OBJDUMP"
5040: fi
5041:
5042: test -z "$OBJDUMP" && OBJDUMP=objdump
5043:
5044:
5045:
5046:
5047:
5048:
5049: echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5050: echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
5051: if test "${lt_cv_deplibs_check_method+set}" = set; then
5052: echo $ECHO_N "(cached) $ECHO_C" >&6
5053: else
5054: lt_cv_file_magic_cmd='$MAGIC_CMD'
5055: lt_cv_file_magic_test_file=
5056: lt_cv_deplibs_check_method='unknown'
5057: # Need to set the preceding variable on all platforms that support
5058: # interlibrary dependencies.
5059: # 'none' -- dependencies not supported.
5060: # `unknown' -- same as none, but documents that we really don't know.
5061: # 'pass_all' -- all dependencies passed with no checks.
5062: # 'test_compile' -- check by making test program.
5063: # 'file_magic [[regex]]' -- check by looking for files in library path
5064: # which responds to the $file_magic_cmd with a given extended regex.
5065: # If you have `file' or equivalent on your system and you're not sure
5066: # whether `pass_all' will *always* work, you probably want this one.
5067:
5068: case $host_os in
5069: aix[4-9]*)
5070: lt_cv_deplibs_check_method=pass_all
5071: ;;
5072:
5073: beos*)
5074: lt_cv_deplibs_check_method=pass_all
5075: ;;
5076:
5077: bsdi[45]*)
5078: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5079: lt_cv_file_magic_cmd='/usr/bin/file -L'
5080: lt_cv_file_magic_test_file=/shlib/libc.so
5081: ;;
5082:
5083: cygwin*)
5084: # func_win32_libid is a shell function defined in ltmain.sh
5085: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5086: lt_cv_file_magic_cmd='func_win32_libid'
5087: ;;
5088:
5089: mingw* | pw32*)
5090: # Base MSYS/MinGW do not provide the 'file' command needed by
5091: # func_win32_libid shell function, so use a weaker test based on 'objdump',
5092: # unless we find 'file', for example because we are cross-compiling.
5093: # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5094: if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5095: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5096: lt_cv_file_magic_cmd='func_win32_libid'
5097: else
5098: # Keep this pattern in sync with the one in func_win32_libid.
5099: lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5100: lt_cv_file_magic_cmd='$OBJDUMP -f'
5101: fi
5102: ;;
5103:
5104: cegcc*)
5105: # use the weaker test based on 'objdump'. See mingw*.
5106: lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5107: lt_cv_file_magic_cmd='$OBJDUMP -f'
5108: ;;
5109:
5110: darwin* | rhapsody*)
5111: lt_cv_deplibs_check_method=pass_all
5112: ;;
5113:
5114: freebsd* | dragonfly*)
5115: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5116: case $host_cpu in
5117: i*86 )
5118: # Not sure whether the presence of OpenBSD here was a mistake.
5119: # Let's accept both of them until this is cleared up.
5120: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5121: lt_cv_file_magic_cmd=/usr/bin/file
5122: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5123: ;;
5124: esac
5125: else
5126: lt_cv_deplibs_check_method=pass_all
5127: fi
5128: ;;
5129:
5130: gnu*)
5131: lt_cv_deplibs_check_method=pass_all
5132: ;;
5133:
5134: haiku*)
5135: lt_cv_deplibs_check_method=pass_all
5136: ;;
5137:
5138: hpux10.20* | hpux11*)
5139: lt_cv_file_magic_cmd=/usr/bin/file
5140: case $host_cpu in
5141: ia64*)
5142: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5143: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5144: ;;
5145: hppa*64*)
5146: 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]'
5147: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5148: ;;
5149: *)
5150: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5151: lt_cv_file_magic_test_file=/usr/lib/libc.sl
5152: ;;
5153: esac
5154: ;;
5155:
5156: interix[3-9]*)
5157: # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5158: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5159: ;;
5160:
5161: irix5* | irix6* | nonstopux*)
5162: case $LD in
5163: *-32|*"-32 ") libmagic=32-bit;;
5164: *-n32|*"-n32 ") libmagic=N32;;
5165: *-64|*"-64 ") libmagic=64-bit;;
5166: *) libmagic=never-match;;
5167: esac
5168: lt_cv_deplibs_check_method=pass_all
5169: ;;
5170:
5171: # This must be glibc/ELF.
5172: linux* | k*bsd*-gnu | kopensolaris*-gnu)
5173: lt_cv_deplibs_check_method=pass_all
5174: ;;
5175:
5176: netbsd*)
5177: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5178: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5179: else
5180: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5181: fi
5182: ;;
5183:
5184: newos6*)
5185: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5186: lt_cv_file_magic_cmd=/usr/bin/file
5187: lt_cv_file_magic_test_file=/usr/lib/libnls.so
5188: ;;
5189:
5190: *nto* | *qnx*)
5191: lt_cv_deplibs_check_method=pass_all
5192: ;;
5193:
5194: openbsd*)
5195: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5196: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5197: else
5198: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5199: fi
5200: ;;
5201:
5202: osf3* | osf4* | osf5*)
5203: lt_cv_deplibs_check_method=pass_all
5204: ;;
5205:
5206: rdos*)
5207: lt_cv_deplibs_check_method=pass_all
5208: ;;
5209:
5210: solaris*)
5211: lt_cv_deplibs_check_method=pass_all
5212: ;;
5213:
5214: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5215: lt_cv_deplibs_check_method=pass_all
5216: ;;
5217:
5218: sysv4 | sysv4.3*)
5219: case $host_vendor in
5220: motorola)
5221: 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]'
5222: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5223: ;;
5224: ncr)
5225: lt_cv_deplibs_check_method=pass_all
5226: ;;
5227: sequent)
5228: lt_cv_file_magic_cmd='/bin/file'
5229: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5230: ;;
5231: sni)
5232: lt_cv_file_magic_cmd='/bin/file'
5233: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5234: lt_cv_file_magic_test_file=/lib/libc.so
5235: ;;
5236: siemens)
5237: lt_cv_deplibs_check_method=pass_all
5238: ;;
5239: pc)
5240: lt_cv_deplibs_check_method=pass_all
5241: ;;
5242: esac
5243: ;;
5244:
5245: tpf*)
5246: lt_cv_deplibs_check_method=pass_all
5247: ;;
5248: esac
5249:
5250: fi
5251: echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5252: echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5253:
5254: file_magic_glob=
5255: want_nocaseglob=no
5256: if test "$build" = "$host"; then
5257: case $host_os in
5258: mingw* | pw32*)
5259: if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5260: want_nocaseglob=yes
5261: else
5262: file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5263: fi
5264: ;;
5265: esac
5266: fi
5267:
5268: file_magic_cmd=$lt_cv_file_magic_cmd
5269: deplibs_check_method=$lt_cv_deplibs_check_method
5270: test -z "$deplibs_check_method" && deplibs_check_method=unknown
5271:
5272:
5273:
5274:
5275:
5276:
5277:
5278:
5279:
5280:
5281:
5282:
5283:
5284:
5285:
5286:
5287:
5288:
5289:
5290:
5291:
5292:
5293: if test -n "$ac_tool_prefix"; then
5294: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5295: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5296: echo "$as_me:$LINENO: checking for $ac_word" >&5
5297: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5298: if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5299: echo $ECHO_N "(cached) $ECHO_C" >&6
5300: else
5301: if test -n "$DLLTOOL"; then
5302: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5303: else
5304: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5305: for as_dir in $PATH
5306: do
5307: IFS=$as_save_IFS
5308: test -z "$as_dir" && as_dir=.
5309: for ac_exec_ext in '' $ac_executable_extensions; do
5310: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5311: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5312: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5313: break 2
5314: fi
5315: done
5316: done
5317:
5318: fi
5319: fi
5320: DLLTOOL=$ac_cv_prog_DLLTOOL
5321: if test -n "$DLLTOOL"; then
5322: echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5323: echo "${ECHO_T}$DLLTOOL" >&6
5324: else
5325: echo "$as_me:$LINENO: result: no" >&5
5326: echo "${ECHO_T}no" >&6
5327: fi
5328:
5329: fi
5330: if test -z "$ac_cv_prog_DLLTOOL"; then
5331: ac_ct_DLLTOOL=$DLLTOOL
5332: # Extract the first word of "dlltool", so it can be a program name with args.
5333: set dummy dlltool; ac_word=$2
5334: echo "$as_me:$LINENO: checking for $ac_word" >&5
5335: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5336: if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5337: echo $ECHO_N "(cached) $ECHO_C" >&6
5338: else
5339: if test -n "$ac_ct_DLLTOOL"; then
5340: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5341: else
5342: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5343: for as_dir in $PATH
5344: do
5345: IFS=$as_save_IFS
5346: test -z "$as_dir" && as_dir=.
5347: for ac_exec_ext in '' $ac_executable_extensions; do
5348: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5349: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5350: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5351: break 2
5352: fi
5353: done
5354: done
5355:
5356: test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5357: fi
5358: fi
5359: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5360: if test -n "$ac_ct_DLLTOOL"; then
5361: echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5362: echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5363: else
5364: echo "$as_me:$LINENO: result: no" >&5
5365: echo "${ECHO_T}no" >&6
5366: fi
5367:
5368: DLLTOOL=$ac_ct_DLLTOOL
5369: else
5370: DLLTOOL="$ac_cv_prog_DLLTOOL"
5371: fi
5372:
5373: test -z "$DLLTOOL" && DLLTOOL=dlltool
5374:
5375:
5376:
5377:
5378:
5379:
5380:
5381: echo "$as_me:$LINENO: checking how to associate runtime and link libraries" >&5
5382: echo $ECHO_N "checking how to associate runtime and link libraries... $ECHO_C" >&6
5383: if test "${lt_cv_sharedlib_from_linklib_cmd+set}" = set; then
5384: echo $ECHO_N "(cached) $ECHO_C" >&6
5385: else
5386: lt_cv_sharedlib_from_linklib_cmd='unknown'
5387:
5388: case $host_os in
5389: cygwin* | mingw* | pw32* | cegcc*)
5390: # two different shell functions defined in ltmain.sh
5391: # decide which to use based on capabilities of $DLLTOOL
5392: case `$DLLTOOL --help 2>&1` in
5393: *--identify-strict*)
5394: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5395: ;;
5396: *)
5397: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5398: ;;
5399: esac
5400: ;;
5401: *)
5402: # fallback: assume linklib IS sharedlib
5403: lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5404: ;;
5405: esac
5406:
5407: fi
5408: echo "$as_me:$LINENO: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5409: echo "${ECHO_T}$lt_cv_sharedlib_from_linklib_cmd" >&6
5410: sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5411: test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5412:
5413:
5414:
5415:
5416:
5417:
5418:
5419: if test -n "$ac_tool_prefix"; then
5420: for ac_prog in ar
5421: do
5422: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5423: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5424: echo "$as_me:$LINENO: checking for $ac_word" >&5
5425: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5426: if test "${ac_cv_prog_AR+set}" = set; then
5427: echo $ECHO_N "(cached) $ECHO_C" >&6
5428: else
5429: if test -n "$AR"; then
5430: ac_cv_prog_AR="$AR" # Let the user override the test.
5431: else
5432: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5433: for as_dir in $PATH
5434: do
5435: IFS=$as_save_IFS
5436: test -z "$as_dir" && as_dir=.
5437: for ac_exec_ext in '' $ac_executable_extensions; do
5438: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5439: ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5440: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5441: break 2
5442: fi
5443: done
5444: done
5445:
5446: fi
5447: fi
5448: AR=$ac_cv_prog_AR
5449: if test -n "$AR"; then
5450: echo "$as_me:$LINENO: result: $AR" >&5
5451: echo "${ECHO_T}$AR" >&6
5452: else
5453: echo "$as_me:$LINENO: result: no" >&5
5454: echo "${ECHO_T}no" >&6
5455: fi
5456:
5457: test -n "$AR" && break
5458: done
5459: fi
5460: if test -z "$AR"; then
5461: ac_ct_AR=$AR
5462: for ac_prog in ar
5463: do
5464: # Extract the first word of "$ac_prog", so it can be a program name with args.
5465: set dummy $ac_prog; ac_word=$2
5466: echo "$as_me:$LINENO: checking for $ac_word" >&5
5467: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5468: if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5469: echo $ECHO_N "(cached) $ECHO_C" >&6
5470: else
5471: if test -n "$ac_ct_AR"; then
5472: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5473: else
5474: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5475: for as_dir in $PATH
5476: do
5477: IFS=$as_save_IFS
5478: test -z "$as_dir" && as_dir=.
5479: for ac_exec_ext in '' $ac_executable_extensions; do
5480: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5481: ac_cv_prog_ac_ct_AR="$ac_prog"
5482: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5483: break 2
5484: fi
5485: done
5486: done
5487:
5488: fi
5489: fi
5490: ac_ct_AR=$ac_cv_prog_ac_ct_AR
5491: if test -n "$ac_ct_AR"; then
5492: echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5493: echo "${ECHO_T}$ac_ct_AR" >&6
5494: else
5495: echo "$as_me:$LINENO: result: no" >&5
5496: echo "${ECHO_T}no" >&6
5497: fi
5498:
5499: test -n "$ac_ct_AR" && break
5500: done
5501: test -n "$ac_ct_AR" || ac_ct_AR="false"
5502:
5503: AR=$ac_ct_AR
5504: fi
5505:
5506: : ${AR=ar}
5507: : ${AR_FLAGS=cru}
5508:
5509:
5510:
5511:
5512:
5513:
5514:
5515:
5516:
5517:
5518:
5519: echo "$as_me:$LINENO: checking for archiver @FILE support" >&5
5520: echo $ECHO_N "checking for archiver @FILE support... $ECHO_C" >&6
5521: if test "${lt_cv_ar_at_file+set}" = set; then
5522: echo $ECHO_N "(cached) $ECHO_C" >&6
5523: else
5524: lt_cv_ar_at_file=no
5525: cat >conftest.$ac_ext <<_ACEOF
5526: /* confdefs.h. */
5527: _ACEOF
5528: cat confdefs.h >>conftest.$ac_ext
5529: cat >>conftest.$ac_ext <<_ACEOF
5530: /* end confdefs.h. */
5531:
5532: int
5533: main ()
5534: {
5535:
5536: ;
5537: return 0;
5538: }
5539: _ACEOF
5540: rm -f conftest.$ac_objext
5541: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5542: (eval $ac_compile) 2>conftest.er1
5543: ac_status=$?
5544: grep -v '^ *+' conftest.er1 >conftest.err
5545: rm -f conftest.er1
5546: cat conftest.err >&5
5547: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548: (exit $ac_status); } &&
5549: { ac_try='test -z "$ac_c_werror_flag"
5550: || test ! -s conftest.err'
5551: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5552: (eval $ac_try) 2>&5
5553: ac_status=$?
5554: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555: (exit $ac_status); }; } &&
5556: { ac_try='test -s conftest.$ac_objext'
5557: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5558: (eval $ac_try) 2>&5
5559: ac_status=$?
5560: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5561: (exit $ac_status); }; }; then
5562: echo conftest.$ac_objext > conftest.lst
5563: lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5564: { (eval echo "$as_me:$LINENO: \"$lt_ar_try\"") >&5
5565: (eval $lt_ar_try) 2>&5
5566: ac_status=$?
5567: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568: (exit $ac_status); }
5569: if test "$ac_status" -eq 0; then
5570: # Ensure the archiver fails upon bogus file names.
5571: rm -f conftest.$ac_objext libconftest.a
5572: { (eval echo "$as_me:$LINENO: \"$lt_ar_try\"") >&5
5573: (eval $lt_ar_try) 2>&5
5574: ac_status=$?
5575: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5576: (exit $ac_status); }
5577: if test "$ac_status" -ne 0; then
5578: lt_cv_ar_at_file=@
5579: fi
5580: fi
5581: rm -f conftest.* libconftest.a
5582:
5583: else
5584: echo "$as_me: failed program was:" >&5
5585: sed 's/^/| /' conftest.$ac_ext >&5
5586:
5587: fi
5588: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5589:
5590: fi
5591: echo "$as_me:$LINENO: result: $lt_cv_ar_at_file" >&5
5592: echo "${ECHO_T}$lt_cv_ar_at_file" >&6
5593:
5594: if test "x$lt_cv_ar_at_file" = xno; then
5595: archiver_list_spec=
5596: else
5597: archiver_list_spec=$lt_cv_ar_at_file
5598: fi
5599:
5600:
5601:
5602:
5603:
5604:
5605:
5606: if test -n "$ac_tool_prefix"; then
5607: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5608: set dummy ${ac_tool_prefix}strip; ac_word=$2
5609: echo "$as_me:$LINENO: checking for $ac_word" >&5
5610: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5611: if test "${ac_cv_prog_STRIP+set}" = set; then
5612: echo $ECHO_N "(cached) $ECHO_C" >&6
5613: else
5614: if test -n "$STRIP"; then
5615: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5616: else
5617: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5618: for as_dir in $PATH
5619: do
5620: IFS=$as_save_IFS
5621: test -z "$as_dir" && as_dir=.
5622: for ac_exec_ext in '' $ac_executable_extensions; do
5623: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5624: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5625: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5626: break 2
5627: fi
5628: done
5629: done
5630:
5631: fi
5632: fi
5633: STRIP=$ac_cv_prog_STRIP
5634: if test -n "$STRIP"; then
5635: echo "$as_me:$LINENO: result: $STRIP" >&5
5636: echo "${ECHO_T}$STRIP" >&6
5637: else
5638: echo "$as_me:$LINENO: result: no" >&5
5639: echo "${ECHO_T}no" >&6
5640: fi
5641:
5642: fi
5643: if test -z "$ac_cv_prog_STRIP"; then
5644: ac_ct_STRIP=$STRIP
5645: # Extract the first word of "strip", so it can be a program name with args.
5646: set dummy strip; ac_word=$2
5647: echo "$as_me:$LINENO: checking for $ac_word" >&5
5648: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5649: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5650: echo $ECHO_N "(cached) $ECHO_C" >&6
5651: else
5652: if test -n "$ac_ct_STRIP"; then
5653: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5654: else
5655: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5656: for as_dir in $PATH
5657: do
5658: IFS=$as_save_IFS
5659: test -z "$as_dir" && as_dir=.
5660: for ac_exec_ext in '' $ac_executable_extensions; do
5661: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5662: ac_cv_prog_ac_ct_STRIP="strip"
5663: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5664: break 2
5665: fi
5666: done
5667: done
5668:
5669: test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5670: fi
5671: fi
5672: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5673: if test -n "$ac_ct_STRIP"; then
5674: echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5675: echo "${ECHO_T}$ac_ct_STRIP" >&6
5676: else
5677: echo "$as_me:$LINENO: result: no" >&5
5678: echo "${ECHO_T}no" >&6
5679: fi
5680:
5681: STRIP=$ac_ct_STRIP
5682: else
5683: STRIP="$ac_cv_prog_STRIP"
5684: fi
5685:
5686: test -z "$STRIP" && STRIP=:
5687:
5688:
5689:
5690:
5691:
5692:
5693: if test -n "$ac_tool_prefix"; then
5694: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5695: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5696: echo "$as_me:$LINENO: checking for $ac_word" >&5
5697: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5698: if test "${ac_cv_prog_RANLIB+set}" = set; then
5699: echo $ECHO_N "(cached) $ECHO_C" >&6
5700: else
5701: if test -n "$RANLIB"; then
5702: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5703: else
5704: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5705: for as_dir in $PATH
5706: do
5707: IFS=$as_save_IFS
5708: test -z "$as_dir" && as_dir=.
5709: for ac_exec_ext in '' $ac_executable_extensions; do
5710: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5711: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5712: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5713: break 2
5714: fi
5715: done
5716: done
5717:
5718: fi
5719: fi
5720: RANLIB=$ac_cv_prog_RANLIB
5721: if test -n "$RANLIB"; then
5722: echo "$as_me:$LINENO: result: $RANLIB" >&5
5723: echo "${ECHO_T}$RANLIB" >&6
5724: else
5725: echo "$as_me:$LINENO: result: no" >&5
5726: echo "${ECHO_T}no" >&6
5727: fi
5728:
5729: fi
5730: if test -z "$ac_cv_prog_RANLIB"; then
5731: ac_ct_RANLIB=$RANLIB
5732: # Extract the first word of "ranlib", so it can be a program name with args.
5733: set dummy ranlib; ac_word=$2
5734: echo "$as_me:$LINENO: checking for $ac_word" >&5
5735: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5736: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5737: echo $ECHO_N "(cached) $ECHO_C" >&6
5738: else
5739: if test -n "$ac_ct_RANLIB"; then
5740: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5741: else
5742: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5743: for as_dir in $PATH
5744: do
5745: IFS=$as_save_IFS
5746: test -z "$as_dir" && as_dir=.
5747: for ac_exec_ext in '' $ac_executable_extensions; do
5748: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5749: ac_cv_prog_ac_ct_RANLIB="ranlib"
5750: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5751: break 2
5752: fi
5753: done
5754: done
5755:
5756: test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5757: fi
5758: fi
5759: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5760: if test -n "$ac_ct_RANLIB"; then
5761: echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5762: echo "${ECHO_T}$ac_ct_RANLIB" >&6
5763: else
5764: echo "$as_me:$LINENO: result: no" >&5
5765: echo "${ECHO_T}no" >&6
5766: fi
5767:
5768: RANLIB=$ac_ct_RANLIB
5769: else
5770: RANLIB="$ac_cv_prog_RANLIB"
5771: fi
5772:
5773: test -z "$RANLIB" && RANLIB=:
5774:
5775:
5776:
5777:
5778:
5779:
5780: # Determine commands to create old-style static archives.
5781: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5782: old_postinstall_cmds='chmod 644 $oldlib'
5783: old_postuninstall_cmds=
5784:
5785: if test -n "$RANLIB"; then
5786: case $host_os in
5787: openbsd*)
5788: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5789: ;;
5790: *)
5791: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5792: ;;
5793: esac
5794: old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5795: fi
5796:
5797: case $host_os in
5798: darwin*)
5799: lock_old_archive_extraction=yes ;;
5800: *)
5801: lock_old_archive_extraction=no ;;
5802: esac
5803:
5804:
5805:
5806:
5807:
5808:
5809:
5810:
5811:
5812:
5813:
5814:
5815:
5816:
5817:
5818:
5819:
5820:
5821:
5822:
5823:
5824:
5825:
5826:
5827:
5828:
5829:
5830:
5831:
5832:
5833:
5834:
5835:
5836:
5837:
5838:
5839:
5840:
5841:
5842: # If no C compiler was specified, use CC.
5843: LTCC=${LTCC-"$CC"}
5844:
5845: # If no C compiler flags were specified, use CFLAGS.
5846: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5847:
5848: # Allow CC to be a program name with arguments.
5849: compiler=$CC
5850:
5851:
5852: # Check for command to grab the raw symbol name followed by C symbol from nm.
5853: echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5854: echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5855: if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5856: echo $ECHO_N "(cached) $ECHO_C" >&6
5857: else
5858:
5859: # These are sane defaults that work on at least a few old systems.
5860: # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5861:
5862: # Character class describing NM global symbol codes.
5863: symcode='[BCDEGRST]'
5864:
5865: # Regexp to match symbols that can be accessed directly from C.
5866: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5867:
5868: # Define system-specific variables.
5869: case $host_os in
5870: aix*)
5871: symcode='[BCDT]'
5872: ;;
5873: cygwin* | mingw* | pw32* | cegcc*)
5874: symcode='[ABCDGISTW]'
5875: ;;
5876: hpux*)
5877: if test "$host_cpu" = ia64; then
5878: symcode='[ABCDEGRST]'
5879: fi
5880: ;;
5881: irix* | nonstopux*)
5882: symcode='[BCDEGRST]'
5883: ;;
5884: osf*)
5885: symcode='[BCDEGQRST]'
5886: ;;
5887: solaris*)
5888: symcode='[BDRT]'
5889: ;;
5890: sco3.2v5*)
5891: symcode='[DT]'
5892: ;;
5893: sysv4.2uw2*)
5894: symcode='[DT]'
5895: ;;
5896: sysv5* | sco5v6* | unixware* | OpenUNIX*)
5897: symcode='[ABDT]'
5898: ;;
5899: sysv4)
5900: symcode='[DFNSTU]'
5901: ;;
5902: esac
5903:
5904: # If we're using GNU nm, then use its standard symbol codes.
5905: case `$NM -V 2>&1` in
5906: *GNU* | *'with BFD'*)
5907: symcode='[ABCDGIRSTW]' ;;
5908: esac
5909:
5910: # Transform an extracted symbol line into a proper C declaration.
5911: # Some systems (esp. on ia64) link data and code symbols differently,
5912: # so use this general approach.
5913: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5914:
5915: # Transform an extracted symbol line into symbol name and symbol address
5916: lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5917: 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'"
5918:
5919: # Handle CRLF in mingw tool chain
5920: opt_cr=
5921: case $build_os in
5922: mingw*)
5923: opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5924: ;;
5925: esac
5926:
5927: # Try without a prefix underscore, then with it.
5928: for ac_symprfx in "" "_"; do
5929:
5930: # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5931: symxfrm="\\1 $ac_symprfx\\2 \\2"
5932:
5933: # Write the raw and C identifiers.
5934: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5935: # Fake it for dumpbin and say T for any non-static function
5936: # and D for any global variable.
5937: # Also find C++ and __fastcall symbols from MSVC++,
5938: # which start with @ or ?.
5939: lt_cv_sys_global_symbol_pipe="$AWK '"\
5940: " {last_section=section; section=\$ 3};"\
5941: " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5942: " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5943: " \$ 0!~/External *\|/{next};"\
5944: " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5945: " {if(hide[section]) next};"\
5946: " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5947: " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5948: " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5949: " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5950: " ' prfx=^$ac_symprfx"
5951: else
5952: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5953: fi
5954: lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5955:
5956: # Check to see that the pipe works correctly.
5957: pipe_works=no
5958:
5959: rm -f conftest*
5960: cat > conftest.$ac_ext <<_LT_EOF
5961: #ifdef __cplusplus
5962: extern "C" {
5963: #endif
5964: char nm_test_var;
5965: void nm_test_func(void);
5966: void nm_test_func(void){}
5967: #ifdef __cplusplus
5968: }
5969: #endif
5970: int main(){nm_test_var='a';nm_test_func();return(0);}
5971: _LT_EOF
5972:
5973: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5974: (eval $ac_compile) 2>&5
5975: ac_status=$?
5976: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977: (exit $ac_status); }; then
5978: # Now try to grab the symbols.
5979: nlist=conftest.nm
5980: if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\"") >&5
5981: (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5982: ac_status=$?
5983: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984: (exit $ac_status); } && test -s "$nlist"; then
5985: # Try sorting and uniquifying the output.
5986: if sort "$nlist" | uniq > "$nlist"T; then
5987: mv -f "$nlist"T "$nlist"
5988: else
5989: rm -f "$nlist"T
5990: fi
5991:
5992: # Make sure that we snagged all the symbols we need.
5993: if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5994: if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5995: cat <<_LT_EOF > conftest.$ac_ext
5996: /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5997: #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5998: /* DATA imports from DLLs on WIN32 con't be const, because runtime
5999: relocations are performed -- see ld's documentation on pseudo-relocs. */
6000: # define LT_DLSYM_CONST
6001: #elif defined(__osf__)
6002: /* This system does not cope well with relocations in const data. */
6003: # define LT_DLSYM_CONST
6004: #else
6005: # define LT_DLSYM_CONST const
6006: #endif
6007:
6008: #ifdef __cplusplus
6009: extern "C" {
6010: #endif
6011:
6012: _LT_EOF
6013: # Now generate the symbol file.
6014: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6015:
6016: cat <<_LT_EOF >> conftest.$ac_ext
6017:
6018: /* The mapping between symbol names and symbols. */
6019: LT_DLSYM_CONST struct {
6020: const char *name;
6021: void *address;
6022: }
6023: lt__PROGRAM__LTX_preloaded_symbols[] =
6024: {
6025: { "@PROGRAM@", (void *) 0 },
6026: _LT_EOF
6027: $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6028: cat <<\_LT_EOF >> conftest.$ac_ext
6029: {0, (void *) 0}
6030: };
6031:
6032: /* This works around a problem in FreeBSD linker */
6033: #ifdef FREEBSD_WORKAROUND
6034: static const void *lt_preloaded_setup() {
6035: return lt__PROGRAM__LTX_preloaded_symbols;
6036: }
6037: #endif
6038:
6039: #ifdef __cplusplus
6040: }
6041: #endif
6042: _LT_EOF
6043: # Now try linking the two files.
6044: mv conftest.$ac_objext conftstm.$ac_objext
6045: lt_globsym_save_LIBS=$LIBS
6046: lt_globsym_save_CFLAGS=$CFLAGS
6047: LIBS="conftstm.$ac_objext"
6048: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6049: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6050: (eval $ac_link) 2>&5
6051: ac_status=$?
6052: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053: (exit $ac_status); } && test -s conftest${ac_exeext}; then
6054: pipe_works=yes
6055: fi
6056: LIBS=$lt_globsym_save_LIBS
6057: CFLAGS=$lt_globsym_save_CFLAGS
6058: else
6059: echo "cannot find nm_test_func in $nlist" >&5
6060: fi
6061: else
6062: echo "cannot find nm_test_var in $nlist" >&5
6063: fi
6064: else
6065: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6066: fi
6067: else
6068: echo "$progname: failed program was:" >&5
6069: cat conftest.$ac_ext >&5
6070: fi
6071: rm -rf conftest* conftst*
6072:
6073: # Do not use the global_symbol_pipe unless it works.
6074: if test "$pipe_works" = yes; then
6075: break
6076: else
6077: lt_cv_sys_global_symbol_pipe=
6078: fi
6079: done
6080:
6081: fi
6082:
6083: if test -z "$lt_cv_sys_global_symbol_pipe"; then
6084: lt_cv_sys_global_symbol_to_cdecl=
6085: fi
6086: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6087: echo "$as_me:$LINENO: result: failed" >&5
6088: echo "${ECHO_T}failed" >&6
6089: else
6090: echo "$as_me:$LINENO: result: ok" >&5
6091: echo "${ECHO_T}ok" >&6
6092: fi
6093:
6094: # Response file support.
6095: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6096: nm_file_list_spec='@'
6097: elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6098: nm_file_list_spec='@'
6099: fi
6100:
6101:
6102:
6103:
6104:
6105:
6106:
6107:
6108:
6109:
6110:
6111:
6112:
6113:
6114:
6115:
6116:
6117:
6118:
6119:
6120:
6121:
6122:
6123:
6124:
6125:
6126:
6127: echo "$as_me:$LINENO: checking for sysroot" >&5
6128: echo $ECHO_N "checking for sysroot... $ECHO_C" >&6
6129:
6130: # Check whether --with-sysroot or --without-sysroot was given.
6131: if test "${with_sysroot+set}" = set; then
6132: withval="$with_sysroot"
6133:
6134: else
6135: with_sysroot=no
6136: fi;
6137:
6138: lt_sysroot=
6139: case ${with_sysroot} in #(
6140: yes)
6141: if test "$GCC" = yes; then
6142: lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6143: fi
6144: ;; #(
6145: /*)
6146: lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6147: ;; #(
6148: no|'')
6149: ;; #(
6150: *)
6151: echo "$as_me:$LINENO: result: ${with_sysroot}" >&5
6152: echo "${ECHO_T}${with_sysroot}" >&6
6153: { { echo "$as_me:$LINENO: error: The sysroot must be an absolute path." >&5
6154: echo "$as_me: error: The sysroot must be an absolute path." >&2;}
6155: { (exit 1); exit 1; }; }
6156: ;;
6157: esac
6158:
6159: echo "$as_me:$LINENO: result: ${lt_sysroot:-no}" >&5
6160: echo "${ECHO_T}${lt_sysroot:-no}" >&6
6161:
6162:
6163:
6164:
6165:
6166: # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6167: if test "${enable_libtool_lock+set}" = set; then
6168: enableval="$enable_libtool_lock"
6169:
6170: fi;
6171: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6172:
6173: # Some flags need to be propagated to the compiler or linker for good
6174: # libtool support.
6175: case $host in
6176: ia64-*-hpux*)
6177: # Find out which ABI we are using.
6178: echo 'int i;' > conftest.$ac_ext
6179: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6180: (eval $ac_compile) 2>&5
6181: ac_status=$?
6182: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183: (exit $ac_status); }; then
6184: case `/usr/bin/file conftest.$ac_objext` in
6185: *ELF-32*)
6186: HPUX_IA64_MODE="32"
6187: ;;
6188: *ELF-64*)
6189: HPUX_IA64_MODE="64"
6190: ;;
6191: esac
6192: fi
6193: rm -rf conftest*
6194: ;;
6195: *-*-irix6*)
6196: # Find out which ABI we are using.
6197: echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6198: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6199: (eval $ac_compile) 2>&5
6200: ac_status=$?
6201: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202: (exit $ac_status); }; then
6203: if test "$lt_cv_prog_gnu_ld" = yes; then
6204: case `/usr/bin/file conftest.$ac_objext` in
6205: *32-bit*)
6206: LD="${LD-ld} -melf32bsmip"
6207: ;;
6208: *N32*)
6209: LD="${LD-ld} -melf32bmipn32"
6210: ;;
6211: *64-bit*)
6212: LD="${LD-ld} -melf64bmip"
6213: ;;
6214: esac
6215: else
6216: case `/usr/bin/file conftest.$ac_objext` in
6217: *32-bit*)
6218: LD="${LD-ld} -32"
6219: ;;
6220: *N32*)
6221: LD="${LD-ld} -n32"
6222: ;;
6223: *64-bit*)
6224: LD="${LD-ld} -64"
6225: ;;
6226: esac
6227: fi
6228: fi
6229: rm -rf conftest*
6230: ;;
6231:
6232: x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6233: s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6234: # Find out which ABI we are using.
6235: echo 'int i;' > conftest.$ac_ext
6236: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6237: (eval $ac_compile) 2>&5
6238: ac_status=$?
6239: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240: (exit $ac_status); }; then
6241: case `/usr/bin/file conftest.o` in
6242: *32-bit*)
6243: case $host in
6244: x86_64-*kfreebsd*-gnu)
6245: LD="${LD-ld} -m elf_i386_fbsd"
6246: ;;
6247: x86_64-*linux*)
6248: LD="${LD-ld} -m elf_i386"
6249: ;;
6250: ppc64-*linux*|powerpc64-*linux*)
6251: LD="${LD-ld} -m elf32ppclinux"
6252: ;;
6253: s390x-*linux*)
6254: LD="${LD-ld} -m elf_s390"
6255: ;;
6256: sparc64-*linux*)
6257: LD="${LD-ld} -m elf32_sparc"
6258: ;;
6259: esac
6260: ;;
6261: *64-bit*)
6262: case $host in
6263: x86_64-*kfreebsd*-gnu)
6264: LD="${LD-ld} -m elf_x86_64_fbsd"
6265: ;;
6266: x86_64-*linux*)
6267: LD="${LD-ld} -m elf_x86_64"
6268: ;;
6269: ppc*-*linux*|powerpc*-*linux*)
6270: LD="${LD-ld} -m elf64ppc"
6271: ;;
6272: s390*-*linux*|s390*-*tpf*)
6273: LD="${LD-ld} -m elf64_s390"
6274: ;;
6275: sparc*-*linux*)
6276: LD="${LD-ld} -m elf64_sparc"
6277: ;;
6278: esac
6279: ;;
6280: esac
6281: fi
6282: rm -rf conftest*
6283: ;;
6284:
6285: *-*-sco3.2v5*)
6286: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6287: SAVE_CFLAGS="$CFLAGS"
6288: CFLAGS="$CFLAGS -belf"
6289: echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6290: echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6291: if test "${lt_cv_cc_needs_belf+set}" = set; then
6292: echo $ECHO_N "(cached) $ECHO_C" >&6
6293: else
6294: ac_ext=c
6295: ac_cpp='$CPP $CPPFLAGS'
6296: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6297: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6298: ac_compiler_gnu=$ac_cv_c_compiler_gnu
6299:
6300: cat >conftest.$ac_ext <<_ACEOF
6301: /* confdefs.h. */
6302: _ACEOF
6303: cat confdefs.h >>conftest.$ac_ext
6304: cat >>conftest.$ac_ext <<_ACEOF
6305: /* end confdefs.h. */
6306:
6307: int
6308: main ()
6309: {
6310:
6311: ;
6312: return 0;
6313: }
6314: _ACEOF
6315: rm -f conftest.$ac_objext conftest$ac_exeext
6316: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6317: (eval $ac_link) 2>conftest.er1
6318: ac_status=$?
6319: grep -v '^ *+' conftest.er1 >conftest.err
6320: rm -f conftest.er1
6321: cat conftest.err >&5
6322: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323: (exit $ac_status); } &&
6324: { ac_try='test -z "$ac_c_werror_flag"
6325: || test ! -s conftest.err'
6326: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6327: (eval $ac_try) 2>&5
6328: ac_status=$?
6329: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6330: (exit $ac_status); }; } &&
6331: { ac_try='test -s conftest$ac_exeext'
6332: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6333: (eval $ac_try) 2>&5
6334: ac_status=$?
6335: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336: (exit $ac_status); }; }; then
6337: lt_cv_cc_needs_belf=yes
6338: else
6339: echo "$as_me: failed program was:" >&5
6340: sed 's/^/| /' conftest.$ac_ext >&5
6341:
6342: lt_cv_cc_needs_belf=no
6343: fi
6344: rm -f conftest.err conftest.$ac_objext \
6345: conftest$ac_exeext conftest.$ac_ext
6346: ac_ext=c
6347: ac_cpp='$CPP $CPPFLAGS'
6348: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6349: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6350: ac_compiler_gnu=$ac_cv_c_compiler_gnu
6351:
6352: fi
6353: echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6354: echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6355: if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6356: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6357: CFLAGS="$SAVE_CFLAGS"
6358: fi
6359: ;;
6360: *-*solaris*)
6361: # Find out which ABI we are using.
6362: echo 'int i;' > conftest.$ac_ext
6363: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6364: (eval $ac_compile) 2>&5
6365: ac_status=$?
6366: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367: (exit $ac_status); }; then
6368: case `/usr/bin/file conftest.o` in
6369: *64-bit*)
6370: case $lt_cv_prog_gnu_ld in
6371: yes*)
6372: case $host in
6373: i?86-*-solaris*)
6374: LD="${LD-ld} -m elf_x86_64"
6375: ;;
6376: sparc*-*-solaris*)
6377: LD="${LD-ld} -m elf64_sparc"
6378: ;;
6379: esac
6380: # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6381: if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6382: LD="${LD-ld}_sol2"
6383: fi
6384: ;;
6385: *)
6386: if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6387: LD="${LD-ld} -64"
6388: fi
6389: ;;
6390: esac
6391: ;;
6392: esac
6393: fi
6394: rm -rf conftest*
6395: ;;
6396: esac
6397:
6398: need_locks="$enable_libtool_lock"
6399:
6400: if test -n "$ac_tool_prefix"; then
6401: # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6402: set dummy ${ac_tool_prefix}mt; ac_word=$2
6403: echo "$as_me:$LINENO: checking for $ac_word" >&5
6404: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6405: if test "${ac_cv_prog_MANIFEST_TOOL+set}" = set; then
6406: echo $ECHO_N "(cached) $ECHO_C" >&6
6407: else
6408: if test -n "$MANIFEST_TOOL"; then
6409: ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6410: else
6411: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6412: for as_dir in $PATH
6413: do
6414: IFS=$as_save_IFS
6415: test -z "$as_dir" && as_dir=.
6416: for ac_exec_ext in '' $ac_executable_extensions; do
6417: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6418: ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6419: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6420: break 2
6421: fi
6422: done
6423: done
6424:
6425: fi
6426: fi
6427: MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6428: if test -n "$MANIFEST_TOOL"; then
6429: echo "$as_me:$LINENO: result: $MANIFEST_TOOL" >&5
6430: echo "${ECHO_T}$MANIFEST_TOOL" >&6
6431: else
6432: echo "$as_me:$LINENO: result: no" >&5
6433: echo "${ECHO_T}no" >&6
6434: fi
6435:
6436: fi
6437: if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6438: ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6439: # Extract the first word of "mt", so it can be a program name with args.
6440: set dummy mt; ac_word=$2
6441: echo "$as_me:$LINENO: checking for $ac_word" >&5
6442: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6443: if test "${ac_cv_prog_ac_ct_MANIFEST_TOOL+set}" = set; then
6444: echo $ECHO_N "(cached) $ECHO_C" >&6
6445: else
6446: if test -n "$ac_ct_MANIFEST_TOOL"; then
6447: ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6448: else
6449: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6450: for as_dir in $PATH
6451: do
6452: IFS=$as_save_IFS
6453: test -z "$as_dir" && as_dir=.
6454: for ac_exec_ext in '' $ac_executable_extensions; do
6455: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6456: ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6457: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6458: break 2
6459: fi
6460: done
6461: done
6462:
6463: test -z "$ac_cv_prog_ac_ct_MANIFEST_TOOL" && ac_cv_prog_ac_ct_MANIFEST_TOOL=":"
6464: fi
6465: fi
6466: ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6467: if test -n "$ac_ct_MANIFEST_TOOL"; then
6468: echo "$as_me:$LINENO: result: $ac_ct_MANIFEST_TOOL" >&5
6469: echo "${ECHO_T}$ac_ct_MANIFEST_TOOL" >&6
6470: else
6471: echo "$as_me:$LINENO: result: no" >&5
6472: echo "${ECHO_T}no" >&6
6473: fi
6474:
6475: MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6476: else
6477: MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6478: fi
6479:
6480: test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6481: echo "$as_me:$LINENO: checking if $MANIFEST_TOOL is a manifest tool" >&5
6482: echo $ECHO_N "checking if $MANIFEST_TOOL is a manifest tool... $ECHO_C" >&6
6483: if test "${lt_cv_path_mainfest_tool+set}" = set; then
6484: echo $ECHO_N "(cached) $ECHO_C" >&6
6485: else
6486: lt_cv_path_mainfest_tool=no
6487: echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6488: $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6489: cat conftest.err >&5
6490: if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6491: lt_cv_path_mainfest_tool=yes
6492: fi
6493: rm -f conftest*
6494: fi
6495: echo "$as_me:$LINENO: result: $lt_cv_path_mainfest_tool" >&5
6496: echo "${ECHO_T}$lt_cv_path_mainfest_tool" >&6
6497: if test "x$lt_cv_path_mainfest_tool" != xyes; then
6498: MANIFEST_TOOL=:
6499: fi
6500:
6501:
6502:
6503:
6504:
6505:
6506: case $host_os in
6507: rhapsody* | darwin*)
6508: if test -n "$ac_tool_prefix"; then
6509: # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6510: set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6511: echo "$as_me:$LINENO: checking for $ac_word" >&5
6512: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6513: if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6514: echo $ECHO_N "(cached) $ECHO_C" >&6
6515: else
6516: if test -n "$DSYMUTIL"; then
6517: ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6518: else
6519: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6520: for as_dir in $PATH
6521: do
6522: IFS=$as_save_IFS
6523: test -z "$as_dir" && as_dir=.
6524: for ac_exec_ext in '' $ac_executable_extensions; do
6525: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6526: ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6527: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6528: break 2
6529: fi
6530: done
6531: done
6532:
6533: fi
6534: fi
6535: DSYMUTIL=$ac_cv_prog_DSYMUTIL
6536: if test -n "$DSYMUTIL"; then
6537: echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6538: echo "${ECHO_T}$DSYMUTIL" >&6
6539: else
6540: echo "$as_me:$LINENO: result: no" >&5
6541: echo "${ECHO_T}no" >&6
6542: fi
6543:
6544: fi
6545: if test -z "$ac_cv_prog_DSYMUTIL"; then
6546: ac_ct_DSYMUTIL=$DSYMUTIL
6547: # Extract the first word of "dsymutil", so it can be a program name with args.
6548: set dummy dsymutil; ac_word=$2
6549: echo "$as_me:$LINENO: checking for $ac_word" >&5
6550: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6551: if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6552: echo $ECHO_N "(cached) $ECHO_C" >&6
6553: else
6554: if test -n "$ac_ct_DSYMUTIL"; then
6555: ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6556: else
6557: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6558: for as_dir in $PATH
6559: do
6560: IFS=$as_save_IFS
6561: test -z "$as_dir" && as_dir=.
6562: for ac_exec_ext in '' $ac_executable_extensions; do
6563: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6564: ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6565: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6566: break 2
6567: fi
6568: done
6569: done
6570:
6571: test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
6572: fi
6573: fi
6574: ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6575: if test -n "$ac_ct_DSYMUTIL"; then
6576: echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6577: echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
6578: else
6579: echo "$as_me:$LINENO: result: no" >&5
6580: echo "${ECHO_T}no" >&6
6581: fi
6582:
6583: DSYMUTIL=$ac_ct_DSYMUTIL
6584: else
6585: DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6586: fi
6587:
6588: if test -n "$ac_tool_prefix"; then
6589: # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6590: set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6591: echo "$as_me:$LINENO: checking for $ac_word" >&5
6592: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6593: if test "${ac_cv_prog_NMEDIT+set}" = set; then
6594: echo $ECHO_N "(cached) $ECHO_C" >&6
6595: else
6596: if test -n "$NMEDIT"; then
6597: ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6598: else
6599: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6600: for as_dir in $PATH
6601: do
6602: IFS=$as_save_IFS
6603: test -z "$as_dir" && as_dir=.
6604: for ac_exec_ext in '' $ac_executable_extensions; do
6605: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6606: ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6607: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6608: break 2
6609: fi
6610: done
6611: done
6612:
6613: fi
6614: fi
6615: NMEDIT=$ac_cv_prog_NMEDIT
6616: if test -n "$NMEDIT"; then
6617: echo "$as_me:$LINENO: result: $NMEDIT" >&5
6618: echo "${ECHO_T}$NMEDIT" >&6
6619: else
6620: echo "$as_me:$LINENO: result: no" >&5
6621: echo "${ECHO_T}no" >&6
6622: fi
6623:
6624: fi
6625: if test -z "$ac_cv_prog_NMEDIT"; then
6626: ac_ct_NMEDIT=$NMEDIT
6627: # Extract the first word of "nmedit", so it can be a program name with args.
6628: set dummy nmedit; ac_word=$2
6629: echo "$as_me:$LINENO: checking for $ac_word" >&5
6630: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6631: if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6632: echo $ECHO_N "(cached) $ECHO_C" >&6
6633: else
6634: if test -n "$ac_ct_NMEDIT"; then
6635: ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6636: else
6637: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6638: for as_dir in $PATH
6639: do
6640: IFS=$as_save_IFS
6641: test -z "$as_dir" && as_dir=.
6642: for ac_exec_ext in '' $ac_executable_extensions; do
6643: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6644: ac_cv_prog_ac_ct_NMEDIT="nmedit"
6645: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6646: break 2
6647: fi
6648: done
6649: done
6650:
6651: test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
6652: fi
6653: fi
6654: ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6655: if test -n "$ac_ct_NMEDIT"; then
6656: echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6657: echo "${ECHO_T}$ac_ct_NMEDIT" >&6
6658: else
6659: echo "$as_me:$LINENO: result: no" >&5
6660: echo "${ECHO_T}no" >&6
6661: fi
6662:
6663: NMEDIT=$ac_ct_NMEDIT
6664: else
6665: NMEDIT="$ac_cv_prog_NMEDIT"
6666: fi
6667:
6668: if test -n "$ac_tool_prefix"; then
6669: # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6670: set dummy ${ac_tool_prefix}lipo; ac_word=$2
6671: echo "$as_me:$LINENO: checking for $ac_word" >&5
6672: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6673: if test "${ac_cv_prog_LIPO+set}" = set; then
6674: echo $ECHO_N "(cached) $ECHO_C" >&6
6675: else
6676: if test -n "$LIPO"; then
6677: ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6678: else
6679: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6680: for as_dir in $PATH
6681: do
6682: IFS=$as_save_IFS
6683: test -z "$as_dir" && as_dir=.
6684: for ac_exec_ext in '' $ac_executable_extensions; do
6685: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6686: ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6687: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6688: break 2
6689: fi
6690: done
6691: done
6692:
6693: fi
6694: fi
6695: LIPO=$ac_cv_prog_LIPO
6696: if test -n "$LIPO"; then
6697: echo "$as_me:$LINENO: result: $LIPO" >&5
6698: echo "${ECHO_T}$LIPO" >&6
6699: else
6700: echo "$as_me:$LINENO: result: no" >&5
6701: echo "${ECHO_T}no" >&6
6702: fi
6703:
6704: fi
6705: if test -z "$ac_cv_prog_LIPO"; then
6706: ac_ct_LIPO=$LIPO
6707: # Extract the first word of "lipo", so it can be a program name with args.
6708: set dummy lipo; ac_word=$2
6709: echo "$as_me:$LINENO: checking for $ac_word" >&5
6710: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6711: if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6712: echo $ECHO_N "(cached) $ECHO_C" >&6
6713: else
6714: if test -n "$ac_ct_LIPO"; then
6715: ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6716: else
6717: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6718: for as_dir in $PATH
6719: do
6720: IFS=$as_save_IFS
6721: test -z "$as_dir" && as_dir=.
6722: for ac_exec_ext in '' $ac_executable_extensions; do
6723: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6724: ac_cv_prog_ac_ct_LIPO="lipo"
6725: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6726: break 2
6727: fi
6728: done
6729: done
6730:
6731: test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
6732: fi
6733: fi
6734: ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6735: if test -n "$ac_ct_LIPO"; then
6736: echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6737: echo "${ECHO_T}$ac_ct_LIPO" >&6
6738: else
6739: echo "$as_me:$LINENO: result: no" >&5
6740: echo "${ECHO_T}no" >&6
6741: fi
6742:
6743: LIPO=$ac_ct_LIPO
6744: else
6745: LIPO="$ac_cv_prog_LIPO"
6746: fi
6747:
6748: if test -n "$ac_tool_prefix"; then
6749: # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6750: set dummy ${ac_tool_prefix}otool; ac_word=$2
6751: echo "$as_me:$LINENO: checking for $ac_word" >&5
6752: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6753: if test "${ac_cv_prog_OTOOL+set}" = set; then
6754: echo $ECHO_N "(cached) $ECHO_C" >&6
6755: else
6756: if test -n "$OTOOL"; then
6757: ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6758: else
6759: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6760: for as_dir in $PATH
6761: do
6762: IFS=$as_save_IFS
6763: test -z "$as_dir" && as_dir=.
6764: for ac_exec_ext in '' $ac_executable_extensions; do
6765: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6766: ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6767: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6768: break 2
6769: fi
6770: done
6771: done
6772:
6773: fi
6774: fi
6775: OTOOL=$ac_cv_prog_OTOOL
6776: if test -n "$OTOOL"; then
6777: echo "$as_me:$LINENO: result: $OTOOL" >&5
6778: echo "${ECHO_T}$OTOOL" >&6
6779: else
6780: echo "$as_me:$LINENO: result: no" >&5
6781: echo "${ECHO_T}no" >&6
6782: fi
6783:
6784: fi
6785: if test -z "$ac_cv_prog_OTOOL"; then
6786: ac_ct_OTOOL=$OTOOL
6787: # Extract the first word of "otool", so it can be a program name with args.
6788: set dummy otool; ac_word=$2
6789: echo "$as_me:$LINENO: checking for $ac_word" >&5
6790: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6791: if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6792: echo $ECHO_N "(cached) $ECHO_C" >&6
6793: else
6794: if test -n "$ac_ct_OTOOL"; then
6795: ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6796: else
6797: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6798: for as_dir in $PATH
6799: do
6800: IFS=$as_save_IFS
6801: test -z "$as_dir" && as_dir=.
6802: for ac_exec_ext in '' $ac_executable_extensions; do
6803: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6804: ac_cv_prog_ac_ct_OTOOL="otool"
6805: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6806: break 2
6807: fi
6808: done
6809: done
6810:
6811: test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
6812: fi
6813: fi
6814: ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6815: if test -n "$ac_ct_OTOOL"; then
6816: echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6817: echo "${ECHO_T}$ac_ct_OTOOL" >&6
6818: else
6819: echo "$as_me:$LINENO: result: no" >&5
6820: echo "${ECHO_T}no" >&6
6821: fi
6822:
6823: OTOOL=$ac_ct_OTOOL
6824: else
6825: OTOOL="$ac_cv_prog_OTOOL"
6826: fi
6827:
6828: if test -n "$ac_tool_prefix"; then
6829: # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6830: set dummy ${ac_tool_prefix}otool64; ac_word=$2
6831: echo "$as_me:$LINENO: checking for $ac_word" >&5
6832: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6833: if test "${ac_cv_prog_OTOOL64+set}" = set; then
6834: echo $ECHO_N "(cached) $ECHO_C" >&6
6835: else
6836: if test -n "$OTOOL64"; then
6837: ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6838: else
6839: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6840: for as_dir in $PATH
6841: do
6842: IFS=$as_save_IFS
6843: test -z "$as_dir" && as_dir=.
6844: for ac_exec_ext in '' $ac_executable_extensions; do
6845: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6846: ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6847: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6848: break 2
6849: fi
6850: done
6851: done
6852:
6853: fi
6854: fi
6855: OTOOL64=$ac_cv_prog_OTOOL64
6856: if test -n "$OTOOL64"; then
6857: echo "$as_me:$LINENO: result: $OTOOL64" >&5
6858: echo "${ECHO_T}$OTOOL64" >&6
6859: else
6860: echo "$as_me:$LINENO: result: no" >&5
6861: echo "${ECHO_T}no" >&6
6862: fi
6863:
6864: fi
6865: if test -z "$ac_cv_prog_OTOOL64"; then
6866: ac_ct_OTOOL64=$OTOOL64
6867: # Extract the first word of "otool64", so it can be a program name with args.
6868: set dummy otool64; ac_word=$2
6869: echo "$as_me:$LINENO: checking for $ac_word" >&5
6870: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6871: if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6872: echo $ECHO_N "(cached) $ECHO_C" >&6
6873: else
6874: if test -n "$ac_ct_OTOOL64"; then
6875: ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6876: else
6877: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6878: for as_dir in $PATH
6879: do
6880: IFS=$as_save_IFS
6881: test -z "$as_dir" && as_dir=.
6882: for ac_exec_ext in '' $ac_executable_extensions; do
6883: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6884: ac_cv_prog_ac_ct_OTOOL64="otool64"
6885: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6886: break 2
6887: fi
6888: done
6889: done
6890:
6891: test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
6892: fi
6893: fi
6894: ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6895: if test -n "$ac_ct_OTOOL64"; then
6896: echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6897: echo "${ECHO_T}$ac_ct_OTOOL64" >&6
6898: else
6899: echo "$as_me:$LINENO: result: no" >&5
6900: echo "${ECHO_T}no" >&6
6901: fi
6902:
6903: OTOOL64=$ac_ct_OTOOL64
6904: else
6905: OTOOL64="$ac_cv_prog_OTOOL64"
6906: fi
6907:
6908:
6909:
6910:
6911:
6912:
6913:
6914:
6915:
6916:
6917:
6918:
6919:
6920:
6921:
6922:
6923:
6924:
6925:
6926:
6927:
6928:
6929:
6930:
6931:
6932:
6933:
6934: echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6935: echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
6936: if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6937: echo $ECHO_N "(cached) $ECHO_C" >&6
6938: else
6939: lt_cv_apple_cc_single_mod=no
6940: if test -z "${LT_MULTI_MODULE}"; then
6941: # By default we will add the -single_module flag. You can override
6942: # by either setting the environment variable LT_MULTI_MODULE
6943: # non-empty at configure time, or by adding -multi_module to the
6944: # link flags.
6945: rm -rf libconftest.dylib*
6946: echo "int foo(void){return 1;}" > conftest.c
6947: echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6948: -dynamiclib -Wl,-single_module conftest.c" >&5
6949: $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6950: -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6951: _lt_result=$?
6952: # If there is a non-empty error log, and "single_module"
6953: # appears in it, assume the flag caused a linker warning
6954: if test -s conftest.err && $GREP single_module conftest.err; then
6955: cat conftest.err >&5
6956: # Otherwise, if the output was created with a 0 exit code from
6957: # the compiler, it worked.
6958: elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6959: lt_cv_apple_cc_single_mod=yes
6960: else
6961: cat conftest.err >&5
6962: fi
6963: rm -rf libconftest.dylib*
6964: rm -f conftest.*
6965: fi
6966: fi
6967: echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6968: echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
6969:
6970: echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6971: echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
6972: if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6973: echo $ECHO_N "(cached) $ECHO_C" >&6
6974: else
6975: lt_cv_ld_exported_symbols_list=no
6976: save_LDFLAGS=$LDFLAGS
6977: echo "_main" > conftest.sym
6978: LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6979: cat >conftest.$ac_ext <<_ACEOF
6980: /* confdefs.h. */
6981: _ACEOF
6982: cat confdefs.h >>conftest.$ac_ext
6983: cat >>conftest.$ac_ext <<_ACEOF
6984: /* end confdefs.h. */
6985:
6986: int
6987: main ()
6988: {
6989:
6990: ;
6991: return 0;
6992: }
6993: _ACEOF
6994: rm -f conftest.$ac_objext conftest$ac_exeext
6995: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6996: (eval $ac_link) 2>conftest.er1
6997: ac_status=$?
6998: grep -v '^ *+' conftest.er1 >conftest.err
6999: rm -f conftest.er1
7000: cat conftest.err >&5
7001: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002: (exit $ac_status); } &&
7003: { ac_try='test -z "$ac_c_werror_flag"
7004: || test ! -s conftest.err'
7005: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7006: (eval $ac_try) 2>&5
7007: ac_status=$?
7008: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009: (exit $ac_status); }; } &&
7010: { ac_try='test -s conftest$ac_exeext'
7011: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7012: (eval $ac_try) 2>&5
7013: ac_status=$?
7014: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015: (exit $ac_status); }; }; then
7016: lt_cv_ld_exported_symbols_list=yes
7017: else
7018: echo "$as_me: failed program was:" >&5
7019: sed 's/^/| /' conftest.$ac_ext >&5
7020:
7021: lt_cv_ld_exported_symbols_list=no
7022: fi
7023: rm -f conftest.err conftest.$ac_objext \
7024: conftest$ac_exeext conftest.$ac_ext
7025: LDFLAGS="$save_LDFLAGS"
7026:
7027: fi
7028: echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7029: echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
7030:
7031: echo "$as_me:$LINENO: checking for -force_load linker flag" >&5
7032: echo $ECHO_N "checking for -force_load linker flag... $ECHO_C" >&6
7033: if test "${lt_cv_ld_force_load+set}" = set; then
7034: echo $ECHO_N "(cached) $ECHO_C" >&6
7035: else
7036: lt_cv_ld_force_load=no
7037: cat > conftest.c << _LT_EOF
7038: int forced_loaded() { return 2;}
7039: _LT_EOF
7040: echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7041: $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7042: echo "$AR cru libconftest.a conftest.o" >&5
7043: $AR cru libconftest.a conftest.o 2>&5
7044: echo "$RANLIB libconftest.a" >&5
7045: $RANLIB libconftest.a 2>&5
7046: cat > conftest.c << _LT_EOF
7047: int main() { return 0;}
7048: _LT_EOF
7049: echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7050: $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7051: _lt_result=$?
7052: if test -s conftest.err && $GREP force_load conftest.err; then
7053: cat conftest.err >&5
7054: elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7055: lt_cv_ld_force_load=yes
7056: else
7057: cat conftest.err >&5
7058: fi
7059: rm -f conftest.err libconftest.a conftest conftest.c
7060: rm -rf conftest.dSYM
7061:
7062: fi
7063: echo "$as_me:$LINENO: result: $lt_cv_ld_force_load" >&5
7064: echo "${ECHO_T}$lt_cv_ld_force_load" >&6
7065: case $host_os in
7066: rhapsody* | darwin1.[012])
7067: _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7068: darwin1.*)
7069: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7070: darwin*) # darwin 5.x on
7071: # if running on 10.5 or later, the deployment target defaults
7072: # to the OS version, if on x86, and 10.4, the deployment
7073: # target defaults to 10.4. Don't you love it?
7074: case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7075: 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7076: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7077: 10.[012]*)
7078: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7079: 10.*)
7080: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7081: esac
7082: ;;
7083: esac
7084: if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7085: _lt_dar_single_mod='$single_module'
7086: fi
7087: if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7088: _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7089: else
7090: _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7091: fi
7092: if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7093: _lt_dsymutil='~$DSYMUTIL $lib || :'
7094: else
7095: _lt_dsymutil=
7096: fi
7097: ;;
7098: esac
7099:
7100: ac_ext=c
7101: ac_cpp='$CPP $CPPFLAGS'
7102: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7103: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7104: ac_compiler_gnu=$ac_cv_c_compiler_gnu
7105: echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7106: echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
7107: # On Suns, sometimes $CPP names a directory.
7108: if test -n "$CPP" && test -d "$CPP"; then
7109: CPP=
7110: fi
7111: if test -z "$CPP"; then
7112: if test "${ac_cv_prog_CPP+set}" = set; then
7113: echo $ECHO_N "(cached) $ECHO_C" >&6
7114: else
7115: # Double quotes because CPP needs to be expanded
7116: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7117: do
7118: ac_preproc_ok=false
7119: for ac_c_preproc_warn_flag in '' yes
7120: do
7121: # Use a header file that comes with gcc, so configuring glibc
7122: # with a fresh cross-compiler works.
7123: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7124: # <limits.h> exists even on freestanding compilers.
7125: # On the NeXT, cc -E runs the code through the compiler's parser,
7126: # not just through cpp. "Syntax error" is here to catch this case.
7127: cat >conftest.$ac_ext <<_ACEOF
7128: /* confdefs.h. */
7129: _ACEOF
7130: cat confdefs.h >>conftest.$ac_ext
7131: cat >>conftest.$ac_ext <<_ACEOF
7132: /* end confdefs.h. */
7133: #ifdef __STDC__
7134: # include <limits.h>
7135: #else
7136: # include <assert.h>
7137: #endif
7138: Syntax error
7139: _ACEOF
7140: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7141: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7142: ac_status=$?
7143: grep -v '^ *+' conftest.er1 >conftest.err
7144: rm -f conftest.er1
7145: cat conftest.err >&5
7146: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7147: (exit $ac_status); } >/dev/null; then
7148: if test -s conftest.err; then
7149: ac_cpp_err=$ac_c_preproc_warn_flag
7150: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7151: else
7152: ac_cpp_err=
7153: fi
7154: else
7155: ac_cpp_err=yes
7156: fi
7157: if test -z "$ac_cpp_err"; then
7158: :
7159: else
7160: echo "$as_me: failed program was:" >&5
7161: sed 's/^/| /' conftest.$ac_ext >&5
7162:
7163: # Broken: fails on valid input.
7164: continue
7165: fi
7166: rm -f conftest.err conftest.$ac_ext
7167:
7168: # OK, works on sane cases. Now check whether non-existent headers
7169: # can be detected and how.
7170: cat >conftest.$ac_ext <<_ACEOF
7171: /* confdefs.h. */
7172: _ACEOF
7173: cat confdefs.h >>conftest.$ac_ext
7174: cat >>conftest.$ac_ext <<_ACEOF
7175: /* end confdefs.h. */
7176: #include <ac_nonexistent.h>
7177: _ACEOF
7178: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7179: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7180: ac_status=$?
7181: grep -v '^ *+' conftest.er1 >conftest.err
7182: rm -f conftest.er1
7183: cat conftest.err >&5
7184: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185: (exit $ac_status); } >/dev/null; then
7186: if test -s conftest.err; then
7187: ac_cpp_err=$ac_c_preproc_warn_flag
7188: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7189: else
7190: ac_cpp_err=
7191: fi
7192: else
7193: ac_cpp_err=yes
7194: fi
7195: if test -z "$ac_cpp_err"; then
7196: # Broken: success on invalid input.
7197: continue
7198: else
7199: echo "$as_me: failed program was:" >&5
7200: sed 's/^/| /' conftest.$ac_ext >&5
7201:
7202: # Passes both tests.
7203: ac_preproc_ok=:
7204: break
7205: fi
7206: rm -f conftest.err conftest.$ac_ext
7207:
7208: done
7209: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7210: rm -f conftest.err conftest.$ac_ext
7211: if $ac_preproc_ok; then
7212: break
7213: fi
7214:
7215: done
7216: ac_cv_prog_CPP=$CPP
7217:
7218: fi
7219: CPP=$ac_cv_prog_CPP
7220: else
7221: ac_cv_prog_CPP=$CPP
7222: fi
7223: echo "$as_me:$LINENO: result: $CPP" >&5
7224: echo "${ECHO_T}$CPP" >&6
7225: ac_preproc_ok=false
7226: for ac_c_preproc_warn_flag in '' yes
7227: do
7228: # Use a header file that comes with gcc, so configuring glibc
7229: # with a fresh cross-compiler works.
7230: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7231: # <limits.h> exists even on freestanding compilers.
7232: # On the NeXT, cc -E runs the code through the compiler's parser,
7233: # not just through cpp. "Syntax error" is here to catch this case.
7234: cat >conftest.$ac_ext <<_ACEOF
7235: /* confdefs.h. */
7236: _ACEOF
7237: cat confdefs.h >>conftest.$ac_ext
7238: cat >>conftest.$ac_ext <<_ACEOF
7239: /* end confdefs.h. */
7240: #ifdef __STDC__
7241: # include <limits.h>
7242: #else
7243: # include <assert.h>
7244: #endif
7245: Syntax error
7246: _ACEOF
7247: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7248: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7249: ac_status=$?
7250: grep -v '^ *+' conftest.er1 >conftest.err
7251: rm -f conftest.er1
7252: cat conftest.err >&5
7253: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7254: (exit $ac_status); } >/dev/null; then
7255: if test -s conftest.err; then
7256: ac_cpp_err=$ac_c_preproc_warn_flag
7257: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7258: else
7259: ac_cpp_err=
7260: fi
7261: else
7262: ac_cpp_err=yes
7263: fi
7264: if test -z "$ac_cpp_err"; then
7265: :
7266: else
7267: echo "$as_me: failed program was:" >&5
7268: sed 's/^/| /' conftest.$ac_ext >&5
7269:
7270: # Broken: fails on valid input.
7271: continue
7272: fi
7273: rm -f conftest.err conftest.$ac_ext
7274:
7275: # OK, works on sane cases. Now check whether non-existent headers
7276: # can be detected and how.
7277: cat >conftest.$ac_ext <<_ACEOF
7278: /* confdefs.h. */
7279: _ACEOF
7280: cat confdefs.h >>conftest.$ac_ext
7281: cat >>conftest.$ac_ext <<_ACEOF
7282: /* end confdefs.h. */
7283: #include <ac_nonexistent.h>
7284: _ACEOF
7285: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7286: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7287: ac_status=$?
7288: grep -v '^ *+' conftest.er1 >conftest.err
7289: rm -f conftest.er1
7290: cat conftest.err >&5
7291: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7292: (exit $ac_status); } >/dev/null; then
7293: if test -s conftest.err; then
7294: ac_cpp_err=$ac_c_preproc_warn_flag
7295: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7296: else
7297: ac_cpp_err=
7298: fi
7299: else
7300: ac_cpp_err=yes
7301: fi
7302: if test -z "$ac_cpp_err"; then
7303: # Broken: success on invalid input.
7304: continue
7305: else
7306: echo "$as_me: failed program was:" >&5
7307: sed 's/^/| /' conftest.$ac_ext >&5
7308:
7309: # Passes both tests.
7310: ac_preproc_ok=:
7311: break
7312: fi
7313: rm -f conftest.err conftest.$ac_ext
7314:
7315: done
7316: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7317: rm -f conftest.err conftest.$ac_ext
7318: if $ac_preproc_ok; then
7319: :
7320: else
7321: { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7322: See \`config.log' for more details." >&5
7323: echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7324: See \`config.log' for more details." >&2;}
7325: { (exit 1); exit 1; }; }
7326: fi
7327:
7328: ac_ext=c
7329: ac_cpp='$CPP $CPPFLAGS'
7330: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7331: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7332: ac_compiler_gnu=$ac_cv_c_compiler_gnu
7333:
7334:
7335: echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7336: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7337: if test "${ac_cv_header_stdc+set}" = set; then
7338: echo $ECHO_N "(cached) $ECHO_C" >&6
7339: else
7340: cat >conftest.$ac_ext <<_ACEOF
7341: /* confdefs.h. */
7342: _ACEOF
7343: cat confdefs.h >>conftest.$ac_ext
7344: cat >>conftest.$ac_ext <<_ACEOF
7345: /* end confdefs.h. */
7346: #include <stdlib.h>
7347: #include <stdarg.h>
7348: #include <string.h>
7349: #include <float.h>
7350:
7351: int
7352: main ()
7353: {
7354:
7355: ;
7356: return 0;
7357: }
7358: _ACEOF
7359: rm -f conftest.$ac_objext
7360: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7361: (eval $ac_compile) 2>conftest.er1
7362: ac_status=$?
7363: grep -v '^ *+' conftest.er1 >conftest.err
7364: rm -f conftest.er1
7365: cat conftest.err >&5
7366: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7367: (exit $ac_status); } &&
7368: { ac_try='test -z "$ac_c_werror_flag"
7369: || test ! -s conftest.err'
7370: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7371: (eval $ac_try) 2>&5
7372: ac_status=$?
7373: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7374: (exit $ac_status); }; } &&
7375: { ac_try='test -s conftest.$ac_objext'
7376: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7377: (eval $ac_try) 2>&5
7378: ac_status=$?
7379: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7380: (exit $ac_status); }; }; then
7381: ac_cv_header_stdc=yes
7382: else
7383: echo "$as_me: failed program was:" >&5
7384: sed 's/^/| /' conftest.$ac_ext >&5
7385:
7386: ac_cv_header_stdc=no
7387: fi
7388: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7389:
7390: if test $ac_cv_header_stdc = yes; then
7391: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7392: cat >conftest.$ac_ext <<_ACEOF
7393: /* confdefs.h. */
7394: _ACEOF
7395: cat confdefs.h >>conftest.$ac_ext
7396: cat >>conftest.$ac_ext <<_ACEOF
7397: /* end confdefs.h. */
7398: #include <string.h>
7399:
7400: _ACEOF
7401: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7402: $EGREP "memchr" >/dev/null 2>&1; then
7403: :
7404: else
7405: ac_cv_header_stdc=no
7406: fi
7407: rm -f conftest*
7408:
7409: fi
7410:
7411: if test $ac_cv_header_stdc = yes; then
7412: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7413: cat >conftest.$ac_ext <<_ACEOF
7414: /* confdefs.h. */
7415: _ACEOF
7416: cat confdefs.h >>conftest.$ac_ext
7417: cat >>conftest.$ac_ext <<_ACEOF
7418: /* end confdefs.h. */
7419: #include <stdlib.h>
7420:
7421: _ACEOF
7422: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7423: $EGREP "free" >/dev/null 2>&1; then
7424: :
7425: else
7426: ac_cv_header_stdc=no
7427: fi
7428: rm -f conftest*
7429:
7430: fi
7431:
7432: if test $ac_cv_header_stdc = yes; then
7433: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7434: if test "$cross_compiling" = yes; then
7435: :
7436: else
7437: cat >conftest.$ac_ext <<_ACEOF
7438: /* confdefs.h. */
7439: _ACEOF
7440: cat confdefs.h >>conftest.$ac_ext
7441: cat >>conftest.$ac_ext <<_ACEOF
7442: /* end confdefs.h. */
7443: #include <ctype.h>
7444: #if ((' ' & 0x0FF) == 0x020)
7445: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7446: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7447: #else
7448: # define ISLOWER(c) \
7449: (('a' <= (c) && (c) <= 'i') \
7450: || ('j' <= (c) && (c) <= 'r') \
7451: || ('s' <= (c) && (c) <= 'z'))
7452: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7453: #endif
7454:
7455: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7456: int
7457: main ()
7458: {
7459: int i;
7460: for (i = 0; i < 256; i++)
7461: if (XOR (islower (i), ISLOWER (i))
7462: || toupper (i) != TOUPPER (i))
7463: exit(2);
7464: exit (0);
7465: }
7466: _ACEOF
7467: rm -f conftest$ac_exeext
7468: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7469: (eval $ac_link) 2>&5
7470: ac_status=$?
7471: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7472: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7473: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7474: (eval $ac_try) 2>&5
7475: ac_status=$?
7476: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7477: (exit $ac_status); }; }; then
7478: :
7479: else
7480: echo "$as_me: program exited with status $ac_status" >&5
7481: echo "$as_me: failed program was:" >&5
7482: sed 's/^/| /' conftest.$ac_ext >&5
7483:
7484: ( exit $ac_status )
7485: ac_cv_header_stdc=no
7486: fi
7487: rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7488: fi
7489: fi
7490: fi
7491: echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7492: echo "${ECHO_T}$ac_cv_header_stdc" >&6
7493: if test $ac_cv_header_stdc = yes; then
7494:
7495: cat >>confdefs.h <<\_ACEOF
7496: #define STDC_HEADERS 1
7497: _ACEOF
7498:
7499: fi
7500:
7501: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7502:
7503:
7504:
7505:
7506:
7507:
7508:
7509:
7510:
7511: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7512: inttypes.h stdint.h unistd.h
7513: do
7514: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7515: echo "$as_me:$LINENO: checking for $ac_header" >&5
7516: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7517: if eval "test \"\${$as_ac_Header+set}\" = set"; then
7518: echo $ECHO_N "(cached) $ECHO_C" >&6
7519: else
7520: cat >conftest.$ac_ext <<_ACEOF
7521: /* confdefs.h. */
7522: _ACEOF
7523: cat confdefs.h >>conftest.$ac_ext
7524: cat >>conftest.$ac_ext <<_ACEOF
7525: /* end confdefs.h. */
7526: $ac_includes_default
7527:
7528: #include <$ac_header>
7529: _ACEOF
7530: rm -f conftest.$ac_objext
7531: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7532: (eval $ac_compile) 2>conftest.er1
7533: ac_status=$?
7534: grep -v '^ *+' conftest.er1 >conftest.err
7535: rm -f conftest.er1
7536: cat conftest.err >&5
7537: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7538: (exit $ac_status); } &&
7539: { ac_try='test -z "$ac_c_werror_flag"
7540: || test ! -s conftest.err'
7541: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7542: (eval $ac_try) 2>&5
7543: ac_status=$?
7544: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545: (exit $ac_status); }; } &&
7546: { ac_try='test -s conftest.$ac_objext'
7547: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7548: (eval $ac_try) 2>&5
7549: ac_status=$?
7550: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7551: (exit $ac_status); }; }; then
7552: eval "$as_ac_Header=yes"
7553: else
7554: echo "$as_me: failed program was:" >&5
7555: sed 's/^/| /' conftest.$ac_ext >&5
7556:
7557: eval "$as_ac_Header=no"
7558: fi
7559: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7560: fi
7561: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7562: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7563: if test `eval echo '${'$as_ac_Header'}'` = yes; then
7564: cat >>confdefs.h <<_ACEOF
7565: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7566: _ACEOF
7567:
7568: fi
7569:
7570: done
7571:
7572:
7573:
7574: for ac_header in dlfcn.h
7575: do
7576: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7577: echo "$as_me:$LINENO: checking for $ac_header" >&5
7578: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7579: if eval "test \"\${$as_ac_Header+set}\" = set"; then
7580: echo $ECHO_N "(cached) $ECHO_C" >&6
7581: else
7582: cat >conftest.$ac_ext <<_ACEOF
7583: /* confdefs.h. */
7584: _ACEOF
7585: cat confdefs.h >>conftest.$ac_ext
7586: cat >>conftest.$ac_ext <<_ACEOF
7587: /* end confdefs.h. */
7588: $ac_includes_default
7589:
7590: #include <$ac_header>
7591: _ACEOF
7592: rm -f conftest.$ac_objext
7593: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7594: (eval $ac_compile) 2>conftest.er1
7595: ac_status=$?
7596: grep -v '^ *+' conftest.er1 >conftest.err
7597: rm -f conftest.er1
7598: cat conftest.err >&5
7599: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7600: (exit $ac_status); } &&
7601: { ac_try='test -z "$ac_c_werror_flag"
7602: || test ! -s conftest.err'
7603: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7604: (eval $ac_try) 2>&5
7605: ac_status=$?
7606: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7607: (exit $ac_status); }; } &&
7608: { ac_try='test -s conftest.$ac_objext'
7609: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7610: (eval $ac_try) 2>&5
7611: ac_status=$?
7612: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7613: (exit $ac_status); }; }; then
7614: eval "$as_ac_Header=yes"
7615: else
7616: echo "$as_me: failed program was:" >&5
7617: sed 's/^/| /' conftest.$ac_ext >&5
7618:
7619: eval "$as_ac_Header=no"
7620: fi
7621: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7622: fi
7623: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7624: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7625: if test `eval echo '${'$as_ac_Header'}'` = yes; then
7626: cat >>confdefs.h <<_ACEOF
7627: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7628: _ACEOF
7629:
7630: fi
7631:
7632: done
7633:
7634:
7635:
7636:
7637: func_stripname_cnf ()
7638: {
7639: case ${2} in
7640: .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
7641: *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
7642: esac
7643: } # func_stripname_cnf
7644:
7645:
7646:
7647:
7648:
7649: # Set options
7650: enable_dlopen=yes
7651: enable_win32_dll=yes
7652:
7653: case $host in
7654: *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7655: if test -n "$ac_tool_prefix"; then
7656: # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7657: set dummy ${ac_tool_prefix}as; ac_word=$2
7658: echo "$as_me:$LINENO: checking for $ac_word" >&5
7659: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7660: if test "${ac_cv_prog_AS+set}" = set; then
7661: echo $ECHO_N "(cached) $ECHO_C" >&6
7662: else
7663: if test -n "$AS"; then
7664: ac_cv_prog_AS="$AS" # Let the user override the test.
7665: else
7666: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7667: for as_dir in $PATH
7668: do
7669: IFS=$as_save_IFS
7670: test -z "$as_dir" && as_dir=.
7671: for ac_exec_ext in '' $ac_executable_extensions; do
7672: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7673: ac_cv_prog_AS="${ac_tool_prefix}as"
7674: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7675: break 2
7676: fi
7677: done
7678: done
7679:
7680: fi
7681: fi
7682: AS=$ac_cv_prog_AS
7683: if test -n "$AS"; then
7684: echo "$as_me:$LINENO: result: $AS" >&5
7685: echo "${ECHO_T}$AS" >&6
7686: else
7687: echo "$as_me:$LINENO: result: no" >&5
7688: echo "${ECHO_T}no" >&6
7689: fi
7690:
7691: fi
7692: if test -z "$ac_cv_prog_AS"; then
7693: ac_ct_AS=$AS
7694: # Extract the first word of "as", so it can be a program name with args.
7695: set dummy as; ac_word=$2
7696: echo "$as_me:$LINENO: checking for $ac_word" >&5
7697: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7698: if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
7699: echo $ECHO_N "(cached) $ECHO_C" >&6
7700: else
7701: if test -n "$ac_ct_AS"; then
7702: ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7703: else
7704: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7705: for as_dir in $PATH
7706: do
7707: IFS=$as_save_IFS
7708: test -z "$as_dir" && as_dir=.
7709: for ac_exec_ext in '' $ac_executable_extensions; do
7710: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7711: ac_cv_prog_ac_ct_AS="as"
7712: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7713: break 2
7714: fi
7715: done
7716: done
7717:
7718: test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
7719: fi
7720: fi
7721: ac_ct_AS=$ac_cv_prog_ac_ct_AS
7722: if test -n "$ac_ct_AS"; then
7723: echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
7724: echo "${ECHO_T}$ac_ct_AS" >&6
7725: else
7726: echo "$as_me:$LINENO: result: no" >&5
7727: echo "${ECHO_T}no" >&6
7728: fi
7729:
7730: AS=$ac_ct_AS
7731: else
7732: AS="$ac_cv_prog_AS"
7733: fi
7734:
7735: if test -n "$ac_tool_prefix"; then
7736: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7737: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7738: echo "$as_me:$LINENO: checking for $ac_word" >&5
7739: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7740: if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7741: echo $ECHO_N "(cached) $ECHO_C" >&6
7742: else
7743: if test -n "$DLLTOOL"; then
7744: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7745: else
7746: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7747: for as_dir in $PATH
7748: do
7749: IFS=$as_save_IFS
7750: test -z "$as_dir" && as_dir=.
7751: for ac_exec_ext in '' $ac_executable_extensions; do
7752: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7753: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7754: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7755: break 2
7756: fi
7757: done
7758: done
7759:
7760: fi
7761: fi
7762: DLLTOOL=$ac_cv_prog_DLLTOOL
7763: if test -n "$DLLTOOL"; then
7764: echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7765: echo "${ECHO_T}$DLLTOOL" >&6
7766: else
7767: echo "$as_me:$LINENO: result: no" >&5
7768: echo "${ECHO_T}no" >&6
7769: fi
7770:
7771: fi
7772: if test -z "$ac_cv_prog_DLLTOOL"; then
7773: ac_ct_DLLTOOL=$DLLTOOL
7774: # Extract the first word of "dlltool", so it can be a program name with args.
7775: set dummy dlltool; ac_word=$2
7776: echo "$as_me:$LINENO: checking for $ac_word" >&5
7777: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7778: if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
7779: echo $ECHO_N "(cached) $ECHO_C" >&6
7780: else
7781: if test -n "$ac_ct_DLLTOOL"; then
7782: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7783: else
7784: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7785: for as_dir in $PATH
7786: do
7787: IFS=$as_save_IFS
7788: test -z "$as_dir" && as_dir=.
7789: for ac_exec_ext in '' $ac_executable_extensions; do
7790: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7791: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7792: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7793: break 2
7794: fi
7795: done
7796: done
7797:
7798: test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
7799: fi
7800: fi
7801: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7802: if test -n "$ac_ct_DLLTOOL"; then
7803: echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
7804: echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
7805: else
7806: echo "$as_me:$LINENO: result: no" >&5
7807: echo "${ECHO_T}no" >&6
7808: fi
7809:
7810: DLLTOOL=$ac_ct_DLLTOOL
7811: else
7812: DLLTOOL="$ac_cv_prog_DLLTOOL"
7813: fi
7814:
7815: if test -n "$ac_tool_prefix"; then
7816: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7817: set dummy ${ac_tool_prefix}objdump; ac_word=$2
7818: echo "$as_me:$LINENO: checking for $ac_word" >&5
7819: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7820: if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7821: echo $ECHO_N "(cached) $ECHO_C" >&6
7822: else
7823: if test -n "$OBJDUMP"; then
7824: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7825: else
7826: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7827: for as_dir in $PATH
7828: do
7829: IFS=$as_save_IFS
7830: test -z "$as_dir" && as_dir=.
7831: for ac_exec_ext in '' $ac_executable_extensions; do
7832: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7833: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7834: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7835: break 2
7836: fi
7837: done
7838: done
7839:
7840: fi
7841: fi
7842: OBJDUMP=$ac_cv_prog_OBJDUMP
7843: if test -n "$OBJDUMP"; then
7844: echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7845: echo "${ECHO_T}$OBJDUMP" >&6
7846: else
7847: echo "$as_me:$LINENO: result: no" >&5
7848: echo "${ECHO_T}no" >&6
7849: fi
7850:
7851: fi
7852: if test -z "$ac_cv_prog_OBJDUMP"; then
7853: ac_ct_OBJDUMP=$OBJDUMP
7854: # Extract the first word of "objdump", so it can be a program name with args.
7855: set dummy objdump; ac_word=$2
7856: echo "$as_me:$LINENO: checking for $ac_word" >&5
7857: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7858: if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
7859: echo $ECHO_N "(cached) $ECHO_C" >&6
7860: else
7861: if test -n "$ac_ct_OBJDUMP"; then
7862: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7863: else
7864: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7865: for as_dir in $PATH
7866: do
7867: IFS=$as_save_IFS
7868: test -z "$as_dir" && as_dir=.
7869: for ac_exec_ext in '' $ac_executable_extensions; do
7870: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7871: ac_cv_prog_ac_ct_OBJDUMP="objdump"
7872: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7873: break 2
7874: fi
7875: done
7876: done
7877:
7878: test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
7879: fi
7880: fi
7881: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7882: if test -n "$ac_ct_OBJDUMP"; then
7883: echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
7884: echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
7885: else
7886: echo "$as_me:$LINENO: result: no" >&5
7887: echo "${ECHO_T}no" >&6
7888: fi
7889:
7890: OBJDUMP=$ac_ct_OBJDUMP
7891: else
7892: OBJDUMP="$ac_cv_prog_OBJDUMP"
7893: fi
7894:
7895: ;;
7896: esac
7897:
7898: test -z "$AS" && AS=as
7899:
7900:
7901:
7902:
7903:
7904: test -z "$DLLTOOL" && DLLTOOL=dlltool
7905:
7906:
7907:
7908:
7909:
7910: test -z "$OBJDUMP" && OBJDUMP=objdump
7911:
7912:
7913:
7914:
7915:
7916:
7917:
7918:
7919:
7920: # Check whether --enable-shared or --disable-shared was given.
7921: if test "${enable_shared+set}" = set; then
7922: enableval="$enable_shared"
7923: p=${PACKAGE-default}
7924: case $enableval in
7925: yes) enable_shared=yes ;;
7926: no) enable_shared=no ;;
7927: *)
7928: enable_shared=no
7929: # Look at the argument we got. We use all the common list separators.
7930: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7931: for pkg in $enableval; do
7932: IFS="$lt_save_ifs"
7933: if test "X$pkg" = "X$p"; then
7934: enable_shared=yes
7935: fi
7936: done
7937: IFS="$lt_save_ifs"
7938: ;;
7939: esac
7940: else
7941: enable_shared=yes
7942: fi;
7943:
7944:
7945:
7946:
7947:
7948:
7949:
7950:
1.138 moko 7951: # Check whether --enable-static or --disable-static was given.
7952: if test "${enable_static+set}" = set; then
7953: enableval="$enable_static"
7954: p=${PACKAGE-default}
7955: case $enableval in
7956: yes) enable_static=yes ;;
7957: no) enable_static=no ;;
7958: *)
7959: enable_static=no
7960: # Look at the argument we got. We use all the common list separators.
7961: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7962: for pkg in $enableval; do
7963: IFS="$lt_save_ifs"
7964: if test "X$pkg" = "X$p"; then
7965: enable_static=yes
7966: fi
7967: done
7968: IFS="$lt_save_ifs"
7969: ;;
7970: esac
7971: else
7972: enable_static=yes
7973: fi;
7974:
7975:
7976:
7977:
7978:
7979:
7980:
1.128 moko 7981:
7982:
7983: # Check whether --with-pic or --without-pic was given.
7984: if test "${with_pic+set}" = set; then
7985: withval="$with_pic"
7986: lt_p=${PACKAGE-default}
7987: case $withval in
7988: yes|no) pic_mode=$withval ;;
7989: *)
7990: pic_mode=default
7991: # Look at the argument we got. We use all the common list separators.
7992: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7993: for lt_pkg in $withval; do
7994: IFS="$lt_save_ifs"
7995: if test "X$lt_pkg" = "X$lt_p"; then
7996: pic_mode=yes
7997: fi
7998: done
7999: IFS="$lt_save_ifs"
8000: ;;
8001: esac
8002: else
8003: pic_mode=default
8004: fi;
8005:
8006: test -z "$pic_mode" && pic_mode=default
8007:
8008:
8009:
8010:
8011:
8012:
8013:
8014: # Check whether --enable-fast-install or --disable-fast-install was given.
8015: if test "${enable_fast_install+set}" = set; then
8016: enableval="$enable_fast_install"
8017: p=${PACKAGE-default}
8018: case $enableval in
8019: yes) enable_fast_install=yes ;;
8020: no) enable_fast_install=no ;;
8021: *)
8022: enable_fast_install=no
8023: # Look at the argument we got. We use all the common list separators.
8024: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8025: for pkg in $enableval; do
8026: IFS="$lt_save_ifs"
8027: if test "X$pkg" = "X$p"; then
8028: enable_fast_install=yes
8029: fi
8030: done
8031: IFS="$lt_save_ifs"
8032: ;;
8033: esac
8034: else
8035: enable_fast_install=yes
8036: fi;
8037:
8038:
8039:
8040:
8041:
8042:
8043:
8044:
8045:
8046:
8047: # This can be used to rebuild libtool when needed
8048: LIBTOOL_DEPS="$ltmain"
8049:
8050: # Always use our own libtool.
8051: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8052:
8053:
8054:
8055:
8056:
8057:
8058:
8059:
8060:
8061:
8062:
8063:
8064:
8065:
8066:
8067:
8068:
8069:
8070:
8071:
8072:
8073:
8074:
8075:
8076:
8077:
8078:
8079:
8080:
8081:
8082: test -z "$LN_S" && LN_S="ln -s"
8083:
8084:
8085:
8086:
8087:
8088:
8089:
8090:
8091:
8092:
8093:
8094:
8095:
8096:
8097: if test -n "${ZSH_VERSION+set}" ; then
8098: setopt NO_GLOB_SUBST
8099: fi
8100:
8101: echo "$as_me:$LINENO: checking for objdir" >&5
8102: echo $ECHO_N "checking for objdir... $ECHO_C" >&6
8103: if test "${lt_cv_objdir+set}" = set; then
8104: echo $ECHO_N "(cached) $ECHO_C" >&6
8105: else
8106: rm -f .libs 2>/dev/null
8107: mkdir .libs 2>/dev/null
8108: if test -d .libs; then
8109: lt_cv_objdir=.libs
8110: else
8111: # MS-DOS does not allow filenames that begin with a dot.
8112: lt_cv_objdir=_libs
8113: fi
8114: rmdir .libs 2>/dev/null
8115: fi
8116: echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8117: echo "${ECHO_T}$lt_cv_objdir" >&6
8118: objdir=$lt_cv_objdir
8119:
8120:
8121:
8122:
8123:
8124: cat >>confdefs.h <<_ACEOF
8125: #define LT_OBJDIR "$lt_cv_objdir/"
8126: _ACEOF
8127:
8128:
8129:
8130:
8131: case $host_os in
8132: aix3*)
8133: # AIX sometimes has problems with the GCC collect2 program. For some
8134: # reason, if we set the COLLECT_NAMES environment variable, the problems
8135: # vanish in a puff of smoke.
8136: if test "X${COLLECT_NAMES+set}" != Xset; then
8137: COLLECT_NAMES=
8138: export COLLECT_NAMES
8139: fi
8140: ;;
8141: esac
8142:
8143: # Global variables:
8144: ofile=libtool
8145: can_build_shared=yes
8146:
8147: # All known linkers require a `.a' archive for static linking (except MSVC,
8148: # which needs '.lib').
8149: libext=a
8150:
8151: with_gnu_ld="$lt_cv_prog_gnu_ld"
8152:
8153: old_CC="$CC"
8154: old_CFLAGS="$CFLAGS"
8155:
8156: # Set sane defaults for various variables
8157: test -z "$CC" && CC=cc
8158: test -z "$LTCC" && LTCC=$CC
8159: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8160: test -z "$LD" && LD=ld
8161: test -z "$ac_objext" && ac_objext=o
8162:
8163: for cc_temp in $compiler""; do
8164: case $cc_temp in
8165: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8166: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8167: \-*) ;;
8168: *) break;;
8169: esac
8170: done
8171: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8172:
8173:
8174: # Only perform the check for file, if the check method requires it
8175: test -z "$MAGIC_CMD" && MAGIC_CMD=file
8176: case $deplibs_check_method in
8177: file_magic*)
8178: if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8179: echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8180: echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8181: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8182: echo $ECHO_N "(cached) $ECHO_C" >&6
8183: else
8184: case $MAGIC_CMD in
8185: [\\/*] | ?:[\\/]*)
8186: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8187: ;;
8188: *)
8189: lt_save_MAGIC_CMD="$MAGIC_CMD"
8190: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8191: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8192: for ac_dir in $ac_dummy; do
8193: IFS="$lt_save_ifs"
8194: test -z "$ac_dir" && ac_dir=.
8195: if test -f $ac_dir/${ac_tool_prefix}file; then
8196: lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8197: if test -n "$file_magic_test_file"; then
8198: case $deplibs_check_method in
8199: "file_magic "*)
8200: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8201: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8202: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8203: $EGREP "$file_magic_regex" > /dev/null; then
8204: :
8205: else
8206: cat <<_LT_EOF 1>&2
8207:
8208: *** Warning: the command libtool uses to detect shared libraries,
8209: *** $file_magic_cmd, produces output that libtool cannot recognize.
8210: *** The result is that libtool may fail to recognize shared libraries
8211: *** as such. This will affect the creation of libtool libraries that
8212: *** depend on shared libraries, but programs linked with such libtool
8213: *** libraries will work regardless of this problem. Nevertheless, you
8214: *** may want to report the problem to your system manager and/or to
8215: *** bug-libtool@gnu.org
8216:
8217: _LT_EOF
8218: fi ;;
8219: esac
8220: fi
8221: break
8222: fi
8223: done
8224: IFS="$lt_save_ifs"
8225: MAGIC_CMD="$lt_save_MAGIC_CMD"
8226: ;;
8227: esac
8228: fi
8229:
8230: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8231: if test -n "$MAGIC_CMD"; then
8232: echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8233: echo "${ECHO_T}$MAGIC_CMD" >&6
8234: else
8235: echo "$as_me:$LINENO: result: no" >&5
8236: echo "${ECHO_T}no" >&6
8237: fi
8238:
8239:
8240:
8241:
8242:
8243: if test -z "$lt_cv_path_MAGIC_CMD"; then
8244: if test -n "$ac_tool_prefix"; then
8245: echo "$as_me:$LINENO: checking for file" >&5
8246: echo $ECHO_N "checking for file... $ECHO_C" >&6
8247: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8248: echo $ECHO_N "(cached) $ECHO_C" >&6
8249: else
8250: case $MAGIC_CMD in
8251: [\\/*] | ?:[\\/]*)
8252: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8253: ;;
8254: *)
8255: lt_save_MAGIC_CMD="$MAGIC_CMD"
8256: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8257: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8258: for ac_dir in $ac_dummy; do
8259: IFS="$lt_save_ifs"
8260: test -z "$ac_dir" && ac_dir=.
8261: if test -f $ac_dir/file; then
8262: lt_cv_path_MAGIC_CMD="$ac_dir/file"
8263: if test -n "$file_magic_test_file"; then
8264: case $deplibs_check_method in
8265: "file_magic "*)
8266: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8267: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8268: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8269: $EGREP "$file_magic_regex" > /dev/null; then
8270: :
8271: else
8272: cat <<_LT_EOF 1>&2
8273:
8274: *** Warning: the command libtool uses to detect shared libraries,
8275: *** $file_magic_cmd, produces output that libtool cannot recognize.
8276: *** The result is that libtool may fail to recognize shared libraries
8277: *** as such. This will affect the creation of libtool libraries that
8278: *** depend on shared libraries, but programs linked with such libtool
8279: *** libraries will work regardless of this problem. Nevertheless, you
8280: *** may want to report the problem to your system manager and/or to
8281: *** bug-libtool@gnu.org
8282:
8283: _LT_EOF
8284: fi ;;
8285: esac
8286: fi
8287: break
8288: fi
8289: done
8290: IFS="$lt_save_ifs"
8291: MAGIC_CMD="$lt_save_MAGIC_CMD"
8292: ;;
8293: esac
8294: fi
8295:
8296: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8297: if test -n "$MAGIC_CMD"; then
8298: echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8299: echo "${ECHO_T}$MAGIC_CMD" >&6
8300: else
8301: echo "$as_me:$LINENO: result: no" >&5
8302: echo "${ECHO_T}no" >&6
8303: fi
8304:
8305:
8306: else
8307: MAGIC_CMD=:
8308: fi
8309: fi
8310:
8311: fi
8312: ;;
8313: esac
8314:
8315: # Use C for the default configuration in the libtool script
8316:
8317: lt_save_CC="$CC"
8318: ac_ext=c
8319: ac_cpp='$CPP $CPPFLAGS'
8320: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8321: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8322: ac_compiler_gnu=$ac_cv_c_compiler_gnu
8323:
8324:
8325: # Source file extension for C test sources.
8326: ac_ext=c
8327:
8328: # Object file extension for compiled C test sources.
8329: objext=o
8330: objext=$objext
8331:
8332: # Code to be used in simple compile tests
8333: lt_simple_compile_test_code="int some_variable = 0;"
8334:
8335: # Code to be used in simple link tests
8336: lt_simple_link_test_code='int main(){return(0);}'
8337:
8338:
8339:
8340:
8341:
8342:
8343:
8344: # If no C compiler was specified, use CC.
8345: LTCC=${LTCC-"$CC"}
8346:
8347: # If no C compiler flags were specified, use CFLAGS.
8348: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8349:
8350: # Allow CC to be a program name with arguments.
8351: compiler=$CC
8352:
8353: # Save the default compiler, since it gets overwritten when the other
8354: # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8355: compiler_DEFAULT=$CC
8356:
8357: # save warnings/boilerplate of simple test code
8358: ac_outfile=conftest.$ac_objext
8359: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8360: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8361: _lt_compiler_boilerplate=`cat conftest.err`
8362: $RM conftest*
8363:
8364: ac_outfile=conftest.$ac_objext
8365: echo "$lt_simple_link_test_code" >conftest.$ac_ext
8366: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8367: _lt_linker_boilerplate=`cat conftest.err`
8368: $RM -r conftest*
8369:
8370:
8371: ## CAVEAT EMPTOR:
8372: ## There is no encapsulation within the following macros, do not change
8373: ## the running order or otherwise move them around unless you know exactly
8374: ## what you are doing...
8375: if test -n "$compiler"; then
8376:
8377: lt_prog_compiler_no_builtin_flag=
8378:
8379: if test "$GCC" = yes; then
8380: case $cc_basename in
8381: nvcc*)
8382: lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8383: *)
8384: lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8385: esac
8386:
8387: echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8388: echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8389: if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8390: echo $ECHO_N "(cached) $ECHO_C" >&6
8391: else
8392: lt_cv_prog_compiler_rtti_exceptions=no
8393: ac_outfile=conftest.$ac_objext
8394: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8395: lt_compiler_flag="-fno-rtti -fno-exceptions"
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: # The option is referenced via a variable to avoid confusing sed.
8401: lt_compile=`echo "$ac_compile" | $SED \
8402: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8403: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8404: -e 's:$: $lt_compiler_flag:'`
8405: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8406: (eval "$lt_compile" 2>conftest.err)
8407: ac_status=$?
8408: cat conftest.err >&5
8409: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410: if (exit $ac_status) && test -s "$ac_outfile"; then
8411: # The compiler can only warn and ignore the option if not recognized
8412: # So say no if there are warnings other than the usual output.
8413: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8414: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8415: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8416: lt_cv_prog_compiler_rtti_exceptions=yes
8417: fi
8418: fi
8419: $RM conftest*
8420:
8421: fi
8422: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8423: echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8424:
8425: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8426: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8427: else
8428: :
8429: fi
8430:
8431: fi
8432:
8433:
8434:
8435:
8436:
8437:
8438: lt_prog_compiler_wl=
8439: lt_prog_compiler_pic=
8440: lt_prog_compiler_static=
8441:
8442:
8443: if test "$GCC" = yes; then
8444: lt_prog_compiler_wl='-Wl,'
8445: lt_prog_compiler_static='-static'
8446:
8447: case $host_os in
8448: aix*)
8449: # All AIX code is PIC.
8450: if test "$host_cpu" = ia64; then
8451: # AIX 5 now supports IA64 processor
8452: lt_prog_compiler_static='-Bstatic'
8453: fi
8454: ;;
8455:
8456: amigaos*)
8457: case $host_cpu in
8458: powerpc)
8459: # see comment about AmigaOS4 .so support
8460: lt_prog_compiler_pic='-fPIC'
8461: ;;
8462: m68k)
8463: # FIXME: we need at least 68020 code to build shared libraries, but
8464: # adding the `-m68020' flag to GCC prevents building anything better,
8465: # like `-m68040'.
8466: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8467: ;;
8468: esac
8469: ;;
8470:
8471: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8472: # PIC is the default for these OSes.
8473: ;;
8474:
8475: mingw* | cygwin* | pw32* | os2* | cegcc*)
8476: # This hack is so that the source file can tell whether it is being
8477: # built for inclusion in a dll (and should export symbols for example).
8478: # Although the cygwin gcc ignores -fPIC, still need this for old-style
8479: # (--disable-auto-import) libraries
8480: lt_prog_compiler_pic='-DDLL_EXPORT'
8481: ;;
8482:
8483: darwin* | rhapsody*)
8484: # PIC is the default on this platform
8485: # Common symbols not allowed in MH_DYLIB files
8486: lt_prog_compiler_pic='-fno-common'
8487: ;;
8488:
8489: haiku*)
8490: # PIC is the default for Haiku.
8491: # The "-static" flag exists, but is broken.
8492: lt_prog_compiler_static=
8493: ;;
8494:
8495: hpux*)
8496: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8497: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8498: # sets the default TLS model and affects inlining.
8499: case $host_cpu in
8500: hppa*64*)
8501: # +Z the default
8502: ;;
8503: *)
8504: lt_prog_compiler_pic='-fPIC'
8505: ;;
8506: esac
8507: ;;
8508:
8509: interix[3-9]*)
8510: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8511: # Instead, we relocate shared libraries at runtime.
8512: ;;
8513:
8514: msdosdjgpp*)
8515: # Just because we use GCC doesn't mean we suddenly get shared libraries
8516: # on systems that don't support them.
8517: lt_prog_compiler_can_build_shared=no
8518: enable_shared=no
8519: ;;
8520:
8521: *nto* | *qnx*)
8522: # QNX uses GNU C++, but need to define -shared option too, otherwise
8523: # it will coredump.
8524: lt_prog_compiler_pic='-fPIC -shared'
8525: ;;
8526:
8527: sysv4*MP*)
8528: if test -d /usr/nec; then
8529: lt_prog_compiler_pic=-Kconform_pic
8530: fi
8531: ;;
8532:
8533: *)
8534: lt_prog_compiler_pic='-fPIC'
8535: ;;
8536: esac
8537:
8538: case $cc_basename in
8539: nvcc*) # Cuda Compiler Driver 2.2
8540: lt_prog_compiler_wl='-Xlinker '
8541: if test -n "$lt_prog_compiler_pic"; then
8542: lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8543: fi
8544: ;;
8545: esac
8546: else
8547: # PORTME Check for flag to pass linker flags through the system compiler.
8548: case $host_os in
8549: aix*)
8550: lt_prog_compiler_wl='-Wl,'
8551: if test "$host_cpu" = ia64; then
8552: # AIX 5 now supports IA64 processor
8553: lt_prog_compiler_static='-Bstatic'
8554: else
8555: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8556: fi
8557: ;;
8558:
8559: mingw* | cygwin* | pw32* | os2* | cegcc*)
8560: # This hack is so that the source file can tell whether it is being
8561: # built for inclusion in a dll (and should export symbols for example).
8562: lt_prog_compiler_pic='-DDLL_EXPORT'
8563: ;;
8564:
8565: hpux9* | hpux10* | hpux11*)
8566: lt_prog_compiler_wl='-Wl,'
8567: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8568: # not for PA HP-UX.
8569: case $host_cpu in
8570: hppa*64*|ia64*)
8571: # +Z the default
8572: ;;
8573: *)
8574: lt_prog_compiler_pic='+Z'
8575: ;;
8576: esac
8577: # Is there a better lt_prog_compiler_static that works with the bundled CC?
8578: lt_prog_compiler_static='${wl}-a ${wl}archive'
8579: ;;
8580:
8581: irix5* | irix6* | nonstopux*)
8582: lt_prog_compiler_wl='-Wl,'
8583: # PIC (with -KPIC) is the default.
8584: lt_prog_compiler_static='-non_shared'
8585: ;;
8586:
8587: linux* | k*bsd*-gnu | kopensolaris*-gnu)
8588: case $cc_basename in
8589: # old Intel for x86_64 which still supported -KPIC.
8590: ecc*)
8591: lt_prog_compiler_wl='-Wl,'
8592: lt_prog_compiler_pic='-KPIC'
8593: lt_prog_compiler_static='-static'
8594: ;;
8595: # icc used to be incompatible with GCC.
8596: # ICC 10 doesn't accept -KPIC any more.
8597: icc* | ifort*)
8598: lt_prog_compiler_wl='-Wl,'
8599: lt_prog_compiler_pic='-fPIC'
8600: lt_prog_compiler_static='-static'
8601: ;;
8602: # Lahey Fortran 8.1.
8603: lf95*)
8604: lt_prog_compiler_wl='-Wl,'
8605: lt_prog_compiler_pic='--shared'
8606: lt_prog_compiler_static='--static'
8607: ;;
8608: nagfor*)
8609: # NAG Fortran compiler
8610: lt_prog_compiler_wl='-Wl,-Wl,,'
8611: lt_prog_compiler_pic='-PIC'
8612: lt_prog_compiler_static='-Bstatic'
8613: ;;
8614: pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8615: # Portland Group compilers (*not* the Pentium gcc compiler,
8616: # which looks to be a dead project)
8617: lt_prog_compiler_wl='-Wl,'
8618: lt_prog_compiler_pic='-fpic'
8619: lt_prog_compiler_static='-Bstatic'
8620: ;;
8621: ccc*)
8622: lt_prog_compiler_wl='-Wl,'
8623: # All Alpha code is PIC.
8624: lt_prog_compiler_static='-non_shared'
8625: ;;
8626: xl* | bgxl* | bgf* | mpixl*)
8627: # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8628: lt_prog_compiler_wl='-Wl,'
8629: lt_prog_compiler_pic='-qpic'
8630: lt_prog_compiler_static='-qstaticlink'
8631: ;;
8632: *)
8633: case `$CC -V 2>&1 | sed 5q` in
8634: *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8635: # Sun Fortran 8.3 passes all unrecognized flags to the linker
8636: lt_prog_compiler_pic='-KPIC'
8637: lt_prog_compiler_static='-Bstatic'
8638: lt_prog_compiler_wl=''
8639: ;;
8640: *Sun\ F* | *Sun*Fortran*)
8641: lt_prog_compiler_pic='-KPIC'
8642: lt_prog_compiler_static='-Bstatic'
8643: lt_prog_compiler_wl='-Qoption ld '
8644: ;;
8645: *Sun\ C*)
8646: # Sun C 5.9
8647: lt_prog_compiler_pic='-KPIC'
8648: lt_prog_compiler_static='-Bstatic'
8649: lt_prog_compiler_wl='-Wl,'
8650: ;;
8651: *Intel*\ [CF]*Compiler*)
8652: lt_prog_compiler_wl='-Wl,'
8653: lt_prog_compiler_pic='-fPIC'
8654: lt_prog_compiler_static='-static'
8655: ;;
8656: *Portland\ Group*)
8657: lt_prog_compiler_wl='-Wl,'
8658: lt_prog_compiler_pic='-fpic'
8659: lt_prog_compiler_static='-Bstatic'
8660: ;;
8661: esac
8662: ;;
8663: esac
8664: ;;
8665:
8666: newsos6)
8667: lt_prog_compiler_pic='-KPIC'
8668: lt_prog_compiler_static='-Bstatic'
8669: ;;
8670:
8671: *nto* | *qnx*)
8672: # QNX uses GNU C++, but need to define -shared option too, otherwise
8673: # it will coredump.
8674: lt_prog_compiler_pic='-fPIC -shared'
8675: ;;
8676:
8677: osf3* | osf4* | osf5*)
8678: lt_prog_compiler_wl='-Wl,'
8679: # All OSF/1 code is PIC.
8680: lt_prog_compiler_static='-non_shared'
8681: ;;
8682:
8683: rdos*)
8684: lt_prog_compiler_static='-non_shared'
8685: ;;
8686:
8687: solaris*)
8688: lt_prog_compiler_pic='-KPIC'
8689: lt_prog_compiler_static='-Bstatic'
8690: case $cc_basename in
8691: f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8692: lt_prog_compiler_wl='-Qoption ld ';;
8693: *)
8694: lt_prog_compiler_wl='-Wl,';;
8695: esac
8696: ;;
8697:
8698: sunos4*)
8699: lt_prog_compiler_wl='-Qoption ld '
8700: lt_prog_compiler_pic='-PIC'
8701: lt_prog_compiler_static='-Bstatic'
8702: ;;
8703:
8704: sysv4 | sysv4.2uw2* | sysv4.3*)
8705: lt_prog_compiler_wl='-Wl,'
8706: lt_prog_compiler_pic='-KPIC'
8707: lt_prog_compiler_static='-Bstatic'
8708: ;;
8709:
8710: sysv4*MP*)
8711: if test -d /usr/nec ;then
8712: lt_prog_compiler_pic='-Kconform_pic'
8713: lt_prog_compiler_static='-Bstatic'
8714: fi
8715: ;;
8716:
8717: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8718: lt_prog_compiler_wl='-Wl,'
8719: lt_prog_compiler_pic='-KPIC'
8720: lt_prog_compiler_static='-Bstatic'
8721: ;;
8722:
8723: unicos*)
8724: lt_prog_compiler_wl='-Wl,'
8725: lt_prog_compiler_can_build_shared=no
8726: ;;
8727:
8728: uts4*)
8729: lt_prog_compiler_pic='-pic'
8730: lt_prog_compiler_static='-Bstatic'
8731: ;;
8732:
8733: *)
8734: lt_prog_compiler_can_build_shared=no
8735: ;;
8736: esac
8737: fi
8738:
8739: case $host_os in
8740: # For platforms which do not support PIC, -DPIC is meaningless:
8741: *djgpp*)
8742: lt_prog_compiler_pic=
8743: ;;
8744: *)
8745: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8746: ;;
8747: esac
8748:
8749: echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8750: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8751: if test "${lt_cv_prog_compiler_pic+set}" = set; then
8752: echo $ECHO_N "(cached) $ECHO_C" >&6
8753: else
8754: lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8755: fi
8756: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic" >&5
8757: echo "${ECHO_T}$lt_cv_prog_compiler_pic" >&6
8758: lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8759:
8760: #
8761: # Check to make sure the PIC flag actually works.
8762: #
8763: if test -n "$lt_prog_compiler_pic"; then
8764: echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8765: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8766: if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8767: echo $ECHO_N "(cached) $ECHO_C" >&6
8768: else
8769: lt_cv_prog_compiler_pic_works=no
8770: ac_outfile=conftest.$ac_objext
8771: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8772: lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8773: # Insert the option either (1) after the last *FLAGS variable, or
8774: # (2) before a word containing "conftest.", or (3) at the end.
8775: # Note that $ac_compile itself does not contain backslashes and begins
8776: # with a dollar sign (not a hyphen), so the echo should work correctly.
8777: # The option is referenced via a variable to avoid confusing sed.
8778: lt_compile=`echo "$ac_compile" | $SED \
8779: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8780: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8781: -e 's:$: $lt_compiler_flag:'`
8782: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8783: (eval "$lt_compile" 2>conftest.err)
8784: ac_status=$?
8785: cat conftest.err >&5
8786: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787: if (exit $ac_status) && test -s "$ac_outfile"; then
8788: # The compiler can only warn and ignore the option if not recognized
8789: # So say no if there are warnings other than the usual output.
8790: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8791: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8792: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8793: lt_cv_prog_compiler_pic_works=yes
8794: fi
8795: fi
8796: $RM conftest*
8797:
8798: fi
8799: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8800: echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
8801:
8802: if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8803: case $lt_prog_compiler_pic in
8804: "" | " "*) ;;
8805: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8806: esac
8807: else
8808: lt_prog_compiler_pic=
8809: lt_prog_compiler_can_build_shared=no
8810: fi
8811:
8812: fi
8813:
8814:
8815:
8816:
8817:
8818:
8819:
8820:
8821:
8822:
8823:
8824: #
8825: # Check to make sure the static flag actually works.
8826: #
8827: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8828: echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8829: echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8830: if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8831: echo $ECHO_N "(cached) $ECHO_C" >&6
8832: else
8833: lt_cv_prog_compiler_static_works=no
8834: save_LDFLAGS="$LDFLAGS"
8835: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8836: echo "$lt_simple_link_test_code" > conftest.$ac_ext
8837: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8838: # The linker can only warn and ignore the option if not recognized
8839: # So say no if there are warnings
8840: if test -s conftest.err; then
8841: # Append any errors to the config.log.
8842: cat conftest.err 1>&5
8843: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8844: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8845: if diff conftest.exp conftest.er2 >/dev/null; then
8846: lt_cv_prog_compiler_static_works=yes
8847: fi
8848: else
8849: lt_cv_prog_compiler_static_works=yes
8850: fi
8851: fi
8852: $RM -r conftest*
8853: LDFLAGS="$save_LDFLAGS"
8854:
8855: fi
8856: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8857: echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
8858:
8859: if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8860: :
8861: else
8862: lt_prog_compiler_static=
8863: fi
8864:
8865:
8866:
8867:
8868:
8869:
8870:
8871: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8872: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8873: if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8874: echo $ECHO_N "(cached) $ECHO_C" >&6
8875: else
8876: lt_cv_prog_compiler_c_o=no
8877: $RM -r conftest 2>/dev/null
8878: mkdir conftest
8879: cd conftest
8880: mkdir out
8881: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8882:
8883: lt_compiler_flag="-o out/conftest2.$ac_objext"
8884: # Insert the option either (1) after the last *FLAGS variable, or
8885: # (2) before a word containing "conftest.", or (3) at the end.
8886: # Note that $ac_compile itself does not contain backslashes and begins
8887: # with a dollar sign (not a hyphen), so the echo should work correctly.
8888: lt_compile=`echo "$ac_compile" | $SED \
8889: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8890: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8891: -e 's:$: $lt_compiler_flag:'`
8892: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8893: (eval "$lt_compile" 2>out/conftest.err)
8894: ac_status=$?
8895: cat out/conftest.err >&5
8896: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897: if (exit $ac_status) && test -s out/conftest2.$ac_objext
8898: then
8899: # The compiler can only warn and ignore the option if not recognized
8900: # So say no if there are warnings
8901: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8902: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8903: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8904: lt_cv_prog_compiler_c_o=yes
8905: fi
8906: fi
8907: chmod u+w . 2>&5
8908: $RM conftest*
8909: # SGI C++ compiler will create directory out/ii_files/ for
8910: # template instantiation
8911: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8912: $RM out/* && rmdir out
8913: cd ..
8914: $RM -r conftest
8915: $RM conftest*
8916:
8917: fi
8918: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8919: echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8920:
8921:
8922:
8923:
8924:
8925:
8926: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8927: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8928: if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8929: echo $ECHO_N "(cached) $ECHO_C" >&6
8930: else
8931: lt_cv_prog_compiler_c_o=no
8932: $RM -r conftest 2>/dev/null
8933: mkdir conftest
8934: cd conftest
8935: mkdir out
8936: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8937:
8938: lt_compiler_flag="-o out/conftest2.$ac_objext"
8939: # Insert the option either (1) after the last *FLAGS variable, or
8940: # (2) before a word containing "conftest.", or (3) at the end.
8941: # Note that $ac_compile itself does not contain backslashes and begins
8942: # with a dollar sign (not a hyphen), so the echo should work correctly.
8943: lt_compile=`echo "$ac_compile" | $SED \
8944: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8945: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8946: -e 's:$: $lt_compiler_flag:'`
8947: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8948: (eval "$lt_compile" 2>out/conftest.err)
8949: ac_status=$?
8950: cat out/conftest.err >&5
8951: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952: if (exit $ac_status) && test -s out/conftest2.$ac_objext
8953: then
8954: # The compiler can only warn and ignore the option if not recognized
8955: # So say no if there are warnings
8956: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8957: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8958: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8959: lt_cv_prog_compiler_c_o=yes
8960: fi
8961: fi
8962: chmod u+w . 2>&5
8963: $RM conftest*
8964: # SGI C++ compiler will create directory out/ii_files/ for
8965: # template instantiation
8966: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8967: $RM out/* && rmdir out
8968: cd ..
8969: $RM -r conftest
8970: $RM conftest*
8971:
8972: fi
8973: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8974: echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8975:
8976:
8977:
8978:
8979: hard_links="nottested"
8980: if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8981: # do not overwrite the value of need_locks provided by the user
8982: echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8983: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8984: hard_links=yes
8985: $RM conftest*
8986: ln conftest.a conftest.b 2>/dev/null && hard_links=no
8987: touch conftest.a
8988: ln conftest.a conftest.b 2>&5 || hard_links=no
8989: ln conftest.a conftest.b 2>/dev/null && hard_links=no
8990: echo "$as_me:$LINENO: result: $hard_links" >&5
8991: echo "${ECHO_T}$hard_links" >&6
8992: if test "$hard_links" = no; then
8993: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8994: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8995: need_locks=warn
8996: fi
8997: else
8998: need_locks=no
8999: fi
9000:
9001:
9002:
9003:
9004:
9005:
9006: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9007: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9008:
9009: runpath_var=
9010: allow_undefined_flag=
9011: always_export_symbols=no
9012: archive_cmds=
9013: archive_expsym_cmds=
9014: compiler_needs_object=no
9015: enable_shared_with_static_runtimes=no
9016: export_dynamic_flag_spec=
9017: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9018: hardcode_automatic=no
9019: hardcode_direct=no
9020: hardcode_direct_absolute=no
9021: hardcode_libdir_flag_spec=
9022: hardcode_libdir_separator=
9023: hardcode_minus_L=no
9024: hardcode_shlibpath_var=unsupported
9025: inherit_rpath=no
9026: link_all_deplibs=unknown
9027: module_cmds=
9028: module_expsym_cmds=
9029: old_archive_from_new_cmds=
9030: old_archive_from_expsyms_cmds=
9031: thread_safe_flag_spec=
9032: whole_archive_flag_spec=
9033: # include_expsyms should be a list of space-separated symbols to be *always*
9034: # included in the symbol list
9035: include_expsyms=
9036: # exclude_expsyms can be an extended regexp of symbols to exclude
9037: # it will be wrapped by ` (' and `)$', so one must not match beginning or
9038: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9039: # as well as any symbol that contains `d'.
9040: exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9041: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9042: # platforms (ab)use it in PIC code, but their linkers get confused if
9043: # the symbol is explicitly referenced. Since portable code cannot
9044: # rely on this symbol name, it's probably fine to never include it in
9045: # preloaded symbol tables.
9046: # Exclude shared library initialization/finalization symbols.
9047: extract_expsyms_cmds=
9048:
9049: case $host_os in
9050: cygwin* | mingw* | pw32* | cegcc*)
9051: # FIXME: the MSVC++ port hasn't been tested in a loooong time
9052: # When not using gcc, we currently assume that we are using
9053: # Microsoft Visual C++.
9054: if test "$GCC" != yes; then
9055: with_gnu_ld=no
9056: fi
9057: ;;
9058: interix*)
9059: # we just hope/assume this is gcc and not c89 (= MSVC++)
9060: with_gnu_ld=yes
9061: ;;
9062: openbsd*)
9063: with_gnu_ld=no
9064: ;;
9065: esac
9066:
9067: ld_shlibs=yes
9068:
9069: # On some targets, GNU ld is compatible enough with the native linker
9070: # that we're better off using the native interface for both.
9071: lt_use_gnu_ld_interface=no
9072: if test "$with_gnu_ld" = yes; then
9073: case $host_os in
9074: aix*)
9075: # The AIX port of GNU ld has always aspired to compatibility
9076: # with the native linker. However, as the warning in the GNU ld
9077: # block says, versions before 2.19.5* couldn't really create working
9078: # shared libraries, regardless of the interface used.
9079: case `$LD -v 2>&1` in
9080: *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9081: *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9082: *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9083: *)
9084: lt_use_gnu_ld_interface=yes
9085: ;;
9086: esac
9087: ;;
9088: *)
9089: lt_use_gnu_ld_interface=yes
9090: ;;
9091: esac
9092: fi
9093:
9094: if test "$lt_use_gnu_ld_interface" = yes; then
9095: # If archive_cmds runs LD, not CC, wlarc should be empty
9096: wlarc='${wl}'
9097:
9098: # Set some defaults for GNU ld with shared library support. These
9099: # are reset later if shared libraries are not supported. Putting them
9100: # here allows them to be overridden if necessary.
9101: runpath_var=LD_RUN_PATH
9102: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9103: export_dynamic_flag_spec='${wl}--export-dynamic'
9104: # ancient GNU ld didn't support --whole-archive et. al.
9105: if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9106: whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9107: else
9108: whole_archive_flag_spec=
9109: fi
9110: supports_anon_versioning=no
9111: case `$LD -v 2>&1` in
9112: *GNU\ gold*) supports_anon_versioning=yes ;;
9113: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9114: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9115: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9116: *\ 2.11.*) ;; # other 2.11 versions
9117: *) supports_anon_versioning=yes ;;
9118: esac
9119:
9120: # See if GNU ld supports shared libraries.
9121: case $host_os in
9122: aix[3-9]*)
9123: # On AIX/PPC, the GNU linker is very broken
9124: if test "$host_cpu" != ia64; then
9125: ld_shlibs=no
9126: cat <<_LT_EOF 1>&2
9127:
9128: *** Warning: the GNU linker, at least up to release 2.19, is reported
9129: *** to be unable to reliably create shared libraries on AIX.
9130: *** Therefore, libtool is disabling shared libraries support. If you
9131: *** really care for shared libraries, you may want to install binutils
9132: *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9133: *** You will then need to restart the configuration process.
9134:
9135: _LT_EOF
9136: fi
9137: ;;
9138:
9139: amigaos*)
9140: case $host_cpu in
9141: powerpc)
9142: # see comment about AmigaOS4 .so support
9143: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9144: archive_expsym_cmds=''
9145: ;;
9146: m68k)
9147: 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)'
9148: hardcode_libdir_flag_spec='-L$libdir'
9149: hardcode_minus_L=yes
9150: ;;
9151: esac
9152: ;;
9153:
9154: beos*)
9155: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9156: allow_undefined_flag=unsupported
9157: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9158: # support --undefined. This deserves some investigation. FIXME
9159: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9160: else
9161: ld_shlibs=no
9162: fi
9163: ;;
9164:
9165: cygwin* | mingw* | pw32* | cegcc*)
9166: # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9167: # as there is no search path for DLLs.
9168: hardcode_libdir_flag_spec='-L$libdir'
9169: export_dynamic_flag_spec='${wl}--export-all-symbols'
9170: allow_undefined_flag=unsupported
9171: always_export_symbols=no
9172: enable_shared_with_static_runtimes=yes
9173: 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'
9174: exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9175:
9176: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9177: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9178: # If the export-symbols file already is a .def file (1st line
9179: # is EXPORTS), use it as is; otherwise, prepend...
9180: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9181: cp $export_symbols $output_objdir/$soname.def;
9182: else
9183: echo EXPORTS > $output_objdir/$soname.def;
9184: cat $export_symbols >> $output_objdir/$soname.def;
9185: fi~
9186: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9187: else
9188: ld_shlibs=no
9189: fi
9190: ;;
9191:
9192: haiku*)
9193: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9194: link_all_deplibs=yes
9195: ;;
9196:
9197: interix[3-9]*)
9198: hardcode_direct=no
9199: hardcode_shlibpath_var=no
9200: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9201: export_dynamic_flag_spec='${wl}-E'
9202: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9203: # Instead, shared libraries are loaded at an image base (0x10000000 by
9204: # default) and relocated if they conflict, which is a slow very memory
9205: # consuming and fragmenting process. To avoid this, we pick a random,
9206: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9207: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9208: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9209: 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'
9210: ;;
9211:
9212: gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9213: tmp_diet=no
9214: if test "$host_os" = linux-dietlibc; then
9215: case $cc_basename in
9216: diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9217: esac
9218: fi
9219: if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9220: && test "$tmp_diet" = no
9221: then
9222: tmp_addflag=' $pic_flag'
9223: tmp_sharedflag='-shared'
9224: case $cc_basename,$host_cpu in
9225: pgcc*) # Portland Group C compiler
9226: 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'
9227: tmp_addflag=' $pic_flag'
9228: ;;
9229: pgf77* | pgf90* | pgf95* | pgfortran*)
9230: # Portland Group f77 and f90 compilers
9231: 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'
9232: tmp_addflag=' $pic_flag -Mnomain' ;;
9233: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9234: tmp_addflag=' -i_dynamic' ;;
9235: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9236: tmp_addflag=' -i_dynamic -nofor_main' ;;
9237: ifc* | ifort*) # Intel Fortran compiler
9238: tmp_addflag=' -nofor_main' ;;
9239: lf95*) # Lahey Fortran 8.1
9240: whole_archive_flag_spec=
9241: tmp_sharedflag='--shared' ;;
9242: xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9243: tmp_sharedflag='-qmkshrobj'
9244: tmp_addflag= ;;
9245: nvcc*) # Cuda Compiler Driver 2.2
9246: 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'
9247: compiler_needs_object=yes
9248: ;;
9249: esac
9250: case `$CC -V 2>&1 | sed 5q` in
9251: *Sun\ C*) # Sun C 5.9
9252: 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'
9253: compiler_needs_object=yes
9254: tmp_sharedflag='-G' ;;
9255: *Sun\ F*) # Sun Fortran 8.3
9256: tmp_sharedflag='-G' ;;
9257: esac
9258: archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9259:
9260: if test "x$supports_anon_versioning" = xyes; then
9261: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9262: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9263: echo "local: *; };" >> $output_objdir/$libname.ver~
9264: $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9265: fi
9266:
9267: case $cc_basename in
9268: xlf* | bgf* | bgxlf* | mpixlf*)
9269: # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9270: whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9271: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9272: archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9273: if test "x$supports_anon_versioning" = xyes; then
9274: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9275: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9276: echo "local: *; };" >> $output_objdir/$libname.ver~
9277: $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9278: fi
9279: ;;
9280: esac
9281: else
9282: ld_shlibs=no
9283: fi
9284: ;;
9285:
9286: netbsd*)
9287: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9288: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9289: wlarc=
9290: else
9291: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9292: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9293: fi
9294: ;;
9295:
9296: solaris*)
9297: if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9298: ld_shlibs=no
9299: cat <<_LT_EOF 1>&2
9300:
9301: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9302: *** create shared libraries on Solaris systems. Therefore, libtool
9303: *** is disabling shared libraries support. We urge you to upgrade GNU
9304: *** binutils to release 2.9.1 or newer. Another option is to modify
9305: *** your PATH or compiler configuration so that the native linker is
9306: *** used, and then restart.
9307:
9308: _LT_EOF
9309: elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9310: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9311: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9312: else
9313: ld_shlibs=no
9314: fi
9315: ;;
9316:
9317: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9318: case `$LD -v 2>&1` in
9319: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9320: ld_shlibs=no
9321: cat <<_LT_EOF 1>&2
9322:
9323: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9324: *** reliably create shared libraries on SCO systems. Therefore, libtool
9325: *** is disabling shared libraries support. We urge you to upgrade GNU
9326: *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9327: *** your PATH or compiler configuration so that the native linker is
9328: *** used, and then restart.
9329:
9330: _LT_EOF
9331: ;;
9332: *)
9333: # For security reasons, it is highly recommended that you always
9334: # use absolute paths for naming shared libraries, and exclude the
9335: # DT_RUNPATH tag from executables and libraries. But doing so
9336: # requires that you compile everything twice, which is a pain.
9337: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9338: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9339: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9340: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9341: else
9342: ld_shlibs=no
9343: fi
9344: ;;
9345: esac
9346: ;;
9347:
9348: sunos4*)
9349: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9350: wlarc=
9351: hardcode_direct=yes
9352: hardcode_shlibpath_var=no
9353: ;;
9354:
9355: *)
9356: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9357: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9358: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9359: else
9360: ld_shlibs=no
9361: fi
9362: ;;
9363: esac
9364:
9365: if test "$ld_shlibs" = no; then
9366: runpath_var=
9367: hardcode_libdir_flag_spec=
9368: export_dynamic_flag_spec=
9369: whole_archive_flag_spec=
9370: fi
9371: else
9372: # PORTME fill in a description of your system's linker (not GNU ld)
9373: case $host_os in
9374: aix3*)
9375: allow_undefined_flag=unsupported
9376: always_export_symbols=yes
9377: 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'
9378: # Note: this linker hardcodes the directories in LIBPATH if there
9379: # are no directories specified by -L.
9380: hardcode_minus_L=yes
9381: if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9382: # Neither direct hardcoding nor static linking is supported with a
9383: # broken collect2.
9384: hardcode_direct=unsupported
9385: fi
9386: ;;
9387:
9388: aix[4-9]*)
9389: if test "$host_cpu" = ia64; then
9390: # On IA64, the linker does run time linking by default, so we don't
9391: # have to do anything special.
9392: aix_use_runtimelinking=no
9393: exp_sym_flag='-Bexport'
9394: no_entry_flag=""
9395: else
9396: # If we're using GNU nm, then we don't want the "-C" option.
9397: # -C means demangle to AIX nm, but means don't demangle with GNU nm
9398: # Also, AIX nm treats weak defined symbols like other global
9399: # defined symbols, whereas GNU nm marks them as "W".
9400: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9401: 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'
9402: else
9403: 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'
9404: fi
9405: aix_use_runtimelinking=no
9406:
9407: # Test if we are trying to use run time linking or normal
9408: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9409: # need to do runtime linking.
9410: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9411: for ld_flag in $LDFLAGS; do
9412: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9413: aix_use_runtimelinking=yes
9414: break
9415: fi
9416: done
9417: ;;
9418: esac
9419:
9420: exp_sym_flag='-bexport'
9421: no_entry_flag='-bnoentry'
9422: fi
9423:
9424: # When large executables or shared objects are built, AIX ld can
9425: # have problems creating the table of contents. If linking a library
9426: # or program results in "error TOC overflow" add -mminimal-toc to
9427: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9428: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9429:
9430: archive_cmds=''
9431: hardcode_direct=yes
9432: hardcode_direct_absolute=yes
9433: hardcode_libdir_separator=':'
9434: link_all_deplibs=yes
9435: file_list_spec='${wl}-f,'
9436:
9437: if test "$GCC" = yes; then
9438: case $host_os in aix4.[012]|aix4.[012].*)
9439: # We only want to do this on AIX 4.2 and lower, the check
9440: # below for broken collect2 doesn't work under 4.3+
9441: collect2name=`${CC} -print-prog-name=collect2`
9442: if test -f "$collect2name" &&
9443: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9444: then
9445: # We have reworked collect2
9446: :
9447: else
9448: # We have old collect2
9449: hardcode_direct=unsupported
9450: # It fails to find uninstalled libraries when the uninstalled
9451: # path is not listed in the libpath. Setting hardcode_minus_L
9452: # to unsupported forces relinking
9453: hardcode_minus_L=yes
9454: hardcode_libdir_flag_spec='-L$libdir'
9455: hardcode_libdir_separator=
9456: fi
9457: ;;
9458: esac
9459: shared_flag='-shared'
9460: if test "$aix_use_runtimelinking" = yes; then
9461: shared_flag="$shared_flag "'${wl}-G'
9462: fi
9463: else
9464: # not using gcc
9465: if test "$host_cpu" = ia64; then
9466: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9467: # chokes on -Wl,-G. The following line is correct:
9468: shared_flag='-G'
9469: else
9470: if test "$aix_use_runtimelinking" = yes; then
9471: shared_flag='${wl}-G'
9472: else
9473: shared_flag='${wl}-bM:SRE'
9474: fi
9475: fi
9476: fi
9477:
9478: export_dynamic_flag_spec='${wl}-bexpall'
9479: # It seems that -bexpall does not export symbols beginning with
9480: # underscore (_), so it is better to generate a list of symbols to export.
9481: always_export_symbols=yes
9482: if test "$aix_use_runtimelinking" = yes; then
9483: # Warning - without using the other runtime loading flags (-brtl),
9484: # -berok will link without error, but may produce a broken library.
9485: allow_undefined_flag='-berok'
9486: # Determine the default libpath from the value encoded in an
9487: # empty executable.
9488: if test "${lt_cv_aix_libpath+set}" = set; then
9489: aix_libpath=$lt_cv_aix_libpath
9490: else
9491: if test "${lt_cv_aix_libpath_+set}" = set; then
9492: echo $ECHO_N "(cached) $ECHO_C" >&6
9493: else
9494: cat >conftest.$ac_ext <<_ACEOF
9495: /* confdefs.h. */
9496: _ACEOF
9497: cat confdefs.h >>conftest.$ac_ext
9498: cat >>conftest.$ac_ext <<_ACEOF
9499: /* end confdefs.h. */
9500:
9501: int
9502: main ()
9503: {
9504:
9505: ;
9506: return 0;
9507: }
9508: _ACEOF
9509: rm -f conftest.$ac_objext conftest$ac_exeext
9510: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9511: (eval $ac_link) 2>conftest.er1
9512: ac_status=$?
9513: grep -v '^ *+' conftest.er1 >conftest.err
9514: rm -f conftest.er1
9515: cat conftest.err >&5
9516: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517: (exit $ac_status); } &&
9518: { ac_try='test -z "$ac_c_werror_flag"
9519: || test ! -s conftest.err'
9520: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9521: (eval $ac_try) 2>&5
9522: ac_status=$?
9523: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9524: (exit $ac_status); }; } &&
9525: { ac_try='test -s conftest$ac_exeext'
9526: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9527: (eval $ac_try) 2>&5
9528: ac_status=$?
9529: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9530: (exit $ac_status); }; }; then
9531:
9532: lt_aix_libpath_sed='
9533: /Import File Strings/,/^$/ {
9534: /^0/ {
9535: s/^0 *\([^ ]*\) *$/\1/
9536: p
9537: }
9538: }'
9539: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9540: # Check for a 64-bit object if we didn't find anything.
9541: if test -z "$lt_cv_aix_libpath_"; then
9542: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9543: fi
9544: else
9545: echo "$as_me: failed program was:" >&5
9546: sed 's/^/| /' conftest.$ac_ext >&5
9547:
9548: fi
9549: rm -f conftest.err conftest.$ac_objext \
9550: conftest$ac_exeext conftest.$ac_ext
9551: if test -z "$lt_cv_aix_libpath_"; then
9552: lt_cv_aix_libpath_="/usr/lib:/lib"
9553: fi
9554:
9555: fi
9556:
9557: aix_libpath=$lt_cv_aix_libpath_
9558: fi
9559:
9560: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9561: 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"
9562: else
9563: if test "$host_cpu" = ia64; then
9564: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9565: allow_undefined_flag="-z nodefs"
9566: 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"
9567: else
9568: # Determine the default libpath from the value encoded in an
9569: # empty executable.
9570: if test "${lt_cv_aix_libpath+set}" = set; then
9571: aix_libpath=$lt_cv_aix_libpath
9572: else
9573: if test "${lt_cv_aix_libpath_+set}" = set; then
9574: echo $ECHO_N "(cached) $ECHO_C" >&6
9575: else
9576: cat >conftest.$ac_ext <<_ACEOF
9577: /* confdefs.h. */
9578: _ACEOF
9579: cat confdefs.h >>conftest.$ac_ext
9580: cat >>conftest.$ac_ext <<_ACEOF
9581: /* end confdefs.h. */
9582:
9583: int
9584: main ()
9585: {
9586:
9587: ;
9588: return 0;
9589: }
9590: _ACEOF
9591: rm -f conftest.$ac_objext conftest$ac_exeext
9592: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9593: (eval $ac_link) 2>conftest.er1
9594: ac_status=$?
9595: grep -v '^ *+' conftest.er1 >conftest.err
9596: rm -f conftest.er1
9597: cat conftest.err >&5
9598: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9599: (exit $ac_status); } &&
9600: { ac_try='test -z "$ac_c_werror_flag"
9601: || test ! -s conftest.err'
9602: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9603: (eval $ac_try) 2>&5
9604: ac_status=$?
9605: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9606: (exit $ac_status); }; } &&
9607: { ac_try='test -s conftest$ac_exeext'
9608: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9609: (eval $ac_try) 2>&5
9610: ac_status=$?
9611: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9612: (exit $ac_status); }; }; then
9613:
9614: lt_aix_libpath_sed='
9615: /Import File Strings/,/^$/ {
9616: /^0/ {
9617: s/^0 *\([^ ]*\) *$/\1/
9618: p
9619: }
9620: }'
9621: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9622: # Check for a 64-bit object if we didn't find anything.
9623: if test -z "$lt_cv_aix_libpath_"; then
9624: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9625: fi
9626: else
9627: echo "$as_me: failed program was:" >&5
9628: sed 's/^/| /' conftest.$ac_ext >&5
9629:
9630: fi
9631: rm -f conftest.err conftest.$ac_objext \
9632: conftest$ac_exeext conftest.$ac_ext
9633: if test -z "$lt_cv_aix_libpath_"; then
9634: lt_cv_aix_libpath_="/usr/lib:/lib"
9635: fi
9636:
9637: fi
9638:
9639: aix_libpath=$lt_cv_aix_libpath_
9640: fi
9641:
9642: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9643: # Warning - without using the other run time loading flags,
9644: # -berok will link without error, but may produce a broken library.
9645: no_undefined_flag=' ${wl}-bernotok'
9646: allow_undefined_flag=' ${wl}-berok'
9647: if test "$with_gnu_ld" = yes; then
9648: # We only use this code for GNU lds that support --whole-archive.
9649: whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9650: else
9651: # Exported symbols can be pulled into shared objects from archives
9652: whole_archive_flag_spec='$convenience'
9653: fi
9654: archive_cmds_need_lc=yes
9655: # This is similar to how AIX traditionally builds its shared libraries.
9656: 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'
9657: fi
9658: fi
9659: ;;
9660:
9661: amigaos*)
9662: case $host_cpu in
9663: powerpc)
9664: # see comment about AmigaOS4 .so support
9665: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9666: archive_expsym_cmds=''
9667: ;;
9668: m68k)
9669: 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)'
9670: hardcode_libdir_flag_spec='-L$libdir'
9671: hardcode_minus_L=yes
9672: ;;
9673: esac
9674: ;;
9675:
9676: bsdi[45]*)
9677: export_dynamic_flag_spec=-rdynamic
9678: ;;
9679:
9680: cygwin* | mingw* | pw32* | cegcc*)
9681: # When not using gcc, we currently assume that we are using
9682: # Microsoft Visual C++.
9683: # hardcode_libdir_flag_spec is actually meaningless, as there is
9684: # no search path for DLLs.
9685: case $cc_basename in
9686: cl*)
9687: # Native MSVC
9688: hardcode_libdir_flag_spec=' '
9689: allow_undefined_flag=unsupported
9690: always_export_symbols=yes
9691: file_list_spec='@'
9692: # Tell ltmain to make .lib files, not .a files.
9693: libext=lib
9694: # Tell ltmain to make .dll files, not .so files.
9695: shrext_cmds=".dll"
9696: # FIXME: Setting linknames here is a bad hack.
9697: archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9698: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9699: sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9700: else
9701: sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9702: fi~
9703: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9704: linknames='
9705: # The linker will not automatically build a static lib if we build a DLL.
9706: # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9707: enable_shared_with_static_runtimes=yes
9708: exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9709: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9710: # Don't use ranlib
9711: old_postinstall_cmds='chmod 644 $oldlib'
9712: postlink_cmds='lt_outputfile="@OUTPUT@"~
9713: lt_tool_outputfile="@TOOL_OUTPUT@"~
9714: case $lt_outputfile in
9715: *.exe|*.EXE) ;;
9716: *)
9717: lt_outputfile="$lt_outputfile.exe"
9718: lt_tool_outputfile="$lt_tool_outputfile.exe"
9719: ;;
9720: esac~
9721: if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9722: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9723: $RM "$lt_outputfile.manifest";
9724: fi'
9725: ;;
9726: *)
9727: # Assume MSVC wrapper
9728: hardcode_libdir_flag_spec=' '
9729: allow_undefined_flag=unsupported
9730: # Tell ltmain to make .lib files, not .a files.
9731: libext=lib
9732: # Tell ltmain to make .dll files, not .so files.
9733: shrext_cmds=".dll"
9734: # FIXME: Setting linknames here is a bad hack.
9735: archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9736: # The linker will automatically build a .lib file if we build a DLL.
9737: old_archive_from_new_cmds='true'
9738: # FIXME: Should let the user specify the lib program.
9739: old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9740: enable_shared_with_static_runtimes=yes
9741: ;;
9742: esac
9743: ;;
9744:
9745: darwin* | rhapsody*)
9746:
9747:
9748: archive_cmds_need_lc=no
9749: hardcode_direct=no
9750: hardcode_automatic=yes
9751: hardcode_shlibpath_var=unsupported
9752: if test "$lt_cv_ld_force_load" = "yes"; then
9753: 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\"`'
9754:
9755: else
9756: whole_archive_flag_spec=''
9757: fi
9758: link_all_deplibs=yes
9759: allow_undefined_flag="$_lt_dar_allow_undefined"
9760: case $cc_basename in
9761: ifort*) _lt_dar_can_shared=yes ;;
9762: *) _lt_dar_can_shared=$GCC ;;
9763: esac
9764: if test "$_lt_dar_can_shared" = "yes"; then
9765: output_verbose_link_cmd=func_echo_all
9766: archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9767: module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9768: 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}"
9769: 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}"
9770:
9771: else
9772: ld_shlibs=no
9773: fi
9774:
9775: ;;
9776:
9777: dgux*)
9778: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9779: hardcode_libdir_flag_spec='-L$libdir'
9780: hardcode_shlibpath_var=no
9781: ;;
9782:
9783: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9784: # support. Future versions do this automatically, but an explicit c++rt0.o
9785: # does not break anything, and helps significantly (at the cost of a little
9786: # extra space).
9787: freebsd2.2*)
9788: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9789: hardcode_libdir_flag_spec='-R$libdir'
9790: hardcode_direct=yes
9791: hardcode_shlibpath_var=no
9792: ;;
9793:
9794: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9795: freebsd2.*)
9796: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9797: hardcode_direct=yes
9798: hardcode_minus_L=yes
9799: hardcode_shlibpath_var=no
9800: ;;
9801:
9802: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9803: freebsd* | dragonfly*)
9804: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9805: hardcode_libdir_flag_spec='-R$libdir'
9806: hardcode_direct=yes
9807: hardcode_shlibpath_var=no
9808: ;;
9809:
9810: hpux9*)
9811: if test "$GCC" = yes; then
9812: 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'
9813: else
9814: 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'
9815: fi
9816: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9817: hardcode_libdir_separator=:
9818: hardcode_direct=yes
9819:
9820: # hardcode_minus_L: Not really in the search PATH,
9821: # but as the default location of the library.
9822: hardcode_minus_L=yes
9823: export_dynamic_flag_spec='${wl}-E'
9824: ;;
9825:
9826: hpux10*)
9827: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9828: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9829: else
9830: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9831: fi
9832: if test "$with_gnu_ld" = no; then
9833: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9834: hardcode_libdir_separator=:
9835: hardcode_direct=yes
9836: hardcode_direct_absolute=yes
9837: export_dynamic_flag_spec='${wl}-E'
9838: # hardcode_minus_L: Not really in the search PATH,
9839: # but as the default location of the library.
9840: hardcode_minus_L=yes
9841: fi
9842: ;;
9843:
9844: hpux11*)
9845: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9846: case $host_cpu in
9847: hppa*64*)
9848: archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9849: ;;
9850: ia64*)
9851: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9852: ;;
9853: *)
9854: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9855: ;;
9856: esac
9857: else
9858: case $host_cpu in
9859: hppa*64*)
9860: archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9861: ;;
9862: ia64*)
9863: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9864: ;;
9865: *)
9866:
9867: # Older versions of the 11.00 compiler do not understand -b yet
9868: # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9869: echo "$as_me:$LINENO: checking if $CC understands -b" >&5
9870: echo $ECHO_N "checking if $CC understands -b... $ECHO_C" >&6
9871: if test "${lt_cv_prog_compiler__b+set}" = set; then
9872: echo $ECHO_N "(cached) $ECHO_C" >&6
9873: else
9874: lt_cv_prog_compiler__b=no
9875: save_LDFLAGS="$LDFLAGS"
9876: LDFLAGS="$LDFLAGS -b"
9877: echo "$lt_simple_link_test_code" > conftest.$ac_ext
9878: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9879: # The linker can only warn and ignore the option if not recognized
9880: # So say no if there are warnings
9881: if test -s conftest.err; then
9882: # Append any errors to the config.log.
9883: cat conftest.err 1>&5
9884: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9885: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9886: if diff conftest.exp conftest.er2 >/dev/null; then
9887: lt_cv_prog_compiler__b=yes
9888: fi
9889: else
9890: lt_cv_prog_compiler__b=yes
9891: fi
9892: fi
9893: $RM -r conftest*
9894: LDFLAGS="$save_LDFLAGS"
9895:
9896: fi
9897: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler__b" >&5
9898: echo "${ECHO_T}$lt_cv_prog_compiler__b" >&6
9899:
9900: if test x"$lt_cv_prog_compiler__b" = xyes; then
9901: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9902: else
9903: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9904: fi
9905:
9906: ;;
9907: esac
9908: fi
9909: if test "$with_gnu_ld" = no; then
9910: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9911: hardcode_libdir_separator=:
9912:
9913: case $host_cpu in
9914: hppa*64*|ia64*)
9915: hardcode_direct=no
9916: hardcode_shlibpath_var=no
9917: ;;
9918: *)
9919: hardcode_direct=yes
9920: hardcode_direct_absolute=yes
9921: export_dynamic_flag_spec='${wl}-E'
9922:
9923: # hardcode_minus_L: Not really in the search PATH,
9924: # but as the default location of the library.
9925: hardcode_minus_L=yes
9926: ;;
9927: esac
9928: fi
9929: ;;
9930:
9931: irix5* | irix6* | nonstopux*)
9932: if test "$GCC" = yes; then
9933: 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'
9934: # Try to use the -exported_symbol ld option, if it does not
9935: # work, assume that -exports_file does not work either and
9936: # implicitly export all symbols.
9937: # This should be the same for all languages, so no per-tag cache variable.
9938: echo "$as_me:$LINENO: checking whether the $host_os linker accepts -exported_symbol" >&5
9939: echo $ECHO_N "checking whether the $host_os linker accepts -exported_symbol... $ECHO_C" >&6
9940: if test "${lt_cv_irix_exported_symbol+set}" = set; then
9941: echo $ECHO_N "(cached) $ECHO_C" >&6
9942: else
9943: save_LDFLAGS="$LDFLAGS"
9944: LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9945: cat >conftest.$ac_ext <<_ACEOF
9946: /* confdefs.h. */
9947: _ACEOF
9948: cat confdefs.h >>conftest.$ac_ext
9949: cat >>conftest.$ac_ext <<_ACEOF
9950: /* end confdefs.h. */
9951: int foo (void) { return 0; }
9952: _ACEOF
9953: rm -f conftest.$ac_objext conftest$ac_exeext
9954: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9955: (eval $ac_link) 2>conftest.er1
9956: ac_status=$?
9957: grep -v '^ *+' conftest.er1 >conftest.err
9958: rm -f conftest.er1
9959: cat conftest.err >&5
9960: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961: (exit $ac_status); } &&
9962: { ac_try='test -z "$ac_c_werror_flag"
9963: || test ! -s conftest.err'
9964: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9965: (eval $ac_try) 2>&5
9966: ac_status=$?
9967: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968: (exit $ac_status); }; } &&
9969: { ac_try='test -s conftest$ac_exeext'
9970: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9971: (eval $ac_try) 2>&5
9972: ac_status=$?
9973: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974: (exit $ac_status); }; }; then
9975: lt_cv_irix_exported_symbol=yes
9976: else
9977: echo "$as_me: failed program was:" >&5
9978: sed 's/^/| /' conftest.$ac_ext >&5
9979:
9980: lt_cv_irix_exported_symbol=no
9981: fi
9982: rm -f conftest.err conftest.$ac_objext \
9983: conftest$ac_exeext conftest.$ac_ext
9984: LDFLAGS="$save_LDFLAGS"
9985: fi
9986: echo "$as_me:$LINENO: result: $lt_cv_irix_exported_symbol" >&5
9987: echo "${ECHO_T}$lt_cv_irix_exported_symbol" >&6
9988: if test "$lt_cv_irix_exported_symbol" = yes; then
9989: 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'
9990: fi
9991: else
9992: 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'
9993: 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'
9994: fi
9995: archive_cmds_need_lc='no'
9996: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9997: hardcode_libdir_separator=:
9998: inherit_rpath=yes
9999: link_all_deplibs=yes
10000: ;;
10001:
10002: netbsd*)
10003: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10004: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10005: else
10006: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10007: fi
10008: hardcode_libdir_flag_spec='-R$libdir'
10009: hardcode_direct=yes
10010: hardcode_shlibpath_var=no
10011: ;;
10012:
10013: newsos6)
10014: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10015: hardcode_direct=yes
10016: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10017: hardcode_libdir_separator=:
10018: hardcode_shlibpath_var=no
10019: ;;
10020:
10021: *nto* | *qnx*)
10022: ;;
10023:
10024: openbsd*)
10025: if test -f /usr/libexec/ld.so; then
10026: hardcode_direct=yes
10027: hardcode_shlibpath_var=no
10028: hardcode_direct_absolute=yes
10029: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10030: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10031: archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10032: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10033: export_dynamic_flag_spec='${wl}-E'
10034: else
10035: case $host_os in
10036: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10037: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10038: hardcode_libdir_flag_spec='-R$libdir'
10039: ;;
10040: *)
10041: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10042: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10043: ;;
10044: esac
10045: fi
10046: else
10047: ld_shlibs=no
10048: fi
10049: ;;
10050:
10051: os2*)
10052: hardcode_libdir_flag_spec='-L$libdir'
10053: hardcode_minus_L=yes
10054: allow_undefined_flag=unsupported
10055: 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'
10056: old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10057: ;;
10058:
10059: osf3*)
10060: if test "$GCC" = yes; then
10061: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10062: 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'
10063: else
10064: allow_undefined_flag=' -expect_unresolved \*'
10065: 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'
10066: fi
10067: archive_cmds_need_lc='no'
10068: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10069: hardcode_libdir_separator=:
10070: ;;
10071:
10072: osf4* | osf5*) # as osf3* with the addition of -msym flag
10073: if test "$GCC" = yes; then
10074: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10075: 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'
10076: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10077: else
10078: allow_undefined_flag=' -expect_unresolved \*'
10079: 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'
10080: 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~
10081: $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'
10082:
10083: # Both c and cxx compiler support -rpath directly
10084: hardcode_libdir_flag_spec='-rpath $libdir'
10085: fi
10086: archive_cmds_need_lc='no'
10087: hardcode_libdir_separator=:
10088: ;;
10089:
10090: solaris*)
10091: no_undefined_flag=' -z defs'
10092: if test "$GCC" = yes; then
10093: wlarc='${wl}'
10094: archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10095: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10096: $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'
10097: else
10098: case `$CC -V 2>&1` in
10099: *"Compilers 5.0"*)
10100: wlarc=''
10101: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10102: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10103: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10104: ;;
10105: *)
10106: wlarc='${wl}'
10107: archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10108: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10109: $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10110: ;;
10111: esac
10112: fi
10113: hardcode_libdir_flag_spec='-R$libdir'
10114: hardcode_shlibpath_var=no
10115: case $host_os in
10116: solaris2.[0-5] | solaris2.[0-5].*) ;;
10117: *)
10118: # The compiler driver will combine and reorder linker options,
10119: # but understands `-z linker_flag'. GCC discards it without `$wl',
10120: # but is careful enough not to reorder.
10121: # Supported since Solaris 2.6 (maybe 2.5.1?)
10122: if test "$GCC" = yes; then
10123: whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10124: else
10125: whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10126: fi
10127: ;;
10128: esac
10129: link_all_deplibs=yes
10130: ;;
10131:
10132: sunos4*)
10133: if test "x$host_vendor" = xsequent; then
10134: # Use $CC to link under sequent, because it throws in some extra .o
10135: # files that make .init and .fini sections work.
10136: archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10137: else
10138: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10139: fi
10140: hardcode_libdir_flag_spec='-L$libdir'
10141: hardcode_direct=yes
10142: hardcode_minus_L=yes
10143: hardcode_shlibpath_var=no
10144: ;;
10145:
10146: sysv4)
10147: case $host_vendor in
10148: sni)
10149: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10150: hardcode_direct=yes # is this really true???
10151: ;;
10152: siemens)
10153: ## LD is ld it makes a PLAMLIB
10154: ## CC just makes a GrossModule.
10155: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10156: reload_cmds='$CC -r -o $output$reload_objs'
10157: hardcode_direct=no
10158: ;;
10159: motorola)
10160: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10161: hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10162: ;;
10163: esac
10164: runpath_var='LD_RUN_PATH'
10165: hardcode_shlibpath_var=no
10166: ;;
10167:
10168: sysv4.3*)
10169: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10170: hardcode_shlibpath_var=no
10171: export_dynamic_flag_spec='-Bexport'
10172: ;;
10173:
10174: sysv4*MP*)
10175: if test -d /usr/nec; then
10176: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10177: hardcode_shlibpath_var=no
10178: runpath_var=LD_RUN_PATH
10179: hardcode_runpath_var=yes
10180: ld_shlibs=yes
10181: fi
10182: ;;
10183:
10184: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10185: no_undefined_flag='${wl}-z,text'
10186: archive_cmds_need_lc=no
10187: hardcode_shlibpath_var=no
10188: runpath_var='LD_RUN_PATH'
10189:
10190: if test "$GCC" = yes; then
10191: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10192: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10193: else
10194: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10195: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10196: fi
10197: ;;
10198:
10199: sysv5* | sco3.2v5* | sco5v6*)
10200: # Note: We can NOT use -z defs as we might desire, because we do not
10201: # link with -lc, and that would cause any symbols used from libc to
10202: # always be unresolved, which means just about no library would
10203: # ever link correctly. If we're not using GNU ld we use -z text
10204: # though, which does catch some bad symbols but isn't as heavy-handed
10205: # as -z defs.
10206: no_undefined_flag='${wl}-z,text'
10207: allow_undefined_flag='${wl}-z,nodefs'
10208: archive_cmds_need_lc=no
10209: hardcode_shlibpath_var=no
10210: hardcode_libdir_flag_spec='${wl}-R,$libdir'
10211: hardcode_libdir_separator=':'
10212: link_all_deplibs=yes
10213: export_dynamic_flag_spec='${wl}-Bexport'
10214: runpath_var='LD_RUN_PATH'
10215:
10216: if test "$GCC" = yes; then
10217: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10218: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10219: else
10220: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10221: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10222: fi
10223: ;;
10224:
10225: uts4*)
10226: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10227: hardcode_libdir_flag_spec='-L$libdir'
10228: hardcode_shlibpath_var=no
10229: ;;
10230:
10231: *)
10232: ld_shlibs=no
10233: ;;
10234: esac
10235:
10236: if test x$host_vendor = xsni; then
10237: case $host in
10238: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10239: export_dynamic_flag_spec='${wl}-Blargedynsym'
10240: ;;
10241: esac
10242: fi
10243: fi
10244:
10245: echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10246: echo "${ECHO_T}$ld_shlibs" >&6
10247: test "$ld_shlibs" = no && can_build_shared=no
10248:
10249: with_gnu_ld=$with_gnu_ld
10250:
10251:
10252:
10253:
10254:
10255:
10256:
10257:
10258:
10259:
10260:
10261:
10262:
10263:
10264:
10265: #
10266: # Do we need to explicitly link libc?
10267: #
10268: case "x$archive_cmds_need_lc" in
10269: x|xyes)
10270: # Assume -lc should be added
10271: archive_cmds_need_lc=yes
10272:
10273: if test "$enable_shared" = yes && test "$GCC" = yes; then
10274: case $archive_cmds in
10275: *'~'*)
10276: # FIXME: we may have to deal with multi-command sequences.
10277: ;;
10278: '$CC '*)
10279: # Test whether the compiler implicitly links with -lc since on some
10280: # systems, -lgcc has to come before -lc. If gcc already passes -lc
10281: # to ld, don't add -lc before -lgcc.
10282: echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10283: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10284: if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
10285: echo $ECHO_N "(cached) $ECHO_C" >&6
10286: else
10287: $RM conftest*
10288: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10289:
10290: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10291: (eval $ac_compile) 2>&5
10292: ac_status=$?
10293: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10294: (exit $ac_status); } 2>conftest.err; then
10295: soname=conftest
10296: lib=conftest
10297: libobjs=conftest.$ac_objext
10298: deplibs=
10299: wl=$lt_prog_compiler_wl
10300: pic_flag=$lt_prog_compiler_pic
10301: compiler_flags=-v
10302: linker_flags=-v
10303: verstring=
10304: output_objdir=.
10305: libname=conftest
10306: lt_save_allow_undefined_flag=$allow_undefined_flag
10307: allow_undefined_flag=
10308: if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
10309: (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10310: ac_status=$?
10311: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312: (exit $ac_status); }
10313: then
10314: lt_cv_archive_cmds_need_lc=no
10315: else
10316: lt_cv_archive_cmds_need_lc=yes
10317: fi
10318: allow_undefined_flag=$lt_save_allow_undefined_flag
10319: else
10320: cat conftest.err 1>&5
10321: fi
10322: $RM conftest*
10323:
10324: fi
10325: echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
10326: echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
10327: archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10328: ;;
10329: esac
10330: fi
10331: ;;
10332: esac
10333:
10334:
10335:
10336:
10337:
10338:
10339:
10340:
10341:
10342:
10343:
10344:
10345:
10346:
10347:
10348:
10349:
10350:
10351:
10352:
10353:
10354:
10355:
10356:
10357:
10358:
10359:
10360:
10361:
10362:
10363:
10364:
10365:
10366:
10367:
10368:
10369:
10370:
10371:
10372:
10373:
10374:
10375:
10376:
10377:
10378:
10379:
10380:
10381:
10382:
10383:
10384:
10385:
10386:
10387:
10388:
10389:
10390:
10391:
10392:
10393:
10394:
10395:
10396:
10397:
10398:
10399:
10400:
10401:
10402:
10403:
10404:
10405:
10406:
10407:
10408:
10409:
10410:
10411:
10412:
10413:
10414:
10415:
10416:
10417:
10418:
10419:
10420:
10421:
10422:
10423:
10424:
10425:
10426:
10427:
10428:
10429:
10430:
10431:
10432:
10433:
10434:
10435:
10436:
10437:
10438:
10439:
10440:
10441:
10442:
10443:
10444:
10445:
10446:
10447:
10448:
10449:
10450:
10451:
10452:
10453:
10454:
10455:
10456:
10457:
10458:
10459:
10460:
10461:
10462:
10463:
10464:
10465:
10466:
10467:
10468:
10469:
10470:
10471:
10472:
10473:
10474:
10475:
10476:
10477:
10478:
10479:
10480:
10481:
10482:
10483:
10484:
10485: echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10486: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10487:
10488: if test "$GCC" = yes; then
10489: case $host_os in
10490: darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10491: *) lt_awk_arg="/^libraries:/" ;;
10492: esac
10493: case $host_os in
10494: mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10495: *) lt_sed_strip_eq="s,=/,/,g" ;;
10496: esac
10497: lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10498: case $lt_search_path_spec in
10499: *\;*)
10500: # if the path contains ";" then we assume it to be the separator
10501: # otherwise default to the standard path separator (i.e. ":") - it is
10502: # assumed that no part of a normal pathname contains ";" but that should
10503: # okay in the real world where ";" in dirpaths is itself problematic.
10504: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10505: ;;
10506: *)
10507: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10508: ;;
10509: esac
10510: # Ok, now we have the path, separated by spaces, we can step through it
10511: # and add multilib dir if necessary.
10512: lt_tmp_lt_search_path_spec=
10513: lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10514: for lt_sys_path in $lt_search_path_spec; do
10515: if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10516: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10517: else
10518: test -d "$lt_sys_path" && \
10519: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10520: fi
10521: done
10522: lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10523: BEGIN {RS=" "; FS="/|\n";} {
10524: lt_foo="";
10525: lt_count=0;
10526: for (lt_i = NF; lt_i > 0; lt_i--) {
10527: if ($lt_i != "" && $lt_i != ".") {
10528: if ($lt_i == "..") {
10529: lt_count++;
10530: } else {
10531: if (lt_count == 0) {
10532: lt_foo="/" $lt_i lt_foo;
10533: } else {
10534: lt_count--;
10535: }
10536: }
10537: }
10538: }
10539: if (lt_foo != "") { lt_freq[lt_foo]++; }
10540: if (lt_freq[lt_foo] == 1) { print lt_foo; }
10541: }'`
10542: # AWK program above erroneously prepends '/' to C:/dos/paths
10543: # for these hosts.
10544: case $host_os in
10545: mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10546: $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10547: esac
10548: sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10549: else
10550: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10551: fi
10552: library_names_spec=
10553: libname_spec='lib$name'
10554: soname_spec=
10555: shrext_cmds=".so"
10556: postinstall_cmds=
10557: postuninstall_cmds=
10558: finish_cmds=
10559: finish_eval=
10560: shlibpath_var=
10561: shlibpath_overrides_runpath=unknown
10562: version_type=none
10563: dynamic_linker="$host_os ld.so"
10564: sys_lib_dlsearch_path_spec="/lib /usr/lib"
10565: need_lib_prefix=unknown
10566: hardcode_into_libs=no
10567:
10568: # when you set need_version to no, make sure it does not cause -set_version
10569: # flags to be left without arguments
10570: need_version=unknown
10571:
10572: case $host_os in
10573: aix3*)
10574: version_type=linux # correct to gnu/linux during the next big refactor
10575: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10576: shlibpath_var=LIBPATH
10577:
10578: # AIX 3 has no versioning support, so we append a major version to the name.
10579: soname_spec='${libname}${release}${shared_ext}$major'
10580: ;;
10581:
10582: aix[4-9]*)
10583: version_type=linux # correct to gnu/linux during the next big refactor
10584: need_lib_prefix=no
10585: need_version=no
10586: hardcode_into_libs=yes
10587: if test "$host_cpu" = ia64; then
10588: # AIX 5 supports IA64
10589: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10590: shlibpath_var=LD_LIBRARY_PATH
10591: else
10592: # With GCC up to 2.95.x, collect2 would create an import file
10593: # for dependence libraries. The import file would start with
10594: # the line `#! .'. This would cause the generated library to
10595: # depend on `.', always an invalid library. This was fixed in
10596: # development snapshots of GCC prior to 3.0.
10597: case $host_os in
10598: aix4 | aix4.[01] | aix4.[01].*)
10599: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10600: echo ' yes '
10601: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10602: :
10603: else
10604: can_build_shared=no
10605: fi
10606: ;;
10607: esac
10608: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10609: # soname into executable. Probably we can add versioning support to
10610: # collect2, so additional links can be useful in future.
10611: if test "$aix_use_runtimelinking" = yes; then
10612: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10613: # instead of lib<name>.a to let people know that these are not
10614: # typical AIX shared libraries.
10615: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10616: else
10617: # We preserve .a as extension for shared libraries through AIX4.2
10618: # and later when we are not doing run time linking.
10619: library_names_spec='${libname}${release}.a $libname.a'
10620: soname_spec='${libname}${release}${shared_ext}$major'
10621: fi
10622: shlibpath_var=LIBPATH
10623: fi
10624: ;;
10625:
10626: amigaos*)
10627: case $host_cpu in
10628: powerpc)
10629: # Since July 2007 AmigaOS4 officially supports .so libraries.
10630: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10631: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10632: ;;
10633: m68k)
10634: library_names_spec='$libname.ixlibrary $libname.a'
10635: # Create ${libname}_ixlibrary.a entries in /sys/libs.
10636: 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'
10637: ;;
10638: esac
10639: ;;
10640:
10641: beos*)
10642: library_names_spec='${libname}${shared_ext}'
10643: dynamic_linker="$host_os ld.so"
10644: shlibpath_var=LIBRARY_PATH
10645: ;;
10646:
10647: bsdi[45]*)
10648: version_type=linux # correct to gnu/linux during the next big refactor
10649: need_version=no
10650: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10651: soname_spec='${libname}${release}${shared_ext}$major'
10652: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10653: shlibpath_var=LD_LIBRARY_PATH
10654: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10655: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10656: # the default ld.so.conf also contains /usr/contrib/lib and
10657: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10658: # libtool to hard-code these into programs
10659: ;;
10660:
10661: cygwin* | mingw* | pw32* | cegcc*)
10662: version_type=windows
10663: shrext_cmds=".dll"
10664: need_version=no
10665: need_lib_prefix=no
10666:
10667: case $GCC,$cc_basename in
10668: yes,*)
10669: # gcc
10670: library_names_spec='$libname.dll.a'
10671: # DLL is installed to $(libdir)/../bin by postinstall_cmds
10672: postinstall_cmds='base_file=`basename \${file}`~
10673: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10674: dldir=$destdir/`dirname \$dlpath`~
10675: test -d \$dldir || mkdir -p \$dldir~
10676: $install_prog $dir/$dlname \$dldir/$dlname~
10677: chmod a+x \$dldir/$dlname~
10678: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10679: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10680: fi'
10681: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10682: dlpath=$dir/\$dldll~
10683: $RM \$dlpath'
10684: shlibpath_overrides_runpath=yes
10685:
10686: case $host_os in
10687: cygwin*)
10688: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10689: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10690:
10691: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10692: ;;
10693: mingw* | cegcc*)
10694: # MinGW DLLs use traditional 'lib' prefix
10695: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10696: ;;
10697: pw32*)
10698: # pw32 DLLs use 'pw' prefix rather than 'lib'
10699: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10700: ;;
10701: esac
10702: dynamic_linker='Win32 ld.exe'
10703: ;;
10704:
10705: *,cl*)
10706: # Native MSVC
10707: libname_spec='$name'
10708: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10709: library_names_spec='${libname}.dll.lib'
10710:
10711: case $build_os in
10712: mingw*)
10713: sys_lib_search_path_spec=
10714: lt_save_ifs=$IFS
10715: IFS=';'
10716: for lt_path in $LIB
10717: do
10718: IFS=$lt_save_ifs
10719: # Let DOS variable expansion print the short 8.3 style file name.
10720: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10721: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10722: done
10723: IFS=$lt_save_ifs
10724: # Convert to MSYS style.
10725: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10726: ;;
10727: cygwin*)
10728: # Convert to unix form, then to dos form, then back to unix form
10729: # but this time dos style (no spaces!) so that the unix form looks
10730: # like /cygdrive/c/PROGRA~1:/cygdr...
10731: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10732: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10733: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10734: ;;
10735: *)
10736: sys_lib_search_path_spec="$LIB"
10737: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10738: # It is most probably a Windows format PATH.
10739: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10740: else
10741: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10742: fi
10743: # FIXME: find the short name or the path components, as spaces are
10744: # common. (e.g. "Program Files" -> "PROGRA~1")
10745: ;;
10746: esac
10747:
10748: # DLL is installed to $(libdir)/../bin by postinstall_cmds
10749: postinstall_cmds='base_file=`basename \${file}`~
10750: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10751: dldir=$destdir/`dirname \$dlpath`~
10752: test -d \$dldir || mkdir -p \$dldir~
10753: $install_prog $dir/$dlname \$dldir/$dlname'
10754: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10755: dlpath=$dir/\$dldll~
10756: $RM \$dlpath'
10757: shlibpath_overrides_runpath=yes
10758: dynamic_linker='Win32 link.exe'
10759: ;;
10760:
10761: *)
10762: # Assume MSVC wrapper
10763: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10764: dynamic_linker='Win32 ld.exe'
10765: ;;
10766: esac
10767: # FIXME: first we should search . and the directory the executable is in
10768: shlibpath_var=PATH
10769: ;;
10770:
10771: darwin* | rhapsody*)
10772: dynamic_linker="$host_os dyld"
10773: version_type=darwin
10774: need_lib_prefix=no
10775: need_version=no
10776: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10777: soname_spec='${libname}${release}${major}$shared_ext'
10778: shlibpath_overrides_runpath=yes
10779: shlibpath_var=DYLD_LIBRARY_PATH
10780: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10781:
10782: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10783: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10784: ;;
10785:
10786: dgux*)
10787: version_type=linux # correct to gnu/linux during the next big refactor
10788: need_lib_prefix=no
10789: need_version=no
10790: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10791: soname_spec='${libname}${release}${shared_ext}$major'
10792: shlibpath_var=LD_LIBRARY_PATH
10793: ;;
10794:
10795: freebsd* | dragonfly*)
10796: # DragonFly does not have aout. When/if they implement a new
10797: # versioning mechanism, adjust this.
10798: if test -x /usr/bin/objformat; then
10799: objformat=`/usr/bin/objformat`
10800: else
10801: case $host_os in
10802: freebsd[23].*) objformat=aout ;;
10803: *) objformat=elf ;;
10804: esac
10805: fi
10806: version_type=freebsd-$objformat
10807: case $version_type in
10808: freebsd-elf*)
10809: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10810: need_version=no
10811: need_lib_prefix=no
10812: ;;
10813: freebsd-*)
10814: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10815: need_version=yes
10816: ;;
10817: esac
10818: shlibpath_var=LD_LIBRARY_PATH
10819: case $host_os in
10820: freebsd2.*)
10821: shlibpath_overrides_runpath=yes
10822: ;;
10823: freebsd3.[01]* | freebsdelf3.[01]*)
10824: shlibpath_overrides_runpath=yes
10825: hardcode_into_libs=yes
10826: ;;
10827: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10828: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10829: shlibpath_overrides_runpath=no
10830: hardcode_into_libs=yes
10831: ;;
10832: *) # from 4.6 on, and DragonFly
10833: shlibpath_overrides_runpath=yes
10834: hardcode_into_libs=yes
10835: ;;
10836: esac
10837: ;;
10838:
10839: gnu*)
10840: version_type=linux # correct to gnu/linux during the next big refactor
10841: need_lib_prefix=no
10842: need_version=no
10843: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10844: soname_spec='${libname}${release}${shared_ext}$major'
10845: shlibpath_var=LD_LIBRARY_PATH
10846: shlibpath_overrides_runpath=no
10847: hardcode_into_libs=yes
10848: ;;
10849:
10850: haiku*)
10851: version_type=linux # correct to gnu/linux during the next big refactor
10852: need_lib_prefix=no
10853: need_version=no
10854: dynamic_linker="$host_os runtime_loader"
10855: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10856: soname_spec='${libname}${release}${shared_ext}$major'
10857: shlibpath_var=LIBRARY_PATH
10858: shlibpath_overrides_runpath=yes
10859: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10860: hardcode_into_libs=yes
10861: ;;
10862:
10863: hpux9* | hpux10* | hpux11*)
10864: # Give a soname corresponding to the major version so that dld.sl refuses to
10865: # link against other versions.
10866: version_type=sunos
10867: need_lib_prefix=no
10868: need_version=no
10869: case $host_cpu in
10870: ia64*)
10871: shrext_cmds='.so'
10872: hardcode_into_libs=yes
10873: dynamic_linker="$host_os dld.so"
10874: shlibpath_var=LD_LIBRARY_PATH
10875: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10876: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10877: soname_spec='${libname}${release}${shared_ext}$major'
10878: if test "X$HPUX_IA64_MODE" = X32; then
10879: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10880: else
10881: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10882: fi
10883: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10884: ;;
10885: hppa*64*)
10886: shrext_cmds='.sl'
10887: hardcode_into_libs=yes
10888: dynamic_linker="$host_os dld.sl"
10889: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10890: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10891: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10892: soname_spec='${libname}${release}${shared_ext}$major'
10893: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10894: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10895: ;;
10896: *)
10897: shrext_cmds='.sl'
10898: dynamic_linker="$host_os dld.sl"
10899: shlibpath_var=SHLIB_PATH
10900: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10901: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10902: soname_spec='${libname}${release}${shared_ext}$major'
10903: ;;
10904: esac
10905: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10906: postinstall_cmds='chmod 555 $lib'
10907: # or fails outright, so override atomically:
10908: install_override_mode=555
10909: ;;
10910:
10911: interix[3-9]*)
10912: version_type=linux # correct to gnu/linux during the next big refactor
10913: need_lib_prefix=no
10914: need_version=no
10915: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10916: soname_spec='${libname}${release}${shared_ext}$major'
10917: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10918: shlibpath_var=LD_LIBRARY_PATH
10919: shlibpath_overrides_runpath=no
10920: hardcode_into_libs=yes
10921: ;;
10922:
10923: irix5* | irix6* | nonstopux*)
10924: case $host_os in
10925: nonstopux*) version_type=nonstopux ;;
10926: *)
10927: if test "$lt_cv_prog_gnu_ld" = yes; then
10928: version_type=linux # correct to gnu/linux during the next big refactor
10929: else
10930: version_type=irix
10931: fi ;;
10932: esac
10933: need_lib_prefix=no
10934: need_version=no
10935: soname_spec='${libname}${release}${shared_ext}$major'
10936: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10937: case $host_os in
10938: irix5* | nonstopux*)
10939: libsuff= shlibsuff=
10940: ;;
10941: *)
10942: case $LD in # libtool.m4 will add one of these switches to LD
10943: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10944: libsuff= shlibsuff= libmagic=32-bit;;
10945: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10946: libsuff=32 shlibsuff=N32 libmagic=N32;;
10947: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10948: libsuff=64 shlibsuff=64 libmagic=64-bit;;
10949: *) libsuff= shlibsuff= libmagic=never-match;;
10950: esac
10951: ;;
10952: esac
10953: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10954: shlibpath_overrides_runpath=no
10955: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10956: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10957: hardcode_into_libs=yes
10958: ;;
10959:
10960: # No shared lib support for Linux oldld, aout, or coff.
10961: linux*oldld* | linux*aout* | linux*coff*)
10962: dynamic_linker=no
10963: ;;
10964:
10965: # This must be glibc/ELF.
10966: linux* | k*bsd*-gnu | kopensolaris*-gnu)
10967: version_type=linux # correct to gnu/linux during the next big refactor
10968: need_lib_prefix=no
10969: need_version=no
10970: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10971: soname_spec='${libname}${release}${shared_ext}$major'
10972: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10973: shlibpath_var=LD_LIBRARY_PATH
10974: shlibpath_overrides_runpath=no
10975:
10976: # Some binutils ld are patched to set DT_RUNPATH
10977: if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
10978: echo $ECHO_N "(cached) $ECHO_C" >&6
10979: else
10980: lt_cv_shlibpath_overrides_runpath=no
10981: save_LDFLAGS=$LDFLAGS
10982: save_libdir=$libdir
10983: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10984: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10985: cat >conftest.$ac_ext <<_ACEOF
10986: /* confdefs.h. */
10987: _ACEOF
10988: cat confdefs.h >>conftest.$ac_ext
10989: cat >>conftest.$ac_ext <<_ACEOF
10990: /* end confdefs.h. */
10991:
10992: int
10993: main ()
10994: {
10995:
10996: ;
10997: return 0;
10998: }
10999: _ACEOF
11000: rm -f conftest.$ac_objext conftest$ac_exeext
11001: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11002: (eval $ac_link) 2>conftest.er1
11003: ac_status=$?
11004: grep -v '^ *+' conftest.er1 >conftest.err
11005: rm -f conftest.er1
11006: cat conftest.err >&5
11007: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11008: (exit $ac_status); } &&
11009: { ac_try='test -z "$ac_c_werror_flag"
11010: || test ! -s conftest.err'
11011: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11012: (eval $ac_try) 2>&5
11013: ac_status=$?
11014: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11015: (exit $ac_status); }; } &&
11016: { ac_try='test -s conftest$ac_exeext'
11017: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11018: (eval $ac_try) 2>&5
11019: ac_status=$?
11020: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11021: (exit $ac_status); }; }; then
11022: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11023: lt_cv_shlibpath_overrides_runpath=yes
11024: fi
11025:
11026: else
11027: echo "$as_me: failed program was:" >&5
11028: sed 's/^/| /' conftest.$ac_ext >&5
11029:
11030: fi
11031: rm -f conftest.err conftest.$ac_objext \
11032: conftest$ac_exeext conftest.$ac_ext
11033: LDFLAGS=$save_LDFLAGS
11034: libdir=$save_libdir
11035:
11036: fi
11037:
11038: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11039:
11040: # This implies no fast_install, which is unacceptable.
11041: # Some rework will be needed to allow for fast_install
11042: # before this can be enabled.
11043: hardcode_into_libs=yes
11044:
11045: # Append ld.so.conf contents to the search path
11046: if test -f /etc/ld.so.conf; then
11047: 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' ' '`
11048: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11049: fi
11050:
11051: # We used to test for /lib/ld.so.1 and disable shared libraries on
11052: # powerpc, because MkLinux only supported shared libraries with the
11053: # GNU dynamic linker. Since this was broken with cross compilers,
11054: # most powerpc-linux boxes support dynamic linking these days and
11055: # people can always --disable-shared, the test was removed, and we
11056: # assume the GNU/Linux dynamic linker is in use.
11057: dynamic_linker='GNU/Linux ld.so'
11058: ;;
11059:
11060: netbsd*)
11061: version_type=sunos
11062: need_lib_prefix=no
11063: need_version=no
11064: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11065: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11066: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11067: dynamic_linker='NetBSD (a.out) ld.so'
11068: else
11069: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11070: soname_spec='${libname}${release}${shared_ext}$major'
11071: dynamic_linker='NetBSD ld.elf_so'
11072: fi
11073: shlibpath_var=LD_LIBRARY_PATH
11074: shlibpath_overrides_runpath=yes
11075: hardcode_into_libs=yes
11076: ;;
11077:
11078: newsos6)
11079: version_type=linux # correct to gnu/linux during the next big refactor
11080: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11081: shlibpath_var=LD_LIBRARY_PATH
11082: shlibpath_overrides_runpath=yes
11083: ;;
11084:
11085: *nto* | *qnx*)
11086: version_type=qnx
11087: need_lib_prefix=no
11088: need_version=no
11089: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11090: soname_spec='${libname}${release}${shared_ext}$major'
11091: shlibpath_var=LD_LIBRARY_PATH
11092: shlibpath_overrides_runpath=no
11093: hardcode_into_libs=yes
11094: dynamic_linker='ldqnx.so'
11095: ;;
11096:
11097: openbsd*)
11098: version_type=sunos
11099: sys_lib_dlsearch_path_spec="/usr/lib"
11100: need_lib_prefix=no
11101: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11102: case $host_os in
11103: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11104: *) need_version=no ;;
11105: esac
11106: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11107: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11108: shlibpath_var=LD_LIBRARY_PATH
11109: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11110: case $host_os in
11111: openbsd2.[89] | openbsd2.[89].*)
11112: shlibpath_overrides_runpath=no
11113: ;;
11114: *)
11115: shlibpath_overrides_runpath=yes
11116: ;;
11117: esac
11118: else
11119: shlibpath_overrides_runpath=yes
11120: fi
11121: ;;
11122:
11123: os2*)
11124: libname_spec='$name'
11125: shrext_cmds=".dll"
11126: need_lib_prefix=no
11127: library_names_spec='$libname${shared_ext} $libname.a'
11128: dynamic_linker='OS/2 ld.exe'
11129: shlibpath_var=LIBPATH
11130: ;;
11131:
11132: osf3* | osf4* | osf5*)
11133: version_type=osf
11134: need_lib_prefix=no
11135: need_version=no
11136: soname_spec='${libname}${release}${shared_ext}$major'
11137: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11138: shlibpath_var=LD_LIBRARY_PATH
11139: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11140: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11141: ;;
11142:
11143: rdos*)
11144: dynamic_linker=no
11145: ;;
11146:
11147: solaris*)
11148: version_type=linux # correct to gnu/linux during the next big refactor
11149: need_lib_prefix=no
11150: need_version=no
11151: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11152: soname_spec='${libname}${release}${shared_ext}$major'
11153: shlibpath_var=LD_LIBRARY_PATH
11154: shlibpath_overrides_runpath=yes
11155: hardcode_into_libs=yes
11156: # ldd complains unless libraries are executable
11157: postinstall_cmds='chmod +x $lib'
11158: ;;
11159:
11160: sunos4*)
11161: version_type=sunos
11162: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11163: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11164: shlibpath_var=LD_LIBRARY_PATH
11165: shlibpath_overrides_runpath=yes
11166: if test "$with_gnu_ld" = yes; then
11167: need_lib_prefix=no
11168: fi
11169: need_version=yes
11170: ;;
11171:
11172: sysv4 | sysv4.3*)
11173: version_type=linux # correct to gnu/linux during the next big refactor
11174: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11175: soname_spec='${libname}${release}${shared_ext}$major'
11176: shlibpath_var=LD_LIBRARY_PATH
11177: case $host_vendor in
11178: sni)
11179: shlibpath_overrides_runpath=no
11180: need_lib_prefix=no
11181: runpath_var=LD_RUN_PATH
11182: ;;
11183: siemens)
11184: need_lib_prefix=no
11185: ;;
11186: motorola)
11187: need_lib_prefix=no
11188: need_version=no
11189: shlibpath_overrides_runpath=no
11190: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11191: ;;
11192: esac
11193: ;;
11194:
11195: sysv4*MP*)
11196: if test -d /usr/nec ;then
11197: version_type=linux # correct to gnu/linux during the next big refactor
11198: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11199: soname_spec='$libname${shared_ext}.$major'
11200: shlibpath_var=LD_LIBRARY_PATH
11201: fi
11202: ;;
11203:
11204: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11205: version_type=freebsd-elf
11206: need_lib_prefix=no
11207: need_version=no
11208: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11209: soname_spec='${libname}${release}${shared_ext}$major'
11210: shlibpath_var=LD_LIBRARY_PATH
11211: shlibpath_overrides_runpath=yes
11212: hardcode_into_libs=yes
11213: if test "$with_gnu_ld" = yes; then
11214: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11215: else
11216: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11217: case $host_os in
11218: sco3.2v5*)
11219: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11220: ;;
11221: esac
11222: fi
11223: sys_lib_dlsearch_path_spec='/usr/lib'
11224: ;;
11225:
11226: tpf*)
11227: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11228: version_type=linux # correct to gnu/linux during the next big refactor
11229: need_lib_prefix=no
11230: need_version=no
11231: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11232: shlibpath_var=LD_LIBRARY_PATH
11233: shlibpath_overrides_runpath=no
11234: hardcode_into_libs=yes
11235: ;;
11236:
11237: uts4*)
11238: version_type=linux # correct to gnu/linux during the next big refactor
11239: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11240: soname_spec='${libname}${release}${shared_ext}$major'
11241: shlibpath_var=LD_LIBRARY_PATH
11242: ;;
11243:
11244: *)
11245: dynamic_linker=no
11246: ;;
11247: esac
11248: echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11249: echo "${ECHO_T}$dynamic_linker" >&6
11250: test "$dynamic_linker" = no && can_build_shared=no
11251:
11252: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11253: if test "$GCC" = yes; then
11254: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11255: fi
11256:
11257: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11258: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11259: fi
11260: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11261: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11262: fi
11263:
11264:
11265:
11266:
11267:
11268:
11269:
11270:
11271:
11272:
11273:
11274:
11275:
11276:
11277:
11278:
11279:
11280:
11281:
11282:
11283:
11284:
11285:
11286:
11287:
11288:
11289:
11290:
11291:
11292:
11293:
11294:
11295:
11296:
11297:
11298:
11299:
11300:
11301:
11302:
11303:
11304:
11305:
11306:
11307:
11308:
11309:
11310:
11311:
11312:
11313:
11314:
11315:
11316:
11317:
11318:
11319:
11320:
11321:
11322:
11323:
11324:
11325:
11326:
11327:
11328:
11329:
11330:
11331:
11332:
11333:
11334:
11335:
11336:
11337:
11338:
11339:
11340:
11341:
11342:
11343:
11344:
11345:
11346:
11347:
11348:
11349:
11350:
11351:
11352:
11353:
11354:
11355: echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11356: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11357: hardcode_action=
11358: if test -n "$hardcode_libdir_flag_spec" ||
11359: test -n "$runpath_var" ||
11360: test "X$hardcode_automatic" = "Xyes" ; then
11361:
11362: # We can hardcode non-existent directories.
11363: if test "$hardcode_direct" != no &&
11364: # If the only mechanism to avoid hardcoding is shlibpath_var, we
11365: # have to relink, otherwise we might link with an installed library
11366: # when we should be linking with a yet-to-be-installed one
11367: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11368: test "$hardcode_minus_L" != no; then
11369: # Linking always hardcodes the temporary library directory.
11370: hardcode_action=relink
11371: else
11372: # We can link without hardcoding, and we can hardcode nonexisting dirs.
11373: hardcode_action=immediate
11374: fi
11375: else
11376: # We cannot hardcode anything, or else we can only hardcode existing
11377: # directories.
11378: hardcode_action=unsupported
11379: fi
11380: echo "$as_me:$LINENO: result: $hardcode_action" >&5
11381: echo "${ECHO_T}$hardcode_action" >&6
11382:
11383: if test "$hardcode_action" = relink ||
11384: test "$inherit_rpath" = yes; then
11385: # Fast installation is not supported
11386: enable_fast_install=no
11387: elif test "$shlibpath_overrides_runpath" = yes ||
11388: test "$enable_shared" = no; then
11389: # Fast installation is not necessary
11390: enable_fast_install=needless
11391: fi
11392:
11393:
11394:
11395:
11396:
11397:
11398: if test "x$enable_dlopen" != xyes; then
11399: enable_dlopen=unknown
11400: enable_dlopen_self=unknown
11401: enable_dlopen_self_static=unknown
11402: else
11403: lt_cv_dlopen=no
11404: lt_cv_dlopen_libs=
11405:
11406: case $host_os in
11407: beos*)
11408: lt_cv_dlopen="load_add_on"
11409: lt_cv_dlopen_libs=
11410: lt_cv_dlopen_self=yes
11411: ;;
11412:
11413: mingw* | pw32* | cegcc*)
11414: lt_cv_dlopen="LoadLibrary"
11415: lt_cv_dlopen_libs=
11416: ;;
11417:
11418: cygwin*)
11419: lt_cv_dlopen="dlopen"
11420: lt_cv_dlopen_libs=
11421: ;;
11422:
11423: darwin*)
11424: # if libdl is installed we need to link against it
11425: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11426: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11427: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11428: echo $ECHO_N "(cached) $ECHO_C" >&6
11429: else
11430: ac_check_lib_save_LIBS=$LIBS
11431: LIBS="-ldl $LIBS"
11432: cat >conftest.$ac_ext <<_ACEOF
11433: /* confdefs.h. */
11434: _ACEOF
11435: cat confdefs.h >>conftest.$ac_ext
11436: cat >>conftest.$ac_ext <<_ACEOF
11437: /* end confdefs.h. */
11438:
11439: /* Override any gcc2 internal prototype to avoid an error. */
11440: #ifdef __cplusplus
11441: extern "C"
11442: #endif
11443: /* We use char because int might match the return type of a gcc2
11444: builtin and then its argument prototype would still apply. */
11445: char dlopen ();
11446: int
11447: main ()
11448: {
11449: dlopen ();
11450: ;
11451: return 0;
11452: }
11453: _ACEOF
11454: rm -f conftest.$ac_objext conftest$ac_exeext
11455: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11456: (eval $ac_link) 2>conftest.er1
11457: ac_status=$?
11458: grep -v '^ *+' conftest.er1 >conftest.err
11459: rm -f conftest.er1
11460: cat conftest.err >&5
11461: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11462: (exit $ac_status); } &&
11463: { ac_try='test -z "$ac_c_werror_flag"
11464: || test ! -s conftest.err'
11465: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11466: (eval $ac_try) 2>&5
11467: ac_status=$?
11468: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469: (exit $ac_status); }; } &&
11470: { ac_try='test -s conftest$ac_exeext'
11471: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11472: (eval $ac_try) 2>&5
11473: ac_status=$?
11474: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11475: (exit $ac_status); }; }; then
11476: ac_cv_lib_dl_dlopen=yes
11477: else
11478: echo "$as_me: failed program was:" >&5
11479: sed 's/^/| /' conftest.$ac_ext >&5
11480:
11481: ac_cv_lib_dl_dlopen=no
11482: fi
11483: rm -f conftest.err conftest.$ac_objext \
11484: conftest$ac_exeext conftest.$ac_ext
11485: LIBS=$ac_check_lib_save_LIBS
11486: fi
11487: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11488: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11489: if test $ac_cv_lib_dl_dlopen = yes; then
11490: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11491: else
11492:
11493: lt_cv_dlopen="dyld"
11494: lt_cv_dlopen_libs=
11495: lt_cv_dlopen_self=yes
11496:
11497: fi
11498:
11499: ;;
11500:
11501: *)
11502: echo "$as_me:$LINENO: checking for shl_load" >&5
11503: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11504: if test "${ac_cv_func_shl_load+set}" = set; then
11505: echo $ECHO_N "(cached) $ECHO_C" >&6
11506: else
11507: cat >conftest.$ac_ext <<_ACEOF
11508: /* confdefs.h. */
11509: _ACEOF
11510: cat confdefs.h >>conftest.$ac_ext
11511: cat >>conftest.$ac_ext <<_ACEOF
11512: /* end confdefs.h. */
11513: /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11514: For example, HP-UX 11i <limits.h> declares gettimeofday. */
11515: #define shl_load innocuous_shl_load
11516:
11517: /* System header to define __stub macros and hopefully few prototypes,
11518: which can conflict with char shl_load (); below.
11519: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11520: <limits.h> exists even on freestanding compilers. */
11521:
11522: #ifdef __STDC__
11523: # include <limits.h>
11524: #else
11525: # include <assert.h>
11526: #endif
11527:
11528: #undef shl_load
11529:
11530: /* Override any gcc2 internal prototype to avoid an error. */
11531: #ifdef __cplusplus
11532: extern "C"
11533: {
11534: #endif
11535: /* We use char because int might match the return type of a gcc2
11536: builtin and then its argument prototype would still apply. */
11537: char shl_load ();
11538: /* The GNU C library defines this for functions which it implements
11539: to always fail with ENOSYS. Some functions are actually named
11540: something starting with __ and the normal name is an alias. */
11541: #if defined (__stub_shl_load) || defined (__stub___shl_load)
11542: choke me
11543: #else
11544: char (*f) () = shl_load;
11545: #endif
11546: #ifdef __cplusplus
11547: }
11548: #endif
11549:
11550: int
11551: main ()
11552: {
11553: return f != shl_load;
11554: ;
11555: return 0;
11556: }
11557: _ACEOF
11558: rm -f conftest.$ac_objext conftest$ac_exeext
11559: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11560: (eval $ac_link) 2>conftest.er1
11561: ac_status=$?
11562: grep -v '^ *+' conftest.er1 >conftest.err
11563: rm -f conftest.er1
11564: cat conftest.err >&5
11565: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566: (exit $ac_status); } &&
11567: { ac_try='test -z "$ac_c_werror_flag"
11568: || test ! -s conftest.err'
11569: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11570: (eval $ac_try) 2>&5
11571: ac_status=$?
11572: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573: (exit $ac_status); }; } &&
11574: { ac_try='test -s conftest$ac_exeext'
11575: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11576: (eval $ac_try) 2>&5
11577: ac_status=$?
11578: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579: (exit $ac_status); }; }; then
11580: ac_cv_func_shl_load=yes
11581: else
11582: echo "$as_me: failed program was:" >&5
11583: sed 's/^/| /' conftest.$ac_ext >&5
11584:
11585: ac_cv_func_shl_load=no
11586: fi
11587: rm -f conftest.err conftest.$ac_objext \
11588: conftest$ac_exeext conftest.$ac_ext
11589: fi
11590: echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11591: echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11592: if test $ac_cv_func_shl_load = yes; then
11593: lt_cv_dlopen="shl_load"
11594: else
11595: echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11596: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11597: if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11598: echo $ECHO_N "(cached) $ECHO_C" >&6
11599: else
11600: ac_check_lib_save_LIBS=$LIBS
11601: LIBS="-ldld $LIBS"
11602: cat >conftest.$ac_ext <<_ACEOF
11603: /* confdefs.h. */
11604: _ACEOF
11605: cat confdefs.h >>conftest.$ac_ext
11606: cat >>conftest.$ac_ext <<_ACEOF
11607: /* end confdefs.h. */
11608:
11609: /* Override any gcc2 internal prototype to avoid an error. */
11610: #ifdef __cplusplus
11611: extern "C"
11612: #endif
11613: /* We use char because int might match the return type of a gcc2
11614: builtin and then its argument prototype would still apply. */
11615: char shl_load ();
11616: int
11617: main ()
11618: {
11619: shl_load ();
11620: ;
11621: return 0;
11622: }
11623: _ACEOF
11624: rm -f conftest.$ac_objext conftest$ac_exeext
11625: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11626: (eval $ac_link) 2>conftest.er1
11627: ac_status=$?
11628: grep -v '^ *+' conftest.er1 >conftest.err
11629: rm -f conftest.er1
11630: cat conftest.err >&5
11631: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11632: (exit $ac_status); } &&
11633: { ac_try='test -z "$ac_c_werror_flag"
11634: || test ! -s conftest.err'
11635: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11636: (eval $ac_try) 2>&5
11637: ac_status=$?
11638: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11639: (exit $ac_status); }; } &&
11640: { ac_try='test -s conftest$ac_exeext'
11641: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11642: (eval $ac_try) 2>&5
11643: ac_status=$?
11644: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11645: (exit $ac_status); }; }; then
11646: ac_cv_lib_dld_shl_load=yes
11647: else
11648: echo "$as_me: failed program was:" >&5
11649: sed 's/^/| /' conftest.$ac_ext >&5
11650:
11651: ac_cv_lib_dld_shl_load=no
11652: fi
11653: rm -f conftest.err conftest.$ac_objext \
11654: conftest$ac_exeext conftest.$ac_ext
11655: LIBS=$ac_check_lib_save_LIBS
11656: fi
11657: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11658: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11659: if test $ac_cv_lib_dld_shl_load = yes; then
11660: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11661: else
11662: echo "$as_me:$LINENO: checking for dlopen" >&5
11663: echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11664: if test "${ac_cv_func_dlopen+set}" = set; then
11665: echo $ECHO_N "(cached) $ECHO_C" >&6
11666: else
11667: cat >conftest.$ac_ext <<_ACEOF
11668: /* confdefs.h. */
11669: _ACEOF
11670: cat confdefs.h >>conftest.$ac_ext
11671: cat >>conftest.$ac_ext <<_ACEOF
11672: /* end confdefs.h. */
11673: /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11674: For example, HP-UX 11i <limits.h> declares gettimeofday. */
11675: #define dlopen innocuous_dlopen
11676:
11677: /* System header to define __stub macros and hopefully few prototypes,
11678: which can conflict with char dlopen (); below.
11679: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11680: <limits.h> exists even on freestanding compilers. */
11681:
11682: #ifdef __STDC__
11683: # include <limits.h>
11684: #else
11685: # include <assert.h>
11686: #endif
11687:
11688: #undef dlopen
11689:
11690: /* Override any gcc2 internal prototype to avoid an error. */
11691: #ifdef __cplusplus
11692: extern "C"
11693: {
11694: #endif
11695: /* We use char because int might match the return type of a gcc2
11696: builtin and then its argument prototype would still apply. */
11697: char dlopen ();
11698: /* The GNU C library defines this for functions which it implements
11699: to always fail with ENOSYS. Some functions are actually named
11700: something starting with __ and the normal name is an alias. */
11701: #if defined (__stub_dlopen) || defined (__stub___dlopen)
11702: choke me
11703: #else
11704: char (*f) () = dlopen;
11705: #endif
11706: #ifdef __cplusplus
11707: }
11708: #endif
11709:
11710: int
11711: main ()
11712: {
11713: return f != dlopen;
11714: ;
11715: return 0;
11716: }
11717: _ACEOF
11718: rm -f conftest.$ac_objext conftest$ac_exeext
11719: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11720: (eval $ac_link) 2>conftest.er1
11721: ac_status=$?
11722: grep -v '^ *+' conftest.er1 >conftest.err
11723: rm -f conftest.er1
11724: cat conftest.err >&5
11725: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11726: (exit $ac_status); } &&
11727: { ac_try='test -z "$ac_c_werror_flag"
11728: || test ! -s conftest.err'
11729: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11730: (eval $ac_try) 2>&5
11731: ac_status=$?
11732: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11733: (exit $ac_status); }; } &&
11734: { ac_try='test -s conftest$ac_exeext'
11735: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11736: (eval $ac_try) 2>&5
11737: ac_status=$?
11738: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11739: (exit $ac_status); }; }; then
11740: ac_cv_func_dlopen=yes
11741: else
11742: echo "$as_me: failed program was:" >&5
11743: sed 's/^/| /' conftest.$ac_ext >&5
11744:
11745: ac_cv_func_dlopen=no
11746: fi
11747: rm -f conftest.err conftest.$ac_objext \
11748: conftest$ac_exeext conftest.$ac_ext
11749: fi
11750: echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11751: echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11752: if test $ac_cv_func_dlopen = yes; then
11753: lt_cv_dlopen="dlopen"
11754: else
11755: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11756: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11757: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11758: echo $ECHO_N "(cached) $ECHO_C" >&6
11759: else
11760: ac_check_lib_save_LIBS=$LIBS
11761: LIBS="-ldl $LIBS"
11762: cat >conftest.$ac_ext <<_ACEOF
11763: /* confdefs.h. */
11764: _ACEOF
11765: cat confdefs.h >>conftest.$ac_ext
11766: cat >>conftest.$ac_ext <<_ACEOF
11767: /* end confdefs.h. */
11768:
11769: /* Override any gcc2 internal prototype to avoid an error. */
11770: #ifdef __cplusplus
11771: extern "C"
11772: #endif
11773: /* We use char because int might match the return type of a gcc2
11774: builtin and then its argument prototype would still apply. */
11775: char dlopen ();
11776: int
11777: main ()
11778: {
11779: dlopen ();
11780: ;
11781: return 0;
11782: }
11783: _ACEOF
11784: rm -f conftest.$ac_objext conftest$ac_exeext
11785: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11786: (eval $ac_link) 2>conftest.er1
11787: ac_status=$?
11788: grep -v '^ *+' conftest.er1 >conftest.err
11789: rm -f conftest.er1
11790: cat conftest.err >&5
11791: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792: (exit $ac_status); } &&
11793: { ac_try='test -z "$ac_c_werror_flag"
11794: || test ! -s conftest.err'
11795: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11796: (eval $ac_try) 2>&5
11797: ac_status=$?
11798: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11799: (exit $ac_status); }; } &&
11800: { ac_try='test -s conftest$ac_exeext'
11801: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11802: (eval $ac_try) 2>&5
11803: ac_status=$?
11804: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11805: (exit $ac_status); }; }; then
11806: ac_cv_lib_dl_dlopen=yes
11807: else
11808: echo "$as_me: failed program was:" >&5
11809: sed 's/^/| /' conftest.$ac_ext >&5
11810:
11811: ac_cv_lib_dl_dlopen=no
11812: fi
11813: rm -f conftest.err conftest.$ac_objext \
11814: conftest$ac_exeext conftest.$ac_ext
11815: LIBS=$ac_check_lib_save_LIBS
11816: fi
11817: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11818: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11819: if test $ac_cv_lib_dl_dlopen = yes; then
11820: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11821: else
11822: echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11823: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11824: if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11825: echo $ECHO_N "(cached) $ECHO_C" >&6
11826: else
11827: ac_check_lib_save_LIBS=$LIBS
11828: LIBS="-lsvld $LIBS"
11829: cat >conftest.$ac_ext <<_ACEOF
11830: /* confdefs.h. */
11831: _ACEOF
11832: cat confdefs.h >>conftest.$ac_ext
11833: cat >>conftest.$ac_ext <<_ACEOF
11834: /* end confdefs.h. */
11835:
11836: /* Override any gcc2 internal prototype to avoid an error. */
11837: #ifdef __cplusplus
11838: extern "C"
11839: #endif
11840: /* We use char because int might match the return type of a gcc2
11841: builtin and then its argument prototype would still apply. */
11842: char dlopen ();
11843: int
11844: main ()
11845: {
11846: dlopen ();
11847: ;
11848: return 0;
11849: }
11850: _ACEOF
11851: rm -f conftest.$ac_objext conftest$ac_exeext
11852: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11853: (eval $ac_link) 2>conftest.er1
11854: ac_status=$?
11855: grep -v '^ *+' conftest.er1 >conftest.err
11856: rm -f conftest.er1
11857: cat conftest.err >&5
11858: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859: (exit $ac_status); } &&
11860: { ac_try='test -z "$ac_c_werror_flag"
11861: || test ! -s conftest.err'
11862: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11863: (eval $ac_try) 2>&5
11864: ac_status=$?
11865: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11866: (exit $ac_status); }; } &&
11867: { ac_try='test -s conftest$ac_exeext'
11868: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11869: (eval $ac_try) 2>&5
11870: ac_status=$?
11871: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11872: (exit $ac_status); }; }; then
11873: ac_cv_lib_svld_dlopen=yes
11874: else
11875: echo "$as_me: failed program was:" >&5
11876: sed 's/^/| /' conftest.$ac_ext >&5
11877:
11878: ac_cv_lib_svld_dlopen=no
11879: fi
11880: rm -f conftest.err conftest.$ac_objext \
11881: conftest$ac_exeext conftest.$ac_ext
11882: LIBS=$ac_check_lib_save_LIBS
11883: fi
11884: echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11885: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11886: if test $ac_cv_lib_svld_dlopen = yes; then
11887: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11888: else
11889: echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11890: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11891: if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11892: echo $ECHO_N "(cached) $ECHO_C" >&6
11893: else
11894: ac_check_lib_save_LIBS=$LIBS
11895: LIBS="-ldld $LIBS"
11896: cat >conftest.$ac_ext <<_ACEOF
11897: /* confdefs.h. */
11898: _ACEOF
11899: cat confdefs.h >>conftest.$ac_ext
11900: cat >>conftest.$ac_ext <<_ACEOF
11901: /* end confdefs.h. */
11902:
11903: /* Override any gcc2 internal prototype to avoid an error. */
11904: #ifdef __cplusplus
11905: extern "C"
11906: #endif
11907: /* We use char because int might match the return type of a gcc2
11908: builtin and then its argument prototype would still apply. */
11909: char dld_link ();
11910: int
11911: main ()
11912: {
11913: dld_link ();
11914: ;
11915: return 0;
11916: }
11917: _ACEOF
11918: rm -f conftest.$ac_objext conftest$ac_exeext
11919: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11920: (eval $ac_link) 2>conftest.er1
11921: ac_status=$?
11922: grep -v '^ *+' conftest.er1 >conftest.err
11923: rm -f conftest.er1
11924: cat conftest.err >&5
11925: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926: (exit $ac_status); } &&
11927: { ac_try='test -z "$ac_c_werror_flag"
11928: || test ! -s conftest.err'
11929: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11930: (eval $ac_try) 2>&5
11931: ac_status=$?
11932: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11933: (exit $ac_status); }; } &&
11934: { ac_try='test -s conftest$ac_exeext'
11935: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11936: (eval $ac_try) 2>&5
11937: ac_status=$?
11938: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11939: (exit $ac_status); }; }; then
11940: ac_cv_lib_dld_dld_link=yes
11941: else
11942: echo "$as_me: failed program was:" >&5
11943: sed 's/^/| /' conftest.$ac_ext >&5
11944:
11945: ac_cv_lib_dld_dld_link=no
11946: fi
11947: rm -f conftest.err conftest.$ac_objext \
11948: conftest$ac_exeext conftest.$ac_ext
11949: LIBS=$ac_check_lib_save_LIBS
11950: fi
11951: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11952: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11953: if test $ac_cv_lib_dld_dld_link = yes; then
11954: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11955: fi
11956:
11957:
11958: fi
11959:
11960:
11961: fi
11962:
11963:
11964: fi
11965:
11966:
11967: fi
11968:
11969:
11970: fi
11971:
11972: ;;
11973: esac
11974:
11975: if test "x$lt_cv_dlopen" != xno; then
11976: enable_dlopen=yes
11977: else
11978: enable_dlopen=no
11979: fi
11980:
11981: case $lt_cv_dlopen in
11982: dlopen)
11983: save_CPPFLAGS="$CPPFLAGS"
11984: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11985:
11986: save_LDFLAGS="$LDFLAGS"
11987: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11988:
11989: save_LIBS="$LIBS"
11990: LIBS="$lt_cv_dlopen_libs $LIBS"
11991:
11992: echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11993: echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11994: if test "${lt_cv_dlopen_self+set}" = set; then
11995: echo $ECHO_N "(cached) $ECHO_C" >&6
11996: else
11997: if test "$cross_compiling" = yes; then :
11998: lt_cv_dlopen_self=cross
11999: else
12000: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12001: lt_status=$lt_dlunknown
12002: cat > conftest.$ac_ext <<_LT_EOF
12003: #line $LINENO "configure"
12004: #include "confdefs.h"
12005:
12006: #if HAVE_DLFCN_H
12007: #include <dlfcn.h>
12008: #endif
12009:
12010: #include <stdio.h>
12011:
12012: #ifdef RTLD_GLOBAL
12013: # define LT_DLGLOBAL RTLD_GLOBAL
12014: #else
12015: # ifdef DL_GLOBAL
12016: # define LT_DLGLOBAL DL_GLOBAL
12017: # else
12018: # define LT_DLGLOBAL 0
12019: # endif
12020: #endif
12021:
12022: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12023: find out it does not work in some platform. */
12024: #ifndef LT_DLLAZY_OR_NOW
12025: # ifdef RTLD_LAZY
12026: # define LT_DLLAZY_OR_NOW RTLD_LAZY
12027: # else
12028: # ifdef DL_LAZY
12029: # define LT_DLLAZY_OR_NOW DL_LAZY
12030: # else
12031: # ifdef RTLD_NOW
12032: # define LT_DLLAZY_OR_NOW RTLD_NOW
12033: # else
12034: # ifdef DL_NOW
12035: # define LT_DLLAZY_OR_NOW DL_NOW
12036: # else
12037: # define LT_DLLAZY_OR_NOW 0
12038: # endif
12039: # endif
12040: # endif
12041: # endif
12042: #endif
12043:
12044: /* When -fvisbility=hidden is used, assume the code has been annotated
12045: correspondingly for the symbols needed. */
12046: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12047: int fnord () __attribute__((visibility("default")));
12048: #endif
12049:
12050: int fnord () { return 42; }
12051: int main ()
12052: {
12053: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12054: int status = $lt_dlunknown;
12055:
12056: if (self)
12057: {
12058: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12059: else
12060: {
12061: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12062: else puts (dlerror ());
12063: }
12064: /* dlclose (self); */
12065: }
12066: else
12067: puts (dlerror ());
12068:
12069: return status;
12070: }
12071: _LT_EOF
12072: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12073: (eval $ac_link) 2>&5
12074: ac_status=$?
12075: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12077: (./conftest; exit; ) >&5 2>/dev/null
12078: lt_status=$?
12079: case x$lt_status in
12080: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12081: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12082: x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12083: esac
12084: else :
12085: # compilation failed
12086: lt_cv_dlopen_self=no
12087: fi
12088: fi
12089: rm -fr conftest*
12090:
12091:
12092: fi
12093: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12094: echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12095:
12096: if test "x$lt_cv_dlopen_self" = xyes; then
12097: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12098: echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12099: echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12100: if test "${lt_cv_dlopen_self_static+set}" = set; then
12101: echo $ECHO_N "(cached) $ECHO_C" >&6
12102: else
12103: if test "$cross_compiling" = yes; then :
12104: lt_cv_dlopen_self_static=cross
12105: else
12106: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12107: lt_status=$lt_dlunknown
12108: cat > conftest.$ac_ext <<_LT_EOF
12109: #line $LINENO "configure"
12110: #include "confdefs.h"
12111:
12112: #if HAVE_DLFCN_H
12113: #include <dlfcn.h>
12114: #endif
12115:
12116: #include <stdio.h>
12117:
12118: #ifdef RTLD_GLOBAL
12119: # define LT_DLGLOBAL RTLD_GLOBAL
12120: #else
12121: # ifdef DL_GLOBAL
12122: # define LT_DLGLOBAL DL_GLOBAL
12123: # else
12124: # define LT_DLGLOBAL 0
12125: # endif
12126: #endif
12127:
12128: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12129: find out it does not work in some platform. */
12130: #ifndef LT_DLLAZY_OR_NOW
12131: # ifdef RTLD_LAZY
12132: # define LT_DLLAZY_OR_NOW RTLD_LAZY
12133: # else
12134: # ifdef DL_LAZY
12135: # define LT_DLLAZY_OR_NOW DL_LAZY
12136: # else
12137: # ifdef RTLD_NOW
12138: # define LT_DLLAZY_OR_NOW RTLD_NOW
12139: # else
12140: # ifdef DL_NOW
12141: # define LT_DLLAZY_OR_NOW DL_NOW
12142: # else
12143: # define LT_DLLAZY_OR_NOW 0
12144: # endif
12145: # endif
12146: # endif
12147: # endif
12148: #endif
12149:
12150: /* When -fvisbility=hidden is used, assume the code has been annotated
12151: correspondingly for the symbols needed. */
12152: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12153: int fnord () __attribute__((visibility("default")));
12154: #endif
12155:
12156: int fnord () { return 42; }
12157: int main ()
12158: {
12159: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12160: int status = $lt_dlunknown;
12161:
12162: if (self)
12163: {
12164: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12165: else
12166: {
12167: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12168: else puts (dlerror ());
12169: }
12170: /* dlclose (self); */
12171: }
12172: else
12173: puts (dlerror ());
12174:
12175: return status;
12176: }
12177: _LT_EOF
12178: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12179: (eval $ac_link) 2>&5
12180: ac_status=$?
12181: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12183: (./conftest; exit; ) >&5 2>/dev/null
12184: lt_status=$?
12185: case x$lt_status in
12186: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12187: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12188: x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12189: esac
12190: else :
12191: # compilation failed
12192: lt_cv_dlopen_self_static=no
12193: fi
12194: fi
12195: rm -fr conftest*
12196:
12197:
12198: fi
12199: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12200: echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12201: fi
12202:
12203: CPPFLAGS="$save_CPPFLAGS"
12204: LDFLAGS="$save_LDFLAGS"
12205: LIBS="$save_LIBS"
12206: ;;
12207: esac
12208:
12209: case $lt_cv_dlopen_self in
12210: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12211: *) enable_dlopen_self=unknown ;;
12212: esac
12213:
12214: case $lt_cv_dlopen_self_static in
12215: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12216: *) enable_dlopen_self_static=unknown ;;
12217: esac
12218: fi
12219:
12220:
12221:
12222:
12223:
12224:
12225:
12226:
12227:
12228:
12229:
12230:
12231:
12232:
12233:
12234:
12235:
12236: striplib=
12237: old_striplib=
12238: echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12239: echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12240: if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12241: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12242: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12243: echo "$as_me:$LINENO: result: yes" >&5
12244: echo "${ECHO_T}yes" >&6
12245: else
12246: # FIXME - insert some real tests, host_os isn't really good enough
12247: case $host_os in
12248: darwin*)
12249: if test -n "$STRIP" ; then
12250: striplib="$STRIP -x"
12251: old_striplib="$STRIP -S"
12252: echo "$as_me:$LINENO: result: yes" >&5
12253: echo "${ECHO_T}yes" >&6
12254: else
12255: echo "$as_me:$LINENO: result: no" >&5
12256: echo "${ECHO_T}no" >&6
12257: fi
12258: ;;
12259: *)
12260: echo "$as_me:$LINENO: result: no" >&5
12261: echo "${ECHO_T}no" >&6
12262: ;;
12263: esac
12264: fi
12265:
12266:
12267:
12268:
12269:
12270:
12271:
12272:
12273:
12274:
12275:
12276:
12277: # Report which library types will actually be built
12278: echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12279: echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12280: echo "$as_me:$LINENO: result: $can_build_shared" >&5
12281: echo "${ECHO_T}$can_build_shared" >&6
12282:
12283: echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12284: echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12285: test "$can_build_shared" = "no" && enable_shared=no
12286:
12287: # On AIX, shared libraries and static libraries use the same namespace, and
12288: # are all built from PIC.
12289: case $host_os in
12290: aix3*)
12291: test "$enable_shared" = yes && enable_static=no
12292: if test -n "$RANLIB"; then
12293: archive_cmds="$archive_cmds~\$RANLIB \$lib"
12294: postinstall_cmds='$RANLIB $lib'
12295: fi
12296: ;;
12297:
12298: aix[4-9]*)
12299: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12300: test "$enable_shared" = yes && enable_static=no
12301: fi
12302: ;;
12303: esac
12304: echo "$as_me:$LINENO: result: $enable_shared" >&5
12305: echo "${ECHO_T}$enable_shared" >&6
12306:
12307: echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12308: echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12309: # Make sure either enable_shared or enable_static is yes.
12310: test "$enable_shared" = yes || enable_static=yes
12311: echo "$as_me:$LINENO: result: $enable_static" >&5
12312: echo "${ECHO_T}$enable_static" >&6
12313:
12314:
12315:
12316:
12317: fi
12318: ac_ext=c
12319: ac_cpp='$CPP $CPPFLAGS'
12320: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12321: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12322: ac_compiler_gnu=$ac_cv_c_compiler_gnu
12323:
12324: CC="$lt_save_CC"
12325:
12326: if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12327: ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12328: (test "X$CXX" != "Xg++"))) ; then
12329: ac_ext=cc
12330: ac_cpp='$CXXCPP $CPPFLAGS'
12331: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12332: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12333: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12334: echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12335: echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
12336: if test -z "$CXXCPP"; then
12337: if test "${ac_cv_prog_CXXCPP+set}" = set; then
12338: echo $ECHO_N "(cached) $ECHO_C" >&6
12339: else
12340: # Double quotes because CXXCPP needs to be expanded
12341: for CXXCPP in "$CXX -E" "/lib/cpp"
12342: do
12343: ac_preproc_ok=false
12344: for ac_cxx_preproc_warn_flag in '' yes
12345: do
12346: # Use a header file that comes with gcc, so configuring glibc
12347: # with a fresh cross-compiler works.
12348: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12349: # <limits.h> exists even on freestanding compilers.
12350: # On the NeXT, cc -E runs the code through the compiler's parser,
12351: # not just through cpp. "Syntax error" is here to catch this case.
12352: cat >conftest.$ac_ext <<_ACEOF
12353: /* confdefs.h. */
12354: _ACEOF
12355: cat confdefs.h >>conftest.$ac_ext
12356: cat >>conftest.$ac_ext <<_ACEOF
12357: /* end confdefs.h. */
12358: #ifdef __STDC__
12359: # include <limits.h>
12360: #else
12361: # include <assert.h>
12362: #endif
12363: Syntax error
12364: _ACEOF
12365: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12366: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12367: ac_status=$?
12368: grep -v '^ *+' conftest.er1 >conftest.err
12369: rm -f conftest.er1
12370: cat conftest.err >&5
12371: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12372: (exit $ac_status); } >/dev/null; then
12373: if test -s conftest.err; then
12374: ac_cpp_err=$ac_cxx_preproc_warn_flag
12375: ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12376: else
12377: ac_cpp_err=
12378: fi
12379: else
12380: ac_cpp_err=yes
12381: fi
12382: if test -z "$ac_cpp_err"; then
12383: :
12384: else
12385: echo "$as_me: failed program was:" >&5
12386: sed 's/^/| /' conftest.$ac_ext >&5
12387:
12388: # Broken: fails on valid input.
12389: continue
12390: fi
12391: rm -f conftest.err conftest.$ac_ext
12392:
12393: # OK, works on sane cases. Now check whether non-existent headers
12394: # can be detected and how.
12395: cat >conftest.$ac_ext <<_ACEOF
12396: /* confdefs.h. */
12397: _ACEOF
12398: cat confdefs.h >>conftest.$ac_ext
12399: cat >>conftest.$ac_ext <<_ACEOF
12400: /* end confdefs.h. */
12401: #include <ac_nonexistent.h>
12402: _ACEOF
12403: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12404: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12405: ac_status=$?
12406: grep -v '^ *+' conftest.er1 >conftest.err
12407: rm -f conftest.er1
12408: cat conftest.err >&5
12409: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410: (exit $ac_status); } >/dev/null; then
12411: if test -s conftest.err; then
12412: ac_cpp_err=$ac_cxx_preproc_warn_flag
12413: ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12414: else
12415: ac_cpp_err=
12416: fi
12417: else
12418: ac_cpp_err=yes
12419: fi
12420: if test -z "$ac_cpp_err"; then
12421: # Broken: success on invalid input.
12422: continue
12423: else
12424: echo "$as_me: failed program was:" >&5
12425: sed 's/^/| /' conftest.$ac_ext >&5
12426:
12427: # Passes both tests.
12428: ac_preproc_ok=:
12429: break
12430: fi
12431: rm -f conftest.err conftest.$ac_ext
12432:
12433: done
12434: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12435: rm -f conftest.err conftest.$ac_ext
12436: if $ac_preproc_ok; then
12437: break
12438: fi
12439:
12440: done
12441: ac_cv_prog_CXXCPP=$CXXCPP
12442:
12443: fi
12444: CXXCPP=$ac_cv_prog_CXXCPP
12445: else
12446: ac_cv_prog_CXXCPP=$CXXCPP
12447: fi
12448: echo "$as_me:$LINENO: result: $CXXCPP" >&5
12449: echo "${ECHO_T}$CXXCPP" >&6
12450: ac_preproc_ok=false
12451: for ac_cxx_preproc_warn_flag in '' yes
12452: do
12453: # Use a header file that comes with gcc, so configuring glibc
12454: # with a fresh cross-compiler works.
12455: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12456: # <limits.h> exists even on freestanding compilers.
12457: # On the NeXT, cc -E runs the code through the compiler's parser,
12458: # not just through cpp. "Syntax error" is here to catch this case.
12459: cat >conftest.$ac_ext <<_ACEOF
12460: /* confdefs.h. */
12461: _ACEOF
12462: cat confdefs.h >>conftest.$ac_ext
12463: cat >>conftest.$ac_ext <<_ACEOF
12464: /* end confdefs.h. */
12465: #ifdef __STDC__
12466: # include <limits.h>
12467: #else
12468: # include <assert.h>
12469: #endif
12470: Syntax error
12471: _ACEOF
12472: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12473: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12474: ac_status=$?
12475: grep -v '^ *+' conftest.er1 >conftest.err
12476: rm -f conftest.er1
12477: cat conftest.err >&5
12478: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479: (exit $ac_status); } >/dev/null; then
12480: if test -s conftest.err; then
12481: ac_cpp_err=$ac_cxx_preproc_warn_flag
12482: ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12483: else
12484: ac_cpp_err=
12485: fi
12486: else
12487: ac_cpp_err=yes
12488: fi
12489: if test -z "$ac_cpp_err"; then
12490: :
12491: else
12492: echo "$as_me: failed program was:" >&5
12493: sed 's/^/| /' conftest.$ac_ext >&5
12494:
12495: # Broken: fails on valid input.
12496: continue
12497: fi
12498: rm -f conftest.err conftest.$ac_ext
12499:
12500: # OK, works on sane cases. Now check whether non-existent headers
12501: # can be detected and how.
12502: cat >conftest.$ac_ext <<_ACEOF
12503: /* confdefs.h. */
12504: _ACEOF
12505: cat confdefs.h >>conftest.$ac_ext
12506: cat >>conftest.$ac_ext <<_ACEOF
12507: /* end confdefs.h. */
12508: #include <ac_nonexistent.h>
12509: _ACEOF
12510: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12511: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12512: ac_status=$?
12513: grep -v '^ *+' conftest.er1 >conftest.err
12514: rm -f conftest.er1
12515: cat conftest.err >&5
12516: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517: (exit $ac_status); } >/dev/null; then
12518: if test -s conftest.err; then
12519: ac_cpp_err=$ac_cxx_preproc_warn_flag
12520: ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12521: else
12522: ac_cpp_err=
12523: fi
12524: else
12525: ac_cpp_err=yes
12526: fi
12527: if test -z "$ac_cpp_err"; then
12528: # Broken: success on invalid input.
12529: continue
12530: else
12531: echo "$as_me: failed program was:" >&5
12532: sed 's/^/| /' conftest.$ac_ext >&5
12533:
12534: # Passes both tests.
12535: ac_preproc_ok=:
12536: break
12537: fi
12538: rm -f conftest.err conftest.$ac_ext
12539:
12540: done
12541: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12542: rm -f conftest.err conftest.$ac_ext
12543: if $ac_preproc_ok; then
12544: :
12545: else
12546: { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12547: See \`config.log' for more details." >&5
12548: echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12549: See \`config.log' for more details." >&2;}
12550: { (exit 1); exit 1; }; }
12551: fi
12552:
12553: ac_ext=c
12554: ac_cpp='$CPP $CPPFLAGS'
12555: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12556: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12557: ac_compiler_gnu=$ac_cv_c_compiler_gnu
12558:
12559: else
12560: _lt_caught_CXX_error=yes
12561: fi
12562:
12563: ac_ext=cc
12564: ac_cpp='$CXXCPP $CPPFLAGS'
12565: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12566: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12567: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12568:
12569: archive_cmds_need_lc_CXX=no
12570: allow_undefined_flag_CXX=
12571: always_export_symbols_CXX=no
12572: archive_expsym_cmds_CXX=
12573: compiler_needs_object_CXX=no
12574: export_dynamic_flag_spec_CXX=
12575: hardcode_direct_CXX=no
12576: hardcode_direct_absolute_CXX=no
12577: hardcode_libdir_flag_spec_CXX=
12578: hardcode_libdir_separator_CXX=
12579: hardcode_minus_L_CXX=no
12580: hardcode_shlibpath_var_CXX=unsupported
12581: hardcode_automatic_CXX=no
12582: inherit_rpath_CXX=no
12583: module_cmds_CXX=
12584: module_expsym_cmds_CXX=
12585: link_all_deplibs_CXX=unknown
12586: old_archive_cmds_CXX=$old_archive_cmds
12587: reload_flag_CXX=$reload_flag
12588: reload_cmds_CXX=$reload_cmds
12589: no_undefined_flag_CXX=
12590: whole_archive_flag_spec_CXX=
12591: enable_shared_with_static_runtimes_CXX=no
12592:
12593: # Source file extension for C++ test sources.
12594: ac_ext=cpp
12595:
12596: # Object file extension for compiled C++ test sources.
12597: objext=o
12598: objext_CXX=$objext
12599:
12600: # No sense in running all these tests if we already determined that
12601: # the CXX compiler isn't working. Some variables (like enable_shared)
12602: # are currently assumed to apply to all compilers on this platform,
12603: # and will be corrupted by setting them based on a non-working compiler.
12604: if test "$_lt_caught_CXX_error" != yes; then
12605: # Code to be used in simple compile tests
12606: lt_simple_compile_test_code="int some_variable = 0;"
12607:
12608: # Code to be used in simple link tests
12609: lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12610:
12611: # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12612:
12613:
12614:
12615:
12616:
12617:
12618: # If no C compiler was specified, use CC.
12619: LTCC=${LTCC-"$CC"}
12620:
12621: # If no C compiler flags were specified, use CFLAGS.
12622: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12623:
12624: # Allow CC to be a program name with arguments.
12625: compiler=$CC
12626:
12627:
12628: # save warnings/boilerplate of simple test code
12629: ac_outfile=conftest.$ac_objext
12630: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12631: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12632: _lt_compiler_boilerplate=`cat conftest.err`
12633: $RM conftest*
12634:
12635: ac_outfile=conftest.$ac_objext
12636: echo "$lt_simple_link_test_code" >conftest.$ac_ext
12637: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12638: _lt_linker_boilerplate=`cat conftest.err`
12639: $RM -r conftest*
12640:
12641:
12642: # Allow CC to be a program name with arguments.
12643: lt_save_CC=$CC
12644: lt_save_CFLAGS=$CFLAGS
12645: lt_save_LD=$LD
12646: lt_save_GCC=$GCC
12647: GCC=$GXX
12648: lt_save_with_gnu_ld=$with_gnu_ld
12649: lt_save_path_LD=$lt_cv_path_LD
12650: if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12651: lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12652: else
12653: $as_unset lt_cv_prog_gnu_ld
12654: fi
12655: if test -n "${lt_cv_path_LDCXX+set}"; then
12656: lt_cv_path_LD=$lt_cv_path_LDCXX
12657: else
12658: $as_unset lt_cv_path_LD
12659: fi
12660: test -z "${LDCXX+set}" || LD=$LDCXX
12661: CC=${CXX-"c++"}
12662: CFLAGS=$CXXFLAGS
12663: compiler=$CC
12664: compiler_CXX=$CC
12665: for cc_temp in $compiler""; do
12666: case $cc_temp in
12667: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12668: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12669: \-*) ;;
12670: *) break;;
12671: esac
12672: done
12673: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12674:
12675:
12676: if test -n "$compiler"; then
12677: # We don't want -fno-exception when compiling C++ code, so set the
12678: # no_builtin_flag separately
12679: if test "$GXX" = yes; then
12680: lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12681: else
12682: lt_prog_compiler_no_builtin_flag_CXX=
12683: fi
12684:
12685: if test "$GXX" = yes; then
12686: # Set up default GNU C++ configuration
12687:
12688:
12689:
12690: # Check whether --with-gnu-ld or --without-gnu-ld was given.
12691: if test "${with_gnu_ld+set}" = set; then
12692: withval="$with_gnu_ld"
12693: test "$withval" = no || with_gnu_ld=yes
12694: else
12695: with_gnu_ld=no
12696: fi;
12697: ac_prog=ld
12698: if test "$GCC" = yes; then
12699: # Check if gcc -print-prog-name=ld gives a path.
12700: echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12701: echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
12702: case $host in
12703: *-*-mingw*)
12704: # gcc leaves a trailing carriage return which upsets mingw
12705: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12706: *)
12707: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12708: esac
12709: case $ac_prog in
12710: # Accept absolute paths.
12711: [\\/]* | ?:[\\/]*)
12712: re_direlt='/[^/][^/]*/\.\./'
12713: # Canonicalize the pathname of ld
12714: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12715: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12716: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12717: done
12718: test -z "$LD" && LD="$ac_prog"
12719: ;;
12720: "")
12721: # If it fails, then pretend we aren't using GCC.
12722: ac_prog=ld
12723: ;;
12724: *)
12725: # If it is relative, then search for the first ld in PATH.
12726: with_gnu_ld=unknown
12727: ;;
12728: esac
12729: elif test "$with_gnu_ld" = yes; then
12730: echo "$as_me:$LINENO: checking for GNU ld" >&5
12731: echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
12732: else
12733: echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12734: echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
12735: fi
12736: if test "${lt_cv_path_LD+set}" = set; then
12737: echo $ECHO_N "(cached) $ECHO_C" >&6
12738: else
12739: if test -z "$LD"; then
12740: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12741: for ac_dir in $PATH; do
12742: IFS="$lt_save_ifs"
12743: test -z "$ac_dir" && ac_dir=.
12744: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12745: lt_cv_path_LD="$ac_dir/$ac_prog"
12746: # Check to see if the program is GNU ld. I'd rather use --version,
12747: # but apparently some variants of GNU ld only accept -v.
12748: # Break only if it was the GNU/non-GNU ld that we prefer.
12749: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12750: *GNU* | *'with BFD'*)
12751: test "$with_gnu_ld" != no && break
12752: ;;
12753: *)
12754: test "$with_gnu_ld" != yes && break
12755: ;;
12756: esac
12757: fi
12758: done
12759: IFS="$lt_save_ifs"
12760: else
12761: lt_cv_path_LD="$LD" # Let the user override the test with a path.
12762: fi
12763: fi
12764:
12765: LD="$lt_cv_path_LD"
12766: if test -n "$LD"; then
12767: echo "$as_me:$LINENO: result: $LD" >&5
12768: echo "${ECHO_T}$LD" >&6
12769: else
12770: echo "$as_me:$LINENO: result: no" >&5
12771: echo "${ECHO_T}no" >&6
12772: fi
12773: test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12774: echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12775: { (exit 1); exit 1; }; }
12776: echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12777: echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
12778: if test "${lt_cv_prog_gnu_ld+set}" = set; then
12779: echo $ECHO_N "(cached) $ECHO_C" >&6
12780: else
12781: # I'd rather use --version here, but apparently some GNU lds only accept -v.
12782: case `$LD -v 2>&1 </dev/null` in
12783: *GNU* | *'with BFD'*)
12784: lt_cv_prog_gnu_ld=yes
12785: ;;
12786: *)
12787: lt_cv_prog_gnu_ld=no
12788: ;;
12789: esac
12790: fi
12791: echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12792: echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
12793: with_gnu_ld=$lt_cv_prog_gnu_ld
12794:
12795:
12796:
12797:
12798:
12799:
12800:
12801: # Check if GNU C++ uses GNU ld as the underlying linker, since the
12802: # archiving commands below assume that GNU ld is being used.
12803: if test "$with_gnu_ld" = yes; then
12804: archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12805: 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'
12806:
12807: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12808: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12809:
12810: # If archive_cmds runs LD, not CC, wlarc should be empty
12811: # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12812: # investigate it a little bit more. (MM)
12813: wlarc='${wl}'
12814:
12815: # ancient GNU ld didn't support --whole-archive et. al.
12816: if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12817: $GREP 'no-whole-archive' > /dev/null; then
12818: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12819: else
12820: whole_archive_flag_spec_CXX=
12821: fi
12822: else
12823: with_gnu_ld=no
12824: wlarc=
12825:
12826: # A generic and very simple default shared library creation
12827: # command for GNU C++ for the case where it uses the native
12828: # linker, instead of GNU ld. If possible, this setting should
12829: # overridden to take advantage of the native linker features on
12830: # the platform it is being used on.
12831: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12832: fi
12833:
12834: # Commands to make compiler produce verbose output that lists
12835: # what "hidden" libraries, object files and flags are used when
12836: # linking a shared library.
12837: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12838:
12839: else
12840: GXX=no
12841: with_gnu_ld=no
12842: wlarc=
12843: fi
12844:
12845: # PORTME: fill in a description of your system's C++ link characteristics
12846: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12847: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12848: ld_shlibs_CXX=yes
12849: case $host_os in
12850: aix3*)
12851: # FIXME: insert proper C++ library support
12852: ld_shlibs_CXX=no
12853: ;;
12854: aix[4-9]*)
12855: if test "$host_cpu" = ia64; then
12856: # On IA64, the linker does run time linking by default, so we don't
12857: # have to do anything special.
12858: aix_use_runtimelinking=no
12859: exp_sym_flag='-Bexport'
12860: no_entry_flag=""
12861: else
12862: aix_use_runtimelinking=no
12863:
12864: # Test if we are trying to use run time linking or normal
12865: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12866: # need to do runtime linking.
12867: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12868: for ld_flag in $LDFLAGS; do
12869: case $ld_flag in
12870: *-brtl*)
12871: aix_use_runtimelinking=yes
12872: break
12873: ;;
12874: esac
12875: done
12876: ;;
12877: esac
12878:
12879: exp_sym_flag='-bexport'
12880: no_entry_flag='-bnoentry'
12881: fi
12882:
12883: # When large executables or shared objects are built, AIX ld can
12884: # have problems creating the table of contents. If linking a library
12885: # or program results in "error TOC overflow" add -mminimal-toc to
12886: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12887: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12888:
12889: archive_cmds_CXX=''
12890: hardcode_direct_CXX=yes
12891: hardcode_direct_absolute_CXX=yes
12892: hardcode_libdir_separator_CXX=':'
12893: link_all_deplibs_CXX=yes
12894: file_list_spec_CXX='${wl}-f,'
12895:
12896: if test "$GXX" = yes; then
12897: case $host_os in aix4.[012]|aix4.[012].*)
12898: # We only want to do this on AIX 4.2 and lower, the check
12899: # below for broken collect2 doesn't work under 4.3+
12900: collect2name=`${CC} -print-prog-name=collect2`
12901: if test -f "$collect2name" &&
12902: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12903: then
12904: # We have reworked collect2
12905: :
12906: else
12907: # We have old collect2
12908: hardcode_direct_CXX=unsupported
12909: # It fails to find uninstalled libraries when the uninstalled
12910: # path is not listed in the libpath. Setting hardcode_minus_L
12911: # to unsupported forces relinking
12912: hardcode_minus_L_CXX=yes
12913: hardcode_libdir_flag_spec_CXX='-L$libdir'
12914: hardcode_libdir_separator_CXX=
12915: fi
12916: esac
12917: shared_flag='-shared'
12918: if test "$aix_use_runtimelinking" = yes; then
12919: shared_flag="$shared_flag "'${wl}-G'
12920: fi
12921: else
12922: # not using gcc
12923: if test "$host_cpu" = ia64; then
12924: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12925: # chokes on -Wl,-G. The following line is correct:
12926: shared_flag='-G'
12927: else
12928: if test "$aix_use_runtimelinking" = yes; then
12929: shared_flag='${wl}-G'
12930: else
12931: shared_flag='${wl}-bM:SRE'
12932: fi
12933: fi
12934: fi
12935:
12936: export_dynamic_flag_spec_CXX='${wl}-bexpall'
12937: # It seems that -bexpall does not export symbols beginning with
12938: # underscore (_), so it is better to generate a list of symbols to
12939: # export.
12940: always_export_symbols_CXX=yes
12941: if test "$aix_use_runtimelinking" = yes; then
12942: # Warning - without using the other runtime loading flags (-brtl),
12943: # -berok will link without error, but may produce a broken library.
12944: allow_undefined_flag_CXX='-berok'
12945: # Determine the default libpath from the value encoded in an empty
12946: # executable.
12947: if test "${lt_cv_aix_libpath+set}" = set; then
12948: aix_libpath=$lt_cv_aix_libpath
12949: else
12950: if test "${lt_cv_aix_libpath__CXX+set}" = set; then
12951: echo $ECHO_N "(cached) $ECHO_C" >&6
12952: else
12953: cat >conftest.$ac_ext <<_ACEOF
12954: /* confdefs.h. */
12955: _ACEOF
12956: cat confdefs.h >>conftest.$ac_ext
12957: cat >>conftest.$ac_ext <<_ACEOF
12958: /* end confdefs.h. */
12959:
12960: int
12961: main ()
12962: {
12963:
12964: ;
12965: return 0;
12966: }
12967: _ACEOF
12968: rm -f conftest.$ac_objext conftest$ac_exeext
12969: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12970: (eval $ac_link) 2>conftest.er1
12971: ac_status=$?
12972: grep -v '^ *+' conftest.er1 >conftest.err
12973: rm -f conftest.er1
12974: cat conftest.err >&5
12975: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976: (exit $ac_status); } &&
12977: { ac_try='test -z "$ac_cxx_werror_flag"
12978: || test ! -s conftest.err'
12979: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12980: (eval $ac_try) 2>&5
12981: ac_status=$?
12982: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983: (exit $ac_status); }; } &&
12984: { ac_try='test -s conftest$ac_exeext'
12985: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12986: (eval $ac_try) 2>&5
12987: ac_status=$?
12988: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12989: (exit $ac_status); }; }; then
12990:
12991: lt_aix_libpath_sed='
12992: /Import File Strings/,/^$/ {
12993: /^0/ {
12994: s/^0 *\([^ ]*\) *$/\1/
12995: p
12996: }
12997: }'
12998: lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12999: # Check for a 64-bit object if we didn't find anything.
13000: if test -z "$lt_cv_aix_libpath__CXX"; then
13001: lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13002: fi
13003: else
13004: echo "$as_me: failed program was:" >&5
13005: sed 's/^/| /' conftest.$ac_ext >&5
13006:
13007: fi
13008: rm -f conftest.err conftest.$ac_objext \
13009: conftest$ac_exeext conftest.$ac_ext
13010: if test -z "$lt_cv_aix_libpath__CXX"; then
13011: lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13012: fi
13013:
13014: fi
13015:
13016: aix_libpath=$lt_cv_aix_libpath__CXX
13017: fi
13018:
13019: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13020:
13021: 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"
13022: else
13023: if test "$host_cpu" = ia64; then
13024: hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13025: allow_undefined_flag_CXX="-z nodefs"
13026: 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"
13027: else
13028: # Determine the default libpath from the value encoded in an
13029: # empty executable.
13030: if test "${lt_cv_aix_libpath+set}" = set; then
13031: aix_libpath=$lt_cv_aix_libpath
13032: else
13033: if test "${lt_cv_aix_libpath__CXX+set}" = set; then
13034: echo $ECHO_N "(cached) $ECHO_C" >&6
13035: else
13036: cat >conftest.$ac_ext <<_ACEOF
13037: /* confdefs.h. */
13038: _ACEOF
13039: cat confdefs.h >>conftest.$ac_ext
13040: cat >>conftest.$ac_ext <<_ACEOF
13041: /* end confdefs.h. */
13042:
13043: int
13044: main ()
13045: {
13046:
13047: ;
13048: return 0;
13049: }
13050: _ACEOF
13051: rm -f conftest.$ac_objext conftest$ac_exeext
13052: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13053: (eval $ac_link) 2>conftest.er1
13054: ac_status=$?
13055: grep -v '^ *+' conftest.er1 >conftest.err
13056: rm -f conftest.er1
13057: cat conftest.err >&5
13058: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059: (exit $ac_status); } &&
13060: { ac_try='test -z "$ac_cxx_werror_flag"
13061: || test ! -s conftest.err'
13062: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13063: (eval $ac_try) 2>&5
13064: ac_status=$?
13065: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13066: (exit $ac_status); }; } &&
13067: { ac_try='test -s conftest$ac_exeext'
13068: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13069: (eval $ac_try) 2>&5
13070: ac_status=$?
13071: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13072: (exit $ac_status); }; }; then
13073:
13074: lt_aix_libpath_sed='
13075: /Import File Strings/,/^$/ {
13076: /^0/ {
13077: s/^0 *\([^ ]*\) *$/\1/
13078: p
13079: }
13080: }'
13081: lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13082: # Check for a 64-bit object if we didn't find anything.
13083: if test -z "$lt_cv_aix_libpath__CXX"; then
13084: lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13085: fi
13086: else
13087: echo "$as_me: failed program was:" >&5
13088: sed 's/^/| /' conftest.$ac_ext >&5
13089:
13090: fi
13091: rm -f conftest.err conftest.$ac_objext \
13092: conftest$ac_exeext conftest.$ac_ext
13093: if test -z "$lt_cv_aix_libpath__CXX"; then
13094: lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13095: fi
13096:
13097: fi
13098:
13099: aix_libpath=$lt_cv_aix_libpath__CXX
13100: fi
13101:
13102: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13103: # Warning - without using the other run time loading flags,
13104: # -berok will link without error, but may produce a broken library.
13105: no_undefined_flag_CXX=' ${wl}-bernotok'
13106: allow_undefined_flag_CXX=' ${wl}-berok'
13107: if test "$with_gnu_ld" = yes; then
13108: # We only use this code for GNU lds that support --whole-archive.
13109: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13110: else
13111: # Exported symbols can be pulled into shared objects from archives
13112: whole_archive_flag_spec_CXX='$convenience'
13113: fi
13114: archive_cmds_need_lc_CXX=yes
13115: # This is similar to how AIX traditionally builds its shared
13116: # libraries.
13117: 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'
13118: fi
13119: fi
13120: ;;
13121:
13122: beos*)
13123: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13124: allow_undefined_flag_CXX=unsupported
13125: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13126: # support --undefined. This deserves some investigation. FIXME
13127: archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13128: else
13129: ld_shlibs_CXX=no
13130: fi
13131: ;;
13132:
13133: chorus*)
13134: case $cc_basename in
13135: *)
13136: # FIXME: insert proper C++ library support
13137: ld_shlibs_CXX=no
13138: ;;
13139: esac
13140: ;;
13141:
13142: cygwin* | mingw* | pw32* | cegcc*)
13143: case $GXX,$cc_basename in
13144: ,cl* | no,cl*)
13145: # Native MSVC
13146: # hardcode_libdir_flag_spec is actually meaningless, as there is
13147: # no search path for DLLs.
13148: hardcode_libdir_flag_spec_CXX=' '
13149: allow_undefined_flag_CXX=unsupported
13150: always_export_symbols_CXX=yes
13151: file_list_spec_CXX='@'
13152: # Tell ltmain to make .lib files, not .a files.
13153: libext=lib
13154: # Tell ltmain to make .dll files, not .so files.
13155: shrext_cmds=".dll"
13156: # FIXME: Setting linknames here is a bad hack.
13157: archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13158: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13159: $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13160: else
13161: $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13162: fi~
13163: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13164: linknames='
13165: # The linker will not automatically build a static lib if we build a DLL.
13166: # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13167: enable_shared_with_static_runtimes_CXX=yes
13168: # Don't use ranlib
13169: old_postinstall_cmds_CXX='chmod 644 $oldlib'
13170: postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13171: lt_tool_outputfile="@TOOL_OUTPUT@"~
13172: case $lt_outputfile in
13173: *.exe|*.EXE) ;;
13174: *)
13175: lt_outputfile="$lt_outputfile.exe"
13176: lt_tool_outputfile="$lt_tool_outputfile.exe"
13177: ;;
13178: esac~
13179: func_to_tool_file "$lt_outputfile"~
13180: if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13181: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13182: $RM "$lt_outputfile.manifest";
13183: fi'
13184: ;;
13185: *)
13186: # g++
13187: # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13188: # as there is no search path for DLLs.
13189: hardcode_libdir_flag_spec_CXX='-L$libdir'
13190: export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13191: allow_undefined_flag_CXX=unsupported
13192: always_export_symbols_CXX=no
13193: enable_shared_with_static_runtimes_CXX=yes
13194:
13195: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13196: 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'
13197: # If the export-symbols file already is a .def file (1st line
13198: # is EXPORTS), use it as is; otherwise, prepend...
13199: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13200: cp $export_symbols $output_objdir/$soname.def;
13201: else
13202: echo EXPORTS > $output_objdir/$soname.def;
13203: cat $export_symbols >> $output_objdir/$soname.def;
13204: fi~
13205: $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'
13206: else
13207: ld_shlibs_CXX=no
13208: fi
13209: ;;
13210: esac
13211: ;;
13212: darwin* | rhapsody*)
13213:
13214:
13215: archive_cmds_need_lc_CXX=no
13216: hardcode_direct_CXX=no
13217: hardcode_automatic_CXX=yes
13218: hardcode_shlibpath_var_CXX=unsupported
13219: if test "$lt_cv_ld_force_load" = "yes"; then
13220: 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\"`'
13221:
13222: else
13223: whole_archive_flag_spec_CXX=''
13224: fi
13225: link_all_deplibs_CXX=yes
13226: allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13227: case $cc_basename in
13228: ifort*) _lt_dar_can_shared=yes ;;
13229: *) _lt_dar_can_shared=$GCC ;;
13230: esac
13231: if test "$_lt_dar_can_shared" = "yes"; then
13232: output_verbose_link_cmd=func_echo_all
13233: 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}"
13234: module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13235: 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}"
13236: 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}"
13237: if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13238: 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}"
13239: 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}"
13240: fi
13241:
13242: else
13243: ld_shlibs_CXX=no
13244: fi
13245:
13246: ;;
13247:
13248: dgux*)
13249: case $cc_basename in
13250: ec++*)
13251: # FIXME: insert proper C++ library support
13252: ld_shlibs_CXX=no
13253: ;;
13254: ghcx*)
13255: # Green Hills C++ Compiler
13256: # FIXME: insert proper C++ library support
13257: ld_shlibs_CXX=no
13258: ;;
13259: *)
13260: # FIXME: insert proper C++ library support
13261: ld_shlibs_CXX=no
13262: ;;
13263: esac
13264: ;;
13265:
13266: freebsd2.*)
13267: # C++ shared libraries reported to be fairly broken before
13268: # switch to ELF
13269: ld_shlibs_CXX=no
13270: ;;
13271:
13272: freebsd-elf*)
13273: archive_cmds_need_lc_CXX=no
13274: ;;
13275:
13276: freebsd* | dragonfly*)
13277: # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13278: # conventions
13279: ld_shlibs_CXX=yes
13280: ;;
13281:
13282: gnu*)
13283: ;;
13284:
13285: haiku*)
13286: archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13287: link_all_deplibs_CXX=yes
13288: ;;
13289:
13290: hpux9*)
13291: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13292: hardcode_libdir_separator_CXX=:
13293: export_dynamic_flag_spec_CXX='${wl}-E'
13294: hardcode_direct_CXX=yes
13295: hardcode_minus_L_CXX=yes # Not in the search PATH,
13296: # but as the default
13297: # location of the library.
13298:
13299: case $cc_basename in
13300: CC*)
13301: # FIXME: insert proper C++ library support
13302: ld_shlibs_CXX=no
13303: ;;
13304: aCC*)
13305: 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'
13306: # Commands to make compiler produce verbose output that lists
13307: # what "hidden" libraries, object files and flags are used when
13308: # linking a shared library.
13309: #
13310: # There doesn't appear to be a way to prevent this compiler from
13311: # explicitly linking system object files so we need to strip them
13312: # from the output so that they don't get included in the library
13313: # dependencies.
13314: 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"'
13315: ;;
13316: *)
13317: if test "$GXX" = yes; then
13318: 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'
13319: else
13320: # FIXME: insert proper C++ library support
13321: ld_shlibs_CXX=no
13322: fi
13323: ;;
13324: esac
13325: ;;
13326:
13327: hpux10*|hpux11*)
13328: if test $with_gnu_ld = no; then
13329: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13330: hardcode_libdir_separator_CXX=:
13331:
13332: case $host_cpu in
13333: hppa*64*|ia64*)
13334: ;;
13335: *)
13336: export_dynamic_flag_spec_CXX='${wl}-E'
13337: ;;
13338: esac
13339: fi
13340: case $host_cpu in
13341: hppa*64*|ia64*)
13342: hardcode_direct_CXX=no
13343: hardcode_shlibpath_var_CXX=no
13344: ;;
13345: *)
13346: hardcode_direct_CXX=yes
13347: hardcode_direct_absolute_CXX=yes
13348: hardcode_minus_L_CXX=yes # Not in the search PATH,
13349: # but as the default
13350: # location of the library.
13351: ;;
13352: esac
13353:
13354: case $cc_basename in
13355: CC*)
13356: # FIXME: insert proper C++ library support
13357: ld_shlibs_CXX=no
13358: ;;
13359: aCC*)
13360: case $host_cpu in
13361: hppa*64*)
13362: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13363: ;;
13364: ia64*)
13365: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13366: ;;
13367: *)
13368: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13369: ;;
13370: esac
13371: # Commands to make compiler produce verbose output that lists
13372: # what "hidden" libraries, object files and flags are used when
13373: # linking a shared library.
13374: #
13375: # There doesn't appear to be a way to prevent this compiler from
13376: # explicitly linking system object files so we need to strip them
13377: # from the output so that they don't get included in the library
13378: # dependencies.
13379: 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"'
13380: ;;
13381: *)
13382: if test "$GXX" = yes; then
13383: if test $with_gnu_ld = no; then
13384: case $host_cpu in
13385: hppa*64*)
13386: archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13387: ;;
13388: ia64*)
13389: archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13390: ;;
13391: *)
13392: 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'
13393: ;;
13394: esac
13395: fi
13396: else
13397: # FIXME: insert proper C++ library support
13398: ld_shlibs_CXX=no
13399: fi
13400: ;;
13401: esac
13402: ;;
13403:
13404: interix[3-9]*)
13405: hardcode_direct_CXX=no
13406: hardcode_shlibpath_var_CXX=no
13407: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13408: export_dynamic_flag_spec_CXX='${wl}-E'
13409: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13410: # Instead, shared libraries are loaded at an image base (0x10000000 by
13411: # default) and relocated if they conflict, which is a slow very memory
13412: # consuming and fragmenting process. To avoid this, we pick a random,
13413: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13414: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13415: 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'
13416: 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'
13417: ;;
13418: irix5* | irix6*)
13419: case $cc_basename in
13420: CC*)
13421: # SGI C++
13422: 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'
13423:
13424: # Archives containing C++ object files must be created using
13425: # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13426: # necessary to make sure instantiated templates are included
13427: # in the archive.
13428: old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13429: ;;
13430: *)
13431: if test "$GXX" = yes; then
13432: if test "$with_gnu_ld" = no; then
13433: 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'
13434: else
13435: 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'
13436: fi
13437: fi
13438: link_all_deplibs_CXX=yes
13439: ;;
13440: esac
13441: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13442: hardcode_libdir_separator_CXX=:
13443: inherit_rpath_CXX=yes
13444: ;;
13445:
13446: linux* | k*bsd*-gnu | kopensolaris*-gnu)
13447: case $cc_basename in
13448: KCC*)
13449: # Kuck and Associates, Inc. (KAI) C++ Compiler
13450:
13451: # KCC will only create a shared library if the output file
13452: # ends with ".so" (or ".sl" for HP-UX), so rename the library
13453: # to its proper name (with version) after linking.
13454: 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'
13455: 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'
13456: # Commands to make compiler produce verbose output that lists
13457: # what "hidden" libraries, object files and flags are used when
13458: # linking a shared library.
13459: #
13460: # There doesn't appear to be a way to prevent this compiler from
13461: # explicitly linking system object files so we need to strip them
13462: # from the output so that they don't get included in the library
13463: # dependencies.
13464: 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"'
13465:
13466: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13467: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13468:
13469: # Archives containing C++ object files must be created using
13470: # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13471: old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13472: ;;
13473: icpc* | ecpc* )
13474: # Intel C++
13475: with_gnu_ld=yes
13476: # version 8.0 and above of icpc choke on multiply defined symbols
13477: # if we add $predep_objects and $postdep_objects, however 7.1 and
13478: # earlier do not add the objects themselves.
13479: case `$CC -V 2>&1` in
13480: *"Version 7."*)
13481: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13482: 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'
13483: ;;
13484: *) # Version 8.0 or newer
13485: tmp_idyn=
13486: case $host_cpu in
13487: ia64*) tmp_idyn=' -i_dynamic';;
13488: esac
13489: archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13490: 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'
13491: ;;
13492: esac
13493: archive_cmds_need_lc_CXX=no
13494: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13495: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13496: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13497: ;;
13498: pgCC* | pgcpp*)
13499: # Portland Group C++ compiler
13500: case `$CC -V` in
13501: *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13502: prelink_cmds_CXX='tpldir=Template.dir~
13503: rm -rf $tpldir~
13504: $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13505: compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13506: old_archive_cmds_CXX='tpldir=Template.dir~
13507: rm -rf $tpldir~
13508: $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13509: $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13510: $RANLIB $oldlib'
13511: archive_cmds_CXX='tpldir=Template.dir~
13512: rm -rf $tpldir~
13513: $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13514: $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13515: archive_expsym_cmds_CXX='tpldir=Template.dir~
13516: rm -rf $tpldir~
13517: $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13518: $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'
13519: ;;
13520: *) # Version 6 and above use weak symbols
13521: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13522: 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'
13523: ;;
13524: esac
13525:
13526: hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13527: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13528: 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'
13529: ;;
13530: cxx*)
13531: # Compaq C++
13532: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13533: 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'
13534:
13535: runpath_var=LD_RUN_PATH
13536: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13537: hardcode_libdir_separator_CXX=:
13538:
13539: # Commands to make compiler produce verbose output that lists
13540: # what "hidden" libraries, object files and flags are used when
13541: # linking a shared library.
13542: #
13543: # There doesn't appear to be a way to prevent this compiler from
13544: # explicitly linking system object files so we need to strip them
13545: # from the output so that they don't get included in the library
13546: # dependencies.
13547: 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'
13548: ;;
13549: xl* | mpixl* | bgxl*)
13550: # IBM XL 8.0 on PPC, with GNU ld
13551: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13552: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13553: archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13554: if test "x$supports_anon_versioning" = xyes; then
13555: archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13556: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13557: echo "local: *; };" >> $output_objdir/$libname.ver~
13558: $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13559: fi
13560: ;;
13561: *)
13562: case `$CC -V 2>&1 | sed 5q` in
13563: *Sun\ C*)
13564: # Sun C++ 5.9
13565: no_undefined_flag_CXX=' -zdefs'
13566: archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13567: 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'
13568: hardcode_libdir_flag_spec_CXX='-R$libdir'
13569: 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'
13570: compiler_needs_object_CXX=yes
13571:
13572: # Not sure whether something based on
13573: # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13574: # would be better.
13575: output_verbose_link_cmd='func_echo_all'
13576:
13577: # Archives containing C++ object files must be created using
13578: # "CC -xar", where "CC" is the Sun C++ compiler. This is
13579: # necessary to make sure instantiated templates are included
13580: # in the archive.
13581: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13582: ;;
13583: esac
13584: ;;
13585: esac
13586: ;;
13587:
13588: lynxos*)
13589: # FIXME: insert proper C++ library support
13590: ld_shlibs_CXX=no
13591: ;;
13592:
13593: m88k*)
13594: # FIXME: insert proper C++ library support
13595: ld_shlibs_CXX=no
13596: ;;
13597:
13598: mvs*)
13599: case $cc_basename in
13600: cxx*)
13601: # FIXME: insert proper C++ library support
13602: ld_shlibs_CXX=no
13603: ;;
13604: *)
13605: # FIXME: insert proper C++ library support
13606: ld_shlibs_CXX=no
13607: ;;
13608: esac
13609: ;;
13610:
13611: netbsd*)
13612: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13613: archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13614: wlarc=
13615: hardcode_libdir_flag_spec_CXX='-R$libdir'
13616: hardcode_direct_CXX=yes
13617: hardcode_shlibpath_var_CXX=no
13618: fi
13619: # Workaround some broken pre-1.5 toolchains
13620: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13621: ;;
13622:
13623: *nto* | *qnx*)
13624: ld_shlibs_CXX=yes
13625: ;;
13626:
13627: openbsd2*)
13628: # C++ shared libraries are fairly broken
13629: ld_shlibs_CXX=no
13630: ;;
13631:
13632: openbsd*)
13633: if test -f /usr/libexec/ld.so; then
13634: hardcode_direct_CXX=yes
13635: hardcode_shlibpath_var_CXX=no
13636: hardcode_direct_absolute_CXX=yes
13637: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13638: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13639: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13640: archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13641: export_dynamic_flag_spec_CXX='${wl}-E'
13642: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13643: fi
13644: output_verbose_link_cmd=func_echo_all
13645: else
13646: ld_shlibs_CXX=no
13647: fi
13648: ;;
13649:
13650: osf3* | osf4* | osf5*)
13651: case $cc_basename in
13652: KCC*)
13653: # Kuck and Associates, Inc. (KAI) C++ Compiler
13654:
13655: # KCC will only create a shared library if the output file
13656: # ends with ".so" (or ".sl" for HP-UX), so rename the library
13657: # to its proper name (with version) after linking.
13658: 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'
13659:
13660: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13661: hardcode_libdir_separator_CXX=:
13662:
13663: # Archives containing C++ object files must be created using
13664: # the KAI C++ compiler.
13665: case $host in
13666: osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13667: *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13668: esac
13669: ;;
13670: RCC*)
13671: # Rational C++ 2.4.1
13672: # FIXME: insert proper C++ library support
13673: ld_shlibs_CXX=no
13674: ;;
13675: cxx*)
13676: case $host in
13677: osf3*)
13678: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13679: 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'
13680: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13681: ;;
13682: *)
13683: allow_undefined_flag_CXX=' -expect_unresolved \*'
13684: 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'
13685: archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13686: echo "-hidden">> $lib.exp~
13687: $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~
13688: $RM $lib.exp'
13689: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13690: ;;
13691: esac
13692:
13693: hardcode_libdir_separator_CXX=:
13694:
13695: # Commands to make compiler produce verbose output that lists
13696: # what "hidden" libraries, object files and flags are used when
13697: # linking a shared library.
13698: #
13699: # There doesn't appear to be a way to prevent this compiler from
13700: # explicitly linking system object files so we need to strip them
13701: # from the output so that they don't get included in the library
13702: # dependencies.
13703: 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"'
13704: ;;
13705: *)
13706: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13707: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13708: case $host in
13709: osf3*)
13710: 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'
13711: ;;
13712: *)
13713: 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'
13714: ;;
13715: esac
13716:
13717: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13718: hardcode_libdir_separator_CXX=:
13719:
13720: # Commands to make compiler produce verbose output that lists
13721: # what "hidden" libraries, object files and flags are used when
13722: # linking a shared library.
13723: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13724:
13725: else
13726: # FIXME: insert proper C++ library support
13727: ld_shlibs_CXX=no
13728: fi
13729: ;;
13730: esac
13731: ;;
13732:
13733: psos*)
13734: # FIXME: insert proper C++ library support
13735: ld_shlibs_CXX=no
13736: ;;
13737:
13738: sunos4*)
13739: case $cc_basename in
13740: CC*)
13741: # Sun C++ 4.x
13742: # FIXME: insert proper C++ library support
13743: ld_shlibs_CXX=no
13744: ;;
13745: lcc*)
13746: # Lucid
13747: # FIXME: insert proper C++ library support
13748: ld_shlibs_CXX=no
13749: ;;
13750: *)
13751: # FIXME: insert proper C++ library support
13752: ld_shlibs_CXX=no
13753: ;;
13754: esac
13755: ;;
13756:
13757: solaris*)
13758: case $cc_basename in
13759: CC* | sunCC*)
13760: # Sun C++ 4.2, 5.x and Centerline C++
13761: archive_cmds_need_lc_CXX=yes
13762: no_undefined_flag_CXX=' -zdefs'
13763: archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13764: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13765: $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'
13766:
13767: hardcode_libdir_flag_spec_CXX='-R$libdir'
13768: hardcode_shlibpath_var_CXX=no
13769: case $host_os in
13770: solaris2.[0-5] | solaris2.[0-5].*) ;;
13771: *)
13772: # The compiler driver will combine and reorder linker options,
13773: # but understands `-z linker_flag'.
13774: # Supported since Solaris 2.6 (maybe 2.5.1?)
13775: whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13776: ;;
13777: esac
13778: link_all_deplibs_CXX=yes
13779:
13780: output_verbose_link_cmd='func_echo_all'
13781:
13782: # Archives containing C++ object files must be created using
13783: # "CC -xar", where "CC" is the Sun C++ compiler. This is
13784: # necessary to make sure instantiated templates are included
13785: # in the archive.
13786: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13787: ;;
13788: gcx*)
13789: # Green Hills C++ Compiler
13790: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13791:
13792: # The C++ compiler must be used to create the archive.
13793: old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13794: ;;
13795: *)
13796: # GNU C++ compiler with Solaris linker
13797: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13798: no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13799: if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13800: archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13801: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13802: $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13803:
13804: # Commands to make compiler produce verbose output that lists
13805: # what "hidden" libraries, object files and flags are used when
13806: # linking a shared library.
13807: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13808: else
13809: # g++ 2.7 appears to require `-G' NOT `-shared' on this
13810: # platform.
13811: archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13812: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13813: $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13814:
13815: # Commands to make compiler produce verbose output that lists
13816: # what "hidden" libraries, object files and flags are used when
13817: # linking a shared library.
13818: output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13819: fi
13820:
13821: hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13822: case $host_os in
13823: solaris2.[0-5] | solaris2.[0-5].*) ;;
13824: *)
13825: whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13826: ;;
13827: esac
13828: fi
13829: ;;
13830: esac
13831: ;;
13832:
13833: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13834: no_undefined_flag_CXX='${wl}-z,text'
13835: archive_cmds_need_lc_CXX=no
13836: hardcode_shlibpath_var_CXX=no
13837: runpath_var='LD_RUN_PATH'
13838:
13839: case $cc_basename in
13840: CC*)
13841: archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13842: archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13843: ;;
13844: *)
13845: archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13846: archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13847: ;;
13848: esac
13849: ;;
13850:
13851: sysv5* | sco3.2v5* | sco5v6*)
13852: # Note: We can NOT use -z defs as we might desire, because we do not
13853: # link with -lc, and that would cause any symbols used from libc to
13854: # always be unresolved, which means just about no library would
13855: # ever link correctly. If we're not using GNU ld we use -z text
13856: # though, which does catch some bad symbols but isn't as heavy-handed
13857: # as -z defs.
13858: no_undefined_flag_CXX='${wl}-z,text'
13859: allow_undefined_flag_CXX='${wl}-z,nodefs'
13860: archive_cmds_need_lc_CXX=no
13861: hardcode_shlibpath_var_CXX=no
13862: hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13863: hardcode_libdir_separator_CXX=':'
13864: link_all_deplibs_CXX=yes
13865: export_dynamic_flag_spec_CXX='${wl}-Bexport'
13866: runpath_var='LD_RUN_PATH'
13867:
13868: case $cc_basename in
13869: CC*)
13870: archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13871: archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13872: old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13873: '"$old_archive_cmds_CXX"
13874: reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13875: '"$reload_cmds_CXX"
13876: ;;
13877: *)
13878: archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13879: archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13880: ;;
13881: esac
13882: ;;
13883:
13884: tandem*)
13885: case $cc_basename in
13886: NCC*)
13887: # NonStop-UX NCC 3.20
13888: # FIXME: insert proper C++ library support
13889: ld_shlibs_CXX=no
13890: ;;
13891: *)
13892: # FIXME: insert proper C++ library support
13893: ld_shlibs_CXX=no
13894: ;;
13895: esac
13896: ;;
13897:
13898: vxworks*)
13899: # FIXME: insert proper C++ library support
13900: ld_shlibs_CXX=no
13901: ;;
13902:
13903: *)
13904: # FIXME: insert proper C++ library support
13905: ld_shlibs_CXX=no
13906: ;;
13907: esac
13908:
13909: echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13910: echo "${ECHO_T}$ld_shlibs_CXX" >&6
13911: test "$ld_shlibs_CXX" = no && can_build_shared=no
13912:
13913: GCC_CXX="$GXX"
13914: LD_CXX="$LD"
13915:
13916: ## CAVEAT EMPTOR:
13917: ## There is no encapsulation within the following macros, do not change
13918: ## the running order or otherwise move them around unless you know exactly
13919: ## what you are doing...
13920: # Dependencies to place before and after the object being linked:
13921: predep_objects_CXX=
13922: postdep_objects_CXX=
13923: predeps_CXX=
13924: postdeps_CXX=
13925: compiler_lib_search_path_CXX=
13926:
13927: cat > conftest.$ac_ext <<_LT_EOF
13928: class Foo
13929: {
13930: public:
13931: Foo (void) { a = 0; }
13932: private:
13933: int a;
13934: };
13935: _LT_EOF
13936:
13937:
13938: _lt_libdeps_save_CFLAGS=$CFLAGS
13939: case "$CC $CFLAGS " in #(
13940: *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13941: *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13942: *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13943: esac
13944:
13945: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13946: (eval $ac_compile) 2>&5
13947: ac_status=$?
13948: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13949: (exit $ac_status); }; then
13950: # Parse the compiler output and extract the necessary
13951: # objects, libraries and library flags.
13952:
13953: # Sentinel used to keep track of whether or not we are before
13954: # the conftest object file.
13955: pre_test_object_deps_done=no
13956:
13957: for p in `eval "$output_verbose_link_cmd"`; do
13958: case ${prev}${p} in
13959:
13960: -L* | -R* | -l*)
13961: # Some compilers place space between "-{L,R}" and the path.
13962: # Remove the space.
13963: if test $p = "-L" ||
13964: test $p = "-R"; then
13965: prev=$p
13966: continue
13967: fi
13968:
13969: # Expand the sysroot to ease extracting the directories later.
13970: if test -z "$prev"; then
13971: case $p in
13972: -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13973: -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13974: -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13975: esac
13976: fi
13977: case $p in
13978: =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13979: esac
13980: if test "$pre_test_object_deps_done" = no; then
13981: case ${prev} in
13982: -L | -R)
13983: # Internal compiler library paths should come after those
13984: # provided the user. The postdeps already come after the
13985: # user supplied libs so there is no need to process them.
13986: if test -z "$compiler_lib_search_path_CXX"; then
13987: compiler_lib_search_path_CXX="${prev}${p}"
13988: else
13989: compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13990: fi
13991: ;;
13992: # The "-l" case would never come before the object being
13993: # linked, so don't bother handling this case.
13994: esac
13995: else
13996: if test -z "$postdeps_CXX"; then
13997: postdeps_CXX="${prev}${p}"
13998: else
13999: postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14000: fi
14001: fi
14002: prev=
14003: ;;
14004:
14005: *.lto.$objext) ;; # Ignore GCC LTO objects
14006: *.$objext)
14007: # This assumes that the test object file only shows up
14008: # once in the compiler output.
14009: if test "$p" = "conftest.$objext"; then
14010: pre_test_object_deps_done=yes
14011: continue
14012: fi
14013:
14014: if test "$pre_test_object_deps_done" = no; then
14015: if test -z "$predep_objects_CXX"; then
14016: predep_objects_CXX="$p"
14017: else
14018: predep_objects_CXX="$predep_objects_CXX $p"
14019: fi
14020: else
14021: if test -z "$postdep_objects_CXX"; then
14022: postdep_objects_CXX="$p"
14023: else
14024: postdep_objects_CXX="$postdep_objects_CXX $p"
14025: fi
14026: fi
14027: ;;
14028:
14029: *) ;; # Ignore the rest.
14030:
14031: esac
14032: done
14033:
14034: # Clean up.
14035: rm -f a.out a.exe
14036: else
14037: echo "libtool.m4: error: problem compiling CXX test program"
14038: fi
14039:
14040: $RM -f confest.$objext
14041: CFLAGS=$_lt_libdeps_save_CFLAGS
14042:
14043: # PORTME: override above test on systems where it is broken
14044: case $host_os in
14045: interix[3-9]*)
14046: # Interix 3.5 installs completely hosed .la files for C++, so rather than
14047: # hack all around it, let's just trust "g++" to DTRT.
14048: predep_objects_CXX=
14049: postdep_objects_CXX=
14050: postdeps_CXX=
14051: ;;
14052:
14053: linux*)
14054: case `$CC -V 2>&1 | sed 5q` in
14055: *Sun\ C*)
14056: # Sun C++ 5.9
14057:
14058: # The more standards-conforming stlport4 library is
14059: # incompatible with the Cstd library. Avoid specifying
14060: # it if it's in CXXFLAGS. Ignore libCrun as
14061: # -library=stlport4 depends on it.
14062: case " $CXX $CXXFLAGS " in
14063: *" -library=stlport4 "*)
14064: solaris_use_stlport4=yes
14065: ;;
14066: esac
14067:
14068: if test "$solaris_use_stlport4" != yes; then
14069: postdeps_CXX='-library=Cstd -library=Crun'
14070: fi
14071: ;;
14072: esac
14073: ;;
14074:
14075: solaris*)
14076: case $cc_basename in
14077: CC* | sunCC*)
14078: # The more standards-conforming stlport4 library is
14079: # incompatible with the Cstd library. Avoid specifying
14080: # it if it's in CXXFLAGS. Ignore libCrun as
14081: # -library=stlport4 depends on it.
14082: case " $CXX $CXXFLAGS " in
14083: *" -library=stlport4 "*)
14084: solaris_use_stlport4=yes
14085: ;;
14086: esac
14087:
14088: # Adding this requires a known-good setup of shared libraries for
14089: # Sun compiler versions before 5.6, else PIC objects from an old
14090: # archive will be linked into the output, leading to subtle bugs.
14091: if test "$solaris_use_stlport4" != yes; then
14092: postdeps_CXX='-library=Cstd -library=Crun'
14093: fi
14094: ;;
14095: esac
14096: ;;
14097: esac
14098:
14099:
14100: case " $postdeps_CXX " in
14101: *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14102: esac
14103: compiler_lib_search_dirs_CXX=
14104: if test -n "${compiler_lib_search_path_CXX}"; then
14105: compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14106: fi
14107:
14108:
14109:
14110:
14111:
14112:
14113:
14114:
14115:
14116:
14117:
14118:
14119:
14120:
14121:
14122:
14123:
14124:
14125:
14126:
14127:
14128:
14129:
14130:
14131:
14132:
14133:
14134:
14135:
14136:
14137:
14138: lt_prog_compiler_wl_CXX=
14139: lt_prog_compiler_pic_CXX=
14140: lt_prog_compiler_static_CXX=
14141:
14142:
14143: # C++ specific cases for pic, static, wl, etc.
14144: if test "$GXX" = yes; then
14145: lt_prog_compiler_wl_CXX='-Wl,'
14146: lt_prog_compiler_static_CXX='-static'
14147:
14148: case $host_os in
14149: aix*)
14150: # All AIX code is PIC.
14151: if test "$host_cpu" = ia64; then
14152: # AIX 5 now supports IA64 processor
14153: lt_prog_compiler_static_CXX='-Bstatic'
14154: fi
14155: ;;
14156:
14157: amigaos*)
14158: case $host_cpu in
14159: powerpc)
14160: # see comment about AmigaOS4 .so support
14161: lt_prog_compiler_pic_CXX='-fPIC'
14162: ;;
14163: m68k)
14164: # FIXME: we need at least 68020 code to build shared libraries, but
14165: # adding the `-m68020' flag to GCC prevents building anything better,
14166: # like `-m68040'.
14167: lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14168: ;;
14169: esac
14170: ;;
14171:
14172: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14173: # PIC is the default for these OSes.
14174: ;;
14175: mingw* | cygwin* | os2* | pw32* | cegcc*)
14176: # This hack is so that the source file can tell whether it is being
14177: # built for inclusion in a dll (and should export symbols for example).
14178: # Although the cygwin gcc ignores -fPIC, still need this for old-style
14179: # (--disable-auto-import) libraries
14180: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14181: ;;
14182: darwin* | rhapsody*)
14183: # PIC is the default on this platform
14184: # Common symbols not allowed in MH_DYLIB files
14185: lt_prog_compiler_pic_CXX='-fno-common'
14186: ;;
14187: *djgpp*)
14188: # DJGPP does not support shared libraries at all
14189: lt_prog_compiler_pic_CXX=
14190: ;;
14191: haiku*)
14192: # PIC is the default for Haiku.
14193: # The "-static" flag exists, but is broken.
14194: lt_prog_compiler_static_CXX=
14195: ;;
14196: interix[3-9]*)
14197: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14198: # Instead, we relocate shared libraries at runtime.
14199: ;;
14200: sysv4*MP*)
14201: if test -d /usr/nec; then
14202: lt_prog_compiler_pic_CXX=-Kconform_pic
14203: fi
14204: ;;
14205: hpux*)
14206: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14207: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14208: # sets the default TLS model and affects inlining.
14209: case $host_cpu in
14210: hppa*64*)
14211: ;;
14212: *)
14213: lt_prog_compiler_pic_CXX='-fPIC'
14214: ;;
14215: esac
14216: ;;
14217: *qnx* | *nto*)
14218: # QNX uses GNU C++, but need to define -shared option too, otherwise
14219: # it will coredump.
14220: lt_prog_compiler_pic_CXX='-fPIC -shared'
14221: ;;
14222: *)
14223: lt_prog_compiler_pic_CXX='-fPIC'
14224: ;;
14225: esac
14226: else
14227: case $host_os in
14228: aix[4-9]*)
14229: # All AIX code is PIC.
14230: if test "$host_cpu" = ia64; then
14231: # AIX 5 now supports IA64 processor
14232: lt_prog_compiler_static_CXX='-Bstatic'
14233: else
14234: lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14235: fi
14236: ;;
14237: chorus*)
14238: case $cc_basename in
14239: cxch68*)
14240: # Green Hills C++ Compiler
14241: # _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"
14242: ;;
14243: esac
14244: ;;
14245: mingw* | cygwin* | os2* | pw32* | cegcc*)
14246: # This hack is so that the source file can tell whether it is being
14247: # built for inclusion in a dll (and should export symbols for example).
14248: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14249: ;;
14250: dgux*)
14251: case $cc_basename in
14252: ec++*)
14253: lt_prog_compiler_pic_CXX='-KPIC'
14254: ;;
14255: ghcx*)
14256: # Green Hills C++ Compiler
14257: lt_prog_compiler_pic_CXX='-pic'
14258: ;;
14259: *)
14260: ;;
14261: esac
14262: ;;
14263: freebsd* | dragonfly*)
14264: # FreeBSD uses GNU C++
14265: ;;
14266: hpux9* | hpux10* | hpux11*)
14267: case $cc_basename in
14268: CC*)
14269: lt_prog_compiler_wl_CXX='-Wl,'
14270: lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14271: if test "$host_cpu" != ia64; then
14272: lt_prog_compiler_pic_CXX='+Z'
14273: fi
14274: ;;
14275: aCC*)
14276: lt_prog_compiler_wl_CXX='-Wl,'
14277: lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14278: case $host_cpu in
14279: hppa*64*|ia64*)
14280: # +Z the default
14281: ;;
14282: *)
14283: lt_prog_compiler_pic_CXX='+Z'
14284: ;;
14285: esac
14286: ;;
14287: *)
14288: ;;
14289: esac
14290: ;;
14291: interix*)
14292: # This is c89, which is MS Visual C++ (no shared libs)
14293: # Anyone wants to do a port?
14294: ;;
14295: irix5* | irix6* | nonstopux*)
14296: case $cc_basename in
14297: CC*)
14298: lt_prog_compiler_wl_CXX='-Wl,'
14299: lt_prog_compiler_static_CXX='-non_shared'
14300: # CC pic flag -KPIC is the default.
14301: ;;
14302: *)
14303: ;;
14304: esac
14305: ;;
14306: linux* | k*bsd*-gnu | kopensolaris*-gnu)
14307: case $cc_basename in
14308: KCC*)
14309: # KAI C++ Compiler
14310: lt_prog_compiler_wl_CXX='--backend -Wl,'
14311: lt_prog_compiler_pic_CXX='-fPIC'
14312: ;;
14313: ecpc* )
14314: # old Intel C++ for x86_64 which still supported -KPIC.
14315: lt_prog_compiler_wl_CXX='-Wl,'
14316: lt_prog_compiler_pic_CXX='-KPIC'
14317: lt_prog_compiler_static_CXX='-static'
14318: ;;
14319: icpc* )
14320: # Intel C++, used to be incompatible with GCC.
14321: # ICC 10 doesn't accept -KPIC any more.
14322: lt_prog_compiler_wl_CXX='-Wl,'
14323: lt_prog_compiler_pic_CXX='-fPIC'
14324: lt_prog_compiler_static_CXX='-static'
14325: ;;
14326: pgCC* | pgcpp*)
14327: # Portland Group C++ compiler
14328: lt_prog_compiler_wl_CXX='-Wl,'
14329: lt_prog_compiler_pic_CXX='-fpic'
14330: lt_prog_compiler_static_CXX='-Bstatic'
14331: ;;
14332: cxx*)
14333: # Compaq C++
14334: # Make sure the PIC flag is empty. It appears that all Alpha
14335: # Linux and Compaq Tru64 Unix objects are PIC.
14336: lt_prog_compiler_pic_CXX=
14337: lt_prog_compiler_static_CXX='-non_shared'
14338: ;;
14339: xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14340: # IBM XL 8.0, 9.0 on PPC and BlueGene
14341: lt_prog_compiler_wl_CXX='-Wl,'
14342: lt_prog_compiler_pic_CXX='-qpic'
14343: lt_prog_compiler_static_CXX='-qstaticlink'
14344: ;;
14345: *)
14346: case `$CC -V 2>&1 | sed 5q` in
14347: *Sun\ C*)
14348: # Sun C++ 5.9
14349: lt_prog_compiler_pic_CXX='-KPIC'
14350: lt_prog_compiler_static_CXX='-Bstatic'
14351: lt_prog_compiler_wl_CXX='-Qoption ld '
14352: ;;
14353: esac
14354: ;;
14355: esac
14356: ;;
14357: lynxos*)
14358: ;;
14359: m88k*)
14360: ;;
14361: mvs*)
14362: case $cc_basename in
14363: cxx*)
14364: lt_prog_compiler_pic_CXX='-W c,exportall'
14365: ;;
14366: *)
14367: ;;
14368: esac
14369: ;;
14370: netbsd*)
14371: ;;
14372: *qnx* | *nto*)
14373: # QNX uses GNU C++, but need to define -shared option too, otherwise
14374: # it will coredump.
14375: lt_prog_compiler_pic_CXX='-fPIC -shared'
14376: ;;
14377: osf3* | osf4* | osf5*)
14378: case $cc_basename in
14379: KCC*)
14380: lt_prog_compiler_wl_CXX='--backend -Wl,'
14381: ;;
14382: RCC*)
14383: # Rational C++ 2.4.1
14384: lt_prog_compiler_pic_CXX='-pic'
14385: ;;
14386: cxx*)
14387: # Digital/Compaq C++
14388: lt_prog_compiler_wl_CXX='-Wl,'
14389: # Make sure the PIC flag is empty. It appears that all Alpha
14390: # Linux and Compaq Tru64 Unix objects are PIC.
14391: lt_prog_compiler_pic_CXX=
14392: lt_prog_compiler_static_CXX='-non_shared'
14393: ;;
14394: *)
14395: ;;
14396: esac
14397: ;;
14398: psos*)
14399: ;;
14400: solaris*)
14401: case $cc_basename in
14402: CC* | sunCC*)
14403: # Sun C++ 4.2, 5.x and Centerline C++
14404: lt_prog_compiler_pic_CXX='-KPIC'
14405: lt_prog_compiler_static_CXX='-Bstatic'
14406: lt_prog_compiler_wl_CXX='-Qoption ld '
14407: ;;
14408: gcx*)
14409: # Green Hills C++ Compiler
14410: lt_prog_compiler_pic_CXX='-PIC'
14411: ;;
14412: *)
14413: ;;
14414: esac
14415: ;;
14416: sunos4*)
14417: case $cc_basename in
14418: CC*)
14419: # Sun C++ 4.x
14420: lt_prog_compiler_pic_CXX='-pic'
14421: lt_prog_compiler_static_CXX='-Bstatic'
14422: ;;
14423: lcc*)
14424: # Lucid
14425: lt_prog_compiler_pic_CXX='-pic'
14426: ;;
14427: *)
14428: ;;
14429: esac
14430: ;;
14431: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14432: case $cc_basename in
14433: CC*)
14434: lt_prog_compiler_wl_CXX='-Wl,'
14435: lt_prog_compiler_pic_CXX='-KPIC'
14436: lt_prog_compiler_static_CXX='-Bstatic'
14437: ;;
14438: esac
14439: ;;
14440: tandem*)
14441: case $cc_basename in
14442: NCC*)
14443: # NonStop-UX NCC 3.20
14444: lt_prog_compiler_pic_CXX='-KPIC'
14445: ;;
14446: *)
14447: ;;
14448: esac
14449: ;;
14450: vxworks*)
14451: ;;
14452: *)
14453: lt_prog_compiler_can_build_shared_CXX=no
14454: ;;
14455: esac
14456: fi
14457:
14458: case $host_os in
14459: # For platforms which do not support PIC, -DPIC is meaningless:
14460: *djgpp*)
14461: lt_prog_compiler_pic_CXX=
14462: ;;
14463: *)
14464: lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14465: ;;
14466: esac
14467:
14468: echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14469: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14470: if test "${lt_cv_prog_compiler_pic_CXX+set}" = set; then
14471: echo $ECHO_N "(cached) $ECHO_C" >&6
14472: else
14473: lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14474: fi
14475: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_CXX" >&5
14476: echo "${ECHO_T}$lt_cv_prog_compiler_pic_CXX" >&6
14477: lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14478:
14479: #
14480: # Check to make sure the PIC flag actually works.
14481: #
14482: if test -n "$lt_prog_compiler_pic_CXX"; then
14483: echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14484: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
14485: if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14486: echo $ECHO_N "(cached) $ECHO_C" >&6
14487: else
14488: lt_cv_prog_compiler_pic_works_CXX=no
14489: ac_outfile=conftest.$ac_objext
14490: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14491: lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14492: # Insert the option either (1) after the last *FLAGS variable, or
14493: # (2) before a word containing "conftest.", or (3) at the end.
14494: # Note that $ac_compile itself does not contain backslashes and begins
14495: # with a dollar sign (not a hyphen), so the echo should work correctly.
14496: # The option is referenced via a variable to avoid confusing sed.
14497: lt_compile=`echo "$ac_compile" | $SED \
14498: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14499: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14500: -e 's:$: $lt_compiler_flag:'`
14501: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14502: (eval "$lt_compile" 2>conftest.err)
14503: ac_status=$?
14504: cat conftest.err >&5
14505: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14506: if (exit $ac_status) && test -s "$ac_outfile"; then
14507: # The compiler can only warn and ignore the option if not recognized
14508: # So say no if there are warnings other than the usual output.
14509: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14510: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14511: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14512: lt_cv_prog_compiler_pic_works_CXX=yes
14513: fi
14514: fi
14515: $RM conftest*
14516:
14517: fi
14518: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14519: echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6
14520:
14521: if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14522: case $lt_prog_compiler_pic_CXX in
14523: "" | " "*) ;;
14524: *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14525: esac
14526: else
14527: lt_prog_compiler_pic_CXX=
14528: lt_prog_compiler_can_build_shared_CXX=no
14529: fi
14530:
14531: fi
14532:
14533:
14534:
14535:
14536:
14537: #
14538: # Check to make sure the static flag actually works.
14539: #
14540: wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14541: echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14542: echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
14543: if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14544: echo $ECHO_N "(cached) $ECHO_C" >&6
14545: else
14546: lt_cv_prog_compiler_static_works_CXX=no
14547: save_LDFLAGS="$LDFLAGS"
14548: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14549: echo "$lt_simple_link_test_code" > conftest.$ac_ext
14550: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14551: # The linker can only warn and ignore the option if not recognized
14552: # So say no if there are warnings
14553: if test -s conftest.err; then
14554: # Append any errors to the config.log.
14555: cat conftest.err 1>&5
14556: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14557: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14558: if diff conftest.exp conftest.er2 >/dev/null; then
14559: lt_cv_prog_compiler_static_works_CXX=yes
14560: fi
14561: else
14562: lt_cv_prog_compiler_static_works_CXX=yes
14563: fi
14564: fi
14565: $RM -r conftest*
14566: LDFLAGS="$save_LDFLAGS"
14567:
14568: fi
14569: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14570: echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6
14571:
14572: if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14573: :
14574: else
14575: lt_prog_compiler_static_CXX=
14576: fi
14577:
14578:
14579:
14580:
14581: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14582: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14583: if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14584: echo $ECHO_N "(cached) $ECHO_C" >&6
14585: else
14586: lt_cv_prog_compiler_c_o_CXX=no
14587: $RM -r conftest 2>/dev/null
14588: mkdir conftest
14589: cd conftest
14590: mkdir out
14591: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14592:
14593: lt_compiler_flag="-o out/conftest2.$ac_objext"
14594: # Insert the option either (1) after the last *FLAGS variable, or
14595: # (2) before a word containing "conftest.", or (3) at the end.
14596: # Note that $ac_compile itself does not contain backslashes and begins
14597: # with a dollar sign (not a hyphen), so the echo should work correctly.
14598: lt_compile=`echo "$ac_compile" | $SED \
14599: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14600: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14601: -e 's:$: $lt_compiler_flag:'`
14602: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14603: (eval "$lt_compile" 2>out/conftest.err)
14604: ac_status=$?
14605: cat out/conftest.err >&5
14606: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14607: if (exit $ac_status) && test -s out/conftest2.$ac_objext
14608: then
14609: # The compiler can only warn and ignore the option if not recognized
14610: # So say no if there are warnings
14611: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14612: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14613: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14614: lt_cv_prog_compiler_c_o_CXX=yes
14615: fi
14616: fi
14617: chmod u+w . 2>&5
14618: $RM conftest*
14619: # SGI C++ compiler will create directory out/ii_files/ for
14620: # template instantiation
14621: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14622: $RM out/* && rmdir out
14623: cd ..
14624: $RM -r conftest
14625: $RM conftest*
14626:
14627: fi
14628: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14629: echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
14630:
14631:
14632:
14633: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14634: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14635: if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14636: echo $ECHO_N "(cached) $ECHO_C" >&6
14637: else
14638: lt_cv_prog_compiler_c_o_CXX=no
14639: $RM -r conftest 2>/dev/null
14640: mkdir conftest
14641: cd conftest
14642: mkdir out
14643: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14644:
14645: lt_compiler_flag="-o out/conftest2.$ac_objext"
14646: # Insert the option either (1) after the last *FLAGS variable, or
14647: # (2) before a word containing "conftest.", or (3) at the end.
14648: # Note that $ac_compile itself does not contain backslashes and begins
14649: # with a dollar sign (not a hyphen), so the echo should work correctly.
14650: lt_compile=`echo "$ac_compile" | $SED \
14651: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14652: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14653: -e 's:$: $lt_compiler_flag:'`
14654: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14655: (eval "$lt_compile" 2>out/conftest.err)
14656: ac_status=$?
14657: cat out/conftest.err >&5
14658: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659: if (exit $ac_status) && test -s out/conftest2.$ac_objext
14660: then
14661: # The compiler can only warn and ignore the option if not recognized
14662: # So say no if there are warnings
14663: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14664: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14665: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14666: lt_cv_prog_compiler_c_o_CXX=yes
14667: fi
14668: fi
14669: chmod u+w . 2>&5
14670: $RM conftest*
14671: # SGI C++ compiler will create directory out/ii_files/ for
14672: # template instantiation
14673: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14674: $RM out/* && rmdir out
14675: cd ..
14676: $RM -r conftest
14677: $RM conftest*
14678:
14679: fi
14680: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14681: echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
14682:
14683:
14684:
14685:
14686: hard_links="nottested"
14687: if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14688: # do not overwrite the value of need_locks provided by the user
14689: echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14690: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14691: hard_links=yes
14692: $RM conftest*
14693: ln conftest.a conftest.b 2>/dev/null && hard_links=no
14694: touch conftest.a
14695: ln conftest.a conftest.b 2>&5 || hard_links=no
14696: ln conftest.a conftest.b 2>/dev/null && hard_links=no
14697: echo "$as_me:$LINENO: result: $hard_links" >&5
14698: echo "${ECHO_T}$hard_links" >&6
14699: if test "$hard_links" = no; then
14700: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14701: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14702: need_locks=warn
14703: fi
14704: else
14705: need_locks=no
14706: fi
14707:
14708:
14709:
14710: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14711: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14712:
14713: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14714: exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14715: case $host_os in
14716: aix[4-9]*)
14717: # If we're using GNU nm, then we don't want the "-C" option.
14718: # -C means demangle to AIX nm, but means don't demangle with GNU nm
14719: # Also, AIX nm treats weak defined symbols like other global defined
14720: # symbols, whereas GNU nm marks them as "W".
14721: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14722: 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'
14723: else
14724: 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'
14725: fi
14726: ;;
14727: pw32*)
14728: export_symbols_cmds_CXX="$ltdll_cmds"
14729: ;;
14730: cygwin* | mingw* | cegcc*)
14731: case $cc_basename in
14732: cl*)
14733: exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14734: ;;
14735: *)
14736: 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'
14737: exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14738: ;;
14739: esac
14740: ;;
14741: *)
14742: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14743: ;;
14744: esac
14745:
14746: echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14747: echo "${ECHO_T}$ld_shlibs_CXX" >&6
14748: test "$ld_shlibs_CXX" = no && can_build_shared=no
14749:
14750: with_gnu_ld_CXX=$with_gnu_ld
14751:
14752:
14753:
14754:
14755:
14756:
14757: #
14758: # Do we need to explicitly link libc?
14759: #
14760: case "x$archive_cmds_need_lc_CXX" in
14761: x|xyes)
14762: # Assume -lc should be added
14763: archive_cmds_need_lc_CXX=yes
14764:
14765: if test "$enable_shared" = yes && test "$GCC" = yes; then
14766: case $archive_cmds_CXX in
14767: *'~'*)
14768: # FIXME: we may have to deal with multi-command sequences.
14769: ;;
14770: '$CC '*)
14771: # Test whether the compiler implicitly links with -lc since on some
14772: # systems, -lgcc has to come before -lc. If gcc already passes -lc
14773: # to ld, don't add -lc before -lgcc.
14774: echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14775: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14776: if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then
14777: echo $ECHO_N "(cached) $ECHO_C" >&6
14778: else
14779: $RM conftest*
14780: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14781:
14782: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14783: (eval $ac_compile) 2>&5
14784: ac_status=$?
14785: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14786: (exit $ac_status); } 2>conftest.err; then
14787: soname=conftest
14788: lib=conftest
14789: libobjs=conftest.$ac_objext
14790: deplibs=
14791: wl=$lt_prog_compiler_wl_CXX
14792: pic_flag=$lt_prog_compiler_pic_CXX
14793: compiler_flags=-v
14794: linker_flags=-v
14795: verstring=
14796: output_objdir=.
14797: libname=conftest
14798: lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14799: allow_undefined_flag_CXX=
14800: if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
14801: (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14802: ac_status=$?
14803: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14804: (exit $ac_status); }
14805: then
14806: lt_cv_archive_cmds_need_lc_CXX=no
14807: else
14808: lt_cv_archive_cmds_need_lc_CXX=yes
14809: fi
14810: allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14811: else
14812: cat conftest.err 1>&5
14813: fi
14814: $RM conftest*
14815:
14816: fi
14817: echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14818: echo "${ECHO_T}$lt_cv_archive_cmds_need_lc_CXX" >&6
14819: archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14820: ;;
14821: esac
14822: fi
14823: ;;
14824: esac
14825:
14826:
14827:
14828:
14829:
14830:
14831:
14832:
14833:
14834:
14835:
14836:
14837:
14838:
14839:
14840:
14841:
14842:
14843:
14844:
14845:
14846:
14847:
14848:
14849:
14850:
14851:
14852:
14853:
14854:
14855:
14856:
14857:
14858:
14859:
14860:
14861:
14862:
14863:
14864:
14865:
14866:
14867:
14868:
14869:
14870:
14871:
14872:
14873:
14874:
14875:
14876:
14877:
14878:
14879:
14880:
14881:
14882:
14883:
14884:
14885:
14886:
14887: echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14888: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14889:
14890: library_names_spec=
14891: libname_spec='lib$name'
14892: soname_spec=
14893: shrext_cmds=".so"
14894: postinstall_cmds=
14895: postuninstall_cmds=
14896: finish_cmds=
14897: finish_eval=
14898: shlibpath_var=
14899: shlibpath_overrides_runpath=unknown
14900: version_type=none
14901: dynamic_linker="$host_os ld.so"
14902: sys_lib_dlsearch_path_spec="/lib /usr/lib"
14903: need_lib_prefix=unknown
14904: hardcode_into_libs=no
14905:
14906: # when you set need_version to no, make sure it does not cause -set_version
14907: # flags to be left without arguments
14908: need_version=unknown
14909:
14910: case $host_os in
14911: aix3*)
14912: version_type=linux # correct to gnu/linux during the next big refactor
14913: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14914: shlibpath_var=LIBPATH
14915:
14916: # AIX 3 has no versioning support, so we append a major version to the name.
14917: soname_spec='${libname}${release}${shared_ext}$major'
14918: ;;
14919:
14920: aix[4-9]*)
14921: version_type=linux # correct to gnu/linux during the next big refactor
14922: need_lib_prefix=no
14923: need_version=no
14924: hardcode_into_libs=yes
14925: if test "$host_cpu" = ia64; then
14926: # AIX 5 supports IA64
14927: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14928: shlibpath_var=LD_LIBRARY_PATH
14929: else
14930: # With GCC up to 2.95.x, collect2 would create an import file
14931: # for dependence libraries. The import file would start with
14932: # the line `#! .'. This would cause the generated library to
14933: # depend on `.', always an invalid library. This was fixed in
14934: # development snapshots of GCC prior to 3.0.
14935: case $host_os in
14936: aix4 | aix4.[01] | aix4.[01].*)
14937: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14938: echo ' yes '
14939: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14940: :
14941: else
14942: can_build_shared=no
14943: fi
14944: ;;
14945: esac
14946: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14947: # soname into executable. Probably we can add versioning support to
14948: # collect2, so additional links can be useful in future.
14949: if test "$aix_use_runtimelinking" = yes; then
14950: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14951: # instead of lib<name>.a to let people know that these are not
14952: # typical AIX shared libraries.
14953: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14954: else
14955: # We preserve .a as extension for shared libraries through AIX4.2
14956: # and later when we are not doing run time linking.
14957: library_names_spec='${libname}${release}.a $libname.a'
14958: soname_spec='${libname}${release}${shared_ext}$major'
14959: fi
14960: shlibpath_var=LIBPATH
14961: fi
14962: ;;
14963:
14964: amigaos*)
14965: case $host_cpu in
14966: powerpc)
14967: # Since July 2007 AmigaOS4 officially supports .so libraries.
14968: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14969: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14970: ;;
14971: m68k)
14972: library_names_spec='$libname.ixlibrary $libname.a'
14973: # Create ${libname}_ixlibrary.a entries in /sys/libs.
14974: 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'
14975: ;;
14976: esac
14977: ;;
14978:
14979: beos*)
14980: library_names_spec='${libname}${shared_ext}'
14981: dynamic_linker="$host_os ld.so"
14982: shlibpath_var=LIBRARY_PATH
14983: ;;
14984:
14985: bsdi[45]*)
14986: version_type=linux # correct to gnu/linux during the next big refactor
14987: need_version=no
14988: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14989: soname_spec='${libname}${release}${shared_ext}$major'
14990: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14991: shlibpath_var=LD_LIBRARY_PATH
14992: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14993: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14994: # the default ld.so.conf also contains /usr/contrib/lib and
14995: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14996: # libtool to hard-code these into programs
14997: ;;
14998:
14999: cygwin* | mingw* | pw32* | cegcc*)
15000: version_type=windows
15001: shrext_cmds=".dll"
15002: need_version=no
15003: need_lib_prefix=no
15004:
15005: case $GCC,$cc_basename in
15006: yes,*)
15007: # gcc
15008: library_names_spec='$libname.dll.a'
15009: # DLL is installed to $(libdir)/../bin by postinstall_cmds
15010: postinstall_cmds='base_file=`basename \${file}`~
15011: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15012: dldir=$destdir/`dirname \$dlpath`~
15013: test -d \$dldir || mkdir -p \$dldir~
15014: $install_prog $dir/$dlname \$dldir/$dlname~
15015: chmod a+x \$dldir/$dlname~
15016: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15017: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15018: fi'
15019: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15020: dlpath=$dir/\$dldll~
15021: $RM \$dlpath'
15022: shlibpath_overrides_runpath=yes
15023:
15024: case $host_os in
15025: cygwin*)
15026: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15027: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15028:
15029: ;;
15030: mingw* | cegcc*)
15031: # MinGW DLLs use traditional 'lib' prefix
15032: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15033: ;;
15034: pw32*)
15035: # pw32 DLLs use 'pw' prefix rather than 'lib'
15036: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15037: ;;
15038: esac
15039: dynamic_linker='Win32 ld.exe'
15040: ;;
15041:
15042: *,cl*)
15043: # Native MSVC
15044: libname_spec='$name'
15045: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15046: library_names_spec='${libname}.dll.lib'
15047:
15048: case $build_os in
15049: mingw*)
15050: sys_lib_search_path_spec=
15051: lt_save_ifs=$IFS
15052: IFS=';'
15053: for lt_path in $LIB
15054: do
15055: IFS=$lt_save_ifs
15056: # Let DOS variable expansion print the short 8.3 style file name.
15057: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15058: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15059: done
15060: IFS=$lt_save_ifs
15061: # Convert to MSYS style.
15062: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15063: ;;
15064: cygwin*)
15065: # Convert to unix form, then to dos form, then back to unix form
15066: # but this time dos style (no spaces!) so that the unix form looks
15067: # like /cygdrive/c/PROGRA~1:/cygdr...
15068: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15069: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15070: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15071: ;;
15072: *)
15073: sys_lib_search_path_spec="$LIB"
15074: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15075: # It is most probably a Windows format PATH.
15076: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15077: else
15078: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15079: fi
15080: # FIXME: find the short name or the path components, as spaces are
15081: # common. (e.g. "Program Files" -> "PROGRA~1")
15082: ;;
15083: esac
15084:
15085: # DLL is installed to $(libdir)/../bin by postinstall_cmds
15086: postinstall_cmds='base_file=`basename \${file}`~
15087: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15088: dldir=$destdir/`dirname \$dlpath`~
15089: test -d \$dldir || mkdir -p \$dldir~
15090: $install_prog $dir/$dlname \$dldir/$dlname'
15091: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15092: dlpath=$dir/\$dldll~
15093: $RM \$dlpath'
15094: shlibpath_overrides_runpath=yes
15095: dynamic_linker='Win32 link.exe'
15096: ;;
15097:
15098: *)
15099: # Assume MSVC wrapper
15100: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15101: dynamic_linker='Win32 ld.exe'
15102: ;;
15103: esac
15104: # FIXME: first we should search . and the directory the executable is in
15105: shlibpath_var=PATH
15106: ;;
15107:
15108: darwin* | rhapsody*)
15109: dynamic_linker="$host_os dyld"
15110: version_type=darwin
15111: need_lib_prefix=no
15112: need_version=no
15113: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15114: soname_spec='${libname}${release}${major}$shared_ext'
15115: shlibpath_overrides_runpath=yes
15116: shlibpath_var=DYLD_LIBRARY_PATH
15117: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15118:
15119: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15120: ;;
15121:
15122: dgux*)
15123: version_type=linux # correct to gnu/linux during the next big refactor
15124: need_lib_prefix=no
15125: need_version=no
15126: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15127: soname_spec='${libname}${release}${shared_ext}$major'
15128: shlibpath_var=LD_LIBRARY_PATH
15129: ;;
15130:
15131: freebsd* | dragonfly*)
15132: # DragonFly does not have aout. When/if they implement a new
15133: # versioning mechanism, adjust this.
15134: if test -x /usr/bin/objformat; then
15135: objformat=`/usr/bin/objformat`
15136: else
15137: case $host_os in
15138: freebsd[23].*) objformat=aout ;;
15139: *) objformat=elf ;;
15140: esac
15141: fi
15142: version_type=freebsd-$objformat
15143: case $version_type in
15144: freebsd-elf*)
15145: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15146: need_version=no
15147: need_lib_prefix=no
15148: ;;
15149: freebsd-*)
15150: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15151: need_version=yes
15152: ;;
15153: esac
15154: shlibpath_var=LD_LIBRARY_PATH
15155: case $host_os in
15156: freebsd2.*)
15157: shlibpath_overrides_runpath=yes
15158: ;;
15159: freebsd3.[01]* | freebsdelf3.[01]*)
15160: shlibpath_overrides_runpath=yes
15161: hardcode_into_libs=yes
15162: ;;
15163: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15164: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15165: shlibpath_overrides_runpath=no
15166: hardcode_into_libs=yes
15167: ;;
15168: *) # from 4.6 on, and DragonFly
15169: shlibpath_overrides_runpath=yes
15170: hardcode_into_libs=yes
15171: ;;
15172: esac
15173: ;;
15174:
15175: gnu*)
15176: version_type=linux # correct to gnu/linux during the next big refactor
15177: need_lib_prefix=no
15178: need_version=no
15179: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15180: soname_spec='${libname}${release}${shared_ext}$major'
15181: shlibpath_var=LD_LIBRARY_PATH
15182: shlibpath_overrides_runpath=no
15183: hardcode_into_libs=yes
15184: ;;
15185:
15186: haiku*)
15187: version_type=linux # correct to gnu/linux during the next big refactor
15188: need_lib_prefix=no
15189: need_version=no
15190: dynamic_linker="$host_os runtime_loader"
15191: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15192: soname_spec='${libname}${release}${shared_ext}$major'
15193: shlibpath_var=LIBRARY_PATH
15194: shlibpath_overrides_runpath=yes
15195: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15196: hardcode_into_libs=yes
15197: ;;
15198:
15199: hpux9* | hpux10* | hpux11*)
15200: # Give a soname corresponding to the major version so that dld.sl refuses to
15201: # link against other versions.
15202: version_type=sunos
15203: need_lib_prefix=no
15204: need_version=no
15205: case $host_cpu in
15206: ia64*)
15207: shrext_cmds='.so'
15208: hardcode_into_libs=yes
15209: dynamic_linker="$host_os dld.so"
15210: shlibpath_var=LD_LIBRARY_PATH
15211: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15212: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15213: soname_spec='${libname}${release}${shared_ext}$major'
15214: if test "X$HPUX_IA64_MODE" = X32; then
15215: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15216: else
15217: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15218: fi
15219: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15220: ;;
15221: hppa*64*)
15222: shrext_cmds='.sl'
15223: hardcode_into_libs=yes
15224: dynamic_linker="$host_os dld.sl"
15225: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15226: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15227: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15228: soname_spec='${libname}${release}${shared_ext}$major'
15229: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15230: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15231: ;;
15232: *)
15233: shrext_cmds='.sl'
15234: dynamic_linker="$host_os dld.sl"
15235: shlibpath_var=SHLIB_PATH
15236: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15237: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15238: soname_spec='${libname}${release}${shared_ext}$major'
15239: ;;
15240: esac
15241: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15242: postinstall_cmds='chmod 555 $lib'
15243: # or fails outright, so override atomically:
15244: install_override_mode=555
15245: ;;
15246:
15247: interix[3-9]*)
15248: version_type=linux # correct to gnu/linux during the next big refactor
15249: need_lib_prefix=no
15250: need_version=no
15251: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15252: soname_spec='${libname}${release}${shared_ext}$major'
15253: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15254: shlibpath_var=LD_LIBRARY_PATH
15255: shlibpath_overrides_runpath=no
15256: hardcode_into_libs=yes
15257: ;;
15258:
15259: irix5* | irix6* | nonstopux*)
15260: case $host_os in
15261: nonstopux*) version_type=nonstopux ;;
15262: *)
15263: if test "$lt_cv_prog_gnu_ld" = yes; then
15264: version_type=linux # correct to gnu/linux during the next big refactor
15265: else
15266: version_type=irix
15267: fi ;;
15268: esac
15269: need_lib_prefix=no
15270: need_version=no
15271: soname_spec='${libname}${release}${shared_ext}$major'
15272: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15273: case $host_os in
15274: irix5* | nonstopux*)
15275: libsuff= shlibsuff=
15276: ;;
15277: *)
15278: case $LD in # libtool.m4 will add one of these switches to LD
15279: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15280: libsuff= shlibsuff= libmagic=32-bit;;
15281: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15282: libsuff=32 shlibsuff=N32 libmagic=N32;;
15283: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15284: libsuff=64 shlibsuff=64 libmagic=64-bit;;
15285: *) libsuff= shlibsuff= libmagic=never-match;;
15286: esac
15287: ;;
15288: esac
15289: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15290: shlibpath_overrides_runpath=no
15291: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15292: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15293: hardcode_into_libs=yes
15294: ;;
15295:
15296: # No shared lib support for Linux oldld, aout, or coff.
15297: linux*oldld* | linux*aout* | linux*coff*)
15298: dynamic_linker=no
15299: ;;
15300:
15301: # This must be glibc/ELF.
15302: linux* | k*bsd*-gnu | kopensolaris*-gnu)
15303: version_type=linux # correct to gnu/linux during the next big refactor
15304: need_lib_prefix=no
15305: need_version=no
15306: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15307: soname_spec='${libname}${release}${shared_ext}$major'
15308: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15309: shlibpath_var=LD_LIBRARY_PATH
15310: shlibpath_overrides_runpath=no
15311:
15312: # Some binutils ld are patched to set DT_RUNPATH
15313: if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
15314: echo $ECHO_N "(cached) $ECHO_C" >&6
15315: else
15316: lt_cv_shlibpath_overrides_runpath=no
15317: save_LDFLAGS=$LDFLAGS
15318: save_libdir=$libdir
15319: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15320: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15321: cat >conftest.$ac_ext <<_ACEOF
15322: /* confdefs.h. */
15323: _ACEOF
15324: cat confdefs.h >>conftest.$ac_ext
15325: cat >>conftest.$ac_ext <<_ACEOF
15326: /* end confdefs.h. */
15327:
15328: int
15329: main ()
15330: {
15331:
15332: ;
15333: return 0;
15334: }
15335: _ACEOF
15336: rm -f conftest.$ac_objext conftest$ac_exeext
15337: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15338: (eval $ac_link) 2>conftest.er1
15339: ac_status=$?
15340: grep -v '^ *+' conftest.er1 >conftest.err
15341: rm -f conftest.er1
15342: cat conftest.err >&5
15343: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15344: (exit $ac_status); } &&
15345: { ac_try='test -z "$ac_cxx_werror_flag"
15346: || test ! -s conftest.err'
15347: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15348: (eval $ac_try) 2>&5
15349: ac_status=$?
15350: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15351: (exit $ac_status); }; } &&
15352: { ac_try='test -s conftest$ac_exeext'
15353: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15354: (eval $ac_try) 2>&5
15355: ac_status=$?
15356: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15357: (exit $ac_status); }; }; then
15358: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15359: lt_cv_shlibpath_overrides_runpath=yes
15360: fi
15361:
15362: else
15363: echo "$as_me: failed program was:" >&5
15364: sed 's/^/| /' conftest.$ac_ext >&5
15365:
15366: fi
15367: rm -f conftest.err conftest.$ac_objext \
15368: conftest$ac_exeext conftest.$ac_ext
15369: LDFLAGS=$save_LDFLAGS
15370: libdir=$save_libdir
15371:
15372: fi
15373:
15374: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15375:
15376: # This implies no fast_install, which is unacceptable.
15377: # Some rework will be needed to allow for fast_install
15378: # before this can be enabled.
15379: hardcode_into_libs=yes
15380:
15381: # Append ld.so.conf contents to the search path
15382: if test -f /etc/ld.so.conf; then
15383: 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' ' '`
15384: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15385: fi
15386:
15387: # We used to test for /lib/ld.so.1 and disable shared libraries on
15388: # powerpc, because MkLinux only supported shared libraries with the
15389: # GNU dynamic linker. Since this was broken with cross compilers,
15390: # most powerpc-linux boxes support dynamic linking these days and
15391: # people can always --disable-shared, the test was removed, and we
15392: # assume the GNU/Linux dynamic linker is in use.
15393: dynamic_linker='GNU/Linux ld.so'
15394: ;;
15395:
15396: netbsd*)
15397: version_type=sunos
15398: need_lib_prefix=no
15399: need_version=no
15400: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15401: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15402: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15403: dynamic_linker='NetBSD (a.out) ld.so'
15404: else
15405: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15406: soname_spec='${libname}${release}${shared_ext}$major'
15407: dynamic_linker='NetBSD ld.elf_so'
15408: fi
15409: shlibpath_var=LD_LIBRARY_PATH
15410: shlibpath_overrides_runpath=yes
15411: hardcode_into_libs=yes
15412: ;;
15413:
15414: newsos6)
15415: version_type=linux # correct to gnu/linux during the next big refactor
15416: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15417: shlibpath_var=LD_LIBRARY_PATH
15418: shlibpath_overrides_runpath=yes
15419: ;;
15420:
15421: *nto* | *qnx*)
15422: version_type=qnx
15423: need_lib_prefix=no
15424: need_version=no
15425: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15426: soname_spec='${libname}${release}${shared_ext}$major'
15427: shlibpath_var=LD_LIBRARY_PATH
15428: shlibpath_overrides_runpath=no
15429: hardcode_into_libs=yes
15430: dynamic_linker='ldqnx.so'
15431: ;;
15432:
15433: openbsd*)
15434: version_type=sunos
15435: sys_lib_dlsearch_path_spec="/usr/lib"
15436: need_lib_prefix=no
15437: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15438: case $host_os in
15439: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15440: *) need_version=no ;;
15441: esac
15442: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15443: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15444: shlibpath_var=LD_LIBRARY_PATH
15445: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15446: case $host_os in
15447: openbsd2.[89] | openbsd2.[89].*)
15448: shlibpath_overrides_runpath=no
15449: ;;
15450: *)
15451: shlibpath_overrides_runpath=yes
15452: ;;
15453: esac
15454: else
15455: shlibpath_overrides_runpath=yes
15456: fi
15457: ;;
15458:
15459: os2*)
15460: libname_spec='$name'
15461: shrext_cmds=".dll"
15462: need_lib_prefix=no
15463: library_names_spec='$libname${shared_ext} $libname.a'
15464: dynamic_linker='OS/2 ld.exe'
15465: shlibpath_var=LIBPATH
15466: ;;
15467:
15468: osf3* | osf4* | osf5*)
15469: version_type=osf
15470: need_lib_prefix=no
15471: need_version=no
15472: soname_spec='${libname}${release}${shared_ext}$major'
15473: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15474: shlibpath_var=LD_LIBRARY_PATH
15475: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15476: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15477: ;;
15478:
15479: rdos*)
15480: dynamic_linker=no
15481: ;;
15482:
15483: solaris*)
15484: version_type=linux # correct to gnu/linux during the next big refactor
15485: need_lib_prefix=no
15486: need_version=no
15487: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15488: soname_spec='${libname}${release}${shared_ext}$major'
15489: shlibpath_var=LD_LIBRARY_PATH
15490: shlibpath_overrides_runpath=yes
15491: hardcode_into_libs=yes
15492: # ldd complains unless libraries are executable
15493: postinstall_cmds='chmod +x $lib'
15494: ;;
15495:
15496: sunos4*)
15497: version_type=sunos
15498: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15499: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15500: shlibpath_var=LD_LIBRARY_PATH
15501: shlibpath_overrides_runpath=yes
15502: if test "$with_gnu_ld" = yes; then
15503: need_lib_prefix=no
15504: fi
15505: need_version=yes
15506: ;;
15507:
15508: sysv4 | sysv4.3*)
15509: version_type=linux # correct to gnu/linux during the next big refactor
15510: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15511: soname_spec='${libname}${release}${shared_ext}$major'
15512: shlibpath_var=LD_LIBRARY_PATH
15513: case $host_vendor in
15514: sni)
15515: shlibpath_overrides_runpath=no
15516: need_lib_prefix=no
15517: runpath_var=LD_RUN_PATH
15518: ;;
15519: siemens)
15520: need_lib_prefix=no
15521: ;;
15522: motorola)
15523: need_lib_prefix=no
15524: need_version=no
15525: shlibpath_overrides_runpath=no
15526: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15527: ;;
15528: esac
15529: ;;
15530:
15531: sysv4*MP*)
15532: if test -d /usr/nec ;then
15533: version_type=linux # correct to gnu/linux during the next big refactor
15534: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15535: soname_spec='$libname${shared_ext}.$major'
15536: shlibpath_var=LD_LIBRARY_PATH
15537: fi
15538: ;;
15539:
15540: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15541: version_type=freebsd-elf
15542: need_lib_prefix=no
15543: need_version=no
15544: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15545: soname_spec='${libname}${release}${shared_ext}$major'
15546: shlibpath_var=LD_LIBRARY_PATH
15547: shlibpath_overrides_runpath=yes
15548: hardcode_into_libs=yes
15549: if test "$with_gnu_ld" = yes; then
15550: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15551: else
15552: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15553: case $host_os in
15554: sco3.2v5*)
15555: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15556: ;;
15557: esac
15558: fi
15559: sys_lib_dlsearch_path_spec='/usr/lib'
15560: ;;
15561:
15562: tpf*)
15563: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15564: version_type=linux # correct to gnu/linux during the next big refactor
15565: need_lib_prefix=no
15566: need_version=no
15567: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15568: shlibpath_var=LD_LIBRARY_PATH
15569: shlibpath_overrides_runpath=no
15570: hardcode_into_libs=yes
15571: ;;
15572:
15573: uts4*)
15574: version_type=linux # correct to gnu/linux during the next big refactor
15575: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15576: soname_spec='${libname}${release}${shared_ext}$major'
15577: shlibpath_var=LD_LIBRARY_PATH
15578: ;;
15579:
15580: *)
15581: dynamic_linker=no
15582: ;;
15583: esac
15584: echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15585: echo "${ECHO_T}$dynamic_linker" >&6
15586: test "$dynamic_linker" = no && can_build_shared=no
15587:
15588: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15589: if test "$GCC" = yes; then
15590: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15591: fi
15592:
15593: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15594: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15595: fi
15596: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15597: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15598: fi
15599:
15600:
15601:
15602:
15603:
15604:
15605:
15606:
15607:
15608:
15609:
15610:
15611:
15612:
15613:
15614:
15615:
15616:
15617:
15618:
15619:
15620:
15621:
15622:
15623:
15624:
15625:
15626:
15627:
15628:
15629:
15630:
15631:
15632:
15633:
15634:
15635:
15636:
15637: echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15638: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15639: hardcode_action_CXX=
15640: if test -n "$hardcode_libdir_flag_spec_CXX" ||
15641: test -n "$runpath_var_CXX" ||
15642: test "X$hardcode_automatic_CXX" = "Xyes" ; then
15643:
15644: # We can hardcode non-existent directories.
15645: if test "$hardcode_direct_CXX" != no &&
15646: # If the only mechanism to avoid hardcoding is shlibpath_var, we
15647: # have to relink, otherwise we might link with an installed library
15648: # when we should be linking with a yet-to-be-installed one
15649: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15650: test "$hardcode_minus_L_CXX" != no; then
15651: # Linking always hardcodes the temporary library directory.
15652: hardcode_action_CXX=relink
15653: else
15654: # We can link without hardcoding, and we can hardcode nonexisting dirs.
15655: hardcode_action_CXX=immediate
15656: fi
15657: else
15658: # We cannot hardcode anything, or else we can only hardcode existing
15659: # directories.
15660: hardcode_action_CXX=unsupported
15661: fi
15662: echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15663: echo "${ECHO_T}$hardcode_action_CXX" >&6
15664:
15665: if test "$hardcode_action_CXX" = relink ||
15666: test "$inherit_rpath_CXX" = yes; then
15667: # Fast installation is not supported
15668: enable_fast_install=no
15669: elif test "$shlibpath_overrides_runpath" = yes ||
15670: test "$enable_shared" = no; then
15671: # Fast installation is not necessary
15672: enable_fast_install=needless
15673: fi
15674:
15675:
15676:
15677:
15678:
15679:
15680:
15681: fi # test -n "$compiler"
15682:
15683: CC=$lt_save_CC
15684: CFLAGS=$lt_save_CFLAGS
15685: LDCXX=$LD
15686: LD=$lt_save_LD
15687: GCC=$lt_save_GCC
15688: with_gnu_ld=$lt_save_with_gnu_ld
15689: lt_cv_path_LDCXX=$lt_cv_path_LD
15690: lt_cv_path_LD=$lt_save_path_LD
15691: lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15692: lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15693: fi # test "$_lt_caught_CXX_error" != yes
15694:
15695: ac_ext=c
15696: ac_cpp='$CPP $CPPFLAGS'
15697: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15698: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15699: ac_compiler_gnu=$ac_cv_c_compiler_gnu
15700:
15701:
15702:
15703:
15704:
15705:
15706:
15707:
15708:
15709:
15710:
15711:
15712:
15713:
15714:
15715: ac_config_commands="$ac_config_commands libtool"
15716:
15717:
15718:
15719:
15720: # Only expand once:
15721:
15722:
1.138 moko 15723: #LT_INIT(disable-shared dlopen win32-dll)
1.128 moko 15724: echo "$as_me:$LINENO: checking which extension is used for runtime loadable modules" >&5
15725: echo $ECHO_N "checking which extension is used for runtime loadable modules... $ECHO_C" >&6
15726: if test "${libltdl_cv_shlibext+set}" = set; then
15727: echo $ECHO_N "(cached) $ECHO_C" >&6
15728: else
15729:
15730: module=yes
15731: eval libltdl_cv_shlibext=$shrext_cmds
15732: module=no
15733: eval libltdl_cv_shrext=$shrext_cmds
15734:
15735: fi
15736: echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
15737: echo "${ECHO_T}$libltdl_cv_shlibext" >&6
15738: if test -n "$libltdl_cv_shlibext"; then
15739:
15740: cat >>confdefs.h <<_ACEOF
15741: #define LT_MODULE_EXT "$libltdl_cv_shlibext"
15742: _ACEOF
15743:
15744: fi
15745: if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
15746:
15747: cat >>confdefs.h <<_ACEOF
15748: #define LT_SHARED_EXT "$libltdl_cv_shrext"
15749: _ACEOF
15750:
15751: fi
15752:
15753: echo "$as_me:$LINENO: checking which variable specifies run-time module search path" >&5
15754: echo $ECHO_N "checking which variable specifies run-time module search path... $ECHO_C" >&6
15755: if test "${lt_cv_module_path_var+set}" = set; then
15756: echo $ECHO_N "(cached) $ECHO_C" >&6
15757: else
15758: lt_cv_module_path_var="$shlibpath_var"
15759: fi
15760: echo "$as_me:$LINENO: result: $lt_cv_module_path_var" >&5
15761: echo "${ECHO_T}$lt_cv_module_path_var" >&6
15762: if test -n "$lt_cv_module_path_var"; then
15763:
15764: cat >>confdefs.h <<_ACEOF
15765: #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
15766: _ACEOF
15767:
15768: fi
15769:
15770: echo "$as_me:$LINENO: checking for the default library search path" >&5
15771: echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
15772: if test "${lt_cv_sys_dlsearch_path+set}" = set; then
15773: echo $ECHO_N "(cached) $ECHO_C" >&6
15774: else
15775: lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
15776: fi
15777: echo "$as_me:$LINENO: result: $lt_cv_sys_dlsearch_path" >&5
15778: echo "${ECHO_T}$lt_cv_sys_dlsearch_path" >&6
15779: if test -n "$lt_cv_sys_dlsearch_path"; then
15780: sys_dlsearch_path=
15781: for dir in $lt_cv_sys_dlsearch_path; do
15782: if test -z "$sys_dlsearch_path"; then
15783: sys_dlsearch_path="$dir"
15784: else
15785: sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
15786: fi
15787: done
15788:
15789: cat >>confdefs.h <<_ACEOF
15790: #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
15791: _ACEOF
15792:
15793: fi
15794:
15795:
15796: LT_DLLOADERS=
15797:
15798:
15799: ac_ext=c
15800: ac_cpp='$CPP $CPPFLAGS'
15801: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15802: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15803: ac_compiler_gnu=$ac_cv_c_compiler_gnu
15804:
15805:
15806: LIBADD_DLOPEN=
15807: echo "$as_me:$LINENO: checking for library containing dlopen" >&5
15808: echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
15809: if test "${ac_cv_search_dlopen+set}" = set; then
15810: echo $ECHO_N "(cached) $ECHO_C" >&6
15811: else
15812: ac_func_search_save_LIBS=$LIBS
15813: ac_cv_search_dlopen=no
15814: cat >conftest.$ac_ext <<_ACEOF
15815: /* confdefs.h. */
15816: _ACEOF
15817: cat confdefs.h >>conftest.$ac_ext
15818: cat >>conftest.$ac_ext <<_ACEOF
15819: /* end confdefs.h. */
15820:
15821: /* Override any gcc2 internal prototype to avoid an error. */
15822: #ifdef __cplusplus
15823: extern "C"
15824: #endif
15825: /* We use char because int might match the return type of a gcc2
15826: builtin and then its argument prototype would still apply. */
15827: char dlopen ();
15828: int
15829: main ()
15830: {
15831: dlopen ();
15832: ;
15833: return 0;
15834: }
15835: _ACEOF
15836: rm -f conftest.$ac_objext conftest$ac_exeext
15837: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15838: (eval $ac_link) 2>conftest.er1
15839: ac_status=$?
15840: grep -v '^ *+' conftest.er1 >conftest.err
15841: rm -f conftest.er1
15842: cat conftest.err >&5
15843: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844: (exit $ac_status); } &&
15845: { ac_try='test -z "$ac_c_werror_flag"
15846: || test ! -s conftest.err'
15847: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15848: (eval $ac_try) 2>&5
15849: ac_status=$?
15850: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15851: (exit $ac_status); }; } &&
15852: { ac_try='test -s conftest$ac_exeext'
15853: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15854: (eval $ac_try) 2>&5
15855: ac_status=$?
15856: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15857: (exit $ac_status); }; }; then
15858: ac_cv_search_dlopen="none required"
15859: else
15860: echo "$as_me: failed program was:" >&5
15861: sed 's/^/| /' conftest.$ac_ext >&5
15862:
15863: fi
15864: rm -f conftest.err conftest.$ac_objext \
15865: conftest$ac_exeext conftest.$ac_ext
15866: if test "$ac_cv_search_dlopen" = no; then
15867: for ac_lib in dl; do
15868: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15869: cat >conftest.$ac_ext <<_ACEOF
15870: /* confdefs.h. */
15871: _ACEOF
15872: cat confdefs.h >>conftest.$ac_ext
15873: cat >>conftest.$ac_ext <<_ACEOF
15874: /* end confdefs.h. */
15875:
15876: /* Override any gcc2 internal prototype to avoid an error. */
15877: #ifdef __cplusplus
15878: extern "C"
15879: #endif
15880: /* We use char because int might match the return type of a gcc2
15881: builtin and then its argument prototype would still apply. */
15882: char dlopen ();
15883: int
15884: main ()
15885: {
15886: dlopen ();
15887: ;
15888: return 0;
15889: }
15890: _ACEOF
15891: rm -f conftest.$ac_objext conftest$ac_exeext
15892: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15893: (eval $ac_link) 2>conftest.er1
15894: ac_status=$?
15895: grep -v '^ *+' conftest.er1 >conftest.err
15896: rm -f conftest.er1
15897: cat conftest.err >&5
15898: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15899: (exit $ac_status); } &&
15900: { ac_try='test -z "$ac_c_werror_flag"
15901: || test ! -s conftest.err'
15902: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15903: (eval $ac_try) 2>&5
15904: ac_status=$?
15905: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15906: (exit $ac_status); }; } &&
15907: { ac_try='test -s conftest$ac_exeext'
15908: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15909: (eval $ac_try) 2>&5
15910: ac_status=$?
15911: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15912: (exit $ac_status); }; }; then
15913: ac_cv_search_dlopen="-l$ac_lib"
15914: break
15915: else
15916: echo "$as_me: failed program was:" >&5
15917: sed 's/^/| /' conftest.$ac_ext >&5
15918:
15919: fi
15920: rm -f conftest.err conftest.$ac_objext \
15921: conftest$ac_exeext conftest.$ac_ext
15922: done
15923: fi
15924: LIBS=$ac_func_search_save_LIBS
15925: fi
15926: echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
15927: echo "${ECHO_T}$ac_cv_search_dlopen" >&6
15928: if test "$ac_cv_search_dlopen" != no; then
15929: test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
15930:
15931: cat >>confdefs.h <<\_ACEOF
15932: #define HAVE_LIBDL 1
15933: _ACEOF
15934:
15935: if test "$ac_cv_search_dlopen" != "none required" ; then
15936: LIBADD_DLOPEN="-ldl"
15937: fi
15938: libltdl_cv_lib_dl_dlopen="yes"
15939: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
15940: else
15941: cat >conftest.$ac_ext <<_ACEOF
15942: /* confdefs.h. */
15943: _ACEOF
15944: cat confdefs.h >>conftest.$ac_ext
15945: cat >>conftest.$ac_ext <<_ACEOF
15946: /* end confdefs.h. */
15947: #if HAVE_DLFCN_H
15948: # include <dlfcn.h>
15949: #endif
15950:
15951: int
15952: main ()
15953: {
15954: dlopen(0, 0);
15955: ;
15956: return 0;
15957: }
15958: _ACEOF
15959: rm -f conftest.$ac_objext conftest$ac_exeext
15960: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15961: (eval $ac_link) 2>conftest.er1
15962: ac_status=$?
15963: grep -v '^ *+' conftest.er1 >conftest.err
15964: rm -f conftest.er1
15965: cat conftest.err >&5
15966: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15967: (exit $ac_status); } &&
15968: { ac_try='test -z "$ac_c_werror_flag"
15969: || test ! -s conftest.err'
15970: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15971: (eval $ac_try) 2>&5
15972: ac_status=$?
15973: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15974: (exit $ac_status); }; } &&
15975: { ac_try='test -s conftest$ac_exeext'
15976: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15977: (eval $ac_try) 2>&5
15978: ac_status=$?
15979: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15980: (exit $ac_status); }; }; then
15981:
15982: cat >>confdefs.h <<\_ACEOF
15983: #define HAVE_LIBDL 1
15984: _ACEOF
15985:
15986: libltdl_cv_func_dlopen="yes"
15987: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
15988: else
15989: echo "$as_me: failed program was:" >&5
15990: sed 's/^/| /' conftest.$ac_ext >&5
15991:
15992: echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
15993: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
15994: if test "${ac_cv_lib_svld_dlopen+set}" = set; then
15995: echo $ECHO_N "(cached) $ECHO_C" >&6
15996: else
15997: ac_check_lib_save_LIBS=$LIBS
15998: LIBS="-lsvld $LIBS"
15999: cat >conftest.$ac_ext <<_ACEOF
16000: /* confdefs.h. */
16001: _ACEOF
16002: cat confdefs.h >>conftest.$ac_ext
16003: cat >>conftest.$ac_ext <<_ACEOF
16004: /* end confdefs.h. */
16005:
16006: /* Override any gcc2 internal prototype to avoid an error. */
16007: #ifdef __cplusplus
16008: extern "C"
16009: #endif
16010: /* We use char because int might match the return type of a gcc2
16011: builtin and then its argument prototype would still apply. */
16012: char dlopen ();
16013: int
16014: main ()
16015: {
16016: dlopen ();
16017: ;
16018: return 0;
16019: }
16020: _ACEOF
16021: rm -f conftest.$ac_objext conftest$ac_exeext
16022: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16023: (eval $ac_link) 2>conftest.er1
16024: ac_status=$?
16025: grep -v '^ *+' conftest.er1 >conftest.err
16026: rm -f conftest.er1
16027: cat conftest.err >&5
16028: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16029: (exit $ac_status); } &&
16030: { ac_try='test -z "$ac_c_werror_flag"
16031: || test ! -s conftest.err'
16032: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16033: (eval $ac_try) 2>&5
16034: ac_status=$?
16035: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16036: (exit $ac_status); }; } &&
16037: { ac_try='test -s conftest$ac_exeext'
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); }; }; then
16043: ac_cv_lib_svld_dlopen=yes
16044: else
16045: echo "$as_me: failed program was:" >&5
16046: sed 's/^/| /' conftest.$ac_ext >&5
16047:
16048: ac_cv_lib_svld_dlopen=no
16049: fi
16050: rm -f conftest.err conftest.$ac_objext \
16051: conftest$ac_exeext conftest.$ac_ext
16052: LIBS=$ac_check_lib_save_LIBS
16053: fi
16054: echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16055: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
16056: if test $ac_cv_lib_svld_dlopen = yes; then
16057:
16058: cat >>confdefs.h <<\_ACEOF
16059: #define HAVE_LIBDL 1
16060: _ACEOF
16061:
16062: LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
16063: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16064: fi
16065:
16066: fi
16067: rm -f conftest.err conftest.$ac_objext \
16068: conftest$ac_exeext conftest.$ac_ext
16069: fi
16070:
16071: if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
16072: then
16073: lt_save_LIBS="$LIBS"
16074: LIBS="$LIBS $LIBADD_DLOPEN"
16075:
16076: for ac_func in dlerror
16077: do
16078: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16079: echo "$as_me:$LINENO: checking for $ac_func" >&5
16080: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16081: if eval "test \"\${$as_ac_var+set}\" = set"; then
16082: echo $ECHO_N "(cached) $ECHO_C" >&6
16083: else
16084: cat >conftest.$ac_ext <<_ACEOF
16085: /* confdefs.h. */
16086: _ACEOF
16087: cat confdefs.h >>conftest.$ac_ext
16088: cat >>conftest.$ac_ext <<_ACEOF
16089: /* end confdefs.h. */
16090: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16091: For example, HP-UX 11i <limits.h> declares gettimeofday. */
16092: #define $ac_func innocuous_$ac_func
16093:
16094: /* System header to define __stub macros and hopefully few prototypes,
16095: which can conflict with char $ac_func (); below.
16096: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16097: <limits.h> exists even on freestanding compilers. */
16098:
16099: #ifdef __STDC__
16100: # include <limits.h>
16101: #else
16102: # include <assert.h>
16103: #endif
16104:
16105: #undef $ac_func
16106:
16107: /* Override any gcc2 internal prototype to avoid an error. */
16108: #ifdef __cplusplus
16109: extern "C"
16110: {
16111: #endif
16112: /* We use char because int might match the return type of a gcc2
16113: builtin and then its argument prototype would still apply. */
16114: char $ac_func ();
16115: /* The GNU C library defines this for functions which it implements
16116: to always fail with ENOSYS. Some functions are actually named
16117: something starting with __ and the normal name is an alias. */
16118: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16119: choke me
16120: #else
16121: char (*f) () = $ac_func;
16122: #endif
16123: #ifdef __cplusplus
16124: }
16125: #endif
16126:
16127: int
16128: main ()
16129: {
16130: return f != $ac_func;
16131: ;
16132: return 0;
16133: }
16134: _ACEOF
16135: rm -f conftest.$ac_objext conftest$ac_exeext
16136: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16137: (eval $ac_link) 2>conftest.er1
16138: ac_status=$?
16139: grep -v '^ *+' conftest.er1 >conftest.err
16140: rm -f conftest.er1
16141: cat conftest.err >&5
16142: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16143: (exit $ac_status); } &&
16144: { ac_try='test -z "$ac_c_werror_flag"
16145: || test ! -s conftest.err'
16146: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16147: (eval $ac_try) 2>&5
16148: ac_status=$?
16149: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16150: (exit $ac_status); }; } &&
16151: { ac_try='test -s conftest$ac_exeext'
16152: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16153: (eval $ac_try) 2>&5
16154: ac_status=$?
16155: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16156: (exit $ac_status); }; }; then
16157: eval "$as_ac_var=yes"
16158: else
16159: echo "$as_me: failed program was:" >&5
16160: sed 's/^/| /' conftest.$ac_ext >&5
16161:
16162: eval "$as_ac_var=no"
16163: fi
16164: rm -f conftest.err conftest.$ac_objext \
16165: conftest$ac_exeext conftest.$ac_ext
16166: fi
16167: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16168: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16169: if test `eval echo '${'$as_ac_var'}'` = yes; then
16170: cat >>confdefs.h <<_ACEOF
16171: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16172: _ACEOF
16173:
16174: fi
16175: done
16176:
16177: LIBS="$lt_save_LIBS"
16178: fi
16179:
16180:
16181: LIBADD_SHL_LOAD=
16182: echo "$as_me:$LINENO: checking for shl_load" >&5
16183: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16184: if test "${ac_cv_func_shl_load+set}" = set; then
16185: echo $ECHO_N "(cached) $ECHO_C" >&6
16186: else
16187: cat >conftest.$ac_ext <<_ACEOF
16188: /* confdefs.h. */
16189: _ACEOF
16190: cat confdefs.h >>conftest.$ac_ext
16191: cat >>conftest.$ac_ext <<_ACEOF
16192: /* end confdefs.h. */
16193: /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16194: For example, HP-UX 11i <limits.h> declares gettimeofday. */
16195: #define shl_load innocuous_shl_load
16196:
16197: /* System header to define __stub macros and hopefully few prototypes,
16198: which can conflict with char shl_load (); below.
16199: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16200: <limits.h> exists even on freestanding compilers. */
16201:
16202: #ifdef __STDC__
16203: # include <limits.h>
16204: #else
16205: # include <assert.h>
16206: #endif
16207:
16208: #undef shl_load
16209:
16210: /* Override any gcc2 internal prototype to avoid an error. */
16211: #ifdef __cplusplus
16212: extern "C"
16213: {
16214: #endif
16215: /* We use char because int might match the return type of a gcc2
16216: builtin and then its argument prototype would still apply. */
16217: char shl_load ();
16218: /* The GNU C library defines this for functions which it implements
16219: to always fail with ENOSYS. Some functions are actually named
16220: something starting with __ and the normal name is an alias. */
16221: #if defined (__stub_shl_load) || defined (__stub___shl_load)
16222: choke me
16223: #else
16224: char (*f) () = shl_load;
16225: #endif
16226: #ifdef __cplusplus
16227: }
16228: #endif
16229:
16230: int
16231: main ()
16232: {
16233: return f != shl_load;
16234: ;
16235: return 0;
16236: }
16237: _ACEOF
16238: rm -f conftest.$ac_objext conftest$ac_exeext
16239: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16240: (eval $ac_link) 2>conftest.er1
16241: ac_status=$?
16242: grep -v '^ *+' conftest.er1 >conftest.err
16243: rm -f conftest.er1
16244: cat conftest.err >&5
16245: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16246: (exit $ac_status); } &&
16247: { ac_try='test -z "$ac_c_werror_flag"
16248: || test ! -s conftest.err'
16249: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16250: (eval $ac_try) 2>&5
16251: ac_status=$?
16252: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16253: (exit $ac_status); }; } &&
16254: { ac_try='test -s conftest$ac_exeext'
16255: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16256: (eval $ac_try) 2>&5
16257: ac_status=$?
16258: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16259: (exit $ac_status); }; }; then
16260: ac_cv_func_shl_load=yes
16261: else
16262: echo "$as_me: failed program was:" >&5
16263: sed 's/^/| /' conftest.$ac_ext >&5
16264:
16265: ac_cv_func_shl_load=no
16266: fi
16267: rm -f conftest.err conftest.$ac_objext \
16268: conftest$ac_exeext conftest.$ac_ext
16269: fi
16270: echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16271: echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16272: if test $ac_cv_func_shl_load = yes; then
16273:
16274: cat >>confdefs.h <<\_ACEOF
16275: #define HAVE_SHL_LOAD 1
16276: _ACEOF
16277:
16278: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
1.66 paf 16279: else
16280: echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16281: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16282: if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16283: echo $ECHO_N "(cached) $ECHO_C" >&6
16284: else
16285: ac_check_lib_save_LIBS=$LIBS
16286: LIBS="-ldld $LIBS"
16287: cat >conftest.$ac_ext <<_ACEOF
16288: /* confdefs.h. */
16289: _ACEOF
16290: cat confdefs.h >>conftest.$ac_ext
16291: cat >>conftest.$ac_ext <<_ACEOF
16292: /* end confdefs.h. */
1.10 paf 16293:
1.66 paf 16294: /* Override any gcc2 internal prototype to avoid an error. */
16295: #ifdef __cplusplus
16296: extern "C"
16297: #endif
16298: /* We use char because int might match the return type of a gcc2
16299: builtin and then its argument prototype would still apply. */
16300: char shl_load ();
16301: int
16302: main ()
16303: {
16304: shl_load ();
16305: ;
16306: return 0;
16307: }
16308: _ACEOF
16309: rm -f conftest.$ac_objext conftest$ac_exeext
16310: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 16311: (eval $ac_link) 2>conftest.er1
1.66 paf 16312: ac_status=$?
1.86 paf 16313: grep -v '^ *+' conftest.er1 >conftest.err
16314: rm -f conftest.er1
16315: cat conftest.err >&5
1.66 paf 16316: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16317: (exit $ac_status); } &&
1.86 paf 16318: { ac_try='test -z "$ac_c_werror_flag"
16319: || test ! -s conftest.err'
16320: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16321: (eval $ac_try) 2>&5
16322: ac_status=$?
16323: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16324: (exit $ac_status); }; } &&
16325: { ac_try='test -s conftest$ac_exeext'
1.66 paf 16326: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16327: (eval $ac_try) 2>&5
16328: ac_status=$?
16329: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16330: (exit $ac_status); }; }; then
16331: ac_cv_lib_dld_shl_load=yes
16332: else
16333: echo "$as_me: failed program was:" >&5
16334: sed 's/^/| /' conftest.$ac_ext >&5
1.10 paf 16335:
1.66 paf 16336: ac_cv_lib_dld_shl_load=no
16337: fi
1.86 paf 16338: rm -f conftest.err conftest.$ac_objext \
16339: conftest$ac_exeext conftest.$ac_ext
1.66 paf 16340: LIBS=$ac_check_lib_save_LIBS
16341: fi
16342: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16343: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
16344: if test $ac_cv_lib_dld_shl_load = yes; then
1.1 paf 16345:
1.66 paf 16346: cat >>confdefs.h <<\_ACEOF
16347: #define HAVE_SHL_LOAD 1
16348: _ACEOF
1.1 paf 16349:
1.128 moko 16350: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16351: LIBADD_SHL_LOAD="-ldld"
16352: fi
16353:
16354: fi
16355:
16356:
16357:
16358: case $host_os in
16359: darwin[1567].*)
16360: # We only want this for pre-Mac OS X 10.4.
16361: echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
16362: echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
16363: if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
16364: echo $ECHO_N "(cached) $ECHO_C" >&6
16365: else
16366: cat >conftest.$ac_ext <<_ACEOF
16367: /* confdefs.h. */
16368: _ACEOF
16369: cat confdefs.h >>conftest.$ac_ext
16370: cat >>conftest.$ac_ext <<_ACEOF
16371: /* end confdefs.h. */
16372: /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
16373: For example, HP-UX 11i <limits.h> declares gettimeofday. */
16374: #define _dyld_func_lookup innocuous__dyld_func_lookup
16375:
16376: /* System header to define __stub macros and hopefully few prototypes,
16377: which can conflict with char _dyld_func_lookup (); below.
16378: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16379: <limits.h> exists even on freestanding compilers. */
16380:
16381: #ifdef __STDC__
16382: # include <limits.h>
16383: #else
16384: # include <assert.h>
16385: #endif
16386:
16387: #undef _dyld_func_lookup
16388:
16389: /* Override any gcc2 internal prototype to avoid an error. */
16390: #ifdef __cplusplus
16391: extern "C"
16392: {
16393: #endif
16394: /* We use char because int might match the return type of a gcc2
16395: builtin and then its argument prototype would still apply. */
16396: char _dyld_func_lookup ();
16397: /* The GNU C library defines this for functions which it implements
16398: to always fail with ENOSYS. Some functions are actually named
16399: something starting with __ and the normal name is an alias. */
16400: #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
16401: choke me
16402: #else
16403: char (*f) () = _dyld_func_lookup;
16404: #endif
16405: #ifdef __cplusplus
16406: }
16407: #endif
16408:
16409: int
16410: main ()
16411: {
16412: return f != _dyld_func_lookup;
16413: ;
16414: return 0;
16415: }
16416: _ACEOF
16417: rm -f conftest.$ac_objext conftest$ac_exeext
16418: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16419: (eval $ac_link) 2>conftest.er1
16420: ac_status=$?
16421: grep -v '^ *+' conftest.er1 >conftest.err
16422: rm -f conftest.er1
16423: cat conftest.err >&5
16424: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16425: (exit $ac_status); } &&
16426: { ac_try='test -z "$ac_c_werror_flag"
16427: || test ! -s conftest.err'
16428: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16429: (eval $ac_try) 2>&5
16430: ac_status=$?
16431: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16432: (exit $ac_status); }; } &&
16433: { ac_try='test -s conftest$ac_exeext'
16434: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16435: (eval $ac_try) 2>&5
16436: ac_status=$?
16437: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16438: (exit $ac_status); }; }; then
16439: ac_cv_func__dyld_func_lookup=yes
16440: else
16441: echo "$as_me: failed program was:" >&5
16442: sed 's/^/| /' conftest.$ac_ext >&5
16443:
16444: ac_cv_func__dyld_func_lookup=no
16445: fi
16446: rm -f conftest.err conftest.$ac_objext \
16447: conftest$ac_exeext conftest.$ac_ext
16448: fi
16449: echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
16450: echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
16451: if test $ac_cv_func__dyld_func_lookup = yes; then
16452:
16453: cat >>confdefs.h <<\_ACEOF
16454: #define HAVE_DYLD 1
16455: _ACEOF
16456:
16457: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
16458: fi
16459:
16460: ;;
16461: beos*)
16462: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
16463: ;;
16464: cygwin* | mingw* | os2* | pw32*)
16465: echo "$as_me:$LINENO: checking whether cygwin_conv_path is declared" >&5
16466: echo $ECHO_N "checking whether cygwin_conv_path is declared... $ECHO_C" >&6
16467: if test "${ac_cv_have_decl_cygwin_conv_path+set}" = set; then
16468: echo $ECHO_N "(cached) $ECHO_C" >&6
16469: else
16470: cat >conftest.$ac_ext <<_ACEOF
16471: /* confdefs.h. */
16472: _ACEOF
16473: cat confdefs.h >>conftest.$ac_ext
16474: cat >>conftest.$ac_ext <<_ACEOF
16475: /* end confdefs.h. */
16476: #include <sys/cygwin.h>
16477:
16478: int
16479: main ()
16480: {
16481: #ifndef cygwin_conv_path
16482: char *p = (char *) cygwin_conv_path;
16483: #endif
16484:
16485: ;
16486: return 0;
16487: }
16488: _ACEOF
16489: rm -f conftest.$ac_objext
16490: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16491: (eval $ac_compile) 2>conftest.er1
16492: ac_status=$?
16493: grep -v '^ *+' conftest.er1 >conftest.err
16494: rm -f conftest.er1
16495: cat conftest.err >&5
16496: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16497: (exit $ac_status); } &&
16498: { ac_try='test -z "$ac_c_werror_flag"
16499: || test ! -s conftest.err'
16500: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16501: (eval $ac_try) 2>&5
16502: ac_status=$?
16503: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16504: (exit $ac_status); }; } &&
16505: { ac_try='test -s conftest.$ac_objext'
16506: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16507: (eval $ac_try) 2>&5
16508: ac_status=$?
16509: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16510: (exit $ac_status); }; }; then
16511: ac_cv_have_decl_cygwin_conv_path=yes
16512: else
16513: echo "$as_me: failed program was:" >&5
16514: sed 's/^/| /' conftest.$ac_ext >&5
16515:
16516: ac_cv_have_decl_cygwin_conv_path=no
16517: fi
16518: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16519: fi
16520: echo "$as_me:$LINENO: result: $ac_cv_have_decl_cygwin_conv_path" >&5
16521: echo "${ECHO_T}$ac_cv_have_decl_cygwin_conv_path" >&6
16522: if test $ac_cv_have_decl_cygwin_conv_path = yes; then
16523:
16524: cat >>confdefs.h <<_ACEOF
16525: #define HAVE_DECL_CYGWIN_CONV_PATH 1
16526: _ACEOF
16527:
16528:
1.66 paf 16529: else
1.128 moko 16530: cat >>confdefs.h <<_ACEOF
16531: #define HAVE_DECL_CYGWIN_CONV_PATH 0
16532: _ACEOF
16533:
16534:
16535: fi
16536:
16537:
16538: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
16539: ;;
16540: esac
16541:
16542: echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16543: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
16544: if test "${ac_cv_lib_dld_dld_link+set}" = set; then
1.66 paf 16545: echo $ECHO_N "(cached) $ECHO_C" >&6
16546: else
16547: ac_check_lib_save_LIBS=$LIBS
1.128 moko 16548: LIBS="-ldld $LIBS"
1.66 paf 16549: cat >conftest.$ac_ext <<_ACEOF
16550: /* confdefs.h. */
16551: _ACEOF
16552: cat confdefs.h >>conftest.$ac_ext
16553: cat >>conftest.$ac_ext <<_ACEOF
16554: /* end confdefs.h. */
1.62 paf 16555:
1.66 paf 16556: /* Override any gcc2 internal prototype to avoid an error. */
16557: #ifdef __cplusplus
16558: extern "C"
16559: #endif
16560: /* We use char because int might match the return type of a gcc2
16561: builtin and then its argument prototype would still apply. */
1.128 moko 16562: char dld_link ();
1.66 paf 16563: int
16564: main ()
16565: {
1.128 moko 16566: dld_link ();
1.66 paf 16567: ;
16568: return 0;
16569: }
16570: _ACEOF
16571: rm -f conftest.$ac_objext conftest$ac_exeext
16572: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 16573: (eval $ac_link) 2>conftest.er1
1.66 paf 16574: ac_status=$?
1.86 paf 16575: grep -v '^ *+' conftest.er1 >conftest.err
16576: rm -f conftest.er1
16577: cat conftest.err >&5
1.66 paf 16578: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579: (exit $ac_status); } &&
1.86 paf 16580: { ac_try='test -z "$ac_c_werror_flag"
16581: || test ! -s conftest.err'
16582: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16583: (eval $ac_try) 2>&5
16584: ac_status=$?
16585: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16586: (exit $ac_status); }; } &&
16587: { ac_try='test -s conftest$ac_exeext'
1.66 paf 16588: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16589: (eval $ac_try) 2>&5
16590: ac_status=$?
16591: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16592: (exit $ac_status); }; }; then
1.128 moko 16593: ac_cv_lib_dld_dld_link=yes
1.66 paf 16594: else
16595: echo "$as_me: failed program was:" >&5
1.128 moko 16596: sed 's/^/| /' conftest.$ac_ext >&5
16597:
16598: ac_cv_lib_dld_dld_link=no
16599: fi
16600: rm -f conftest.err conftest.$ac_objext \
16601: conftest$ac_exeext conftest.$ac_ext
16602: LIBS=$ac_check_lib_save_LIBS
16603: fi
16604: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16605: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
16606: if test $ac_cv_lib_dld_dld_link = yes; then
16607:
16608: cat >>confdefs.h <<\_ACEOF
16609: #define HAVE_DLD 1
16610: _ACEOF
16611:
16612: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
16613: fi
16614:
16615:
16616:
16617:
16618: LT_DLPREOPEN=
16619: if test -n "$LT_DLLOADERS"
16620: then
16621: for lt_loader in $LT_DLLOADERS; do
16622: LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
16623: done
16624:
16625: cat >>confdefs.h <<\_ACEOF
16626: #define HAVE_LIBDLLOADER 1
16627: _ACEOF
16628:
16629: fi
16630:
16631:
16632: LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
16633:
16634:
16635: ac_ext=c
16636: ac_cpp='$CPP $CPPFLAGS'
16637: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16638: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16639: ac_compiler_gnu=$ac_cv_c_compiler_gnu
16640:
16641:
16642: echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
16643: echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
16644: if test "${lt_cv_sys_symbol_underscore+set}" = set; then
16645: echo $ECHO_N "(cached) $ECHO_C" >&6
16646: else
16647: lt_cv_sys_symbol_underscore=no
16648: cat > conftest.$ac_ext <<_LT_EOF
16649: void nm_test_func(){}
16650: int main(){nm_test_func;return 0;}
16651: _LT_EOF
16652: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16653: (eval $ac_compile) 2>&5
16654: ac_status=$?
16655: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16656: (exit $ac_status); }; then
16657: # Now try to grab the symbols.
16658: ac_nlist=conftest.nm
16659: if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
16660: (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
16661: ac_status=$?
16662: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16663: (exit $ac_status); } && test -s "$ac_nlist"; then
16664: # See whether the symbols have a leading underscore.
16665: if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
16666: lt_cv_sys_symbol_underscore=yes
16667: else
16668: if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
16669: :
16670: else
16671: echo "configure: cannot find nm_test_func in $ac_nlist" >&5
16672: fi
16673: fi
16674: else
16675: echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
16676: fi
16677: else
16678: echo "configure: failed program was:" >&5
16679: cat conftest.c >&5
16680: fi
16681: rm -rf conftest*
1.29 paf 16682:
1.66 paf 16683: fi
1.128 moko 16684: echo "$as_me:$LINENO: result: $lt_cv_sys_symbol_underscore" >&5
16685: echo "${ECHO_T}$lt_cv_sys_symbol_underscore" >&6
16686: sys_symbol_underscore=$lt_cv_sys_symbol_underscore
1.29 paf 16687:
1.62 paf 16688:
1.128 moko 16689: if test x"$lt_cv_sys_symbol_underscore" = xyes; then
16690: if test x"$libltdl_cv_func_dlopen" = xyes ||
16691: test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
16692: echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
16693: echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
16694: if test "${libltdl_cv_need_uscore+set}" = set; then
16695: echo $ECHO_N "(cached) $ECHO_C" >&6
1.66 paf 16696: else
1.128 moko 16697: libltdl_cv_need_uscore=unknown
16698: save_LIBS="$LIBS"
16699: LIBS="$LIBS $LIBADD_DLOPEN"
16700: if test "$cross_compiling" = yes; then :
16701: libltdl_cv_need_uscore=cross
16702: else
16703: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16704: lt_status=$lt_dlunknown
16705: cat > conftest.$ac_ext <<_LT_EOF
16706: #line $LINENO "configure"
16707: #include "confdefs.h"
16708:
1.66 paf 16709: #if HAVE_DLFCN_H
1.128 moko 16710: #include <dlfcn.h>
16711: #endif
16712:
16713: #include <stdio.h>
16714:
16715: #ifdef RTLD_GLOBAL
16716: # define LT_DLGLOBAL RTLD_GLOBAL
16717: #else
16718: # ifdef DL_GLOBAL
16719: # define LT_DLGLOBAL DL_GLOBAL
16720: # else
16721: # define LT_DLGLOBAL 0
16722: # endif
16723: #endif
16724:
16725: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16726: find out it does not work in some platform. */
16727: #ifndef LT_DLLAZY_OR_NOW
16728: # ifdef RTLD_LAZY
16729: # define LT_DLLAZY_OR_NOW RTLD_LAZY
16730: # else
16731: # ifdef DL_LAZY
16732: # define LT_DLLAZY_OR_NOW DL_LAZY
16733: # else
16734: # ifdef RTLD_NOW
16735: # define LT_DLLAZY_OR_NOW RTLD_NOW
16736: # else
16737: # ifdef DL_NOW
16738: # define LT_DLLAZY_OR_NOW DL_NOW
16739: # else
16740: # define LT_DLLAZY_OR_NOW 0
16741: # endif
16742: # endif
16743: # endif
16744: # endif
16745: #endif
16746:
16747: /* When -fvisbility=hidden is used, assume the code has been annotated
16748: correspondingly for the symbols needed. */
16749: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16750: int fnord () __attribute__((visibility("default")));
1.66 paf 16751: #endif
1.62 paf 16752:
1.128 moko 16753: int fnord () { return 42; }
16754: int main ()
1.66 paf 16755: {
1.128 moko 16756: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16757: int status = $lt_dlunknown;
16758:
16759: if (self)
16760: {
16761: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16762: else
16763: {
16764: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16765: else puts (dlerror ());
16766: }
16767: /* dlclose (self); */
16768: }
16769: else
16770: puts (dlerror ());
16771:
16772: return status;
1.66 paf 16773: }
1.128 moko 16774: _LT_EOF
16775: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16776: (eval $ac_link) 2>&5
1.66 paf 16777: ac_status=$?
16778: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.128 moko 16779: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16780: (./conftest; exit; ) >&5 2>/dev/null
16781: lt_status=$?
16782: case x$lt_status in
16783: x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
16784: x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
16785: x$lt_dlunknown|x*) ;;
16786: esac
16787: else :
16788: # compilation failed
16789:
16790: fi
16791: fi
16792: rm -fr conftest*
16793:
16794: LIBS="$save_LIBS"
16795:
16796: fi
16797: echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
16798: echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
16799: fi
16800: fi
16801:
16802: if test x"$libltdl_cv_need_uscore" = xyes; then
1.29 paf 16803:
1.66 paf 16804: cat >>confdefs.h <<\_ACEOF
1.128 moko 16805: #define NEED_USCORE 1
1.66 paf 16806: _ACEOF
1.29 paf 16807:
1.128 moko 16808: fi
16809:
16810: echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
16811: echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
16812: if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then
16813: echo $ECHO_N "(cached) $ECHO_C" >&6
1.66 paf 16814: else
1.128 moko 16815: # PORTME does your system automatically load deplibs for dlopen?
16816: # or its logical equivalent (e.g. shl_load for HP-UX < 11)
16817: # For now, we just catch OSes we know something about -- in the
16818: # future, we'll try test this programmatically.
16819: lt_cv_sys_dlopen_deplibs=unknown
16820: case $host_os in
16821: aix3*|aix4.1.*|aix4.2.*)
16822: # Unknown whether this is true for these versions of AIX, but
16823: # we want this `case' here to explicitly catch those versions.
16824: lt_cv_sys_dlopen_deplibs=unknown
16825: ;;
16826: aix[4-9]*)
16827: lt_cv_sys_dlopen_deplibs=yes
16828: ;;
16829: amigaos*)
16830: case $host_cpu in
16831: powerpc)
16832: lt_cv_sys_dlopen_deplibs=no
16833: ;;
16834: esac
16835: ;;
16836: darwin*)
16837: # Assuming the user has installed a libdl from somewhere, this is true
16838: # If you are looking for one http://www.opendarwin.org/projects/dlcompat
16839: lt_cv_sys_dlopen_deplibs=yes
16840: ;;
16841: freebsd* | dragonfly*)
16842: lt_cv_sys_dlopen_deplibs=yes
16843: ;;
16844: gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
16845: # GNU and its variants, using gnu ld.so (Glibc)
16846: lt_cv_sys_dlopen_deplibs=yes
16847: ;;
16848: hpux10*|hpux11*)
16849: lt_cv_sys_dlopen_deplibs=yes
16850: ;;
16851: interix*)
16852: lt_cv_sys_dlopen_deplibs=yes
16853: ;;
16854: irix[12345]*|irix6.[01]*)
16855: # Catch all versions of IRIX before 6.2, and indicate that we don't
16856: # know how it worked for any of those versions.
16857: lt_cv_sys_dlopen_deplibs=unknown
16858: ;;
16859: irix*)
16860: # The case above catches anything before 6.2, and it's known that
16861: # at 6.2 and later dlopen does load deplibs.
16862: lt_cv_sys_dlopen_deplibs=yes
16863: ;;
16864: netbsd*)
16865: lt_cv_sys_dlopen_deplibs=yes
16866: ;;
16867: openbsd*)
16868: lt_cv_sys_dlopen_deplibs=yes
16869: ;;
16870: osf[1234]*)
16871: # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
16872: # it did *not* use an RPATH in a shared library to find objects the
16873: # library depends on, so we explicitly say `no'.
16874: lt_cv_sys_dlopen_deplibs=no
16875: ;;
16876: osf5.0|osf5.0a|osf5.1)
16877: # dlopen *does* load deplibs and with the right loader patch applied
16878: # it even uses RPATH in a shared library to search for shared objects
16879: # that the library depends on, but there's no easy way to know if that
16880: # patch is installed. Since this is the case, all we can really
16881: # say is unknown -- it depends on the patch being installed. If
16882: # it is, this changes to `yes'. Without it, it would be `no'.
16883: lt_cv_sys_dlopen_deplibs=unknown
16884: ;;
16885: osf*)
16886: # the two cases above should catch all versions of osf <= 5.1. Read
16887: # the comments above for what we know about them.
16888: # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
16889: # is used to find them so we can finally say `yes'.
16890: lt_cv_sys_dlopen_deplibs=yes
16891: ;;
16892: qnx*)
16893: lt_cv_sys_dlopen_deplibs=yes
16894: ;;
16895: solaris*)
16896: lt_cv_sys_dlopen_deplibs=yes
16897: ;;
16898: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16899: libltdl_cv_sys_dlopen_deplibs=yes
16900: ;;
16901: esac
16902:
16903: fi
16904: echo "$as_me:$LINENO: result: $lt_cv_sys_dlopen_deplibs" >&5
16905: echo "${ECHO_T}$lt_cv_sys_dlopen_deplibs" >&6
16906: if test "$lt_cv_sys_dlopen_deplibs" != yes; then
16907:
16908: cat >>confdefs.h <<\_ACEOF
16909: #define LTDL_DLOPEN_DEPLIBS 1
16910: _ACEOF
16911:
16912: fi
16913:
16914: :
16915:
1.29 paf 16916:
1.128 moko 16917: for ac_header in argz.h
16918: do
16919: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16920: echo "$as_me:$LINENO: checking for $ac_header" >&5
16921: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16922: if eval "test \"\${$as_ac_Header+set}\" = set"; then
1.66 paf 16923: echo $ECHO_N "(cached) $ECHO_C" >&6
16924: else
1.128 moko 16925: cat >conftest.$ac_ext <<_ACEOF
1.66 paf 16926: /* confdefs.h. */
16927: _ACEOF
16928: cat confdefs.h >>conftest.$ac_ext
16929: cat >>conftest.$ac_ext <<_ACEOF
16930: /* end confdefs.h. */
1.128 moko 16931: $ac_includes_default
1.29 paf 16932:
1.128 moko 16933: #include <$ac_header>
1.66 paf 16934: _ACEOF
1.128 moko 16935: rm -f conftest.$ac_objext
16936: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16937: (eval $ac_compile) 2>conftest.er1
1.66 paf 16938: ac_status=$?
1.86 paf 16939: grep -v '^ *+' conftest.er1 >conftest.err
16940: rm -f conftest.er1
16941: cat conftest.err >&5
1.66 paf 16942: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16943: (exit $ac_status); } &&
1.86 paf 16944: { ac_try='test -z "$ac_c_werror_flag"
16945: || test ! -s conftest.err'
16946: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16947: (eval $ac_try) 2>&5
16948: ac_status=$?
16949: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16950: (exit $ac_status); }; } &&
1.128 moko 16951: { ac_try='test -s conftest.$ac_objext'
1.66 paf 16952: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16953: (eval $ac_try) 2>&5
16954: ac_status=$?
16955: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16956: (exit $ac_status); }; }; then
1.128 moko 16957: eval "$as_ac_Header=yes"
1.66 paf 16958: else
16959: echo "$as_me: failed program was:" >&5
16960: sed 's/^/| /' conftest.$ac_ext >&5
1.29 paf 16961:
1.128 moko 16962: eval "$as_ac_Header=no"
16963: fi
16964: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.66 paf 16965: fi
1.128 moko 16966: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16967: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16968: if test `eval echo '${'$as_ac_Header'}'` = yes; then
16969: cat >>confdefs.h <<_ACEOF
16970: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16971: _ACEOF
16972:
1.66 paf 16973: fi
1.62 paf 16974:
1.128 moko 16975: done
16976:
1.29 paf 16977:
1.128 moko 16978: echo "$as_me:$LINENO: checking for error_t" >&5
16979: echo $ECHO_N "checking for error_t... $ECHO_C" >&6
16980: if test "${ac_cv_type_error_t+set}" = set; then
1.66 paf 16981: echo $ECHO_N "(cached) $ECHO_C" >&6
16982: else
1.128 moko 16983: cat >conftest.$ac_ext <<_ACEOF
1.66 paf 16984: /* confdefs.h. */
16985: _ACEOF
16986: cat confdefs.h >>conftest.$ac_ext
16987: cat >>conftest.$ac_ext <<_ACEOF
16988: /* end confdefs.h. */
1.128 moko 16989: #if defined(HAVE_ARGZ_H)
16990: # include <argz.h>
16991: #endif
1.29 paf 16992:
1.66 paf 16993: int
16994: main ()
16995: {
1.128 moko 16996: if ((error_t *) 0)
16997: return 0;
16998: if (sizeof (error_t))
16999: return 0;
1.66 paf 17000: ;
17001: return 0;
17002: }
17003: _ACEOF
1.128 moko 17004: rm -f conftest.$ac_objext
17005: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17006: (eval $ac_compile) 2>conftest.er1
1.66 paf 17007: ac_status=$?
1.86 paf 17008: grep -v '^ *+' conftest.er1 >conftest.err
17009: rm -f conftest.er1
17010: cat conftest.err >&5
1.66 paf 17011: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17012: (exit $ac_status); } &&
1.86 paf 17013: { ac_try='test -z "$ac_c_werror_flag"
17014: || test ! -s conftest.err'
17015: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17016: (eval $ac_try) 2>&5
17017: ac_status=$?
17018: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17019: (exit $ac_status); }; } &&
1.128 moko 17020: { ac_try='test -s conftest.$ac_objext'
1.66 paf 17021: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17022: (eval $ac_try) 2>&5
17023: ac_status=$?
17024: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025: (exit $ac_status); }; }; then
1.128 moko 17026: ac_cv_type_error_t=yes
1.66 paf 17027: else
17028: echo "$as_me: failed program was:" >&5
17029: sed 's/^/| /' conftest.$ac_ext >&5
1.29 paf 17030:
1.128 moko 17031: ac_cv_type_error_t=no
1.66 paf 17032: fi
1.128 moko 17033: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.66 paf 17034: fi
1.128 moko 17035: echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
17036: echo "${ECHO_T}$ac_cv_type_error_t" >&6
17037: if test $ac_cv_type_error_t = yes; then
1.29 paf 17038:
1.128 moko 17039: cat >>confdefs.h <<_ACEOF
17040: #define HAVE_ERROR_T 1
1.62 paf 17041: _ACEOF
1.16 paf 17042:
17043:
1.128 moko 17044: else
1.16 paf 17045:
1.128 moko 17046: cat >>confdefs.h <<\_ACEOF
17047: #define error_t int
17048: _ACEOF
1.16 paf 17049:
1.12 paf 17050:
1.128 moko 17051: cat >>confdefs.h <<\_ACEOF
17052: #define __error_t_defined 1
17053: _ACEOF
1.12 paf 17054:
1.66 paf 17055: fi
1.12 paf 17056:
1.128 moko 17057:
17058: ARGZ_H=
1.12 paf 17059:
17060:
1.62 paf 17061:
1.1 paf 17062:
17063:
17064:
17065:
1.128 moko 17066: for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
17067: argz_next argz_stringify
1.66 paf 17068: do
17069: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17070: echo "$as_me:$LINENO: checking for $ac_func" >&5
17071: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17072: if eval "test \"\${$as_ac_var+set}\" = set"; then
1.62 paf 17073: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 17074: else
1.64 paf 17075: cat >conftest.$ac_ext <<_ACEOF
1.62 paf 17076: /* confdefs.h. */
17077: _ACEOF
17078: cat confdefs.h >>conftest.$ac_ext
17079: cat >>conftest.$ac_ext <<_ACEOF
17080: /* end confdefs.h. */
1.86 paf 17081: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17082: For example, HP-UX 11i <limits.h> declares gettimeofday. */
17083: #define $ac_func innocuous_$ac_func
17084:
1.64 paf 17085: /* System header to define __stub macros and hopefully few prototypes,
1.66 paf 17086: which can conflict with char $ac_func (); below.
1.64 paf 17087: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17088: <limits.h> exists even on freestanding compilers. */
1.86 paf 17089:
1.64 paf 17090: #ifdef __STDC__
17091: # include <limits.h>
17092: #else
17093: # include <assert.h>
17094: #endif
1.86 paf 17095:
17096: #undef $ac_func
17097:
1.8 paf 17098: /* Override any gcc2 internal prototype to avoid an error. */
17099: #ifdef __cplusplus
17100: extern "C"
1.64 paf 17101: {
1.8 paf 17102: #endif
17103: /* We use char because int might match the return type of a gcc2
1.62 paf 17104: builtin and then its argument prototype would still apply. */
1.66 paf 17105: char $ac_func ();
1.64 paf 17106: /* The GNU C library defines this for functions which it implements
17107: to always fail with ENOSYS. Some functions are actually named
17108: something starting with __ and the normal name is an alias. */
1.66 paf 17109: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.64 paf 17110: choke me
17111: #else
1.66 paf 17112: char (*f) () = $ac_func;
1.64 paf 17113: #endif
17114: #ifdef __cplusplus
17115: }
17116: #endif
17117:
1.62 paf 17118: int
17119: main ()
17120: {
1.66 paf 17121: return f != $ac_func;
1.62 paf 17122: ;
17123: return 0;
17124: }
17125: _ACEOF
17126: rm -f conftest.$ac_objext conftest$ac_exeext
17127: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 17128: (eval $ac_link) 2>conftest.er1
1.62 paf 17129: ac_status=$?
1.86 paf 17130: grep -v '^ *+' conftest.er1 >conftest.err
17131: rm -f conftest.er1
17132: cat conftest.err >&5
1.62 paf 17133: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17134: (exit $ac_status); } &&
1.86 paf 17135: { ac_try='test -z "$ac_c_werror_flag"
17136: || test ! -s conftest.err'
17137: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17138: (eval $ac_try) 2>&5
17139: ac_status=$?
17140: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17141: (exit $ac_status); }; } &&
17142: { ac_try='test -s conftest$ac_exeext'
1.62 paf 17143: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.128 moko 17144: (eval $ac_try) 2>&5
17145: ac_status=$?
17146: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17147: (exit $ac_status); }; }; then
17148: eval "$as_ac_var=yes"
17149: else
17150: echo "$as_me: failed program was:" >&5
17151: sed 's/^/| /' conftest.$ac_ext >&5
17152:
17153: eval "$as_ac_var=no"
17154: fi
17155: rm -f conftest.err conftest.$ac_objext \
17156: conftest$ac_exeext conftest.$ac_ext
17157: fi
17158: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17159: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17160: if test `eval echo '${'$as_ac_var'}'` = yes; then
17161: cat >>confdefs.h <<_ACEOF
17162: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17163: _ACEOF
17164:
17165: else
17166: ARGZ_H=argz.h;
17167:
17168: _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
17169:
17170: fi
17171: done
17172:
17173:
17174: if test -z "$ARGZ_H"; then
17175: echo "$as_me:$LINENO: checking if argz actually works" >&5
17176: echo $ECHO_N "checking if argz actually works... $ECHO_C" >&6
17177: if test "${lt_cv_sys_argz_works+set}" = set; then
17178: echo $ECHO_N "(cached) $ECHO_C" >&6
17179: else
17180: case $host_os in #(
17181: *cygwin*)
17182: lt_cv_sys_argz_works=no
17183: if test "$cross_compiling" != no; then
17184: lt_cv_sys_argz_works="guessing no"
17185: else
17186: lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
17187: save_IFS=$IFS
17188: IFS=-.
17189: set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
17190: IFS=$save_IFS
17191: lt_os_major=${2-0}
17192: lt_os_minor=${3-0}
17193: lt_os_micro=${4-0}
17194: if test "$lt_os_major" -gt 1 \
17195: || { test "$lt_os_major" -eq 1 \
17196: && { test "$lt_os_minor" -gt 5 \
17197: || { test "$lt_os_minor" -eq 5 \
17198: && test "$lt_os_micro" -gt 24; }; }; }; then
17199: lt_cv_sys_argz_works=yes
17200: fi
17201: fi
17202: ;; #(
17203: *) lt_cv_sys_argz_works=yes ;;
17204: esac
17205: fi
17206: echo "$as_me:$LINENO: result: $lt_cv_sys_argz_works" >&5
17207: echo "${ECHO_T}$lt_cv_sys_argz_works" >&6
17208: if test "$lt_cv_sys_argz_works" = yes; then
17209:
17210: cat >>confdefs.h <<\_ACEOF
17211: #define HAVE_WORKING_ARGZ 1
17212: _ACEOF
17213:
1.62 paf 17214: else
1.128 moko 17215: ARGZ_H=argz.h
17216:
17217:
17218: _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
17219:
17220: fi
1.62 paf 17221:
17222: fi
1.128 moko 17223:
17224:
17225:
17226:
17227: echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
17228: echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
17229: if test "${libltdl_cv_preloaded_symbols+set}" = set; then
17230: echo $ECHO_N "(cached) $ECHO_C" >&6
17231: else
17232: if test -n "$lt_cv_sys_global_symbol_pipe"; then
17233: libltdl_cv_preloaded_symbols=yes
17234: else
17235: libltdl_cv_preloaded_symbols=no
17236: fi
17237:
1.62 paf 17238: fi
1.128 moko 17239: echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
17240: echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
17241: if test x"$libltdl_cv_preloaded_symbols" = xyes; then
17242:
17243: cat >>confdefs.h <<\_ACEOF
17244: #define HAVE_PRELOADED_SYMBOLS 1
1.66 paf 17245: _ACEOF
17246:
17247: fi
17248:
1.128 moko 17249: # Set options
17250:
17251:
17252:
17253:
17254:
17255:
17256:
17257:
17258:
17259:
1.66 paf 17260:
17261:
1.128 moko 17262: # Check whether --with-included_ltdl or --without-included_ltdl was given.
17263: if test "${with_included_ltdl+set}" = set; then
17264: withval="$with_included_ltdl"
1.64 paf 17265:
1.128 moko 17266: fi;
1.64 paf 17267:
1.128 moko 17268: if test "x$with_included_ltdl" != xyes; then
17269: # We are not being forced to use the included libltdl sources, so
17270: # decide whether there is a useful installed version we can use.
17271: echo "$as_me:$LINENO: checking for ltdl.h" >&5
17272: echo $ECHO_N "checking for ltdl.h... $ECHO_C" >&6
17273: if test "${ac_cv_header_ltdl_h+set}" = set; then
1.79 paf 17274: echo $ECHO_N "(cached) $ECHO_C" >&6
17275: else
1.128 moko 17276: cat >conftest.$ac_ext <<_ACEOF
1.79 paf 17277: /* confdefs.h. */
17278: _ACEOF
17279: cat confdefs.h >>conftest.$ac_ext
17280: cat >>conftest.$ac_ext <<_ACEOF
17281: /* end confdefs.h. */
1.128 moko 17282: $ac_includes_default
1.79 paf 17283:
17284:
1.128 moko 17285: #include <ltdl.h>
1.79 paf 17286: _ACEOF
17287: rm -f conftest.$ac_objext
17288: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 17289: (eval $ac_compile) 2>conftest.er1
1.79 paf 17290: ac_status=$?
1.86 paf 17291: grep -v '^ *+' conftest.er1 >conftest.err
17292: rm -f conftest.er1
17293: cat conftest.err >&5
1.79 paf 17294: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17295: (exit $ac_status); } &&
1.86 paf 17296: { ac_try='test -z "$ac_c_werror_flag"
17297: || test ! -s conftest.err'
17298: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17299: (eval $ac_try) 2>&5
17300: ac_status=$?
17301: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17302: (exit $ac_status); }; } &&
17303: { ac_try='test -s conftest.$ac_objext'
1.79 paf 17304: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17305: (eval $ac_try) 2>&5
17306: ac_status=$?
17307: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17308: (exit $ac_status); }; }; then
1.128 moko 17309: ac_cv_header_ltdl_h=yes
17310: else
17311: echo "$as_me: failed program was:" >&5
17312: sed 's/^/| /' conftest.$ac_ext >&5
17313:
17314: ac_cv_header_ltdl_h=no
17315: fi
17316: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17317: fi
17318: echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
17319: echo "${ECHO_T}$ac_cv_header_ltdl_h" >&6
17320: if test $ac_cv_header_ltdl_h = yes; then
17321: echo "$as_me:$LINENO: checking whether lt_dlinterface_register is declared" >&5
17322: echo $ECHO_N "checking whether lt_dlinterface_register is declared... $ECHO_C" >&6
17323: if test "${ac_cv_have_decl_lt_dlinterface_register+set}" = set; then
17324: echo $ECHO_N "(cached) $ECHO_C" >&6
17325: else
17326: cat >conftest.$ac_ext <<_ACEOF
1.79 paf 17327: /* confdefs.h. */
17328: _ACEOF
17329: cat confdefs.h >>conftest.$ac_ext
17330: cat >>conftest.$ac_ext <<_ACEOF
17331: /* end confdefs.h. */
1.128 moko 17332: $ac_includes_default
17333: #include <ltdl.h>
1.79 paf 17334:
17335: int
17336: main ()
17337: {
1.128 moko 17338: #ifndef lt_dlinterface_register
17339: char *p = (char *) lt_dlinterface_register;
1.79 paf 17340: #endif
17341:
17342: ;
17343: return 0;
17344: }
17345: _ACEOF
17346: rm -f conftest.$ac_objext
17347: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 17348: (eval $ac_compile) 2>conftest.er1
1.79 paf 17349: ac_status=$?
1.86 paf 17350: grep -v '^ *+' conftest.er1 >conftest.err
17351: rm -f conftest.er1
17352: cat conftest.err >&5
1.79 paf 17353: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17354: (exit $ac_status); } &&
1.86 paf 17355: { ac_try='test -z "$ac_c_werror_flag"
17356: || test ! -s conftest.err'
17357: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17358: (eval $ac_try) 2>&5
17359: ac_status=$?
17360: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17361: (exit $ac_status); }; } &&
17362: { ac_try='test -s conftest.$ac_objext'
1.79 paf 17363: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17364: (eval $ac_try) 2>&5
17365: ac_status=$?
17366: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17367: (exit $ac_status); }; }; then
1.128 moko 17368: ac_cv_have_decl_lt_dlinterface_register=yes
1.79 paf 17369: else
17370: echo "$as_me: failed program was:" >&5
17371: sed 's/^/| /' conftest.$ac_ext >&5
17372:
1.128 moko 17373: ac_cv_have_decl_lt_dlinterface_register=no
1.79 paf 17374: fi
1.86 paf 17375: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.128 moko 17376: fi
17377: echo "$as_me:$LINENO: result: $ac_cv_have_decl_lt_dlinterface_register" >&5
17378: echo "${ECHO_T}$ac_cv_have_decl_lt_dlinterface_register" >&6
17379: if test $ac_cv_have_decl_lt_dlinterface_register = yes; then
17380: echo "$as_me:$LINENO: checking for lt_dladvise_preload in -lltdl" >&5
17381: echo $ECHO_N "checking for lt_dladvise_preload in -lltdl... $ECHO_C" >&6
17382: if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then
17383: echo $ECHO_N "(cached) $ECHO_C" >&6
1.79 paf 17384: else
1.128 moko 17385: ac_check_lib_save_LIBS=$LIBS
17386: LIBS="-lltdl $LIBS"
17387: cat >conftest.$ac_ext <<_ACEOF
1.79 paf 17388: /* confdefs.h. */
17389: _ACEOF
17390: cat confdefs.h >>conftest.$ac_ext
17391: cat >>conftest.$ac_ext <<_ACEOF
17392: /* end confdefs.h. */
1.128 moko 17393:
17394: /* Override any gcc2 internal prototype to avoid an error. */
17395: #ifdef __cplusplus
17396: extern "C"
17397: #endif
17398: /* We use char because int might match the return type of a gcc2
17399: builtin and then its argument prototype would still apply. */
17400: char lt_dladvise_preload ();
1.79 paf 17401: int
17402: main ()
17403: {
1.128 moko 17404: lt_dladvise_preload ();
1.79 paf 17405: ;
17406: return 0;
17407: }
17408: _ACEOF
1.128 moko 17409: rm -f conftest.$ac_objext conftest$ac_exeext
17410: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17411: (eval $ac_link) 2>conftest.er1
1.79 paf 17412: ac_status=$?
1.86 paf 17413: grep -v '^ *+' conftest.er1 >conftest.err
17414: rm -f conftest.er1
17415: cat conftest.err >&5
1.79 paf 17416: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17417: (exit $ac_status); } &&
1.86 paf 17418: { ac_try='test -z "$ac_c_werror_flag"
17419: || test ! -s conftest.err'
17420: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17421: (eval $ac_try) 2>&5
17422: ac_status=$?
17423: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17424: (exit $ac_status); }; } &&
1.128 moko 17425: { ac_try='test -s conftest$ac_exeext'
1.79 paf 17426: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17427: (eval $ac_try) 2>&5
17428: ac_status=$?
17429: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17430: (exit $ac_status); }; }; then
1.128 moko 17431: ac_cv_lib_ltdl_lt_dladvise_preload=yes
1.79 paf 17432: else
17433: echo "$as_me: failed program was:" >&5
17434: sed 's/^/| /' conftest.$ac_ext >&5
17435:
1.128 moko 17436: ac_cv_lib_ltdl_lt_dladvise_preload=no
17437: fi
17438: rm -f conftest.err conftest.$ac_objext \
17439: conftest$ac_exeext conftest.$ac_ext
17440: LIBS=$ac_check_lib_save_LIBS
1.79 paf 17441: fi
1.128 moko 17442: echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
17443: echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dladvise_preload" >&6
17444: if test $ac_cv_lib_ltdl_lt_dladvise_preload = yes; then
17445: with_included_ltdl=no
1.79 paf 17446: else
1.128 moko 17447: with_included_ltdl=yes
17448: fi
17449:
1.79 paf 17450: else
1.128 moko 17451: with_included_ltdl=yes
17452: fi
1.79 paf 17453:
1.128 moko 17454: else
17455: with_included_ltdl=yes
1.79 paf 17456: fi
1.128 moko 17457:
17458:
1.79 paf 17459: fi
1.128 moko 17460:
17461:
17462:
17463:
17464: # Check whether --with-ltdl_include or --without-ltdl_include was given.
17465: if test "${with_ltdl_include+set}" = set; then
17466: withval="$with_ltdl_include"
17467:
17468: fi;
17469:
17470: if test -n "$with_ltdl_include"; then
17471: if test -f "$with_ltdl_include/ltdl.h"; then :
17472: else
17473: { { echo "$as_me:$LINENO: error: invalid ltdl include directory: \`$with_ltdl_include'" >&5
17474: echo "$as_me: error: invalid ltdl include directory: \`$with_ltdl_include'" >&2;}
17475: { (exit 1); exit 1; }; }
17476: fi
17477: else
17478: with_ltdl_include=no
1.79 paf 17479: fi
1.128 moko 17480:
17481:
17482: # Check whether --with-ltdl_lib or --without-ltdl_lib was given.
17483: if test "${with_ltdl_lib+set}" = set; then
17484: withval="$with_ltdl_lib"
17485:
17486: fi;
17487:
17488: if test -n "$with_ltdl_lib"; then
17489: if test -f "$with_ltdl_lib/libltdl.la"; then :
17490: else
17491: { { echo "$as_me:$LINENO: error: invalid ltdl library directory: \`$with_ltdl_lib'" >&5
17492: echo "$as_me: error: invalid ltdl library directory: \`$with_ltdl_lib'" >&2;}
17493: { (exit 1); exit 1; }; }
17494: fi
17495: else
17496: with_ltdl_lib=no
1.79 paf 17497: fi
17498:
1.128 moko 17499: case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
17500: ,yes,no,no,)
17501: case $enable_ltdl_convenience in
17502: no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
17503: echo "$as_me: error: this package needs a convenience libltdl" >&2;}
17504: { (exit 1); exit 1; }; } ;;
17505: "") enable_ltdl_convenience=yes
17506: ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
17507: esac
17508: LIBLTDL='${top_builddir}/'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
17509: LTDLDEPS=$LIBLTDL
17510: LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
17511:
17512:
17513:
17514:
17515:
17516: # For backwards non-gettext consistent compatibility...
17517: INCLTDL="$LTDLINCL"
17518:
1.79 paf 17519:
1.128 moko 17520: ;;
17521: ,no,no,no,)
17522: # If the included ltdl is not to be used, then use the
17523: # preinstalled libltdl we found.
1.79 paf 17524:
17525: cat >>confdefs.h <<\_ACEOF
1.128 moko 17526: #define HAVE_LTDL 1
1.79 paf 17527: _ACEOF
17528:
1.128 moko 17529: LIBLTDL=-lltdl
17530: LTDLDEPS=
17531: LTDLINCL=
17532: ;;
17533: ,no*,no,*)
17534: { { echo "$as_me:$LINENO: error: \`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" >&5
17535: echo "$as_me: error: \`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" >&2;}
1.79 paf 17536: { (exit 1); exit 1; }; }
1.128 moko 17537: ;;
17538: *) with_included_ltdl=no
17539: LIBLTDL="-L$with_ltdl_lib -lltdl"
17540: LTDLDEPS=
17541: LTDLINCL="-I$with_ltdl_include"
17542: ;;
17543: esac
17544: INCLTDL="$LTDLINCL"
17545:
17546: # Report our decision...
17547: echo "$as_me:$LINENO: checking where to find libltdl headers" >&5
17548: echo $ECHO_N "checking where to find libltdl headers... $ECHO_C" >&6
17549: echo "$as_me:$LINENO: result: $LTDLINCL" >&5
17550: echo "${ECHO_T}$LTDLINCL" >&6
17551: echo "$as_me:$LINENO: checking where to find libltdl library" >&5
17552: echo $ECHO_N "checking where to find libltdl library... $ECHO_C" >&6
17553: echo "$as_me:$LINENO: result: $LIBLTDL" >&5
17554: echo "${ECHO_T}$LIBLTDL" >&6
17555:
17556:
17557:
17558: # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
17559: if test "${enable_ltdl_install+set}" = set; then
17560: enableval="$enable_ltdl_install"
17561:
17562: fi;
17563:
17564: case ,${enable_ltdl_install},${enable_ltdl_convenience} in
17565: *yes*) ;;
17566: *) enable_ltdl_convenience=yes ;;
17567: esac
17568:
17569:
17570:
17571: if test x"${enable_ltdl_install-no}" != xno; then
17572: INSTALL_LTDL_TRUE=
17573: INSTALL_LTDL_FALSE='#'
17574: else
17575: INSTALL_LTDL_TRUE='#'
17576: INSTALL_LTDL_FALSE=
17577: fi
17578:
17579:
17580:
17581: if test x"${enable_ltdl_convenience-no}" != xno; then
17582: CONVENIENCE_LTDL_TRUE=
17583: CONVENIENCE_LTDL_FALSE='#'
17584: else
17585: CONVENIENCE_LTDL_TRUE='#'
17586: CONVENIENCE_LTDL_FALSE=
17587: fi
17588:
17589:
17590:
17591:
17592:
17593: subdirs="$subdirs src/lib/ltdl"
17594:
17595:
17596:
17597:
17598: # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
17599: # the user used. This is so that ltdl.h can pick up the parent projects
17600: # config.h file, The first file in AC_CONFIG_HEADERS must contain the
17601: # definitions required by ltdl.c.
17602: # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
17603:
17604:
17605:
17606:
17607:
17608:
17609:
1.79 paf 17610:
17611:
1.128 moko 17612: for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
17613: do
17614: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17615: echo "$as_me:$LINENO: checking for $ac_header" >&5
17616: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17617: if eval "test \"\${$as_ac_Header+set}\" = set"; then
1.62 paf 17618: echo $ECHO_N "(cached) $ECHO_C" >&6
17619: else
1.66 paf 17620: cat >conftest.$ac_ext <<_ACEOF
1.62 paf 17621: /* confdefs.h. */
17622: _ACEOF
17623: cat confdefs.h >>conftest.$ac_ext
17624: cat >>conftest.$ac_ext <<_ACEOF
17625: /* end confdefs.h. */
1.128 moko 17626: $ac_includes_default
17627:
17628: #include <$ac_header>
1.62 paf 17629: _ACEOF
1.128 moko 17630: rm -f conftest.$ac_objext
17631: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17632: (eval $ac_compile) 2>conftest.er1
1.62 paf 17633: ac_status=$?
1.66 paf 17634: grep -v '^ *+' conftest.er1 >conftest.err
17635: rm -f conftest.er1
17636: cat conftest.err >&5
1.62 paf 17637: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.128 moko 17638: (exit $ac_status); } &&
17639: { ac_try='test -z "$ac_c_werror_flag"
17640: || test ! -s conftest.err'
17641: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17642: (eval $ac_try) 2>&5
17643: ac_status=$?
17644: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17645: (exit $ac_status); }; } &&
17646: { ac_try='test -s conftest.$ac_objext'
17647: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17648: (eval $ac_try) 2>&5
17649: ac_status=$?
17650: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17651: (exit $ac_status); }; }; then
17652: eval "$as_ac_Header=yes"
1.62 paf 17653: else
17654: echo "$as_me: failed program was:" >&5
17655: sed 's/^/| /' conftest.$ac_ext >&5
17656:
1.128 moko 17657: eval "$as_ac_Header=no"
17658: fi
17659: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.62 paf 17660: fi
1.128 moko 17661: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17662: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17663: if test `eval echo '${'$as_ac_Header'}'` = yes; then
17664: cat >>confdefs.h <<_ACEOF
17665: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.62 paf 17666: _ACEOF
17667:
17668: fi
1.66 paf 17669:
17670: done
1.64 paf 17671:
17672:
1.128 moko 17673:
17674:
17675:
17676: for ac_func in closedir opendir readdir
17677: do
17678: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17679: echo "$as_me:$LINENO: checking for $ac_func" >&5
17680: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17681: if eval "test \"\${$as_ac_var+set}\" = set"; then
17682: echo $ECHO_N "(cached) $ECHO_C" >&6
1.64 paf 17683: else
17684: cat >conftest.$ac_ext <<_ACEOF
17685: /* confdefs.h. */
17686: _ACEOF
17687: cat confdefs.h >>conftest.$ac_ext
17688: cat >>conftest.$ac_ext <<_ACEOF
17689: /* end confdefs.h. */
1.128 moko 17690: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17691: For example, HP-UX 11i <limits.h> declares gettimeofday. */
17692: #define $ac_func innocuous_$ac_func
17693:
17694: /* System header to define __stub macros and hopefully few prototypes,
17695: which can conflict with char $ac_func (); below.
17696: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17697: <limits.h> exists even on freestanding compilers. */
17698:
1.66 paf 17699: #ifdef __STDC__
17700: # include <limits.h>
17701: #else
17702: # include <assert.h>
1.64 paf 17703: #endif
1.128 moko 17704:
17705: #undef $ac_func
17706:
17707: /* Override any gcc2 internal prototype to avoid an error. */
17708: #ifdef __cplusplus
17709: extern "C"
17710: {
17711: #endif
17712: /* We use char because int might match the return type of a gcc2
17713: builtin and then its argument prototype would still apply. */
17714: char $ac_func ();
17715: /* The GNU C library defines this for functions which it implements
17716: to always fail with ENOSYS. Some functions are actually named
17717: something starting with __ and the normal name is an alias. */
17718: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17719: choke me
17720: #else
17721: char (*f) () = $ac_func;
17722: #endif
17723: #ifdef __cplusplus
17724: }
17725: #endif
17726:
17727: int
17728: main ()
17729: {
17730: return f != $ac_func;
17731: ;
17732: return 0;
17733: }
1.64 paf 17734: _ACEOF
1.128 moko 17735: rm -f conftest.$ac_objext conftest$ac_exeext
17736: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17737: (eval $ac_link) 2>conftest.er1
1.64 paf 17738: ac_status=$?
1.66 paf 17739: grep -v '^ *+' conftest.er1 >conftest.err
17740: rm -f conftest.er1
17741: cat conftest.err >&5
1.64 paf 17742: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.128 moko 17743: (exit $ac_status); } &&
17744: { ac_try='test -z "$ac_c_werror_flag"
17745: || test ! -s conftest.err'
17746: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17747: (eval $ac_try) 2>&5
17748: ac_status=$?
17749: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17750: (exit $ac_status); }; } &&
17751: { ac_try='test -s conftest$ac_exeext'
17752: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17753: (eval $ac_try) 2>&5
1.62 paf 17754: ac_status=$?
17755: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.128 moko 17756: (exit $ac_status); }; }; then
17757: eval "$as_ac_var=yes"
1.62 paf 17758: else
17759: echo "$as_me: failed program was:" >&5
17760: sed 's/^/| /' conftest.$ac_ext >&5
17761:
1.128 moko 17762: eval "$as_ac_var=no"
17763: fi
17764: rm -f conftest.err conftest.$ac_objext \
17765: conftest$ac_exeext conftest.$ac_ext
1.62 paf 17766: fi
1.128 moko 17767: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17768: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17769: if test `eval echo '${'$as_ac_var'}'` = yes; then
17770: cat >>confdefs.h <<_ACEOF
17771: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17772: _ACEOF
1.66 paf 17773:
17774: else
1.64 paf 17775:
1.66 paf 17776:
1.128 moko 17777: _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
1.1 paf 17778:
1.66 paf 17779: fi
1.128 moko 17780: done
17781:
1.66 paf 17782:
17783:
1.128 moko 17784: for ac_func in strlcat strlcpy
17785: do
17786: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17787: echo "$as_me:$LINENO: checking for $ac_func" >&5
17788: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17789: if eval "test \"\${$as_ac_var+set}\" = set"; then
1.62 paf 17790: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 paf 17791: else
1.66 paf 17792: cat >conftest.$ac_ext <<_ACEOF
1.62 paf 17793: /* confdefs.h. */
17794: _ACEOF
17795: cat confdefs.h >>conftest.$ac_ext
17796: cat >>conftest.$ac_ext <<_ACEOF
17797: /* end confdefs.h. */
1.128 moko 17798: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17799: For example, HP-UX 11i <limits.h> declares gettimeofday. */
17800: #define $ac_func innocuous_$ac_func
17801:
17802: /* System header to define __stub macros and hopefully few prototypes,
17803: which can conflict with char $ac_func (); below.
17804: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17805: <limits.h> exists even on freestanding compilers. */
17806:
17807: #ifdef __STDC__
17808: # include <limits.h>
17809: #else
17810: # include <assert.h>
17811: #endif
17812:
17813: #undef $ac_func
17814:
17815: /* Override any gcc2 internal prototype to avoid an error. */
17816: #ifdef __cplusplus
17817: extern "C"
17818: {
17819: #endif
17820: /* We use char because int might match the return type of a gcc2
17821: builtin and then its argument prototype would still apply. */
17822: char $ac_func ();
17823: /* The GNU C library defines this for functions which it implements
17824: to always fail with ENOSYS. Some functions are actually named
17825: something starting with __ and the normal name is an alias. */
17826: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17827: choke me
17828: #else
17829: char (*f) () = $ac_func;
17830: #endif
17831: #ifdef __cplusplus
17832: }
17833: #endif
1.62 paf 17834:
17835: int
17836: main ()
17837: {
1.128 moko 17838: return f != $ac_func;
1.62 paf 17839: ;
17840: return 0;
17841: }
17842: _ACEOF
1.128 moko 17843: rm -f conftest.$ac_objext conftest$ac_exeext
17844: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17845: (eval $ac_link) 2>conftest.er1
1.62 paf 17846: ac_status=$?
1.86 paf 17847: grep -v '^ *+' conftest.er1 >conftest.err
17848: rm -f conftest.er1
17849: cat conftest.err >&5
1.62 paf 17850: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17851: (exit $ac_status); } &&
1.86 paf 17852: { ac_try='test -z "$ac_c_werror_flag"
17853: || test ! -s conftest.err'
17854: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17855: (eval $ac_try) 2>&5
17856: ac_status=$?
17857: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17858: (exit $ac_status); }; } &&
1.128 moko 17859: { ac_try='test -s conftest$ac_exeext'
1.62 paf 17860: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17861: (eval $ac_try) 2>&5
17862: ac_status=$?
17863: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17864: (exit $ac_status); }; }; then
1.128 moko 17865: eval "$as_ac_var=yes"
1.62 paf 17866: else
17867: echo "$as_me: failed program was:" >&5
17868: sed 's/^/| /' conftest.$ac_ext >&5
17869:
1.128 moko 17870: eval "$as_ac_var=no"
17871: fi
17872: rm -f conftest.err conftest.$ac_objext \
17873: conftest$ac_exeext conftest.$ac_ext
17874: fi
17875: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17876: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17877: if test `eval echo '${'$as_ac_var'}'` = yes; then
17878: cat >>confdefs.h <<_ACEOF
17879: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17880: _ACEOF
17881:
17882: else
17883:
17884:
17885: _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
17886:
1.62 paf 17887: fi
1.128 moko 17888: done
17889:
17890:
1.64 paf 17891:
1.128 moko 17892: cat >>confdefs.h <<_ACEOF
17893: #define LT_LIBEXT "$libext"
1.62 paf 17894: _ACEOF
1.64 paf 17895:
1.128 moko 17896:
17897: name=
17898: eval "lt_libprefix=\"$libname_spec\""
17899:
17900: cat >>confdefs.h <<_ACEOF
17901: #define LT_LIBPREFIX "$lt_libprefix"
1.66 paf 17902: _ACEOF
1.128 moko 17903:
17904:
17905: name=ltdl
17906: eval "LTDLOPEN=\"$libname_spec\""
17907:
17908:
17909:
17910:
17911:
17912:
17913:
17914:
17915: # Only expand once:
17916:
17917:
17918:
17919:
17920: echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
17921: echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
17922: if test "${ac_cv_c_bigendian+set}" = set; then
17923: echo $ECHO_N "(cached) $ECHO_C" >&6
17924: else
17925: # See if sys/param.h defines the BYTE_ORDER macro.
17926: cat >conftest.$ac_ext <<_ACEOF
1.66 paf 17927: /* confdefs.h. */
17928: _ACEOF
17929: cat confdefs.h >>conftest.$ac_ext
17930: cat >>conftest.$ac_ext <<_ACEOF
17931: /* end confdefs.h. */
1.128 moko 17932: #include <sys/types.h>
17933: #include <sys/param.h>
17934:
17935: int
17936: main ()
17937: {
17938: #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
17939: bogus endian macros
17940: #endif
1.64 paf 17941:
1.128 moko 17942: ;
17943: return 0;
17944: }
1.66 paf 17945: _ACEOF
1.128 moko 17946: rm -f conftest.$ac_objext
17947: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17948: (eval $ac_compile) 2>conftest.er1
17949: ac_status=$?
17950: grep -v '^ *+' conftest.er1 >conftest.err
17951: rm -f conftest.er1
17952: cat conftest.err >&5
17953: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17954: (exit $ac_status); } &&
17955: { ac_try='test -z "$ac_c_werror_flag"
17956: || test ! -s conftest.err'
17957: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17958: (eval $ac_try) 2>&5
17959: ac_status=$?
17960: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17961: (exit $ac_status); }; } &&
17962: { ac_try='test -s conftest.$ac_objext'
17963: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17964: (eval $ac_try) 2>&5
17965: ac_status=$?
17966: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17967: (exit $ac_status); }; }; then
17968: # It does; now see whether it defined to BIG_ENDIAN or not.
17969: cat >conftest.$ac_ext <<_ACEOF
1.64 paf 17970: /* confdefs.h. */
17971: _ACEOF
17972: cat confdefs.h >>conftest.$ac_ext
17973: cat >>conftest.$ac_ext <<_ACEOF
17974: /* end confdefs.h. */
1.128 moko 17975: #include <sys/types.h>
17976: #include <sys/param.h>
1.64 paf 17977:
17978: int
17979: main ()
1.128 moko 17980: {
17981: #if BYTE_ORDER != BIG_ENDIAN
17982: not big endian
17983: #endif
17984:
17985: ;
17986: return 0;
1.64 paf 17987: }
17988: _ACEOF
1.128 moko 17989: rm -f conftest.$ac_objext
17990: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17991: (eval $ac_compile) 2>conftest.er1
17992: ac_status=$?
17993: grep -v '^ *+' conftest.er1 >conftest.err
17994: rm -f conftest.er1
17995: cat conftest.err >&5
17996: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17997: (exit $ac_status); } &&
17998: { ac_try='test -z "$ac_c_werror_flag"
17999: || test ! -s conftest.err'
18000: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18001: (eval $ac_try) 2>&5
1.64 paf 18002: ac_status=$?
18003: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.128 moko 18004: (exit $ac_status); }; } &&
18005: { ac_try='test -s conftest.$ac_objext'
1.64 paf 18006: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18007: (eval $ac_try) 2>&5
18008: ac_status=$?
18009: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010: (exit $ac_status); }; }; then
1.128 moko 18011: ac_cv_c_bigendian=yes
1.64 paf 18012: else
1.128 moko 18013: echo "$as_me: failed program was:" >&5
1.64 paf 18014: sed 's/^/| /' conftest.$ac_ext >&5
18015:
1.128 moko 18016: ac_cv_c_bigendian=no
1.66 paf 18017: fi
1.128 moko 18018: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18019: else
18020: echo "$as_me: failed program was:" >&5
18021: sed 's/^/| /' conftest.$ac_ext >&5
1.66 paf 18022:
1.128 moko 18023: # It does not; compile a test program.
18024: if test "$cross_compiling" = yes; then
18025: # try to guess the endianness by grepping values into an object file
18026: ac_cv_c_bigendian=unknown
1.62 paf 18027: cat >conftest.$ac_ext <<_ACEOF
18028: /* confdefs.h. */
18029: _ACEOF
18030: cat confdefs.h >>conftest.$ac_ext
18031: cat >>conftest.$ac_ext <<_ACEOF
18032: /* end confdefs.h. */
1.128 moko 18033: short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
18034: short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
18035: void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
18036: short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
18037: short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
18038: void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
18039: int
18040: main ()
18041: {
18042: _ascii (); _ebcdic ();
18043: ;
18044: return 0;
18045: }
1.62 paf 18046: _ACEOF
1.66 paf 18047: rm -f conftest.$ac_objext
18048: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 18049: (eval $ac_compile) 2>conftest.er1
1.66 paf 18050: ac_status=$?
1.86 paf 18051: grep -v '^ *+' conftest.er1 >conftest.err
18052: rm -f conftest.er1
18053: cat conftest.err >&5
1.66 paf 18054: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18055: (exit $ac_status); } &&
1.86 paf 18056: { ac_try='test -z "$ac_c_werror_flag"
18057: || test ! -s conftest.err'
18058: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18059: (eval $ac_try) 2>&5
18060: ac_status=$?
18061: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18062: (exit $ac_status); }; } &&
18063: { ac_try='test -s conftest.$ac_objext'
1.66 paf 18064: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18065: (eval $ac_try) 2>&5
1.62 paf 18066: ac_status=$?
18067: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.66 paf 18068: (exit $ac_status); }; }; then
1.128 moko 18069: if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
18070: ac_cv_c_bigendian=yes
18071: fi
18072: if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
18073: if test "$ac_cv_c_bigendian" = unknown; then
18074: ac_cv_c_bigendian=no
18075: else
18076: # finding both strings is unlikely to happen, but who knows?
18077: ac_cv_c_bigendian=unknown
18078: fi
18079: fi
1.62 paf 18080: else
18081: echo "$as_me: failed program was:" >&5
18082: sed 's/^/| /' conftest.$ac_ext >&5
18083:
1.128 moko 18084: fi
18085: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18086: else
18087: cat >conftest.$ac_ext <<_ACEOF
18088: /* confdefs.h. */
18089: _ACEOF
18090: cat confdefs.h >>conftest.$ac_ext
18091: cat >>conftest.$ac_ext <<_ACEOF
18092: /* end confdefs.h. */
18093: int
18094: main ()
18095: {
18096: /* Are we little or big endian? From Harbison&Steele. */
18097: union
18098: {
18099: long l;
18100: char c[sizeof (long)];
18101: } u;
18102: u.l = 1;
18103: exit (u.c[sizeof (long) - 1] == 1);
18104: }
18105: _ACEOF
18106: rm -f conftest$ac_exeext
18107: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18108: (eval $ac_link) 2>&5
18109: ac_status=$?
18110: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18111: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18112: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18113: (eval $ac_try) 2>&5
18114: ac_status=$?
18115: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18116: (exit $ac_status); }; }; then
18117: ac_cv_c_bigendian=no
18118: else
18119: echo "$as_me: program exited with status $ac_status" >&5
18120: echo "$as_me: failed program was:" >&5
18121: sed 's/^/| /' conftest.$ac_ext >&5
18122:
18123: ( exit $ac_status )
18124: ac_cv_c_bigendian=yes
18125: fi
18126: rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18127: fi
1.66 paf 18128: fi
1.86 paf 18129: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.66 paf 18130: fi
1.128 moko 18131: echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
18132: echo "${ECHO_T}$ac_cv_c_bigendian" >&6
18133: case $ac_cv_c_bigendian in
18134: yes)
18135:
18136: cat >>confdefs.h <<\_ACEOF
18137: #define PA_BIG_ENDIAN
1.66 paf 18138: _ACEOF
18139:
1.128 moko 18140: ;;
18141: no)
18142:
18143: cat >>confdefs.h <<\_ACEOF
18144: #define PA_LITTLE_ENDIAN
18145: _ACEOF
1.1 paf 18146:
1.128 moko 18147: ;;
18148: *)
18149: { { echo "$as_me:$LINENO: error: word endianness not determined for some obscure reason" >&5
18150: echo "$as_me: error: word endianness not determined for some obscure reason" >&2;}
18151: { (exit 1); exit 1; }; }
18152: ;;
18153: esac
1.66 paf 18154:
18155:
18156: echo "$as_me:$LINENO: checking for size_t" >&5
18157: echo $ECHO_N "checking for size_t... $ECHO_C" >&6
18158: if test "${ac_cv_type_size_t+set}" = set; then
18159: echo $ECHO_N "(cached) $ECHO_C" >&6
18160: else
1.62 paf 18161: cat >conftest.$ac_ext <<_ACEOF
18162: /* confdefs.h. */
18163: _ACEOF
18164: cat confdefs.h >>conftest.$ac_ext
18165: cat >>conftest.$ac_ext <<_ACEOF
18166: /* end confdefs.h. */
1.66 paf 18167: $ac_includes_default
18168: int
18169: main ()
18170: {
18171: if ((size_t *) 0)
18172: return 0;
18173: if (sizeof (size_t))
18174: return 0;
18175: ;
18176: return 0;
18177: }
1.62 paf 18178: _ACEOF
1.66 paf 18179: rm -f conftest.$ac_objext
18180: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 18181: (eval $ac_compile) 2>conftest.er1
1.66 paf 18182: ac_status=$?
1.86 paf 18183: grep -v '^ *+' conftest.er1 >conftest.err
18184: rm -f conftest.er1
18185: cat conftest.err >&5
1.66 paf 18186: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18187: (exit $ac_status); } &&
1.86 paf 18188: { ac_try='test -z "$ac_c_werror_flag"
18189: || test ! -s conftest.err'
18190: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18191: (eval $ac_try) 2>&5
18192: ac_status=$?
18193: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18194: (exit $ac_status); }; } &&
18195: { ac_try='test -s conftest.$ac_objext'
1.66 paf 18196: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18197: (eval $ac_try) 2>&5
1.62 paf 18198: ac_status=$?
18199: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.66 paf 18200: (exit $ac_status); }; }; then
18201: ac_cv_type_size_t=yes
1.1 paf 18202: else
1.62 paf 18203: echo "$as_me: failed program was:" >&5
18204: sed 's/^/| /' conftest.$ac_ext >&5
18205:
1.66 paf 18206: ac_cv_type_size_t=no
1.1 paf 18207: fi
1.86 paf 18208: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.62 paf 18209: fi
1.66 paf 18210: echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18211: echo "${ECHO_T}$ac_cv_type_size_t" >&6
18212: if test $ac_cv_type_size_t = yes; then
18213: :
18214: else
1.1 paf 18215:
1.66 paf 18216: cat >>confdefs.h <<_ACEOF
18217: #define size_t unsigned
18218: _ACEOF
1.62 paf 18219:
18220: fi
1.66 paf 18221:
1.128 moko 18222:
18223:
1.66 paf 18224: echo "$as_me:$LINENO: checking for off_t" >&5
18225: echo $ECHO_N "checking for off_t... $ECHO_C" >&6
18226: if test "${ac_cv_type_off_t+set}" = set; then
18227: echo $ECHO_N "(cached) $ECHO_C" >&6
1.62 paf 18228: else
18229: cat >conftest.$ac_ext <<_ACEOF
18230: /* confdefs.h. */
18231: _ACEOF
18232: cat confdefs.h >>conftest.$ac_ext
18233: cat >>conftest.$ac_ext <<_ACEOF
18234: /* end confdefs.h. */
1.66 paf 18235: $ac_includes_default
18236: int
18237: main ()
18238: {
18239: if ((off_t *) 0)
18240: return 0;
18241: if (sizeof (off_t))
18242: return 0;
18243: ;
18244: return 0;
18245: }
1.62 paf 18246: _ACEOF
1.66 paf 18247: rm -f conftest.$ac_objext
18248: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 18249: (eval $ac_compile) 2>conftest.er1
1.66 paf 18250: ac_status=$?
1.86 paf 18251: grep -v '^ *+' conftest.er1 >conftest.err
18252: rm -f conftest.er1
18253: cat conftest.err >&5
1.66 paf 18254: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18255: (exit $ac_status); } &&
1.86 paf 18256: { ac_try='test -z "$ac_c_werror_flag"
18257: || test ! -s conftest.err'
18258: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18259: (eval $ac_try) 2>&5
18260: ac_status=$?
18261: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18262: (exit $ac_status); }; } &&
18263: { ac_try='test -s conftest.$ac_objext'
1.66 paf 18264: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18265: (eval $ac_try) 2>&5
1.62 paf 18266: ac_status=$?
18267: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.66 paf 18268: (exit $ac_status); }; }; then
18269: ac_cv_type_off_t=yes
1.62 paf 18270: else
1.66 paf 18271: echo "$as_me: failed program was:" >&5
18272: sed 's/^/| /' conftest.$ac_ext >&5
18273:
18274: ac_cv_type_off_t=no
18275: fi
1.86 paf 18276: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 paf 18277: fi
1.66 paf 18278: echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
18279: echo "${ECHO_T}$ac_cv_type_off_t" >&6
18280: if test $ac_cv_type_off_t = yes; then
1.62 paf 18281: :
18282: else
1.1 paf 18283:
1.66 paf 18284: cat >>confdefs.h <<_ACEOF
18285: #define off_t long
18286: _ACEOF
18287:
1.62 paf 18288: fi
1.1 paf 18289:
1.66 paf 18290: echo "$as_me:$LINENO: checking for ssize_t" >&5
18291: echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
18292: if test "${ac_cv_type_ssize_t+set}" = set; then
18293: echo $ECHO_N "(cached) $ECHO_C" >&6
18294: else
1.62 paf 18295: cat >conftest.$ac_ext <<_ACEOF
18296: /* confdefs.h. */
18297: _ACEOF
18298: cat confdefs.h >>conftest.$ac_ext
18299: cat >>conftest.$ac_ext <<_ACEOF
18300: /* end confdefs.h. */
1.66 paf 18301: $ac_includes_default
18302: int
18303: main ()
18304: {
18305: if ((ssize_t *) 0)
18306: return 0;
18307: if (sizeof (ssize_t))
18308: return 0;
18309: ;
18310: return 0;
18311: }
1.62 paf 18312: _ACEOF
1.66 paf 18313: rm -f conftest.$ac_objext
18314: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 18315: (eval $ac_compile) 2>conftest.er1
1.66 paf 18316: ac_status=$?
1.86 paf 18317: grep -v '^ *+' conftest.er1 >conftest.err
18318: rm -f conftest.er1
18319: cat conftest.err >&5
1.66 paf 18320: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18321: (exit $ac_status); } &&
1.86 paf 18322: { ac_try='test -z "$ac_c_werror_flag"
18323: || test ! -s conftest.err'
18324: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18325: (eval $ac_try) 2>&5
18326: ac_status=$?
18327: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18328: (exit $ac_status); }; } &&
18329: { ac_try='test -s conftest.$ac_objext'
1.66 paf 18330: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18331: (eval $ac_try) 2>&5
1.62 paf 18332: ac_status=$?
18333: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.66 paf 18334: (exit $ac_status); }; }; then
18335: ac_cv_type_ssize_t=yes
1.1 paf 18336: else
1.62 paf 18337: echo "$as_me: failed program was:" >&5
18338: sed 's/^/| /' conftest.$ac_ext >&5
18339:
1.66 paf 18340: ac_cv_type_ssize_t=no
18341: fi
1.86 paf 18342: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.62 paf 18343: fi
1.66 paf 18344: echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
18345: echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
18346: if test $ac_cv_type_ssize_t = yes; then
1.1 paf 18347: :
18348: else
1.66 paf 18349:
18350: cat >>confdefs.h <<_ACEOF
18351: #define ssize_t int
18352: _ACEOF
18353:
1.1 paf 18354: fi
1.62 paf 18355:
18356:
18357:
1.66 paf 18358: echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
18359: echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
18360: if test "${ac_cv_header_time+set}" = set; then
1.62 paf 18361: echo $ECHO_N "(cached) $ECHO_C" >&6
18362: else
18363: cat >conftest.$ac_ext <<_ACEOF
18364: /* confdefs.h. */
18365: _ACEOF
18366: cat confdefs.h >>conftest.$ac_ext
18367: cat >>conftest.$ac_ext <<_ACEOF
18368: /* end confdefs.h. */
1.66 paf 18369: #include <sys/types.h>
18370: #include <sys/time.h>
18371: #include <time.h>
1.62 paf 18372:
18373: int
18374: main ()
18375: {
1.66 paf 18376: if ((struct tm *) 0)
18377: return 0;
1.62 paf 18378: ;
18379: return 0;
18380: }
18381: _ACEOF
18382: rm -f conftest.$ac_objext
18383: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 18384: (eval $ac_compile) 2>conftest.er1
1.62 paf 18385: ac_status=$?
1.86 paf 18386: grep -v '^ *+' conftest.er1 >conftest.err
18387: rm -f conftest.er1
18388: cat conftest.err >&5
1.62 paf 18389: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18390: (exit $ac_status); } &&
1.86 paf 18391: { ac_try='test -z "$ac_c_werror_flag"
18392: || test ! -s conftest.err'
18393: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18394: (eval $ac_try) 2>&5
18395: ac_status=$?
18396: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18397: (exit $ac_status); }; } &&
18398: { ac_try='test -s conftest.$ac_objext'
1.62 paf 18399: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18400: (eval $ac_try) 2>&5
18401: ac_status=$?
18402: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18403: (exit $ac_status); }; }; then
1.66 paf 18404: ac_cv_header_time=yes
1.1 paf 18405: else
1.62 paf 18406: echo "$as_me: failed program was:" >&5
18407: sed 's/^/| /' conftest.$ac_ext >&5
18408:
1.66 paf 18409: ac_cv_header_time=no
1.1 paf 18410: fi
1.86 paf 18411: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.66 paf 18412: fi
18413: echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
18414: echo "${ECHO_T}$ac_cv_header_time" >&6
18415: if test $ac_cv_header_time = yes; then
1.1 paf 18416:
1.66 paf 18417: cat >>confdefs.h <<\_ACEOF
18418: #define TIME_WITH_SYS_TIME 1
1.62 paf 18419: _ACEOF
18420:
1.1 paf 18421: fi
18422:
18423:
1.62 paf 18424:
1.1 paf 18425:
1.66 paf 18426:
18427:
18428:
18429:
18430:
18431:
18432:
18433:
18434:
18435:
18436:
18437:
18438:
18439:
18440:
18441:
18442:
18443:
18444:
18445:
18446:
18447:
18448:
18449:
18450:
18451:
18452:
18453:
1.128 moko 18454:
1.67 paf 18455: for ac_header in assert.h \
18456: signal.h \
1.66 paf 18457: unistd.h \
18458: process.h \
18459: stddef.h \
18460: stdarg.h \
18461: fcntl.h \
18462: sys/stat.h \
18463: io.h \
18464: stdio.h \
18465: errno.h \
18466: ctype.h \
18467: math.h \
18468: crypt.h \
18469: time.h sys/time.h \
18470: string.h \
18471: direct.h \
18472: setjmp.h \
18473: memory.h \
1.128 moko 18474: limits.h \
1.66 paf 18475: sys/file.h \
18476: sys/locking.h \
18477: sys/types.h \
18478: sys/select.h \
18479: sys/resource.h \
18480: winsock.h \
18481: sys/socket.h \
18482: netinet/in.h \
18483: arpa/inet.h \
18484: netdb.h
18485:
18486: do
18487: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18488: if eval "test \"\${$as_ac_Header+set}\" = set"; then
18489: echo "$as_me:$LINENO: checking for $ac_header" >&5
18490: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18491: if eval "test \"\${$as_ac_Header+set}\" = set"; then
18492: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 18493: fi
1.66 paf 18494: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18495: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1.1 paf 18496: else
1.66 paf 18497: # Is the header compilable?
18498: echo "$as_me:$LINENO: checking $ac_header usability" >&5
18499: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18500: cat >conftest.$ac_ext <<_ACEOF
1.62 paf 18501: /* confdefs.h. */
18502: _ACEOF
18503: cat confdefs.h >>conftest.$ac_ext
18504: cat >>conftest.$ac_ext <<_ACEOF
18505: /* end confdefs.h. */
1.66 paf 18506: $ac_includes_default
18507: #include <$ac_header>
1.62 paf 18508: _ACEOF
1.66 paf 18509: rm -f conftest.$ac_objext
18510: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 18511: (eval $ac_compile) 2>conftest.er1
1.62 paf 18512: ac_status=$?
1.86 paf 18513: grep -v '^ *+' conftest.er1 >conftest.err
18514: rm -f conftest.er1
18515: cat conftest.err >&5
1.62 paf 18516: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.66 paf 18517: (exit $ac_status); } &&
1.86 paf 18518: { ac_try='test -z "$ac_c_werror_flag"
18519: || test ! -s conftest.err'
18520: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18521: (eval $ac_try) 2>&5
18522: ac_status=$?
18523: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18524: (exit $ac_status); }; } &&
18525: { ac_try='test -s conftest.$ac_objext'
1.62 paf 18526: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18527: (eval $ac_try) 2>&5
18528: ac_status=$?
18529: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18530: (exit $ac_status); }; }; then
1.66 paf 18531: ac_header_compiler=yes
1.1 paf 18532: else
1.66 paf 18533: echo "$as_me: failed program was:" >&5
1.62 paf 18534: sed 's/^/| /' conftest.$ac_ext >&5
18535:
1.66 paf 18536: ac_header_compiler=no
1.1 paf 18537: fi
1.86 paf 18538: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.66 paf 18539: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18540: echo "${ECHO_T}$ac_header_compiler" >&6
18541:
18542: # Is the header present?
18543: echo "$as_me:$LINENO: checking $ac_header presence" >&5
18544: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18545: cat >conftest.$ac_ext <<_ACEOF
18546: /* confdefs.h. */
18547: _ACEOF
18548: cat confdefs.h >>conftest.$ac_ext
18549: cat >>conftest.$ac_ext <<_ACEOF
18550: /* end confdefs.h. */
18551: #include <$ac_header>
18552: _ACEOF
18553: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18554: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18555: ac_status=$?
18556: grep -v '^ *+' conftest.er1 >conftest.err
18557: rm -f conftest.er1
18558: cat conftest.err >&5
18559: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18560: (exit $ac_status); } >/dev/null; then
18561: if test -s conftest.err; then
18562: ac_cpp_err=$ac_c_preproc_warn_flag
1.86 paf 18563: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1.66 paf 18564: else
18565: ac_cpp_err=
18566: fi
18567: else
18568: ac_cpp_err=yes
1.1 paf 18569: fi
1.66 paf 18570: if test -z "$ac_cpp_err"; then
18571: ac_header_preproc=yes
18572: else
18573: echo "$as_me: failed program was:" >&5
18574: sed 's/^/| /' conftest.$ac_ext >&5
18575:
18576: ac_header_preproc=no
1.1 paf 18577: fi
1.66 paf 18578: rm -f conftest.err conftest.$ac_ext
18579: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18580: echo "${ECHO_T}$ac_header_preproc" >&6
18581:
18582: # So? What about this header?
1.86 paf 18583: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18584: yes:no: )
1.66 paf 18585: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18586: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
1.86 paf 18587: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18588: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18589: ac_header_preproc=yes
1.66 paf 18590: ;;
1.86 paf 18591: no:yes:* )
1.66 paf 18592: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18593: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
1.86 paf 18594: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18595: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18596: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18597: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18598: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18599: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
1.66 paf 18600: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18601: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
1.86 paf 18602: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18603: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.66 paf 18604: (
18605: cat <<\_ASBOX
1.128 moko 18606: ## --------------------------------- ##
18607: ## Report this to the parser lists. ##
18608: ## --------------------------------- ##
1.66 paf 18609: _ASBOX
18610: ) |
18611: sed "s/^/$as_me: WARNING: /" >&2
18612: ;;
18613: esac
18614: echo "$as_me:$LINENO: checking for $ac_header" >&5
18615: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18616: if eval "test \"\${$as_ac_Header+set}\" = set"; then
18617: echo $ECHO_N "(cached) $ECHO_C" >&6
18618: else
1.86 paf 18619: eval "$as_ac_Header=\$ac_header_preproc"
1.1 paf 18620: fi
1.66 paf 18621: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18622: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1.1 paf 18623:
1.66 paf 18624: fi
18625: if test `eval echo '${'$as_ac_Header'}'` = yes; then
18626: cat >>confdefs.h <<_ACEOF
18627: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.62 paf 18628: _ACEOF
18629:
18630: fi
18631:
1.66 paf 18632: done
1.62 paf 18633:
18634:
18635:
1.128 moko 18636:
18637:
1.66 paf 18638: case "$host" in
1.107 misha 18639: *-freebsd4*)
18640:
18641: cat >>confdefs.h <<\_ACEOF
18642: #define FREEBSD4
18643: _ACEOF
18644:
18645: ;;
1.66 paf 18646: *-sunos5.6* | *-solaris2.6*)
1.62 paf 18647:
1.66 paf 18648: echo "$as_me:$LINENO: checking for main in -lxnet" >&5
18649: echo $ECHO_N "checking for main in -lxnet... $ECHO_C" >&6
18650: if test "${ac_cv_lib_xnet_main+set}" = set; then
1.62 paf 18651: echo $ECHO_N "(cached) $ECHO_C" >&6
18652: else
1.66 paf 18653: ac_check_lib_save_LIBS=$LIBS
18654: LIBS="-lxnet $LIBS"
18655: cat >conftest.$ac_ext <<_ACEOF
1.62 paf 18656: /* confdefs.h. */
18657: _ACEOF
18658: cat confdefs.h >>conftest.$ac_ext
18659: cat >>conftest.$ac_ext <<_ACEOF
18660: /* end confdefs.h. */
18661:
1.66 paf 18662:
18663: int
18664: main ()
18665: {
18666: main ();
18667: ;
18668: return 0;
18669: }
1.62 paf 18670: _ACEOF
1.66 paf 18671: rm -f conftest.$ac_objext conftest$ac_exeext
18672: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 18673: (eval $ac_link) 2>conftest.er1
1.62 paf 18674: ac_status=$?
1.86 paf 18675: grep -v '^ *+' conftest.er1 >conftest.err
18676: rm -f conftest.er1
18677: cat conftest.err >&5
1.62 paf 18678: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18679: (exit $ac_status); } &&
1.86 paf 18680: { ac_try='test -z "$ac_c_werror_flag"
18681: || test ! -s conftest.err'
18682: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18683: (eval $ac_try) 2>&5
18684: ac_status=$?
18685: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18686: (exit $ac_status); }; } &&
18687: { ac_try='test -s conftest$ac_exeext'
1.62 paf 18688: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18689: (eval $ac_try) 2>&5
18690: ac_status=$?
18691: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18692: (exit $ac_status); }; }; then
1.66 paf 18693: ac_cv_lib_xnet_main=yes
1.62 paf 18694: else
18695: echo "$as_me: failed program was:" >&5
18696: sed 's/^/| /' conftest.$ac_ext >&5
18697:
1.66 paf 18698: ac_cv_lib_xnet_main=no
1.62 paf 18699: fi
1.86 paf 18700: rm -f conftest.err conftest.$ac_objext \
18701: conftest$ac_exeext conftest.$ac_ext
1.66 paf 18702: LIBS=$ac_check_lib_save_LIBS
1.62 paf 18703: fi
1.66 paf 18704: echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_main" >&5
18705: echo "${ECHO_T}$ac_cv_lib_xnet_main" >&6
18706: if test $ac_cv_lib_xnet_main = yes; then
1.62 paf 18707: cat >>confdefs.h <<_ACEOF
1.66 paf 18708: #define HAVE_LIBXNET 1
1.62 paf 18709: _ACEOF
1.1 paf 18710:
1.66 paf 18711: LIBS="-lxnet $LIBS"
18712:
1.1 paf 18713: fi
18714:
1.66 paf 18715: ;;
18716: *-sunos5* | *-solaris2*)
1.62 paf 18717:
1.66 paf 18718: echo "$as_me:$LINENO: checking for main in -lsocket" >&5
18719: echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
18720: if test "${ac_cv_lib_socket_main+set}" = set; then
1.62 paf 18721: echo $ECHO_N "(cached) $ECHO_C" >&6
18722: else
1.66 paf 18723: ac_check_lib_save_LIBS=$LIBS
18724: LIBS="-lsocket $LIBS"
18725: cat >conftest.$ac_ext <<_ACEOF
1.62 paf 18726: /* confdefs.h. */
18727: _ACEOF
18728: cat confdefs.h >>conftest.$ac_ext
18729: cat >>conftest.$ac_ext <<_ACEOF
18730: /* end confdefs.h. */
1.66 paf 18731:
18732:
1.62 paf 18733: int
18734: main ()
18735: {
1.66 paf 18736: main ();
1.62 paf 18737: ;
18738: return 0;
18739: }
18740: _ACEOF
1.66 paf 18741: rm -f conftest.$ac_objext conftest$ac_exeext
18742: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 18743: (eval $ac_link) 2>conftest.er1
1.62 paf 18744: ac_status=$?
1.86 paf 18745: grep -v '^ *+' conftest.er1 >conftest.err
18746: rm -f conftest.er1
18747: cat conftest.err >&5
1.62 paf 18748: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18749: (exit $ac_status); } &&
1.86 paf 18750: { ac_try='test -z "$ac_c_werror_flag"
18751: || test ! -s conftest.err'
18752: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18753: (eval $ac_try) 2>&5
18754: ac_status=$?
18755: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18756: (exit $ac_status); }; } &&
18757: { ac_try='test -s conftest$ac_exeext'
1.62 paf 18758: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18759: (eval $ac_try) 2>&5
18760: ac_status=$?
18761: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18762: (exit $ac_status); }; }; then
1.66 paf 18763: ac_cv_lib_socket_main=yes
1.1 paf 18764: else
1.62 paf 18765: echo "$as_me: failed program was:" >&5
18766: sed 's/^/| /' conftest.$ac_ext >&5
18767:
1.66 paf 18768: ac_cv_lib_socket_main=no
1.1 paf 18769: fi
1.86 paf 18770: rm -f conftest.err conftest.$ac_objext \
18771: conftest$ac_exeext conftest.$ac_ext
1.66 paf 18772: LIBS=$ac_check_lib_save_LIBS
1.62 paf 18773: fi
1.66 paf 18774: echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
18775: echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
18776: if test $ac_cv_lib_socket_main = yes; then
18777: cat >>confdefs.h <<_ACEOF
18778: #define HAVE_LIBSOCKET 1
18779: _ACEOF
1.1 paf 18780:
1.66 paf 18781: LIBS="-lsocket $LIBS"
1.1 paf 18782:
18783: fi
18784:
1.66 paf 18785:
18786: echo "$as_me:$LINENO: checking for main in -lnsl" >&5
18787: echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
18788: if test "${ac_cv_lib_nsl_main+set}" = set; then
1.62 paf 18789: echo $ECHO_N "(cached) $ECHO_C" >&6
18790: else
1.66 paf 18791: ac_check_lib_save_LIBS=$LIBS
18792: LIBS="-lnsl $LIBS"
18793: cat >conftest.$ac_ext <<_ACEOF
1.62 paf 18794: /* confdefs.h. */
18795: _ACEOF
18796: cat confdefs.h >>conftest.$ac_ext
18797: cat >>conftest.$ac_ext <<_ACEOF
18798: /* end confdefs.h. */
1.66 paf 18799:
18800:
1.62 paf 18801: int
18802: main ()
18803: {
1.66 paf 18804: main ();
1.62 paf 18805: ;
18806: return 0;
18807: }
18808: _ACEOF
1.66 paf 18809: rm -f conftest.$ac_objext conftest$ac_exeext
18810: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 18811: (eval $ac_link) 2>conftest.er1
1.62 paf 18812: ac_status=$?
1.86 paf 18813: grep -v '^ *+' conftest.er1 >conftest.err
18814: rm -f conftest.er1
18815: cat conftest.err >&5
1.62 paf 18816: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18817: (exit $ac_status); } &&
1.86 paf 18818: { ac_try='test -z "$ac_c_werror_flag"
18819: || test ! -s conftest.err'
18820: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18821: (eval $ac_try) 2>&5
18822: ac_status=$?
18823: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18824: (exit $ac_status); }; } &&
18825: { ac_try='test -s conftest$ac_exeext'
1.62 paf 18826: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18827: (eval $ac_try) 2>&5
18828: ac_status=$?
18829: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18830: (exit $ac_status); }; }; then
1.66 paf 18831: ac_cv_lib_nsl_main=yes
1.30 paf 18832: else
1.62 paf 18833: echo "$as_me: failed program was:" >&5
18834: sed 's/^/| /' conftest.$ac_ext >&5
18835:
1.66 paf 18836: ac_cv_lib_nsl_main=no
1.30 paf 18837: fi
1.86 paf 18838: rm -f conftest.err conftest.$ac_objext \
18839: conftest$ac_exeext conftest.$ac_ext
1.66 paf 18840: LIBS=$ac_check_lib_save_LIBS
1.62 paf 18841: fi
1.66 paf 18842: echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
18843: echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
18844: if test $ac_cv_lib_nsl_main = yes; then
18845: cat >>confdefs.h <<_ACEOF
18846: #define HAVE_LIBNSL 1
18847: _ACEOF
1.30 paf 18848:
1.66 paf 18849: LIBS="-lnsl $LIBS"
1.30 paf 18850:
18851: fi
18852:
1.66 paf 18853: ;;
18854: *-nec-sysv4*)
18855:
18856: echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
18857: echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
18858: if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
1.62 paf 18859: echo $ECHO_N "(cached) $ECHO_C" >&6
18860: else
1.66 paf 18861: ac_check_lib_save_LIBS=$LIBS
18862: LIBS="-lnsl $LIBS"
18863: cat >conftest.$ac_ext <<_ACEOF
1.62 paf 18864: /* confdefs.h. */
18865: _ACEOF
18866: cat confdefs.h >>conftest.$ac_ext
18867: cat >>conftest.$ac_ext <<_ACEOF
18868: /* end confdefs.h. */
1.66 paf 18869:
18870: /* Override any gcc2 internal prototype to avoid an error. */
18871: #ifdef __cplusplus
18872: extern "C"
18873: #endif
18874: /* We use char because int might match the return type of a gcc2
18875: builtin and then its argument prototype would still apply. */
18876: char gethostbyname ();
1.62 paf 18877: int
18878: main ()
18879: {
1.66 paf 18880: gethostbyname ();
1.62 paf 18881: ;
18882: return 0;
18883: }
18884: _ACEOF
1.66 paf 18885: rm -f conftest.$ac_objext conftest$ac_exeext
18886: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 18887: (eval $ac_link) 2>conftest.er1
1.62 paf 18888: ac_status=$?
1.86 paf 18889: grep -v '^ *+' conftest.er1 >conftest.err
18890: rm -f conftest.er1
18891: cat conftest.err >&5
1.62 paf 18892: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18893: (exit $ac_status); } &&
1.86 paf 18894: { ac_try='test -z "$ac_c_werror_flag"
18895: || test ! -s conftest.err'
18896: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18897: (eval $ac_try) 2>&5
18898: ac_status=$?
18899: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18900: (exit $ac_status); }; } &&
18901: { ac_try='test -s conftest$ac_exeext'
1.62 paf 18902: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18903: (eval $ac_try) 2>&5
18904: ac_status=$?
18905: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18906: (exit $ac_status); }; }; then
1.66 paf 18907: ac_cv_lib_nsl_gethostbyname=yes
1.30 paf 18908: else
1.62 paf 18909: echo "$as_me: failed program was:" >&5
18910: sed 's/^/| /' conftest.$ac_ext >&5
18911:
1.66 paf 18912: ac_cv_lib_nsl_gethostbyname=no
1.30 paf 18913: fi
1.86 paf 18914: rm -f conftest.err conftest.$ac_objext \
18915: conftest$ac_exeext conftest.$ac_ext
1.66 paf 18916: LIBS=$ac_check_lib_save_LIBS
1.62 paf 18917: fi
1.66 paf 18918: echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
18919: echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
18920: if test $ac_cv_lib_nsl_gethostbyname = yes; then
18921: cat >>confdefs.h <<_ACEOF
18922: #define HAVE_LIBNSL 1
18923: _ACEOF
1.30 paf 18924:
1.66 paf 18925: LIBS="-lnsl $LIBS"
1.30 paf 18926:
18927: fi
18928:
18929:
1.66 paf 18930: echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
18931: echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
18932: if test "${ac_cv_lib_socket_socket+set}" = set; then
1.62 paf 18933: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 paf 18934: else
1.66 paf 18935: ac_check_lib_save_LIBS=$LIBS
18936: LIBS="-lsocket $LIBS"
18937: cat >conftest.$ac_ext <<_ACEOF
1.62 paf 18938: /* confdefs.h. */
18939: _ACEOF
18940: cat confdefs.h >>conftest.$ac_ext
18941: cat >>conftest.$ac_ext <<_ACEOF
18942: /* end confdefs.h. */
18943:
1.66 paf 18944: /* Override any gcc2 internal prototype to avoid an error. */
18945: #ifdef __cplusplus
18946: extern "C"
18947: #endif
18948: /* We use char because int might match the return type of a gcc2
18949: builtin and then its argument prototype would still apply. */
18950: char socket ();
1.62 paf 18951: int
18952: main ()
18953: {
1.66 paf 18954: socket ();
1.62 paf 18955: ;
18956: return 0;
18957: }
18958: _ACEOF
1.66 paf 18959: rm -f conftest.$ac_objext conftest$ac_exeext
18960: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 18961: (eval $ac_link) 2>conftest.er1
1.62 paf 18962: ac_status=$?
1.86 paf 18963: grep -v '^ *+' conftest.er1 >conftest.err
18964: rm -f conftest.er1
18965: cat conftest.err >&5
1.62 paf 18966: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18967: (exit $ac_status); } &&
1.86 paf 18968: { ac_try='test -z "$ac_c_werror_flag"
18969: || test ! -s conftest.err'
18970: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18971: (eval $ac_try) 2>&5
18972: ac_status=$?
18973: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18974: (exit $ac_status); }; } &&
18975: { ac_try='test -s conftest$ac_exeext'
1.62 paf 18976: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18977: (eval $ac_try) 2>&5
18978: ac_status=$?
18979: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18980: (exit $ac_status); }; }; then
1.66 paf 18981: ac_cv_lib_socket_socket=yes
1.8 paf 18982: else
1.62 paf 18983: echo "$as_me: failed program was:" >&5
18984: sed 's/^/| /' conftest.$ac_ext >&5
18985:
1.66 paf 18986: ac_cv_lib_socket_socket=no
1.8 paf 18987: fi
1.86 paf 18988: rm -f conftest.err conftest.$ac_objext \
18989: conftest$ac_exeext conftest.$ac_ext
1.66 paf 18990: LIBS=$ac_check_lib_save_LIBS
1.8 paf 18991: fi
1.66 paf 18992: echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
18993: echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
18994: if test $ac_cv_lib_socket_socket = yes; then
18995: cat >>confdefs.h <<_ACEOF
1.128 moko 18996: #define HAVE_LIBSOCKET 1
1.66 paf 18997: _ACEOF
18998:
1.128 moko 18999: LIBS="-lsocket $LIBS"
1.66 paf 19000:
1.62 paf 19001: fi
19002:
1.66 paf 19003: ;;
1.128 moko 19004: *-cygwin*)
19005:
19006: cat >>confdefs.h <<\_ACEOF
19007: #define WIN32
19008: _ACEOF
1.66 paf 19009:
1.128 moko 19010:
19011: echo "$as_me:$LINENO: checking for socket in -lwsock32" >&5
19012: echo $ECHO_N "checking for socket in -lwsock32... $ECHO_C" >&6
19013: if test "${ac_cv_lib_wsock32_socket+set}" = set; then
1.66 paf 19014: echo $ECHO_N "(cached) $ECHO_C" >&6
19015: else
19016: ac_check_lib_save_LIBS=$LIBS
1.128 moko 19017: LIBS="-lwsock32 $LIBS"
1.62 paf 19018: cat >conftest.$ac_ext <<_ACEOF
19019: /* confdefs.h. */
19020: _ACEOF
19021: cat confdefs.h >>conftest.$ac_ext
19022: cat >>conftest.$ac_ext <<_ACEOF
19023: /* end confdefs.h. */
1.66 paf 19024:
1.128 moko 19025: /* Override any gcc2 internal prototype to avoid an error. */
19026: #ifdef __cplusplus
19027: extern "C"
19028: #endif
19029: /* We use char because int might match the return type of a gcc2
19030: builtin and then its argument prototype would still apply. */
19031: char socket ();
1.66 paf 19032: int
19033: main ()
19034: {
1.128 moko 19035: socket ();
1.66 paf 19036: ;
19037: return 0;
19038: }
1.62 paf 19039: _ACEOF
1.66 paf 19040: rm -f conftest.$ac_objext conftest$ac_exeext
19041: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 19042: (eval $ac_link) 2>conftest.er1
1.66 paf 19043: ac_status=$?
1.86 paf 19044: grep -v '^ *+' conftest.er1 >conftest.err
19045: rm -f conftest.er1
19046: cat conftest.err >&5
1.66 paf 19047: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19048: (exit $ac_status); } &&
1.86 paf 19049: { ac_try='test -z "$ac_c_werror_flag"
19050: || test ! -s conftest.err'
19051: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19052: (eval $ac_try) 2>&5
19053: ac_status=$?
19054: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19055: (exit $ac_status); }; } &&
19056: { ac_try='test -s conftest$ac_exeext'
1.66 paf 19057: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19058: (eval $ac_try) 2>&5
1.62 paf 19059: ac_status=$?
19060: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.66 paf 19061: (exit $ac_status); }; }; then
1.128 moko 19062: ac_cv_lib_wsock32_socket=yes
1.62 paf 19063: else
19064: echo "$as_me: failed program was:" >&5
19065: sed 's/^/| /' conftest.$ac_ext >&5
19066:
1.128 moko 19067: ac_cv_lib_wsock32_socket=no
1.62 paf 19068: fi
1.86 paf 19069: rm -f conftest.err conftest.$ac_objext \
19070: conftest$ac_exeext conftest.$ac_ext
1.66 paf 19071: LIBS=$ac_check_lib_save_LIBS
1.1 paf 19072: fi
1.128 moko 19073: echo "$as_me:$LINENO: result: $ac_cv_lib_wsock32_socket" >&5
19074: echo "${ECHO_T}$ac_cv_lib_wsock32_socket" >&6
19075: if test $ac_cv_lib_wsock32_socket = yes; then
1.62 paf 19076: cat >>confdefs.h <<_ACEOF
1.128 moko 19077: #define HAVE_LIBWSOCK32 1
1.62 paf 19078: _ACEOF
19079:
1.128 moko 19080: LIBS="-lwsock32 $LIBS"
1.66 paf 19081:
1.1 paf 19082: fi
1.62 paf 19083:
1.66 paf 19084: ;;
19085: esac
1.1 paf 19086:
19087:
1.66 paf 19088: echo "$as_me:$LINENO: checking for sin in -lm" >&5
19089: echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
19090: if test "${ac_cv_lib_m_sin+set}" = set; then
1.62 paf 19091: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 19092: else
1.62 paf 19093: ac_check_lib_save_LIBS=$LIBS
1.66 paf 19094: LIBS="-lm $LIBS"
1.62 paf 19095: cat >conftest.$ac_ext <<_ACEOF
19096: /* confdefs.h. */
19097: _ACEOF
19098: cat confdefs.h >>conftest.$ac_ext
19099: cat >>conftest.$ac_ext <<_ACEOF
19100: /* end confdefs.h. */
19101:
1.66 paf 19102: /* Override any gcc2 internal prototype to avoid an error. */
19103: #ifdef __cplusplus
19104: extern "C"
19105: #endif
19106: /* We use char because int might match the return type of a gcc2
19107: builtin and then its argument prototype would still apply. */
19108: char sin ();
1.62 paf 19109: int
19110: main ()
19111: {
1.66 paf 19112: sin ();
1.62 paf 19113: ;
19114: return 0;
19115: }
19116: _ACEOF
19117: rm -f conftest.$ac_objext conftest$ac_exeext
19118: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 19119: (eval $ac_link) 2>conftest.er1
1.62 paf 19120: ac_status=$?
1.86 paf 19121: grep -v '^ *+' conftest.er1 >conftest.err
19122: rm -f conftest.er1
19123: cat conftest.err >&5
1.62 paf 19124: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19125: (exit $ac_status); } &&
1.86 paf 19126: { ac_try='test -z "$ac_c_werror_flag"
19127: || test ! -s conftest.err'
19128: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19129: (eval $ac_try) 2>&5
19130: ac_status=$?
19131: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19132: (exit $ac_status); }; } &&
19133: { ac_try='test -s conftest$ac_exeext'
1.62 paf 19134: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19135: (eval $ac_try) 2>&5
19136: ac_status=$?
19137: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19138: (exit $ac_status); }; }; then
1.66 paf 19139: ac_cv_lib_m_sin=yes
1.62 paf 19140: else
19141: echo "$as_me: failed program was:" >&5
19142: sed 's/^/| /' conftest.$ac_ext >&5
19143:
1.66 paf 19144: ac_cv_lib_m_sin=no
1.62 paf 19145: fi
1.86 paf 19146: rm -f conftest.err conftest.$ac_objext \
19147: conftest$ac_exeext conftest.$ac_ext
1.62 paf 19148: LIBS=$ac_check_lib_save_LIBS
19149: fi
1.66 paf 19150: echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
19151: echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
19152: if test $ac_cv_lib_m_sin = yes; then
1.62 paf 19153: cat >>confdefs.h <<_ACEOF
1.66 paf 19154: #define HAVE_LIBM 1
1.62 paf 19155: _ACEOF
1.1 paf 19156:
1.66 paf 19157: LIBS="-lm $LIBS"
1.1 paf 19158:
19159: fi
19160:
1.62 paf 19161:
1.66 paf 19162: echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
19163: echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
19164: if test "${ac_cv_lib_crypt_crypt+set}" = set; then
1.62 paf 19165: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 19166: else
1.62 paf 19167: ac_check_lib_save_LIBS=$LIBS
1.66 paf 19168: LIBS="-lcrypt $LIBS"
1.62 paf 19169: cat >conftest.$ac_ext <<_ACEOF
19170: /* confdefs.h. */
19171: _ACEOF
19172: cat confdefs.h >>conftest.$ac_ext
19173: cat >>conftest.$ac_ext <<_ACEOF
19174: /* end confdefs.h. */
19175:
1.66 paf 19176: /* Override any gcc2 internal prototype to avoid an error. */
19177: #ifdef __cplusplus
19178: extern "C"
19179: #endif
19180: /* We use char because int might match the return type of a gcc2
19181: builtin and then its argument prototype would still apply. */
19182: char crypt ();
1.62 paf 19183: int
19184: main ()
19185: {
1.66 paf 19186: crypt ();
1.62 paf 19187: ;
19188: return 0;
19189: }
19190: _ACEOF
19191: rm -f conftest.$ac_objext conftest$ac_exeext
19192: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 19193: (eval $ac_link) 2>conftest.er1
1.62 paf 19194: ac_status=$?
1.86 paf 19195: grep -v '^ *+' conftest.er1 >conftest.err
19196: rm -f conftest.er1
19197: cat conftest.err >&5
1.62 paf 19198: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19199: (exit $ac_status); } &&
1.86 paf 19200: { ac_try='test -z "$ac_c_werror_flag"
19201: || test ! -s conftest.err'
19202: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19203: (eval $ac_try) 2>&5
19204: ac_status=$?
19205: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19206: (exit $ac_status); }; } &&
19207: { ac_try='test -s conftest$ac_exeext'
1.62 paf 19208: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19209: (eval $ac_try) 2>&5
19210: ac_status=$?
19211: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19212: (exit $ac_status); }; }; then
1.66 paf 19213: ac_cv_lib_crypt_crypt=yes
1.62 paf 19214: else
19215: echo "$as_me: failed program was:" >&5
19216: sed 's/^/| /' conftest.$ac_ext >&5
19217:
1.66 paf 19218: ac_cv_lib_crypt_crypt=no
1.62 paf 19219: fi
1.86 paf 19220: rm -f conftest.err conftest.$ac_objext \
19221: conftest$ac_exeext conftest.$ac_ext
1.62 paf 19222: LIBS=$ac_check_lib_save_LIBS
19223: fi
1.66 paf 19224: echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
19225: echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
19226: if test $ac_cv_lib_crypt_crypt = yes; then
1.62 paf 19227: cat >>confdefs.h <<_ACEOF
1.66 paf 19228: #define HAVE_LIBCRYPT 1
1.62 paf 19229: _ACEOF
1.1 paf 19230:
1.66 paf 19231: LIBS="-lcrypt $LIBS"
19232:
19233: fi
19234:
19235:
19236:
19237:
19238:
19239:
19240:
19241:
19242:
19243:
19244:
19245:
1.80 paf 19246:
1.92 misha 19247:
1.112 misha 19248:
1.67 paf 19249: for ac_func in flock \
1.66 paf 19250: _locking \
19251: fcntl \
19252: lockf \
19253: ftruncate \
1.112 misha 19254: fchmod \
1.66 paf 19255: getrusage \
19256: gettimeofday \
19257: crypt \
1.80 paf 19258: sigsetjmp \
1.92 misha 19259: siglongjmp \
19260: unsetenv
1.66 paf 19261:
19262: do
19263: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19264: echo "$as_me:$LINENO: checking for $ac_func" >&5
19265: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19266: if eval "test \"\${$as_ac_var+set}\" = set"; then
19267: echo $ECHO_N "(cached) $ECHO_C" >&6
19268: else
19269: cat >conftest.$ac_ext <<_ACEOF
19270: /* confdefs.h. */
19271: _ACEOF
19272: cat confdefs.h >>conftest.$ac_ext
19273: cat >>conftest.$ac_ext <<_ACEOF
19274: /* end confdefs.h. */
1.86 paf 19275: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19276: For example, HP-UX 11i <limits.h> declares gettimeofday. */
19277: #define $ac_func innocuous_$ac_func
19278:
1.66 paf 19279: /* System header to define __stub macros and hopefully few prototypes,
19280: which can conflict with char $ac_func (); below.
19281: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19282: <limits.h> exists even on freestanding compilers. */
1.86 paf 19283:
1.66 paf 19284: #ifdef __STDC__
19285: # include <limits.h>
19286: #else
19287: # include <assert.h>
19288: #endif
1.86 paf 19289:
19290: #undef $ac_func
19291:
1.66 paf 19292: /* Override any gcc2 internal prototype to avoid an error. */
19293: #ifdef __cplusplus
19294: extern "C"
19295: {
19296: #endif
19297: /* We use char because int might match the return type of a gcc2
19298: builtin and then its argument prototype would still apply. */
19299: char $ac_func ();
19300: /* The GNU C library defines this for functions which it implements
19301: to always fail with ENOSYS. Some functions are actually named
19302: something starting with __ and the normal name is an alias. */
19303: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19304: choke me
19305: #else
19306: char (*f) () = $ac_func;
19307: #endif
19308: #ifdef __cplusplus
19309: }
19310: #endif
1.62 paf 19311:
19312: int
19313: main ()
19314: {
1.66 paf 19315: return f != $ac_func;
1.62 paf 19316: ;
19317: return 0;
19318: }
19319: _ACEOF
19320: rm -f conftest.$ac_objext conftest$ac_exeext
19321: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 19322: (eval $ac_link) 2>conftest.er1
1.62 paf 19323: ac_status=$?
1.86 paf 19324: grep -v '^ *+' conftest.er1 >conftest.err
19325: rm -f conftest.er1
19326: cat conftest.err >&5
1.62 paf 19327: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19328: (exit $ac_status); } &&
1.86 paf 19329: { ac_try='test -z "$ac_c_werror_flag"
19330: || test ! -s conftest.err'
19331: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19332: (eval $ac_try) 2>&5
19333: ac_status=$?
19334: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19335: (exit $ac_status); }; } &&
19336: { ac_try='test -s conftest$ac_exeext'
1.62 paf 19337: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19338: (eval $ac_try) 2>&5
19339: ac_status=$?
19340: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19341: (exit $ac_status); }; }; then
1.66 paf 19342: eval "$as_ac_var=yes"
1.62 paf 19343: else
19344: echo "$as_me: failed program was:" >&5
19345: sed 's/^/| /' conftest.$ac_ext >&5
19346:
1.66 paf 19347: eval "$as_ac_var=no"
1.62 paf 19348: fi
1.86 paf 19349: rm -f conftest.err conftest.$ac_objext \
19350: conftest$ac_exeext conftest.$ac_ext
1.62 paf 19351: fi
1.66 paf 19352: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19353: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19354: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.62 paf 19355: cat >>confdefs.h <<_ACEOF
1.66 paf 19356: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.62 paf 19357: _ACEOF
1.1 paf 19358:
1.66 paf 19359: fi
19360: done
19361:
1.1 paf 19362:
19363:
1.67 paf 19364: pa_func=sigsetjmp
19365: echo "$as_me:$LINENO: checking for (maybe built-in) function $pa_func" >&5
19366: echo $ECHO_N "checking for (maybe built-in) function $pa_func... $ECHO_C" >&6
19367: cat >conftest.$ac_ext <<_ACEOF
19368: /* confdefs.h. */
19369: _ACEOF
19370: cat confdefs.h >>conftest.$ac_ext
19371: cat >>conftest.$ac_ext <<_ACEOF
19372: /* end confdefs.h. */
19373:
19374: #ifdef HAVE_SETJMP_H
19375: # include <setjmp.h>
19376: #endif
19377:
19378: int
19379: main ()
19380: {
19381:
19382: $pa_func(0,0);
19383:
19384: ;
19385: return 0;
19386: }
19387: _ACEOF
19388: rm -f conftest.$ac_objext
19389: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 19390: (eval $ac_compile) 2>conftest.er1
1.67 paf 19391: ac_status=$?
1.86 paf 19392: grep -v '^ *+' conftest.er1 >conftest.err
19393: rm -f conftest.er1
19394: cat conftest.err >&5
1.67 paf 19395: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19396: (exit $ac_status); } &&
1.86 paf 19397: { ac_try='test -z "$ac_c_werror_flag"
19398: || test ! -s conftest.err'
19399: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19400: (eval $ac_try) 2>&5
19401: ac_status=$?
19402: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19403: (exit $ac_status); }; } &&
19404: { ac_try='test -s conftest.$ac_objext'
1.67 paf 19405: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19406: (eval $ac_try) 2>&5
19407: ac_status=$?
19408: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19409: (exit $ac_status); }; }; then
19410: echo "$as_me:$LINENO: result: yes" >&5
19411: echo "${ECHO_T}yes" >&6
19412: cat >>confdefs.h <<_ACEOF
19413: #define `echo "HAVE_$pa_func" | $as_tr_cpp` 1
19414: _ACEOF
19415:
19416:
19417: else
19418: echo "$as_me: failed program was:" >&5
19419: sed 's/^/| /' conftest.$ac_ext >&5
19420:
19421: echo "$as_me:$LINENO: result: no" >&5
19422: echo "${ECHO_T}no" >&6
19423:
19424: fi
1.86 paf 19425: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.67 paf 19426:
19427:
19428:
19429: ac_ext=cc
19430: ac_cpp='$CXXCPP $CPPFLAGS'
19431: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19432: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19433: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19434:
19435:
19436:
19437:
19438:
19439:
19440: for pa_func in trunc \
19441: round \
19442: sign
19443:
19444: do
19445:
19446: echo "$as_me:$LINENO: checking for (maybe built-in) math function $pa_func" >&5
19447: echo $ECHO_N "checking for (maybe built-in) math function $pa_func... $ECHO_C" >&6
19448: cat >conftest.$ac_ext <<_ACEOF
19449: /* confdefs.h. */
19450: _ACEOF
19451: cat confdefs.h >>conftest.$ac_ext
19452: cat >>conftest.$ac_ext <<_ACEOF
19453: /* end confdefs.h. */
19454:
19455: #ifdef HAVE_MATH_H
19456: # include <math.h>
19457: #endif
19458:
19459: int
19460: main ()
19461: {
19462:
19463: double result=$pa_func(1.6);
19464:
19465: ;
19466: return 0;
19467: }
19468: _ACEOF
19469: rm -f conftest.$ac_objext
19470: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 19471: (eval $ac_compile) 2>conftest.er1
1.67 paf 19472: ac_status=$?
1.86 paf 19473: grep -v '^ *+' conftest.er1 >conftest.err
19474: rm -f conftest.er1
19475: cat conftest.err >&5
1.67 paf 19476: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19477: (exit $ac_status); } &&
1.86 paf 19478: { ac_try='test -z "$ac_cxx_werror_flag"
19479: || test ! -s conftest.err'
19480: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19481: (eval $ac_try) 2>&5
19482: ac_status=$?
19483: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19484: (exit $ac_status); }; } &&
19485: { ac_try='test -s conftest.$ac_objext'
1.67 paf 19486: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19487: (eval $ac_try) 2>&5
19488: ac_status=$?
19489: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19490: (exit $ac_status); }; }; then
19491: echo "$as_me:$LINENO: result: yes" >&5
19492: echo "${ECHO_T}yes" >&6
19493: cat >>confdefs.h <<_ACEOF
19494: #define `echo "HAVE_$pa_func" | $as_tr_cpp` 1
19495: _ACEOF
19496:
19497: else
19498: echo "$as_me: failed program was:" >&5
19499: sed 's/^/| /' conftest.$ac_ext >&5
19500:
19501: echo "$as_me:$LINENO: result: no" >&5
19502: echo "${ECHO_T}no" >&6
19503:
19504: fi
1.86 paf 19505: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.67 paf 19506:
19507: done
19508:
19509: ac_ext=c
19510: ac_cpp='$CPP $CPPFLAGS'
19511: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19512: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19513: ac_compiler_gnu=$ac_cv_c_compiler_gnu
19514:
19515:
19516:
1.62 paf 19517:
1.66 paf 19518: for ac_func in qsort
19519: do
19520: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19521: echo "$as_me:$LINENO: checking for $ac_func" >&5
19522: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19523: if eval "test \"\${$as_ac_var+set}\" = set"; then
1.62 paf 19524: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 19525: else
1.66 paf 19526: cat >conftest.$ac_ext <<_ACEOF
1.62 paf 19527: /* confdefs.h. */
19528: _ACEOF
19529: cat confdefs.h >>conftest.$ac_ext
19530: cat >>conftest.$ac_ext <<_ACEOF
19531: /* end confdefs.h. */
1.86 paf 19532: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19533: For example, HP-UX 11i <limits.h> declares gettimeofday. */
19534: #define $ac_func innocuous_$ac_func
19535:
1.66 paf 19536: /* System header to define __stub macros and hopefully few prototypes,
19537: which can conflict with char $ac_func (); below.
19538: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19539: <limits.h> exists even on freestanding compilers. */
1.86 paf 19540:
1.66 paf 19541: #ifdef __STDC__
19542: # include <limits.h>
19543: #else
19544: # include <assert.h>
19545: #endif
1.86 paf 19546:
19547: #undef $ac_func
19548:
1.1 paf 19549: /* Override any gcc2 internal prototype to avoid an error. */
19550: #ifdef __cplusplus
19551: extern "C"
1.66 paf 19552: {
1.1 paf 19553: #endif
19554: /* We use char because int might match the return type of a gcc2
1.62 paf 19555: builtin and then its argument prototype would still apply. */
1.66 paf 19556: char $ac_func ();
19557: /* The GNU C library defines this for functions which it implements
19558: to always fail with ENOSYS. Some functions are actually named
19559: something starting with __ and the normal name is an alias. */
19560: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19561: choke me
19562: #else
19563: char (*f) () = $ac_func;
19564: #endif
19565: #ifdef __cplusplus
19566: }
19567: #endif
19568:
1.62 paf 19569: int
19570: main ()
19571: {
1.66 paf 19572: return f != $ac_func;
1.62 paf 19573: ;
19574: return 0;
19575: }
19576: _ACEOF
19577: rm -f conftest.$ac_objext conftest$ac_exeext
19578: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 19579: (eval $ac_link) 2>conftest.er1
1.62 paf 19580: ac_status=$?
1.86 paf 19581: grep -v '^ *+' conftest.er1 >conftest.err
19582: rm -f conftest.er1
19583: cat conftest.err >&5
1.62 paf 19584: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19585: (exit $ac_status); } &&
1.86 paf 19586: { ac_try='test -z "$ac_c_werror_flag"
19587: || test ! -s conftest.err'
19588: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19589: (eval $ac_try) 2>&5
19590: ac_status=$?
19591: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19592: (exit $ac_status); }; } &&
19593: { ac_try='test -s conftest$ac_exeext'
1.62 paf 19594: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19595: (eval $ac_try) 2>&5
19596: ac_status=$?
19597: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19598: (exit $ac_status); }; }; then
1.66 paf 19599: eval "$as_ac_var=yes"
1.62 paf 19600: else
19601: echo "$as_me: failed program was:" >&5
19602: sed 's/^/| /' conftest.$ac_ext >&5
19603:
1.66 paf 19604: eval "$as_ac_var=no"
1.62 paf 19605: fi
1.86 paf 19606: rm -f conftest.err conftest.$ac_objext \
19607: conftest$ac_exeext conftest.$ac_ext
1.62 paf 19608: fi
1.66 paf 19609: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19610: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19611: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.62 paf 19612: cat >>confdefs.h <<_ACEOF
1.66 paf 19613: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.62 paf 19614: _ACEOF
1.1 paf 19615:
1.66 paf 19616: else
19617: { { echo "$as_me:$LINENO: error: No qsort library function." >&5
19618: echo "$as_me: error: No qsort library function." >&2;}
19619: { (exit 1); exit 1; }; }
1.1 paf 19620: fi
1.66 paf 19621: done
1.1 paf 19622:
19623:
1.62 paf 19624:
1.66 paf 19625: echo "$as_me:$LINENO: checking for timezone variable" >&5
19626: echo $ECHO_N "checking for timezone variable... $ECHO_C" >&6
1.62 paf 19627: cat >conftest.$ac_ext <<_ACEOF
19628: /* confdefs.h. */
19629: _ACEOF
19630: cat confdefs.h >>conftest.$ac_ext
19631: cat >>conftest.$ac_ext <<_ACEOF
19632: /* end confdefs.h. */
1.66 paf 19633: #include <time.h>
1.62 paf 19634: int
19635: main ()
19636: {
1.66 paf 19637:
19638: time_t test=timezone;
19639:
1.62 paf 19640: ;
19641: return 0;
19642: }
19643: _ACEOF
1.66 paf 19644: rm -f conftest.$ac_objext
19645: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 19646: (eval $ac_compile) 2>conftest.er1
1.62 paf 19647: ac_status=$?
1.86 paf 19648: grep -v '^ *+' conftest.er1 >conftest.err
19649: rm -f conftest.er1
19650: cat conftest.err >&5
1.62 paf 19651: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19652: (exit $ac_status); } &&
1.86 paf 19653: { ac_try='test -z "$ac_c_werror_flag"
19654: || test ! -s conftest.err'
19655: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19656: (eval $ac_try) 2>&5
19657: ac_status=$?
19658: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19659: (exit $ac_status); }; } &&
19660: { ac_try='test -s conftest.$ac_objext'
1.62 paf 19661: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19662: (eval $ac_try) 2>&5
19663: ac_status=$?
19664: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19665: (exit $ac_status); }; }; then
1.66 paf 19666: cat >>confdefs.h <<\_ACEOF
19667: #define HAVE_TIMEZONE 1
19668: _ACEOF
19669:
19670: echo "$as_me:$LINENO: result: yes" >&5
19671: echo "${ECHO_T}yes" >&6
1.62 paf 19672: else
19673: echo "$as_me: failed program was:" >&5
19674: sed 's/^/| /' conftest.$ac_ext >&5
19675:
1.66 paf 19676: echo "$as_me:$LINENO: result: no" >&5
19677: echo "${ECHO_T}no" >&6
1.62 paf 19678: fi
1.86 paf 19679: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 paf 19680:
1.66 paf 19681: echo "$as_me:$LINENO: checking for daylight variable" >&5
19682: echo $ECHO_N "checking for daylight variable... $ECHO_C" >&6
1.62 paf 19683: cat >conftest.$ac_ext <<_ACEOF
19684: /* confdefs.h. */
19685: _ACEOF
19686: cat confdefs.h >>conftest.$ac_ext
19687: cat >>conftest.$ac_ext <<_ACEOF
19688: /* end confdefs.h. */
1.66 paf 19689: #include <time.h>
1.62 paf 19690: int
19691: main ()
19692: {
1.66 paf 19693:
19694: int test=daylight;
19695:
1.62 paf 19696: ;
19697: return 0;
19698: }
19699: _ACEOF
1.66 paf 19700: rm -f conftest.$ac_objext
19701: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 19702: (eval $ac_compile) 2>conftest.er1
1.62 paf 19703: ac_status=$?
1.86 paf 19704: grep -v '^ *+' conftest.er1 >conftest.err
19705: rm -f conftest.er1
19706: cat conftest.err >&5
1.62 paf 19707: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19708: (exit $ac_status); } &&
1.86 paf 19709: { ac_try='test -z "$ac_c_werror_flag"
19710: || test ! -s conftest.err'
19711: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19712: (eval $ac_try) 2>&5
19713: ac_status=$?
19714: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19715: (exit $ac_status); }; } &&
19716: { ac_try='test -s conftest.$ac_objext'
1.62 paf 19717: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19718: (eval $ac_try) 2>&5
19719: ac_status=$?
19720: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19721: (exit $ac_status); }; }; then
1.66 paf 19722: cat >>confdefs.h <<\_ACEOF
19723: #define HAVE_DAYLIGHT 1
19724: _ACEOF
19725:
19726: echo "$as_me:$LINENO: result: yes" >&5
19727: echo "${ECHO_T}yes" >&6
1.62 paf 19728: else
19729: echo "$as_me: failed program was:" >&5
19730: sed 's/^/| /' conftest.$ac_ext >&5
19731:
1.66 paf 19732: echo "$as_me:$LINENO: result: no" >&5
19733: echo "${ECHO_T}no" >&6
1.62 paf 19734: fi
1.86 paf 19735: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.62 paf 19736:
1.66 paf 19737: echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
19738: echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
1.62 paf 19739: cat >conftest.$ac_ext <<_ACEOF
19740: /* confdefs.h. */
19741: _ACEOF
19742: cat confdefs.h >>conftest.$ac_ext
19743: cat >>conftest.$ac_ext <<_ACEOF
19744: /* end confdefs.h. */
1.66 paf 19745: #include <time.h>
1.62 paf 19746: int
19747: main ()
19748: {
1.66 paf 19749: struct tm tm;
19750: tm.tm_gmtoff=0;
19751:
1.62 paf 19752: ;
19753: return 0;
19754: }
19755: _ACEOF
1.66 paf 19756: rm -f conftest.$ac_objext
19757: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 19758: (eval $ac_compile) 2>conftest.er1
1.62 paf 19759: ac_status=$?
1.86 paf 19760: grep -v '^ *+' conftest.er1 >conftest.err
19761: rm -f conftest.er1
19762: cat conftest.err >&5
1.62 paf 19763: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19764: (exit $ac_status); } &&
1.86 paf 19765: { ac_try='test -z "$ac_c_werror_flag"
19766: || test ! -s conftest.err'
19767: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19768: (eval $ac_try) 2>&5
19769: ac_status=$?
19770: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19771: (exit $ac_status); }; } &&
19772: { ac_try='test -s conftest.$ac_objext'
1.62 paf 19773: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19774: (eval $ac_try) 2>&5
19775: ac_status=$?
19776: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19777: (exit $ac_status); }; }; then
1.66 paf 19778: cat >>confdefs.h <<\_ACEOF
19779: #define HAVE_TM_GMTOFF 1
19780: _ACEOF
19781:
19782: echo "$as_me:$LINENO: result: yes" >&5
19783: echo "${ECHO_T}yes" >&6
1.62 paf 19784: else
19785: echo "$as_me: failed program was:" >&5
19786: sed 's/^/| /' conftest.$ac_ext >&5
19787:
1.66 paf 19788: echo "$as_me:$LINENO: result: no" >&5
19789: echo "${ECHO_T}no" >&6
1.62 paf 19790: fi
1.86 paf 19791: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 paf 19792:
1.66 paf 19793: echo "$as_me:$LINENO: checking for tm_tzadj in struct tm" >&5
19794: echo $ECHO_N "checking for tm_tzadj in struct tm... $ECHO_C" >&6
1.62 paf 19795: cat >conftest.$ac_ext <<_ACEOF
19796: /* confdefs.h. */
19797: _ACEOF
19798: cat confdefs.h >>conftest.$ac_ext
19799: cat >>conftest.$ac_ext <<_ACEOF
19800: /* end confdefs.h. */
1.66 paf 19801: #include <time.h>
1.62 paf 19802: int
19803: main ()
19804: {
1.66 paf 19805: struct tm tm;
19806: tm.tm_tzadj=0;
19807:
1.62 paf 19808: ;
19809: return 0;
19810: }
19811: _ACEOF
1.66 paf 19812: rm -f conftest.$ac_objext
19813: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 19814: (eval $ac_compile) 2>conftest.er1
1.62 paf 19815: ac_status=$?
1.86 paf 19816: grep -v '^ *+' conftest.er1 >conftest.err
19817: rm -f conftest.er1
19818: cat conftest.err >&5
1.62 paf 19819: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19820: (exit $ac_status); } &&
1.86 paf 19821: { ac_try='test -z "$ac_c_werror_flag"
19822: || test ! -s conftest.err'
19823: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19824: (eval $ac_try) 2>&5
19825: ac_status=$?
19826: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19827: (exit $ac_status); }; } &&
19828: { ac_try='test -s conftest.$ac_objext'
1.62 paf 19829: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19830: (eval $ac_try) 2>&5
19831: ac_status=$?
19832: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19833: (exit $ac_status); }; }; then
1.66 paf 19834: cat >>confdefs.h <<\_ACEOF
19835: #define HAVE_TM_TZADJ 1
19836: _ACEOF
19837:
19838: echo "$as_me:$LINENO: result: yes" >&5
19839: echo "${ECHO_T}yes" >&6
1.62 paf 19840: else
19841: echo "$as_me: failed program was:" >&5
19842: sed 's/^/| /' conftest.$ac_ext >&5
19843:
1.66 paf 19844: echo "$as_me:$LINENO: result: no" >&5
19845: echo "${ECHO_T}no" >&6
1.62 paf 19846: fi
1.86 paf 19847: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.31 paf 19848:
19849:
19850:
19851:
1.1 paf 19852:
19853:
19854:
1.62 paf 19855:
19856:
19857:
19858:
19859:
19860:
19861:
19862:
19863:
19864:
19865:
19866:
19867:
19868:
19869:
19870:
19871:
19872:
19873:
19874:
19875:
19876:
19877:
19878:
1.128 moko 19879: ac_config_headers="$ac_config_headers src/include/pa_config_auto.h"
1.62 paf 19880:
19881:
1.130 moko 19882: ac_config_files="$ac_config_files Makefile src/Makefile src/types/Makefile src/classes/Makefile src/include/Makefile src/main/Makefile src/sql/Makefile src/lib/Makefile src/lib/gd/Makefile src/lib/smtp/Makefile src/lib/gc/Makefile src/lib/gc/include/Makefile src/lib/pcre/Makefile src/lib/cord/Makefile src/lib/cord/include/Makefile src/lib/cord/include/private/Makefile src/lib/md5/Makefile src/lib/sdbm/Makefile src/lib/sdbm/pa-include/Makefile src/lib/json/Makefile src/lib/memcached/Makefile src/lib/curl/Makefile src/targets/Makefile src/targets/cgi/Makefile src/targets/apache/Makefile src/targets/isapi/Makefile etc/Makefile etc/parser3.charsets/Makefile bin/Makefile bin/auto.p.dist"
1.62 paf 19883: cat >confcache <<\_ACEOF
1.1 paf 19884: # This file is a shell script that caches the results of configure
19885: # tests run on this system so they can be shared between configure
1.62 paf 19886: # scripts and configure runs, see configure's option --config-cache.
19887: # It is not useful on other systems. If it contains results you don't
19888: # want to keep, you may remove or edit it.
1.1 paf 19889: #
1.62 paf 19890: # config.status only pays attention to the cache file if you give it
19891: # the --recheck option to rerun configure.
1.1 paf 19892: #
1.62 paf 19893: # `ac_cv_env_foo' variables (set or unset) will be overridden when
19894: # loading this file, other *unset* `ac_cv_foo' will be assigned the
19895: # following values.
19896:
19897: _ACEOF
19898:
1.1 paf 19899: # The following way of writing the cache mishandles newlines in values,
19900: # but we know of no workaround that is simple, portable, and efficient.
19901: # So, don't put newlines in cache variables' values.
19902: # Ultrix sh set writes to stderr and can't be redirected directly,
19903: # and sets the high bit in the cache file unless we assign to the vars.
1.62 paf 19904: {
19905: (set) 2>&1 |
19906: case `(ac_space=' '; set | grep ac_space) 2>&1` in
19907: *ac_space=\ *)
19908: # `set' does not quote correctly, so add quotes (double-quote
19909: # substitution turns \\\\ into \\, and sed turns \\ into \).
19910: sed -n \
1.86 paf 19911: "s/'/'\\\\''/g;
19912: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
1.62 paf 19913: ;;
19914: *)
19915: # `set' quotes correctly as required by POSIX, so do not add quotes.
19916: sed -n \
1.86 paf 19917: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1.62 paf 19918: ;;
19919: esac;
19920: } |
19921: sed '
19922: t clear
19923: : clear
19924: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19925: t end
19926: /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19927: : end' >>confcache
19928: if diff $cache_file confcache >/dev/null 2>&1; then :; else
1.1 paf 19929: if test -w $cache_file; then
1.62 paf 19930: test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19931: cat confcache >$cache_file
1.1 paf 19932: else
19933: echo "not updating unwritable cache $cache_file"
19934: fi
19935: fi
19936: rm -f confcache
19937:
19938: test "x$prefix" = xNONE && prefix=$ac_default_prefix
19939: # Let make expand exec_prefix.
19940: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19941:
1.62 paf 19942: # VPATH may cause trouble with some makes, so we remove $(srcdir),
19943: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19944: # trailing colons and then remove the whole line if VPATH becomes empty
19945: # (actually we leave an empty line to preserve line numbers).
1.1 paf 19946: if test "x$srcdir" = x.; then
1.86 paf 19947: ac_vpsub='/^[ ]*VPATH[ ]*=/{
1.62 paf 19948: s/:*\$(srcdir):*/:/;
19949: s/:*\${srcdir}:*/:/;
19950: s/:*@srcdir@:*/:/;
1.86 paf 19951: s/^\([^=]*=[ ]*\):*/\1/;
1.62 paf 19952: s/:*$//;
1.86 paf 19953: s/^[^=]*=[ ]*$//;
1.62 paf 19954: }'
1.1 paf 19955: fi
19956:
1.62 paf 19957: DEFS=-DHAVE_CONFIG_H
19958:
19959: ac_libobjs=
19960: ac_ltlibobjs=
19961: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19962: # 1. Remove the extension, and $U if already installed.
19963: ac_i=`echo "$ac_i" |
1.86 paf 19964: sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
1.62 paf 19965: # 2. Add them.
19966: ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19967: ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19968: done
19969: LIBOBJS=$ac_libobjs
19970:
19971: LTLIBOBJS=$ac_ltlibobjs
1.1 paf 19972:
19973:
1.62 paf 19974: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19975: { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19976: Usually this means the macro was only invoked conditionally." >&5
19977: echo "$as_me: error: conditional \"AMDEP\" was never defined.
19978: Usually this means the macro was only invoked conditionally." >&2;}
19979: { (exit 1); exit 1; }; }
19980: fi
1.66 paf 19981: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19982: { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
1.62 paf 19983: Usually this means the macro was only invoked conditionally." >&5
1.66 paf 19984: echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
1.62 paf 19985: Usually this means the macro was only invoked conditionally." >&2;}
19986: { (exit 1); exit 1; }; }
19987: fi
1.66 paf 19988: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19989: { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
1.62 paf 19990: Usually this means the macro was only invoked conditionally." >&5
1.66 paf 19991: echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
1.62 paf 19992: Usually this means the macro was only invoked conditionally." >&2;}
19993: { (exit 1); exit 1; }; }
19994: fi
1.122 moko 19995: if test -z "${COMPILE_APACHE_MODULE_TRUE}" && test -z "${COMPILE_APACHE_MODULE_FALSE}"; then
19996: { { echo "$as_me:$LINENO: error: conditional \"COMPILE_APACHE_MODULE\" was never defined.
1.62 paf 19997: Usually this means the macro was only invoked conditionally." >&5
1.122 moko 19998: echo "$as_me: error: conditional \"COMPILE_APACHE_MODULE\" was never defined.
1.62 paf 19999: Usually this means the macro was only invoked conditionally." >&2;}
20000: { (exit 1); exit 1; }; }
20001: fi
1.128 moko 20002: if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
20003: { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
20004: Usually this means the macro was only invoked conditionally." >&5
20005: echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
20006: Usually this means the macro was only invoked conditionally." >&2;}
20007: { (exit 1); exit 1; }; }
20008: fi
20009: if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
20010: { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20011: Usually this means the macro was only invoked conditionally." >&5
20012: echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20013: Usually this means the macro was only invoked conditionally." >&2;}
20014: { (exit 1); exit 1; }; }
20015: fi
20016: LT_CONFIG_H=`echo " src/include/pa_config_auto.h" | $SED 's,^[ ]*,,;s,[ :].*$,,'`
20017:
20018: _ltdl_libobjs=
20019: _ltdl_ltlibobjs=
20020: if test -n "$_LT_LIBOBJS"; then
20021: # Remove the extension.
20022: _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
20023: for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
20024: _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
20025: _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
20026: done
20027: fi
20028: ltdl_LIBOBJS=$_ltdl_libobjs
20029:
20030: ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
20031:
20032:
1.62 paf 20033:
1.1 paf 20034: : ${CONFIG_STATUS=./config.status}
1.62 paf 20035: ac_clean_files_save=$ac_clean_files
20036: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20037: { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20038: echo "$as_me: creating $CONFIG_STATUS" >&6;}
20039: cat >$CONFIG_STATUS <<_ACEOF
20040: #! $SHELL
20041: # Generated by $as_me.
20042: # Run this file to recreate the current configuration.
20043: # Compiler output produced by configure, useful for debugging
20044: # configure, is in config.log if it exists.
20045:
20046: debug=false
20047: ac_cs_recheck=false
20048: ac_cs_silent=false
20049: SHELL=\${CONFIG_SHELL-$SHELL}
20050: _ACEOF
20051:
20052: cat >>$CONFIG_STATUS <<\_ACEOF
20053: ## --------------------- ##
20054: ## M4sh Initialization. ##
20055: ## --------------------- ##
20056:
20057: # Be Bourne compatible
20058: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20059: emulate sh
20060: NULLCMD=:
20061: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20062: # is contrary to our usage. Disable this feature.
20063: alias -g '${1+"$@"}'='"$@"'
20064: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20065: set -o posix
20066: fi
1.86 paf 20067: DUALCASE=1; export DUALCASE # for MKS sh
1.62 paf 20068:
20069: # Support unset when possible.
1.86 paf 20070: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
1.62 paf 20071: as_unset=unset
20072: else
20073: as_unset=false
20074: fi
20075:
20076:
20077: # Work around bugs in pre-3.0 UWIN ksh.
20078: $as_unset ENV MAIL MAILPATH
20079: PS1='$ '
20080: PS2='> '
20081: PS4='+ '
20082:
20083: # NLS nuisances.
20084: for as_var in \
20085: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20086: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20087: LC_TELEPHONE LC_TIME
20088: do
1.86 paf 20089: if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
1.62 paf 20090: eval $as_var=C; export $as_var
20091: else
20092: $as_unset $as_var
20093: fi
20094: done
1.1 paf 20095:
1.62 paf 20096: # Required to use basename.
20097: if expr a : '\(a\)' >/dev/null 2>&1; then
20098: as_expr=expr
20099: else
20100: as_expr=false
20101: fi
20102:
20103: if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20104: as_basename=basename
20105: else
20106: as_basename=false
20107: fi
20108:
20109:
20110: # Name of the executable.
20111: as_me=`$as_basename "$0" ||
20112: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20113: X"$0" : 'X\(//\)$' \| \
20114: X"$0" : 'X\(/\)$' \| \
20115: . : '\(.\)' 2>/dev/null ||
20116: echo X/"$0" |
20117: sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20118: /^X\/\(\/\/\)$/{ s//\1/; q; }
20119: /^X\/\(\/\).*/{ s//\1/; q; }
20120: s/.*/./; q'`
20121:
20122:
20123: # PATH needs CR, and LINENO needs CR and PATH.
20124: # Avoid depending upon Character Ranges.
20125: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20126: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20127: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20128: as_cr_digits='0123456789'
20129: as_cr_alnum=$as_cr_Letters$as_cr_digits
20130:
20131: # The user is always right.
20132: if test "${PATH_SEPARATOR+set}" != set; then
20133: echo "#! /bin/sh" >conf$$.sh
20134: echo "exit 0" >>conf$$.sh
20135: chmod +x conf$$.sh
20136: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20137: PATH_SEPARATOR=';'
20138: else
20139: PATH_SEPARATOR=:
20140: fi
20141: rm -f conf$$.sh
20142: fi
20143:
20144:
20145: as_lineno_1=$LINENO
20146: as_lineno_2=$LINENO
20147: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20148: test "x$as_lineno_1" != "x$as_lineno_2" &&
20149: test "x$as_lineno_3" = "x$as_lineno_2" || {
20150: # Find who we are. Look in the path if we contain no path at all
20151: # relative or not.
20152: case $0 in
20153: *[\\/]* ) as_myself=$0 ;;
20154: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20155: for as_dir in $PATH
20156: do
20157: IFS=$as_save_IFS
20158: test -z "$as_dir" && as_dir=.
20159: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20160: done
20161:
20162: ;;
20163: esac
20164: # We did not find ourselves, most probably we were run as `sh COMMAND'
20165: # in which case we are not to be found in the path.
20166: if test "x$as_myself" = x; then
20167: as_myself=$0
20168: fi
20169: if test ! -f "$as_myself"; then
20170: { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20171: echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20172: { (exit 1); exit 1; }; }
20173: fi
20174: case $CONFIG_SHELL in
20175: '')
20176: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20177: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20178: do
20179: IFS=$as_save_IFS
20180: test -z "$as_dir" && as_dir=.
20181: for as_base in sh bash ksh sh5; do
20182: case $as_dir in
20183: /*)
20184: if ("$as_dir/$as_base" -c '
20185: as_lineno_1=$LINENO
20186: as_lineno_2=$LINENO
20187: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20188: test "x$as_lineno_1" != "x$as_lineno_2" &&
20189: test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20190: $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20191: $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20192: CONFIG_SHELL=$as_dir/$as_base
20193: export CONFIG_SHELL
20194: exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20195: fi;;
20196: esac
20197: done
20198: done
20199: ;;
20200: esac
20201:
20202: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20203: # uniformly replaced by the line number. The first 'sed' inserts a
20204: # line-number line before each line; the second 'sed' does the real
20205: # work. The second script uses 'N' to pair each line-number line
20206: # with the numbered line, and appends trailing '-' during
20207: # substitution so that $LINENO is not a special case at line end.
20208: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20209: # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20210: sed '=' <$as_myself |
20211: sed '
20212: N
20213: s,$,-,
20214: : loop
20215: s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20216: t loop
20217: s,-$,,
20218: s,^['$as_cr_digits']*\n,,
20219: ' >$as_me.lineno &&
20220: chmod +x $as_me.lineno ||
20221: { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20222: echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20223: { (exit 1); exit 1; }; }
20224:
20225: # Don't try to exec as it changes $[0], causing all sort of problems
20226: # (the dirname of $[0] is not the place where we might find the
20227: # original and so on. Autoconf is especially sensible to this).
20228: . ./$as_me.lineno
20229: # Exit status is that of the last command.
20230: exit
20231: }
20232:
20233:
20234: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20235: *c*,-n*) ECHO_N= ECHO_C='
20236: ' ECHO_T=' ' ;;
20237: *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20238: *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20239: esac
20240:
20241: if expr a : '\(a\)' >/dev/null 2>&1; then
20242: as_expr=expr
20243: else
20244: as_expr=false
20245: fi
20246:
20247: rm -f conf$$ conf$$.exe conf$$.file
20248: echo >conf$$.file
20249: if ln -s conf$$.file conf$$ 2>/dev/null; then
20250: # We could just check for DJGPP; but this test a) works b) is more generic
20251: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20252: if test -f conf$$.exe; then
20253: # Don't use ln at all; we don't have any links
20254: as_ln_s='cp -p'
20255: else
20256: as_ln_s='ln -s'
20257: fi
20258: elif ln conf$$.file conf$$ 2>/dev/null; then
20259: as_ln_s=ln
20260: else
20261: as_ln_s='cp -p'
20262: fi
20263: rm -f conf$$ conf$$.exe conf$$.file
20264:
20265: if mkdir -p . 2>/dev/null; then
20266: as_mkdir_p=:
20267: else
1.86 paf 20268: test -d ./-p && rmdir ./-p
1.62 paf 20269: as_mkdir_p=false
20270: fi
20271:
20272: as_executable_p="test -f"
20273:
20274: # Sed expression to map a string onto a valid CPP name.
1.86 paf 20275: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.62 paf 20276:
20277: # Sed expression to map a string onto a valid variable name.
1.86 paf 20278: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.62 paf 20279:
20280:
20281: # IFS
20282: # We need space, tab and new line, in precisely that order.
20283: as_nl='
20284: '
20285: IFS=" $as_nl"
20286:
20287: # CDPATH.
20288: $as_unset CDPATH
20289:
20290: exec 6>&1
20291:
20292: # Open the log real soon, to keep \$[0] and so on meaningful, and to
20293: # report actual input values of CONFIG_FILES etc. instead of their
20294: # values after options handling. Logging --version etc. is OK.
20295: exec 5>>config.log
20296: {
20297: echo
20298: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20299: ## Running $as_me. ##
20300: _ASBOX
20301: } >&5
20302: cat >&5 <<_CSEOF
20303:
1.128 moko 20304: This file was extended by parser $as_me 3.4.2b, which was
1.86 paf 20305: generated by GNU Autoconf 2.59. Invocation command line was
1.62 paf 20306:
20307: CONFIG_FILES = $CONFIG_FILES
20308: CONFIG_HEADERS = $CONFIG_HEADERS
20309: CONFIG_LINKS = $CONFIG_LINKS
20310: CONFIG_COMMANDS = $CONFIG_COMMANDS
20311: $ $0 $@
20312:
20313: _CSEOF
20314: echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20315: echo >&5
20316: _ACEOF
20317:
20318: # Files that config.status was made for.
20319: if test -n "$ac_config_files"; then
20320: echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20321: fi
20322:
20323: if test -n "$ac_config_headers"; then
20324: echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20325: fi
20326:
20327: if test -n "$ac_config_links"; then
20328: echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20329: fi
20330:
20331: if test -n "$ac_config_commands"; then
20332: echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20333: fi
20334:
20335: cat >>$CONFIG_STATUS <<\_ACEOF
20336:
20337: ac_cs_usage="\
20338: \`$as_me' instantiates files from templates according to the
20339: current configuration.
20340:
20341: Usage: $0 [OPTIONS] [FILE]...
20342:
20343: -h, --help print this help, then exit
20344: -V, --version print version number, then exit
20345: -q, --quiet do not print progress messages
20346: -d, --debug don't remove temporary files
20347: --recheck update $as_me by reconfiguring in the same conditions
20348: --file=FILE[:TEMPLATE]
1.86 paf 20349: instantiate the configuration file FILE
1.62 paf 20350: --header=FILE[:TEMPLATE]
1.86 paf 20351: instantiate the configuration header FILE
1.62 paf 20352:
20353: Configuration files:
20354: $config_files
20355:
20356: Configuration headers:
20357: $config_headers
20358:
20359: Configuration commands:
20360: $config_commands
20361:
20362: Report bugs to <bug-autoconf@gnu.org>."
20363: _ACEOF
20364:
20365: cat >>$CONFIG_STATUS <<_ACEOF
20366: ac_cs_version="\\
1.128 moko 20367: parser config.status 3.4.2b
1.86 paf 20368: configured by $0, generated by GNU Autoconf 2.59,
1.62 paf 20369: with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20370:
1.86 paf 20371: Copyright (C) 2003 Free Software Foundation, Inc.
1.62 paf 20372: This config.status script is free software; the Free Software Foundation
20373: gives unlimited permission to copy, distribute and modify it."
20374: srcdir=$srcdir
20375: INSTALL="$INSTALL"
20376: _ACEOF
20377:
20378: cat >>$CONFIG_STATUS <<\_ACEOF
20379: # If no file are specified by the user, then we need to provide default
20380: # value. By we need to know if files were specified by the user.
20381: ac_need_defaults=:
20382: while test $# != 0
20383: do
20384: case $1 in
20385: --*=*)
20386: ac_option=`expr "x$1" : 'x\([^=]*\)='`
20387: ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20388: ac_shift=:
20389: ;;
20390: -*)
20391: ac_option=$1
20392: ac_optarg=$2
20393: ac_shift=shift
20394: ;;
20395: *) # This is not an option, so the user has probably given explicit
20396: # arguments.
20397: ac_option=$1
20398: ac_need_defaults=false;;
20399: esac
20400:
20401: case $ac_option in
20402: # Handling of the options.
20403: _ACEOF
20404: cat >>$CONFIG_STATUS <<\_ACEOF
20405: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20406: ac_cs_recheck=: ;;
20407: --version | --vers* | -V )
20408: echo "$ac_cs_version"; exit 0 ;;
20409: --he | --h)
20410: # Conflict between --help and --header
20411: { { echo "$as_me:$LINENO: error: ambiguous option: $1
20412: Try \`$0 --help' for more information." >&5
20413: echo "$as_me: error: ambiguous option: $1
20414: Try \`$0 --help' for more information." >&2;}
20415: { (exit 1); exit 1; }; };;
20416: --help | --hel | -h )
20417: echo "$ac_cs_usage"; exit 0 ;;
20418: --debug | --d* | -d )
20419: debug=: ;;
20420: --file | --fil | --fi | --f )
20421: $ac_shift
20422: CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20423: ac_need_defaults=false;;
20424: --header | --heade | --head | --hea )
20425: $ac_shift
20426: CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20427: ac_need_defaults=false;;
20428: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20429: | -silent | --silent | --silen | --sile | --sil | --si | --s)
20430: ac_cs_silent=: ;;
20431:
20432: # This is an error.
20433: -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20434: Try \`$0 --help' for more information." >&5
20435: echo "$as_me: error: unrecognized option: $1
20436: Try \`$0 --help' for more information." >&2;}
20437: { (exit 1); exit 1; }; } ;;
20438:
20439: *) ac_config_targets="$ac_config_targets $1" ;;
20440:
20441: esac
20442: shift
20443: done
20444:
20445: ac_configure_extra_args=
20446:
20447: if $ac_cs_silent; then
20448: exec 6>/dev/null
20449: ac_configure_extra_args="$ac_configure_extra_args --silent"
20450: fi
20451:
20452: _ACEOF
20453: cat >>$CONFIG_STATUS <<_ACEOF
20454: if \$ac_cs_recheck; then
20455: echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20456: exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20457: fi
20458:
20459: _ACEOF
20460:
20461: cat >>$CONFIG_STATUS <<_ACEOF
1.1 paf 20462: #
1.62 paf 20463: # INIT-COMMANDS section.
1.1 paf 20464: #
20465:
1.62 paf 20466: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20467:
1.128 moko 20468:
20469: # The HP-UX ksh and POSIX shell print the target directory to stdout
20470: # if CDPATH is set.
20471: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20472:
20473: sed_quote_subst='$sed_quote_subst'
20474: double_quote_subst='$double_quote_subst'
20475: delay_variable_subst='$delay_variable_subst'
20476: macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20477: macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20478: AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
20479: DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20480: OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20481: enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
1.138 moko 20482: enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
1.128 moko 20483: pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20484: enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20485: SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20486: ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20487: PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20488: host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20489: host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20490: host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20491: build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20492: build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20493: build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20494: SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20495: Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20496: GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20497: EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20498: FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20499: LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20500: NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20501: LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20502: max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20503: ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20504: exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20505: lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20506: lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20507: lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20508: lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20509: lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20510: reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20511: reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20512: deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20513: file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20514: file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20515: want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20516: sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20517: AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20518: AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20519: archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20520: STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20521: RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20522: old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20523: old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20524: old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20525: lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20526: CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20527: CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20528: compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20529: GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20530: lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20531: lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20532: lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20533: 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"`'
20534: nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20535: lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20536: objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20537: MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20538: lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20539: lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20540: lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20541: lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20542: lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20543: need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20544: MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20545: DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20546: NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20547: LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20548: OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20549: OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20550: libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20551: shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20552: extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20553: archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20554: enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20555: export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20556: whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20557: compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20558: old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20559: old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20560: archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20561: archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20562: module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20563: module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20564: with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20565: allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20566: no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20567: hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20568: hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20569: hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20570: hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20571: hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20572: hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20573: hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20574: inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20575: link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20576: always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20577: export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20578: exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20579: include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20580: prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20581: postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20582: file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20583: variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20584: need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20585: need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20586: version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20587: runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20588: shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20589: shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20590: libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20591: library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20592: soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20593: install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20594: postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20595: postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20596: finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20597: finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20598: hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20599: sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20600: sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
20601: hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20602: enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20603: enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20604: enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20605: old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20606: striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20607: compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
20608: predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
20609: postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
20610: predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
20611: postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
20612: compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
20613: LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
20614: reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
20615: reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20616: old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20617: compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
20618: GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
20619: lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
20620: lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
20621: lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
20622: lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
20623: lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
20624: archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
20625: enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
20626: export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20627: whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20628: compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
20629: old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20630: old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20631: archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20632: archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20633: module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20634: module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20635: with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
20636: allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20637: no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20638: hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20639: hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
20640: hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
20641: hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
20642: hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
20643: hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
20644: hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
20645: inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
20646: link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
20647: always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
20648: export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20649: exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20650: include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20651: prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20652: postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20653: file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
20654: hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
20655: compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
20656: predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20657: postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20658: predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
20659: postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
20660: compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
20661:
20662: LTCC='$LTCC'
20663: LTCFLAGS='$LTCFLAGS'
20664: compiler='$compiler_DEFAULT'
20665:
20666: # A function that is used when there is no print builtin or printf.
20667: func_fallback_echo ()
20668: {
20669: eval 'cat <<_LTECHO_EOF
20670: \$1
20671: _LTECHO_EOF'
20672: }
20673:
20674: # Quote evaled strings.
20675: for var in AS \
20676: DLLTOOL \
20677: OBJDUMP \
20678: SHELL \
20679: ECHO \
20680: PATH_SEPARATOR \
20681: SED \
20682: GREP \
20683: EGREP \
20684: FGREP \
20685: LD \
20686: NM \
20687: LN_S \
20688: lt_SP2NL \
20689: lt_NL2SP \
20690: reload_flag \
20691: deplibs_check_method \
20692: file_magic_cmd \
20693: file_magic_glob \
20694: want_nocaseglob \
20695: sharedlib_from_linklib_cmd \
20696: AR \
20697: AR_FLAGS \
20698: archiver_list_spec \
20699: STRIP \
20700: RANLIB \
20701: CC \
20702: CFLAGS \
20703: compiler \
20704: lt_cv_sys_global_symbol_pipe \
20705: lt_cv_sys_global_symbol_to_cdecl \
20706: lt_cv_sys_global_symbol_to_c_name_address \
20707: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20708: nm_file_list_spec \
20709: lt_prog_compiler_no_builtin_flag \
20710: lt_prog_compiler_pic \
20711: lt_prog_compiler_wl \
20712: lt_prog_compiler_static \
20713: lt_cv_prog_compiler_c_o \
20714: need_locks \
20715: MANIFEST_TOOL \
20716: DSYMUTIL \
20717: NMEDIT \
20718: LIPO \
20719: OTOOL \
20720: OTOOL64 \
20721: shrext_cmds \
20722: export_dynamic_flag_spec \
20723: whole_archive_flag_spec \
20724: compiler_needs_object \
20725: with_gnu_ld \
20726: allow_undefined_flag \
20727: no_undefined_flag \
20728: hardcode_libdir_flag_spec \
20729: hardcode_libdir_separator \
20730: exclude_expsyms \
20731: include_expsyms \
20732: file_list_spec \
20733: variables_saved_for_relink \
20734: libname_spec \
20735: library_names_spec \
20736: soname_spec \
20737: install_override_mode \
20738: finish_eval \
20739: old_striplib \
20740: striplib \
20741: compiler_lib_search_dirs \
20742: predep_objects \
20743: postdep_objects \
20744: predeps \
20745: postdeps \
20746: compiler_lib_search_path \
20747: LD_CXX \
20748: reload_flag_CXX \
20749: compiler_CXX \
20750: lt_prog_compiler_no_builtin_flag_CXX \
20751: lt_prog_compiler_pic_CXX \
20752: lt_prog_compiler_wl_CXX \
20753: lt_prog_compiler_static_CXX \
20754: lt_cv_prog_compiler_c_o_CXX \
20755: export_dynamic_flag_spec_CXX \
20756: whole_archive_flag_spec_CXX \
20757: compiler_needs_object_CXX \
20758: with_gnu_ld_CXX \
20759: allow_undefined_flag_CXX \
20760: no_undefined_flag_CXX \
20761: hardcode_libdir_flag_spec_CXX \
20762: hardcode_libdir_separator_CXX \
20763: exclude_expsyms_CXX \
20764: include_expsyms_CXX \
20765: file_list_spec_CXX \
20766: compiler_lib_search_dirs_CXX \
20767: predep_objects_CXX \
20768: postdep_objects_CXX \
20769: predeps_CXX \
20770: postdeps_CXX \
20771: compiler_lib_search_path_CXX; do
20772: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20773: *[\\\\\\\`\\"\\\$]*)
20774: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20775: ;;
20776: *)
20777: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20778: ;;
20779: esac
20780: done
20781:
20782: # Double-quote double-evaled strings.
20783: for var in reload_cmds \
20784: old_postinstall_cmds \
20785: old_postuninstall_cmds \
20786: old_archive_cmds \
20787: extract_expsyms_cmds \
20788: old_archive_from_new_cmds \
20789: old_archive_from_expsyms_cmds \
20790: archive_cmds \
20791: archive_expsym_cmds \
20792: module_cmds \
20793: module_expsym_cmds \
20794: export_symbols_cmds \
20795: prelink_cmds \
20796: postlink_cmds \
20797: postinstall_cmds \
20798: postuninstall_cmds \
20799: finish_cmds \
20800: sys_lib_search_path_spec \
20801: sys_lib_dlsearch_path_spec \
20802: reload_cmds_CXX \
20803: old_archive_cmds_CXX \
20804: old_archive_from_new_cmds_CXX \
20805: old_archive_from_expsyms_cmds_CXX \
20806: archive_cmds_CXX \
20807: archive_expsym_cmds_CXX \
20808: module_cmds_CXX \
20809: module_expsym_cmds_CXX \
20810: export_symbols_cmds_CXX \
20811: prelink_cmds_CXX \
20812: postlink_cmds_CXX; do
20813: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20814: *[\\\\\\\`\\"\\\$]*)
20815: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20816: ;;
20817: *)
20818: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20819: ;;
20820: esac
20821: done
20822:
20823: ac_aux_dir='$ac_aux_dir'
20824: xsi_shell='$xsi_shell'
20825: lt_shell_append='$lt_shell_append'
20826:
20827: # See if we are running on zsh, and set the options which allow our
20828: # commands through without removal of \ escapes INIT.
20829: if test -n "\${ZSH_VERSION+set}" ; then
20830: setopt NO_GLOB_SUBST
20831: fi
20832:
20833:
20834: PACKAGE='$PACKAGE'
20835: VERSION='$VERSION'
20836: TIMESTAMP='$TIMESTAMP'
20837: RM='$RM'
20838: ofile='$ofile'
20839:
20840:
20841:
20842:
20843:
20844:
1.62 paf 20845: _ACEOF
20846:
20847:
20848:
20849: cat >>$CONFIG_STATUS <<\_ACEOF
20850: for ac_config_target in $ac_config_targets
1.1 paf 20851: do
1.62 paf 20852: case "$ac_config_target" in
20853: # Handling of arguments.
20854: "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20855: "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20856: "src/types/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/types/Makefile" ;;
20857: "src/classes/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/classes/Makefile" ;;
20858: "src/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;;
20859: "src/main/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/main/Makefile" ;;
20860: "src/sql/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/sql/Makefile" ;;
20861: "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
1.73 paf 20862: "src/lib/gd/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gd/Makefile" ;;
20863: "src/lib/smtp/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/smtp/Makefile" ;;
1.67 paf 20864: "src/lib/gc/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gc/Makefile" ;;
20865: "src/lib/gc/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gc/include/Makefile" ;;
1.103 misha 20866: "src/lib/pcre/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/pcre/Makefile" ;;
1.67 paf 20867: "src/lib/cord/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/cord/Makefile" ;;
20868: "src/lib/cord/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/cord/include/Makefile" ;;
20869: "src/lib/cord/include/private/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/cord/include/private/Makefile" ;;
1.62 paf 20870: "src/lib/md5/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/md5/Makefile" ;;
1.70 paf 20871: "src/lib/sdbm/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/sdbm/Makefile" ;;
1.124 moko 20872: "src/lib/sdbm/pa-include/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/sdbm/pa-include/Makefile" ;;
1.120 misha 20873: "src/lib/json/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/json/Makefile" ;;
1.126 moko 20874: "src/lib/memcached/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/memcached/Makefile" ;;
1.127 moko 20875: "src/lib/curl/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/curl/Makefile" ;;
1.62 paf 20876: "src/targets/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/targets/Makefile" ;;
20877: "src/targets/cgi/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/targets/cgi/Makefile" ;;
1.122 moko 20878: "src/targets/apache/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/targets/apache/Makefile" ;;
1.62 paf 20879: "src/targets/isapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/targets/isapi/Makefile" ;;
20880: "etc/Makefile" ) CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
20881: "etc/parser3.charsets/Makefile" ) CONFIG_FILES="$CONFIG_FILES etc/parser3.charsets/Makefile" ;;
20882: "bin/Makefile" ) CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
20883: "bin/auto.p.dist" ) CONFIG_FILES="$CONFIG_FILES bin/auto.p.dist" ;;
20884: "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
1.128 moko 20885: "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
1.62 paf 20886: "src/include/pa_config_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pa_config_auto.h" ;;
20887: *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20888: echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20889: { (exit 1); exit 1; }; };;
1.1 paf 20890: esac
20891: done
20892:
1.62 paf 20893: # If the user did not use the arguments to specify the items to instantiate,
20894: # then the envvar interface is used. Set only those that are not.
20895: # We use the long form for the default assignment because of an extremely
20896: # bizarre bug on SunOS 4.1.3.
20897: if $ac_need_defaults; then
20898: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20899: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20900: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20901: fi
20902:
20903: # Have a temporary directory for convenience. Make it in the build tree
20904: # simply because there is no reason to put it here, and in addition,
20905: # creating and moving files from /tmp can sometimes cause problems.
20906: # Create a temporary directory, and hook for its removal unless debugging.
20907: $debug ||
20908: {
20909: trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20910: trap '{ (exit 1); exit 1; }' 1 2 13 15
20911: }
20912:
20913: # Create a (secure) tmp directory for tmp files.
20914:
20915: {
20916: tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20917: test -n "$tmp" && test -d "$tmp"
20918: } ||
20919: {
20920: tmp=./confstat$$-$RANDOM
20921: (umask 077 && mkdir $tmp)
20922: } ||
20923: {
20924: echo "$me: cannot create a temporary directory in ." >&2
20925: { (exit 1); exit 1; }
20926: }
20927:
20928: _ACEOF
1.1 paf 20929:
1.62 paf 20930: cat >>$CONFIG_STATUS <<_ACEOF
20931:
20932: #
20933: # CONFIG_FILES section.
20934: #
1.1 paf 20935:
1.62 paf 20936: # No need to generate the scripts if there are no CONFIG_FILES.
20937: # This happens for instance when ./config.status config.h
20938: if test -n "\$CONFIG_FILES"; then
20939: # Protect against being on the right side of a sed subst in config.status.
20940: sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20941: s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20942: s,@SHELL@,$SHELL,;t t
20943: s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20944: s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20945: s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20946: s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20947: s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20948: s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20949: s,@exec_prefix@,$exec_prefix,;t t
20950: s,@prefix@,$prefix,;t t
20951: s,@program_transform_name@,$program_transform_name,;t t
20952: s,@bindir@,$bindir,;t t
20953: s,@sbindir@,$sbindir,;t t
20954: s,@libexecdir@,$libexecdir,;t t
20955: s,@datadir@,$datadir,;t t
20956: s,@sysconfdir@,$sysconfdir,;t t
20957: s,@sharedstatedir@,$sharedstatedir,;t t
20958: s,@localstatedir@,$localstatedir,;t t
20959: s,@libdir@,$libdir,;t t
20960: s,@includedir@,$includedir,;t t
20961: s,@oldincludedir@,$oldincludedir,;t t
20962: s,@infodir@,$infodir,;t t
20963: s,@mandir@,$mandir,;t t
20964: s,@build_alias@,$build_alias,;t t
20965: s,@host_alias@,$host_alias,;t t
20966: s,@target_alias@,$target_alias,;t t
20967: s,@DEFS@,$DEFS,;t t
20968: s,@ECHO_C@,$ECHO_C,;t t
20969: s,@ECHO_N@,$ECHO_N,;t t
20970: s,@ECHO_T@,$ECHO_T,;t t
20971: s,@LIBS@,$LIBS,;t t
20972: s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20973: s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20974: s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20975: s,@CYGPATH_W@,$CYGPATH_W,;t t
20976: s,@PACKAGE@,$PACKAGE,;t t
20977: s,@VERSION@,$VERSION,;t t
20978: s,@ACLOCAL@,$ACLOCAL,;t t
20979: s,@AUTOCONF@,$AUTOCONF,;t t
20980: s,@AUTOMAKE@,$AUTOMAKE,;t t
20981: s,@AUTOHEADER@,$AUTOHEADER,;t t
20982: s,@MAKEINFO@,$MAKEINFO,;t t
20983: s,@install_sh@,$install_sh,;t t
20984: s,@STRIP@,$STRIP,;t t
20985: s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20986: s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
1.86 paf 20987: s,@mkdir_p@,$mkdir_p,;t t
1.62 paf 20988: s,@AWK@,$AWK,;t t
20989: s,@SET_MAKE@,$SET_MAKE,;t t
1.86 paf 20990: s,@am__leading_dot@,$am__leading_dot,;t t
20991: s,@AMTAR@,$AMTAR,;t t
20992: s,@am__tar@,$am__tar,;t t
20993: s,@am__untar@,$am__untar,;t t
1.62 paf 20994: s,@P3S@,$P3S,;t t
20995: s,@build@,$build,;t t
20996: s,@build_cpu@,$build_cpu,;t t
20997: s,@build_vendor@,$build_vendor,;t t
20998: s,@build_os@,$build_os,;t t
20999: s,@host@,$host,;t t
21000: s,@host_cpu@,$host_cpu,;t t
21001: s,@host_vendor@,$host_vendor,;t t
21002: s,@host_os@,$host_os,;t t
21003: s,@YACC@,$YACC,;t t
1.66 paf 21004: s,@CXX@,$CXX,;t t
21005: s,@CXXFLAGS@,$CXXFLAGS,;t t
1.62 paf 21006: s,@LDFLAGS@,$LDFLAGS,;t t
21007: s,@CPPFLAGS@,$CPPFLAGS,;t t
1.66 paf 21008: s,@ac_ct_CXX@,$ac_ct_CXX,;t t
1.62 paf 21009: s,@EXEEXT@,$EXEEXT,;t t
21010: s,@OBJEXT@,$OBJEXT,;t t
21011: s,@DEPDIR@,$DEPDIR,;t t
21012: s,@am__include@,$am__include,;t t
21013: s,@am__quote@,$am__quote,;t t
21014: s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21015: s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21016: s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
1.66 paf 21017: s,@CXXDEPMODE@,$CXXDEPMODE,;t t
21018: s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
21019: s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
21020: s,@CC@,$CC,;t t
21021: s,@CFLAGS@,$CFLAGS,;t t
21022: s,@ac_ct_CC@,$ac_ct_CC,;t t
1.62 paf 21023: s,@CCDEPMODE@,$CCDEPMODE,;t t
21024: s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21025: s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
21026: s,@dll_extension@,$dll_extension,;t t
1.67 paf 21027: s,@GC_LIBS@,$GC_LIBS,;t t
1.100 misha 21028: s,@PCRE_INCLUDES@,$PCRE_INCLUDES,;t t
21029: s,@PCRE_LIBS@,$PCRE_LIBS,;t t
1.62 paf 21030: s,@XML_INCLUDES@,$XML_INCLUDES,;t t
21031: s,@XML_LIBS@,$XML_LIBS,;t t
21032: s,@MIME_INCLUDES@,$MIME_INCLUDES,;t t
21033: s,@MIME_LIBS@,$MIME_LIBS,;t t
1.122 moko 21034: s,@APACHE@,$APACHE,;t t
21035: s,@APACHE_INC@,$APACHE_INC,;t t
21036: s,@APACHE_CFLAGS@,$APACHE_CFLAGS,;t t
21037: s,@COMPILE_APACHE_MODULE_TRUE@,$COMPILE_APACHE_MODULE_TRUE,;t t
21038: s,@COMPILE_APACHE_MODULE_FALSE@,$COMPILE_APACHE_MODULE_FALSE,;t t
1.128 moko 21039: s,@AS@,$AS,;t t
21040: s,@ac_ct_AS@,$ac_ct_AS,;t t
21041: s,@DLLTOOL@,$DLLTOOL,;t t
21042: s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
21043: s,@OBJDUMP@,$OBJDUMP,;t t
21044: s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
21045: s,@LIBTOOL@,$LIBTOOL,;t t
21046: s,@SED@,$SED,;t t
21047: s,@EGREP@,$EGREP,;t t
21048: s,@FGREP@,$FGREP,;t t
21049: s,@GREP@,$GREP,;t t
21050: s,@LD@,$LD,;t t
21051: s,@DUMPBIN@,$DUMPBIN,;t t
21052: s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
21053: s,@NM@,$NM,;t t
21054: s,@LN_S@,$LN_S,;t t
21055: s,@AR@,$AR,;t t
21056: s,@ac_ct_AR@,$ac_ct_AR,;t t
21057: s,@RANLIB@,$RANLIB,;t t
21058: s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21059: s,@MANIFEST_TOOL@,$MANIFEST_TOOL,;t t
21060: s,@ac_ct_MANIFEST_TOOL@,$ac_ct_MANIFEST_TOOL,;t t
21061: s,@DSYMUTIL@,$DSYMUTIL,;t t
21062: s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
21063: s,@NMEDIT@,$NMEDIT,;t t
21064: s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
21065: s,@LIPO@,$LIPO,;t t
21066: s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
21067: s,@OTOOL@,$OTOOL,;t t
21068: s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
21069: s,@OTOOL64@,$OTOOL64,;t t
21070: s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
21071: s,@CPP@,$CPP,;t t
21072: s,@CXXCPP@,$CXXCPP,;t t
21073: s,@LIBLTDL@,$LIBLTDL,;t t
21074: s,@LTDLDEPS@,$LTDLDEPS,;t t
21075: s,@LTDLINCL@,$LTDLINCL,;t t
1.62 paf 21076: s,@INCLTDL@,$INCLTDL,;t t
1.128 moko 21077: s,@LT_DLLOADERS@,$LT_DLLOADERS,;t t
21078: s,@LIBADD_DLOPEN@,$LIBADD_DLOPEN,;t t
21079: s,@LIBADD_SHL_LOAD@,$LIBADD_SHL_LOAD,;t t
21080: s,@LIBADD_DLD_LINK@,$LIBADD_DLD_LINK,;t t
21081: s,@LT_DLPREOPEN@,$LT_DLPREOPEN,;t t
21082: s,@LIBADD_DL@,$LIBADD_DL,;t t
21083: s,@sys_symbol_underscore@,$sys_symbol_underscore,;t t
21084: s,@ARGZ_H@,$ARGZ_H,;t t
21085: s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
21086: s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
21087: s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
21088: s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
1.62 paf 21089: s,@subdirs@,$subdirs,;t t
1.128 moko 21090: s,@LT_CONFIG_H@,$LT_CONFIG_H,;t t
21091: s,@LTDLOPEN@,$LTDLOPEN,;t t
1.62 paf 21092: s,@LIBOBJS@,$LIBOBJS,;t t
21093: s,@LTLIBOBJS@,$LTLIBOBJS,;t t
1.128 moko 21094: s,@ltdl_LIBOBJS@,$ltdl_LIBOBJS,;t t
21095: s,@ltdl_LTLIBOBJS@,$ltdl_LTLIBOBJS,;t t
1.1 paf 21096: CEOF
21097:
1.62 paf 21098: _ACEOF
1.1 paf 21099:
1.62 paf 21100: cat >>$CONFIG_STATUS <<\_ACEOF
21101: # Split the substitutions into bite-sized pieces for seds with
21102: # small command number limits, like on Digital OSF/1 and HP-UX.
21103: ac_max_sed_lines=48
21104: ac_sed_frag=1 # Number of current file.
21105: ac_beg=1 # First line for current file.
21106: ac_end=$ac_max_sed_lines # Line after last line for current file.
21107: ac_more_lines=:
21108: ac_sed_cmds=
21109: while $ac_more_lines; do
21110: if test $ac_beg -gt 1; then
21111: sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21112: else
21113: sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21114: fi
21115: if test ! -s $tmp/subs.frag; then
21116: ac_more_lines=false
1.1 paf 21117: else
1.62 paf 21118: # The purpose of the label and of the branching condition is to
21119: # speed up the sed processing (if there are no `@' at all, there
21120: # is no need to browse any of the substitutions).
21121: # These are the two extra sed commands mentioned above.
21122: (echo ':t
21123: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21124: if test -z "$ac_sed_cmds"; then
1.86 paf 21125: ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
1.62 paf 21126: else
1.86 paf 21127: ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
1.62 paf 21128: fi
21129: ac_sed_frag=`expr $ac_sed_frag + 1`
21130: ac_beg=$ac_end
21131: ac_end=`expr $ac_end + $ac_max_sed_lines`
1.1 paf 21132: fi
1.62 paf 21133: done
21134: if test -z "$ac_sed_cmds"; then
21135: ac_sed_cmds=cat
1.1 paf 21136: fi
1.62 paf 21137: fi # test -n "$CONFIG_FILES"
1.1 paf 21138:
1.62 paf 21139: _ACEOF
21140: cat >>$CONFIG_STATUS <<\_ACEOF
21141: for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
1.1 paf 21142: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1.62 paf 21143: case $ac_file in
21144: - | *:- | *:-:* ) # input from stdin
1.86 paf 21145: cat >$tmp/stdin
21146: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21147: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
1.62 paf 21148: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
1.86 paf 21149: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
1.62 paf 21150: * ) ac_file_in=$ac_file.in ;;
1.1 paf 21151: esac
21152:
1.62 paf 21153: # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21154: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21155: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 21156: X"$ac_file" : 'X\(//\)[^/]' \| \
21157: X"$ac_file" : 'X\(//\)$' \| \
21158: X"$ac_file" : 'X\(/\)' \| \
21159: . : '\(.\)' 2>/dev/null ||
1.62 paf 21160: echo X"$ac_file" |
21161: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21162: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21163: /^X\(\/\/\)$/{ s//\1/; q; }
21164: /^X\(\/\).*/{ s//\1/; q; }
21165: s/.*/./; q'`
21166: { if $as_mkdir_p; then
21167: mkdir -p "$ac_dir"
21168: else
21169: as_dir="$ac_dir"
21170: as_dirs=
21171: while test ! -d "$as_dir"; do
21172: as_dirs="$as_dir $as_dirs"
21173: as_dir=`(dirname "$as_dir") 2>/dev/null ||
21174: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 21175: X"$as_dir" : 'X\(//\)[^/]' \| \
21176: X"$as_dir" : 'X\(//\)$' \| \
21177: X"$as_dir" : 'X\(/\)' \| \
21178: . : '\(.\)' 2>/dev/null ||
1.62 paf 21179: echo X"$as_dir" |
21180: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21181: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21182: /^X\(\/\/\)$/{ s//\1/; q; }
21183: /^X\(\/\).*/{ s//\1/; q; }
21184: s/.*/./; q'`
21185: done
21186: test ! -n "$as_dirs" || mkdir $as_dirs
21187: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21188: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21189: { (exit 1); exit 1; }; }; }
21190:
21191: ac_builddir=.
21192:
21193: if test "$ac_dir" != .; then
21194: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21195: # A "../" for each directory in $ac_dir_suffix.
21196: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21197: else
21198: ac_dir_suffix= ac_top_builddir=
21199: fi
21200:
21201: case $srcdir in
21202: .) # No --srcdir option. We are building in place.
21203: ac_srcdir=.
21204: if test -z "$ac_top_builddir"; then
21205: ac_top_srcdir=.
21206: else
21207: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21208: fi ;;
21209: [\\/]* | ?:[\\/]* ) # Absolute path.
21210: ac_srcdir=$srcdir$ac_dir_suffix;
21211: ac_top_srcdir=$srcdir ;;
21212: *) # Relative path.
21213: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21214: ac_top_srcdir=$ac_top_builddir$srcdir ;;
21215: esac
1.86 paf 21216:
21217: # Do not use `cd foo && pwd` to compute absolute paths, because
21218: # the directories may not exist.
21219: case `pwd` in
21220: .) ac_abs_builddir="$ac_dir";;
21221: *)
21222: case "$ac_dir" in
21223: .) ac_abs_builddir=`pwd`;;
21224: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21225: *) ac_abs_builddir=`pwd`/"$ac_dir";;
21226: esac;;
21227: esac
21228: case $ac_abs_builddir in
21229: .) ac_abs_top_builddir=${ac_top_builddir}.;;
21230: *)
21231: case ${ac_top_builddir}. in
21232: .) ac_abs_top_builddir=$ac_abs_builddir;;
21233: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21234: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21235: esac;;
21236: esac
21237: case $ac_abs_builddir in
21238: .) ac_abs_srcdir=$ac_srcdir;;
21239: *)
21240: case $ac_srcdir in
21241: .) ac_abs_srcdir=$ac_abs_builddir;;
21242: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21243: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21244: esac;;
21245: esac
21246: case $ac_abs_builddir in
21247: .) ac_abs_top_srcdir=$ac_top_srcdir;;
21248: *)
21249: case $ac_top_srcdir in
21250: .) ac_abs_top_srcdir=$ac_abs_builddir;;
21251: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21252: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21253: esac;;
21254: esac
1.62 paf 21255:
1.1 paf 21256:
1.62 paf 21257: case $INSTALL in
21258: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21259: *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
1.1 paf 21260: esac
21261:
1.62 paf 21262: if test x"$ac_file" != x-; then
21263: { echo "$as_me:$LINENO: creating $ac_file" >&5
21264: echo "$as_me: creating $ac_file" >&6;}
21265: rm -f "$ac_file"
21266: fi
21267: # Let's still pretend it is `configure' which instantiates (i.e., don't
21268: # use $as_me), people would be surprised to read:
21269: # /* config.h. Generated by config.status. */
21270: if test x"$ac_file" = x-; then
21271: configure_input=
21272: else
21273: configure_input="$ac_file. "
21274: fi
21275: configure_input=$configure_input"Generated from `echo $ac_file_in |
1.86 paf 21276: sed 's,.*/,,'` by configure."
1.62 paf 21277:
21278: # First look for the input files in the build tree, otherwise in the
21279: # src tree.
21280: ac_file_inputs=`IFS=:
21281: for f in $ac_file_in; do
21282: case $f in
21283: -) echo $tmp/stdin ;;
21284: [\\/$]*)
1.86 paf 21285: # Absolute (can't be DOS-style, as IFS=:)
21286: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
1.62 paf 21287: echo "$as_me: error: cannot find input file: $f" >&2;}
21288: { (exit 1); exit 1; }; }
1.86 paf 21289: echo "$f";;
1.62 paf 21290: *) # Relative
1.86 paf 21291: if test -f "$f"; then
21292: # Build tree
21293: echo "$f"
21294: elif test -f "$srcdir/$f"; then
21295: # Source tree
21296: echo "$srcdir/$f"
21297: else
21298: # /dev/null tree
21299: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
1.62 paf 21300: echo "$as_me: error: cannot find input file: $f" >&2;}
21301: { (exit 1); exit 1; }; }
1.86 paf 21302: fi;;
1.62 paf 21303: esac
21304: done` || { (exit 1); exit 1; }
21305: _ACEOF
21306: cat >>$CONFIG_STATUS <<_ACEOF
21307: sed "$ac_vpsub
21308: $extrasub
21309: _ACEOF
21310: cat >>$CONFIG_STATUS <<\_ACEOF
21311: :t
21312: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21313: s,@configure_input@,$configure_input,;t t
21314: s,@srcdir@,$ac_srcdir,;t t
21315: s,@abs_srcdir@,$ac_abs_srcdir,;t t
21316: s,@top_srcdir@,$ac_top_srcdir,;t t
21317: s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21318: s,@builddir@,$ac_builddir,;t t
21319: s,@abs_builddir@,$ac_abs_builddir,;t t
21320: s,@top_builddir@,$ac_top_builddir,;t t
21321: s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21322: s,@INSTALL@,$ac_INSTALL,;t t
21323: " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21324: rm -f $tmp/stdin
21325: if test x"$ac_file" != x-; then
21326: mv $tmp/out $ac_file
21327: else
21328: cat $tmp/out
21329: rm -f $tmp/out
21330: fi
1.1 paf 21331:
1.62 paf 21332: done
21333: _ACEOF
21334: cat >>$CONFIG_STATUS <<\_ACEOF
1.1 paf 21335:
1.62 paf 21336: #
21337: # CONFIG_HEADER section.
21338: #
1.1 paf 21339:
21340: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21341: # NAME is the cpp macro being defined and VALUE is the value it is being given.
21342: #
21343: # ac_d sets the value in "#define NAME VALUE" lines.
1.86 paf 21344: ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21345: ac_dB='[ ].*$,\1#\2'
1.62 paf 21346: ac_dC=' '
21347: ac_dD=',;t'
21348: # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1.86 paf 21349: ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1.62 paf 21350: ac_uB='$,\1#\2define\3'
1.1 paf 21351: ac_uC=' '
1.62 paf 21352: ac_uD=',;t'
21353:
21354: for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
1.1 paf 21355: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1.62 paf 21356: case $ac_file in
21357: - | *:- | *:-:* ) # input from stdin
1.86 paf 21358: cat >$tmp/stdin
21359: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21360: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
1.62 paf 21361: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
1.86 paf 21362: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
1.62 paf 21363: * ) ac_file_in=$ac_file.in ;;
1.1 paf 21364: esac
21365:
1.62 paf 21366: test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21367: echo "$as_me: creating $ac_file" >&6;}
1.1 paf 21368:
1.62 paf 21369: # First look for the input files in the build tree, otherwise in the
21370: # src tree.
21371: ac_file_inputs=`IFS=:
21372: for f in $ac_file_in; do
21373: case $f in
21374: -) echo $tmp/stdin ;;
21375: [\\/$]*)
1.86 paf 21376: # Absolute (can't be DOS-style, as IFS=:)
21377: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
1.62 paf 21378: echo "$as_me: error: cannot find input file: $f" >&2;}
21379: { (exit 1); exit 1; }; }
1.86 paf 21380: # Do quote $f, to prevent DOS paths from being IFS'd.
21381: echo "$f";;
1.62 paf 21382: *) # Relative
1.86 paf 21383: if test -f "$f"; then
21384: # Build tree
21385: echo "$f"
21386: elif test -f "$srcdir/$f"; then
21387: # Source tree
21388: echo "$srcdir/$f"
21389: else
21390: # /dev/null tree
21391: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
1.62 paf 21392: echo "$as_me: error: cannot find input file: $f" >&2;}
21393: { (exit 1); exit 1; }; }
1.86 paf 21394: fi;;
1.62 paf 21395: esac
21396: done` || { (exit 1); exit 1; }
21397: # Remove the trailing spaces.
1.86 paf 21398: sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
1.62 paf 21399:
21400: _ACEOF
21401:
21402: # Transform confdefs.h into two sed scripts, `conftest.defines' and
21403: # `conftest.undefs', that substitutes the proper values into
21404: # config.h.in to produce config.h. The first handles `#define'
21405: # templates, and the second `#undef' templates.
21406: # And first: Protect against being on the right side of a sed subst in
21407: # config.status. Protect against being in an unquoted here document
21408: # in config.status.
21409: rm -f conftest.defines conftest.undefs
21410: # Using a here document instead of a string reduces the quoting nightmare.
21411: # Putting comments in sed scripts is not portable.
21412: #
21413: # `end' is used to avoid that the second main sed command (meant for
21414: # 0-ary CPP macros) applies to n-ary macro definitions.
21415: # See the Autoconf documentation for `clear'.
21416: cat >confdef2sed.sed <<\_ACEOF
21417: s/[\\&,]/\\&/g
21418: s,[\\$`],\\&,g
21419: t clear
21420: : clear
1.86 paf 21421: s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
1.62 paf 21422: t end
1.86 paf 21423: s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
1.62 paf 21424: : end
21425: _ACEOF
21426: # If some macros were called several times there might be several times
21427: # the same #defines, which is useless. Nevertheless, we may not want to
21428: # sort them, since we want the *last* AC-DEFINE to be honored.
21429: uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21430: sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21431: rm -f confdef2sed.sed
1.1 paf 21432:
21433: # This sed command replaces #undef with comments. This is necessary, for
21434: # example, in the case of _POSIX_SOURCE, which is predefined and required
21435: # on some systems where configure will not decide to define it.
1.62 paf 21436: cat >>conftest.undefs <<\_ACEOF
1.86 paf 21437: s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
1.62 paf 21438: _ACEOF
21439:
21440: # Break up conftest.defines because some shells have a limit on the size
21441: # of here documents, and old seds have small limits too (100 cmds).
21442: echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
1.86 paf 21443: echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
1.62 paf 21444: echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21445: echo ' :' >>$CONFIG_STATUS
21446: rm -f conftest.tail
21447: while grep . conftest.defines >/dev/null
21448: do
21449: # Write a limited-size here document to $tmp/defines.sed.
21450: echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21451: # Speed up: don't consider the non `#define' lines.
1.86 paf 21452: echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
1.62 paf 21453: # Work around the forget-to-reset-the-flag bug.
21454: echo 't clr' >>$CONFIG_STATUS
21455: echo ': clr' >>$CONFIG_STATUS
21456: sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21457: echo 'CEOF
21458: sed -f $tmp/defines.sed $tmp/in >$tmp/out
21459: rm -f $tmp/in
21460: mv $tmp/out $tmp/in
21461: ' >>$CONFIG_STATUS
21462: sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21463: rm -f conftest.defines
21464: mv conftest.tail conftest.defines
21465: done
21466: rm -f conftest.defines
21467: echo ' fi # grep' >>$CONFIG_STATUS
21468: echo >>$CONFIG_STATUS
21469:
21470: # Break up conftest.undefs because some shells have a limit on the size
21471: # of here documents, and old seds have small limits too (100 cmds).
21472: echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
1.1 paf 21473: rm -f conftest.tail
1.62 paf 21474: while grep . conftest.undefs >/dev/null
1.1 paf 21475: do
1.62 paf 21476: # Write a limited-size here document to $tmp/undefs.sed.
21477: echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21478: # Speed up: don't consider the non `#undef'
1.86 paf 21479: echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
1.62 paf 21480: # Work around the forget-to-reset-the-flag bug.
21481: echo 't clr' >>$CONFIG_STATUS
21482: echo ': clr' >>$CONFIG_STATUS
21483: sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
1.1 paf 21484: echo 'CEOF
1.62 paf 21485: sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21486: rm -f $tmp/in
21487: mv $tmp/out $tmp/in
21488: ' >>$CONFIG_STATUS
21489: sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21490: rm -f conftest.undefs
21491: mv conftest.tail conftest.undefs
21492: done
21493: rm -f conftest.undefs
21494:
21495: cat >>$CONFIG_STATUS <<\_ACEOF
21496: # Let's still pretend it is `configure' which instantiates (i.e., don't
21497: # use $as_me), people would be surprised to read:
21498: # /* config.h. Generated by config.status. */
21499: if test x"$ac_file" = x-; then
21500: echo "/* Generated by configure. */" >$tmp/config.h
21501: else
21502: echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
21503: fi
21504: cat $tmp/in >>$tmp/config.h
21505: rm -f $tmp/in
21506: if test x"$ac_file" != x-; then
21507: if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21508: { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21509: echo "$as_me: $ac_file is unchanged" >&6;}
21510: else
21511: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21512: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 21513: X"$ac_file" : 'X\(//\)[^/]' \| \
21514: X"$ac_file" : 'X\(//\)$' \| \
21515: X"$ac_file" : 'X\(/\)' \| \
21516: . : '\(.\)' 2>/dev/null ||
1.62 paf 21517: echo X"$ac_file" |
21518: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21519: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21520: /^X\(\/\/\)$/{ s//\1/; q; }
21521: /^X\(\/\).*/{ s//\1/; q; }
21522: s/.*/./; q'`
21523: { if $as_mkdir_p; then
21524: mkdir -p "$ac_dir"
21525: else
21526: as_dir="$ac_dir"
21527: as_dirs=
21528: while test ! -d "$as_dir"; do
21529: as_dirs="$as_dir $as_dirs"
21530: as_dir=`(dirname "$as_dir") 2>/dev/null ||
21531: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 21532: X"$as_dir" : 'X\(//\)[^/]' \| \
21533: X"$as_dir" : 'X\(//\)$' \| \
21534: X"$as_dir" : 'X\(/\)' \| \
21535: . : '\(.\)' 2>/dev/null ||
1.62 paf 21536: echo X"$as_dir" |
21537: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21538: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21539: /^X\(\/\/\)$/{ s//\1/; q; }
21540: /^X\(\/\).*/{ s//\1/; q; }
21541: s/.*/./; q'`
21542: done
21543: test ! -n "$as_dirs" || mkdir $as_dirs
21544: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21545: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21546: { (exit 1); exit 1; }; }; }
21547:
21548: rm -f $ac_file
21549: mv $tmp/config.h $ac_file
21550: fi
21551: else
21552: cat $tmp/config.h
21553: rm -f $tmp/config.h
21554: fi
1.86 paf 21555: # Compute $ac_file's index in $config_headers.
21556: _am_stamp_count=1
21557: for _am_header in $config_headers :; do
21558: case $_am_header in
21559: $ac_file | $ac_file:* )
21560: break ;;
21561: * )
21562: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21563: esac
21564: done
1.62 paf 21565: echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21566: $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 21567: X$ac_file : 'X\(//\)[^/]' \| \
21568: X$ac_file : 'X\(//\)$' \| \
21569: X$ac_file : 'X\(/\)' \| \
21570: . : '\(.\)' 2>/dev/null ||
1.62 paf 21571: echo X$ac_file |
21572: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21573: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21574: /^X\(\/\/\)$/{ s//\1/; q; }
21575: /^X\(\/\).*/{ s//\1/; q; }
21576: s/.*/./; q'`/stamp-h$_am_stamp_count
21577: done
21578: _ACEOF
21579: cat >>$CONFIG_STATUS <<\_ACEOF
21580:
21581: #
21582: # CONFIG_COMMANDS section.
21583: #
21584: for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21585: ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21586: ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21587: ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21588: $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 21589: X"$ac_dest" : 'X\(//\)[^/]' \| \
21590: X"$ac_dest" : 'X\(//\)$' \| \
21591: X"$ac_dest" : 'X\(/\)' \| \
21592: . : '\(.\)' 2>/dev/null ||
1.62 paf 21593: echo X"$ac_dest" |
21594: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21595: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21596: /^X\(\/\/\)$/{ s//\1/; q; }
21597: /^X\(\/\).*/{ s//\1/; q; }
21598: s/.*/./; q'`
1.86 paf 21599: { if $as_mkdir_p; then
21600: mkdir -p "$ac_dir"
21601: else
21602: as_dir="$ac_dir"
21603: as_dirs=
21604: while test ! -d "$as_dir"; do
21605: as_dirs="$as_dir $as_dirs"
21606: as_dir=`(dirname "$as_dir") 2>/dev/null ||
21607: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21608: X"$as_dir" : 'X\(//\)[^/]' \| \
21609: X"$as_dir" : 'X\(//\)$' \| \
21610: X"$as_dir" : 'X\(/\)' \| \
21611: . : '\(.\)' 2>/dev/null ||
21612: echo X"$as_dir" |
21613: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21614: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21615: /^X\(\/\/\)$/{ s//\1/; q; }
21616: /^X\(\/\).*/{ s//\1/; q; }
21617: s/.*/./; q'`
21618: done
21619: test ! -n "$as_dirs" || mkdir $as_dirs
21620: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21621: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21622: { (exit 1); exit 1; }; }; }
21623:
1.62 paf 21624: ac_builddir=.
21625:
21626: if test "$ac_dir" != .; then
21627: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21628: # A "../" for each directory in $ac_dir_suffix.
21629: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21630: else
21631: ac_dir_suffix= ac_top_builddir=
21632: fi
21633:
21634: case $srcdir in
21635: .) # No --srcdir option. We are building in place.
21636: ac_srcdir=.
21637: if test -z "$ac_top_builddir"; then
21638: ac_top_srcdir=.
21639: else
21640: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21641: fi ;;
21642: [\\/]* | ?:[\\/]* ) # Absolute path.
21643: ac_srcdir=$srcdir$ac_dir_suffix;
21644: ac_top_srcdir=$srcdir ;;
21645: *) # Relative path.
21646: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21647: ac_top_srcdir=$ac_top_builddir$srcdir ;;
21648: esac
1.86 paf 21649:
21650: # Do not use `cd foo && pwd` to compute absolute paths, because
21651: # the directories may not exist.
21652: case `pwd` in
21653: .) ac_abs_builddir="$ac_dir";;
21654: *)
21655: case "$ac_dir" in
21656: .) ac_abs_builddir=`pwd`;;
21657: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21658: *) ac_abs_builddir=`pwd`/"$ac_dir";;
21659: esac;;
21660: esac
21661: case $ac_abs_builddir in
21662: .) ac_abs_top_builddir=${ac_top_builddir}.;;
21663: *)
21664: case ${ac_top_builddir}. in
21665: .) ac_abs_top_builddir=$ac_abs_builddir;;
21666: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21667: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21668: esac;;
21669: esac
21670: case $ac_abs_builddir in
21671: .) ac_abs_srcdir=$ac_srcdir;;
21672: *)
21673: case $ac_srcdir in
21674: .) ac_abs_srcdir=$ac_abs_builddir;;
21675: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21676: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21677: esac;;
21678: esac
21679: case $ac_abs_builddir in
21680: .) ac_abs_top_srcdir=$ac_top_srcdir;;
21681: *)
21682: case $ac_top_srcdir in
21683: .) ac_abs_top_srcdir=$ac_abs_builddir;;
21684: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21685: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21686: esac;;
21687: esac
1.62 paf 21688:
21689:
21690: { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21691: echo "$as_me: executing $ac_dest commands" >&6;}
21692: case $ac_dest in
21693: depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21694: # Strip MF so we end up with the name of the file.
21695: mf=`echo "$mf" | sed -e 's/:.*$//'`
21696: # Check whether this is an Automake generated Makefile or not.
21697: # We used to match only the files named `Makefile.in', but
21698: # some people rename them; so instead we look at the file content.
21699: # Grep'ing the first line is not enough: some people post-process
21700: # each Makefile.in and add a new line on top of each file to say so.
21701: # So let's grep whole file.
21702: if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21703: dirpart=`(dirname "$mf") 2>/dev/null ||
21704: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 21705: X"$mf" : 'X\(//\)[^/]' \| \
21706: X"$mf" : 'X\(//\)$' \| \
21707: X"$mf" : 'X\(/\)' \| \
21708: . : '\(.\)' 2>/dev/null ||
1.62 paf 21709: echo X"$mf" |
21710: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21711: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21712: /^X\(\/\/\)$/{ s//\1/; q; }
21713: /^X\(\/\).*/{ s//\1/; q; }
21714: s/.*/./; q'`
21715: else
21716: continue
21717: fi
1.86 paf 21718: # Extract the definition of DEPDIR, am__include, and am__quote
21719: # from the Makefile without running `make'.
21720: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
1.62 paf 21721: test -z "$DEPDIR" && continue
1.86 paf 21722: am__include=`sed -n 's/^am__include = //p' < "$mf"`
21723: test -z "am__include" && continue
21724: am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
1.62 paf 21725: # When using ansi2knr, U may be empty or an underscore; expand it
1.86 paf 21726: U=`sed -n 's/^U = //p' < "$mf"`
21727: # Find all dependency output files, they are included files with
21728: # $(DEPDIR) in their names. We invoke sed twice because it is the
21729: # simplest approach to changing $(DEPDIR) to its actual value in the
21730: # expansion.
21731: for file in `sed -n "
21732: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
1.62 paf 21733: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21734: # Make sure the directory exists.
21735: test -f "$dirpart/$file" && continue
21736: fdir=`(dirname "$file") 2>/dev/null ||
21737: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 21738: X"$file" : 'X\(//\)[^/]' \| \
21739: X"$file" : 'X\(//\)$' \| \
21740: X"$file" : 'X\(/\)' \| \
21741: . : '\(.\)' 2>/dev/null ||
1.62 paf 21742: echo X"$file" |
21743: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21744: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21745: /^X\(\/\/\)$/{ s//\1/; q; }
21746: /^X\(\/\).*/{ s//\1/; q; }
21747: s/.*/./; q'`
21748: { if $as_mkdir_p; then
21749: mkdir -p $dirpart/$fdir
21750: else
21751: as_dir=$dirpart/$fdir
21752: as_dirs=
21753: while test ! -d "$as_dir"; do
21754: as_dirs="$as_dir $as_dirs"
21755: as_dir=`(dirname "$as_dir") 2>/dev/null ||
21756: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 21757: X"$as_dir" : 'X\(//\)[^/]' \| \
21758: X"$as_dir" : 'X\(//\)$' \| \
21759: X"$as_dir" : 'X\(/\)' \| \
21760: . : '\(.\)' 2>/dev/null ||
1.62 paf 21761: echo X"$as_dir" |
21762: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21763: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21764: /^X\(\/\/\)$/{ s//\1/; q; }
21765: /^X\(\/\).*/{ s//\1/; q; }
21766: s/.*/./; q'`
21767: done
21768: test ! -n "$as_dirs" || mkdir $as_dirs
21769: fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21770: echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21771: { (exit 1); exit 1; }; }; }
1.1 paf 21772:
1.62 paf 21773: # echo "creating $dirpart/$file"
21774: echo '# dummy' > "$dirpart/$file"
21775: done
21776: done
21777: ;;
1.128 moko 21778: libtool )
21779:
21780: # See if we are running on zsh, and set the options which allow our
21781: # commands through without removal of \ escapes.
21782: if test -n "${ZSH_VERSION+set}" ; then
21783: setopt NO_GLOB_SUBST
21784: fi
21785:
21786: cfgfile="${ofile}T"
21787: trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21788: $RM "$cfgfile"
21789:
21790: cat <<_LT_EOF >> "$cfgfile"
21791: #! $SHELL
21792:
21793: # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21794: # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21795: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21796: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21797: #
21798: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21799: # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
21800: # Foundation, Inc.
21801: # Written by Gordon Matzigkeit, 1996
21802: #
21803: # This file is part of GNU Libtool.
21804: #
21805: # GNU Libtool is free software; you can redistribute it and/or
21806: # modify it under the terms of the GNU General Public License as
21807: # published by the Free Software Foundation; either version 2 of
21808: # the License, or (at your option) any later version.
21809: #
21810: # As a special exception to the GNU General Public License,
21811: # if you distribute this file as part of a program or library that
21812: # is built using GNU Libtool, you may include this file under the
21813: # same distribution terms that you use for the rest of that program.
21814: #
21815: # GNU Libtool is distributed in the hope that it will be useful,
21816: # but WITHOUT ANY WARRANTY; without even the implied warranty of
21817: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21818: # GNU General Public License for more details.
21819: #
21820: # You should have received a copy of the GNU General Public License
21821: # along with GNU Libtool; see the file COPYING. If not, a copy
21822: # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21823: # obtained by writing to the Free Software Foundation, Inc.,
21824: # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21825:
21826:
21827: # The names of the tagged configurations supported by this script.
21828: available_tags="CXX "
21829:
21830: # ### BEGIN LIBTOOL CONFIG
21831:
21832: # Which release of libtool.m4 was used?
21833: macro_version=$macro_version
21834: macro_revision=$macro_revision
21835:
21836: # Assembler program.
21837: AS=$lt_AS
21838:
21839: # DLL creation program.
21840: DLLTOOL=$lt_DLLTOOL
21841:
21842: # Object dumper program.
21843: OBJDUMP=$lt_OBJDUMP
21844:
21845: # Whether or not to build shared libraries.
21846: build_libtool_libs=$enable_shared
21847:
1.138 moko 21848: # Whether or not to build static libraries.
21849: build_old_libs=$enable_static
21850:
1.128 moko 21851: # What type of objects to build.
21852: pic_mode=$pic_mode
21853:
21854: # Whether or not to optimize for fast installation.
21855: fast_install=$enable_fast_install
21856:
21857: # Shell to use when invoking shell scripts.
21858: SHELL=$lt_SHELL
21859:
21860: # An echo program that protects backslashes.
21861: ECHO=$lt_ECHO
21862:
21863: # The PATH separator for the build system.
21864: PATH_SEPARATOR=$lt_PATH_SEPARATOR
21865:
21866: # The host system.
21867: host_alias=$host_alias
21868: host=$host
21869: host_os=$host_os
21870:
21871: # The build system.
21872: build_alias=$build_alias
21873: build=$build
21874: build_os=$build_os
21875:
21876: # A sed program that does not truncate output.
21877: SED=$lt_SED
21878:
21879: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21880: Xsed="\$SED -e 1s/^X//"
21881:
21882: # A grep program that handles long lines.
21883: GREP=$lt_GREP
21884:
21885: # An ERE matcher.
21886: EGREP=$lt_EGREP
21887:
21888: # A literal string matcher.
21889: FGREP=$lt_FGREP
21890:
21891: # A BSD- or MS-compatible name lister.
21892: NM=$lt_NM
21893:
21894: # Whether we need soft or hard links.
21895: LN_S=$lt_LN_S
21896:
21897: # What is the maximum length of a command?
21898: max_cmd_len=$max_cmd_len
21899:
21900: # Object file suffix (normally "o").
21901: objext=$ac_objext
21902:
21903: # Executable file suffix (normally "").
21904: exeext=$exeext
21905:
21906: # whether the shell understands "unset".
21907: lt_unset=$lt_unset
21908:
21909: # turn spaces into newlines.
21910: SP2NL=$lt_lt_SP2NL
21911:
21912: # turn newlines into spaces.
21913: NL2SP=$lt_lt_NL2SP
21914:
21915: # convert \$build file names to \$host format.
21916: to_host_file_cmd=$lt_cv_to_host_file_cmd
21917:
21918: # convert \$build files to toolchain format.
21919: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21920:
21921: # Method to check whether dependent libraries are shared objects.
21922: deplibs_check_method=$lt_deplibs_check_method
21923:
21924: # Command to use when deplibs_check_method = "file_magic".
21925: file_magic_cmd=$lt_file_magic_cmd
21926:
21927: # How to find potential files when deplibs_check_method = "file_magic".
21928: file_magic_glob=$lt_file_magic_glob
21929:
21930: # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21931: want_nocaseglob=$lt_want_nocaseglob
21932:
21933: # Command to associate shared and link libraries.
21934: sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21935:
21936: # The archiver.
21937: AR=$lt_AR
21938:
21939: # Flags to create an archive.
21940: AR_FLAGS=$lt_AR_FLAGS
21941:
21942: # How to feed a file listing to the archiver.
21943: archiver_list_spec=$lt_archiver_list_spec
21944:
21945: # A symbol stripping program.
21946: STRIP=$lt_STRIP
21947:
21948: # Commands used to install an old-style archive.
21949: RANLIB=$lt_RANLIB
21950: old_postinstall_cmds=$lt_old_postinstall_cmds
21951: old_postuninstall_cmds=$lt_old_postuninstall_cmds
21952:
21953: # Whether to use a lock for old archive extraction.
21954: lock_old_archive_extraction=$lock_old_archive_extraction
21955:
21956: # A C compiler.
21957: LTCC=$lt_CC
21958:
21959: # LTCC compiler flags.
21960: LTCFLAGS=$lt_CFLAGS
21961:
21962: # Take the output of nm and produce a listing of raw symbols and C names.
21963: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21964:
21965: # Transform the output of nm in a proper C declaration.
21966: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21967:
21968: # Transform the output of nm in a C name address pair.
21969: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21970:
21971: # Transform the output of nm in a C name address pair when lib prefix is needed.
21972: global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21973:
21974: # Specify filename containing input files for \$NM.
21975: nm_file_list_spec=$lt_nm_file_list_spec
21976:
21977: # The root where to search for dependent libraries,and in which our libraries should be installed.
21978: lt_sysroot=$lt_sysroot
21979:
21980: # The name of the directory that contains temporary libtool files.
21981: objdir=$objdir
21982:
21983: # Used to examine libraries when file_magic_cmd begins with "file".
21984: MAGIC_CMD=$MAGIC_CMD
21985:
21986: # Must we lock files when doing compilation?
21987: need_locks=$lt_need_locks
21988:
21989: # Manifest tool.
21990: MANIFEST_TOOL=$lt_MANIFEST_TOOL
21991:
21992: # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21993: DSYMUTIL=$lt_DSYMUTIL
21994:
21995: # Tool to change global to local symbols on Mac OS X.
21996: NMEDIT=$lt_NMEDIT
21997:
21998: # Tool to manipulate fat objects and archives on Mac OS X.
21999: LIPO=$lt_LIPO
22000:
22001: # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22002: OTOOL=$lt_OTOOL
22003:
22004: # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22005: OTOOL64=$lt_OTOOL64
22006:
22007: # Old archive suffix (normally "a").
22008: libext=$libext
22009:
22010: # Shared library suffix (normally ".so").
22011: shrext_cmds=$lt_shrext_cmds
22012:
22013: # The commands to extract the exported symbol list from a shared archive.
22014: extract_expsyms_cmds=$lt_extract_expsyms_cmds
22015:
22016: # Variables whose values should be saved in libtool wrapper scripts and
22017: # restored at link time.
22018: variables_saved_for_relink=$lt_variables_saved_for_relink
22019:
22020: # Do we need the "lib" prefix for modules?
22021: need_lib_prefix=$need_lib_prefix
22022:
22023: # Do we need a version for libraries?
22024: need_version=$need_version
22025:
22026: # Library versioning type.
22027: version_type=$version_type
22028:
22029: # Shared library runtime path variable.
22030: runpath_var=$runpath_var
22031:
22032: # Shared library path variable.
22033: shlibpath_var=$shlibpath_var
22034:
22035: # Is shlibpath searched before the hard-coded library search path?
22036: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22037:
22038: # Format of library name prefix.
22039: libname_spec=$lt_libname_spec
22040:
22041: # List of archive names. First name is the real one, the rest are links.
22042: # The last name is the one that the linker finds with -lNAME
22043: library_names_spec=$lt_library_names_spec
22044:
22045: # The coded name of the library, if different from the real name.
22046: soname_spec=$lt_soname_spec
22047:
22048: # Permission mode override for installation of shared libraries.
22049: install_override_mode=$lt_install_override_mode
22050:
22051: # Command to use after installation of a shared archive.
22052: postinstall_cmds=$lt_postinstall_cmds
22053:
22054: # Command to use after uninstallation of a shared archive.
22055: postuninstall_cmds=$lt_postuninstall_cmds
22056:
22057: # Commands used to finish a libtool library installation in a directory.
22058: finish_cmds=$lt_finish_cmds
22059:
22060: # As "finish_cmds", except a single script fragment to be evaled but
22061: # not shown.
22062: finish_eval=$lt_finish_eval
22063:
22064: # Whether we should hardcode library paths into libraries.
22065: hardcode_into_libs=$hardcode_into_libs
22066:
22067: # Compile-time system search path for libraries.
22068: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22069:
22070: # Run-time system search path for libraries.
22071: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22072:
22073: # Whether dlopen is supported.
22074: dlopen_support=$enable_dlopen
22075:
22076: # Whether dlopen of programs is supported.
22077: dlopen_self=$enable_dlopen_self
22078:
22079: # Whether dlopen of statically linked programs is supported.
22080: dlopen_self_static=$enable_dlopen_self_static
22081:
22082: # Commands to strip libraries.
22083: old_striplib=$lt_old_striplib
22084: striplib=$lt_striplib
22085:
22086:
22087: # The linker used to build libraries.
22088: LD=$lt_LD
22089:
22090: # How to create reloadable object files.
22091: reload_flag=$lt_reload_flag
22092: reload_cmds=$lt_reload_cmds
22093:
22094: # Commands used to build an old-style archive.
22095: old_archive_cmds=$lt_old_archive_cmds
22096:
22097: # A language specific compiler.
22098: CC=$lt_compiler
22099:
22100: # Is the compiler the GNU compiler?
22101: with_gcc=$GCC
22102:
22103: # Compiler flag to turn off builtin functions.
22104: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22105:
22106: # Additional compiler flags for building library objects.
22107: pic_flag=$lt_lt_prog_compiler_pic
22108:
22109: # How to pass a linker flag through the compiler.
22110: wl=$lt_lt_prog_compiler_wl
22111:
22112: # Compiler flag to prevent dynamic linking.
22113: link_static_flag=$lt_lt_prog_compiler_static
22114:
22115: # Does compiler simultaneously support -c and -o options?
22116: compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22117:
22118: # Whether or not to add -lc for building shared libraries.
22119: build_libtool_need_lc=$archive_cmds_need_lc
22120:
22121: # Whether or not to disallow shared libs when runtime libs are static.
22122: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22123:
22124: # Compiler flag to allow reflexive dlopens.
22125: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22126:
22127: # Compiler flag to generate shared objects directly from archives.
22128: whole_archive_flag_spec=$lt_whole_archive_flag_spec
22129:
22130: # Whether the compiler copes with passing no objects directly.
22131: compiler_needs_object=$lt_compiler_needs_object
22132:
22133: # Create an old-style archive from a shared archive.
22134: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22135:
22136: # Create a temporary old-style archive to link instead of a shared archive.
22137: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22138:
22139: # Commands used to build a shared archive.
22140: archive_cmds=$lt_archive_cmds
22141: archive_expsym_cmds=$lt_archive_expsym_cmds
22142:
22143: # Commands used to build a loadable module if different from building
22144: # a shared archive.
22145: module_cmds=$lt_module_cmds
22146: module_expsym_cmds=$lt_module_expsym_cmds
22147:
22148: # Whether we are building with GNU ld or not.
22149: with_gnu_ld=$lt_with_gnu_ld
22150:
22151: # Flag that allows shared libraries with undefined symbols to be built.
22152: allow_undefined_flag=$lt_allow_undefined_flag
22153:
22154: # Flag that enforces no undefined symbols.
22155: no_undefined_flag=$lt_no_undefined_flag
22156:
22157: # Flag to hardcode \$libdir into a binary during linking.
22158: # This must work even if \$libdir does not exist
22159: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22160:
22161: # Whether we need a single "-rpath" flag with a separated argument.
22162: hardcode_libdir_separator=$lt_hardcode_libdir_separator
22163:
22164: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22165: # DIR into the resulting binary.
22166: hardcode_direct=$hardcode_direct
22167:
22168: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22169: # DIR into the resulting binary and the resulting library dependency is
22170: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22171: # library is relocated.
22172: hardcode_direct_absolute=$hardcode_direct_absolute
22173:
22174: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22175: # into the resulting binary.
22176: hardcode_minus_L=$hardcode_minus_L
22177:
22178: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22179: # into the resulting binary.
22180: hardcode_shlibpath_var=$hardcode_shlibpath_var
22181:
22182: # Set to "yes" if building a shared library automatically hardcodes DIR
22183: # into the library and all subsequent libraries and executables linked
22184: # against it.
22185: hardcode_automatic=$hardcode_automatic
22186:
22187: # Set to yes if linker adds runtime paths of dependent libraries
22188: # to runtime path list.
22189: inherit_rpath=$inherit_rpath
22190:
22191: # Whether libtool must link a program against all its dependency libraries.
22192: link_all_deplibs=$link_all_deplibs
22193:
22194: # Set to "yes" if exported symbols are required.
22195: always_export_symbols=$always_export_symbols
22196:
22197: # The commands to list exported symbols.
22198: export_symbols_cmds=$lt_export_symbols_cmds
22199:
22200: # Symbols that should not be listed in the preloaded symbols.
22201: exclude_expsyms=$lt_exclude_expsyms
22202:
22203: # Symbols that must always be exported.
22204: include_expsyms=$lt_include_expsyms
22205:
22206: # Commands necessary for linking programs (against libraries) with templates.
22207: prelink_cmds=$lt_prelink_cmds
22208:
22209: # Commands necessary for finishing linking programs.
22210: postlink_cmds=$lt_postlink_cmds
22211:
22212: # Specify filename containing input files.
22213: file_list_spec=$lt_file_list_spec
22214:
22215: # How to hardcode a shared library path into an executable.
22216: hardcode_action=$hardcode_action
22217:
22218: # The directories searched by this compiler when creating a shared library.
22219: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
22220:
22221: # Dependencies to place before and after the objects being linked to
22222: # create a shared library.
22223: predep_objects=$lt_predep_objects
22224: postdep_objects=$lt_postdep_objects
22225: predeps=$lt_predeps
22226: postdeps=$lt_postdeps
22227:
22228: # The library search path used internally by the compiler when linking
22229: # a shared library.
22230: compiler_lib_search_path=$lt_compiler_lib_search_path
22231:
22232: # ### END LIBTOOL CONFIG
22233:
22234: _LT_EOF
22235:
22236: case $host_os in
22237: aix3*)
22238: cat <<\_LT_EOF >> "$cfgfile"
22239: # AIX sometimes has problems with the GCC collect2 program. For some
22240: # reason, if we set the COLLECT_NAMES environment variable, the problems
22241: # vanish in a puff of smoke.
22242: if test "X${COLLECT_NAMES+set}" != Xset; then
22243: COLLECT_NAMES=
22244: export COLLECT_NAMES
22245: fi
22246: _LT_EOF
22247: ;;
22248: esac
22249:
22250:
22251: ltmain="$ac_aux_dir/ltmain.sh"
22252:
22253:
22254: # We use sed instead of cat because bash on DJGPP gets confused if
22255: # if finds mixed CR/LF and LF-only lines. Since sed operates in
22256: # text mode, it properly converts lines to CR/LF. This bash problem
22257: # is reportedly fixed, but why not run on old versions too?
22258: sed '$q' "$ltmain" >> "$cfgfile" \
22259: || (rm -f "$cfgfile"; exit 1)
22260:
22261: if test x"$xsi_shell" = xyes; then
22262: sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
22263: func_dirname ()\
22264: {\
22265: \ case ${1} in\
22266: \ */*) func_dirname_result="${1%/*}${2}" ;;\
22267: \ * ) func_dirname_result="${3}" ;;\
22268: \ esac\
22269: } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
22270: && mv -f "$cfgfile.tmp" "$cfgfile" \
22271: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22272: test 0 -eq $? || _lt_function_replace_fail=:
22273:
22274:
22275: sed -e '/^func_basename ()$/,/^} # func_basename /c\
22276: func_basename ()\
22277: {\
22278: \ func_basename_result="${1##*/}"\
22279: } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
22280: && mv -f "$cfgfile.tmp" "$cfgfile" \
22281: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22282: test 0 -eq $? || _lt_function_replace_fail=:
22283:
22284:
22285: sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
22286: func_dirname_and_basename ()\
22287: {\
22288: \ case ${1} in\
22289: \ */*) func_dirname_result="${1%/*}${2}" ;;\
22290: \ * ) func_dirname_result="${3}" ;;\
22291: \ esac\
22292: \ func_basename_result="${1##*/}"\
22293: } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
22294: && mv -f "$cfgfile.tmp" "$cfgfile" \
22295: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22296: test 0 -eq $? || _lt_function_replace_fail=:
22297:
22298:
22299: sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
22300: func_stripname ()\
22301: {\
22302: \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
22303: \ # positional parameters, so assign one to ordinary parameter first.\
22304: \ func_stripname_result=${3}\
22305: \ func_stripname_result=${func_stripname_result#"${1}"}\
22306: \ func_stripname_result=${func_stripname_result%"${2}"}\
22307: } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
22308: && mv -f "$cfgfile.tmp" "$cfgfile" \
22309: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22310: test 0 -eq $? || _lt_function_replace_fail=:
22311:
22312:
22313: sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
22314: func_split_long_opt ()\
22315: {\
22316: \ func_split_long_opt_name=${1%%=*}\
22317: \ func_split_long_opt_arg=${1#*=}\
22318: } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
22319: && mv -f "$cfgfile.tmp" "$cfgfile" \
22320: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22321: test 0 -eq $? || _lt_function_replace_fail=:
22322:
22323:
22324: sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
22325: func_split_short_opt ()\
22326: {\
22327: \ func_split_short_opt_arg=${1#??}\
22328: \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
22329: } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
22330: && mv -f "$cfgfile.tmp" "$cfgfile" \
22331: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22332: test 0 -eq $? || _lt_function_replace_fail=:
22333:
22334:
22335: sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
22336: func_lo2o ()\
22337: {\
22338: \ case ${1} in\
22339: \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
22340: \ *) func_lo2o_result=${1} ;;\
22341: \ esac\
22342: } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
22343: && mv -f "$cfgfile.tmp" "$cfgfile" \
22344: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22345: test 0 -eq $? || _lt_function_replace_fail=:
22346:
22347:
22348: sed -e '/^func_xform ()$/,/^} # func_xform /c\
22349: func_xform ()\
22350: {\
22351: func_xform_result=${1%.*}.lo\
22352: } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
22353: && mv -f "$cfgfile.tmp" "$cfgfile" \
22354: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22355: test 0 -eq $? || _lt_function_replace_fail=:
22356:
22357:
22358: sed -e '/^func_arith ()$/,/^} # func_arith /c\
22359: func_arith ()\
22360: {\
22361: func_arith_result=$(( $* ))\
22362: } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
22363: && mv -f "$cfgfile.tmp" "$cfgfile" \
22364: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22365: test 0 -eq $? || _lt_function_replace_fail=:
22366:
22367:
22368: sed -e '/^func_len ()$/,/^} # func_len /c\
22369: func_len ()\
22370: {\
22371: func_len_result=${#1}\
22372: } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
22373: && mv -f "$cfgfile.tmp" "$cfgfile" \
22374: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22375: test 0 -eq $? || _lt_function_replace_fail=:
22376:
22377: fi
22378:
22379: if test x"$lt_shell_append" = xyes; then
22380: sed -e '/^func_append ()$/,/^} # func_append /c\
22381: func_append ()\
22382: {\
22383: eval "${1}+=\\${2}"\
22384: } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
22385: && mv -f "$cfgfile.tmp" "$cfgfile" \
22386: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22387: test 0 -eq $? || _lt_function_replace_fail=:
22388:
22389:
22390: sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
22391: func_append_quoted ()\
22392: {\
22393: \ func_quote_for_eval "${2}"\
22394: \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
22395: } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
22396: && mv -f "$cfgfile.tmp" "$cfgfile" \
22397: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22398: test 0 -eq $? || _lt_function_replace_fail=:
22399:
22400:
22401: # Save a `func_append' function call where possible by direct use of '+='
22402: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
22403: && mv -f "$cfgfile.tmp" "$cfgfile" \
22404: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22405: test 0 -eq $? || _lt_function_replace_fail=:
22406: else
22407: # Save a `func_append' function call even when '+=' is not available
22408: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
22409: && mv -f "$cfgfile.tmp" "$cfgfile" \
22410: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22411: test 0 -eq $? || _lt_function_replace_fail=:
22412: fi
22413:
22414: if test x"$_lt_function_replace_fail" = x":"; then
22415: { echo "$as_me:$LINENO: WARNING: Unable to substitute extended shell functions in $ofile" >&5
22416: echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
22417: fi
22418:
22419:
22420: mv -f "$cfgfile" "$ofile" ||
22421: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22422: chmod +x "$ofile"
22423:
22424:
22425: cat <<_LT_EOF >> "$ofile"
22426:
22427: # ### BEGIN LIBTOOL TAG CONFIG: CXX
22428:
22429: # The linker used to build libraries.
22430: LD=$lt_LD_CXX
22431:
22432: # How to create reloadable object files.
22433: reload_flag=$lt_reload_flag_CXX
22434: reload_cmds=$lt_reload_cmds_CXX
22435:
22436: # Commands used to build an old-style archive.
22437: old_archive_cmds=$lt_old_archive_cmds_CXX
22438:
22439: # A language specific compiler.
22440: CC=$lt_compiler_CXX
22441:
22442: # Is the compiler the GNU compiler?
22443: with_gcc=$GCC_CXX
22444:
22445: # Compiler flag to turn off builtin functions.
22446: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
22447:
22448: # Additional compiler flags for building library objects.
22449: pic_flag=$lt_lt_prog_compiler_pic_CXX
22450:
22451: # How to pass a linker flag through the compiler.
22452: wl=$lt_lt_prog_compiler_wl_CXX
22453:
22454: # Compiler flag to prevent dynamic linking.
22455: link_static_flag=$lt_lt_prog_compiler_static_CXX
22456:
22457: # Does compiler simultaneously support -c and -o options?
22458: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22459:
22460: # Whether or not to add -lc for building shared libraries.
22461: build_libtool_need_lc=$archive_cmds_need_lc_CXX
22462:
22463: # Whether or not to disallow shared libs when runtime libs are static.
22464: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22465:
22466: # Compiler flag to allow reflexive dlopens.
22467: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22468:
22469: # Compiler flag to generate shared objects directly from archives.
22470: whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22471:
22472: # Whether the compiler copes with passing no objects directly.
22473: compiler_needs_object=$lt_compiler_needs_object_CXX
22474:
22475: # Create an old-style archive from a shared archive.
22476: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22477:
22478: # Create a temporary old-style archive to link instead of a shared archive.
22479: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22480:
22481: # Commands used to build a shared archive.
22482: archive_cmds=$lt_archive_cmds_CXX
22483: archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22484:
22485: # Commands used to build a loadable module if different from building
22486: # a shared archive.
22487: module_cmds=$lt_module_cmds_CXX
22488: module_expsym_cmds=$lt_module_expsym_cmds_CXX
22489:
22490: # Whether we are building with GNU ld or not.
22491: with_gnu_ld=$lt_with_gnu_ld_CXX
22492:
22493: # Flag that allows shared libraries with undefined symbols to be built.
22494: allow_undefined_flag=$lt_allow_undefined_flag_CXX
22495:
22496: # Flag that enforces no undefined symbols.
22497: no_undefined_flag=$lt_no_undefined_flag_CXX
22498:
22499: # Flag to hardcode \$libdir into a binary during linking.
22500: # This must work even if \$libdir does not exist
22501: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22502:
22503: # Whether we need a single "-rpath" flag with a separated argument.
22504: hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22505:
22506: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22507: # DIR into the resulting binary.
22508: hardcode_direct=$hardcode_direct_CXX
22509:
22510: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22511: # DIR into the resulting binary and the resulting library dependency is
22512: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22513: # library is relocated.
22514: hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22515:
22516: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22517: # into the resulting binary.
22518: hardcode_minus_L=$hardcode_minus_L_CXX
22519:
22520: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22521: # into the resulting binary.
22522: hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22523:
22524: # Set to "yes" if building a shared library automatically hardcodes DIR
22525: # into the library and all subsequent libraries and executables linked
22526: # against it.
22527: hardcode_automatic=$hardcode_automatic_CXX
22528:
22529: # Set to yes if linker adds runtime paths of dependent libraries
22530: # to runtime path list.
22531: inherit_rpath=$inherit_rpath_CXX
22532:
22533: # Whether libtool must link a program against all its dependency libraries.
22534: link_all_deplibs=$link_all_deplibs_CXX
22535:
22536: # Set to "yes" if exported symbols are required.
22537: always_export_symbols=$always_export_symbols_CXX
22538:
22539: # The commands to list exported symbols.
22540: export_symbols_cmds=$lt_export_symbols_cmds_CXX
22541:
22542: # Symbols that should not be listed in the preloaded symbols.
22543: exclude_expsyms=$lt_exclude_expsyms_CXX
22544:
22545: # Symbols that must always be exported.
22546: include_expsyms=$lt_include_expsyms_CXX
22547:
22548: # Commands necessary for linking programs (against libraries) with templates.
22549: prelink_cmds=$lt_prelink_cmds_CXX
22550:
22551: # Commands necessary for finishing linking programs.
22552: postlink_cmds=$lt_postlink_cmds_CXX
22553:
22554: # Specify filename containing input files.
22555: file_list_spec=$lt_file_list_spec_CXX
22556:
22557: # How to hardcode a shared library path into an executable.
22558: hardcode_action=$hardcode_action_CXX
22559:
22560: # The directories searched by this compiler when creating a shared library.
22561: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22562:
22563: # Dependencies to place before and after the objects being linked to
22564: # create a shared library.
22565: predep_objects=$lt_predep_objects_CXX
22566: postdep_objects=$lt_postdep_objects_CXX
22567: predeps=$lt_predeps_CXX
22568: postdeps=$lt_postdeps_CXX
22569:
22570: # The library search path used internally by the compiler when linking
22571: # a shared library.
22572: compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22573:
22574: # ### END LIBTOOL TAG CONFIG: CXX
22575: _LT_EOF
22576:
22577: ;;
1.62 paf 22578: esac
22579: done
22580: _ACEOF
22581:
22582: cat >>$CONFIG_STATUS <<\_ACEOF
22583:
22584: { (exit 0); exit 0; }
22585: _ACEOF
1.1 paf 22586: chmod +x $CONFIG_STATUS
1.62 paf 22587: ac_clean_files=$ac_clean_files_save
22588:
1.1 paf 22589:
1.62 paf 22590: # configure is writing to config.log, and then calls config.status.
22591: # config.status does its own redirection, appending to config.log.
22592: # Unfortunately, on DOS this fails, as config.log is still kept open
22593: # by configure, so config.status won't be able to write to it; its
22594: # output is simply discarded. So we exec the FD to /dev/null,
22595: # effectively closing config.log, so it can be properly (re)opened and
22596: # appended to by config.status. When coming back to configure, we
22597: # need to make the FD available again.
22598: if test "$no_create" != yes; then
22599: ac_cs_success=:
22600: ac_config_status_args=
22601: test "$silent" = yes &&
22602: ac_config_status_args="$ac_config_status_args --quiet"
22603: exec 5>/dev/null
22604: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22605: exec 5>>config.log
22606: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22607: # would make configure fail if this is the last instruction.
22608: $ac_cs_success || { (exit 1); exit 1; }
22609: fi
22610:
22611: #
22612: # CONFIG_SUBDIRS section.
22613: #
1.1 paf 22614: if test "$no_recursion" != yes; then
22615:
22616: # Remove --cache-file and --srcdir arguments so they do not pile up.
22617: ac_sub_configure_args=
22618: ac_prev=
22619: for ac_arg in $ac_configure_args; do
22620: if test -n "$ac_prev"; then
22621: ac_prev=
22622: continue
22623: fi
1.62 paf 22624: case $ac_arg in
1.1 paf 22625: -cache-file | --cache-file | --cache-fil | --cache-fi \
22626: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22627: ac_prev=cache_file ;;
22628: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1.62 paf 22629: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22630: | --c=*)
22631: ;;
22632: --config-cache | -C)
1.1 paf 22633: ;;
22634: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22635: ac_prev=srcdir ;;
22636: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22637: ;;
1.62 paf 22638: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22639: ac_prev=prefix ;;
22640: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22641: ;;
1.1 paf 22642: *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
22643: esac
22644: done
22645:
1.62 paf 22646: # Always prepend --prefix to ensure using the same prefix
22647: # in subdir configurations.
22648: ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
22649:
22650: ac_popdir=`pwd`
22651: for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
1.1 paf 22652:
22653: # Do not complain, so a configure script can configure whichever
22654: # parts of a large source tree are present.
1.62 paf 22655: test -d $srcdir/$ac_dir || continue
1.1 paf 22656:
1.62 paf 22657: { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
22658: echo "$as_me: configuring in $ac_dir" >&6;}
22659: { if $as_mkdir_p; then
22660: mkdir -p "$ac_dir"
22661: else
22662: as_dir="$ac_dir"
22663: as_dirs=
22664: while test ! -d "$as_dir"; do
22665: as_dirs="$as_dir $as_dirs"
22666: as_dir=`(dirname "$as_dir") 2>/dev/null ||
22667: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 22668: X"$as_dir" : 'X\(//\)[^/]' \| \
22669: X"$as_dir" : 'X\(//\)$' \| \
22670: X"$as_dir" : 'X\(/\)' \| \
22671: . : '\(.\)' 2>/dev/null ||
1.62 paf 22672: echo X"$as_dir" |
22673: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22674: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22675: /^X\(\/\/\)$/{ s//\1/; q; }
22676: /^X\(\/\).*/{ s//\1/; q; }
22677: s/.*/./; q'`
22678: done
22679: test ! -n "$as_dirs" || mkdir $as_dirs
22680: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22681: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22682: { (exit 1); exit 1; }; }; }
22683:
22684: ac_builddir=.
22685:
22686: if test "$ac_dir" != .; then
22687: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22688: # A "../" for each directory in $ac_dir_suffix.
22689: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22690: else
22691: ac_dir_suffix= ac_top_builddir=
22692: fi
22693:
22694: case $srcdir in
22695: .) # No --srcdir option. We are building in place.
22696: ac_srcdir=.
22697: if test -z "$ac_top_builddir"; then
22698: ac_top_srcdir=.
22699: else
22700: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22701: fi ;;
22702: [\\/]* | ?:[\\/]* ) # Absolute path.
22703: ac_srcdir=$srcdir$ac_dir_suffix;
22704: ac_top_srcdir=$srcdir ;;
22705: *) # Relative path.
22706: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22707: ac_top_srcdir=$ac_top_builddir$srcdir ;;
22708: esac
1.86 paf 22709:
22710: # Do not use `cd foo && pwd` to compute absolute paths, because
22711: # the directories may not exist.
22712: case `pwd` in
22713: .) ac_abs_builddir="$ac_dir";;
22714: *)
22715: case "$ac_dir" in
22716: .) ac_abs_builddir=`pwd`;;
22717: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22718: *) ac_abs_builddir=`pwd`/"$ac_dir";;
22719: esac;;
22720: esac
22721: case $ac_abs_builddir in
22722: .) ac_abs_top_builddir=${ac_top_builddir}.;;
22723: *)
22724: case ${ac_top_builddir}. in
22725: .) ac_abs_top_builddir=$ac_abs_builddir;;
22726: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22727: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22728: esac;;
22729: esac
22730: case $ac_abs_builddir in
22731: .) ac_abs_srcdir=$ac_srcdir;;
22732: *)
22733: case $ac_srcdir in
22734: .) ac_abs_srcdir=$ac_abs_builddir;;
22735: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22736: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22737: esac;;
22738: esac
22739: case $ac_abs_builddir in
22740: .) ac_abs_top_srcdir=$ac_top_srcdir;;
22741: *)
22742: case $ac_top_srcdir in
22743: .) ac_abs_top_srcdir=$ac_abs_builddir;;
22744: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22745: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22746: esac;;
22747: esac
1.1 paf 22748:
22749:
1.62 paf 22750: cd $ac_dir
1.1 paf 22751:
22752: # Check for guested configure; otherwise get Cygnus style configure.
1.62 paf 22753: if test -f $ac_srcdir/configure.gnu; then
22754: ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
22755: elif test -f $ac_srcdir/configure; then
22756: ac_sub_configure="$SHELL '$ac_srcdir/configure'"
22757: elif test -f $ac_srcdir/configure.in; then
1.1 paf 22758: ac_sub_configure=$ac_configure
22759: else
1.62 paf 22760: { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22761: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
1.1 paf 22762: ac_sub_configure=
22763: fi
22764:
22765: # The recursion is here.
22766: if test -n "$ac_sub_configure"; then
22767: # Make the cache file name correct relative to the subdirectory.
1.62 paf 22768: case $cache_file in
22769: [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
1.1 paf 22770: *) # Relative path.
1.86 paf 22771: ac_sub_cache_file=$ac_top_builddir$cache_file ;;
1.1 paf 22772: esac
22773:
1.62 paf 22774: { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22775: echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
1.1 paf 22776: # The eval makes quoting arguments work.
1.62 paf 22777: eval $ac_sub_configure $ac_sub_configure_args \
1.86 paf 22778: --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
22779: { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
1.62 paf 22780: echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22781: { (exit 1); exit 1; }; }
1.1 paf 22782: fi
22783:
22784: cd $ac_popdir
22785: done
22786: fi
22787:
E-mail: